dynamic-mui 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dynamic-mui.cjs.js +1 -423
- package/dist/dynamic-mui.es.js +10 -84610
- package/dist/index-BJUf5iG7.js +1 -0
- package/dist/index-CZwPjzNR.js +428 -0
- package/dist/index-DueLYDEh.mjs +165 -0
- package/dist/index-Nx4sGg5x.mjs +104322 -0
- package/dist/loadCognitoIdentity-aCnxH9ka.mjs +834 -0
- package/dist/loadCognitoIdentity-nV_2nvxn.js +1 -0
- package/package.json +16 -13
- package/dist/event-streams-BrjdvYD3.js +0 -1
- package/dist/event-streams-tx5d1M9G.mjs +0 -141
- package/dist/extensions-B3BRGnLR.js +0 -16
- package/dist/extensions-DZDYv2QS.mjs +0 -3630
- package/dist/loadCognitoIdentity-BoXMbcFT.mjs +0 -1169
- package/dist/loadCognitoIdentity-pRmj5eK-.js +0 -1
- package/dist/toUtf8.browser-BG3l2gyD.mjs +0 -8
- package/dist/toUtf8.browser-BhMqkDuU.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./extensions-B3BRGnLR.js`),t=require(`./toUtf8.browser-BhMqkDuU.js`);var n=class extends e.G{async serializeRequest(t,n,r){let i=this.serializer,a={},o={},s=await r.endpoint(),c=e.tt.of(t?.input),l=c.getSchema(),u,d=n&&typeof n==`object`?n:{},f=new e.jt({protocol:``,hostname:``,port:void 0,path:`/`,fragment:void 0,query:a,headers:o,body:void 0});if(s&&(this.updateServiceEndpoint(f,s),this.setHostPrefix(f,t,d)),d){let e=c.getEventStreamMember();if(e){if(d[e]){let t={};for(let[n,r]of c.structIterator())n!==e&&d[n]&&(i.write(r,d[n]),t[n]=i.flush());u=await this.serializeEventStream({eventStream:d[e],requestSchema:c,initialRequest:t})}}else i.write(l,d),u=i.flush()}return f.headers=Object.assign(f.headers,o),f.query=a,f.body=u,f.method=`POST`,f}async deserializeResponse(t,n,r){let i=this.deserializer,a=e.tt.of(t.output),o={};if(r.statusCode>=300){let a=await e.ot(r.body,n);throw a.byteLength>0&&Object.assign(o,await i.read(15,a)),await this.handleError(t,n,r,o,this.deserializeMetadata(r)),Error(`@smithy/core/protocols - RPC Protocol error handler failed to throw.`)}for(let e in r.headers){let t=r.headers[e];delete r.headers[e],r.headers[e.toLowerCase()]=t}let s=a.getEventStreamMember();if(s)o[s]=await this.deserializeEventStream({response:r,responseSchema:a,initialResponseContainer:o});else{let t=await e.ot(r.body,n);t.byteLength>0&&Object.assign(o,await i.read(a,t))}return o.$metadata=this.deserializeMetadata(r),o}},r=class{async sign(e,t,n){return e}};function i(t,n,r){if(r?.source){let t=r.source;if(typeof n==`number`&&(n>2**53-1||n<-(2**53-1)||t!==String(n)))return t.includes(`.`)?new e.q(t,`bigDecimal`):BigInt(t)}return n}var a=(t,n)=>e.D(t,n).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw t?.name===`SyntaxError`&&Object.defineProperty(t,`$responseBodyText`,{value:e}),t}return{}}),o=(e,t)=>{let n=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),r=e=>{let t=e;return typeof t==`number`&&(t=t.toString()),t.indexOf(`,`)>=0&&(t=t.split(`,`)[0]),t.indexOf(`:`)>=0&&(t=t.split(`:`)[0]),t.indexOf(`#`)>=0&&(t=t.split(`#`)[1]),t},i=n(e.headers,`x-amzn-errortype`);if(i!==void 0)return r(e.headers[i]);if(t&&typeof t==`object`){let e=n(t,`code`);if(e&&t[e]!==void 0)return r(t[e]);if(t.__type!==void 0)return r(t.__type)}},s=class extends e.k{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,typeof t==`string`?JSON.parse(t,i):await a(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(t,n){let r=typeof n==`object`&&!!n,i=e.tt.of(t);if(r){if(i.isStructSchema()){let t=n,r=i.isUnionSchema(),a={},o,{jsonName:s}=this.settings;s&&(o={});let c;r&&(c=new e.O(t,a));for(let[e,n]of i.structIterator()){let i=e;s&&(i=n.getMergedTraits().jsonName??i,o[i]=e),r&&c.mark(i),t[i]!=null&&(a[e]=this._read(n,t[i]))}if(r)c.writeUnknown();else if(typeof t.__type==`string`)for(let[e,n]of Object.entries(t)){let t=s?o[e]??e:e;t in a||(a[t]=n)}return a}if(Array.isArray(n)&&i.isListSchema()){let e=i.getValueSchema(),t=[];for(let r of n)t.push(this._read(e,r));return t}if(i.isMapSchema()){let e=i.getValueSchema(),t={};for(let[r,i]of Object.entries(n))t[r]=this._read(e,i);return t}}if(i.isBlobSchema()&&typeof n==`string`)return e.Ot(n);let a=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof n==`string`&&a)return a===`application/json`||a.endsWith(`+json`)?e.J.from(n):n;if(i.isTimestampSchema()&&n!=null)switch(e.W(i,this.settings)){case 5:return e.Q(n);case 6:return e.$(n);case 7:return e.Z(n);default:return console.warn(`Missing timestamp format, parsing value with Date constructor:`,n),new Date(n)}if(i.isBigIntegerSchema()&&(typeof n==`number`||typeof n==`string`))return BigInt(n);if(i.isBigDecimalSchema()&&n!=null){if(n instanceof e.q)return n;let t=n;return t.type===`bigDecimal`&&`string`in t?new e.q(t.string,t.type):new e.q(String(n),`bigDecimal`)}if(i.isNumericSchema()&&typeof n==`string`){switch(n){case`Infinity`:return 1/0;case`-Infinity`:return-1/0;case`NaN`:return NaN}return n}if(i.isDocumentSchema())if(r){let t=Array.isArray(n)?[]:{};for(let[r,a]of Object.entries(n))a instanceof e.q?t[r]=a:t[r]=this._read(i,a);return t}else return structuredClone(n);return n}},c=`Ν`,l=class{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error(`@aws-sdk/core/protocols - JsonReplacer already created.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);return this.stage=1,(t,n)=>{if(n instanceof e.q){let e=`${c+`nv`+ this.counter++}_`+n.string;return this.values.set(`"${e}"`,n.string),e}if(typeof n==`bigint`){let e=n.toString(),t=`${c+`b`+ this.counter++}_`+e;return this.values.set(`"${t}"`,e),t}return n}}replaceInJson(e){if(this.stage===0)throw Error(`@aws-sdk/core/protocols - JsonReplacer not created yet.`);if(this.stage===2)throw Error(`@aws-sdk/core/protocols - JsonReplacer exhausted.`);if(this.stage=2,this.counter===0)return e;for(let[t,n]of this.values)e=e.replace(t,n);return e}},u=class extends e.k{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(t,n){this.rootSchema=e.tt.of(t),this.buffer=this._write(this.rootSchema,n)}writeDiscriminatedDocument(t,n){this.write(t,n),typeof this.buffer==`object`&&(this.buffer.__type=e.tt.of(t).getName(!0))}flush(){let{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!t)return JSON.stringify(this.buffer);let e=new l;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(t,n,r){let i=typeof n==`object`&&!!n,a=e.tt.of(t);if(i){if(a.isStructSchema()){let e=n,t={},{jsonName:r}=this.settings,i;r&&(i={});for(let[n,o]of a.structIterator()){let s=this._write(o,e[n],a);if(s!==void 0){let e=n;r&&(e=o.getMergedTraits().jsonName??n,i[n]=e),t[e]=s}}if(a.isUnionSchema()&&Object.keys(t).length===0){let{$unknown:n}=e;if(Array.isArray(n)){let[e,r]=n;t[e]=this._write(15,r)}}else if(typeof e.__type==`string`)for(let[n,a]of Object.entries(e)){let e=r?i[n]??n:n;e in t||(t[e]=this._write(15,a))}return t}if(Array.isArray(n)&&a.isListSchema()){let e=a.getValueSchema(),t=[],r=!!a.getMergedTraits().sparse;for(let i of n)(r||i!=null)&&t.push(this._write(e,i));return t}if(a.isMapSchema()){let e=a.getValueSchema(),t={},r=!!a.getMergedTraits().sparse;for(let[i,a]of Object.entries(n))(r||a!=null)&&(t[i]=this._write(e,a));return t}if(n instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema()))return a===this.rootSchema?n:(this.serdeContext?.base64Encoder??e.Et)(n);if(n instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema()))switch(e.W(a,this.settings)){case 5:return n.toISOString().replace(`.000Z`,`Z`);case 6:return e.X(n);case 7:return n.getTime()/1e3;default:return console.warn(`Missing timestamp format, using epoch seconds`,n),n.getTime()/1e3}n instanceof e.q&&(this.useReplacer=!0)}if(!(n===null&&r?.isStructSchema())){if(a.isStringSchema()){if(n===void 0&&a.isIdempotencyToken())return e.Y();let t=a.getMergedTraits().mediaType;return n!=null&&t&&(t===`application/json`||t.endsWith(`+json`))?e.J.from(n):n}if(typeof n==`number`&&a.isNumericSchema())return Math.abs(n)===1/0||isNaN(n)?String(n):n;if(typeof n==`string`&&a.isBlobSchema())return a===this.rootSchema?n:(this.serdeContext?.base64Encoder??e.Et)(n);if(typeof n==`bigint`&&(this.useReplacer=!0),a.isDocumentSchema())if(i){let t=Array.isArray(n)?[]:{};for(let[r,i]of Object.entries(n))i instanceof e.q?(this.useReplacer=!0,t[r]=i):t[r]=this._write(a,i);return t}else return structuredClone(n);return n}}},d=class extends e.k{settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new u(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new s(this.settings);return e.setSerdeContext(this.serdeContext),e}},f=class extends n{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:n,serviceTarget:r,awsQueryCompatible:i,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:n}),this.serviceTarget=r,this.codec=a??new d({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!i,this.mixin=new e.A(this.awsQueryCompatible)}async serializeRequest(t,n,r){let i=await super.serializeRequest(t,n,r);return i.path.endsWith(`/`)||(i.path+=`/`),Object.assign(i.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${t.name}`}),this.awsQueryCompatible&&(i.headers[`x-amzn-query-mode`]=`true`),(e.at(t.input)===`unit`||!i.body)&&(i.body=`{}`),i}getPayloadCodec(){return this.codec}async handleError(t,n,r,i,a){this.awsQueryCompatible&&this.mixin.setQueryCompatError(i,r);let s=o(r,i)??`Unknown`;this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,r,i,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=e.tt.of(c),d=i.message??i.Message??`UnknownError`,f=new((this.compositeErrorRegistry.getErrorCtor(c))??Error)(d),p={};for(let[e,t]of u.structIterator())i[e]!=null&&(p[e]=this.codec.createDeserializer().readObject(t,i[e]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(i,p),this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},p),i)}},p=class extends f{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:i})}getShapeId(){return`aws.protocols#awsJson1_1`}getJsonRpcVersion(){return`1.1`}getDefaultContentType(){return`application/x-amz-json-1.1`}},ee=async(t,n,r)=>({operation:e.pt(n).operation,region:await e.ft(t.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function te(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`cognito-identity`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function m(e){return{schemeId:`smithy.api#noAuth`}}var ne=e=>{let t=[];switch(e.operation){case`GetCredentialsForIdentity`:t.push(m(e));break;case`GetId`:t.push(m(e));break;default:t.push(te(e))}return t},re=t=>{let n=e.l(t);return Object.assign(n,{authSchemePreference:e.ft(t.authSchemePreference??[])})},ie=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`cognito-identity`}),h={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}},ae={name:`@aws-sdk/nested-clients`,version:`3.996.19`,description:`Nested clients for AWS SDK packages.`,main:`./dist-cjs/index.js`,module:`./dist-es/index.js`,types:`./dist-types/index.d.ts`,scripts:{build:`yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs`,"build:cjs":`node ../../scripts/compilation/inline nested-clients`,"build:es":`tsc -p tsconfig.es.json`,"build:include:deps":`yarn g:turbo run build -F="$npm_package_name"`,"build:types":`tsc -p tsconfig.types.json`,"build:types:downlevel":`downlevel-dts dist-types dist-types/ts3.4`,clean:`premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo`,lint:`node ../../scripts/validation/submodules-linter.js --pkg nested-clients`,test:`yarn g:vitest run`,"test:watch":`yarn g:vitest watch`},engines:{node:`>=20.0.0`},sideEffects:!1,author:{name:`AWS SDK for JavaScript Team`,url:`https://aws.amazon.com/javascript/`},license:`Apache-2.0`,dependencies:{"@aws-crypto/sha256-browser":`5.2.0`,"@aws-crypto/sha256-js":`5.2.0`,"@aws-sdk/core":`^3.973.27`,"@aws-sdk/middleware-host-header":`^3.972.9`,"@aws-sdk/middleware-logger":`^3.972.9`,"@aws-sdk/middleware-recursion-detection":`^3.972.10`,"@aws-sdk/middleware-user-agent":`^3.972.29`,"@aws-sdk/region-config-resolver":`^3.972.11`,"@aws-sdk/types":`^3.973.7`,"@aws-sdk/util-endpoints":`^3.996.6`,"@aws-sdk/util-user-agent-browser":`^3.972.9`,"@aws-sdk/util-user-agent-node":`^3.973.15`,"@smithy/config-resolver":`^4.4.14`,"@smithy/core":`^3.23.14`,"@smithy/fetch-http-handler":`^5.3.16`,"@smithy/hash-node":`^4.2.13`,"@smithy/invalid-dependency":`^4.2.13`,"@smithy/middleware-content-length":`^4.2.13`,"@smithy/middleware-endpoint":`^4.4.29`,"@smithy/middleware-retry":`^4.5.0`,"@smithy/middleware-serde":`^4.2.17`,"@smithy/middleware-stack":`^4.2.13`,"@smithy/node-config-provider":`^4.3.13`,"@smithy/node-http-handler":`^4.5.2`,"@smithy/protocol-http":`^5.3.13`,"@smithy/smithy-client":`^4.12.9`,"@smithy/types":`^4.14.0`,"@smithy/url-parser":`^4.2.13`,"@smithy/util-base64":`^4.3.2`,"@smithy/util-body-length-browser":`^4.2.2`,"@smithy/util-body-length-node":`^4.2.3`,"@smithy/util-defaults-mode-browser":`^4.3.45`,"@smithy/util-defaults-mode-node":`^4.2.49`,"@smithy/util-endpoints":`^3.3.4`,"@smithy/util-middleware":`^4.2.13`,"@smithy/util-retry":`^4.3.0`,"@smithy/util-utf8":`^4.2.2`,tslib:`^2.6.2`},devDependencies:{concurrently:`7.0.0`,"downlevel-dts":`0.10.1`,premove:`4.0.0`,typescript:`~5.8.3`},typesVersions:{"<4.5":{"dist-types/*":[`dist-types/ts3.4/*`]}},files:[`./cognito-identity.d.ts`,`./cognito-identity.js`,`./signin.d.ts`,`./signin.js`,`./sso-oidc.d.ts`,`./sso-oidc.js`,`./sso.d.ts`,`./sso.js`,`./sts.d.ts`,`./sts.js`,`dist-*/**`],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":`./dist-es/submodules/cognito-identity/runtimeConfig.browser`,"./dist-es/submodules/signin/runtimeConfig":`./dist-es/submodules/signin/runtimeConfig.browser`,"./dist-es/submodules/sso-oidc/runtimeConfig":`./dist-es/submodules/sso-oidc/runtimeConfig.browser`,"./dist-es/submodules/sso/runtimeConfig":`./dist-es/submodules/sso/runtimeConfig.browser`,"./dist-es/submodules/sts/runtimeConfig":`./dist-es/submodules/sts/runtimeConfig.browser`},"react-native":{},homepage:`https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients`,repository:{type:`git`,url:`https://github.com/aws/aws-sdk-js-v3.git`,directory:`packages/nested-clients`},exports:{"./package.json":`./package.json`,"./sso-oidc":{types:`./dist-types/submodules/sso-oidc/index.d.ts`,module:`./dist-es/submodules/sso-oidc/index.js`,node:`./dist-cjs/submodules/sso-oidc/index.js`,import:`./dist-es/submodules/sso-oidc/index.js`,require:`./dist-cjs/submodules/sso-oidc/index.js`},"./sts":{types:`./dist-types/submodules/sts/index.d.ts`,module:`./dist-es/submodules/sts/index.js`,node:`./dist-cjs/submodules/sts/index.js`,import:`./dist-es/submodules/sts/index.js`,require:`./dist-cjs/submodules/sts/index.js`},"./signin":{types:`./dist-types/submodules/signin/index.d.ts`,module:`./dist-es/submodules/signin/index.js`,node:`./dist-cjs/submodules/signin/index.js`,import:`./dist-es/submodules/signin/index.js`,require:`./dist-cjs/submodules/signin/index.js`},"./cognito-identity":{types:`./dist-types/submodules/cognito-identity/index.d.ts`,module:`./dist-es/submodules/cognito-identity/index.js`,node:`./dist-cjs/submodules/cognito-identity/index.js`,import:`./dist-es/submodules/cognito-identity/index.js`,require:`./dist-cjs/submodules/cognito-identity/index.js`},"./sso":{types:`./dist-types/submodules/sso/index.d.ts`,module:`./dist-es/submodules/sso/index.js`,node:`./dist-cjs/submodules/sso/index.js`,import:`./dist-es/submodules/sso/index.js`,require:`./dist-cjs/submodules/sso/index.js`}}},g=`required`,_=`fn`,v=`argv`,y=`ref`,b=!0,x=`isSet`,S=`booleanEquals`,C=`error`,w=`endpoint`,T=`tree`,E=`PartitionResult`,D=`getAttr`,O=`stringEquals`,k={[g]:!1,type:`string`},A={[g]:!0,default:!1,type:`boolean`},j={[y]:`Endpoint`},M={[_]:S,[v]:[{[y]:`UseFIPS`},!0]},N={[_]:S,[v]:[{[y]:`UseDualStack`},!0]},P={},F={[y]:`Region`},I={[_]:D,[v]:[{[y]:E},`supportsFIPS`]},L={[y]:E},R={[_]:S,[v]:[!0,{[_]:D,[v]:[L,`supportsDualStack`]}]},z=[M],B=[N],V=[F],oe={version:`1.0`,parameters:{Region:k,UseDualStack:A,UseFIPS:A,Endpoint:k},rules:[{conditions:[{[_]:x,[v]:[j]}],rules:[{conditions:z,error:`Invalid Configuration: FIPS and custom endpoint are not supported`,type:C},{conditions:B,error:`Invalid Configuration: Dualstack and custom endpoint are not supported`,type:C},{endpoint:{url:j,properties:P,headers:P},type:w}],type:T},{conditions:[{[_]:x,[v]:V}],rules:[{conditions:[{[_]:`aws.partition`,[v]:V,assign:E}],rules:[{conditions:[M,N],rules:[{conditions:[{[_]:S,[v]:[b,I]},R],rules:[{conditions:[{[_]:O,[v]:[F,`us-east-1`]}],endpoint:{url:`https://cognito-identity-fips.us-east-1.amazonaws.com`,properties:P,headers:P},type:w},{conditions:[{[_]:O,[v]:[F,`us-east-2`]}],endpoint:{url:`https://cognito-identity-fips.us-east-2.amazonaws.com`,properties:P,headers:P},type:w},{conditions:[{[_]:O,[v]:[F,`us-west-1`]}],endpoint:{url:`https://cognito-identity-fips.us-west-1.amazonaws.com`,properties:P,headers:P},type:w},{conditions:[{[_]:O,[v]:[F,`us-west-2`]}],endpoint:{url:`https://cognito-identity-fips.us-west-2.amazonaws.com`,properties:P,headers:P},type:w},{endpoint:{url:`https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,properties:P,headers:P},type:w}],type:T},{error:`FIPS and DualStack are enabled, but this partition does not support one or both`,type:C}],type:T},{conditions:z,rules:[{conditions:[{[_]:S,[v]:[I,b]}],rules:[{endpoint:{url:`https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}`,properties:P,headers:P},type:w}],type:T},{error:`FIPS is enabled but this partition does not support FIPS`,type:C}],type:T},{conditions:B,rules:[{conditions:[R],rules:[{conditions:[{[_]:O,[v]:[`aws`,{[_]:D,[v]:[L,`name`]}]}],endpoint:{url:`https://cognito-identity.{Region}.amazonaws.com`,properties:P,headers:P},type:w},{endpoint:{url:`https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}`,properties:P,headers:P},type:w}],type:T},{error:`DualStack is enabled but this partition does not support DualStack`,type:C}],type:T},{endpoint:{url:`https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}`,properties:P,headers:P},type:w}],type:T}],type:T},{error:`Invalid Configuration: Missing Region`,type:C}]},se=new e.T({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),ce=(t,n={})=>se.get(t,()=>e.C(oe,{endpointParams:t,logger:n.logger}));e.w.aws=e.S;var H=class t extends e.H{constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},le=class e extends H{name=`ExternalServiceException`;$fault=`client`;constructor(t){super({name:`ExternalServiceException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ue=class e extends H{name=`InternalErrorException`;$fault=`server`;constructor(t){super({name:`InternalErrorException`,$fault:`server`,...t}),Object.setPrototypeOf(this,e.prototype)}},de=class e extends H{name=`InvalidIdentityPoolConfigurationException`;$fault=`client`;constructor(t){super({name:`InvalidIdentityPoolConfigurationException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},fe=class e extends H{name=`InvalidParameterException`;$fault=`client`;constructor(t){super({name:`InvalidParameterException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},pe=class e extends H{name=`NotAuthorizedException`;$fault=`client`;constructor(t){super({name:`NotAuthorizedException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},me=class e extends H{name=`ResourceConflictException`;$fault=`client`;constructor(t){super({name:`ResourceConflictException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},he=class e extends H{name=`ResourceNotFoundException`;$fault=`client`;constructor(t){super({name:`ResourceNotFoundException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ge=class e extends H{name=`TooManyRequestsException`;$fault=`client`;constructor(t){super({name:`TooManyRequestsException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},_e=class e extends H{name=`LimitExceededException`;$fault=`client`;constructor(t){super({name:`LimitExceededException`,$fault:`client`,...t}),Object.setPrototypeOf(this,e.prototype)}},ve=`AccountId`,ye=`AccessKeyId`,U=`Credentials`,be=`CustomRoleArn`,xe=`Expiration`,Se=`ExternalServiceException`,Ce=`GetCredentialsForIdentity`,we=`GetCredentialsForIdentityInput`,Te=`GetCredentialsForIdentityResponse`,Ee=`GetId`,De=`GetIdInput`,Oe=`GetIdResponse`,ke=`InternalErrorException`,W=`IdentityId`,Ae=`InvalidIdentityPoolConfigurationException`,je=`InvalidParameterException`,Me=`IdentityPoolId`,Ne=`IdentityProviderToken`,G=`Logins`,Pe=`LimitExceededException`,Fe=`LoginsMap`,Ie=`NotAuthorizedException`,Le=`ResourceConflictException`,Re=`ResourceNotFoundException`,ze=`SecretKey`,Be=`SecretKeyString`,Ve=`SessionToken`,He=`TooManyRequestsException`,K=`client`,q=`error`,J=`httpError`,Y=`message`,X=`smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity`,Ue=`server`,Z=`com.amazonaws.cognitoidentity`,Q=e.et.for(X),We=[-3,X,`CognitoIdentityServiceException`,0,[],[]];Q.registerError(We,H);var $=e.et.for(Z),Ge=[-3,Z,Se,{[q]:K,[J]:400},[Y],[0]];$.registerError(Ge,le);var Ke=[-3,Z,ke,{[q]:Ue},[Y],[0]];$.registerError(Ke,ue);var qe=[-3,Z,Ae,{[q]:K,[J]:400},[Y],[0]];$.registerError(qe,de);var Je=[-3,Z,je,{[q]:K,[J]:400},[Y],[0]];$.registerError(Je,fe);var Ye=[-3,Z,Pe,{[q]:K,[J]:400},[Y],[0]];$.registerError(Ye,_e);var Xe=[-3,Z,Ie,{[q]:K,[J]:403},[Y],[0]];$.registerError(Xe,pe);var Ze=[-3,Z,Le,{[q]:K,[J]:409},[Y],[0]];$.registerError(Ze,me);var Qe=[-3,Z,Re,{[q]:K,[J]:404},[Y],[0]];$.registerError(Qe,he);var $e=[-3,Z,He,{[q]:K,[J]:429},[Y],[0]];$.registerError($e,ge);var et=[Q,$],tt=[0,Z,Ne,8,0],nt=[0,Z,Be,8,0],rt=[3,Z,U,0,[ye,ze,Ve,xe],[0,[()=>nt,0],0,4]],it=[3,Z,we,0,[W,G,be],[0,[()=>ct,0],0],1],at=[3,Z,Te,0,[W,U],[0,[()=>rt,0]]],ot=[3,Z,De,0,[Me,ve,G],[0,0,[()=>ct,0]],1],st=[3,Z,Oe,0,[W],[0]],ct=[2,Z,Fe,0,[0,0],[()=>tt,0]],lt=[9,Z,Ce,0,()=>it,()=>at],ut=[9,Z,Ee,0,()=>ot,()=>st],dt=n=>({apiVersion:`2014-06-30`,base64Decoder:n?.base64Decoder??e.Ot,base64Encoder:n?.base64Encoder??e.Et,disableHostPrefix:n?.disableHostPrefix??!1,endpointProvider:n?.endpointProvider??ce,extensions:n?.extensions??[],httpAuthSchemeProvider:n?.httpAuthSchemeProvider??ne,httpAuthSchemes:n?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new e.u},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new r}],logger:n?.logger??new e.R,protocol:n?.protocol??p,protocolSettings:n?.protocolSettings??{defaultNamespace:`com.amazonaws.cognitoidentity`,errorTypeRegistries:et,xmlNamespace:`http://cognito-identity.amazonaws.com/doc/2014-06-30/`,version:`2014-06-30`,serviceTarget:`AWSCognitoIdentityService`},serviceId:n?.serviceId??`Cognito Identity`,urlParser:n?.urlParser??e.it,utf8Decoder:n?.utf8Decoder??t.n,utf8Encoder:n?.utf8Encoder??t.t}),ft=t=>{let n=e.r(t),r=()=>n().then(e.V),i=dt(t);return{...i,...t,runtime:`browser`,defaultsMode:n,bodyLengthChecker:t?.bodyLengthChecker??e.j,defaultUserAgentProvider:t?.defaultUserAgentProvider??e.a({serviceId:i.serviceId,clientVersion:ae.version}),maxAttempts:t?.maxAttempts??3,region:t?.region??e.i(`Region is missing`),requestHandler:e.Tt.create(t?.requestHandler??r),retryMode:t?.retryMode??(async()=>(await r()).retryMode||e.x),sha256:t?.sha256??e.o,streamCollector:t?.streamCollector??e.wt,useDualstackEndpoint:t?.useDualstackEndpoint??(()=>Promise.resolve(!1)),useFipsEndpoint:t?.useFipsEndpoint??(()=>Promise.resolve(!1))}},pt=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},mt=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),ht=(t,n)=>{let r=Object.assign(e.t(t),e.z(t),e.Mt(t),pt(t));return n.forEach(e=>e.configure(r)),Object.assign(t,e.n(r),e.B(r),e.Nt(r),mt(r))},gt=class extends e.st{config;constructor(...[t]){let n=ft(t||{});super(n),this.initConfig=n,this.config=ht(re(e.h(e.dt(e.y(e.m(e.E(ie(n))))))),t?.extensions||[]),this.middlewareStack.use(e.rt(this.config)),this.middlewareStack.use(e.b(this.config)),this.middlewareStack.use(e.p(this.config)),this.middlewareStack.use(e.v(this.config)),this.middlewareStack.use(e.ut(this.config)),this.middlewareStack.use(e.lt(this.config)),this.middlewareStack.use(e.ct(this.config)),this.middlewareStack.use(e.I(this.config,{httpAuthSchemeParametersProvider:ee,identityProviderConfigProvider:async t=>new e.M({"aws.auth#sigv4":t.credentials})})),this.middlewareStack.use(e.P(this.config))}destroy(){super.destroy()}},_t=class extends e.U.classBuilder().ep(h).m(function(t,n,r,i){return[e.g(r,t.getEndpointParameterInstructions())]}).s(`AWSCognitoIdentityService`,`GetCredentialsForIdentity`,{}).n(`CognitoIdentityClient`,`GetCredentialsForIdentityCommand`).sc(lt).build(){},vt=class extends e.U.classBuilder().ep(h).m(function(t,n,r,i){return[e.g(r,t.getEndpointParameterInstructions())]}).s(`AWSCognitoIdentityService`,`GetId`,{}).n(`CognitoIdentityClient`,`GetIdCommand`).sc(ut).build(){};exports.CognitoIdentityClient=gt,exports.GetCredentialsForIdentityCommand=_t,exports.GetIdCommand=vt;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
//#region node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js
|
|
2
|
-
var e = (e) => new TextEncoder().encode(e), t = (e) => {
|
|
3
|
-
if (typeof e == "string") return e;
|
|
4
|
-
if (typeof e != "object" || typeof e.byteOffset != "number" || typeof e.byteLength != "number") throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
5
|
-
return new TextDecoder("utf-8").decode(e);
|
|
6
|
-
};
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as n, t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=e=>new TextEncoder().encode(e),t=e=>{if(typeof e==`string`)return e;if(typeof e!=`object`||typeof e.byteOffset!=`number`||typeof e.byteLength!=`number`)throw Error(`@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.`);return new TextDecoder(`utf-8`).decode(e)};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|