dynamic-mui 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dynamic-mui.cjs.js +1 -1
- package/dist/dynamic-mui.es.js +1 -1
- package/dist/{index-Cm0CQSwi.mjs → index-B7PCLgpM.mjs} +28 -28
- package/dist/{index-D3Jm-ikP.js → index-CSJSFvJg.js} +3 -3
- package/dist/{index-I4bvPSIq.mjs → index-DCGxIFlk.mjs} +1 -1
- package/dist/{index-VbzeQNTc.js → index-_-z1GncQ.js} +1 -1
- package/dist/{loadCognitoIdentity-DczJMR0u.mjs → loadCognitoIdentity-C8ynC2E9.mjs} +1 -1
- package/dist/{loadCognitoIdentity-DCQMycuj.js → loadCognitoIdentity-DysGc_XM.js} +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index-CSJSFvJg.js");class E{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:i,serializer:n,deserializer:o,serdeContext:c,defaultContentType:d}){this.marshaller=i,this.serializer=n,this.deserializer=o,this.serdeContext=c,this.defaultContentType=d}async serializeEventStream({eventStream:i,requestSchema:n,initialRequest:o}){const c=this.marshaller,d=n.getEventStreamMember(),b=n.getMemberSchema(d),y=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};y.write(n,o);const t=y.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of i)yield r}};return c.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:a,eventType:l,explicitPayloadContentType:m}=this.writeEventBody(t,b,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...e},body:a}})}async deserializeEventStream({response:i,responseSchema:n,initialResponseContainer:o}){const c=this.marshaller,d=n.getEventStreamMember(),y=n.getMemberSchema(d).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=c.deserialize(i.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",a=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,a);return delete l[d],{[f]:!0,...l}}else if(e in y){const l=y[e];if(l.isStructSchema()){const m={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?m[s]=a:g.isStringSchema()?m[s]=(this.serdeContext?.utf8Encoder??z.toUtf8)(a):g.isStructSchema()&&(m[s]=await this.deserializer.read(g,a));else if(v){const p=t[e].headers[s]?.value;p!=null&&(g.isNumericSchema()?p&&typeof p=="object"&&"bytes"in p?m[s]=BigInt(p.toString()):m[s]=Number(p):m[s]=p)}}if(u)return{[e]:m};if(a.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,a)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(i,n,o){const c=this.serializer;let d=i,b=null,y;const f=n.getSchema()[4].includes(i),h={};if(f){const t=n.getMemberSchema(i);if(t.isStructSchema()){for(const[e,a]of t.structIterator()){const{eventHeader:l,eventPayload:m}=a.getMergedTraits();if(m)b=e;else if(l){const u=o[i][e];let s="binary";a.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":a.isTimestampSchema()?s="timestamp":a.isStringSchema()?s="string":a.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[i][e])}}if(b!==null){const e=t.getMemberSchema(b);e.isBlobSchema()?y="application/octet-stream":e.isStringSchema()&&(y="text/plain"),c.write(e,o[i][b])}else c.write(t,o[i])}else if(t.isUnitSchema())c.write(t,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[i];d=t,c.write(15,e)}const S=c.flush();return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??z.fromUtf8)(S):S,eventType:d,explicitPayloadContentType:y,additionalHeaders:h}}}exports.EventStreamSerde=E;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as De, N as _, a as Oe, c as F, b as A, t as pe, S as z, U as Te, f as le, L as fe, d as he, p as Me, e as $e, g as Fe, h as N, i as Ne, v as ze, P as Ue, j as je, T as w, r as Ge, n as ge, k as Le, l as He, m as Je, o as me, E as qe, q as Be, s as Ve, u as We, w as Ke, A as Qe, x as Ze, y as Xe, z as Ye, D as et, B as tt, C as st, F as it, G as rt, I as ot, J as nt, K as at, M as ct, O as ut, Q as dt, R as pt, V as lt, W as ft, X as ht, Y as gt, Z as mt, _ as St, $ as yt, a0 as Et, a1 as wt, a2 as It, a3 as xt, a4 as bt, a5 as Pt, a6 as Ct, a7 as Rt, a8 as At, a9 as _t, aa as vt, ab as kt, ac as Dt, ad as Se, ae as ye } from "./index-
|
|
1
|
+
import { H as De, N as _, a as Oe, c as F, b as A, t as pe, S as z, U as Te, f as le, L as fe, d as he, p as Me, e as $e, g as Fe, h as N, i as Ne, v as ze, P as Ue, j as je, T as w, r as Ge, n as ge, k as Le, l as He, m as Je, o as me, E as qe, q as Be, s as Ve, u as We, w as Ke, A as Qe, x as Ze, y as Xe, z as Ye, D as et, B as tt, C as st, F as it, G as rt, I as ot, J as nt, K as at, M as ct, O as ut, Q as dt, R as pt, V as lt, W as ft, X as ht, Y as gt, Z as mt, _ as St, $ as yt, a0 as Et, a1 as wt, a2 as It, a3 as xt, a4 as bt, a5 as Pt, a6 as Ct, a7 as Rt, a8 as At, a9 as _t, aa as vt, ab as kt, ac as Dt, ad as Se, ae as ye } from "./index-B7PCLgpM.mjs";
|
|
2
2
|
class Ot extends De {
|
|
3
3
|
async serializeRequest(t, e, r) {
|
|
4
4
|
const i = this.serializer, n = {}, o = {}, a = await r.endpoint(), c = _.of(t?.input), p = c.getSchema();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-D3Jm-ikP.js");class Se extends s.HttpProtocol{async serializeRequest(t,e,o){const r=this.serializer,a={},n={},c=await o.endpoint(),u=s.NormalizedSchema.of(t?.input),l=u.getSchema();let p;const h=new s.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:a,headers:n,body:void 0});c&&(this.updateServiceEndpoint(h,c),this.setHostPrefix(h,t,e));const f={...e};if(e){const m=u.getEventStreamMember();if(m){if(f[m]){const y={};for(const[A,ye]of u.structIterator())A!==m&&f[A]&&(r.write(ye,f[A]),y[A]=r.flush());p=await this.serializeEventStream({eventStream:f[m],requestSchema:u,initialRequest:y})}}else r.write(l,f),p=r.flush()}return h.headers=n,h.query=a,h.body=p,h.method="POST",h}async deserializeResponse(t,e,o){const r=this.deserializer,a=s.NormalizedSchema.of(t.output),n={};if(o.statusCode>=300){const u=await s.collectBody(o.body,e);throw u.byteLength>0&&Object.assign(n,await r.read(15,u)),await this.handleError(t,e,o,n,this.deserializeMetadata(o)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const u in o.headers){const l=o.headers[u];delete o.headers[u],o.headers[u.toLowerCase()]=l}const c=a.getEventStreamMember();if(c)n[c]=await this.deserializeEventStream({response:o,responseSchema:a,initialResponseContainer:n});else{const u=await s.collectBody(o.body,e);u.byteLength>0&&Object.assign(n,await r.read(a,u))}return n.$metadata=this.deserializeMetadata(o),n}}class Ee{async sign(t,e,o){return t}}function we(i,t,e){if(e?.source){const o=e.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||o!==String(t)))return o.includes(".")?new s.NumericValue(o,"bigDecimal"):BigInt(o)}return t}const Ie=(i,t)=>s.collectBody(i,t).then(e=>(t?.utf8Encoder??s.toUtf8)(e)),xe=(i,t)=>Ie(i,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:e}),o}return{}}),be=(i,t)=>{const e=(a,n)=>Object.keys(a).find(c=>c.toLowerCase()===n.toLowerCase()),o=a=>{let n=a;return typeof n=="number"&&(n=n.toString()),n.indexOf(",")>=0&&(n=n.split(",")[0]),n.indexOf(":")>=0&&(n=n.split(":")[0]),n.indexOf("#")>=0&&(n=n.split("#")[1]),n},r=e(i.headers,"x-amzn-errortype");if(r!==void 0)return o(i.headers[r]);if(t&&typeof t=="object"){const a=e(t,"code");if(a&&t[a]!==void 0)return o(t[a]);if(t.__type!==void 0)return o(t.__type)}};class Ce extends s.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}async read(t,e){return this._read(t,typeof e=="string"?JSON.parse(e,we):await xe(e,this.serdeContext))}readObject(t,e){return this._read(t,e)}_read(t,e){const o=e!==null&&typeof e=="object",r=s.NormalizedSchema.of(t);if(o){if(r.isStructSchema()){const n=e,c=r.isUnionSchema(),u={};let l;const{jsonName:p}=this.settings;p&&(l={});let h;c&&(h=new s.UnionSerde(n,u));for(const[f,m]of r.structIterator()){let y=f;p&&(y=m.getMergedTraits().jsonName??y,l[y]=f),c&&h.mark(y),n[y]!=null&&(u[f]=this._read(m,n[y]))}if(c)h.writeUnknown();else if(typeof n.__type=="string")for(const[f,m]of Object.entries(n)){const y=p?l[f]??f:f;y in u||(u[y]=m)}return u}if(Array.isArray(e)&&r.isListSchema()){const n=r.getValueSchema(),c=[],u=!!r.getMergedTraits().sparse;for(const l of e)(u||l!=null)&&c.push(this._read(n,l));return c}if(r.isMapSchema()){const n=r.getValueSchema(),c={},u=!!r.getMergedTraits().sparse;for(const[l,p]of Object.entries(e))(u||p!=null)&&(c[l]=this._read(n,p));return c}}if(r.isBlobSchema()&&typeof e=="string")return s.fromBase64(e);const a=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof e=="string"&&a)return a==="application/json"||a.endsWith("+json")?s.LazyJsonString.from(e):e;if(r.isTimestampSchema()&&e!=null)switch(s.determineTimestampFormat(r,this.settings)){case 5:return s.parseRfc3339DateTimeWithOffset(e);case 6:return s.parseRfc7231DateTime(e);case 7:return s.parseEpochTimestamp(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(r.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(r.isBigDecimalSchema()&&e!=null){if(e instanceof s.NumericValue)return e;const n=e;return n.type==="bigDecimal"&&"string"in n?new s.NumericValue(n.string,n.type):new s.NumericValue(String(e),"bigDecimal")}if(r.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(r.isDocumentSchema())if(o){const n=Array.isArray(e)?[]:{};for(const[c,u]of Object.entries(e))u instanceof s.NumericValue?n[c]=u:n[c]=this._read(r,u);return n}else return structuredClone(e);return e}}const W="Ν";class Pe{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,e)=>{if(e instanceof s.NumericValue){const o=`${W+"nv"+this.counter++}_`+e.string;return this.values.set(`"${o}"`,e.string),o}if(typeof e=="bigint"){const o=e.toString(),r=`${W+"b"+this.counter++}_`+o;return this.values.set(`"${r}"`,o),r}return e}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[e,o]of this.values)t=t.replace(e,o);return t}}class Re extends s.SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,e){this.rootSchema=s.NormalizedSchema.of(t),this.buffer=this._write(this.rootSchema,e)}writeDiscriminatedDocument(t,e){this.write(t,e),typeof this.buffer=="object"&&(this.buffer.__type=s.NormalizedSchema.of(t).getName(!0))}flush(){const{rootSchema:t,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);const o=new Pe;return o.replaceInJson(JSON.stringify(this.buffer,o.createReplacer(),0))}return this.buffer}_write(t,e,o){const r=e!==null&&typeof e=="object",a=s.NormalizedSchema.of(t);if(r){if(a.isStructSchema()){const n=e,c={},{jsonName:u}=this.settings;let l;u&&(l={});for(const[p,h]of a.structIterator()){const f=this._write(h,n[p],a);if(f!==void 0){let m=p;u&&(m=h.getMergedTraits().jsonName??p,l[p]=m),c[m]=f}}if(a.isUnionSchema()&&Object.keys(c).length===0){const{$unknown:p}=n;if(Array.isArray(p)){const[h,f]=p;c[h]=this._write(15,f)}}else if(typeof n.__type=="string")for(const[p,h]of Object.entries(n)){const f=u?l[p]??p:p;f in c||(c[f]=this._write(15,h))}return c}if(Array.isArray(e)&&a.isListSchema()){const n=a.getValueSchema(),c=[],u=!!a.getMergedTraits().sparse;for(const l of e)(u||l!=null)&&c.push(this._write(n,l));return c}if(a.isMapSchema()){const n=a.getValueSchema(),c={},u=!!a.getMergedTraits().sparse;for(const[l,p]of Object.entries(e))(u||p!=null)&&(c[l]=this._write(n,p));return c}if(e instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema()))return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??s.toBase64)(e);if(e instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema()))switch(s.determineTimestampFormat(a,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return s.dateToUtcString(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof s.NumericValue&&(this.useReplacer=!0)}if(!(e===null&&o?.isStructSchema())){if(a.isStringSchema()){if(typeof e>"u"&&a.isIdempotencyToken())return s.v4();const n=a.getMergedTraits().mediaType;return e!=null&&n&&(n==="application/json"||n.endsWith("+json"))?s.LazyJsonString.from(e):e}if(typeof e=="number"&&a.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&a.isBlobSchema())return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??s.toBase64)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),a.isDocumentSchema())if(r){const n=Array.isArray(e)?[]:{};for(const[c,u]of Object.entries(e))u instanceof s.NumericValue?(this.useReplacer=!0,n[c]=u):n[c]=this._write(a,u);return n}else return structuredClone(e);return e}}}class Ae extends s.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new Re(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new Ce(this.settings);return t.setSerdeContext(this.serdeContext),t}}class _e extends Se{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:o,jsonCodec:r}){super({defaultNamespace:t}),this.serviceTarget=e,this.codec=r??new Ae({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new s.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,e,o){const r=await super.serializeRequest(t,e,o);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),(s.deref(t.input)==="unit"||!r.body)&&(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(t,e,o,r,a){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,o);const n=be(o,r)??"Unknown",{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(n,this.options.defaultNamespace,o,r,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),l=s.NormalizedSchema.of(c),p=r.message??r.Message??"Unknown",h=s.TypeRegistry.for(c[1]).getErrorCtor(c)??Error,f=new h(p),m={};for(const[y,A]of l.structIterator())r[y]!=null&&(m[y]=this.codec.createDeserializer().readObject(A,r[y]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,m),this.mixin.decorateServiceException(Object.assign(f,u,{$fault:l.getMergedTraits().error,message:p},m),r)}}class ve extends _e{constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:o,jsonCodec:r}){super({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:o,jsonCodec:r})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const ke=async(i,t,e)=>({operation:s.getSmithyContext(t).operation,region:await s.normalizeProvider(i.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Te(i){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:i.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}function O(i){return{schemeId:"smithy.api#noAuth"}}const De=i=>{const t=[];switch(i.operation){case"GetCredentialsForIdentity":{t.push(O());break}case"GetId":{t.push(O());break}case"GetOpenIdToken":{t.push(O());break}case"UnlinkIdentity":{t.push(O());break}default:t.push(Te(i))}return t},Oe=i=>{const t=s.resolveAwsSdkSigV4Config(i);return Object.assign(t,{authSchemePreference:s.normalizeProvider(i.authSchemePreference??[])})},Ne=i=>Object.assign(i,{useDualstackEndpoint:i.useDualstackEndpoint??!1,useFipsEndpoint:i.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),ne={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Me="3.980.0",ze={version:Me},ae=(i,t=!1)=>{if(t){for(const e of i.split("."))if(!ae(e))return!1;return!0}return!(!s.isValidHostLabel(i)||i.length<3||i.length>63||i!==i.toLowerCase()||s.isIpAddress(i))},K=":",Fe="/",$e=i=>{const t=i.split(K);if(t.length<6)return null;const[e,o,r,a,n,...c]=t;if(e!=="arn"||o===""||r===""||c.join(K)==="")return null;const u=c.map(l=>l.split(Fe)).flat();return{partition:o,service:r,region:a,accountId:n,resourceId:u}},Ue=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],je={partitions:Ue};let Ge=je;const Le=i=>{const{partitions:t}=Ge;for(const o of t){const{regions:r,outputs:a}=o;for(const[n,c]of Object.entries(r))if(n===i)return{...a,...c}}for(const o of t){const{regionRegex:r,outputs:a}=o;if(new RegExp(r).test(i))return{...a}}const e=t.find(o=>o.id==="aws");if(!e)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...e.outputs}},ce={isVirtualHostableS3Bucket:ae,parseArn:$e,partition:Le};s.customEndpointFunctions.aws=ce;const ue="required",S="fn",E="argv",v="ref",Q=!0,Z="isSet",D="booleanEquals",_="error",b="endpoint",R="tree",N="PartitionResult",M="getAttr",k="stringEquals",X={[ue]:!1,type:"string"},Y={[ue]:!0,default:!1,type:"boolean"},ee={[v]:"Endpoint"},de={[S]:D,[E]:[{[v]:"UseFIPS"},!0]},pe={[S]:D,[E]:[{[v]:"UseDualStack"},!0]},g={},T={[v]:"Region"},te={[S]:M,[E]:[{[v]:N},"supportsFIPS"]},le={[v]:N},se={[S]:D,[E]:[!0,{[S]:M,[E]:[le,"supportsDualStack"]}]},ie=[de],re=[pe],oe=[T],He={parameters:{Region:X,UseDualStack:Y,UseFIPS:Y,Endpoint:X},rules:[{conditions:[{[S]:Z,[E]:[ee]}],rules:[{conditions:ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:_},{conditions:re,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:_},{endpoint:{url:ee,properties:g,headers:g},type:b}],type:R},{conditions:[{[S]:Z,[E]:oe}],rules:[{conditions:[{[S]:"aws.partition",[E]:oe,assign:N}],rules:[{conditions:[de,pe],rules:[{conditions:[{[S]:D,[E]:[Q,te]},se],rules:[{conditions:[{[S]:k,[E]:[T,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:g,headers:g},type:b},{conditions:[{[S]:k,[E]:[T,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:g,headers:g},type:b},{conditions:[{[S]:k,[E]:[T,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:g,headers:g},type:b},{conditions:[{[S]:k,[E]:[T,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:g,headers:g},type:b},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:b}],type:R},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:_}],type:R},{conditions:ie,rules:[{conditions:[{[S]:D,[E]:[te,Q]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:b}],type:R},{error:"FIPS is enabled but this partition does not support FIPS",type:_}],type:R},{conditions:re,rules:[{conditions:[se],rules:[{conditions:[{[S]:k,[E]:["aws",{[S]:M,[E]:[le,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:g,headers:g},type:b},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:b}],type:R},{error:"DualStack is enabled but this partition does not support DualStack",type:_}],type:R},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:b}],type:R}],type:R},{error:"Invalid Configuration: Missing Region",type:_}]},Be=He,Je=new s.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ve=(i,t={})=>Je.get(i,()=>s.resolveEndpoint(Be,{endpointParams:i,logger:t.logger}));s.customEndpointFunctions.aws=ce;const qe=i=>({apiVersion:"2014-06-30",base64Decoder:i?.base64Decoder??s.fromBase64,base64Encoder:i?.base64Encoder??s.toBase64,disableHostPrefix:i?.disableHostPrefix??!1,endpointProvider:i?.endpointProvider??Ve,extensions:i?.extensions??[],httpAuthSchemeProvider:i?.httpAuthSchemeProvider??De,httpAuthSchemes:i?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new s.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ee}],logger:i?.logger??new s.NoOpLogger,protocol:i?.protocol??ve,protocolSettings:i?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:i?.serviceId??"Cognito Identity",urlParser:i?.urlParser??s.parseUrl,utf8Decoder:i?.utf8Decoder??s.fromUtf8,utf8Encoder:i?.utf8Encoder??s.toUtf8}),We=i=>{const t=s.resolveDefaultsModeConfig(i),e=()=>t().then(s.loadConfigsForDefaultMode),o=qe(i);return{...o,...i,runtime:"browser",defaultsMode:t,bodyLengthChecker:i?.bodyLengthChecker??s.calculateBodyLength,credentialDefaultProvider:i?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:i?.defaultUserAgentProvider??s.createDefaultUserAgentProvider({serviceId:o.serviceId,clientVersion:ze.version}),maxAttempts:i?.maxAttempts??s.DEFAULT_MAX_ATTEMPTS,region:i?.region??s.invalidProvider("Region is missing"),requestHandler:s.FetchHttpHandler.create(i?.requestHandler??e),retryMode:i?.retryMode??(async()=>(await e()).retryMode||s.DEFAULT_RETRY_MODE),sha256:i?.sha256??s.Sha256,streamCollector:i?.streamCollector??s.streamCollector,useDualstackEndpoint:i?.useDualstackEndpoint??(()=>Promise.resolve(s.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:i?.useFipsEndpoint??(()=>Promise.resolve(s.DEFAULT_USE_FIPS_ENDPOINT))}},Ke=i=>{const t=i.httpAuthSchemes;let e=i.httpAuthSchemeProvider,o=i.credentials;return{setHttpAuthScheme(r){const a=t.findIndex(n=>n.schemeId===r.schemeId);a===-1?t.push(r):t.splice(a,1,r)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(r){e=r},httpAuthSchemeProvider(){return e},setCredentials(r){o=r},credentials(){return o}}},Qe=i=>({httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()}),Ze=(i,t)=>{const e=Object.assign(s.getAwsRegionExtensionConfiguration(i),s.getDefaultExtensionConfiguration(i),s.getHttpHandlerExtensionConfiguration(i),Ke(i));return t.forEach(o=>o.configure(e)),Object.assign(i,s.resolveAwsRegionExtensionConfiguration(e),s.resolveDefaultRuntimeConfig(e),s.resolveHttpHandlerRuntimeConfig(e),Qe(e))};class Xe extends s.Client{config;constructor(...[t]){const e=We(t||{});super(e),this.initConfig=e;const o=Ne(e),r=s.resolveUserAgentConfig(o),a=s.resolveRetryConfig(r),n=s.resolveRegionConfig(a),c=s.resolveHostHeaderConfig(n),u=s.resolveEndpointConfig(c),l=Oe(u),p=Ze(l,t?.extensions||[]);this.config=p,this.middlewareStack.use(s.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(s.getUserAgentPlugin(this.config)),this.middlewareStack.use(s.getRetryPlugin(this.config)),this.middlewareStack.use(s.getContentLengthPlugin(this.config)),this.middlewareStack.use(s.getHostHeaderPlugin(this.config)),this.middlewareStack.use(s.getLoggerPlugin(this.config)),this.middlewareStack.use(s.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(s.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ke,identityProviderConfigProvider:async h=>new s.DefaultIdentityProviderConfig({"aws.auth#sigv4":h.credentials})})),this.middlewareStack.use(s.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class w extends s.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,w.prototype)}}class z extends w{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,z.prototype)}}class F extends w{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,F.prototype)}}class $ extends w{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,$.prototype)}}class U extends w{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class j extends w{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,j.prototype)}}class G extends w{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,G.prototype)}}class L extends w{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,L.prototype)}}class H extends w{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}class B extends w{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,B.prototype)}}class J extends w{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}}class V extends w{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,V.prototype)}}const Ye="AccountId",et="AccessKeyId",fe="Credentials",tt="ConcurrentModificationException",st="CustomRoleArn",it="DeveloperUserAlreadyRegisteredException",rt="Expiration",ot="ExternalServiceException",nt="GetCredentialsForIdentity",at="GetCredentialsForIdentityInput",ct="GetCredentialsForIdentityResponse",ut="GetId",dt="GetIdInput",pt="GetIdResponse",lt="InternalErrorException",q="IdentityId",ft="InvalidIdentityPoolConfigurationException",ht="InvalidParameterException",gt="IdentityPoolId",mt="IdentityProviderToken",he="Logins",yt="LimitExceededException",St="LoginsMap",Et="NotAuthorizedException",wt="ResourceConflictException",It="ResourceNotFoundException",xt="SecretKey",bt="SecretKeyString",Ct="SessionToken",Pt="TooManyRequestsException",C="client",I="error",P="httpError",x="message",Rt="server",ge="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",d="com.amazonaws.cognitoidentity";var At=[0,d,mt,8,0],_t=[0,d,bt,8,0],vt=[-3,d,tt,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(vt,V);var kt=[3,d,fe,0,[et,xt,Ct,rt],[0,[()=>_t,0],0,4]],Tt=[-3,d,it,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(Tt,J);var Dt=[-3,d,ot,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(Dt,H);var Ot=[3,d,at,0,[q,he,st],[0,[()=>me,0],0],1],Nt=[3,d,ct,0,[q,fe],[0,[()=>kt,0]]],Mt=[3,d,dt,0,[gt,Ye,he],[0,0,[()=>me,0]],1],zt=[3,d,pt,0,[q],[0]],Ft=[-3,d,lt,{[I]:Rt},[x],[0]];s.TypeRegistry.for(d).registerError(Ft,z);var $t=[-3,d,ft,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError($t,B);var Ut=[-3,d,ht,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(Ut,F);var jt=[-3,d,yt,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(jt,$);var Gt=[-3,d,Et,{[I]:C,[P]:403},[x],[0]];s.TypeRegistry.for(d).registerError(Gt,U);var Lt=[-3,d,wt,{[I]:C,[P]:409},[x],[0]];s.TypeRegistry.for(d).registerError(Lt,j);var Ht=[-3,d,It,{[I]:C,[P]:404},[x],[0]];s.TypeRegistry.for(d).registerError(Ht,L);var Bt=[-3,d,Pt,{[I]:C,[P]:429},[x],[0]];s.TypeRegistry.for(d).registerError(Bt,G);var Jt=[-3,ge,"CognitoIdentityServiceException",0,[],[]];s.TypeRegistry.for(ge).registerError(Jt,w);var me=[2,d,St,0,[0,0],[()=>At,0]],Vt=[9,d,nt,0,()=>Ot,()=>Nt],qt=[9,d,ut,0,()=>Mt,()=>zt];class Wt extends s.Command.classBuilder().ep(ne).m(function(t,e,o,r){return[s.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Vt).build(){}class Kt extends s.Command.classBuilder().ep(ne).m(function(t,e,o,r){return[s.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(qt).build(){}exports.CognitoIdentityClient=Xe;exports.GetCredentialsForIdentityCommand=Wt;exports.GetIdCommand=Kt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CSJSFvJg.js");class Se extends s.HttpProtocol{async serializeRequest(t,e,o){const r=this.serializer,a={},n={},c=await o.endpoint(),u=s.NormalizedSchema.of(t?.input),l=u.getSchema();let p;const h=new s.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:a,headers:n,body:void 0});c&&(this.updateServiceEndpoint(h,c),this.setHostPrefix(h,t,e));const f={...e};if(e){const m=u.getEventStreamMember();if(m){if(f[m]){const y={};for(const[A,ye]of u.structIterator())A!==m&&f[A]&&(r.write(ye,f[A]),y[A]=r.flush());p=await this.serializeEventStream({eventStream:f[m],requestSchema:u,initialRequest:y})}}else r.write(l,f),p=r.flush()}return h.headers=n,h.query=a,h.body=p,h.method="POST",h}async deserializeResponse(t,e,o){const r=this.deserializer,a=s.NormalizedSchema.of(t.output),n={};if(o.statusCode>=300){const u=await s.collectBody(o.body,e);throw u.byteLength>0&&Object.assign(n,await r.read(15,u)),await this.handleError(t,e,o,n,this.deserializeMetadata(o)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const u in o.headers){const l=o.headers[u];delete o.headers[u],o.headers[u.toLowerCase()]=l}const c=a.getEventStreamMember();if(c)n[c]=await this.deserializeEventStream({response:o,responseSchema:a,initialResponseContainer:n});else{const u=await s.collectBody(o.body,e);u.byteLength>0&&Object.assign(n,await r.read(a,u))}return n.$metadata=this.deserializeMetadata(o),n}}class Ee{async sign(t,e,o){return t}}function we(i,t,e){if(e?.source){const o=e.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||o!==String(t)))return o.includes(".")?new s.NumericValue(o,"bigDecimal"):BigInt(o)}return t}const Ie=(i,t)=>s.collectBody(i,t).then(e=>(t?.utf8Encoder??s.toUtf8)(e)),xe=(i,t)=>Ie(i,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:e}),o}return{}}),be=(i,t)=>{const e=(a,n)=>Object.keys(a).find(c=>c.toLowerCase()===n.toLowerCase()),o=a=>{let n=a;return typeof n=="number"&&(n=n.toString()),n.indexOf(",")>=0&&(n=n.split(",")[0]),n.indexOf(":")>=0&&(n=n.split(":")[0]),n.indexOf("#")>=0&&(n=n.split("#")[1]),n},r=e(i.headers,"x-amzn-errortype");if(r!==void 0)return o(i.headers[r]);if(t&&typeof t=="object"){const a=e(t,"code");if(a&&t[a]!==void 0)return o(t[a]);if(t.__type!==void 0)return o(t.__type)}};class Ce extends s.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}async read(t,e){return this._read(t,typeof e=="string"?JSON.parse(e,we):await xe(e,this.serdeContext))}readObject(t,e){return this._read(t,e)}_read(t,e){const o=e!==null&&typeof e=="object",r=s.NormalizedSchema.of(t);if(o){if(r.isStructSchema()){const n=e,c=r.isUnionSchema(),u={};let l;const{jsonName:p}=this.settings;p&&(l={});let h;c&&(h=new s.UnionSerde(n,u));for(const[f,m]of r.structIterator()){let y=f;p&&(y=m.getMergedTraits().jsonName??y,l[y]=f),c&&h.mark(y),n[y]!=null&&(u[f]=this._read(m,n[y]))}if(c)h.writeUnknown();else if(typeof n.__type=="string")for(const[f,m]of Object.entries(n)){const y=p?l[f]??f:f;y in u||(u[y]=m)}return u}if(Array.isArray(e)&&r.isListSchema()){const n=r.getValueSchema(),c=[],u=!!r.getMergedTraits().sparse;for(const l of e)(u||l!=null)&&c.push(this._read(n,l));return c}if(r.isMapSchema()){const n=r.getValueSchema(),c={},u=!!r.getMergedTraits().sparse;for(const[l,p]of Object.entries(e))(u||p!=null)&&(c[l]=this._read(n,p));return c}}if(r.isBlobSchema()&&typeof e=="string")return s.fromBase64(e);const a=r.getMergedTraits().mediaType;if(r.isStringSchema()&&typeof e=="string"&&a)return a==="application/json"||a.endsWith("+json")?s.LazyJsonString.from(e):e;if(r.isTimestampSchema()&&e!=null)switch(s.determineTimestampFormat(r,this.settings)){case 5:return s.parseRfc3339DateTimeWithOffset(e);case 6:return s.parseRfc7231DateTime(e);case 7:return s.parseEpochTimestamp(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(r.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(r.isBigDecimalSchema()&&e!=null){if(e instanceof s.NumericValue)return e;const n=e;return n.type==="bigDecimal"&&"string"in n?new s.NumericValue(n.string,n.type):new s.NumericValue(String(e),"bigDecimal")}if(r.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(r.isDocumentSchema())if(o){const n=Array.isArray(e)?[]:{};for(const[c,u]of Object.entries(e))u instanceof s.NumericValue?n[c]=u:n[c]=this._read(r,u);return n}else return structuredClone(e);return e}}const W="Ν";class Pe{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,e)=>{if(e instanceof s.NumericValue){const o=`${W+"nv"+this.counter++}_`+e.string;return this.values.set(`"${o}"`,e.string),o}if(typeof e=="bigint"){const o=e.toString(),r=`${W+"b"+this.counter++}_`+o;return this.values.set(`"${r}"`,o),r}return e}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[e,o]of this.values)t=t.replace(e,o);return t}}class Re extends s.SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,e){this.rootSchema=s.NormalizedSchema.of(t),this.buffer=this._write(this.rootSchema,e)}writeDiscriminatedDocument(t,e){this.write(t,e),typeof this.buffer=="object"&&(this.buffer.__type=s.NormalizedSchema.of(t).getName(!0))}flush(){const{rootSchema:t,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);const o=new Pe;return o.replaceInJson(JSON.stringify(this.buffer,o.createReplacer(),0))}return this.buffer}_write(t,e,o){const r=e!==null&&typeof e=="object",a=s.NormalizedSchema.of(t);if(r){if(a.isStructSchema()){const n=e,c={},{jsonName:u}=this.settings;let l;u&&(l={});for(const[p,h]of a.structIterator()){const f=this._write(h,n[p],a);if(f!==void 0){let m=p;u&&(m=h.getMergedTraits().jsonName??p,l[p]=m),c[m]=f}}if(a.isUnionSchema()&&Object.keys(c).length===0){const{$unknown:p}=n;if(Array.isArray(p)){const[h,f]=p;c[h]=this._write(15,f)}}else if(typeof n.__type=="string")for(const[p,h]of Object.entries(n)){const f=u?l[p]??p:p;f in c||(c[f]=this._write(15,h))}return c}if(Array.isArray(e)&&a.isListSchema()){const n=a.getValueSchema(),c=[],u=!!a.getMergedTraits().sparse;for(const l of e)(u||l!=null)&&c.push(this._write(n,l));return c}if(a.isMapSchema()){const n=a.getValueSchema(),c={},u=!!a.getMergedTraits().sparse;for(const[l,p]of Object.entries(e))(u||p!=null)&&(c[l]=this._write(n,p));return c}if(e instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema()))return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??s.toBase64)(e);if(e instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema()))switch(s.determineTimestampFormat(a,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return s.dateToUtcString(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof s.NumericValue&&(this.useReplacer=!0)}if(!(e===null&&o?.isStructSchema())){if(a.isStringSchema()){if(typeof e>"u"&&a.isIdempotencyToken())return s.v4();const n=a.getMergedTraits().mediaType;return e!=null&&n&&(n==="application/json"||n.endsWith("+json"))?s.LazyJsonString.from(e):e}if(typeof e=="number"&&a.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&a.isBlobSchema())return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??s.toBase64)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),a.isDocumentSchema())if(r){const n=Array.isArray(e)?[]:{};for(const[c,u]of Object.entries(e))u instanceof s.NumericValue?(this.useReplacer=!0,n[c]=u):n[c]=this._write(a,u);return n}else return structuredClone(e);return e}}}class Ae extends s.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new Re(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new Ce(this.settings);return t.setSerdeContext(this.serdeContext),t}}class _e extends Se{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:o,jsonCodec:r}){super({defaultNamespace:t}),this.serviceTarget=e,this.codec=r??new Ae({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!o,this.mixin=new s.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,e,o){const r=await super.serializeRequest(t,e,o);return r.path.endsWith("/")||(r.path+="/"),Object.assign(r.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),(s.deref(t.input)==="unit"||!r.body)&&(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(t,e,o,r,a){this.awsQueryCompatible&&this.mixin.setQueryCompatError(r,o);const n=be(o,r)??"Unknown",{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(n,this.options.defaultNamespace,o,r,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),l=s.NormalizedSchema.of(c),p=r.message??r.Message??"Unknown",h=s.TypeRegistry.for(c[1]).getErrorCtor(c)??Error,f=new h(p),m={};for(const[y,A]of l.structIterator())r[y]!=null&&(m[y]=this.codec.createDeserializer().readObject(A,r[y]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(r,m),this.mixin.decorateServiceException(Object.assign(f,u,{$fault:l.getMergedTraits().error,message:p},m),r)}}class ve extends _e{constructor({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:o,jsonCodec:r}){super({defaultNamespace:t,serviceTarget:e,awsQueryCompatible:o,jsonCodec:r})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const ke=async(i,t,e)=>({operation:s.getSmithyContext(t).operation,region:await s.normalizeProvider(i.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Te(i){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:i.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}function O(i){return{schemeId:"smithy.api#noAuth"}}const De=i=>{const t=[];switch(i.operation){case"GetCredentialsForIdentity":{t.push(O());break}case"GetId":{t.push(O());break}case"GetOpenIdToken":{t.push(O());break}case"UnlinkIdentity":{t.push(O());break}default:t.push(Te(i))}return t},Oe=i=>{const t=s.resolveAwsSdkSigV4Config(i);return Object.assign(t,{authSchemePreference:s.normalizeProvider(i.authSchemePreference??[])})},Ne=i=>Object.assign(i,{useDualstackEndpoint:i.useDualstackEndpoint??!1,useFipsEndpoint:i.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),ne={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Me="3.980.0",ze={version:Me},ae=(i,t=!1)=>{if(t){for(const e of i.split("."))if(!ae(e))return!1;return!0}return!(!s.isValidHostLabel(i)||i.length<3||i.length>63||i!==i.toLowerCase()||s.isIpAddress(i))},K=":",Fe="/",$e=i=>{const t=i.split(K);if(t.length<6)return null;const[e,o,r,a,n,...c]=t;if(e!=="arn"||o===""||r===""||c.join(K)==="")return null;const u=c.map(l=>l.split(Fe)).flat();return{partition:o,service:r,region:a,accountId:n,resourceId:u}},Ue=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],je={partitions:Ue};let Ge=je;const Le=i=>{const{partitions:t}=Ge;for(const o of t){const{regions:r,outputs:a}=o;for(const[n,c]of Object.entries(r))if(n===i)return{...a,...c}}for(const o of t){const{regionRegex:r,outputs:a}=o;if(new RegExp(r).test(i))return{...a}}const e=t.find(o=>o.id==="aws");if(!e)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...e.outputs}},ce={isVirtualHostableS3Bucket:ae,parseArn:$e,partition:Le};s.customEndpointFunctions.aws=ce;const ue="required",S="fn",E="argv",v="ref",Q=!0,Z="isSet",D="booleanEquals",_="error",b="endpoint",R="tree",N="PartitionResult",M="getAttr",k="stringEquals",X={[ue]:!1,type:"string"},Y={[ue]:!0,default:!1,type:"boolean"},ee={[v]:"Endpoint"},de={[S]:D,[E]:[{[v]:"UseFIPS"},!0]},pe={[S]:D,[E]:[{[v]:"UseDualStack"},!0]},g={},T={[v]:"Region"},te={[S]:M,[E]:[{[v]:N},"supportsFIPS"]},le={[v]:N},se={[S]:D,[E]:[!0,{[S]:M,[E]:[le,"supportsDualStack"]}]},ie=[de],re=[pe],oe=[T],He={parameters:{Region:X,UseDualStack:Y,UseFIPS:Y,Endpoint:X},rules:[{conditions:[{[S]:Z,[E]:[ee]}],rules:[{conditions:ie,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:_},{conditions:re,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:_},{endpoint:{url:ee,properties:g,headers:g},type:b}],type:R},{conditions:[{[S]:Z,[E]:oe}],rules:[{conditions:[{[S]:"aws.partition",[E]:oe,assign:N}],rules:[{conditions:[de,pe],rules:[{conditions:[{[S]:D,[E]:[Q,te]},se],rules:[{conditions:[{[S]:k,[E]:[T,"us-east-1"]}],endpoint:{url:"https://cognito-identity-fips.us-east-1.amazonaws.com",properties:g,headers:g},type:b},{conditions:[{[S]:k,[E]:[T,"us-east-2"]}],endpoint:{url:"https://cognito-identity-fips.us-east-2.amazonaws.com",properties:g,headers:g},type:b},{conditions:[{[S]:k,[E]:[T,"us-west-1"]}],endpoint:{url:"https://cognito-identity-fips.us-west-1.amazonaws.com",properties:g,headers:g},type:b},{conditions:[{[S]:k,[E]:[T,"us-west-2"]}],endpoint:{url:"https://cognito-identity-fips.us-west-2.amazonaws.com",properties:g,headers:g},type:b},{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:b}],type:R},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:_}],type:R},{conditions:ie,rules:[{conditions:[{[S]:D,[E]:[te,Q]}],rules:[{endpoint:{url:"https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:b}],type:R},{error:"FIPS is enabled but this partition does not support FIPS",type:_}],type:R},{conditions:re,rules:[{conditions:[se],rules:[{conditions:[{[S]:k,[E]:["aws",{[S]:M,[E]:[le,"name"]}]}],endpoint:{url:"https://cognito-identity.{Region}.amazonaws.com",properties:g,headers:g},type:b},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:g,headers:g},type:b}],type:R},{error:"DualStack is enabled but this partition does not support DualStack",type:_}],type:R},{endpoint:{url:"https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",properties:g,headers:g},type:b}],type:R}],type:R},{error:"Invalid Configuration: Missing Region",type:_}]},Be=He,Je=new s.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ve=(i,t={})=>Je.get(i,()=>s.resolveEndpoint(Be,{endpointParams:i,logger:t.logger}));s.customEndpointFunctions.aws=ce;const qe=i=>({apiVersion:"2014-06-30",base64Decoder:i?.base64Decoder??s.fromBase64,base64Encoder:i?.base64Encoder??s.toBase64,disableHostPrefix:i?.disableHostPrefix??!1,endpointProvider:i?.endpointProvider??Ve,extensions:i?.extensions??[],httpAuthSchemeProvider:i?.httpAuthSchemeProvider??De,httpAuthSchemes:i?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new s.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ee}],logger:i?.logger??new s.NoOpLogger,protocol:i?.protocol??ve,protocolSettings:i?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:i?.serviceId??"Cognito Identity",urlParser:i?.urlParser??s.parseUrl,utf8Decoder:i?.utf8Decoder??s.fromUtf8,utf8Encoder:i?.utf8Encoder??s.toUtf8}),We=i=>{const t=s.resolveDefaultsModeConfig(i),e=()=>t().then(s.loadConfigsForDefaultMode),o=qe(i);return{...o,...i,runtime:"browser",defaultsMode:t,bodyLengthChecker:i?.bodyLengthChecker??s.calculateBodyLength,credentialDefaultProvider:i?.credentialDefaultProvider??(r=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:i?.defaultUserAgentProvider??s.createDefaultUserAgentProvider({serviceId:o.serviceId,clientVersion:ze.version}),maxAttempts:i?.maxAttempts??s.DEFAULT_MAX_ATTEMPTS,region:i?.region??s.invalidProvider("Region is missing"),requestHandler:s.FetchHttpHandler.create(i?.requestHandler??e),retryMode:i?.retryMode??(async()=>(await e()).retryMode||s.DEFAULT_RETRY_MODE),sha256:i?.sha256??s.Sha256,streamCollector:i?.streamCollector??s.streamCollector,useDualstackEndpoint:i?.useDualstackEndpoint??(()=>Promise.resolve(s.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:i?.useFipsEndpoint??(()=>Promise.resolve(s.DEFAULT_USE_FIPS_ENDPOINT))}},Ke=i=>{const t=i.httpAuthSchemes;let e=i.httpAuthSchemeProvider,o=i.credentials;return{setHttpAuthScheme(r){const a=t.findIndex(n=>n.schemeId===r.schemeId);a===-1?t.push(r):t.splice(a,1,r)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(r){e=r},httpAuthSchemeProvider(){return e},setCredentials(r){o=r},credentials(){return o}}},Qe=i=>({httpAuthSchemes:i.httpAuthSchemes(),httpAuthSchemeProvider:i.httpAuthSchemeProvider(),credentials:i.credentials()}),Ze=(i,t)=>{const e=Object.assign(s.getAwsRegionExtensionConfiguration(i),s.getDefaultExtensionConfiguration(i),s.getHttpHandlerExtensionConfiguration(i),Ke(i));return t.forEach(o=>o.configure(e)),Object.assign(i,s.resolveAwsRegionExtensionConfiguration(e),s.resolveDefaultRuntimeConfig(e),s.resolveHttpHandlerRuntimeConfig(e),Qe(e))};class Xe extends s.Client{config;constructor(...[t]){const e=We(t||{});super(e),this.initConfig=e;const o=Ne(e),r=s.resolveUserAgentConfig(o),a=s.resolveRetryConfig(r),n=s.resolveRegionConfig(a),c=s.resolveHostHeaderConfig(n),u=s.resolveEndpointConfig(c),l=Oe(u),p=Ze(l,t?.extensions||[]);this.config=p,this.middlewareStack.use(s.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(s.getUserAgentPlugin(this.config)),this.middlewareStack.use(s.getRetryPlugin(this.config)),this.middlewareStack.use(s.getContentLengthPlugin(this.config)),this.middlewareStack.use(s.getHostHeaderPlugin(this.config)),this.middlewareStack.use(s.getLoggerPlugin(this.config)),this.middlewareStack.use(s.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(s.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ke,identityProviderConfigProvider:async h=>new s.DefaultIdentityProviderConfig({"aws.auth#sigv4":h.credentials})})),this.middlewareStack.use(s.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class w extends s.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,w.prototype)}}class z extends w{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,z.prototype)}}class F extends w{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,F.prototype)}}class $ extends w{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,$.prototype)}}class U extends w{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class j extends w{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,j.prototype)}}class G extends w{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,G.prototype)}}class L extends w{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,L.prototype)}}class H extends w{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}class B extends w{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,B.prototype)}}class J extends w{name="DeveloperUserAlreadyRegisteredException";$fault="client";constructor(t){super({name:"DeveloperUserAlreadyRegisteredException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}}class V extends w{name="ConcurrentModificationException";$fault="client";constructor(t){super({name:"ConcurrentModificationException",$fault:"client",...t}),Object.setPrototypeOf(this,V.prototype)}}const Ye="AccountId",et="AccessKeyId",fe="Credentials",tt="ConcurrentModificationException",st="CustomRoleArn",it="DeveloperUserAlreadyRegisteredException",rt="Expiration",ot="ExternalServiceException",nt="GetCredentialsForIdentity",at="GetCredentialsForIdentityInput",ct="GetCredentialsForIdentityResponse",ut="GetId",dt="GetIdInput",pt="GetIdResponse",lt="InternalErrorException",q="IdentityId",ft="InvalidIdentityPoolConfigurationException",ht="InvalidParameterException",gt="IdentityPoolId",mt="IdentityProviderToken",he="Logins",yt="LimitExceededException",St="LoginsMap",Et="NotAuthorizedException",wt="ResourceConflictException",It="ResourceNotFoundException",xt="SecretKey",bt="SecretKeyString",Ct="SessionToken",Pt="TooManyRequestsException",C="client",I="error",P="httpError",x="message",Rt="server",ge="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",d="com.amazonaws.cognitoidentity";var At=[0,d,mt,8,0],_t=[0,d,bt,8,0],vt=[-3,d,tt,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(vt,V);var kt=[3,d,fe,0,[et,xt,Ct,rt],[0,[()=>_t,0],0,4]],Tt=[-3,d,it,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(Tt,J);var Dt=[-3,d,ot,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(Dt,H);var Ot=[3,d,at,0,[q,he,st],[0,[()=>me,0],0],1],Nt=[3,d,ct,0,[q,fe],[0,[()=>kt,0]]],Mt=[3,d,dt,0,[gt,Ye,he],[0,0,[()=>me,0]],1],zt=[3,d,pt,0,[q],[0]],Ft=[-3,d,lt,{[I]:Rt},[x],[0]];s.TypeRegistry.for(d).registerError(Ft,z);var $t=[-3,d,ft,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError($t,B);var Ut=[-3,d,ht,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(Ut,F);var jt=[-3,d,yt,{[I]:C,[P]:400},[x],[0]];s.TypeRegistry.for(d).registerError(jt,$);var Gt=[-3,d,Et,{[I]:C,[P]:403},[x],[0]];s.TypeRegistry.for(d).registerError(Gt,U);var Lt=[-3,d,wt,{[I]:C,[P]:409},[x],[0]];s.TypeRegistry.for(d).registerError(Lt,j);var Ht=[-3,d,It,{[I]:C,[P]:404},[x],[0]];s.TypeRegistry.for(d).registerError(Ht,L);var Bt=[-3,d,Pt,{[I]:C,[P]:429},[x],[0]];s.TypeRegistry.for(d).registerError(Bt,G);var Jt=[-3,ge,"CognitoIdentityServiceException",0,[],[]];s.TypeRegistry.for(ge).registerError(Jt,w);var me=[2,d,St,0,[0,0],[()=>At,0]],Vt=[9,d,nt,0,()=>Ot,()=>Nt],qt=[9,d,ut,0,()=>Mt,()=>zt];class Wt extends s.Command.classBuilder().ep(ne).m(function(t,e,o,r){return[s.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(Vt).build(){}class Kt extends s.Command.classBuilder().ep(ne).m(function(t,e,o,r){return[s.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(qt).build(){}exports.CognitoIdentityClient=Xe;exports.GetCredentialsForIdentityCommand=Wt;exports.GetIdCommand=Kt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamic-mui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"author": "Dinakaran S",
|
|
5
5
|
"user": "dinakarans",
|
|
6
6
|
"repository": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"scripts": {
|
|
51
51
|
"dev": "vite",
|
|
52
52
|
"build": "tsc && vite build",
|
|
53
|
+
"build:playground": "vite build -c vite.playground.config.ts",
|
|
53
54
|
"lint": "eslint . --max-warnings 0",
|
|
54
55
|
"preview": "vite preview",
|
|
55
56
|
"test": "vitest run",
|