From de0e5f198e20d1b0a7123ed4e9d5e9ee314997ad Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 2 Aug 2022 00:37:42 -0700 Subject: [PATCH 001/107] feat: remove logic in compile.ts to flatten references to expressions --- src/compile.ts | 17 +---------------- test/reflect.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index f07633ac..b7d36dc1 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -400,18 +400,6 @@ export function compile( } else if (node.text === "null") { return newExpr(NodeKind.NullLiteralExpr, []); } - if (checker.isIntegrationNode(node)) { - // if this is a reference to a Table or Lambda, retain it - const _ref = checker.getOutOfScopeValueNode(node, scope); - if (_ref) { - return ref(_ref); - } else { - throw new SynthError( - ErrorCodes.Unable_to_find_reference_out_of_application_function, - `Unable to find reference out of application function: ${node.getText()}` - ); - } - } /** * If the identifier is not within the closure, we attempt to enclose the reference in its own closure. @@ -423,10 +411,7 @@ export function compile( * return { value: () => val }; */ if (checker.isIdentifierOutOfScope(node, scope)) { - const _ref = checker.getOutOfScopeValueNode(node, scope); - if (_ref) { - return ref(_ref); - } + return ref(node); } return newExpr(NodeKind.Identifier, [ diff --git a/test/reflect.test.ts b/test/reflect.test.ts index 8c47ff81..35b3adca 100644 --- a/test/reflect.test.ts +++ b/test/reflect.test.ts @@ -209,7 +209,7 @@ test("ObjectBinding with out-of-bound reference", () => { assertNodeKind(binding2.propertyName, NodeKind.Identifier); assertNodeKind(binding3.name, NodeKind.Identifier); assertNodeKind(binding3.propertyName, NodeKind.Identifier); - assertNodeKind(binding3.initializer, NodeKind.ReferenceExpr); + assertNodeKind(binding3.initializer, NodeKind.Identifier); }); test("ArrayBinding with out-of-bound reference", () => { @@ -243,7 +243,7 @@ test("ArrayBinding with out-of-bound reference", () => { assertNodeKind(binding1.name, NodeKind.Identifier); assertNodeKind(binding2.name, NodeKind.Identifier); - assertNodeKind(binding2.initializer, NodeKind.ReferenceExpr); + assertNodeKind(binding2.initializer, NodeKind.Identifier); }); test("reflect on a bound function declaration", () => { From 7b3b675ff3511748a8378e22ed526981583abba6 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 2 Aug 2022 00:44:33 -0700 Subject: [PATCH 002/107] feat: remove flattening of ReferenceExpr in PropertyAccessExpression --- src/compile.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index b7d36dc1..b864430e 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -418,18 +418,6 @@ export function compile( ts.factory.createStringLiteral(node.text), ]); } else if (ts.isPropertyAccessExpression(node)) { - if (checker.isIntegrationNode(node)) { - // if this is a reference to a Table or Lambda, retain it - const _ref = checker.getOutOfScopeValueNode(node, scope); - if (_ref) { - return ref(_ref); - } else { - throw new SynthError( - ErrorCodes.Unable_to_find_reference_out_of_application_function, - `Unable to find reference out of application function: ${node.getText()}` - ); - } - } return newExpr(NodeKind.PropAccessExpr, [ toExpr(node.expression, scope), toExpr(node.name, scope), From cbef263f326ce37a3999571f38c758ac7ea6fd7d Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 2 Aug 2022 19:33:13 -0700 Subject: [PATCH 003/107] feat: update interpreters to use new findIntegration resolution algorithm --- src/api.ts | 13 ++-- src/appsync.ts | 17 +++-- src/asl.ts | 117 ++++++++++++++--------------- src/checker.ts | 3 +- src/compile.ts | 4 + src/expression.ts | 12 +-- src/function.ts | 22 +----- src/integration.ts | 150 +++++++++++++++++++++++++++++--------- src/node-ctor.ts | 6 +- src/node.ts | 20 +++-- src/util.ts | 9 ++- src/visit.ts | 75 ++++++++----------- src/vtl.ts | 20 +++-- test/s-expression.test.ts | 2 +- 14 files changed, 276 insertions(+), 194 deletions(-) diff --git a/src/api.ts b/src/api.ts index 3045988f..a3c48a35 100644 --- a/src/api.ts +++ b/src/api.ts @@ -39,7 +39,7 @@ import { isSpreadAssignExpr, isFunctionLike, } from "./guards"; -import { Integration, IntegrationImpl, isIntegration } from "./integration"; +import { IntegrationImpl, tryFindIntegration } from "./integration"; import { validateFunctionLike } from "./reflect"; import { Stmt } from "./statement"; import { AnyFunction, singletonConstruct } from "./util"; @@ -732,12 +732,13 @@ export class APIGatewayVTL extends VTL { return this.exprToJson(expr.expr); } } else if (isCallExpr(expr)) { - if (isReferenceExpr(expr.expr) || isThisExpr(expr.expr)) { + const integration = tryFindIntegration(expr.expr); + if (integration) { + const serviceCall = new IntegrationImpl(integration); + return this.integrate(serviceCall, expr); + } else if (isReferenceExpr(expr.expr) || isThisExpr(expr.expr)) { const ref = expr.expr.ref(); - if (isIntegration(ref)) { - const serviceCall = new IntegrationImpl(ref); - return this.integrate(serviceCall, expr); - } else if (ref === Number) { + if (ref === Number) { return this.exprToJson(expr.args[0]); } else { throw new SynthError( diff --git a/src/appsync.ts b/src/appsync.ts index ef2d623c..ed2289e1 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -466,14 +466,19 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { // we find the range of nodes to hoist so that we avoid visiting the middle nodes. // The start node is the first node in the integration pattern (integ, await, or promise) // The end is always the integration. + const end = getIntegrationExprFromIntegrationCallPattern(node); - const updatedChild = visitSpecificChildren(node, [end], (expr) => - normalizeAST(expr, hoist) - ); - // when we find an integration call, - // if it is nested, hoist it up (create variable, add above, replace expr with variable) - return hoist && doHoist(node) ? hoist(updatedChild) : updatedChild; + if (end) { + const updatedChild = visitSpecificChildren(node, [end], (expr) => + normalizeAST(expr, hoist) + ); + + // when we find an integration call, + // if it is nested, hoist it up (create variable, add above, replace expr with variable) + return hoist && doHoist(node) ? hoist(updatedChild) : updatedChild; + } + return visitEachChild(node, normalizeAST); } else if (isVariableStmt(node) && node.declList.decls.length > 1) { /** * Flatten variable declarations into multiple variable statements. diff --git a/src/asl.ts b/src/asl.ts index ab3a90e7..5faf982f 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -110,10 +110,10 @@ import { isQuasiString, } from "./guards"; import { - Integration, IntegrationImpl, isIntegration, isIntegrationCallPattern, + tryFindIntegration, } from "./integration"; import { FunctionlessNode } from "./node"; import { @@ -1647,75 +1647,66 @@ export class ASL { }; }); } else if (isCallExpr(expr)) { - if (isReferenceExpr(expr.expr)) { - const ref = expr.expr.ref(); - if (isIntegration(ref)) { - const serviceCall = new IntegrationImpl(ref); - const integStates = serviceCall.asl(expr, this); + const integration = tryFindIntegration(expr.expr); + if (integration) { + const serviceCall = new IntegrationImpl(integration); + const integStates = serviceCall.asl(expr, this); + if ( + ASLGraph.isLiteralValue(integStates) || + ASLGraph.isJsonPath(integStates) + ) { + return integStates; + } + + const updateState = (state: ASLGraph.NodeState): ASLGraph.NodeState => { + const throwOrPass = this.throw(expr); if ( - ASLGraph.isLiteralValue(integStates) || - ASLGraph.isJsonPath(integStates) + throwOrPass?.Next && + (isTaskState(state) || + isMapTaskState(state) || + isParallelTaskState(state)) ) { - return integStates; + return { + ...state, + Catch: [ + { + ErrorEquals: ["States.ALL"], + Next: throwOrPass.Next, + ResultPath: throwOrPass.ResultPath, + }, + ], + }; + } else { + return state; } + }; - const updateState = ( - state: ASLGraph.NodeState - ): ASLGraph.NodeState => { - const throwOrPass = this.throw(expr); - if ( - throwOrPass?.Next && - (isTaskState(state) || - isMapTaskState(state) || - isParallelTaskState(state)) - ) { - return { - ...state, - Catch: [ - { - ErrorEquals: ["States.ALL"], - Next: throwOrPass.Next, - ResultPath: throwOrPass.ResultPath, - }, - ], - }; - } else { - return state; - } - }; - - const updateStates = ( - states: ASLGraph.NodeState | ASLGraph.SubState - ): ASLGraph.NodeState | ASLGraph.SubState => { - return ASLGraph.isSubState(states) - ? { - ...states, - states: Object.fromEntries( - Object.entries(states.states ?? {}).map( - ([stateName, state]) => { - if (ASLGraph.isSubState(state)) { - return [stateName, updateStates(state)]; - } else { - return [stateName, updateState(state)]; - } + const updateStates = ( + states: ASLGraph.NodeState | ASLGraph.SubState + ): ASLGraph.NodeState | ASLGraph.SubState => { + return ASLGraph.isSubState(states) + ? { + ...states, + states: Object.fromEntries( + Object.entries(states.states ?? {}).map( + ([stateName, state]) => { + if (ASLGraph.isSubState(state)) { + return [stateName, updateStates(state)]; + } else { + return [stateName, updateState(state)]; } - ) - ), - } - : updateState(states); - }; + } + ) + ), + } + : updateState(states); + }; - return { - ...integStates, - ...updateStates(integStates), - }; - } else { - throw new SynthError( - ErrorCodes.Unexpected_Error, - "Called references are expected to be an integration." - ); - } + return { + ...integStates, + ...updateStates(integStates), + }; } else if (isMapOrForEach(expr)) { const throwTransition = this.throw(expr); diff --git a/src/checker.ts b/src/checker.ts index fa653cd2..7279921b 100644 --- a/src/checker.ts +++ b/src/checker.ts @@ -402,7 +402,8 @@ export function makeFunctionlessChecker( return updatedSymbol ? isSymbolOutOfScope(updatedSymbol, scope) : false; } else if ( ts.isVariableDeclaration(symbol.valueDeclaration) || - ts.isClassDeclaration(symbol.valueDeclaration) + ts.isClassDeclaration(symbol.valueDeclaration) || + ts.isParameter(symbol.valueDeclaration) ) { return !hasParent(symbol.valueDeclaration, scope); } else if (ts.isBindingElement(symbol.valueDeclaration)) { diff --git a/src/compile.ts b/src/compile.ts index c732d087..c1a4a00c 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -414,6 +414,10 @@ export function compile( return ref(node); } + if (node.text === "table") { + checker.isIdentifierOutOfScope(node, scope); + } + return newExpr(NodeKind.Identifier, [ ts.factory.createStringLiteral(node.text), ]); diff --git a/src/expression.ts b/src/expression.ts index 3dd8769b..c49dad11 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -187,11 +187,13 @@ export class Argument extends BaseExpr { } } -export class CallExpr extends BaseExpr { - constructor( - readonly expr: Expr | SuperKeyword | ImportKeyword, - readonly args: Argument[] - ) { +export class CallExpr< + E extends Expr | SuperKeyword | ImportKeyword = + | Expr + | SuperKeyword + | ImportKeyword +> extends BaseExpr { + constructor(readonly expr: E, readonly args: Argument[]) { super(NodeKind.CallExpr, arguments); } } diff --git a/src/function.ts b/src/function.ts index 5e6f2714..2a9ec198 100644 --- a/src/function.ts +++ b/src/function.ts @@ -31,7 +31,7 @@ import { ApiGatewayVtlIntegration } from "./api"; import type { AppSyncVtlIntegration } from "./appsync"; import { ASL, ASLGraph } from "./asl"; import { BindFunctionName, RegisterFunctionName } from "./compile"; -import { FunctionLike, IntegrationInvocation } from "./declaration"; +import { IntegrationInvocation } from "./declaration"; import { ErrorCodes, formatErrorMessage, SynthError } from "./error-code"; import { IEventBus, @@ -49,19 +49,16 @@ import { PrewarmProps, } from "./function-prewarm"; import { + findDeepIntegrations, Integration, - IntegrationCallExpr, IntegrationImpl, INTEGRATION_TYPE_KEYS, isIntegration, - isIntegrationCallExpr, } from "./integration"; -import { FunctionlessNode } from "./node"; import { ReflectionSymbols, validateFunctionLike } from "./reflect"; import { isStepFunction } from "./step-function"; import { isTable } from "./table"; import { AnyAsyncFunction, AnyFunction } from "./util"; -import { visitEachChild } from "./visit"; export function isFunction( a: any @@ -659,7 +656,7 @@ export class Function< super(_resource); - const integrations = getInvokedIntegrations(ast).map( + const integrations = findDeepIntegrations(ast).map( (i) => { args: i.args, @@ -723,19 +720,6 @@ export class Function< } } -function getInvokedIntegrations(ast: FunctionLike): IntegrationCallExpr[] { - const nodes: IntegrationCallExpr[] = []; - visitEachChild(ast, function visit(node: FunctionlessNode): FunctionlessNode { - if (isIntegrationCallExpr(node)) { - nodes.push(node); - } - - return visitEachChild(node, visit); - }); - - return nodes; -} - /** * A {@link Function} which wraps a CDK function. * diff --git a/src/integration.ts b/src/integration.ts index cb2bafb6..60249a66 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -6,39 +6,44 @@ import { AwaitExpr, CallExpr, PromiseExpr, ReferenceExpr } from "./expression"; import { Function, NativeIntegration } from "./function"; import { isAwaitExpr, + isBindingElem, + isBindingPattern, isCallExpr, + isElementAccessExpr, + isIdentifier, + isNumberLiteralExpr, isPromiseExpr, + isPropAccessExpr, isReferenceExpr, + isStringLiteralExpr, isThisExpr, + isVariableDecl, } from "./guards"; import { FunctionlessNode } from "./node"; import { AnyFunction } from "./util"; import { visitEachChild } from "./visit"; import { VTL } from "./vtl"; -export const isIntegration = >( +export const isIntegration = >( i: any ): i is I => typeof i === "object" && "kind" in i; -export type IntegrationCallExpr = CallExpr & { - expr: ReferenceExpr; -}; +export interface IntegrationCallExpr extends CallExpr {} export function isIntegrationCallExpr( node: FunctionlessNode ): node is IntegrationCallExpr { - return ( - isCallExpr(node) && - (isReferenceExpr(node.expr) || isThisExpr(node.expr)) && - isIntegration(node.expr.ref()) - ); + if (isCallExpr(node)) { + return tryFindIntegration(node.expr) !== undefined; + } + return false; } export type IntegrationCallPattern = - | IntegrationCallExpr - | (AwaitExpr & { expr: IntegrationCallExpr }) - | (PromiseExpr & { expr: IntegrationCallExpr }) - | (AwaitExpr & { expr: PromiseExpr & { expr: IntegrationCallExpr } }); + | CallExpr + | (AwaitExpr & { expr: CallExpr }) + | (PromiseExpr & { expr: CallExpr }) + | (AwaitExpr & { expr: PromiseExpr & { expr: CallExpr } }); export function isIntegrationCallPattern( node: FunctionlessNode @@ -58,20 +63,16 @@ export function isIntegrationCallPattern( */ export function getIntegrationExprFromIntegrationCallPattern( pattern: IntegrationCallPattern -): IntegrationCallExpr { - if (isAwaitExpr(pattern)) { - if (isIntegrationCallExpr(pattern.expr)) { - return pattern.expr; - } else if ( - isPromiseExpr(pattern.expr) && - isIntegrationCallExpr(pattern.expr.expr) - ) { - return pattern.expr.expr; +): IntegrationCallExpr | undefined { + if (isAwaitExpr(pattern) || isPromiseExpr(pattern)) { + return getIntegrationExprFromIntegrationCallPattern(pattern.expr); + } else if (isCallExpr(pattern)) { + const integration = tryFindIntegration(pattern.expr); + if (integration) { + return pattern; } - } else if (isPromiseExpr(pattern) && isIntegrationCallExpr(pattern.expr)) { - return pattern.expr; } - return pattern as IntegrationCallExpr; + return undefined; } /** @@ -301,20 +302,97 @@ export function makeIntegration( export type CallContext = ASL | VTL | Function | EventBus; -/** - * Dive until we find a integration object. - */ export function findDeepIntegrations( - expr: FunctionlessNode -): IntegrationCallExpr[] { - const integrations: IntegrationCallExpr[] = []; - visitEachChild(expr, function find(node: FunctionlessNode): FunctionlessNode { - if (isIntegrationCallExpr(node)) { - integrations.push(node); + ast: FunctionlessNode +): CallExpr[] { + const nodes: CallExpr[] = []; + visitEachChild(ast, function visit(node: FunctionlessNode): FunctionlessNode { + if (isCallExpr(node)) { + const integrations = tryFindIntegrations(node.expr); + if (integrations) { + nodes.push( + ...integrations.map((integration) => + node.fork( + new CallExpr( + new ReferenceExpr("", () => integration), + node.args.map((arg) => arg.clone()) + ) + ) + ) + ); + } } - return visitEachChild(node, find); + + return visitEachChild(node, visit); }); - return integrations; + + return nodes; +} + +export function tryFindIntegration( + node: FunctionlessNode +): Integration | undefined { + const integrations = tryFindIntegrations(node); + if (integrations?.length === 1) { + return integrations[0]; + } + return undefined; +} + +export function tryFindIntegrations( + node: FunctionlessNode +): Integration[] | undefined { + const integrations = resolve(node, undefined).filter(isIntegration); + if (integrations.length !== 0) { + return integrations; + } else { + return undefined; + } + + function resolve( + node: FunctionlessNode | undefined, + defaultValue: FunctionlessNode | undefined + ): any[] | [] { + if (node === undefined) { + if (defaultValue === undefined) { + return []; + } else { + return resolve(defaultValue, undefined); + } + } else if (isReferenceExpr(node) || isThisExpr(node)) { + return [node.ref()]; + } else if (isIdentifier(node)) { + return resolve(node.lookup(), defaultValue); + } else if (isBindingElem(node)) { + return resolve(node.parent, node.initializer).flatMap((pattern) => { + if (isIdentifier(node.name)) { + return [pattern[node.name.name]]; + } else { + throw new Error("should be impossible"); + } + }); + } else if (isBindingPattern(node)) { + // we only ever evaluate `{ a }` or `[ a ]` when walking backwards from `a` + // the BindingElem resolver case will pluck `a` from the object returned by this + return resolve(node.parent, defaultValue); + } else if (isVariableDecl(node)) { + return resolve(node.initializer, defaultValue); + } else if (isPropAccessExpr(node) || isElementAccessExpr(node)) { + return resolve(node.expr, undefined).flatMap((expr) => { + const key = isPropAccessExpr(node) + ? node.name.name + : isStringLiteralExpr(node.element) || + isNumberLiteralExpr(node.element) + ? node.element.value + : undefined; + if (key !== undefined) { + return [(expr)?.[key]]; + } + return []; + }); + } + return []; + } } // to prevent the closure serializer from trying to import all of functionless. diff --git a/src/node-ctor.ts b/src/node-ctor.ts index e4306302..62897850 100644 --- a/src/node-ctor.ts +++ b/src/node-ctor.ts @@ -93,9 +93,9 @@ export function getCtor( return n[kind] as any; } -export type NodeInstance = InstanceType< - typeof nodes[Kind] ->; +export type NodeCtor = typeof nodes[Kind]; + +export type NodeInstance = InstanceType>; export const declarations = { [NodeKind.ArrayBinding]: ArrayBinding, diff --git a/src/node.ts b/src/node.ts index 1c040fcc..302444a5 100644 --- a/src/node.ts +++ b/src/node.ts @@ -38,6 +38,7 @@ import { isVariableStmt, isWhileStmt, } from "./guards"; +import type { NodeCtor } from "./node-ctor"; import { NodeKind, NodeKindName, getNodeKindName } from "./node-kind"; import type { BlockStmt, CatchClause, Stmt } from "./statement"; @@ -57,6 +58,8 @@ export interface HasParent { set parent(parent: Parent); } +type Binding = [string, VariableDecl | ParameterDecl | BindingElem]; + export abstract class BaseNode< Kind extends NodeKind, Parent extends FunctionlessNode | undefined = FunctionlessNode | undefined @@ -71,7 +74,10 @@ export abstract class BaseNode< */ readonly children: FunctionlessNode[] = []; - constructor(readonly kind: Kind, readonly _arguments: IArguments) { + readonly _arguments: ConstructorParameters>; + + constructor(readonly kind: Kind, _arguments: IArguments) { + this._arguments = Array.from(_arguments) as any; const setParent = (node: any) => { if (isNode(node)) { // @ts-ignore @@ -93,7 +99,7 @@ export abstract class BaseNode< public toSExpr(): [kind: this["kind"], ...args: any[]] { return [ this.kind, - ...Array.from(this._arguments).map(function toSExpr(arg): any { + ...this._arguments.map(function toSExpr(arg: any): any { if (isNode(arg)) { return arg.toSExpr(); } else if (Array.isArray(arg)) { @@ -105,6 +111,12 @@ export abstract class BaseNode< ]; } + public fork(node: N): N { + // @ts-ignore + node.parent = this; + return node; + } + protected ensureArrayOf( arr: any[], fieldName: string, @@ -362,11 +374,9 @@ export abstract class BaseNode< /** * @returns a mapping of name to the node visible in this node's scope. */ - public getLexicalScope(): Map { + public getLexicalScope(): Map { return new Map(getLexicalScope(this as unknown as FunctionlessNode)); - type Binding = [string, VariableDecl | ParameterDecl | BindingElem]; - function getLexicalScope(node: FunctionlessNode | undefined): Binding[] { if (node === undefined) { return []; diff --git a/src/util.ts b/src/util.ts index 4dbf2b4b..64ee07c8 100644 --- a/src/util.ts +++ b/src/util.ts @@ -209,7 +209,14 @@ export function isConstant(x: any): x is Constant { export const evalToConstant = ( expr: Expr | QuasiString ): Constant | undefined => { - if ( + if (isIdentifier(expr)) { + // const decl = expr.lookup(); + // if (decl) { + // if (isVariableDecl(decl) && decl.initializer) { + // return evalToConstant(decl.initializer); + // } + // } + } else if ( isStringLiteralExpr(expr) || isNumberLiteralExpr(expr) || isBooleanLiteralExpr(expr) || diff --git a/src/visit.ts b/src/visit.ts index 3a3a8288..6b20ed2f 100644 --- a/src/visit.ts +++ b/src/visit.ts @@ -23,48 +23,38 @@ export function visitEachChild( ) => FunctionlessNode | FunctionlessNode[] | undefined ): T { const ctor = getCtor(node.kind); - const args = Array.from(node._arguments).map( - ( - argument: - | FunctionlessNode - | FunctionlessNode[] - | string - | number - | boolean - | undefined - ): typeof argument => { - if (!(typeof argument === "object" || Array.isArray(argument))) { - // all primitives are simply returned as-is - // all objects are assumed - return argument; - } else if (isNode(argument)) { - const transformed = visit(argument); - if (transformed === undefined || isNode(transformed)) { - return transformed; - } else { - throw new Error( - `cannot spread nodes into an argument taking a single ${argument.kindName} node` - ); - } - } else if (Array.isArray(argument)) { - // is an Array of nodes - return argument.flatMap((item) => { - const transformed = visit(item); - if (transformed === undefined) { - // the item was deleted, so remove it from the array - return []; - } else if (isNode(transformed)) { - return [transformed]; - } else { - // spread the nodes into the array - return transformed; - } - }); + const args = node._arguments.map((argument) => { + if (!(typeof argument === "object" || Array.isArray(argument))) { + // all primitives are simply returned as-is + // all objects are assumed + return argument; + } else if (isNode(argument)) { + const transformed = visit(argument); + if (transformed === undefined || isNode(transformed)) { + return transformed; } else { - return argument; + throw new Error( + `cannot spread nodes into an argument taking a single ${argument.kindName} node` + ); } + } else if (Array.isArray(argument)) { + // is an Array of nodes + return argument.flatMap((item) => { + const transformed = visit(item); + if (transformed === undefined) { + // the item was deleted, so remove it from the array + return []; + } else if (isNode(transformed)) { + return [transformed]; + } else { + // spread the nodes into the array + return transformed; + } + }); + } else { + return argument; } - ); + }); return new ctor(...args) as T; } @@ -83,11 +73,10 @@ export function visitBlock( const nestedTasks: FunctionlessNode[] = []; function hoist(expr: Expr): Identifier { const id = new Identifier(nameGenerator.generateOrGet(expr)); - nestedTasks.push( - new VariableStmt( - new VariableDeclList([new VariableDecl(id.clone(), expr)]) - ) + const stmt = new VariableStmt( + new VariableDeclList([new VariableDecl(id.clone(), expr.clone())]) ); + nestedTasks.push(stmt); return id; } diff --git a/src/vtl.ts b/src/vtl.ts index d4c57500..45581ba9 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -95,7 +95,12 @@ import { isWithStmt, isYieldExpr, } from "./guards"; -import { Integration, IntegrationImpl, isIntegration } from "./integration"; +import { + Integration, + IntegrationImpl, + isIntegration, + tryFindIntegration, +} from "./integration"; import { NodeKind } from "./node-kind"; import { Stmt } from "./statement"; import { AnyFunction, isInTopLevelScope } from "./util"; @@ -377,10 +382,8 @@ export abstract class VTL { ? node.expr.unwrap() : node.expr; - if (isSuperKeyword(expr) || isImportKeyword(expr)) { - throw new Error(`super and import are not supported by VTL`); - } else if (isReferenceExpr(expr)) { - const ref = expr.ref(); + const ref = expr ? tryFindIntegration(expr) : undefined; + if (ref) { if (isIntegration(ref)) { const serviceCall = new IntegrationImpl(ref); return this.integrate(serviceCall, node); @@ -390,6 +393,13 @@ export abstract class VTL { "Called references are expected to be an integration." ); } + } else if (isReferenceExpr(expr)) { + throw new SynthError( + ErrorCodes.Unexpected_Error, + "Called references are expected to be an integration." + ); + } else if (isSuperKeyword(expr) || isImportKeyword(expr)) { + throw new Error(`super and import are not supported by VTL`); } else if ( // If the parent is a propAccessExpr isPropAccessExpr(expr) && diff --git a/test/s-expression.test.ts b/test/s-expression.test.ts index 6a5aca8d..1e4ae2fa 100644 --- a/test/s-expression.test.ts +++ b/test/s-expression.test.ts @@ -15,7 +15,7 @@ test("s-expression isomorphism", () => { function equals(self: any, other: any): boolean { if (isNode(self) && isNode(other)) { if (self.kind === other.kind) { - return Array.from(self._arguments).every((thisArg, i) => + return (self._arguments as any[]).every((thisArg, i) => equals(thisArg, other._arguments[i]) ); } else { From 5c18ed1c05d21acf50346eb892c5482ed4b3152b Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 2 Aug 2022 19:51:15 -0700 Subject: [PATCH 004/107] chore: improved documentation --- src/integration.ts | 66 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 56 insertions(+), 10 deletions(-) diff --git a/src/integration.ts b/src/integration.ts index 60249a66..10c6518b 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -329,6 +329,18 @@ export function findDeepIntegrations( return nodes; } +/** + * A bottom-up algorithm that determines the ONLY {@link Integration} value that the {@link node} + * will resolve to at runtime. + * + * If the {@link node} resolves to 0 or more than 1 {@link Integration} then `undefined` is returned. + * + * **Note**: This function is an intermediate helper until we migrate the interpreters to be more general + * (likely by migrating to top-down algorithms, see https://github.com/functionless/functionless/issues/374#issuecomment-1203313604) + * + * @param node the node to resolve the {@link Integration} of. + * @returns the ONLY {@link Integration} that {@link node} can resolve to, otherwise `undefined`. + */ export function tryFindIntegration( node: FunctionlessNode ): Integration | undefined { @@ -339,20 +351,54 @@ export function tryFindIntegration( return undefined; } -export function tryFindIntegrations( - node: FunctionlessNode -): Integration[] | undefined { - const integrations = resolve(node, undefined).filter(isIntegration); - if (integrations.length !== 0) { - return integrations; - } else { - return undefined; - } +/** + * A bottom-up algorithm that determines all of the possible {@link Integration}s that a {@link node} + * may resolve to at runtime. + * + * ```ts + * declare const table1; + * declare const table2; + * + * const tables = [table1, table2]; + * + * const a = table1; + * // ^ [table1] + * + * for (const a of tables) { + * const b = a; + * // ^ [table1, table2] + * + * const { appsync: { getItem } } = a; + * // ^ [ table1.appsync.getItem, table2.appsync.getItem ] + * } + * + * const a = tables[0]; + * // ^ [table1] + * + * const { appsync: { getItem } } = table[0]; + * // ^ [ table1.appsync.getItem ] + * + * const { appsync: { getItem = table1.appsync.getItem } } = table[2]; + * // ^ [ table1.appsync.getItem ] (because of initializer) + * ``` + * + * @param node the node to resolve the possible {@link Integration}s of. + * @returns a list of all the {@link Integration}s that the {@link node} could evaluate to. + */ +export function tryFindIntegrations(node: FunctionlessNode): Integration[] { + return resolve(node, undefined).filter(isIntegration); + /** + * Resolve all of the possible values that {@link node} may resolve to at runtime. + * + * @param node + * @param defaultValue default value to use if the value cannot be resolved (set by default initializers in BindingElement) + * @returns an array of all the values the {@link node} resolves to. + */ function resolve( node: FunctionlessNode | undefined, defaultValue: FunctionlessNode | undefined - ): any[] | [] { + ): any[] { if (node === undefined) { if (defaultValue === undefined) { return []; From fdbf6b89d778e2ad053c5790e9c4ad8472b3ee93 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 2 Aug 2022 19:58:01 -0700 Subject: [PATCH 005/107] chore: remove test code --- src/compile.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index c1a4a00c..c732d087 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -414,10 +414,6 @@ export function compile( return ref(node); } - if (node.text === "table") { - checker.isIdentifierOutOfScope(node, scope); - } - return newExpr(NodeKind.Identifier, [ ts.factory.createStringLiteral(node.text), ]); From 3e81f2ec9b433bed468c537bf34b1d41d04e35aa Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 3 Aug 2022 13:01:07 -0700 Subject: [PATCH 006/107] feat: closure serializer built off of the Functionless AST --- src/compile.ts | 40 +++++- src/declaration.ts | 6 +- src/expression.ts | 22 +++- src/integration.ts | 2 +- src/serialize-closure.ts | 233 +++++++++++++++++++++++++++++++++ test/serialize-closure.test.ts | 8 ++ 6 files changed, 301 insertions(+), 10 deletions(-) create mode 100644 src/serialize-closure.ts create mode 100644 test/serialize-closure.test.ts diff --git a/src/compile.ts b/src/compile.ts index c732d087..bb93c50b 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -4,7 +4,7 @@ import type { PluginConfig, TransformerExtras } from "ts-patch"; import ts from "typescript"; import { assertDefined } from "./assert"; import { makeFunctionlessChecker } from "./checker"; -import type { ConstructorDecl, FunctionDecl, MethodDecl } from "./declaration"; +import { ConstructorDecl, FunctionDecl, MethodDecl } from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import type { FunctionExpr, @@ -104,6 +104,16 @@ export function compile( ? _config.exclude.map((pattern) => minimatch.makeRe(path.resolve(pattern))) : []; const checker = makeFunctionlessChecker(program.getTypeChecker()); + const getUniqueId = (() => { + const uniqueIds = new Map(); + let i = 1; // start counter from 1 so that unresolvable names can use 0 + return (node: ts.Node) => { + if (!uniqueIds.has(node)) { + uniqueIds.set(node, i++); + } + return uniqueIds.get(node)!; + }; + })(); return (ctx) => { const functionless = ts.factory.createUniqueName("functionless"); return (sf) => { @@ -309,6 +319,16 @@ export function compile( ) ), body, + // isAsync + impl.modifiers?.find( + (mod) => mod.kind === ts.SyntaxKind.AsyncKeyword + ) + ? ts.factory.createTrue() + : ts.factory.createFalse(), + // isAsterisk + impl.asteriskToken + ? ts.factory.createTrue() + : ts.factory.createFalse(), ]); }); @@ -426,13 +446,12 @@ export function compile( : ts.factory.createFalse(), ]); } else if (ts.isElementAccessExpression(node)) { - const type = checker.getTypeAtLocation(node.argumentExpression); return newExpr(NodeKind.ElementAccessExpr, [ toExpr(node.expression, scope), toExpr(node.argumentExpression, scope), - type - ? ts.factory.createStringLiteral(checker.typeToString(type)) - : ts.factory.createIdentifier("undefined"), + node.questionDotToken + ? ts.factory.createTrue() + : ts.factory.createFalse(), ]); } else if (ts.isVariableStatement(node)) { return newExpr(NodeKind.VariableStmt, [ @@ -811,7 +830,14 @@ export function compile( ); } - function ref(node: ts.Expression) { + function ref(node: ts.Identifier) { + const symbol = checker.getSymbolAtLocation(node); + + const id = symbol?.valueDeclaration + ? getUniqueId(symbol.valueDeclaration) + : symbol?.declarations?.[0] + ? getUniqueId(symbol.declarations[0]) + : 0; return newExpr(NodeKind.ReferenceExpr, [ ts.factory.createStringLiteral(exprToString(node)), ts.factory.createArrowFunction( @@ -822,6 +848,8 @@ export function compile( undefined, node ), + ts.factory.createNumericLiteral(id), + ts.factory.createIdentifier("__filename"), ]); } diff --git a/src/declaration.ts b/src/declaration.ts index a67c2a0b..8fb80ae0 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -142,12 +142,16 @@ export class FunctionDecl< // according to the spec, name is mandatory on a FunctionDecl and FunctionExpr readonly name: string | undefined, readonly parameters: ParameterDecl[], - readonly body: BlockStmt + readonly body: BlockStmt, + readonly isAsync: boolean, + readonly isAsterisk: boolean ) { super(NodeKind.FunctionDecl, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); + this.ensure(isAsync, "isAsync", ["boolean"]); + this.ensure(isAsterisk, "isAsterisk", ["boolean"]); } } diff --git a/src/expression.ts b/src/expression.ts index c49dad11..a7991178 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -125,10 +125,17 @@ export class ClassExpr extends BaseExpr< export class ReferenceExpr< R = unknown > extends BaseExpr { - constructor(readonly name: string, readonly ref: () => R) { + constructor( + readonly name: string, + readonly ref: () => R, + readonly id: number, + readonly filename: string + ) { super(NodeKind.ReferenceExpr, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensure(ref, "ref", ["function"]); + this.ensure(id, "id", ["number"]); + this.ensure(filename, "filename", ["string"]); } } @@ -169,7 +176,18 @@ export class PropAccessExpr extends BaseExpr { } export class ElementAccessExpr extends BaseExpr { - constructor(readonly expr: Expr, readonly element: Expr) { + constructor( + readonly expr: Expr, + readonly element: Expr, + /** + * If this is an ElementAccessExpr with a `?.` + * + * ```ts + * obj?.[element] + * ``` + */ + readonly isOptional: boolean + ) { super(NodeKind.ElementAccessExpr, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensure(element, "element", ["Expr"]); diff --git a/src/integration.ts b/src/integration.ts index 10c6518b..0aafba43 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -314,7 +314,7 @@ export function findDeepIntegrations( ...integrations.map((integration) => node.fork( new CallExpr( - new ReferenceExpr("", () => integration), + new ReferenceExpr("", () => integration, 0, __filename), node.args.map((arg) => arg.clone()) ) ) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts new file mode 100644 index 00000000..0df7e1da --- /dev/null +++ b/src/serialize-closure.ts @@ -0,0 +1,233 @@ +import ts from "typescript"; +import { + isBlockStmt, + isBooleanLiteralExpr, + isElementAccessExpr, + isFunctionDecl, + isFunctionLike, + isIdentifier, + isNullLiteralExpr, + isNumberLiteralExpr, + isPropAccessExpr, + isStringLiteralExpr, + isUndefinedLiteralExpr, +} from "./guards"; +import { FunctionlessNode } from "./node"; +import { reflect } from "./reflect"; +import { AnyFunction } from "./util"; + +export function serializeClosure(func: AnyFunction): string { + const requireCache = new Map( + Object.entries(require.cache).flatMap(([path, module]) => + Object.entries(module ?? {}).map(([exportName, exportValue]) => [ + exportValue, + { + path, + exportName, + exportValue, + module, + }, + ]) + ) + ); + let i = 0; + const uniqueName = () => { + return `v${i++}`; + }; + + const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }); + + const statements: ts.Statement[] = []; + + function emit(...statements: ts.Statement[]) { + statements.push(...statements); + } + + function emitVarDecl( + expr: ts.Expression, + varKind: "const" | "let" | "var" = "const" + ): string { + const name = uniqueName(); + emit( + ts.factory.createVariableStatement( + undefined, + ts.factory.createVariableDeclarationList( + [ + ts.factory.createVariableDeclaration( + name, + undefined, + undefined, + expr + ), + ], + varKind === "var" + ? ts.NodeFlags.None + : varKind === "const" + ? ts.NodeFlags.Const + : ts.NodeFlags.Let + ) + ) + ); + return name; + } + + const valueIds = new Map(); + + emit(expr(assign(prop(id("exports"), "handler"), id(serialize(func))))); + + return printer.printFile( + ts.factory.createSourceFile( + statements, + ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), + ts.NodeFlags.JavaScriptFile + ) + ); + + function serialize(value: any): string { + let id = valueIds.get(value); + if (id) { + return id; + } + id = serializeValue(value); + valueIds.set(value, id); + return id; + } + + function serializeValue(value: any) { + if (value === undefined) { + } else if (value === null) { + } else if (typeof value === "object") { + // serialize the prototype first + // there should be no circular references between an object instance and its prototype + // if we need to handle circular references between an instance and prototype, then we can + // switch to a strategy of emitting an object and then calling Object.setPrototypeOf + const prototype = serialize(Object.getPrototypeOf(value)); + + // emit an empty object with the correct prototype + // e.g. `var vObj = Object.create(vPrototype);` + const obj = emitVarDecl( + call(prop(id("Object"), "create"), [id(prototype)]) + ); + + /** + * Cache the emitted value so that any circular object references serialize without issue. + * + * e.g. + * + * The following objects circularly reference each other: + * ```ts + * const a = {}; + * const b = { a }; + * a.b = b; + * ``` + * + * Serializing `b` will emit the following code: + * ```ts + * const b = {}; + * const a = {}; + * a.b = b; + * b.a = a; + * ``` + */ + valueIds.set(value, obj); + + // for each of the object's own properties, emit a statement that assigns the value of that property + // vObj.propName = vValue + Object.getOwnPropertyNames(value).forEach((propName) => + emit( + expr(assign(prop(id(obj), propName), id(serialize(value[propName])))) + ) + ); + + return obj; + } else if (typeof value === "function") { + const ast = reflect(func); + + if (ast === undefined) { + // if this is not compiled by functionless, we can only serialize it if it is exported by a module + const mod = requireCache.get(func); + if (mod === undefined) { + throw new Error( + `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` + ); + } + // const vMod = require("module-name"); + const moduleName = emitVarDecl(call(id("require"), [string(mod.path)])); + + // const vFunc = vMod.prop + return emitVarDecl(prop(id(moduleName), mod.exportName)); + } else if (isFunctionLike(ast)) { + } else { + throw ast.error; + } + } + + throw new Error("not implemented"); + } + + function serializeAST(node: FunctionlessNode): ts.Node { + if (isFunctionDecl(node)) { + return ts.factory.createFunctionDeclaration(undefined, undefined); + } else if (isBlockStmt(node)) { + return ts.factory.createBlock( + node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) + ); + } else if (isUndefinedLiteralExpr(node)) { + return ts.factory.createIdentifier("undefined"); + } else if (isNullLiteralExpr(node)) { + return ts.factory.createNull(); + } else if (isBooleanLiteralExpr(node)) { + return node.value ? ts.factory.createTrue() : ts.factory.createFalse(); + } else if (isNumberLiteralExpr(node)) { + return ts.factory.createNumericLiteral(node.value); + } else if (isStringLiteralExpr(node)) { + return string(node.value); + } else if (isIdentifier(node)) { + return id(node.name); + } else if (isPropAccessExpr(node)) { + return ts.factory.createPropertyAccessChain( + serializeAST(node.expr) as ts.Expression, + node.isOptional + ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) + : undefined, + serializeAST(node.name) as ts.MemberName + ); + } else if (isElementAccessExpr(node)) { + return ts.factory.createElementAccessChain( + serializeAST(node.expr) as ts.Expression, + node.isOptional + ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) + : undefined, + serializeAST(node.element) as ts.Expression + ); + } + } +} + +function id(name: string) { + return ts.factory.createIdentifier(name); +} + +function string(name: string) { + return ts.factory.createStringLiteral(name); +} + +function prop(expr: ts.Expression, name: string) { + return ts.factory.createPropertyAccessExpression(expr, name); +} + +function assign(left: ts.Expression, right: ts.Expression) { + return ts.factory.createBinaryExpression( + left, + ts.factory.createToken(ts.SyntaxKind.EqualsToken), + right + ); +} + +function call(expr: ts.Expression, args: ts.Expression[]) { + return ts.factory.createCallExpression(expr, undefined, args); +} + +function expr(expr: ts.Expression): ts.Statement { + return ts.factory.createExpressionStatement(expr); +} diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts new file mode 100644 index 00000000..2704f37b --- /dev/null +++ b/test/serialize-closure.test.ts @@ -0,0 +1,8 @@ +import "jest"; +import { serializeClosure } from "../src/serialize-closure"; + +test("reference to imported function", () => { + serializeClosure(() => { + return serializeClosure; + }); +}); From ac6d4305ae72b07c09fefd9685a3aa88042f3956 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 3 Aug 2022 19:20:41 -0700 Subject: [PATCH 007/107] feat: setup @swc/register --- .eslintrc.json | 7 +- .gitattributes | 1 - .gitignore | 3 - .npmignore | 3 - .projen/deps.json | 18 +- .projen/tasks.json | 31 +- .projenrc.js | 18 +- .swcrc | 16 + jest.config.ts | 38 ++ package.json | 56 +- src/event-bridge/utils.ts | 8 +- src/serialize-closure.ts | 5 +- test-reports/junit.xml | 193 ++++++ yarn.lock | 1318 +++++++++++++++++-------------------- 14 files changed, 890 insertions(+), 825 deletions(-) create mode 100644 .swcrc create mode 100644 jest.config.ts create mode 100644 test-reports/junit.xml diff --git a/.eslintrc.json b/.eslintrc.json index 6b31b63d..1bdf5bf2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -36,12 +36,7 @@ } }, "ignorePatterns": [ - "*.js", - "!.projenrc.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" + "jest.config.ts" ], "rules": { "prettier/prettier": [ diff --git a/.gitattributes b/.gitattributes index 87b23178..5c19827f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,5 @@ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". -*.snap linguist-generated /.eslintrc.json linguist-generated /.git/hooks/pre-commit linguist-generated /.gitattributes linguist-generated diff --git a/.gitignore b/.gitignore index 0e117065..6ce2a533 100644 --- a/.gitignore +++ b/.gitignore @@ -33,9 +33,6 @@ jspm_packages/ .DS_Store .dccache !/.projenrc.js -/test-reports/ -junit.xml -/coverage/ !/.github/workflows/build.yml /dist/changelog.md /dist/version.txt diff --git a/.npmignore b/.npmignore index b2b75205..4a83d69d 100644 --- a/.npmignore +++ b/.npmignore @@ -1,8 +1,5 @@ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ -/test-reports/ -junit.xml -/coverage/ /dist/changelog.md /dist/version.txt /.mergify.yml diff --git a/.projen/deps.json b/.projen/deps.json index 5abcbb0f..6949d11d 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -21,11 +21,15 @@ "type": "build" }, { - "name": "@types/fs-extra", + "name": "@swc/core", + "type": "build" + }, + { + "name": "@swc/register", "type": "build" }, { - "name": "@types/jest", + "name": "@types/fs-extra", "type": "build" }, { @@ -120,11 +124,6 @@ "name": "jest", "type": "build" }, - { - "name": "jest-junit", - "version": "^13", - "type": "build" - }, { "name": "json-schema", "type": "build" @@ -155,6 +154,11 @@ "version": "^9", "type": "build" }, + { + "name": "swc-closure", + "version": "file:../swc-closure", + "type": "build" + }, { "name": "ts-jest", "type": "build" diff --git a/.projen/tasks.json b/.projen/tasks.json index 67a6abf8..fda11a5e 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -203,9 +203,6 @@ { "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, - { - "exec": "jest --passWithNoTests --all --updateSnapshot" - }, { "spawn": "eslint" }, @@ -225,24 +222,6 @@ } ] }, - "test:update": { - "name": "test:update", - "description": "Update jest snapshots", - "steps": [ - { - "exec": "jest --updateSnapshot" - } - ] - }, - "test:watch": { - "name": "test:watch", - "description": "Run jest in watch mode", - "steps": [ - { - "exec": "jest --watch" - } - ] - }, "unbump": { "name": "unbump", "description": "Restores version to 0.0.0", @@ -270,19 +249,19 @@ "exec": "yarn upgrade npm-check-updates" }, { - "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" }, { "exec": "yarn install --check-files" diff --git a/.projenrc.js b/.projenrc.js index e1f25aef..320e557c 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -112,7 +112,14 @@ const project = new CustomTypescriptProject({ */ // for serializer testing "uuid", + "@swc/core", + "@swc/register", + "swc-closure@file:../swc-closure", + "jest", + "ts-jest", ], + // we will manually set up jest because we need to use jest.config.ts + jest: false, scripts: { prepare: "ts-patch install -s", localstack: "./scripts/localstack", @@ -127,6 +134,7 @@ const project = new CustomTypescriptProject({ ], eslintOptions: { lintProjenRc: true, + ignorePatterns: ["jest.config.ts"], }, tsconfig: { compilerOptions: { @@ -151,15 +159,7 @@ const project = new CustomTypescriptProject({ }, gitignore: [".DS_Store", ".dccache"], releaseToNpm: true, - jestOptions: { - jestConfig: { - collectCoverage: false, - coveragePathIgnorePatterns: ["/test/", "/node_modules/", "/lib"], - moduleNameMapper: { - "^@fnls$": "/lib/index", - }, - }, - }, + depsUpgradeOptions: { workflowOptions: { projenCredentials: GithubCredentials.fromApp(), diff --git a/.swcrc b/.swcrc new file mode 100644 index 00000000..f2695c22 --- /dev/null +++ b/.swcrc @@ -0,0 +1,16 @@ +{ + "jsc": { + "target": "es2018", + "parser": { + "syntax": "typescript", + "tsx": true, + "decorators": true + }, + "experimental": { + "plugins": [["swc_closure"]] + } + }, + "module": { + "type": "commonjs" + } +} diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 00000000..87069434 --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,38 @@ +// @e +import type { Config } from "@jest/types"; + +import "@swc/register"; + +export default async (): Promise => { + return { + collectCoverage: false, + coveragePathIgnorePatterns: ["/test/", "/node_modules/", "/lib"], + moduleNameMapper: { + "^@fnls$": "/lib/index", + }, + testMatch: [ + "/src/**/__tests__/**/*.ts?(x)", + "/(test|src)/**/*(*.)@(spec|test).ts?(x)", + ], + clearMocks: true, + coverageReporters: ["json", "lcov", "clover", "cobertura", "text"], + coverageDirectory: "coverage", + testPathIgnorePatterns: ["/node_modules/"], + watchPathIgnorePatterns: ["/node_modules/"], + reporters: [ + "default", + [ + "jest-junit", + { + outputDirectory: "test-reports", + }, + ], + ], + preset: "ts-jest", + globals: { + "ts-jest": { + tsconfig: "tsconfig.dev.json", + }, + }, + }; +}; diff --git a/package.json b/package.json index 3a1531ae..5b567d60 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,6 @@ "release": "npx projen release", "test": "npx projen test", "test:fast": "npx projen test:fast", - "test:update": "npx projen test:update", - "test:watch": "npx projen test:watch", "unbump": "npx projen unbump", "upgrade": "npx projen upgrade", "watch": "npx projen watch", @@ -35,8 +33,9 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", + "@swc/core": "^1.2.223", + "@swc/register": "^0.1.10", "@types/fs-extra": "^9.0.13", - "@types/jest": "^27.5.2", "@types/minimatch": "^3.0.5", "@types/node": "^14", "@types/uuid": "^8.3.4", @@ -57,8 +56,7 @@ "eslint-plugin-no-only-tests": "^2.6.0", "eslint-plugin-prettier": "^4.2.1", "graphql-request": "^4.3.0", - "jest": "^27", - "jest-junit": "^13", + "jest": "^28.1.3", "json-schema": "^0.4.0", "npm-check-updates": "^15", "prettier": "^2.7.1", @@ -66,7 +64,8 @@ "promptly": "^3.2.0", "proxy-agent": "^5.0.0", "standard-version": "^9", - "ts-jest": "^27", + "swc-closure": "file:../swc-closure", + "ts-jest": "^28.0.7", "ts-node": "^10.9.1", "ts-patch": "^2.0.1", "typesafe-dynamodb": "0.1.5", @@ -90,51 +89,6 @@ "main": "lib/index.js", "license": "Apache-2.0", "version": "0.0.0", - "jest": { - "collectCoverage": false, - "coveragePathIgnorePatterns": [ - "/test/", - "/node_modules/", - "/lib" - ], - "moduleNameMapper": { - "^@fnls$": "/lib/index" - }, - "testMatch": [ - "/src/**/__tests__/**/*.ts?(x)", - "/(test|src)/**/*(*.)@(spec|test).ts?(x)" - ], - "clearMocks": true, - "coverageReporters": [ - "json", - "lcov", - "clover", - "cobertura", - "text" - ], - "coverageDirectory": "coverage", - "testPathIgnorePatterns": [ - "/node_modules/" - ], - "watchPathIgnorePatterns": [ - "/node_modules/" - ], - "reporters": [ - "default", - [ - "jest-junit", - { - "outputDirectory": "test-reports" - } - ] - ], - "preset": "ts-jest", - "globals": { - "ts-jest": { - "tsconfig": "tsconfig.dev.json" - } - } - }, "types": "lib/index.d.ts", "lint-staged": { "*.{tsx,jsx,ts,js,json,md,css}": [ diff --git a/src/event-bridge/utils.ts b/src/event-bridge/utils.ts index 93692fa5..a69899fb 100644 --- a/src/event-bridge/utils.ts +++ b/src/event-bridge/utils.ts @@ -79,7 +79,11 @@ export const getPropertyAccessKeyFlatten = ( ): string | number => { if (isElementAccessExpr(expr)) { return getPropertyAccessKey( - new ElementAccessExpr(expr.expr, flattenExpression(expr.element, scope)) + new ElementAccessExpr( + expr.expr, + flattenExpression(expr.element, scope), + expr.isOptional + ) ); } return getPropertyAccessKey(expr); @@ -186,7 +190,7 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { } return typeof key === "string" ? new PropAccessExpr(parent, new Identifier(key), false) - : new ElementAccessExpr(parent, new NumberLiteralExpr(key)); + : new ElementAccessExpr(parent, new NumberLiteralExpr(key), false); } else if (isComputedPropertyNameExpr(expr)) { return flattenExpression(expr.expr, scope); } else if (isArrayLiteralExpr(expr)) { diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 0df7e1da..7c792b6d 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -157,6 +157,7 @@ export function serializeClosure(func: AnyFunction): string { // const vFunc = vMod.prop return emitVarDecl(prop(id(moduleName), mod.exportName)); } else if (isFunctionLike(ast)) { + return emitVarDecl(serializeAST(ast) as ts.Expression); } else { throw ast.error; } @@ -167,7 +168,7 @@ export function serializeClosure(func: AnyFunction): string { function serializeAST(node: FunctionlessNode): ts.Node { if (isFunctionDecl(node)) { - return ts.factory.createFunctionDeclaration(undefined, undefined); + // return ts.factory.createFunctionDeclaration(undefined, undefined); } else if (isBlockStmt(node)) { return ts.factory.createBlock( node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) @@ -201,6 +202,8 @@ export function serializeClosure(func: AnyFunction): string { serializeAST(node.element) as ts.Expression ); } + + throw new Error("not yet implemented"); } } diff --git a/test-reports/junit.xml b/test-reports/junit.xml new file mode 100644 index 00000000..e1ea59fc --- /dev/null +++ b/test-reports/junit.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index f62415ce..9a73c0cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -740,7 +740,7 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.8.tgz#2483f565faca607b8535590e84e7de323f27764d" integrity sha512-HSmX4WZPPK3FUxYp7g2T6EyO8j96HlZJlxmKPSh6KAcqwyDrfx7hKjXpAW/0FhFfTJsR0Yt4lAjLI2coMptIHQ== -"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0": +"@babel/core@^7.11.6", "@babel/core@^7.12.3": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.10.tgz#39ad504991d77f1f3da91be0b8b949a5bc466fb8" integrity sha512-JQM6k6ENcBFKVtWvLavlvi/mPcpYZ3+R+2EySDEMSMbp7Mn4FexlbbJVrx2R7Ijhr01T8gyqrOaABWIOgxeUyw== @@ -1126,173 +1126,197 @@ resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== -"@jest/console@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.5.1.tgz#260fe7239602fe5130a94f1aa386eff54b014bba" - integrity sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg== +"@jest/console@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-28.1.3.tgz#2030606ec03a18c31803b8a36382762e447655df" + integrity sha512-QPAkP5EwKdK/bxIr6C1I4Vs0rm2nHiANzj/Z5X2JQkrZo6IqvC4ldZ9K95tF0HdidhA8Bo6egxSzUFPYKcEXLw== dependencies: - "@jest/types" "^27.5.1" + "@jest/types" "^28.1.3" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^27.5.1" - jest-util "^27.5.1" + jest-message-util "^28.1.3" + jest-util "^28.1.3" slash "^3.0.0" -"@jest/core@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-27.5.1.tgz#267ac5f704e09dc52de2922cbf3af9edcd64b626" - integrity sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ== +"@jest/core@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-28.1.3.tgz#0ebf2bd39840f1233cd5f2d1e6fc8b71bd5a1ac7" + integrity sha512-CIKBrlaKOzA7YG19BEqCw3SLIsEwjZkeJzf5bdooVnW4bH5cktqe3JX+G2YV1aK5vP8N9na1IGWFzYaTp6k6NA== dependencies: - "@jest/console" "^27.5.1" - "@jest/reporters" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/console" "^28.1.3" + "@jest/reporters" "^28.1.3" + "@jest/test-result" "^28.1.3" + "@jest/transform" "^28.1.3" + "@jest/types" "^28.1.3" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" - emittery "^0.8.1" + ci-info "^3.2.0" exit "^0.1.2" graceful-fs "^4.2.9" - jest-changed-files "^27.5.1" - jest-config "^27.5.1" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-resolve-dependencies "^27.5.1" - jest-runner "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - jest-watcher "^27.5.1" + jest-changed-files "^28.1.3" + jest-config "^28.1.3" + jest-haste-map "^28.1.3" + jest-message-util "^28.1.3" + jest-regex-util "^28.0.2" + jest-resolve "^28.1.3" + jest-resolve-dependencies "^28.1.3" + jest-runner "^28.1.3" + jest-runtime "^28.1.3" + jest-snapshot "^28.1.3" + jest-util "^28.1.3" + jest-validate "^28.1.3" + jest-watcher "^28.1.3" micromatch "^4.0.4" + pretty-format "^28.1.3" rimraf "^3.0.0" slash "^3.0.0" strip-ansi "^6.0.0" -"@jest/environment@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.5.1.tgz#d7425820511fe7158abbecc010140c3fd3be9c74" - integrity sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA== +"@jest/environment@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-28.1.3.tgz#abed43a6b040a4c24fdcb69eab1f97589b2d663e" + integrity sha512-1bf40cMFTEkKyEf585R9Iz1WayDjHoHqvts0XFYEqyKM3cFWDpeMoqKKTAF9LSYQModPUlh8FKptoM2YcMWAXA== dependencies: - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/fake-timers" "^28.1.3" + "@jest/types" "^28.1.3" "@types/node" "*" - jest-mock "^27.5.1" + jest-mock "^28.1.3" + +"@jest/expect-utils@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-28.1.3.tgz#58561ce5db7cd253a7edddbc051fb39dda50f525" + integrity sha512-wvbi9LUrHJLn3NlDW6wF2hvIMtd4JUl2QNVrjq+IBSHirgfrR3o9RnVtxzdEGO2n9JyIWwHnLfby5KzqBGg2YA== + dependencies: + jest-get-type "^28.0.2" -"@jest/fake-timers@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.5.1.tgz#76979745ce0579c8a94a4678af7a748eda8ada74" - integrity sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ== +"@jest/expect@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-28.1.3.tgz#9ac57e1d4491baca550f6bdbd232487177ad6a72" + integrity sha512-lzc8CpUbSoE4dqT0U+g1qODQjBRHPpCPXissXD4mS9+sWQdmmpeJ9zSH1rS1HEkrsMN0fb7nKrJ9giAR1d3wBw== dependencies: - "@jest/types" "^27.5.1" - "@sinonjs/fake-timers" "^8.0.1" + expect "^28.1.3" + jest-snapshot "^28.1.3" + +"@jest/fake-timers@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-28.1.3.tgz#230255b3ad0a3d4978f1d06f70685baea91c640e" + integrity sha512-D/wOkL2POHv52h+ok5Oj/1gOG9HSywdoPtFsRCUmlCILXNn5eIWmcnd3DIiWlJnpGvQtmajqBP95Ei0EimxfLw== + dependencies: + "@jest/types" "^28.1.3" + "@sinonjs/fake-timers" "^9.1.2" "@types/node" "*" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-util "^27.5.1" + jest-message-util "^28.1.3" + jest-mock "^28.1.3" + jest-util "^28.1.3" -"@jest/globals@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.5.1.tgz#7ac06ce57ab966566c7963431cef458434601b2b" - integrity sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q== +"@jest/globals@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-28.1.3.tgz#a601d78ddc5fdef542728309894895b4a42dc333" + integrity sha512-XFU4P4phyryCXu1pbcqMO0GSQcYe1IsalYCDzRNyhetyeyxMcIxa11qPNDpVNLeretItNqEmYYQn1UYz/5x1NA== dependencies: - "@jest/environment" "^27.5.1" - "@jest/types" "^27.5.1" - expect "^27.5.1" + "@jest/environment" "^28.1.3" + "@jest/expect" "^28.1.3" + "@jest/types" "^28.1.3" -"@jest/reporters@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-27.5.1.tgz#ceda7be96170b03c923c37987b64015812ffec04" - integrity sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw== +"@jest/reporters@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-28.1.3.tgz#9adf6d265edafc5fc4a434cfb31e2df5a67a369a" + integrity sha512-JuAy7wkxQZVNU/V6g9xKzCGC5LVXx9FDcABKsSXp5MiKPEE2144a/vXTEDoyzjUpZKfVwp08Wqg5A4WfTMAzjg== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/console" "^28.1.3" + "@jest/test-result" "^28.1.3" + "@jest/transform" "^28.1.3" + "@jest/types" "^28.1.3" + "@jridgewell/trace-mapping" "^0.3.13" "@types/node" "*" chalk "^4.0.0" collect-v8-coverage "^1.0.0" exit "^0.1.2" - glob "^7.1.2" + glob "^7.1.3" graceful-fs "^4.2.9" istanbul-lib-coverage "^3.0.0" istanbul-lib-instrument "^5.1.0" istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.1.3" - jest-haste-map "^27.5.1" - jest-resolve "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" + jest-message-util "^28.1.3" + jest-util "^28.1.3" + jest-worker "^28.1.3" slash "^3.0.0" - source-map "^0.6.0" string-length "^4.0.1" + strip-ansi "^6.0.0" terminal-link "^2.0.0" - v8-to-istanbul "^8.1.0" + v8-to-istanbul "^9.0.1" + +"@jest/schemas@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-28.1.3.tgz#ad8b86a66f11f33619e3d7e1dcddd7f2d40ff905" + integrity sha512-/l/VWsdt/aBXgjshLWOFyFt3IVdYypu5y2Wn2rOO1un6nkqIn8SLXzgIMYXFyYsRWDyF5EthmKJMIdJvk08grg== + dependencies: + "@sinclair/typebox" "^0.24.1" -"@jest/source-map@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.5.1.tgz#6608391e465add4205eae073b55e7f279e04e8cf" - integrity sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg== +"@jest/source-map@^28.1.2": + version "28.1.2" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-28.1.2.tgz#7fe832b172b497d6663cdff6c13b0a920e139e24" + integrity sha512-cV8Lx3BeStJb8ipPHnqVw/IM2VCMWO3crWZzYodSIkxXnRcXJipCdx1JCK0K5MsJJouZQTH73mzf4vgxRaH9ww== dependencies: + "@jridgewell/trace-mapping" "^0.3.13" callsites "^3.0.0" graceful-fs "^4.2.9" - source-map "^0.6.0" -"@jest/test-result@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.5.1.tgz#56a6585fa80f7cdab72b8c5fc2e871d03832f5bb" - integrity sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag== +"@jest/test-result@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-28.1.3.tgz#5eae945fd9f4b8fcfce74d239e6f725b6bf076c5" + integrity sha512-kZAkxnSE+FqE8YjW8gNuoVkkC9I7S1qmenl8sGcDOLropASP+BkcGKwhXoyqQuGOGeYY0y/ixjrd/iERpEXHNg== dependencies: - "@jest/console" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/console" "^28.1.3" + "@jest/types" "^28.1.3" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz#4057e0e9cea4439e544c6353c6affe58d095745b" - integrity sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ== +"@jest/test-sequencer@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-28.1.3.tgz#9d0c283d906ac599c74bde464bc0d7e6a82886c3" + integrity sha512-NIMPEqqa59MWnDi1kvXXpYbqsfQmSJsIbnd85mdVGkiDfQ9WQQTXOLsvISUfonmnBT+w85WEgneCigEEdHDFxw== dependencies: - "@jest/test-result" "^27.5.1" + "@jest/test-result" "^28.1.3" graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-runtime "^27.5.1" + jest-haste-map "^28.1.3" + slash "^3.0.0" -"@jest/transform@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.5.1.tgz#6c3501dcc00c4c08915f292a600ece5ecfe1f409" - integrity sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw== +"@jest/transform@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-28.1.3.tgz#59d8098e50ab07950e0f2fc0fc7ec462371281b0" + integrity sha512-u5dT5di+oFI6hfcLOHGTAfmUxFRrjK+vnaP0kkVow9Md/M7V/MxqQMOz/VV25UZO8pzeA9PjfTpOu6BDuwSPQA== dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^27.5.1" + "@babel/core" "^7.11.6" + "@jest/types" "^28.1.3" + "@jridgewell/trace-mapping" "^0.3.13" babel-plugin-istanbul "^6.1.1" chalk "^4.0.0" convert-source-map "^1.4.0" fast-json-stable-stringify "^2.0.0" graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-regex-util "^27.5.1" - jest-util "^27.5.1" + jest-haste-map "^28.1.3" + jest-regex-util "^28.0.2" + jest-util "^28.1.3" micromatch "^4.0.4" pirates "^4.0.4" slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" + write-file-atomic "^4.0.1" -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== +"@jest/types@^28.1.3": + version "28.1.3" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-28.1.3.tgz#b05de80996ff12512bc5ceb1d208285a7d11748b" + integrity sha512-RyjiyMUZrKz/c+zlMFO1pm70DcIlST8AeWTkoUdZevew44wcNZQHsEVOiCVtgVnlFFD82FPaXycys58cf2muVQ== dependencies: + "@jest/schemas" "^28.1.3" "@types/istanbul-lib-coverage" "^2.0.0" "@types/istanbul-reports" "^3.0.0" "@types/node" "*" - "@types/yargs" "^16.0.0" + "@types/yargs" "^17.0.8" chalk "^4.0.0" "@jridgewell/gen-mapping@^0.1.0": @@ -1335,7 +1359,7 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@jridgewell/trace-mapping@^0.3.9": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.13", "@jridgewell/trace-mapping@^0.3.9": version "0.3.14" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz#b231a081d8f66796e475ad588a1ef473112701ed" integrity sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ== @@ -1470,6 +1494,11 @@ "@pnpm/network.ca-file" "^1.0.1" config-chain "^1.1.11" +"@sinclair/typebox@^0.24.1": + version "0.24.26" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.26.tgz#84f9e8c1d93154e734a7947609a1dc7c7a81cc22" + integrity sha512-1ZVIyyS1NXDRVT8GjWD5jULjhDyM3IsIHef2VGUMdnWOlX2tkPjyEX/7K0TGSH2S8EaPhp1ylFdjSjUGQ+gecg== + "@sindresorhus/is@^5.2.0": version "5.3.0" resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-5.3.0.tgz#0ec9264cf54a527671d990eb874e030b55b70dcc" @@ -1482,13 +1511,128 @@ dependencies: type-detect "4.0.8" -"@sinonjs/fake-timers@^8.0.1": - version "8.1.0" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz#3fdc2b6cb58935b21bfb8d1625eb1300484316e7" - integrity sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg== +"@sinonjs/fake-timers@^9.1.2": + version "9.1.2" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-9.1.2.tgz#4eaab737fab77332ab132d396a3c0d364bd0ea8c" + integrity sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw== dependencies: "@sinonjs/commons" "^1.7.0" +"@swc/core-android-arm-eabi@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.223.tgz#5d5ae572c90eb2e19f46c1ef56aab2e3fa7101fe" + integrity sha512-Hy/ya4oy80Ay70H9vhA8W0/FU9aQ/oQjvZ/on+wcNMATAiU9tk47i73LtPM01GruNiYJOwFcf2XWjlTpq5a0BQ== + dependencies: + "@swc/wasm" "1.2.122" + +"@swc/core-android-arm64@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.223.tgz#13c1751f9af36525adbb420098a4c74765afa7c4" + integrity sha512-qujrIXDBMWcPcdtTG/r+RNVBU5rg2Sk9Vg+U4FybX3c34rIyX2QYu5sxwM/HIGfd6wCbt5lyFZOvgSY000MTNw== + dependencies: + "@swc/wasm" "1.2.130" + +"@swc/core-darwin-arm64@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.223.tgz#44ee2d1fbf9350c6aeda1983a384514272a9b2b7" + integrity sha512-CX32sRhAnFj3fJI6V4vdu5IUV5frEZNZM6hIPUs1UuVpxyuto9IZwd2y7/ACItB5RipA3VDL/c7jrFdSmfrgzg== + +"@swc/core-darwin-x64@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.223.tgz#a157820e158d22c9b443821d15258bc58978e154" + integrity sha512-5FVQgWtqMmpOtky0JLTIF4a1WiAkuDOe5mwgzpi8nZ7nCxNo/DNThBbnIDlNhrR4M/1M6wzPshn1wNivvD7MQw== + +"@swc/core-freebsd-x64@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.223.tgz#ec9b300860f378aeb183084d89ba65009910d9f9" + integrity sha512-5oumS+YZyOMMKc5D3Bvf/541SF8n4b8LQ5x4WFA2CdAzD/jCgphE0IoAZ0u3bHz9S6Tl6Emu11V+/ALHE1oUew== + dependencies: + "@swc/wasm" "1.2.130" + +"@swc/core-linux-arm-gnueabihf@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.223.tgz#3403de3c9402e1eeca68b1c134ea574739c7c49c" + integrity sha512-osYjVijq101xZjwPUKR6AUib1LZU9laaM3aEOyElAi8cHolsZEp8D9ynr7cSWFUZJuzpTlY7iuJeY3FszdWrJA== + dependencies: + "@swc/wasm" "1.2.130" + +"@swc/core-linux-arm64-gnu@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.223.tgz#d0a2d5dd01c5744950e57ec59aa4696bbabf02e4" + integrity sha512-JZdPZIZzkJ6R+XB0lCnL0eD9VK/JfpZgKBqR3Gur9Fxs8Ea9p1HhZHSEAJ2T2YwV629dYjXwKqraOkLQrEMzCg== + +"@swc/core-linux-arm64-musl@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.223.tgz#667bd6583f93909736600acdd9d5cc4c6141d577" + integrity sha512-9BVDH5Cq+VlAuJrshCgxWgziLEGzShZ2OVZ7SEA/+md1y69x2VdMR9lMSfD/EXqb6AJAaFODRe20Irtppeqr2Q== + +"@swc/core-linux-x64-gnu@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.223.tgz#c29788110fe1aa7fb86332178dcd1606368fd2c2" + integrity sha512-Z+KAxSpUDNEPfjOKX/tZk67StvzIyAhTc5FPWoVhx5CBlkGQaDBRl1TNmb1wdne/WF9xVkx6wz22pvNevX5fig== + +"@swc/core-linux-x64-musl@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.223.tgz#24b7001530d4e09d7bae58c704ac79a6593bb9c1" + integrity sha512-3EkAOA0KQdm7Rw/0L5odtDKAtmzhgF7FKTL+zZb+s0ju5oMwFGN+XIIwUQdPSf11Ej3ezjHjHTFTlv0xqutfuA== + +"@swc/core-win32-arm64-msvc@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.223.tgz#8902c20d3d7ed2c9741ff0e227581d26ce8e0497" + integrity sha512-n8LWkej30hvfvazrJgwS6kwBZXMFCevLiRsZmP8O4hpC9b1wfAa+KLm4nHOR+J8jwF7LEjiERdU6tbIWZz0Tnw== + dependencies: + "@swc/wasm" "1.2.130" + +"@swc/core-win32-ia32-msvc@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.223.tgz#591405f9fa07915e9d0b94a4174a5745621fe580" + integrity sha512-kEDGFFUC6xPqCom03QtR+76Ptwtf8RABI4FqRdvrvbasw9zj0xkuLSDCvqL72zdOZCWRciiFijQVHfndLByMAQ== + dependencies: + "@swc/wasm" "1.2.130" + +"@swc/core-win32-x64-msvc@1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.223.tgz#7a4549cedb7c0e7a3d4861c2b5230224194e0f04" + integrity sha512-nzL8rwzMFA9cBK2s+QBMPcNnoGSPMfgY9ypRw/nTp0hQDgdLOXHy9moGFJg8dbdQD39kC5s8yQ0BmyKvePILgg== + +"@swc/core@^1.2.223": + version "1.2.223" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.223.tgz#e44a3f6971a1f5c22d1037cf60510ef32c93d2a5" + integrity sha512-LcKX1frJ1iJDSYlY9Bg0vm0rYsXloITh6PdEYM5amT73J9mC1c2YpWLnWQiH2QpcyblyMhX1pk1eZ2JZjaynrQ== + optionalDependencies: + "@swc/core-android-arm-eabi" "1.2.223" + "@swc/core-android-arm64" "1.2.223" + "@swc/core-darwin-arm64" "1.2.223" + "@swc/core-darwin-x64" "1.2.223" + "@swc/core-freebsd-x64" "1.2.223" + "@swc/core-linux-arm-gnueabihf" "1.2.223" + "@swc/core-linux-arm64-gnu" "1.2.223" + "@swc/core-linux-arm64-musl" "1.2.223" + "@swc/core-linux-x64-gnu" "1.2.223" + "@swc/core-linux-x64-musl" "1.2.223" + "@swc/core-win32-arm64-msvc" "1.2.223" + "@swc/core-win32-ia32-msvc" "1.2.223" + "@swc/core-win32-x64-msvc" "1.2.223" + +"@swc/register@^0.1.10": + version "0.1.10" + resolved "https://registry.yarnpkg.com/@swc/register/-/register-0.1.10.tgz#74a20b7559669e03479b05e9e5c6d1524d4d92a2" + integrity sha512-6STwH/q4dc3pitXLVkV7sP0Hiy+zBsU2wOF1aXpXR95pnH3RYHKIsDC+gvesfyB7jxNT9OOZgcqOp9RPxVTx9A== + dependencies: + lodash.clonedeep "^4.5.0" + pirates "^4.0.1" + source-map-support "^0.5.13" + +"@swc/wasm@1.2.122": + version "1.2.122" + resolved "https://registry.yarnpkg.com/@swc/wasm/-/wasm-1.2.122.tgz#87a5e654b26a71b2e84b801f41e45f823b856639" + integrity sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ== + +"@swc/wasm@1.2.130": + version "1.2.130" + resolved "https://registry.yarnpkg.com/@swc/wasm/-/wasm-1.2.130.tgz#88ac26433335d1f957162a9a92f1450b73c176a0" + integrity sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q== + "@szmarczak/http-timer@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-5.0.1.tgz#c7c1bf1141cdd4751b0399c8fc7b8b664cd5be3a" @@ -1531,7 +1675,7 @@ resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.101.tgz#35d85783a834e04604d49e85dc7ee6e2820e8939" integrity sha512-84geGyVc0H9P9aGbcg/vkDh5akJq0bEf3tizHNR2d1gcm0wsp9IZ/SW6rPxvgjJFi3OeVxDc8WTKCAjoZbogzg== -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": +"@types/babel__core@^7.1.14": version "7.1.19" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== @@ -1557,7 +1701,7 @@ "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": version "7.17.1" resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.17.1.tgz#1a0e73e8c28c7e832656db372b779bfd2ef37314" integrity sha512-kVzjari1s2YVi77D3w1yuvohV2idweYXMCDzqBiVNN63TcDWrIlTVOYpqVrvbbyOE/IyzBoTKF0fdnLPEORFxA== @@ -1581,7 +1725,7 @@ dependencies: "@types/node" "*" -"@types/graceful-fs@^4.1.2": +"@types/graceful-fs@^4.1.3": version "4.1.5" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== @@ -1612,14 +1756,6 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@^27.5.2": - version "27.5.2" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.5.2.tgz#ec49d29d926500ffb9fd22b84262e862049c026c" - integrity sha512-mpT8LJJ4CMeeahobofYWIjFo0xonRS/HfxnVEPMPFSQdGUt1uHCnoPT7Zhb+sjDU2wz0oKV0OLUR0WzrHNgfeA== - dependencies: - jest-matcher-utils "^27.0.0" - pretty-format "^27.0.0" - "@types/json-buffer@~3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/json-buffer/-/json-buffer-3.0.0.tgz#85c1ff0f0948fc159810d4b5be35bf8c20875f64" @@ -1699,10 +1835,10 @@ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== -"@types/yargs@^16.0.0": - version "16.0.4" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" - integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== +"@types/yargs@^17.0.8": + version "17.0.10" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.10.tgz#591522fce85d8739bca7b8bb90d048e4478d186a" + integrity sha512-gmEaFwpj/7f/ROdtIlci1R1VYU1J4j95m8T+Tj3iBgiBFKg1foE/PSl93bBd5T9LDXNPo8UlNN6W0qwD8O5OaA== dependencies: "@types/yargs-parser" "*" @@ -1794,11 +1930,6 @@ JSONStream@^1.0.4: jsonparse "^1.2.0" through ">=2.2.7 <3" -abab@^2.0.3, abab@^2.0.5: - version "2.0.6" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" - integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== - abbrev@1: version "1.1.1" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" @@ -1812,35 +1943,17 @@ accepts@~1.3.8: mime-types "~2.1.34" negotiator "0.6.3" -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - acorn-walk@^8.1.1, acorn-walk@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== -acorn@^7.1.1: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.2.4, acorn@^8.4.1, acorn@^8.7.0, acorn@^8.8.0: +acorn@^8.4.1, acorn@^8.7.0, acorn@^8.8.0: version "8.8.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== @@ -2192,16 +2305,15 @@ axios@^0.27.2: follow-redirects "^1.14.9" form-data "^4.0.0" -babel-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444" - integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg== +babel-jest@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-28.1.3.tgz#c1187258197c099072156a0a121c11ee1e3917d5" + integrity sha512-epUaPOEWMk3cWX0M/sPvCHHCe9fMFAa/9hXEgKP8nFfNl/jlGkE9ucq9NqkZGXLDduCJYS0UvSlPUwC0S+rH6Q== dependencies: - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/transform" "^28.1.3" "@types/babel__core" "^7.1.14" babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^27.5.1" + babel-preset-jest "^28.1.3" chalk "^4.0.0" graceful-fs "^4.2.9" slash "^3.0.0" @@ -2217,14 +2329,14 @@ babel-plugin-istanbul@^6.1.1: istanbul-lib-instrument "^5.0.4" test-exclude "^6.0.0" -babel-plugin-jest-hoist@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz#9be98ecf28c331eb9f5df9c72d6f89deb8181c2e" - integrity sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ== +babel-plugin-jest-hoist@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-28.1.3.tgz#1952c4d0ea50f2d6d794353762278d1d8cca3fbe" + integrity sha512-Ys3tUKAmfnkRUpPdpa98eYrAR0nV+sSFUZZEGuQ2EbFd1y4SOLtD5QDNHAq+bb9a+bbXvYQC4b+ID/THIMcU6Q== dependencies: "@babel/template" "^7.3.3" "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" + "@types/babel__core" "^7.1.14" "@types/babel__traverse" "^7.0.6" babel-preset-current-node-syntax@^1.0.0: @@ -2245,12 +2357,12 @@ babel-preset-current-node-syntax@^1.0.0: "@babel/plugin-syntax-optional-chaining" "^7.8.3" "@babel/plugin-syntax-top-level-await" "^7.8.3" -babel-preset-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz#91f10f58034cb7989cb4f962b69fa6eef6a6bc81" - integrity sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag== +babel-preset-jest@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-28.1.3.tgz#5dfc20b99abed5db994406c2b9ab94c73aaa419d" + integrity sha512-L+fupJvlWAHbQfn74coNX3zf60LXMJsezNvvx8eIh7iOR1luJ1poxYgQk1F8PYtNq/6QODDHCqsSnTFSWC491A== dependencies: - babel-plugin-jest-hoist "^27.5.1" + babel-plugin-jest-hoist "^28.1.3" babel-preset-current-node-syntax "^1.0.0" balanced-match@^1.0.0: @@ -2331,11 +2443,6 @@ braces@^3.0.2: dependencies: fill-range "^7.0.1" -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - browserslist@^4.20.2: version "4.21.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.3.tgz#5df277694eb3c48bc5c4b05af3e8b7e09c5a6d1a" @@ -2958,23 +3065,6 @@ crypto-random-string@^4.0.0: dependencies: type-fest "^1.0.1" -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - dargs@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/dargs/-/dargs-7.0.0.tgz#04015c41de0bcb69ec84050f3d9be0caf8d6d5cc" @@ -2985,15 +3075,6 @@ data-uri-to-buffer@3: resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636" integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - dataloader@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-2.1.0.tgz#c69c538235e85e7ac6c6c444bae8ecabf5de9df7" @@ -3043,11 +3124,6 @@ decamelize@^1.1.0: resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== -decimal.js@^10.2.1: - version "10.3.1" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" - integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== - decompress-response@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" @@ -3141,10 +3217,10 @@ dezalgo@^1.0.0: asap "^2.0.0" wrappy "1" -diff-sequences@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" - integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== +diff-sequences@^28.1.1: + version "28.1.1" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-28.1.1.tgz#9989dc731266dc2903457a70e996f3a041913ac6" + integrity sha512-FU0iFaH/E23a+a718l8Qa/19bF9p06kgE0KipMOMadwa3SjnaElKzPaUC0vnibs6/B/9ni97s61mcejk8W1fQw== diff@^4.0.1: version "4.0.2" @@ -3177,13 +3253,6 @@ doctrine@^3.0.0: dependencies: esutils "^2.0.2" -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - dot-prop@^5.1.0: version "5.3.0" resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" @@ -3227,14 +3296,14 @@ ee-first@1.1.1: integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== electron-to-chromium@^1.4.202: - version "1.4.209" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.209.tgz#18ec3a0773fb3e39fc0a5c9373b2e7c72df584af" - integrity sha512-SfWI9G/e3rxGIUalHbUCH9yEsTpO+72y+cD1Sw0tYtuTrdOPaFAgZKXM1crWVJwTNmj6KIPbbx0NIoV8a2cFJw== + version "1.4.211" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.211.tgz#afaa8b58313807501312d598d99b953568d60f91" + integrity sha512-BZSbMpyFQU0KBJ1JG26XGeFI3i4op+qOYGxftmZXFZoHkhLgsSv4DHDJfl8ogII3hIuzGt51PaZ195OVu0yJ9A== -emittery@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860" - integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== +emittery@^0.10.2: + version "0.10.2" + resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.10.2.tgz#902eec8aedb8c41938c46e9385e9db7e03182933" + integrity sha512-aITqOwnLanpHLNXZJENbOgjUBeHocD+xsSJmNrjovKBW5HbSpW3d1pEls7GFQPUWXiwG9+0P4GtHfEqC/4M0Iw== emoji-regex@^8.0.0: version "8.0.0" @@ -3506,18 +3575,6 @@ escodegen@^1.8.1: optionalDependencies: source-map "~0.6.1" -escodegen@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" - integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - eslint-config-prettier@^8.5.0: version "8.5.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1" @@ -3732,15 +3789,16 @@ exit@^0.1.2: resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== -expect@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-27.5.1.tgz#83ce59f1e5bdf5f9d2b94b61d2050db48f3fef74" - integrity sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw== +expect@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/expect/-/expect-28.1.3.tgz#90a7c1a124f1824133dd4533cce2d2bdcb6603ec" + integrity sha512-eEh0xn8HlsuOBxFgIss+2mX85VAS4Qy3OSkjV7rlBWljtA4oWH37glVGyOZSZvErDT/yBywZdPGwCXuTvSG85g== dependencies: - "@jest/types" "^27.5.1" - jest-get-type "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" + "@jest/expect-utils" "^28.1.3" + jest-get-type "^28.0.2" + jest-matcher-utils "^28.1.3" + jest-message-util "^28.1.3" + jest-util "^28.1.3" express@^4.17.3: version "4.18.1" @@ -4230,7 +4288,7 @@ glob-parent@^6.0.1: dependencies: is-glob "^4.0.3" -glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.7, glob@^7.2.0, glob@^7.2.3: +glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.7, glob@^7.2.0, glob@^7.2.3: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -4437,13 +4495,6 @@ hosted-git-info@^5.0.0: dependencies: lru-cache "^7.5.1" -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - html-escaper@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" @@ -4773,11 +4824,6 @@ is-plain-obj@^1.1.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - is-regex@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" @@ -4909,238 +4955,188 @@ iterall@^1.2.2, iterall@^1.3.0: resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea" integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg== -jest-changed-files@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-27.5.1.tgz#a348aed00ec9bf671cc58a66fcbe7c3dfd6a68f5" - integrity sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw== +jest-changed-files@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-28.1.3.tgz#d9aeee6792be3686c47cb988a8eaf82ff4238831" + integrity sha512-esaOfUWJXk2nfZt9SPyC8gA1kNfdKLkQWyzsMlqq8msYSlNKfmZxfRgZn4Cd4MGVUF+7v6dBs0d5TOAKa7iIiA== dependencies: - "@jest/types" "^27.5.1" execa "^5.0.0" - throat "^6.0.1" + p-limit "^3.1.0" -jest-circus@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.5.1.tgz#37a5a4459b7bf4406e53d637b49d22c65d125ecc" - integrity sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw== +jest-circus@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-28.1.3.tgz#d14bd11cf8ee1a03d69902dc47b6bd4634ee00e4" + integrity sha512-cZ+eS5zc79MBwt+IhQhiEp0OeBddpc1n8MBo1nMB8A7oPMKEO+Sre+wHaLJexQUj9Ya/8NOBY0RESUgYjB6fow== dependencies: - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/environment" "^28.1.3" + "@jest/expect" "^28.1.3" + "@jest/test-result" "^28.1.3" + "@jest/types" "^28.1.3" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" dedent "^0.7.0" - expect "^27.5.1" is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" + jest-each "^28.1.3" + jest-matcher-utils "^28.1.3" + jest-message-util "^28.1.3" + jest-runtime "^28.1.3" + jest-snapshot "^28.1.3" + jest-util "^28.1.3" + p-limit "^3.1.0" + pretty-format "^28.1.3" slash "^3.0.0" stack-utils "^2.0.3" - throat "^6.0.1" -jest-cli@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-27.5.1.tgz#278794a6e6458ea8029547e6c6cbf673bd30b145" - integrity sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw== +jest-cli@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-28.1.3.tgz#558b33c577d06de55087b8448d373b9f654e46b2" + integrity sha512-roY3kvrv57Azn1yPgdTebPAXvdR2xfezaKKYzVxZ6It/5NCxzJym6tUI5P1zkdWhfUYkxEI9uZWcQdaFLo8mJQ== dependencies: - "@jest/core" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/core" "^28.1.3" + "@jest/test-result" "^28.1.3" + "@jest/types" "^28.1.3" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.9" import-local "^3.0.2" - jest-config "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" + jest-config "^28.1.3" + jest-util "^28.1.3" + jest-validate "^28.1.3" prompts "^2.0.1" - yargs "^16.2.0" + yargs "^17.3.1" -jest-config@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-27.5.1.tgz#5c387de33dca3f99ad6357ddeccd91bf3a0e4a41" - integrity sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA== +jest-config@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-28.1.3.tgz#e315e1f73df3cac31447eed8b8740a477392ec60" + integrity sha512-MG3INjByJ0J4AsNBm7T3hsuxKQqFIiRo/AUqb1q9LRKI5UU6Aar9JHbr9Ivn1TVwfUD9KirRoM/T6u8XlcQPHQ== dependencies: - "@babel/core" "^7.8.0" - "@jest/test-sequencer" "^27.5.1" - "@jest/types" "^27.5.1" - babel-jest "^27.5.1" + "@babel/core" "^7.11.6" + "@jest/test-sequencer" "^28.1.3" + "@jest/types" "^28.1.3" + babel-jest "^28.1.3" chalk "^4.0.0" ci-info "^3.2.0" deepmerge "^4.2.2" - glob "^7.1.1" + glob "^7.1.3" graceful-fs "^4.2.9" - jest-circus "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-get-type "^27.5.1" - jest-jasmine2 "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runner "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" + jest-circus "^28.1.3" + jest-environment-node "^28.1.3" + jest-get-type "^28.0.2" + jest-regex-util "^28.0.2" + jest-resolve "^28.1.3" + jest-runner "^28.1.3" + jest-util "^28.1.3" + jest-validate "^28.1.3" micromatch "^4.0.4" parse-json "^5.2.0" - pretty-format "^27.5.1" + pretty-format "^28.1.3" slash "^3.0.0" strip-json-comments "^3.1.1" -jest-diff@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" - integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== +jest-diff@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-28.1.3.tgz#948a192d86f4e7a64c5264ad4da4877133d8792f" + integrity sha512-8RqP1B/OXzjjTWkqMX67iqgwBVJRgCyKD3L9nq+6ZqJMdvjE8RgHktqZ6jNrkdMT+dJuYNI3rhQpxaz7drJHfw== dependencies: chalk "^4.0.0" - diff-sequences "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" + diff-sequences "^28.1.1" + jest-get-type "^28.0.2" + pretty-format "^28.1.3" -jest-docblock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-27.5.1.tgz#14092f364a42c6108d42c33c8cf30e058e25f6c0" - integrity sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ== +jest-docblock@^28.1.1: + version "28.1.1" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-28.1.1.tgz#6f515c3bf841516d82ecd57a62eed9204c2f42a8" + integrity sha512-3wayBVNiOYx0cwAbl9rwm5kKFP8yHH3d/fkEaL02NPTkDojPtheGB7HZSFY4wzX+DxyrvhXz0KSCVksmCknCuA== dependencies: detect-newline "^3.0.0" -jest-each@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.5.1.tgz#5bc87016f45ed9507fed6e4702a5b468a5b2c44e" - integrity sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ== +jest-each@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-28.1.3.tgz#bdd1516edbe2b1f3569cfdad9acd543040028f81" + integrity sha512-arT1z4sg2yABU5uogObVPvSlSMQlDA48owx07BDPAiasW0yYpYHYOo4HHLz9q0BVzDVU4hILFjzJw0So9aCL/g== dependencies: - "@jest/types" "^27.5.1" + "@jest/types" "^28.1.3" chalk "^4.0.0" - jest-get-type "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - -jest-environment-jsdom@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz#ea9ccd1fc610209655a77898f86b2b559516a546" - integrity sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - jsdom "^16.6.0" - -jest-environment-node@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-27.5.1.tgz#dedc2cfe52fab6b8f5714b4808aefa85357a365e" - integrity sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" + jest-get-type "^28.0.2" + jest-util "^28.1.3" + pretty-format "^28.1.3" + +jest-environment-node@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-28.1.3.tgz#7e74fe40eb645b9d56c0c4b70ca4357faa349be5" + integrity sha512-ugP6XOhEpjAEhGYvp5Xj989ns5cB1K6ZdjBYuS30umT4CQEETaxSiPcZ/E1kFktX4GkrcM4qu07IIlDYX1gp+A== + dependencies: + "@jest/environment" "^28.1.3" + "@jest/fake-timers" "^28.1.3" + "@jest/types" "^28.1.3" "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" + jest-mock "^28.1.3" + jest-util "^28.1.3" -jest-get-type@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" - integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== +jest-get-type@^28.0.2: + version "28.0.2" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-28.0.2.tgz#34622e628e4fdcd793d46db8a242227901fcf203" + integrity sha512-ioj2w9/DxSYHfOm5lJKCdcAmPJzQXmbM/Url3rhlghrPvT3tt+7a/+oXc9azkKmLvoiXjtV83bEWqi+vs5nlPA== -jest-haste-map@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f" - integrity sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng== +jest-haste-map@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-28.1.3.tgz#abd5451129a38d9841049644f34b034308944e2b" + integrity sha512-3S+RQWDXccXDKSWnkHa/dPwt+2qwA8CJzR61w3FoYCvoo3Pn8tvGcysmMF0Bj0EX5RYvAI2EIvC57OmotfdtKA== dependencies: - "@jest/types" "^27.5.1" - "@types/graceful-fs" "^4.1.2" + "@jest/types" "^28.1.3" + "@types/graceful-fs" "^4.1.3" "@types/node" "*" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.9" - jest-regex-util "^27.5.1" - jest-serializer "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" + jest-regex-util "^28.0.2" + jest-util "^28.1.3" + jest-worker "^28.1.3" micromatch "^4.0.4" - walker "^1.0.7" + walker "^1.0.8" optionalDependencies: fsevents "^2.3.2" -jest-jasmine2@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz#a037b0034ef49a9f3d71c4375a796f3b230d1ac4" - integrity sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - throat "^6.0.1" - -jest-junit@^13: - version "13.2.0" - resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-13.2.0.tgz#66eeb86429aafac8c1745a70f44ace185aacb943" - integrity sha512-B0XNlotl1rdsvFZkFfoa19mc634+rrd8E4Sskb92Bb8MmSXeWV9XJGUyctunZS1W410uAxcyYuPUGVnbcOH8cg== - dependencies: - mkdirp "^1.0.4" - strip-ansi "^6.0.1" - uuid "^8.3.2" - xml "^1.0.1" - -jest-leak-detector@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8" - integrity sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ== +jest-leak-detector@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-28.1.3.tgz#a6685d9b074be99e3adee816ce84fd30795e654d" + integrity sha512-WFVJhnQsiKtDEo5lG2mM0v40QWnBM+zMdHHyJs8AWZ7J0QZJS59MsyKeJHWhpBZBH32S48FOVvGyOFT1h0DlqA== dependencies: - jest-get-type "^27.5.1" - pretty-format "^27.5.1" + jest-get-type "^28.0.2" + pretty-format "^28.1.3" -jest-matcher-utils@^27.0.0, jest-matcher-utils@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" - integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== +jest-matcher-utils@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-28.1.3.tgz#5a77f1c129dd5ba3b4d7fc20728806c78893146e" + integrity sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw== dependencies: chalk "^4.0.0" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" + jest-diff "^28.1.3" + jest-get-type "^28.0.2" + pretty-format "^28.1.3" -jest-message-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf" - integrity sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g== +jest-message-util@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-28.1.3.tgz#232def7f2e333f1eecc90649b5b94b0055e7c43d" + integrity sha512-PFdn9Iewbt575zKPf1286Ht9EPoJmYT7P0kY+RibeYZ2XtOr53pDLEFoTWXbd1h4JiGiWpTBC84fc8xMXQMb7g== dependencies: "@babel/code-frame" "^7.12.13" - "@jest/types" "^27.5.1" + "@jest/types" "^28.1.3" "@types/stack-utils" "^2.0.0" chalk "^4.0.0" graceful-fs "^4.2.9" micromatch "^4.0.4" - pretty-format "^27.5.1" + pretty-format "^28.1.3" slash "^3.0.0" stack-utils "^2.0.3" -jest-mock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6" - integrity sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og== +jest-mock@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-28.1.3.tgz#d4e9b1fc838bea595c77ab73672ebf513ab249da" + integrity sha512-o3J2jr6dMMWYVH4Lh/NKmDXdosrsJgi4AviS8oXLujcjpCMBb1FMsblDnOXKZKfSiHLxYub1eS0IHuRXsio9eA== dependencies: - "@jest/types" "^27.5.1" + "@jest/types" "^28.1.3" "@types/node" "*" jest-pnp-resolver@^1.2.2: @@ -5148,181 +5144,174 @@ jest-pnp-resolver@^1.2.2: resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== -jest-regex-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" - integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== +jest-regex-util@^28.0.2: + version "28.0.2" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-28.0.2.tgz#afdc377a3b25fb6e80825adcf76c854e5bf47ead" + integrity sha512-4s0IgyNIy0y9FK+cjoVYoxamT7Zeo7MhzqRGx7YDYmaQn1wucY9rotiGkBzzcMXTtjrCAP/f7f+E0F7+fxPNdw== -jest-resolve-dependencies@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz#d811ecc8305e731cc86dd79741ee98fed06f1da8" - integrity sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg== +jest-resolve-dependencies@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-28.1.3.tgz#8c65d7583460df7275c6ea2791901fa975c1fe66" + integrity sha512-qa0QO2Q0XzQoNPouMbCc7Bvtsem8eQgVPNkwn9LnS+R2n8DaVDPL/U1gngC0LTl1RYXJU0uJa2BMC2DbTfFrHA== dependencies: - "@jest/types" "^27.5.1" - jest-regex-util "^27.5.1" - jest-snapshot "^27.5.1" + jest-regex-util "^28.0.2" + jest-snapshot "^28.1.3" -jest-resolve@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.5.1.tgz#a2f1c5a0796ec18fe9eb1536ac3814c23617b384" - integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== +jest-resolve@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-28.1.3.tgz#cfb36100341ddbb061ec781426b3c31eb51aa0a8" + integrity sha512-Z1W3tTjE6QaNI90qo/BJpfnvpxtaFTFw5CDgwpyE/Kz8U/06N1Hjf4ia9quUhCh39qIGWF1ZuxFiBiJQwSEYKQ== dependencies: - "@jest/types" "^27.5.1" chalk "^4.0.0" graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" + jest-haste-map "^28.1.3" jest-pnp-resolver "^1.2.2" - jest-util "^27.5.1" - jest-validate "^27.5.1" + jest-util "^28.1.3" + jest-validate "^28.1.3" resolve "^1.20.0" resolve.exports "^1.1.0" slash "^3.0.0" -jest-runner@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-27.5.1.tgz#071b27c1fa30d90540805c5645a0ec167c7b62e5" - integrity sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ== +jest-runner@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-28.1.3.tgz#5eee25febd730b4713a2cdfd76bdd5557840f9a1" + integrity sha512-GkMw4D/0USd62OVO0oEgjn23TM+YJa2U2Wu5zz9xsQB1MxWKDOlrnykPxnMsN0tnJllfLPinHTka61u0QhaxBA== dependencies: - "@jest/console" "^27.5.1" - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/console" "^28.1.3" + "@jest/environment" "^28.1.3" + "@jest/test-result" "^28.1.3" + "@jest/transform" "^28.1.3" + "@jest/types" "^28.1.3" "@types/node" "*" chalk "^4.0.0" - emittery "^0.8.1" + emittery "^0.10.2" graceful-fs "^4.2.9" - jest-docblock "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-haste-map "^27.5.1" - jest-leak-detector "^27.5.1" - jest-message-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runtime "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - source-map-support "^0.5.6" - throat "^6.0.1" - -jest-runtime@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.5.1.tgz#4896003d7a334f7e8e4a53ba93fb9bcd3db0a1af" - integrity sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/globals" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" + jest-docblock "^28.1.1" + jest-environment-node "^28.1.3" + jest-haste-map "^28.1.3" + jest-leak-detector "^28.1.3" + jest-message-util "^28.1.3" + jest-resolve "^28.1.3" + jest-runtime "^28.1.3" + jest-util "^28.1.3" + jest-watcher "^28.1.3" + jest-worker "^28.1.3" + p-limit "^3.1.0" + source-map-support "0.5.13" + +jest-runtime@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-28.1.3.tgz#a57643458235aa53e8ec7821949e728960d0605f" + integrity sha512-NU+881ScBQQLc1JHG5eJGU7Ui3kLKrmwCPPtYsJtBykixrM2OhVQlpMmFWJjMyDfdkGgBMNjXCGB/ebzsgNGQw== + dependencies: + "@jest/environment" "^28.1.3" + "@jest/fake-timers" "^28.1.3" + "@jest/globals" "^28.1.3" + "@jest/source-map" "^28.1.2" + "@jest/test-result" "^28.1.3" + "@jest/transform" "^28.1.3" + "@jest/types" "^28.1.3" chalk "^4.0.0" cjs-module-lexer "^1.0.0" collect-v8-coverage "^1.0.0" execa "^5.0.0" glob "^7.1.3" graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" + jest-haste-map "^28.1.3" + jest-message-util "^28.1.3" + jest-mock "^28.1.3" + jest-regex-util "^28.0.2" + jest-resolve "^28.1.3" + jest-snapshot "^28.1.3" + jest-util "^28.1.3" slash "^3.0.0" strip-bom "^4.0.0" -jest-serializer@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" - -jest-snapshot@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.5.1.tgz#b668d50d23d38054a51b42c4039cab59ae6eb6a1" - integrity sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA== +jest-snapshot@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-28.1.3.tgz#17467b3ab8ddb81e2f605db05583d69388fc0668" + integrity sha512-4lzMgtiNlc3DU/8lZfmqxN3AYD6GGLbl+72rdBpXvcV+whX7mDrREzkPdp2RnmfIiWBg1YbuFSkXduF2JcafJg== dependencies: - "@babel/core" "^7.7.2" + "@babel/core" "^7.11.6" "@babel/generator" "^7.7.2" "@babel/plugin-syntax-typescript" "^7.7.2" "@babel/traverse" "^7.7.2" - "@babel/types" "^7.0.0" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__traverse" "^7.0.4" + "@babel/types" "^7.3.3" + "@jest/expect-utils" "^28.1.3" + "@jest/transform" "^28.1.3" + "@jest/types" "^28.1.3" + "@types/babel__traverse" "^7.0.6" "@types/prettier" "^2.1.5" babel-preset-current-node-syntax "^1.0.0" chalk "^4.0.0" - expect "^27.5.1" + expect "^28.1.3" graceful-fs "^4.2.9" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - jest-haste-map "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-util "^27.5.1" + jest-diff "^28.1.3" + jest-get-type "^28.0.2" + jest-haste-map "^28.1.3" + jest-matcher-utils "^28.1.3" + jest-message-util "^28.1.3" + jest-util "^28.1.3" natural-compare "^1.4.0" - pretty-format "^27.5.1" - semver "^7.3.2" + pretty-format "^28.1.3" + semver "^7.3.5" -jest-util@^27.0.0, jest-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" - integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== +jest-util@^28.0.0, jest-util@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-28.1.3.tgz#f4f932aa0074f0679943220ff9cbba7e497028b0" + integrity sha512-XdqfpHwpcSRko/C35uLYFM2emRAltIIKZiJ9eAmhjsj0CqZMa0p1ib0R5fWIqGhn1a103DebTbpqIaP1qCQ6tQ== dependencies: - "@jest/types" "^27.5.1" + "@jest/types" "^28.1.3" "@types/node" "*" chalk "^4.0.0" ci-info "^3.2.0" graceful-fs "^4.2.9" picomatch "^2.2.3" -jest-validate@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.5.1.tgz#9197d54dc0bdb52260b8db40b46ae668e04df067" - integrity sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ== +jest-validate@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-28.1.3.tgz#e322267fd5e7c64cea4629612c357bbda96229df" + integrity sha512-SZbOGBWEsaTxBGCOpsRWlXlvNkvTkY0XxRfh7zYmvd8uL5Qzyg0CHAXiXKROflh801quA6+/DsT4ODDthOC/OA== dependencies: - "@jest/types" "^27.5.1" + "@jest/types" "^28.1.3" camelcase "^6.2.0" chalk "^4.0.0" - jest-get-type "^27.5.1" + jest-get-type "^28.0.2" leven "^3.1.0" - pretty-format "^27.5.1" + pretty-format "^28.1.3" -jest-watcher@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-27.5.1.tgz#71bd85fb9bde3a2c2ec4dc353437971c43c642a2" - integrity sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw== +jest-watcher@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-28.1.3.tgz#c6023a59ba2255e3b4c57179fc94164b3e73abd4" + integrity sha512-t4qcqj9hze+jviFPUN3YAtAEeFnr/azITXQEMARf5cMwKY2SMBRnCQTXLixTl20OR6mLh9KLMrgVJgJISym+1g== dependencies: - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" + "@jest/test-result" "^28.1.3" + "@jest/types" "^28.1.3" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" - jest-util "^27.5.1" + emittery "^0.10.2" + jest-util "^28.1.3" string-length "^4.0.1" -jest-worker@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== +jest-worker@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-28.1.3.tgz#7e3c4ce3fa23d1bb6accb169e7f396f98ed4bb98" + integrity sha512-CqRA220YV/6jCo8VWvAt1KKx6eek1VIHMPeLEbpcfSfkEeWyBNppynM/o6q+Wmw+sOhos2ml34wZbSX3G13//g== dependencies: "@types/node" "*" merge-stream "^2.0.0" supports-color "^8.0.0" -jest@^27: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest/-/jest-27.5.1.tgz#dadf33ba70a779be7a6fc33015843b51494f63fc" - integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== +jest@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/jest/-/jest-28.1.3.tgz#e9c6a7eecdebe3548ca2b18894a50f45b36dfc6b" + integrity sha512-N4GT5on8UkZgH0O5LUavMRV1EDEhNTL0KEfRmDIeZHSV7p2XgLoY9t9VDUgL6o+yfdgYHVxuz81G8oB9VG5uyA== dependencies: - "@jest/core" "^27.5.1" + "@jest/core" "^28.1.3" + "@jest/types" "^28.1.3" import-local "^3.0.2" - jest-cli "^27.5.1" + jest-cli "^28.1.3" jju@^1.1.0: version "1.4.0" @@ -5367,39 +5356,6 @@ js-yaml@^4.0.0, js-yaml@^4.1.0: dependencies: argparse "^2.0.1" -jsdom@^16.6.0: - version "16.7.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" - jsesc@^2.5.1: version "2.5.2" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" @@ -5452,11 +5408,6 @@ json-stringify-safe@^5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@2.x, json5@^2.1.2, json5@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" - integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== - json5@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" @@ -5464,6 +5415,11 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" +json5@^2.1.2, json5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== + jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" @@ -5608,6 +5564,11 @@ locate-path@^6.0.0: dependencies: p-locate "^5.0.0" +lodash.clonedeep@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== + lodash.defaults@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c" @@ -5653,7 +5614,7 @@ lodash.union@^4.6.0: resolved "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88" integrity sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw== -lodash@^4.17.15, lodash@^4.17.21, lodash@^4.7.0: +lodash@^4.17.15, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -6220,11 +6181,6 @@ npmlog@^6.0.0: gauge "^4.0.3" set-blocking "^2.0.0" -nwsapi@^2.2.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.1.tgz#10a9f268fbf4c461249ebcfe38e359aa36e2577c" - integrity sha512-JYOWTeFoS0Z93587vRJgASD5Ut11fYl5NyihP3KrYBvMe1FRRs6RN7m20SA/16GM4P6hTnZjT+UmDOt38UeXNg== - object-assign@^4: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -6338,7 +6294,7 @@ p-limit@^2.0.0, p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2: +p-limit@^3.0.2, p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -6481,11 +6437,6 @@ parse-json@^5.0.0, parse-json@^5.2.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse5@6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== - parseurl@~1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" @@ -6571,7 +6522,7 @@ pino@^6.13.0: quick-format-unescaped "^4.0.3" sonic-boom "^1.0.2" -pirates@^4.0.4: +pirates@^4.0.1, pirates@^4.0.4: version "4.0.5" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== @@ -6605,14 +6556,15 @@ prettier@^2.7.1: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== -pretty-format@^27.0.0, pretty-format@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" - integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== +pretty-format@^28.1.3: + version "28.1.3" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-28.1.3.tgz#c9fba8cedf99ce50963a11b27d982a9ae90970d5" + integrity sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q== dependencies: + "@jest/schemas" "^28.1.3" ansi-regex "^5.0.1" ansi-styles "^5.0.0" - react-is "^17.0.1" + react-is "^18.0.0" proc-log@^2.0.0, proc-log@^2.0.1: version "2.0.1" @@ -6727,11 +6679,6 @@ proxy-from-env@^1.0.0: resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== -psl@^1.1.33: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - pump@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" @@ -6834,10 +6781,10 @@ rc@1.2.8: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== +react-is@^18.0.0: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" + integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== read-package-json-fast@^2.0.3: version "2.0.3" @@ -7123,13 +7070,6 @@ sax@>=0.6.0: resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - semver-diff@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-4.0.0.tgz#3afcf5ed6d62259f5c72d0d5d50dffbdc9680df5" @@ -7147,7 +7087,7 @@ semver-utils@^1.1.4: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@7.x, semver@^7.0.0, semver@^7.1.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: +semver@7.x, semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: version "7.3.7" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== @@ -7299,7 +7239,15 @@ sonic-boom@^1.0.2: atomic-sleep "^1.0.0" flatstr "^1.0.12" -source-map-support@^0.5.21, source-map-support@^0.5.6: +source-map-support@0.5.13: + version "0.5.13" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" + integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-support@^0.5.13, source-map-support@^0.5.21: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -7312,11 +7260,6 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.7.3: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - spawn-please@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/spawn-please/-/spawn-please-1.0.0.tgz#51cf5831ba2bf418aa3ec2102d40b75cfd48b6f2" @@ -7570,10 +7513,8 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== +"swc-closure@file:../swc-closure": + version "0.1.0" table@^6.8.0: version "6.8.0" @@ -7636,11 +7577,6 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -throat@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375" - integrity sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w== - through2@^2.0.0, through2@^2.0.1: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" @@ -7683,22 +7619,6 @@ toidentifier@1.0.1: resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== -tough-cookie@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.0.0.tgz#d822234eeca882f991f0f908824ad2622ddbece4" - integrity sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.1.2" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" @@ -7709,19 +7629,19 @@ trim-newlines@^3.0.0: resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== -ts-jest@^27: - version "27.1.5" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.1.5.tgz#0ddf1b163fbaae3d5b7504a1e65c914a95cff297" - integrity sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA== +ts-jest@^28.0.7: + version "28.0.7" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-28.0.7.tgz#e18757a9e44693da9980a79127e5df5a98b37ac6" + integrity sha512-wWXCSmTwBVmdvWrOpYhal79bDpioDy4rTT+0vyUnE3ZzM7LOAAGG9NXwzkEL/a516rQEgnMmS/WKP9jBPCVJyA== dependencies: bs-logger "0.x" fast-json-stable-stringify "2.x" - jest-util "^27.0.0" - json5 "2.x" + jest-util "^28.0.0" + json5 "^2.2.1" lodash.memoize "4.x" make-error "1.x" semver "7.x" - yargs-parser "20.x" + yargs-parser "^21.0.1" ts-node@^10.8.0, ts-node@^10.9.1: version "10.9.1" @@ -7910,7 +7830,7 @@ unique-string@^3.0.0: dependencies: crypto-random-string "^4.0.0" -universalify@^0.1.0, universalify@^0.1.2: +universalify@^0.1.0: version "0.1.2" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== @@ -8022,14 +7942,14 @@ v8-compile-cache@^2.0.3: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== -v8-to-istanbul@^8.1.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed" - integrity sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w== +v8-to-istanbul@^9.0.1: + version "9.0.1" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz#b6f994b0b5d4ef255e17a0d17dc444a9f5132fa4" + integrity sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w== dependencies: + "@jridgewell/trace-mapping" "^0.3.12" "@types/istanbul-lib-coverage" "^2.0.1" convert-source-map "^1.6.0" - source-map "^0.7.3" validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: version "3.0.4" @@ -8064,21 +7984,7 @@ vm2@^3.9.8: acorn "^8.7.0" acorn-walk "^8.2.0" -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7: +walker@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== @@ -8090,28 +7996,6 @@ webidl-conversions@^3.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" @@ -8120,15 +8004,6 @@ whatwg-url@^5.0.0: tr46 "~0.0.3" webidl-conversions "^3.0.0" -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== - dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" - which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" @@ -8213,7 +8088,7 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^3.0.0, write-file-atomic@^3.0.3: +write-file-atomic@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== @@ -8223,7 +8098,15 @@ write-file-atomic@^3.0.0, write-file-atomic@^3.0.3: signal-exit "^3.0.2" typedarray-to-buffer "^3.1.5" -ws@^7.4.6, ws@^7.5.7: +write-file-atomic@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.1.tgz#9faa33a964c1c85ff6f849b80b42a88c2c537c8f" + integrity sha512-nSKUxgAbyioruk6hU87QzVbY279oYT6uiwgDoujth2ju4mJ+TZau7SQBhtbTmUyuNYTuXnSyRn66FV0+eCgcrQ== + dependencies: + imurmurhash "^0.1.4" + signal-exit "^3.0.7" + +ws@^7.5.7: version "7.5.9" resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.9.tgz#54fa7db29f4c7cec68b1ddd3a89de099942bb591" integrity sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q== @@ -8233,11 +8116,6 @@ xdg-basedir@^5.0.1, xdg-basedir@^5.1.0: resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-5.1.0.tgz#1efba19425e73be1bc6f2a6ceb52a3d2c884c0c9" integrity sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ== -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - xml2js@0.4.19: version "0.4.19" resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" @@ -8246,11 +8124,6 @@ xml2js@0.4.19: sax ">=0.6.0" xmlbuilder "~9.0.1" -xml@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" - integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw== - xmlbuilder2@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/xmlbuilder2/-/xmlbuilder2-2.4.1.tgz#899c783a833188c5a5aa6f3c5428a3963f3e479d" @@ -8267,11 +8140,6 @@ xmlbuilder@~9.0.1: resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" integrity sha512-7YXTQc3P2l9+0rjaUbLwMKRhtmwg1M1eDf6nag7urC7pIPYLD9W/jmzQ4ptRSUbodw5S0jfoGTflLemQibSpeQ== -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - xregexp@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943" @@ -8312,11 +8180,16 @@ yaml@^2.1.1: resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.1.1.tgz#1e06fb4ca46e60d9da07e4f786ea370ed3c3cfec" integrity sha512-o96x3OPo8GjWeSLF+wOAbrPfhFOGY0W00GNaxCDv+9hkcDJEnev1yh8S7pgHF0ik6zc8sQLuL8hjHjJULZp8bw== -yargs-parser@20.x, yargs-parser@^20.2.2, yargs-parser@^20.2.3: +yargs-parser@^20.2.2, yargs-parser@^20.2.3: version "20.2.9" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== +yargs-parser@^21.0.0, yargs-parser@^21.0.1: + version "21.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.0.tgz#a11d06a3bf57f064e951aa3ef55fcf3a5705f876" + integrity sha512-xzm2t63xTV/f7+bGMSRzLhUNk1ajv/tDoaD5OeGyC3cFo2fl7My9Z4hS3q2VdQ7JaLvTxErO8Jp5pRIFGMD/zg== + yargs@^16.0.0, yargs@^16.2.0: version "16.2.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" @@ -8330,6 +8203,19 @@ yargs@^16.0.0, yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" +yargs@^17.3.1: + version "17.5.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.5.1.tgz#e109900cab6fcb7fd44b1d8249166feb0b36e58e" + integrity sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.0.0" + yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" From f5c298c93d219039f8cca1fbce22a5aced0609f4 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 3 Aug 2022 22:04:49 -0700 Subject: [PATCH 008/107] feat: stash swc --- .gitignore | 1 + .projen/deps.json | 8 ++ .projenrc.js | 18 +-- .swcrc | 16 ++- .vscode/launch.json | 12 ++ jest.config.ts | 19 +++- package.json | 4 +- src/expression.ts | 4 - test-reports/junit.xml | 192 +------------------------------- test/reflect.test.ts | 5 +- tsconfig.dev.json | 8 -- yarn.lock | 242 +++++++++++++++++++++++------------------ 12 files changed, 203 insertions(+), 326 deletions(-) diff --git a/.gitignore b/.gitignore index 6ce2a533..66fd6723 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ jspm_packages/ .cache .DS_Store .dccache +.swc !/.projenrc.js !/.github/workflows/build.yml /dist/changelog.md diff --git a/.projen/deps.json b/.projen/deps.json index 6949d11d..17a9e351 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -20,10 +20,18 @@ "version": "2.28.1", "type": "build" }, + { + "name": "@swc/cli", + "type": "build" + }, { "name": "@swc/core", "type": "build" }, + { + "name": "@swc/jest", + "type": "build" + }, { "name": "@swc/register", "type": "build" diff --git a/.projenrc.js b/.projenrc.js index 320e557c..1f8e98ab 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -112,8 +112,10 @@ const project = new CustomTypescriptProject({ */ // for serializer testing "uuid", + "@swc/cli", "@swc/core", "@swc/register", + "@swc/jest", "swc-closure@file:../swc-closure", "jest", "ts-jest", @@ -144,20 +146,20 @@ const project = new CustomTypescriptProject({ }, tsconfigDev: { compilerOptions: { - plugins: [ - { - transform: "./lib/compile", - // exclude the source of this package while running tests. - exclude: ["./src/{,**}/*"], - }, - ], + // plugins: [ + // { + // transform: "./lib/compile", + // // exclude the source of this package while running tests. + // exclude: ["./src/{,**}/*"], + // }, + // ], paths: { "@fnls": ["lib/index"], }, baseUrl: ".", }, }, - gitignore: [".DS_Store", ".dccache"], + gitignore: [".DS_Store", ".dccache", ".swc"], releaseToNpm: true, depsUpgradeOptions: { diff --git a/.swcrc b/.swcrc index f2695c22..0bfda685 100644 --- a/.swcrc +++ b/.swcrc @@ -1,15 +1,23 @@ { "jsc": { - "target": "es2018", "parser": { "syntax": "typescript", - "tsx": true, - "decorators": true + "dynamicImport": false, + "decorators": false, + "hidden": { + "jest": true + } }, + "transform": null, + "target": "es2021", + "loose": false, + "externalHelpers": false, "experimental": { - "plugins": [["swc_closure"]] + "plugins": [["swc-closure", {}]] } }, + "minify": false, + "sourceMaps": "inline", "module": { "type": "commonjs" } diff --git a/.vscode/launch.json b/.vscode/launch.json index 1f19d836..e6f4f2ef 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -89,6 +89,18 @@ "TS_NODE_PROJECT": "${workspaceRoot}/test-app/tsconfig.json" } }, + + { + "name": "launch js", + "type": "node", + "request": "launch", + "runtimeExecutable": "node", + "runtimeArgs": ["--nolazy"], + "args": ["./lib-test/test/reflect.test.js"], + "cwd": "${workspaceRoot}", + "internalConsoleOptions": "openOnSessionStart", + "skipFiles": ["/**", "node_modules/**"] + }, { "type": "node", "name": "vscode-jest-tests.v2", diff --git a/jest.config.ts b/jest.config.ts index 87069434..da345b75 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -11,8 +11,9 @@ export default async (): Promise => { "^@fnls$": "/lib/index", }, testMatch: [ - "/src/**/__tests__/**/*.ts?(x)", - "/(test|src)/**/*(*.)@(spec|test).ts?(x)", + "/src/**/__tests__/**/*.(t|j)s?(x)", + "/(test|src)/**/*(*.)@(spec|test).(t|j)s?(x)", + "/lib-test/(test|src)/**/*(*.)@(spec|test).(t|j)s?(x)", ], clearMocks: true, coverageReporters: ["json", "lcov", "clover", "cobertura", "text"], @@ -28,6 +29,20 @@ export default async (): Promise => { }, ], ], + transform: { + "^.+\\.(t|j)sx?$": [ + "@swc/jest", + { + jsc: { + parser: { syntax: "typescript", tsx: true, jsx: true }, + experimental: { + plugins: [["swc-closure", {}]], + }, + }, + minify: true, + }, + ], + }, preset: "ts-jest", globals: { "ts-jest": { diff --git a/package.json b/package.json index 5b567d60..e782dbf2 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,9 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", - "@swc/core": "^1.2.223", + "@swc/cli": "^0.1.57", + "@swc/core": "1.2.218", + "@swc/jest": "^0.2.22", "@swc/register": "^0.1.10", "@types/fs-extra": "^9.0.13", "@types/minimatch": "^3.0.5", diff --git a/src/expression.ts b/src/expression.ts index f132ff63..2fae8926 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -197,10 +197,6 @@ export class Argument extends BaseExpr { super(NodeKind.Argument, arguments); this.ensure(expr, "element", ["undefined", "Expr"]); } - - public clone(): this { - return new Argument(this.expr?.clone()) as this; - } } export class CallExpr< diff --git a/test-reports/junit.xml b/test-reports/junit.xml index e1ea59fc..9560bb6f 100644 --- a/test-reports/junit.xml +++ b/test-reports/junit.xml @@ -1,193 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/test/reflect.test.ts b/test/reflect.test.ts index 35b3adca..c1cc7cd0 100644 --- a/test/reflect.test.ts +++ b/test/reflect.test.ts @@ -8,8 +8,9 @@ import { import { assertNodeKind } from "../src/assert"; import { NodeKind } from "../src/node-kind"; -test("function", () => - expect(reflect(() => {})?.kindName).toEqual("ArrowFunctionExpr")); +test("function", () => { + expect(reflect(() => {})?.kindName).toEqual("ArrowFunctionExpr"); +}); test("turns a single line function into a return", () => { const fn = assertNodeKind( diff --git a/tsconfig.dev.json b/tsconfig.dev.json index f1306213..e21714e1 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -25,14 +25,6 @@ "stripInternal": true, "target": "ES2019", "declarationMap": true, - "plugins": [ - { - "transform": "./lib/compile", - "exclude": [ - "./src/{,**}/*" - ] - } - ], "paths": { "@fnls": [ "lib/index" diff --git a/yarn.lock b/yarn.lock index 9a73c0cf..78944bae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1173,6 +1173,13 @@ slash "^3.0.0" strip-ansi "^6.0.0" +"@jest/create-cache-key-function@^27.4.2": + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz#7448fae15602ea95c828f5eceed35c202a820b31" + integrity sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ== + dependencies: + "@jest/types" "^27.5.1" + "@jest/environment@^28.1.3": version "28.1.3" resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-28.1.3.tgz#abed43a6b040a4c24fdcb69eab1f97589b2d663e" @@ -1307,6 +1314,17 @@ slash "^3.0.0" write-file-atomic "^4.0.1" +"@jest/types@^27.5.1": + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" + integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^16.0.0" + chalk "^4.0.0" + "@jest/types@^28.1.3": version "28.1.3" resolved "https://registry.yarnpkg.com/@jest/types/-/types-28.1.3.tgz#b05de80996ff12512bc5ceb1d208285a7d11748b" @@ -1518,101 +1536,106 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@swc/core-android-arm-eabi@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.223.tgz#5d5ae572c90eb2e19f46c1ef56aab2e3fa7101fe" - integrity sha512-Hy/ya4oy80Ay70H9vhA8W0/FU9aQ/oQjvZ/on+wcNMATAiU9tk47i73LtPM01GruNiYJOwFcf2XWjlTpq5a0BQ== - dependencies: - "@swc/wasm" "1.2.122" - -"@swc/core-android-arm64@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.223.tgz#13c1751f9af36525adbb420098a4c74765afa7c4" - integrity sha512-qujrIXDBMWcPcdtTG/r+RNVBU5rg2Sk9Vg+U4FybX3c34rIyX2QYu5sxwM/HIGfd6wCbt5lyFZOvgSY000MTNw== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-darwin-arm64@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.223.tgz#44ee2d1fbf9350c6aeda1983a384514272a9b2b7" - integrity sha512-CX32sRhAnFj3fJI6V4vdu5IUV5frEZNZM6hIPUs1UuVpxyuto9IZwd2y7/ACItB5RipA3VDL/c7jrFdSmfrgzg== - -"@swc/core-darwin-x64@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.223.tgz#a157820e158d22c9b443821d15258bc58978e154" - integrity sha512-5FVQgWtqMmpOtky0JLTIF4a1WiAkuDOe5mwgzpi8nZ7nCxNo/DNThBbnIDlNhrR4M/1M6wzPshn1wNivvD7MQw== - -"@swc/core-freebsd-x64@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.223.tgz#ec9b300860f378aeb183084d89ba65009910d9f9" - integrity sha512-5oumS+YZyOMMKc5D3Bvf/541SF8n4b8LQ5x4WFA2CdAzD/jCgphE0IoAZ0u3bHz9S6Tl6Emu11V+/ALHE1oUew== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-linux-arm-gnueabihf@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.223.tgz#3403de3c9402e1eeca68b1c134ea574739c7c49c" - integrity sha512-osYjVijq101xZjwPUKR6AUib1LZU9laaM3aEOyElAi8cHolsZEp8D9ynr7cSWFUZJuzpTlY7iuJeY3FszdWrJA== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-linux-arm64-gnu@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.223.tgz#d0a2d5dd01c5744950e57ec59aa4696bbabf02e4" - integrity sha512-JZdPZIZzkJ6R+XB0lCnL0eD9VK/JfpZgKBqR3Gur9Fxs8Ea9p1HhZHSEAJ2T2YwV629dYjXwKqraOkLQrEMzCg== - -"@swc/core-linux-arm64-musl@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.223.tgz#667bd6583f93909736600acdd9d5cc4c6141d577" - integrity sha512-9BVDH5Cq+VlAuJrshCgxWgziLEGzShZ2OVZ7SEA/+md1y69x2VdMR9lMSfD/EXqb6AJAaFODRe20Irtppeqr2Q== - -"@swc/core-linux-x64-gnu@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.223.tgz#c29788110fe1aa7fb86332178dcd1606368fd2c2" - integrity sha512-Z+KAxSpUDNEPfjOKX/tZk67StvzIyAhTc5FPWoVhx5CBlkGQaDBRl1TNmb1wdne/WF9xVkx6wz22pvNevX5fig== - -"@swc/core-linux-x64-musl@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.223.tgz#24b7001530d4e09d7bae58c704ac79a6593bb9c1" - integrity sha512-3EkAOA0KQdm7Rw/0L5odtDKAtmzhgF7FKTL+zZb+s0ju5oMwFGN+XIIwUQdPSf11Ej3ezjHjHTFTlv0xqutfuA== - -"@swc/core-win32-arm64-msvc@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.223.tgz#8902c20d3d7ed2c9741ff0e227581d26ce8e0497" - integrity sha512-n8LWkej30hvfvazrJgwS6kwBZXMFCevLiRsZmP8O4hpC9b1wfAa+KLm4nHOR+J8jwF7LEjiERdU6tbIWZz0Tnw== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-win32-ia32-msvc@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.223.tgz#591405f9fa07915e9d0b94a4174a5745621fe580" - integrity sha512-kEDGFFUC6xPqCom03QtR+76Ptwtf8RABI4FqRdvrvbasw9zj0xkuLSDCvqL72zdOZCWRciiFijQVHfndLByMAQ== - dependencies: - "@swc/wasm" "1.2.130" - -"@swc/core-win32-x64-msvc@1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.223.tgz#7a4549cedb7c0e7a3d4861c2b5230224194e0f04" - integrity sha512-nzL8rwzMFA9cBK2s+QBMPcNnoGSPMfgY9ypRw/nTp0hQDgdLOXHy9moGFJg8dbdQD39kC5s8yQ0BmyKvePILgg== - -"@swc/core@^1.2.223": - version "1.2.223" - resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.223.tgz#e44a3f6971a1f5c22d1037cf60510ef32c93d2a5" - integrity sha512-LcKX1frJ1iJDSYlY9Bg0vm0rYsXloITh6PdEYM5amT73J9mC1c2YpWLnWQiH2QpcyblyMhX1pk1eZ2JZjaynrQ== +"@swc/cli@^0.1.57": + version "0.1.57" + resolved "https://registry.yarnpkg.com/@swc/cli/-/cli-0.1.57.tgz#a9c424de5a217ec20a4b7c2c0e5c343980537e83" + integrity sha512-HxM8TqYHhAg+zp7+RdTU69bnkl4MWdt1ygyp6BDIPjTiaJVH6Dizn2ezbgDS8mnFZI1FyhKvxU/bbaUs8XhzQg== + dependencies: + commander "^7.1.0" + fast-glob "^3.2.5" + slash "3.0.0" + source-map "^0.7.3" + +"@swc/core-android-arm-eabi@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.218.tgz#017792272e70a0511d7df3397a31d73c6ef37b40" + integrity sha512-Q/uLCh262t3xxNzhCz+ZW9t+g2nWd0gZZO4jMYFWJs7ilKVNsBfRtfnNGGACHzkVuWLNDIWtAS2PSNodl7VUHQ== + +"@swc/core-android-arm64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.218.tgz#ee1b6cd7281d9bd0f26d5d24843addf09365c137" + integrity sha512-dy+8lUHUcyrkfPcl7azEQ4M44duRo1Uibz1E5/tltXCGoR6tu2ZN2VkqEKgA2a9XR3UD8/x4lv2r5evwJWy+uQ== + +"@swc/core-darwin-arm64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.218.tgz#d73f6eedf0aac4ad117e67227d65d65c57657858" + integrity sha512-aTpFjWio8G0oukN76VtXCBPtFzH0PXIQ+1dFjGGkzrBcU5suztCCbhPBGhKRoWp3NJBwfPDwwWzmG+ddXrVAKg== + +"@swc/core-darwin-x64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.218.tgz#a872c618727ceac8780539b5fa8aa45ae600d362" + integrity sha512-H3w/gNzROE6gVPZCAg5qvvPihzlg88Yi7HWb/mowfpNqH9/iJ8XMdwqJyovnfUeUXsuJQBFv6uXv/ri7qhGMHA== + +"@swc/core-freebsd-x64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.218.tgz#6abc75e409739cad2ed9d57c1c741e8e5759794c" + integrity sha512-kkch07yCSlpUrSMp0FZPWtMHJjh3lfHiwp7JYNf6CUl5xXlgT19NeomPYq31dbTzPV2VnE7TVVlAawIjuuOH4g== + +"@swc/core-linux-arm-gnueabihf@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.218.tgz#a1a1bb172632082766770e47426df606c828d28c" + integrity sha512-vwEgvtD9f/+0HFxYD5q4sd8SG6zd0cxm17cwRGZ6jWh/d4Ninjht3CpDGE1ffh9nJ+X3Mb/7rjU/kTgWFz5qfg== + +"@swc/core-linux-arm64-gnu@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.218.tgz#4d3325cd35016dd5ec389084bd5c304348002b15" + integrity sha512-g5PQI6COUHV7x7tyaZQn6jXWtOLXXNIEQK1HS5/e+6kqqsM2NsndE9bjLhoH1EQuXiN2eUjAR/ZDOFAg102aRw== + +"@swc/core-linux-arm64-musl@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.218.tgz#8abab2fe12bb6a7687ff3bbd6030fcc728ed007d" + integrity sha512-IETYHB6H01NmVmlw+Ng8nkjdFBv1exGQRR74GAnHis1bVx1Uq14hREIF6XT3I1Aj26nRwlGkIYQuEKnFO5/j3Q== + +"@swc/core-linux-x64-gnu@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.218.tgz#39227c15018d9b5253e7679bc8bbe3fd7ed109cd" + integrity sha512-PK39Zg4/YZbfchQRw77iVfB7Qat7QaK58sQt8enH39CUMXlJ+GSfC0Fqw2mtZ12sFGwmsGrK9yBy3ZVoOws5Ng== + +"@swc/core-linux-x64-musl@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.218.tgz#d661bfc6a9f0c35979c0e608777355222092e534" + integrity sha512-SNjrzORJYiKTSmFbaBkKZAf5B/PszwoZoFZOcd86AG192zsvQBSvKjQzMjT5rDZxB+sOnhRE7wH/bvqxZishQQ== + +"@swc/core-win32-arm64-msvc@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.218.tgz#ea94260b36010d67f529d2f73c99e7d338a98711" + integrity sha512-lVXFWkYl+w8+deq9mgGsfvSY5Gr1RRjFgqZ+0wMZgyaonfx7jNn3TILUwc7egumEwxK0anNriVZCyKfcO3ZIjA== + +"@swc/core-win32-ia32-msvc@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.218.tgz#b5b5fbbe17680e0e1626d974ac2ace2866da7639" + integrity sha512-jgP+NZsHUh9Cp8PcXznnkpJTW3hPDLUgsXI0NKfE+8+Xvc6hALHxl6K46IyPYU67FfFlegYcBSNkOgpc85gk0A== + +"@swc/core-win32-x64-msvc@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.218.tgz#9f6ba50cac6e3322d844cc24418c7b0ab08f7e0e" + integrity sha512-XYLjX00KV4ft324Q3QDkw61xHkoN7EKkVvIpb0wXaf6wVshwU+BCDyPw2CSg4PQecNP8QGgMRQf9QM7xNtEM7A== + +"@swc/core@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.218.tgz#3bc7532621f491bf920d103a4a0433ac7df9d390" + integrity sha512-wzXTeBUi3YAHr305lCo1tlxRj5Zpk7hu6rmulngH06NgrH7fS6bj8IaR7K2QPZ4ZZ4U+TGS2tOKbXBmqeMRUtg== optionalDependencies: - "@swc/core-android-arm-eabi" "1.2.223" - "@swc/core-android-arm64" "1.2.223" - "@swc/core-darwin-arm64" "1.2.223" - "@swc/core-darwin-x64" "1.2.223" - "@swc/core-freebsd-x64" "1.2.223" - "@swc/core-linux-arm-gnueabihf" "1.2.223" - "@swc/core-linux-arm64-gnu" "1.2.223" - "@swc/core-linux-arm64-musl" "1.2.223" - "@swc/core-linux-x64-gnu" "1.2.223" - "@swc/core-linux-x64-musl" "1.2.223" - "@swc/core-win32-arm64-msvc" "1.2.223" - "@swc/core-win32-ia32-msvc" "1.2.223" - "@swc/core-win32-x64-msvc" "1.2.223" + "@swc/core-android-arm-eabi" "1.2.218" + "@swc/core-android-arm64" "1.2.218" + "@swc/core-darwin-arm64" "1.2.218" + "@swc/core-darwin-x64" "1.2.218" + "@swc/core-freebsd-x64" "1.2.218" + "@swc/core-linux-arm-gnueabihf" "1.2.218" + "@swc/core-linux-arm64-gnu" "1.2.218" + "@swc/core-linux-arm64-musl" "1.2.218" + "@swc/core-linux-x64-gnu" "1.2.218" + "@swc/core-linux-x64-musl" "1.2.218" + "@swc/core-win32-arm64-msvc" "1.2.218" + "@swc/core-win32-ia32-msvc" "1.2.218" + "@swc/core-win32-x64-msvc" "1.2.218" + +"@swc/jest@^0.2.22": + version "0.2.22" + resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.22.tgz#70d02ac648c21a442016d7a0aa485577335a4c9a" + integrity sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw== + dependencies: + "@jest/create-cache-key-function" "^27.4.2" "@swc/register@^0.1.10": version "0.1.10" @@ -1623,16 +1646,6 @@ pirates "^4.0.1" source-map-support "^0.5.13" -"@swc/wasm@1.2.122": - version "1.2.122" - resolved "https://registry.yarnpkg.com/@swc/wasm/-/wasm-1.2.122.tgz#87a5e654b26a71b2e84b801f41e45f823b856639" - integrity sha512-sM1VCWQxmNhFtdxME+8UXNyPNhxNu7zdb6ikWpz0YKAQQFRGT5ThZgJrubEpah335SUToNg8pkdDF7ibVCjxbQ== - -"@swc/wasm@1.2.130": - version "1.2.130" - resolved "https://registry.yarnpkg.com/@swc/wasm/-/wasm-1.2.130.tgz#88ac26433335d1f957162a9a92f1450b73c176a0" - integrity sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q== - "@szmarczak/http-timer@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-5.0.1.tgz#c7c1bf1141cdd4751b0399c8fc7b8b664cd5be3a" @@ -1835,6 +1848,13 @@ resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== +"@types/yargs@^16.0.0": + version "16.0.4" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" + integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== + dependencies: + "@types/yargs-parser" "*" + "@types/yargs@^17.0.8": version "17.0.10" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.10.tgz#591522fce85d8739bca7b8bb90d048e4478d186a" @@ -2739,6 +2759,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== + commander@^9.3.0: version "9.4.0" resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.0.tgz#bc4a40918fefe52e22450c111ecd6b7acce6f11c" @@ -3852,7 +3877,7 @@ fast-diff@^1.1.2: resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== -fast-glob@^3.2.9: +fast-glob@^3.2.5, fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== @@ -7186,7 +7211,7 @@ sisteransi@^1.0.5: resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== -slash@^3.0.0: +slash@3.0.0, slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== @@ -7260,6 +7285,11 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + spawn-please@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/spawn-please/-/spawn-please-1.0.0.tgz#51cf5831ba2bf418aa3ec2102d40b75cfd48b6f2" From 7c2571cc2bf8ca7c342b1681a03b71981c16f9ad Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 3 Aug 2022 23:23:07 -0700 Subject: [PATCH 009/107] fix: remove duplicate plugin configuration --- jest.config.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index da345b75..4004afd5 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -30,18 +30,7 @@ export default async (): Promise => { ], ], transform: { - "^.+\\.(t|j)sx?$": [ - "@swc/jest", - { - jsc: { - parser: { syntax: "typescript", tsx: true, jsx: true }, - experimental: { - plugins: [["swc-closure", {}]], - }, - }, - minify: true, - }, - ], + "^.+\\.(t|j)sx?$": ["@swc/jest", {}], }, preset: "ts-jest", globals: { From 32db046de79cce95f905292191380c6e3de613a9 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Aug 2022 01:17:22 -0700 Subject: [PATCH 010/107] feat: fixes for rust parser --- src/asl.ts | 48 +++++++++++++++------ src/event-bridge/event-pattern/synth.ts | 4 +- src/expression.ts | 10 ++++- src/node.ts | 2 +- src/statement.ts | 57 ------------------------- test-reports/junit.xml | 3 -- 6 files changed, 47 insertions(+), 77 deletions(-) delete mode 100644 test-reports/junit.xml diff --git a/src/asl.ts b/src/asl.ts index a43a2bce..ebcc678c 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -8,6 +8,7 @@ import { FunctionLike, ParameterDecl, VariableDecl, + VariableDeclList, } from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import { @@ -501,6 +502,9 @@ export class ASL { ...visitBlock( node, function normalizeBlock(stmt) { + if (isReturnStmt(stmt) && isUndefinedLiteralExpr(stmt.expr)) { + return new ReturnStmt(new NullLiteralExpr()); + } return visitEachChild(stmt, normalizeAST); }, self.generatedNames @@ -1992,6 +1996,8 @@ export class ASL { } else if ( expr.op === "&&" || expr.op === "||" || + expr.op === "===" || + expr.op === "!==" || expr.op === "==" || expr.op == "!=" || expr.op == ">" || @@ -2748,9 +2754,9 @@ export class ASL { return `${constant.constant}`; } } else if (isBinaryExpr(expr)) { - return `${toFilterCondition(expr.left)}${expr.op}${toFilterCondition( - expr.right - )}`; + return `${toFilterCondition(expr.left)}${ + expr.op === "===" ? "==" : expr.op === "!==" ? "!=" : expr.op + }${toFilterCondition(expr.right)}`; } else if (isUnaryExpr(expr)) { return `${expr.op}${toFilterCondition(expr.expr)}`; } else if (isIdentifier(expr)) { @@ -3310,6 +3316,8 @@ export class ASL { if ( expr.op === "!=" || + expr.op === "===" || + expr.op === "!==" || expr.op === "==" || expr.op === ">" || expr.op === "<" || @@ -3320,9 +3328,10 @@ export class ASL { ASLGraph.isLiteralValue(leftOutput) && ASLGraph.isLiteralValue(rightOutput) ) { - return (expr.op === "==" && + return ((expr.op === "==" || expr.op === "===") && leftOutput.value === rightOutput.value) || - (expr.op === "!=" && leftOutput.value !== rightOutput.value) || + ((expr.op === "!=" || expr.op === "!==") && + leftOutput.value !== rightOutput.value) || (leftOutput.value !== null && rightOutput.value !== null && ((expr.op === ">" && leftOutput.value > rightOutput.value) || @@ -4369,9 +4378,14 @@ export namespace ASL { // for != use not(equals()) export const VALUE_COMPARISONS: Record< - "==" | ">" | ">=" | "<=" | "<", + "===" | "==" | ">" | ">=" | "<=" | "<", Record<"string" | "boolean" | "number", keyof Condition | undefined> > = { + "===": { + string: "StringEquals", + boolean: "BooleanEquals", + number: "NumericEquals", + }, "==": { string: "StringEquals", boolean: "BooleanEquals", @@ -4443,6 +4457,7 @@ export namespace ASL { operator: keyof typeof VALUE_COMPARISONS | "!=" ): Condition => { if ( + operator === "===" || operator === "==" || operator === ">" || operator === "<" || @@ -4472,7 +4487,7 @@ export namespace ASL { ); } return ASL.and(ASL.isPresent(left.jsonPath), condition); - } else if (operator === "!=") { + } else if (operator === "!=" || operator === "!==") { return ASL.not(ASL.compare(left, right, "==")); } @@ -4483,7 +4498,7 @@ export namespace ASL { export const stringCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { if (ASLGraph.isJsonPath(right) || typeof right.value === "string") { return ASL.and( @@ -4508,7 +4523,7 @@ export namespace ASL { export const numberCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { if (ASLGraph.isJsonPath(right) || typeof right.value === "number") { return ASL.and( @@ -4533,7 +4548,7 @@ export namespace ASL { export const booleanCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { if (ASLGraph.isJsonPath(right) || typeof right.value === "boolean") { return ASL.and( @@ -4558,9 +4573,9 @@ export namespace ASL { export const nullCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { - if (operator === "==") { + if (operator === "==" || operator === "===") { if (ASLGraph.isJsonPath(right)) { return ASL.and(ASL.isNull(left.jsonPath), ASL.isNull(right.jsonPath)); } else if (right.value === null) { @@ -4704,6 +4719,7 @@ function nodeToString( | BindingName | BindingElem | VariableDecl + | VariableDeclList | QuasiString ): string { if (!expr) { @@ -4717,7 +4733,11 @@ function nodeToString( } else if (isBigIntExpr(expr)) { return expr.value.toString(10); } else if (isBinaryExpr(expr)) { - return `${nodeToString(expr.left)} ${expr.op} ${nodeToString(expr.right)}`; + return `${nodeToString(expr.left)} ${ + // backwards compatibility + // TODO: remove this and update snapshots + expr.op === "===" ? "==" : expr.op + } ${nodeToString(expr.right)}`; } else if (isBooleanLiteralExpr(expr)) { return `${expr.value}`; } else if (isCallExpr(expr) || isNewExpr(expr)) { @@ -4833,6 +4853,8 @@ function nodeToString( return `${nodeToString(expr.name)}${ expr.initializer ? ` = ${nodeToString(expr.initializer)}` : "" }`; + } else if (isVariableDeclList(expr)) { + return expr.decls.map(nodeToString).join(", "); } else if (isParameterDecl(expr)) { return nodeToString(expr.name); } else if (isTaggedTemplateExpr(expr)) { diff --git a/src/event-bridge/event-pattern/synth.ts b/src/event-bridge/event-pattern/synth.ts index 5b00282a..07959bf5 100644 --- a/src/event-bridge/event-pattern/synth.ts +++ b/src/event-bridge/event-pattern/synth.ts @@ -154,9 +154,9 @@ export const synthesizePatternDocument = ( }; const evalBinary = (expr: BinaryExpr): PatternDocument => { - if (expr.op === "==") { + if (expr.op === "==" || expr.op === "===") { return evalEquals(expr); - } else if (expr.op === "!=") { + } else if (expr.op === "!=" || expr.op === "!==") { return evalNotEquals(expr); } else if ([">", ">=", "<", "<="].includes(expr.op)) { return evalNumericRange(expr); diff --git a/src/expression.ts b/src/expression.ts index d4ada107..0d4daf80 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -265,7 +265,15 @@ export class ConditionExpr extends BaseExpr { } } -export type ValueComparisonBinaryOp = "==" | "!=" | "<" | "<=" | ">" | ">="; +export type ValueComparisonBinaryOp = + | "===" + | "==" + | "!=" + | "!==" + | "<" + | "<=" + | ">" + | ">="; export type MathBinaryOp = "/" | "*" | "+" | "-" | "%"; export type MutationMathBinaryOp = "+=" | "*=" | "-=" | "/=" | "%="; export type ComparatorOp = "&&" | "||" | "??"; diff --git a/src/node.ts b/src/node.ts index 0e3b6a61..84710a41 100644 --- a/src/node.ts +++ b/src/node.ts @@ -117,7 +117,7 @@ export abstract class BaseNode< * * This function simply sets the {@link node}'s parent and returns it. */ - public fork(node: N): N { + public fork(node: N): N { // @ts-ignore node.parent = this; return node; diff --git a/src/statement.ts b/src/statement.ts index 80a79b2d..0bd9eda0 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -55,20 +55,12 @@ export class ExprStmt extends BaseStmt { constructor(readonly expr: Expr) { super(NodeKind.ExprStmt, arguments); } - - public clone(): this { - return new ExprStmt(this.expr.clone()) as this; - } } export class VariableStmt extends BaseStmt { constructor(readonly declList: VariableDeclList) { super(NodeKind.VariableStmt, arguments); } - - public clone(): this { - return new VariableStmt(this.declList.clone()) as this; - } } export type BlockStmtParent = @@ -92,10 +84,6 @@ export class BlockStmt extends BaseStmt { }); } - public clone(): this { - return new BlockStmt(this.statements.map((stmt) => stmt.clone())) as this; - } - public isFinallyBlock(): this is FinallyBlock { return isTryStmt(this.parent) && this.parent.finallyBlock === this; } @@ -129,10 +117,6 @@ export class ReturnStmt extends BaseStmt { constructor(readonly expr: Expr) { super(NodeKind.ReturnStmt, arguments); } - - public clone(): this { - return new ReturnStmt(this.expr.clone()) as this; - } } export class IfStmt extends BaseStmt { @@ -141,14 +125,6 @@ export class IfStmt extends BaseStmt { if (_else) { } } - - public clone(): this { - return new IfStmt( - this.when.clone(), - this.then.clone(), - this._else?.clone() - ) as this; - } } export class ForOfStmt extends BaseStmt { @@ -159,14 +135,6 @@ export class ForOfStmt extends BaseStmt { ) { super(NodeKind.ForOfStmt, arguments); } - - public clone(): this { - return new ForOfStmt( - this.initializer.clone(), - this.expr.clone(), - this.body.clone() - ) as this; - } } export class ForInStmt extends BaseStmt { @@ -177,14 +145,6 @@ export class ForInStmt extends BaseStmt { ) { super(NodeKind.ForInStmt, arguments); } - - public clone(): this { - return new ForInStmt( - this.initializer.clone(), - this.expr.clone(), - this.body.clone() - ) as this; - } } export class ForStmt extends BaseStmt { @@ -197,35 +157,18 @@ export class ForStmt extends BaseStmt { super(NodeKind.ForStmt, arguments); // validate } - - public clone(): this { - return new ForStmt( - this.body.clone(), - this.initializer?.clone(), - this.condition?.clone(), - this.incrementor?.clone() - ) as this; - } } export class BreakStmt extends BaseStmt { constructor() { super(NodeKind.BreakStmt, arguments); } - - public clone(): this { - return new BreakStmt() as this; - } } export class ContinueStmt extends BaseStmt { constructor() { super(NodeKind.ContinueStmt, arguments); } - - public clone(): this { - return new ContinueStmt() as this; - } } export interface FinallyBlock extends BlockStmt { diff --git a/test-reports/junit.xml b/test-reports/junit.xml deleted file mode 100644 index 9560bb6f..00000000 --- a/test-reports/junit.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file From 971bc4e1c49f0e100cca018974a59460020ca388 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Aug 2022 23:14:28 -0700 Subject: [PATCH 011/107] fix: various tests --- .gitignore | 1 + .projenrc.js | 12 +- .vscode/launch.json | 2 +- jest.config.ts | 17 +- src/appsync.ts | 2 +- src/asl.ts | 2 +- src/function.ts | 15 +- src/vtl.ts | 4 +- test/__snapshots__/serialize.test.ts.snap | 1074 ++++++++++----------- test/serialize-closure.test.ts | 9 +- 10 files changed, 538 insertions(+), 600 deletions(-) diff --git a/.gitignore b/.gitignore index 66fd6723..1f1dc200 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ jspm_packages/ .DS_Store .dccache .swc +test-reports !/.projenrc.js !/.github/workflows/build.yml /dist/changelog.md diff --git a/.projenrc.js b/.projenrc.js index 1f8e98ab..9940a6af 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -1,6 +1,6 @@ const { readFileSync, writeFileSync, chmodSync } = require("fs"); const { join } = require("path"); -const { typescript, TextFile } = require("projen"); +const { typescript, TextFile, JsonFile } = require("projen"); const { GithubCredentials } = require("projen/lib/github"); /** @@ -146,20 +146,13 @@ const project = new CustomTypescriptProject({ }, tsconfigDev: { compilerOptions: { - // plugins: [ - // { - // transform: "./lib/compile", - // // exclude the source of this package while running tests. - // exclude: ["./src/{,**}/*"], - // }, - // ], paths: { "@fnls": ["lib/index"], }, baseUrl: ".", }, }, - gitignore: [".DS_Store", ".dccache", ".swc"], + gitignore: [".DS_Store", ".dccache", ".swc", "test-reports"], releaseToNpm: true, depsUpgradeOptions: { @@ -169,7 +162,6 @@ const project = new CustomTypescriptProject({ }, prettier: {}, }); - const packageJson = project.tryFindObjectFile("package.json"); packageJson.addOverride("lint-staged", { diff --git a/.vscode/launch.json b/.vscode/launch.json index e6f4f2ef..38489747 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -96,7 +96,7 @@ "request": "launch", "runtimeExecutable": "node", "runtimeArgs": ["--nolazy"], - "args": ["./lib-test/test/reflect.test.js"], + "args": ["./lib-test/test/step-function.test.js"], "cwd": "${workspaceRoot}", "internalConsoleOptions": "openOnSessionStart", "skipFiles": ["/**", "node_modules/**"] diff --git a/jest.config.ts b/jest.config.ts index 4004afd5..a2581712 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,7 +1,6 @@ -// @e import type { Config } from "@jest/types"; -import "@swc/register"; +// import "@swc/register"; export default async (): Promise => { return { @@ -13,7 +12,7 @@ export default async (): Promise => { testMatch: [ "/src/**/__tests__/**/*.(t|j)s?(x)", "/(test|src)/**/*(*.)@(spec|test).(t|j)s?(x)", - "/lib-test/(test|src)/**/*(*.)@(spec|test).(t|j)s?(x)", + // "/lib-test/(test|src)/**/*(*.)@(spec|test).js?(x)", ], clearMocks: true, coverageReporters: ["json", "lcov", "clover", "cobertura", "text"], @@ -32,11 +31,11 @@ export default async (): Promise => { transform: { "^.+\\.(t|j)sx?$": ["@swc/jest", {}], }, - preset: "ts-jest", - globals: { - "ts-jest": { - tsconfig: "tsconfig.dev.json", - }, - }, + // preset: "ts-jest", + // globals: { + // "ts-jest": { + // tsconfig: "tsconfig.dev.json", + // }, + // }, }; }; diff --git a/src/appsync.ts b/src/appsync.ts index 8e3eee6f..873ba31e 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -728,7 +728,7 @@ function doHoist(node: FunctionlessNode): boolean { * * @see https://docs.aws.amazon.com/appsync/latest/devguide/resolver-util-reference.html */ -export declare const $util: $util; +export const $util: $util = {} as any; /** * $util.dynamodb contains helper methods that make it easier to write and read data to Amazon DynamoDB, such as automatic type mapping and formatting. These methods are designed to make mapping primitive types and Lists to the proper DynamoDB input format automatically, which is a Map of the format { "TYPE" : VALUE }. diff --git a/src/asl.ts b/src/asl.ts index ebcc678c..bbe86122 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -4736,7 +4736,7 @@ function nodeToString( return `${nodeToString(expr.left)} ${ // backwards compatibility // TODO: remove this and update snapshots - expr.op === "===" ? "==" : expr.op + expr.op === "===" ? "==" : expr.op === "!==" ? "!=" : expr.op } ${nodeToString(expr.right)}`; } else if (isBooleanLiteralExpr(expr)) { return `${expr.value}`; diff --git a/src/function.ts b/src/function.ts index 2a9ec198..8f5f27bb 100644 --- a/src/function.ts +++ b/src/function.ts @@ -709,12 +709,12 @@ export class Function< `While serializing ${_resource.node.path}:\n\n${e.message}` ); } else if (e instanceof Error) { - throw Error( - `While serializing ${_resource.node.path}:\n\n${e.message}` - ); + throw e; + // throw Error( + // `While serializing ${_resource.node.path}:\n\n${e.message}` + // ); } } - return; })() ); } @@ -931,10 +931,9 @@ export async function serialize( return ts.factory.createCallExpression( eraseBindAndRegister(node.arguments[0]) as ts.Expression, undefined, - [ - eraseBindAndRegister(node.arguments[1]) as ts.Expression, - eraseBindAndRegister(node.arguments[2]) as ts.Expression, - ] + node.arguments.map( + (arg) => eraseBindAndRegister(arg) as ts.Expression + ) ); } } diff --git a/src/vtl.ts b/src/vtl.ts index c163d965..df4d92bd 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -364,7 +364,9 @@ export abstract class VTL { // VTL fails to evaluate binary expressions inside an object put e.g. $obj.put('x', 1 + 1) // a workaround is to use a temp variable. return this.var( - `${this.eval(node.left)} ${node.op} ${this.eval(node.right)}` + `${this.eval(node.left)} ${ + node.op === "===" ? "==" : node.op === "!==" ? "!=" : node.op + } ${this.eval(node.right)}` ); } else if (isBlockStmt(node)) { for (const stmt of node.statements) { diff --git a/test/__snapshots__/serialize.test.ts.snap b/test/__snapshots__/serialize.test.ts.snap index df79a8c3..782e61cf 100644 --- a/test/__snapshots__/serialize.test.ts.snap +++ b/test/__snapshots__/serialize.test.ts.snap @@ -3,13 +3,13 @@ exports[`serialize axios import 1`] = ` "exports.handler = __f0; -var __axios_1 = {default: require(\\"axios/index.js\\")}; +var __axios = {default: require(\\"axios/index.js\\")}; function __f0() { return (function() { - let axios_1 = __axios_1; + let _axios = __axios; return (async () => { - return axios_1.default.get(\\"https://functionless.org\\"); + return _axios.default.get(\\"https://functionless.org\\"); });; }).apply(undefined, undefined).apply(this, arguments); }" @@ -12443,12 +12443,12 @@ var require_axios2 = __commonJS({ // exports.handler = __f0; -var __axios_1 = { default: require_axios2() }; +var __axios = { default: require_axios2() }; function __f0() { return function() { - let axios_1 = __axios_1; + let _axios = __axios; return async () => { - return axios_1.default.get(\\"https://functionless.org\\"); + return _axios.default.get(\\"https://functionless.org\\"); }; ; }.apply(void 0, void 0).apply(this, arguments); @@ -12471,8 +12471,8 @@ function __f0() { exports[`serialize event bridge aws put events 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -12495,26 +12495,26 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); var __bus = {eventBusName: process.env.env__functionless0}; function __f3(__0, __1) { return (function() { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -12522,7 +12522,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -12533,12 +12533,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -12583,7 +12581,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -12605,12 +12603,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -12630,13 +12626,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -12656,13 +12650,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -12682,13 +12674,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -12712,13 +12702,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -12735,20 +12723,22 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let bus = __bus; return (() => { - return _fnls_1.$AWS.EventBridge.putEvents({ + return _fnls[\\"$AWS\\"].EventBridge.putEvents({ Entries: [ { - EventBusName: bus.eventBusName, + EventBusName: bus.eventBusName }, - ], + ] }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -12758,8 +12748,8 @@ function __f3(__0, __1) { exports[`serialize event bridge aws put events 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -12782,19 +12772,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); var __bus = { eventBusName: process.env.env__functionless0 }; function __f3(__0, __1) { return function() { @@ -13041,10 +13031,10 @@ function __f21() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let bus = __bus; return () => { - return _fnls_1.$AWS.EventBridge.putEvents({ + return _fnls[\\"$AWS\\"].EventBridge.putEvents({ Entries: [ { EventBusName: bus.eventBusName @@ -13082,7 +13072,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -13092,20 +13082,16 @@ function __f3(__0, __1) { return (async (args, preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - await eventBridge - .putEvents({ + await eventBridge.putEvents({ Entries: args.map((event) => ({ Detail: JSON.stringify(event.detail), EventBusName: eventBusName, DetailType: event[\\"detail-type\\"], Resources: event.resources, Source: event.source, - Time: typeof event.time === \\"number\\" - ? new Date(event.time) - : undefined, - })), - }) - .promise(); + Time: typeof event.time === \\"number\\" ? new Date(event.time) : undefined + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0) { @@ -13147,7 +13133,7 @@ function __f3(__0, __1) { return bus.putEvents({ \\"detail-type\\": \\"test\\", detail: {}, - source: \\"\\", + source: \\"\\" }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -13280,7 +13266,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").Lambda)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).Lambda((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -13292,13 +13278,13 @@ function __f3(__0, __1) { var _a; const [payload] = args; const lambdaClient = prewarmContext.getOrInit(function_prewarm_1.PrewarmClients.LAMBDA); - const response = (_a = (await lambdaClient - .invoke({ + const response = (_a = (await lambdaClient.invoke({ FunctionName: functionName, - ...(payload ? { Payload: JSON.stringify(payload) } : undefined), - }) - .promise()).Payload) === null || _a === void 0 ? void 0 : _a.toString(); - return (response ? JSON.parse(response) : undefined); + ...payload ? { + Payload: JSON.stringify(payload) + } : undefined + }).promise()).Payload) === null || _a === void 0 ? void 0 : _a.toString(); + return response ? JSON.parse(response) : undefined; });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0) { @@ -13381,7 +13367,9 @@ function __f2(__0, __1) { const lambdaClient = prewarmContext.getOrInit(function_prewarm_1.PrewarmClients.LAMBDA); const response = (_a = (await lambdaClient.invoke({ FunctionName: functionName, - ...payload ? { Payload: JSON.stringify(payload) } : void 0 + ...payload ? { + Payload: JSON.stringify(payload) + } : void 0 }).promise()).Payload) === null || _a === void 0 ? void 0 : _a.toString(); return response ? JSON.parse(response) : void 0; }; @@ -13441,8 +13429,8 @@ function __f0() { exports[`serialize lambda invoke func 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -13467,19 +13455,19 @@ __f11.kind = \\"$AWS.DynamoDB.updateItem\\"; __f13.kind = \\"$AWS.DynamoDB.putItem\\"; __f15.kind = \\"$AWS.DynamoDB.query\\"; __f17.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f9, UpdateItem: __f11, PutItem: __f13, Query: __f15, Scan: __f17}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f9, UpdateItem: __f11, PutItem: __f13, Query: __f15, Scan: __f17}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f19.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f19}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f19}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f20.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f20}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f20}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f22 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f22 }); __f23.kind = \\"Function\\"; __f23.functionlessKind = \\"Function\\"; function __f3(__0, __1) { @@ -13487,7 +13475,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -13495,7 +13483,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0, __1) { @@ -13503,7 +13491,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").Lambda)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).Lambda((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -13514,12 +13502,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f6(__0) { @@ -13564,7 +13550,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -13586,12 +13572,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f11() { @@ -13611,13 +13595,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f13() { @@ -13637,13 +13619,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f15() { @@ -13663,13 +13643,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f17() { @@ -13693,13 +13671,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f20() { @@ -13716,7 +13692,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f24(__0, __1) { return (function() { @@ -13727,13 +13705,13 @@ function __f3(__0, __1) { var _a; const [payload] = args; const lambdaClient = prewarmContext.getOrInit(function_prewarm_1.PrewarmClients.LAMBDA); - const response = (_a = (await lambdaClient - .invoke({ + const response = (_a = (await lambdaClient.invoke({ FunctionName: functionName, - ...(payload ? { Payload: JSON.stringify(payload) } : undefined), - }) - .promise()).Payload) === null || _a === void 0 ? void 0 : _a.toString(); - return (response ? JSON.parse(response) : undefined); + ...payload ? { + Payload: JSON.stringify(payload) + } : undefined + }).promise()).Payload) === null || _a === void 0 ? void 0 : _a.toString(); + return response ? JSON.parse(response) : undefined; });; }).apply(undefined, undefined).apply(this, arguments); }function __f23() { @@ -13747,13 +13725,13 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let func = __f23; return (() => { - return _fnls_1.$AWS.Lambda.Invoke({ + return _fnls[\\"$AWS\\"].Lambda.Invoke({ Function: func, - Payload: undefined, + Payload: undefined }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -13763,8 +13741,8 @@ function __f3(__0, __1) { exports[`serialize lambda invoke func 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -13789,19 +13767,19 @@ __f11.kind = \\"$AWS.DynamoDB.updateItem\\"; __f13.kind = \\"$AWS.DynamoDB.putItem\\"; __f15.kind = \\"$AWS.DynamoDB.query\\"; __f17.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f9, UpdateItem: __f11, PutItem: __f13, Query: __f15, Scan: __f17 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f9, UpdateItem: __f11, PutItem: __f13, Query: __f15, Scan: __f17 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f19.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f19 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f19 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f20.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f20 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f20 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f22 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f22 }); __f23.kind = \\"Function\\"; __f23.functionlessKind = \\"Function\\"; function __f3(__0, __1) { @@ -14066,7 +14044,9 @@ function __f24(__0, __1) { const lambdaClient = prewarmContext.getOrInit(function_prewarm_1.PrewarmClients.LAMBDA); const response = (_a = (await lambdaClient.invoke({ FunctionName: functionName, - ...payload ? { Payload: JSON.stringify(payload) } : void 0 + ...payload ? { + Payload: JSON.stringify(payload) + } : void 0 }).promise()).Payload) === null || _a === void 0 ? void 0 : _a.toString(); return response ? JSON.parse(response) : void 0; }; @@ -14085,10 +14065,10 @@ function __f23() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let func = __f23; return () => { - return _fnls_1.$AWS.Lambda.Invoke({ + return _fnls[\\"$AWS\\"].Lambda.Invoke({ Function: func, Payload: void 0 }); @@ -14149,7 +14129,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").StepFunctions)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).StepFunctions((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -14160,13 +14140,11 @@ function __f3(__0, __1) { return (async (args, prewarmContext) => { const stepFunctionsClient = prewarmContext.getOrInit(function_prewarm_1.PrewarmClients.STEP_FUNCTIONS); const [payload] = args; - const result = await stepFunctionsClient - .startExecution({ + const result = await stepFunctionsClient.startExecution({ ...payload, stateMachineArn: stateMachineArn, - input: payload.input ? JSON.stringify(payload.input) : undefined, - }) - .promise(); + input: payload.input ? JSON.stringify(payload.input) : undefined + }).promise(); return result; });; }).apply(undefined, undefined).apply(this, arguments); @@ -14208,11 +14186,9 @@ function __f3(__0, __1) { return (async (args, prewarmContext) => { const stepFunctionClient = prewarmContext.getOrInit(function_prewarm_1.PrewarmClients.STEP_FUNCTIONS); const [arn] = args; - return stepFunctionClient - .describeExecution({ - executionArn: arn, - }) - .promise(); + return stepFunctionClient.describeExecution({ + executionArn: arn + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f7() { @@ -14238,7 +14214,9 @@ function __f3(__0, __1) { let sfn = __f1; return (() => { - return sfn({ input: {} }); + return sfn({ + input: {} + }); });; }).apply(undefined, undefined).apply(this, arguments); }" @@ -14390,7 +14368,9 @@ function __f0() { return function() { let sfn = __f1; return () => { - return sfn({ input: {} }); + return sfn({ + input: {} + }); }; ; }.apply(void 0, void 0).apply(this, arguments); @@ -14426,8 +14406,8 @@ function __f0() { exports[`serialize tableMethods delete 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -14450,19 +14430,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -14479,7 +14459,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -14487,7 +14467,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -14498,12 +14478,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -14548,7 +14526,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -14570,12 +14548,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -14595,13 +14571,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -14621,13 +14595,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -14647,13 +14619,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -14677,13 +14647,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -14700,7 +14668,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f22() { return (function() { @@ -14740,17 +14710,17 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return (async () => { - return _fnls_1.$AWS.DynamoDB.DeleteItem({ + return _fnls[\\"$AWS\\"].DynamoDB.DeleteItem({ Table: table, Key: { id: { - S: \\"key\\", - }, - }, + S: \\"key\\" + } + } }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -14760,8 +14730,8 @@ function __f3(__0, __1) { exports[`serialize tableMethods delete 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -14784,19 +14754,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -15101,10 +15071,10 @@ function __f27() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return async () => { - return _fnls_1.$AWS.DynamoDB.DeleteItem({ + return _fnls[\\"$AWS\\"].DynamoDB.DeleteItem({ Table: table, Key: { id: { @@ -15122,8 +15092,8 @@ function __f0() { exports[`serialize tableMethods get 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -15146,19 +15116,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -15175,7 +15145,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -15183,7 +15153,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -15194,12 +15164,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -15244,7 +15212,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -15266,12 +15234,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -15291,13 +15257,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -15317,13 +15281,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -15343,13 +15305,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -15373,13 +15333,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -15396,7 +15354,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f22() { return (function() { @@ -15436,15 +15396,17 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return (() => { - return _fnls_1.$AWS.DynamoDB.GetItem({ + return _fnls[\\"$AWS\\"].DynamoDB.GetItem({ Table: table, Key: { - id: { S: \\"id\\" }, - }, + id: { + S: \\"id\\" + } + } }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -15454,8 +15416,8 @@ function __f3(__0, __1) { exports[`serialize tableMethods get 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -15478,19 +15440,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -15795,13 +15757,15 @@ function __f27() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return () => { - return _fnls_1.$AWS.DynamoDB.GetItem({ + return _fnls[\\"$AWS\\"].DynamoDB.GetItem({ Table: table, Key: { - id: { S: \\"id\\" } + id: { + S: \\"id\\" + } } }); }; @@ -15845,7 +15809,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -15859,7 +15823,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -15940,8 +15904,10 @@ function __f3(__0, __1) { return GetItem({ Table: table, Key: { - id: { S: \\"id\\" }, - }, + id: { + S: \\"id\\" + } + } }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -16097,7 +16063,9 @@ function __f0() { return GetItem({ Table: table, Key: { - id: { S: \\"id\\" } + id: { + S: \\"id\\" + } } }); }; @@ -16110,8 +16078,8 @@ function __f0() { exports[`serialize tableMethods put 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -16134,19 +16102,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -16163,7 +16131,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -16171,7 +16139,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -16182,12 +16150,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -16232,7 +16198,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -16254,12 +16220,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -16279,13 +16243,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -16305,13 +16267,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -16331,13 +16291,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -16361,13 +16319,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -16384,7 +16340,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f22() { return (function() { @@ -16424,15 +16382,17 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return (async () => { - return _fnls_1.$AWS.DynamoDB.PutItem({ + return _fnls[\\"$AWS\\"].DynamoDB.PutItem({ Table: table, Item: { - id: { S: \\"key\\" }, - }, + id: { + S: \\"key\\" + } + } }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -16442,8 +16402,8 @@ function __f3(__0, __1) { exports[`serialize tableMethods put 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -16466,19 +16426,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -16783,13 +16743,15 @@ function __f27() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return async () => { - return _fnls_1.$AWS.DynamoDB.PutItem({ + return _fnls[\\"$AWS\\"].DynamoDB.PutItem({ Table: table, Item: { - id: { S: \\"key\\" } + id: { + S: \\"key\\" + } } }); }; @@ -16802,8 +16764,8 @@ function __f0() { exports[`serialize tableMethods put 3`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -16826,19 +16788,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -16855,7 +16817,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -16863,7 +16825,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -16874,12 +16836,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -16924,7 +16884,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -16946,12 +16906,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -16971,13 +16929,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -16997,13 +16953,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -17023,13 +16977,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -17053,13 +17005,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -17076,7 +17026,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f22() { return (function() { @@ -17116,22 +17068,26 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return (async () => { - return _fnls_1.$AWS.DynamoDB.UpdateItem({ + return _fnls[\\"$AWS\\"].DynamoDB.UpdateItem({ Table: table, Key: { - id: { S: \\"key\\" }, + id: { + S: \\"key\\" + } }, UpdateExpression: \\"set #value = :value\\", ExpressionAttributeValues: { - \\":value\\": { S: \\"value\\" }, + \\":value\\": { + S: \\"value\\" + } }, ExpressionAttributeNames: { - \\"#value\\": \\"value\\", - }, + \\"#value\\": \\"value\\" + } }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -17141,8 +17097,8 @@ function __f3(__0, __1) { exports[`serialize tableMethods put 4`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -17165,19 +17121,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -17482,17 +17438,21 @@ function __f27() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return async () => { - return _fnls_1.$AWS.DynamoDB.UpdateItem({ + return _fnls[\\"$AWS\\"].DynamoDB.UpdateItem({ Table: table, Key: { - id: { S: \\"key\\" } + id: { + S: \\"key\\" + } }, UpdateExpression: \\"set #value = :value\\", ExpressionAttributeValues: { - \\":value\\": { S: \\"value\\" } + \\":value\\": { + S: \\"value\\" + } }, ExpressionAttributeNames: { \\"#value\\": \\"value\\" @@ -17508,8 +17468,8 @@ function __f0() { exports[`serialize tableMethods query 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -17532,19 +17492,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -17561,7 +17521,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -17569,7 +17529,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -17580,12 +17540,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -17630,7 +17588,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -17652,12 +17610,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -17677,13 +17633,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -17703,13 +17657,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -17729,13 +17681,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -17759,13 +17709,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -17782,7 +17730,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f22() { return (function() { @@ -17822,19 +17772,21 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return (async () => { - return _fnls_1.$AWS.DynamoDB.Query({ + return _fnls[\\"$AWS\\"].DynamoDB.Query({ Table: table, KeyConditionExpression: \\"#key = :key\\", ExpressionAttributeValues: { - \\":key\\": { S: \\"key\\" }, + \\":key\\": { + S: \\"key\\" + } }, ExpressionAttributeNames: { - \\"#key\\": \\"key\\", - }, + \\"#key\\": \\"key\\" + } }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -17844,8 +17796,8 @@ function __f3(__0, __1) { exports[`serialize tableMethods query 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -17868,19 +17820,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -18185,14 +18137,16 @@ function __f27() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return async () => { - return _fnls_1.$AWS.DynamoDB.Query({ + return _fnls[\\"$AWS\\"].DynamoDB.Query({ Table: table, KeyConditionExpression: \\"#key = :key\\", ExpressionAttributeValues: { - \\":key\\": { S: \\"key\\" } + \\":key\\": { + S: \\"key\\" + } }, ExpressionAttributeNames: { \\"#key\\": \\"key\\" @@ -18208,8 +18162,8 @@ function __f0() { exports[`serialize tableMethods scan 1`] = ` "exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = {key: \\"DYNAMO\\", init: __f3}; @@ -18232,19 +18186,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = {DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16}; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = {Invoke: __f18}; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = {Invoke: __f18}; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = {putEvents: __f19}; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = {putEvents: __f19}; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -18261,7 +18215,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").DynamoDB)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).DynamoDB((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f4(__0, __1) { @@ -18269,7 +18223,7 @@ function __f3(__0, __1) { return ((key, props) => { var _a; // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies - return new (require(\\"aws-sdk\\").EventBridge)((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); + return new (require(\\"aws-sdk\\")).EventBridge((_a = props === null || props === void 0 ? void 0 : props.clientConfigRetriever) === null || _a === void 0 ? void 0 : _a.call(props, key)); });; }).apply(undefined, undefined).apply(this, arguments); }function __f2(__0, __1) { @@ -18280,12 +18234,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .deleteItem({ + return dynamo.deleteItem({ ...rest, - TableName: input.Table.tableName, - }) - .promise(); + TableName: input.Table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f5(__0) { @@ -18330,7 +18282,7 @@ function __f3(__0, __1) { const payload = { ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, + TableName: table.tableName }; return dynamo.getItem(payload).promise(); });; @@ -18352,12 +18304,10 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, ...rest } = input; - return dynamo - .updateItem({ + return dynamo.updateItem({ ...rest, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f10() { @@ -18377,13 +18327,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, Item, ...rest } = input; - return dynamo - .putItem({ + return dynamo.putItem({ ...rest, Item: Item, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f12() { @@ -18403,13 +18351,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .query({ + return dynamo.query({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f14() { @@ -18429,13 +18375,11 @@ function __f3(__0, __1) { const dynamo = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.DYNAMO); const [input] = args; const { Table: table, AttributesToGet, ...rest } = input; - return dynamo - .scan({ + return dynamo.scan({ ...rest, AttributesToGet: AttributesToGet, - TableName: table.tableName, - }) - .promise(); + TableName: table.tableName + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f16() { @@ -18459,13 +18403,11 @@ function __f3(__0, __1) { return (async ([request], preWarmContext) => { const eventBridge = preWarmContext.getOrInit(function_prewarm_1.PrewarmClients.EVENT_BRIDGE); - return eventBridge - .putEvents({ + return eventBridge.putEvents({ Entries: request.Entries.map((e) => ({ - ...e, - })), - }) - .promise(); + ...e + })) + }).promise(); });; }).apply(undefined, undefined).apply(this, arguments); }function __f19() { @@ -18482,7 +18424,9 @@ function __f3(__0, __1) { let m = __m; let k = \\"$AWS\\"; - return (function __computed() { return m[k]; });; + return (function __computed() { + return m[k]; +});; }).apply(undefined, undefined).apply(this, arguments); }function __f22() { return (function() { @@ -18522,12 +18466,12 @@ function __f3(__0, __1) { }).apply(undefined, undefined).apply(this, arguments); }function __f0() { return (function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return (async () => { - return _fnls_1.$AWS.DynamoDB.Scan({ - Table: table, + return _fnls[\\"$AWS\\"].DynamoDB.Scan({ + Table: table }); });; }).apply(undefined, undefined).apply(this, arguments); @@ -18537,8 +18481,8 @@ function __f3(__0, __1) { exports[`serialize tableMethods scan 2`] = ` "// exports.handler = __f0; -var __fnls_1 = {}; -var __fnls_1_AWS = {}; +var __fnls = {}; +var __fnls_AWS = {}; var __function_prewarm_1 = {}; var __function_prewarm_1_PrewarmClients = {}; var __function_prewarm_1_PrewarmClients_DYNAMO = { key: \\"DYNAMO\\", init: __f3 }; @@ -18561,19 +18505,19 @@ __f10.kind = \\"$AWS.DynamoDB.updateItem\\"; __f12.kind = \\"$AWS.DynamoDB.putItem\\"; __f14.kind = \\"$AWS.DynamoDB.query\\"; __f16.kind = \\"$AWS.DynamoDB.scan\\"; -var __fnls_1_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; -__fnls_1_AWS.DynamoDB = __fnls_1_AWS_DynamoDB; +var __fnls_AWS_DynamoDB = { DeleteItem: __f1, GetItem: __f8, UpdateItem: __f10, PutItem: __f12, Query: __f14, Scan: __f16 }; +__fnls_AWS.DynamoDB = __fnls_AWS_DynamoDB; __f18.kind = \\"$AWS.Lambda.Invoke\\"; -var __fnls_1_AWS_Lambda = { Invoke: __f18 }; -__fnls_1_AWS.Lambda = __fnls_1_AWS_Lambda; +var __fnls_AWS_Lambda = { Invoke: __f18 }; +__fnls_AWS.Lambda = __fnls_AWS_Lambda; __f19.kind = \\"$AWS.EventBridge.putEvent\\"; -var __fnls_1_AWS_EventBridge = { putEvents: __f19 }; -__fnls_1_AWS.EventBridge = __fnls_1_AWS_EventBridge; -var __m = Object.create(Object.getPrototypeOf(global[\\"ts-jest\\"])); +var __fnls_AWS_EventBridge = { putEvents: __f19 }; +__fnls_AWS.EventBridge = __fnls_AWS_EventBridge; +var __m = Object.create(global.constructor.prototype); Object.defineProperty(__m, \\"__esModule\\", { value: true }); -__m[\\"$AWS\\"] = __fnls_1_AWS; +__m[\\"$AWS\\"] = __fnls_AWS; __m.deploymentOnlyModule = true; -Object.defineProperty(__fnls_1, \\"$AWS\\", { enumerable: true, get: __f21 }); +Object.defineProperty(__fnls, \\"$AWS\\", { enumerable: true, get: __f21 }); __f22.functionlessKind = \\"Table\\"; __f22.kind = \\"Table\\"; __f22.tableName = process.env.env__functionless0; @@ -18878,10 +18822,10 @@ function __f27() { } function __f0() { return function() { - let _fnls_1 = __fnls_1; + let _fnls = __fnls; let table = __f22; return async () => { - return _fnls_1.$AWS.DynamoDB.Scan({ + return _fnls[\\"$AWS\\"].DynamoDB.Scan({ Table: table }); }; @@ -18895,10 +18839,10 @@ exports[`serialize uuid 1`] = ` "exports.handler = __f0; function __f0() { return (function() { - let uuid_1 = require(\\"uuid\\"); + let _uuid = require(\\"uuid\\"); return (async () => { - return (0, uuid_1.v4)(); + return (0, _uuid.v4)(); });; }).apply(undefined, undefined).apply(this, arguments); }" @@ -19405,9 +19349,9 @@ var require_dist = __commonJS({ exports.handler = __f0; function __f0() { return function() { - let uuid_1 = require_dist(); + let _uuid = require_dist(); return async () => { - return (0, uuid_1.v4)(); + return (0, _uuid.v4)(); }; ; }.apply(void 0, void 0).apply(this, arguments); diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 2704f37b..cea9c4ce 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1,8 +1,9 @@ import "jest"; -import { serializeClosure } from "../src/serialize-closure"; +// import { serializeClosure } from "../src/serialize-closure"; test("reference to imported function", () => { - serializeClosure(() => { - return serializeClosure; - }); + expect(1).toEqual(1); + // serializeClosure(() => { + // return serializeClosure; + // }); }); From d8be3a0ac74ad7e30f5cd543728d2f4f3a7c80b7 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Aug 2022 23:25:13 -0700 Subject: [PATCH 012/107] fix: api and validate tests --- src/aws.ts | 2 +- test/validate.test.ts | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/aws.ts b/src/aws.ts index 4c5d43ff..d9bf33fa 100644 --- a/src/aws.ts +++ b/src/aws.ts @@ -549,7 +549,7 @@ function makeDynamoIntegration< .flatMap((prop) => { if (isPropAssignExpr(prop)) { const name = isIdentifier(prop.name) - ? prop.name + ? prop.name.name : isStringLiteralExpr(prop.name) ? prop.name.value : undefined; diff --git a/test/validate.test.ts b/test/validate.test.ts index 07cca3c6..2e04cd7d 100644 --- a/test/validate.test.ts +++ b/test/validate.test.ts @@ -1,6 +1,5 @@ import "jest"; import fs from "fs"; -import { readFile } from "fs/promises"; import path from "path"; import ts from "typescript"; import { ErrorCode, ErrorCodes } from "../src"; @@ -50,6 +49,12 @@ const skipErrorCodes: ErrorCode[] = [ ErrorCodes.Classes_are_not_supported, ]; +const file: string | undefined = fs + .readFileSync( + path.resolve(__dirname, "./__snapshots__/validate.test.ts.snap") + ) + .toString("utf8"); + /** * Test for recorded validations of each error code. * 1. Checks if there is a validation for an error code. @@ -58,15 +63,6 @@ const skipErrorCodes: ErrorCode[] = [ * If the error code cannot be validated or the validation cannot be easily tested, use skipErrorCodes to skip the code. */ describe("all error codes tested", () => { - let file: string | undefined = undefined; - beforeAll(async () => { - file = ( - await readFile( - path.resolve(__dirname, "./__snapshots__/validate.test.ts.snap") - ) - ).toString("utf8"); - }); - test.concurrent.each( Object.values(ErrorCodes).filter((code) => !skipErrorCodes.includes(code)) )("$code: $title", async (code) => { From 54f4a897cad9caa79918add487e38f1baf97919a Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Aug 2022 23:26:15 -0700 Subject: [PATCH 013/107] chore: remove serialize-closure code --- src/serialize-closure.ts | 236 --------------------------------- test/serialize-closure.test.ts | 9 -- 2 files changed, 245 deletions(-) delete mode 100644 src/serialize-closure.ts delete mode 100644 test/serialize-closure.test.ts diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts deleted file mode 100644 index 7c792b6d..00000000 --- a/src/serialize-closure.ts +++ /dev/null @@ -1,236 +0,0 @@ -import ts from "typescript"; -import { - isBlockStmt, - isBooleanLiteralExpr, - isElementAccessExpr, - isFunctionDecl, - isFunctionLike, - isIdentifier, - isNullLiteralExpr, - isNumberLiteralExpr, - isPropAccessExpr, - isStringLiteralExpr, - isUndefinedLiteralExpr, -} from "./guards"; -import { FunctionlessNode } from "./node"; -import { reflect } from "./reflect"; -import { AnyFunction } from "./util"; - -export function serializeClosure(func: AnyFunction): string { - const requireCache = new Map( - Object.entries(require.cache).flatMap(([path, module]) => - Object.entries(module ?? {}).map(([exportName, exportValue]) => [ - exportValue, - { - path, - exportName, - exportValue, - module, - }, - ]) - ) - ); - let i = 0; - const uniqueName = () => { - return `v${i++}`; - }; - - const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }); - - const statements: ts.Statement[] = []; - - function emit(...statements: ts.Statement[]) { - statements.push(...statements); - } - - function emitVarDecl( - expr: ts.Expression, - varKind: "const" | "let" | "var" = "const" - ): string { - const name = uniqueName(); - emit( - ts.factory.createVariableStatement( - undefined, - ts.factory.createVariableDeclarationList( - [ - ts.factory.createVariableDeclaration( - name, - undefined, - undefined, - expr - ), - ], - varKind === "var" - ? ts.NodeFlags.None - : varKind === "const" - ? ts.NodeFlags.Const - : ts.NodeFlags.Let - ) - ) - ); - return name; - } - - const valueIds = new Map(); - - emit(expr(assign(prop(id("exports"), "handler"), id(serialize(func))))); - - return printer.printFile( - ts.factory.createSourceFile( - statements, - ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), - ts.NodeFlags.JavaScriptFile - ) - ); - - function serialize(value: any): string { - let id = valueIds.get(value); - if (id) { - return id; - } - id = serializeValue(value); - valueIds.set(value, id); - return id; - } - - function serializeValue(value: any) { - if (value === undefined) { - } else if (value === null) { - } else if (typeof value === "object") { - // serialize the prototype first - // there should be no circular references between an object instance and its prototype - // if we need to handle circular references between an instance and prototype, then we can - // switch to a strategy of emitting an object and then calling Object.setPrototypeOf - const prototype = serialize(Object.getPrototypeOf(value)); - - // emit an empty object with the correct prototype - // e.g. `var vObj = Object.create(vPrototype);` - const obj = emitVarDecl( - call(prop(id("Object"), "create"), [id(prototype)]) - ); - - /** - * Cache the emitted value so that any circular object references serialize without issue. - * - * e.g. - * - * The following objects circularly reference each other: - * ```ts - * const a = {}; - * const b = { a }; - * a.b = b; - * ``` - * - * Serializing `b` will emit the following code: - * ```ts - * const b = {}; - * const a = {}; - * a.b = b; - * b.a = a; - * ``` - */ - valueIds.set(value, obj); - - // for each of the object's own properties, emit a statement that assigns the value of that property - // vObj.propName = vValue - Object.getOwnPropertyNames(value).forEach((propName) => - emit( - expr(assign(prop(id(obj), propName), id(serialize(value[propName])))) - ) - ); - - return obj; - } else if (typeof value === "function") { - const ast = reflect(func); - - if (ast === undefined) { - // if this is not compiled by functionless, we can only serialize it if it is exported by a module - const mod = requireCache.get(func); - if (mod === undefined) { - throw new Error( - `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` - ); - } - // const vMod = require("module-name"); - const moduleName = emitVarDecl(call(id("require"), [string(mod.path)])); - - // const vFunc = vMod.prop - return emitVarDecl(prop(id(moduleName), mod.exportName)); - } else if (isFunctionLike(ast)) { - return emitVarDecl(serializeAST(ast) as ts.Expression); - } else { - throw ast.error; - } - } - - throw new Error("not implemented"); - } - - function serializeAST(node: FunctionlessNode): ts.Node { - if (isFunctionDecl(node)) { - // return ts.factory.createFunctionDeclaration(undefined, undefined); - } else if (isBlockStmt(node)) { - return ts.factory.createBlock( - node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) - ); - } else if (isUndefinedLiteralExpr(node)) { - return ts.factory.createIdentifier("undefined"); - } else if (isNullLiteralExpr(node)) { - return ts.factory.createNull(); - } else if (isBooleanLiteralExpr(node)) { - return node.value ? ts.factory.createTrue() : ts.factory.createFalse(); - } else if (isNumberLiteralExpr(node)) { - return ts.factory.createNumericLiteral(node.value); - } else if (isStringLiteralExpr(node)) { - return string(node.value); - } else if (isIdentifier(node)) { - return id(node.name); - } else if (isPropAccessExpr(node)) { - return ts.factory.createPropertyAccessChain( - serializeAST(node.expr) as ts.Expression, - node.isOptional - ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) - : undefined, - serializeAST(node.name) as ts.MemberName - ); - } else if (isElementAccessExpr(node)) { - return ts.factory.createElementAccessChain( - serializeAST(node.expr) as ts.Expression, - node.isOptional - ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) - : undefined, - serializeAST(node.element) as ts.Expression - ); - } - - throw new Error("not yet implemented"); - } -} - -function id(name: string) { - return ts.factory.createIdentifier(name); -} - -function string(name: string) { - return ts.factory.createStringLiteral(name); -} - -function prop(expr: ts.Expression, name: string) { - return ts.factory.createPropertyAccessExpression(expr, name); -} - -function assign(left: ts.Expression, right: ts.Expression) { - return ts.factory.createBinaryExpression( - left, - ts.factory.createToken(ts.SyntaxKind.EqualsToken), - right - ); -} - -function call(expr: ts.Expression, args: ts.Expression[]) { - return ts.factory.createCallExpression(expr, undefined, args); -} - -function expr(expr: ts.Expression): ts.Statement { - return ts.factory.createExpressionStatement(expr); -} diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts deleted file mode 100644 index cea9c4ce..00000000 --- a/test/serialize-closure.test.ts +++ /dev/null @@ -1,9 +0,0 @@ -import "jest"; -// import { serializeClosure } from "../src/serialize-closure"; - -test("reference to imported function", () => { - expect(1).toEqual(1); - // serializeClosure(() => { - // return serializeClosure; - // }); -}); From 51eb1bda767afd2529cb2e5fd103aa0f2788aa1a Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 4 Aug 2022 23:49:32 -0700 Subject: [PATCH 014/107] chore: add require-hook back in --- jest.config.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/jest.config.ts b/jest.config.ts index a2581712..bf6ec72b 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,6 +1,6 @@ import type { Config } from "@jest/types"; -// import "@swc/register"; +import "@swc/register"; export default async (): Promise => { return { @@ -12,7 +12,6 @@ export default async (): Promise => { testMatch: [ "/src/**/__tests__/**/*.(t|j)s?(x)", "/(test|src)/**/*(*.)@(spec|test).(t|j)s?(x)", - // "/lib-test/(test|src)/**/*(*.)@(spec|test).js?(x)", ], clearMocks: true, coverageReporters: ["json", "lcov", "clover", "cobertura", "text"], @@ -31,11 +30,5 @@ export default async (): Promise => { transform: { "^.+\\.(t|j)sx?$": ["@swc/jest", {}], }, - // preset: "ts-jest", - // globals: { - // "ts-jest": { - // tsconfig: "tsconfig.dev.json", - // }, - // }, }; }; From 543e07cb02193931bec16067166adaff25cfce05 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 00:00:41 -0700 Subject: [PATCH 015/107] chore: remove ts-patch --- .projen/deps.json | 4 ---- .projen/tasks.json | 11 ----------- .projenrc.js | 3 --- package.json | 2 -- yarn.lock | 39 +++++---------------------------------- 5 files changed, 5 insertions(+), 54 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index 17a9e351..36da4c76 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -175,10 +175,6 @@ "name": "ts-node", "type": "build" }, - { - "name": "ts-patch", - "type": "build" - }, { "name": "typesafe-dynamodb", "version": "0.1.5", diff --git a/.projen/tasks.json b/.projen/tasks.json index fda11a5e..1de81cfe 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -155,14 +155,6 @@ "name": "pre-compile", "description": "Prepare the project for compilation" }, - "prepare": { - "name": "prepare", - "steps": [ - { - "exec": "ts-patch install -s" - } - ] - }, "release": { "name": "release", "description": "Prepare a release from \"main\" branch", @@ -214,9 +206,6 @@ "test:fast": { "name": "test:fast", "steps": [ - { - "exec": "ts-patch install -s" - }, { "exec": "jest --testPathIgnorePatterns localstack --coverage false" } diff --git a/.projenrc.js b/.projenrc.js index 9940a6af..8290baf0 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -96,7 +96,6 @@ const project = new CustomTypescriptProject({ "eslint-plugin-no-only-tests", "graphql-request", "ts-node", - "ts-patch", /** * For CDK Local Stack tests */ @@ -123,7 +122,6 @@ const project = new CustomTypescriptProject({ // we will manually set up jest because we need to use jest.config.ts jest: false, scripts: { - prepare: "ts-patch install -s", localstack: "./scripts/localstack", "build:website": "npx tsc && cd ./website && yarn && yarn build", }, @@ -184,7 +182,6 @@ project.testTask.env("AWS_ACCESS_KEY_ID", "test"); project.testTask.env("AWS_SECRET_ACCESS_KEY", "test"); const testFast = project.addTask("test:fast"); -testFast.exec("ts-patch install -s"); testFast.exec(`jest --testPathIgnorePatterns localstack --coverage false`); project.addPackageIgnore("/test-app"); diff --git a/package.json b/package.json index e782dbf2..8ff2c746 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "post-compile": "npx projen post-compile", "post-upgrade": "npx projen post-upgrade", "pre-compile": "npx projen pre-compile", - "prepare": "npx projen prepare", "release": "npx projen release", "test": "npx projen test", "test:fast": "npx projen test:fast", @@ -69,7 +68,6 @@ "swc-closure": "file:../swc-closure", "ts-jest": "^28.0.7", "ts-node": "^10.9.1", - "ts-patch": "^2.0.1", "typesafe-dynamodb": "0.1.5", "typescript": "4.7.2", "uuid": "^8.3.2" diff --git a/yarn.lock b/yarn.lock index 78944bae..7e1e4816 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2637,7 +2637,7 @@ chalk@^2.0.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4, chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: +chalk@^4, chalk@^4.0.0, chalk@^4.1.1, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -4313,7 +4313,7 @@ glob-parent@^6.0.1: dependencies: is-glob "^4.0.3" -glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.7, glob@^7.2.0, glob@^7.2.3: +glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.2.0, glob@^7.2.3: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -4343,15 +4343,6 @@ global-dirs@^3.0.0: dependencies: ini "2.0.0" -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -4677,7 +4668,7 @@ ini@2.0.0, ini@^2.0.0: resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== -ini@^1.3.2, ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: +ini@^1.3.2, ini@^1.3.4, ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== @@ -5489,7 +5480,7 @@ keyv@^4.0.0: compress-brotli "^1.3.8" json-buffer "3.0.1" -kind-of@^6.0.2, kind-of@^6.0.3: +kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -7175,7 +7166,7 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shelljs@^0.8.4, shelljs@^0.8.5: +shelljs@^0.8.5: version "0.8.5" resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== @@ -7692,19 +7683,6 @@ ts-node@^10.8.0, ts-node@^10.9.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -ts-patch@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-2.0.1.tgz#08c17caef856b431641fc9fc88015f41195435b6" - integrity sha512-mP7beU1QkmyDs1+SzXYVaSTD6Xo7ZCibOJ3sZkb/xsQjoAQXvn4oPjk0keC2LfCNAgilqtqgjiWp3pQri1uz4w== - dependencies: - chalk "^4.1.0" - glob "^7.1.7" - global-prefix "^3.0.0" - minimist "^1.2.5" - resolve "^1.20.0" - shelljs "^0.8.4" - strip-ansi "^6.0.0" - tsconfig-paths@^3.14.1: version "3.14.1" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a" @@ -8057,13 +8035,6 @@ which-typed-array@^1.1.2: has-tostringtag "^1.0.0" is-typed-array "^1.1.9" -which@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - which@^2.0.1, which@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" From 0b9bc83e5d11eee771400df749bd6dec8f906d20 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 00:09:58 -0700 Subject: [PATCH 016/107] fix: configure jest from .projen --- .gitattributes | 1 + .gitignore | 4 ++- .npmignore | 3 ++ .projen/deps.json | 13 +++++++++ .projen/tasks.json | 21 ++++++++++++++ .projenrc.js | 21 ++++++++++++-- jest.config.ts | 34 ---------------------- package.json | 50 ++++++++++++++++++++++++++++++++ test-app/package.json | 2 -- yarn.lock | 66 ++++++++++++++++++++++++++++++++++++++----- 10 files changed, 168 insertions(+), 47 deletions(-) delete mode 100644 jest.config.ts diff --git a/.gitattributes b/.gitattributes index 5c19827f..87b23178 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". +*.snap linguist-generated /.eslintrc.json linguist-generated /.git/hooks/pre-commit linguist-generated /.gitattributes linguist-generated diff --git a/.gitignore b/.gitignore index 1f1dc200..6a423edd 100644 --- a/.gitignore +++ b/.gitignore @@ -33,8 +33,10 @@ jspm_packages/ .DS_Store .dccache .swc -test-reports !/.projenrc.js +/test-reports/ +junit.xml +/coverage/ !/.github/workflows/build.yml /dist/changelog.md /dist/version.txt diff --git a/.npmignore b/.npmignore index 4a83d69d..b2b75205 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,8 @@ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.projen/ +/test-reports/ +junit.xml +/coverage/ /dist/changelog.md /dist/version.txt /.mergify.yml diff --git a/.projen/deps.json b/.projen/deps.json index 36da4c76..b85acb96 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -40,6 +40,10 @@ "name": "@types/fs-extra", "type": "build" }, + { + "name": "@types/jest", + "type": "build" + }, { "name": "@types/minimatch", "type": "build" @@ -132,6 +136,11 @@ "name": "jest", "type": "build" }, + { + "name": "jest-junit", + "version": "^13", + "type": "build" + }, { "name": "json-schema", "type": "build" @@ -175,6 +184,10 @@ "name": "ts-node", "type": "build" }, + { + "name": "ts-patch", + "type": "build" + }, { "name": "typesafe-dynamodb", "version": "0.1.5", diff --git a/.projen/tasks.json b/.projen/tasks.json index 1de81cfe..b621b73a 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -195,6 +195,9 @@ { "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, + { + "exec": "jest --passWithNoTests --all --updateSnapshot" + }, { "spawn": "eslint" }, @@ -211,6 +214,24 @@ } ] }, + "test:update": { + "name": "test:update", + "description": "Update jest snapshots", + "steps": [ + { + "exec": "jest --updateSnapshot" + } + ] + }, + "test:watch": { + "name": "test:watch", + "description": "Run jest in watch mode", + "steps": [ + { + "exec": "jest --watch" + } + ] + }, "unbump": { "name": "unbump", "description": "Restores version to 0.0.0", diff --git a/.projenrc.js b/.projenrc.js index 8290baf0..ff0d5fcd 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -96,6 +96,7 @@ const project = new CustomTypescriptProject({ "eslint-plugin-no-only-tests", "graphql-request", "ts-node", + "ts-patch", /** * For CDK Local Stack tests */ @@ -119,8 +120,18 @@ const project = new CustomTypescriptProject({ "jest", "ts-jest", ], - // we will manually set up jest because we need to use jest.config.ts - jest: false, + jestOptions: { + jestConfig: { + collectCoverage: false, + coveragePathIgnorePatterns: ["/test/", "/node_modules/", "/lib"], + moduleNameMapper: { + "^@fnls$": "/lib/index", + }, + transform: { + "^.+\\.(t|j)sx?$": ["@swc/jest", {}], + }, + }, + }, scripts: { localstack: "./scripts/localstack", "build:website": "npx tsc && cd ./website && yarn && yarn build", @@ -150,7 +161,7 @@ const project = new CustomTypescriptProject({ baseUrl: ".", }, }, - gitignore: [".DS_Store", ".dccache", ".swc", "test-reports"], + gitignore: [".DS_Store", ".dccache", ".swc"], releaseToNpm: true, depsUpgradeOptions: { @@ -160,6 +171,10 @@ const project = new CustomTypescriptProject({ }, prettier: {}, }); +// projen assumes ts-jest +delete project.jest.config.globals; +delete project.jest.config.preset; + const packageJson = project.tryFindObjectFile("package.json"); packageJson.addOverride("lint-staged", { diff --git a/jest.config.ts b/jest.config.ts deleted file mode 100644 index bf6ec72b..00000000 --- a/jest.config.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type { Config } from "@jest/types"; - -import "@swc/register"; - -export default async (): Promise => { - return { - collectCoverage: false, - coveragePathIgnorePatterns: ["/test/", "/node_modules/", "/lib"], - moduleNameMapper: { - "^@fnls$": "/lib/index", - }, - testMatch: [ - "/src/**/__tests__/**/*.(t|j)s?(x)", - "/(test|src)/**/*(*.)@(spec|test).(t|j)s?(x)", - ], - clearMocks: true, - coverageReporters: ["json", "lcov", "clover", "cobertura", "text"], - coverageDirectory: "coverage", - testPathIgnorePatterns: ["/node_modules/"], - watchPathIgnorePatterns: ["/node_modules/"], - reporters: [ - "default", - [ - "jest-junit", - { - outputDirectory: "test-reports", - }, - ], - ], - transform: { - "^.+\\.(t|j)sx?$": ["@swc/jest", {}], - }, - }; -}; diff --git a/package.json b/package.json index 8ff2c746..0200962b 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,8 @@ "release": "npx projen release", "test": "npx projen test", "test:fast": "npx projen test:fast", + "test:update": "npx projen test:update", + "test:watch": "npx projen test:watch", "unbump": "npx projen unbump", "upgrade": "npx projen upgrade", "watch": "npx projen watch", @@ -37,6 +39,7 @@ "@swc/jest": "^0.2.22", "@swc/register": "^0.1.10", "@types/fs-extra": "^9.0.13", + "@types/jest": "^28.1.6", "@types/minimatch": "^3.0.5", "@types/node": "^14", "@types/uuid": "^8.3.4", @@ -58,6 +61,7 @@ "eslint-plugin-prettier": "^4.2.1", "graphql-request": "^4.3.0", "jest": "^28.1.3", + "jest-junit": "^13", "json-schema": "^0.4.0", "npm-check-updates": "^15", "prettier": "^2.7.1", @@ -68,6 +72,7 @@ "swc-closure": "file:../swc-closure", "ts-jest": "^28.0.7", "ts-node": "^10.9.1", + "ts-patch": "^2.0.1", "typesafe-dynamodb": "0.1.5", "typescript": "4.7.2", "uuid": "^8.3.2" @@ -89,6 +94,51 @@ "main": "lib/index.js", "license": "Apache-2.0", "version": "0.0.0", + "jest": { + "collectCoverage": false, + "coveragePathIgnorePatterns": [ + "/test/", + "/node_modules/", + "/lib" + ], + "moduleNameMapper": { + "^@fnls$": "/lib/index" + }, + "transform": { + "^.+\\.(t|j)sx?$": [ + "@swc/jest", + {} + ] + }, + "testMatch": [ + "/src/**/__tests__/**/*.ts?(x)", + "/(test|src)/**/*(*.)@(spec|test).ts?(x)" + ], + "clearMocks": true, + "coverageReporters": [ + "json", + "lcov", + "clover", + "cobertura", + "text" + ], + "coverageDirectory": "coverage", + "testPathIgnorePatterns": [ + "/node_modules/" + ], + "watchPathIgnorePatterns": [ + "/node_modules/" + ], + "reporters": [ + "default", + [ + "jest-junit", + { + "outputDirectory": "test-reports" + } + ] + ] + }, "types": "lib/index.d.ts", "lint-staged": { "*.{tsx,jsx,ts,js,json,md,css}": [ diff --git a/test-app/package.json b/test-app/package.json index 190a6d82..ea9389a7 100644 --- a/test-app/package.json +++ b/test-app/package.json @@ -2,7 +2,6 @@ "name": "test", "private": true, "scripts": { - "prepare": "ts-patch install -s", "build": "tsc && functionless", "watch": "tsc -w", "synth": "cdk synth", @@ -22,7 +21,6 @@ "functionless": "file:../", "graphql": "^16.3.0", "ts-node": "^10.5.0", - "ts-patch": "^2.0.1", "typesafe-dynamodb": "^0.1.5", "typescript": "^4.7.2" } diff --git a/yarn.lock b/yarn.lock index 7e1e4816..11df86da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1769,6 +1769,14 @@ dependencies: "@types/istanbul-lib-report" "*" +"@types/jest@^28.1.6": + version "28.1.6" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-28.1.6.tgz#d6a9cdd38967d2d746861fb5be6b120e38284dd4" + integrity sha512-0RbGAFMfcBJKOmqRazM8L98uokwuwD5F8rHrv/ZMbrZBwVOWZUyPG6VFNscjYr/vjM3Vu4fRrCPbOs42AfemaQ== + dependencies: + jest-matcher-utils "^28.0.0" + pretty-format "^28.0.0" + "@types/json-buffer@~3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/json-buffer/-/json-buffer-3.0.0.tgz#85c1ff0f0948fc159810d4b5be35bf8c20875f64" @@ -2637,7 +2645,7 @@ chalk@^2.0.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4, chalk@^4.0.0, chalk@^4.1.1, chalk@^4.1.2: +chalk@^4, chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -4313,7 +4321,7 @@ glob-parent@^6.0.1: dependencies: is-glob "^4.0.3" -glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.2.0, glob@^7.2.3: +glob@^7, glob@^7.0.0, glob@^7.1.1, glob@^7.1.3, glob@^7.1.4, glob@^7.1.7, glob@^7.2.0, glob@^7.2.3: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -4343,6 +4351,15 @@ global-dirs@^3.0.0: dependencies: ini "2.0.0" +global-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" + integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== + dependencies: + ini "^1.3.5" + kind-of "^6.0.2" + which "^1.3.1" + globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -4668,7 +4685,7 @@ ini@2.0.0, ini@^2.0.0: resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== -ini@^1.3.2, ini@^1.3.4, ini@~1.3.0: +ini@^1.3.2, ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== @@ -5114,6 +5131,16 @@ jest-haste-map@^28.1.3: optionalDependencies: fsevents "^2.3.2" +jest-junit@^13: + version "13.2.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-13.2.0.tgz#66eeb86429aafac8c1745a70f44ace185aacb943" + integrity sha512-B0XNlotl1rdsvFZkFfoa19mc634+rrd8E4Sskb92Bb8MmSXeWV9XJGUyctunZS1W410uAxcyYuPUGVnbcOH8cg== + dependencies: + mkdirp "^1.0.4" + strip-ansi "^6.0.1" + uuid "^8.3.2" + xml "^1.0.1" + jest-leak-detector@^28.1.3: version "28.1.3" resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-28.1.3.tgz#a6685d9b074be99e3adee816ce84fd30795e654d" @@ -5122,7 +5149,7 @@ jest-leak-detector@^28.1.3: jest-get-type "^28.0.2" pretty-format "^28.1.3" -jest-matcher-utils@^28.1.3: +jest-matcher-utils@^28.0.0, jest-matcher-utils@^28.1.3: version "28.1.3" resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-28.1.3.tgz#5a77f1c129dd5ba3b4d7fc20728806c78893146e" integrity sha512-kQeJ7qHemKfbzKoGjHHrRKH6atgxMk8Enkk2iPQ3XwO6oE/KYD8lMYOziCkeSB9G4adPM4nR1DE8Tf5JeWH6Bw== @@ -5480,7 +5507,7 @@ keyv@^4.0.0: compress-brotli "^1.3.8" json-buffer "3.0.1" -kind-of@^6.0.3: +kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== @@ -6572,7 +6599,7 @@ prettier@^2.7.1: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== -pretty-format@^28.1.3: +pretty-format@^28.0.0, pretty-format@^28.1.3: version "28.1.3" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-28.1.3.tgz#c9fba8cedf99ce50963a11b27d982a9ae90970d5" integrity sha512-8gFb/To0OmxHR9+ZTb14Df2vNxdGCX8g1xWGUTqUw5TiZvcQf5sHKObd5UcPyLLyowNwDAMTF3XWOG1B6mxl1Q== @@ -7166,7 +7193,7 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shelljs@^0.8.5: +shelljs@^0.8.4, shelljs@^0.8.5: version "0.8.5" resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== @@ -7683,6 +7710,19 @@ ts-node@^10.8.0, ts-node@^10.9.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" +ts-patch@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-2.0.1.tgz#08c17caef856b431641fc9fc88015f41195435b6" + integrity sha512-mP7beU1QkmyDs1+SzXYVaSTD6Xo7ZCibOJ3sZkb/xsQjoAQXvn4oPjk0keC2LfCNAgilqtqgjiWp3pQri1uz4w== + dependencies: + chalk "^4.1.0" + glob "^7.1.7" + global-prefix "^3.0.0" + minimist "^1.2.5" + resolve "^1.20.0" + shelljs "^0.8.4" + strip-ansi "^6.0.0" + tsconfig-paths@^3.14.1: version "3.14.1" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a" @@ -8035,6 +8075,13 @@ which-typed-array@^1.1.2: has-tostringtag "^1.0.0" is-typed-array "^1.1.9" +which@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + which@^2.0.1, which@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" @@ -8125,6 +8172,11 @@ xml2js@0.4.19: sax ">=0.6.0" xmlbuilder "~9.0.1" +xml@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw== + xmlbuilder2@^2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/xmlbuilder2/-/xmlbuilder2-2.4.1.tgz#899c783a833188c5a5aa6f3c5428a3963f3e479d" From 89627c16c3a645c25c7b493257272114045e1d95 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 18:30:34 -0700 Subject: [PATCH 017/107] feat: add isAwait to ForOfStmt and isRest to ParameterDecl --- src/compile.ts | 17 ++++++++++++++--- src/declaration.ts | 12 +++++++++++- src/statement.ts | 12 ++++++++++-- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index 2f07c6bd..497fd53d 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -327,9 +327,12 @@ export function compile( impl.parameters.map((param) => newExpr(NodeKind.ParameterDecl, [ toExpr(param.name, scope ?? impl), - ...(param.initializer - ? [toExpr(param.initializer, scope ?? impl)] - : []), + param.initializer + ? toExpr(param.initializer, scope ?? impl) + : ts.factory.createIdentifier("undefined"), + param.dotDotDotToken + ? ts.factory.createTrue() + : ts.factory.createFalse(), ]) ) ), @@ -648,12 +651,20 @@ export function compile( "For in/of loops initializers should be an identifier or variable declaration." ); } + return newExpr( ts.isForOfStatement(node) ? NodeKind.ForOfStmt : NodeKind.ForInStmt, [ toExpr(decl, scope), toExpr(node.expression, scope), toExpr(node.statement, scope), + ...(ts.isForOfStatement(node) + ? [ + node.awaitModifier + ? ts.factory.createTrue() + : ts.factory.createFalse(), + ] + : []), ] ); } else if (ts.isForStatement(node)) { diff --git a/src/declaration.ts b/src/declaration.ts index 55d7903d..0f7336ae 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -209,7 +209,17 @@ export class ParameterDecl extends BaseDecl< NodeKind.ParameterDecl, ArrowFunctionExpr | FunctionDecl | FunctionExpr | SetAccessorDecl > { - constructor(readonly name: BindingName, readonly initializer?: Expr) { + constructor( + readonly name: BindingName, + readonly initializer: Expr | undefined + /** + * Whether this ParameterDecl is a rest parameter + * ```ts + * function foo(...rest) {} + * ``` + */, + readonly isRest: boolean + ) { super(NodeKind.ParameterDecl, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(initializer, "initializer", ["undefined", "Expr"]); diff --git a/src/statement.ts b/src/statement.ts index 80a79b2d..35864615 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -155,7 +155,14 @@ export class ForOfStmt extends BaseStmt { constructor( readonly initializer: VariableDecl | Identifier, readonly expr: Expr, - readonly body: BlockStmt + readonly body: BlockStmt, + /** + * Whether this is a for-await-of statement + * ```ts + * for await (const a of b) { .. } + * ``` + */ + readonly isAwait: boolean ) { super(NodeKind.ForOfStmt, arguments); } @@ -164,7 +171,8 @@ export class ForOfStmt extends BaseStmt { return new ForOfStmt( this.initializer.clone(), this.expr.clone(), - this.body.clone() + this.body.clone(), + this.isAwait ) as this; } } From 31a20dfa58514a3f8d71571fccaa98cf363b2264 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 18:41:18 -0700 Subject: [PATCH 018/107] chore: remove redundant clone functions and add ensure to declarations and statements --- src/declaration.ts | 6 ++-- src/expression.ts | 5 +-- src/statement.ts | 82 ++++++++++++---------------------------------- 3 files changed, 25 insertions(+), 68 deletions(-) diff --git a/src/declaration.ts b/src/declaration.ts index 0f7336ae..0700c67b 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -211,18 +211,18 @@ export class ParameterDecl extends BaseDecl< > { constructor( readonly name: BindingName, - readonly initializer: Expr | undefined + readonly initializer: Expr | undefined, /** * Whether this ParameterDecl is a rest parameter * ```ts * function foo(...rest) {} * ``` - */, - readonly isRest: boolean + */ readonly isRest: boolean ) { super(NodeKind.ParameterDecl, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(initializer, "initializer", ["undefined", "Expr"]); + this.ensure(isRest, "isRest", ["boolean"]); } } diff --git a/src/expression.ts b/src/expression.ts index 06a4aafb..d3bb30b6 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -220,6 +220,7 @@ export class ElementAccessExpr extends BaseExpr { super(NodeKind.ElementAccessExpr, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensure(element, "element", ["Expr"]); + this.ensure(isOptional, "isOptional", ["undefined", "boolean"]); } } @@ -228,10 +229,6 @@ export class Argument extends BaseExpr { super(NodeKind.Argument, arguments); this.ensure(expr, "element", ["undefined", "Expr"]); } - - public clone(): this { - return new Argument(this.expr?.clone()) as this; - } } export class CallExpr< diff --git a/src/statement.ts b/src/statement.ts index 35864615..afbd8850 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -54,20 +54,14 @@ export abstract class BaseStmt< export class ExprStmt extends BaseStmt { constructor(readonly expr: Expr) { super(NodeKind.ExprStmt, arguments); - } - - public clone(): this { - return new ExprStmt(this.expr.clone()) as this; + this.ensure(expr, "expr", ["Expr"]); } } export class VariableStmt extends BaseStmt { constructor(readonly declList: VariableDeclList) { super(NodeKind.VariableStmt, arguments); - } - - public clone(): this { - return new VariableStmt(this.declList.clone()) as this; + this.ensure(declList, "declList", [NodeKind.VariableDeclList]); } } @@ -86,16 +80,13 @@ export type BlockStmtParent = export class BlockStmt extends BaseStmt { constructor(readonly statements: Stmt[]) { super(NodeKind.BlockStmt, arguments); + this.ensureArrayOf(statements, "statements", ["Stmt"]); statements.forEach((stmt, i) => { stmt.prev = i > 0 ? statements[i - 1] : undefined; stmt.next = i + 1 < statements.length ? statements[i + 1] : undefined; }); } - public clone(): this { - return new BlockStmt(this.statements.map((stmt) => stmt.clone())) as this; - } - public isFinallyBlock(): this is FinallyBlock { return isTryStmt(this.parent) && this.parent.finallyBlock === this; } @@ -128,26 +119,16 @@ export class BlockStmt extends BaseStmt { export class ReturnStmt extends BaseStmt { constructor(readonly expr: Expr) { super(NodeKind.ReturnStmt, arguments); - } - - public clone(): this { - return new ReturnStmt(this.expr.clone()) as this; + this.ensure(expr, "expr", ["Expr"]); } } export class IfStmt extends BaseStmt { constructor(readonly when: Expr, readonly then: Stmt, readonly _else?: Stmt) { super(NodeKind.IfStmt, arguments); - if (_else) { - } - } - - public clone(): this { - return new IfStmt( - this.when.clone(), - this.then.clone(), - this._else?.clone() - ) as this; + this.ensure(when, "when", ["Expr"]); + this.ensure(then, "then", ["Stmt"]); + this.ensure(_else, "else", ["undefined", "Stmt"]); } } @@ -165,15 +146,12 @@ export class ForOfStmt extends BaseStmt { readonly isAwait: boolean ) { super(NodeKind.ForOfStmt, arguments); - } - - public clone(): this { - return new ForOfStmt( - this.initializer.clone(), - this.expr.clone(), - this.body.clone(), - this.isAwait - ) as this; + this.ensure(initializer, "initializer", [ + NodeKind.VariableDecl, + NodeKind.Identifier, + ]); + this.ensure(expr, "expr", ["Expr"]); + this.ensure(isAwait, "isAwait", ["boolean"]); } } @@ -185,14 +163,6 @@ export class ForInStmt extends BaseStmt { ) { super(NodeKind.ForInStmt, arguments); } - - public clone(): this { - return new ForInStmt( - this.initializer.clone(), - this.expr.clone(), - this.body.clone() - ) as this; - } } export class ForStmt extends BaseStmt { @@ -203,16 +173,14 @@ export class ForStmt extends BaseStmt { readonly incrementor?: Expr ) { super(NodeKind.ForStmt, arguments); - // validate - } - - public clone(): this { - return new ForStmt( - this.body.clone(), - this.initializer?.clone(), - this.condition?.clone(), - this.incrementor?.clone() - ) as this; + this.ensure(body, "body", [NodeKind.BlockStmt]); + this.ensure(initializer, "initializer", [ + "undefined", + "Expr", + NodeKind.VariableDeclList, + ]); + this.ensure(condition, "condition", ["undefined", "Expr"]); + this.ensure(incrementor, "incrementor", ["undefined", "Expr"]); } } @@ -220,20 +188,12 @@ export class BreakStmt extends BaseStmt { constructor() { super(NodeKind.BreakStmt, arguments); } - - public clone(): this { - return new BreakStmt() as this; - } } export class ContinueStmt extends BaseStmt { constructor() { super(NodeKind.ContinueStmt, arguments); } - - public clone(): this { - return new ContinueStmt() as this; - } } export interface FinallyBlock extends BlockStmt { From 3640d72024729f812bedb2515a7a14d7eff7a1fd Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 19:16:39 -0700 Subject: [PATCH 019/107] chore: add synth-time errors for for-await and rest parameters --- src/asl.ts | 29 +++++++++++++------- src/event-bridge/event-pattern/synth.ts | 9 +++++++ src/vtl.ts | 36 ++++++++++++++++++++++++- test/appsync.test.ts | 31 +++++++++++++++++++++ test/eventpattern.test.ts | 9 +++++++ test/step-function.test.ts | 23 ++++++++++++++++ 6 files changed, 127 insertions(+), 10 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index cecf17f0..69330864 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -129,7 +129,7 @@ import { invertBinaryOperator, isPromiseAll, } from "./util"; -import { visitBlock, visitEachChild } from "./visit"; +import { visitEachChild } from "./visit"; export interface StateMachine { Version?: "1.0"; @@ -498,20 +498,21 @@ export class ASL { readonly role: aws_iam.IRole, decl: FunctionLike ) { - const self = this; this.decl = visitEachChild(decl, function normalizeAST(node): | FunctionlessNode | FunctionlessNode[] { if (isBlockStmt(node)) { return new BlockStmt([ // for each block statement - ...visitBlock( - node, - function normalizeBlock(stmt) { - return visitEachChild(stmt, normalizeAST); - }, - self.generatedNames - ).statements, + ...node.statements.flatMap((stmt) => { + const transformed = normalizeAST(stmt) as Stmt[]; + if (Array.isArray(transformed)) { + return transformed; + } else { + return [transformed]; + } + }), + // re-write the AST to include explicit `ReturnStmt(NullLiteral())` statements // this simplifies the interpreter code by always having a node to chain onto, even when // the AST has no final `ReturnStmt` (i.e. when the function is a void function) @@ -521,6 +522,16 @@ export class ASL { ? [new ReturnStmt(new NullLiteralExpr())] : []), ]); + } else if (isForOfStmt(node) && node.isAwait) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `Step Functions does not yet support for-await, see https://github.com/functionless/functionless/issues/390` + ); + } else if (isParameterDecl(node) && node.isRest) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `Step Functions does not yet support rest parameters, see https://github.com/functionless/functionless/issues/391` + ); } return visitEachChild(node, normalizeAST); }); diff --git a/src/event-bridge/event-pattern/synth.ts b/src/event-bridge/event-pattern/synth.ts index 5b00282a..9dd34e14 100644 --- a/src/event-bridge/event-pattern/synth.ts +++ b/src/event-bridge/event-pattern/synth.ts @@ -129,6 +129,15 @@ export const synthesizePatternDocument = ( ): PatternDocument => { const func = validateFunctionLike(predicate, "synthesizeEventPattern"); + func.parameters.forEach((param) => { + if (param.isRest) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `Event Bridge does not yet support rest parameters, see https://github.com/functionless/functionless/issues/391` + ); + } + }); + const [eventDecl = undefined] = func.parameters; const evalExpr = (expr: Expr): PatternDocument => { diff --git a/src/vtl.ts b/src/vtl.ts index c163d965..42e52681 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -578,6 +578,12 @@ export abstract class VTL { } else if (isExprStmt(node)) { return this.qr(this.eval(node.expr)); } else if (isForInStmt(node) || isForOfStmt(node)) { + if (isForOfStmt(node) && node.isAwait) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `VTL does not support for-await, see https://github.com/functionless/functionless/issues/390` + ); + } this.foreach( node.initializer, `${this.eval(node.expr)}${isForInStmt(node) ? ".keySet()" : ""}`, @@ -748,6 +754,9 @@ export abstract class VTL { */ public evalDecl(decl: Decl, initialValueVar?: string) { if (isVariableDecl(decl) || isParameterDecl(decl) || isBindingElem(decl)) { + if (isParameterDecl(decl)) { + validateParameterDecl(decl); + } const variablePrefix = isInTopLevelScope(decl) ? `$context.stash.` : `$`; if (isBindingPattern(decl.name)) { if (!(decl.initializer || initialValueVar)) { @@ -1048,6 +1057,13 @@ export abstract class VTL { const next = expr.expr.expr; + if (isParameterDecl(value) && value.isRest) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `VTL does not support rest parameters, see https://github.com/functionless/functionless/issues/391` + ); + } + /** * The variable name this iteration is expecting. * If the variable is a binding expression, create a new variable name to assign the previous value into. @@ -1087,8 +1103,26 @@ export abstract class VTL { * Returns the [value, index, array] arguments if this CallExpr is a `forEach` or `map` call. */ const getMapForEachArgs = (call: CallExpr) => { - return assertNodeKind(call.args[0].expr, ...NodeKind.FunctionLike).parameters; + const parameters = assertNodeKind( + call.args[0].expr, + ...NodeKind.FunctionLike + ).parameters; + for (const param of parameters) { + validateParameterDecl(param); + } + return parameters; }; +function validateParameterDecl( + decl: ParameterDecl +): asserts decl is ParameterDecl & { isRest: false } { + if (isParameterDecl(decl) && decl.isRest) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `VTL does not support rest parameters, see https://github.com/functionless/functionless/issues/391` + ); + } +} + // to prevent the closure serializer from trying to import all of functionless. export const deploymentOnlyModule = true; diff --git a/test/appsync.test.ts b/test/appsync.test.ts index a7a5ac50..3cb90cb9 100644 --- a/test/appsync.test.ts +++ b/test/appsync.test.ts @@ -430,3 +430,34 @@ test("return error", () => { "Appsync Integration invocations must be unidirectional and defined statically" ); }); + +test("throw SynthError when for-await is used", () => { + expect(() => { + appsyncTestCase<{ strings: string[] }, { pk: string; sk: string }>( + // source https://github.com/functionless/functionless/issues/266 + reflect(async ($context) => { + for await (const _ of $context.arguments.strings) { + } + + return $util.error("Cannot find account."); + }) + ); + }).toThrow( + "VTL does not support for-await, see https://github.com/functionless/functionless/issues/390" + ); +}); + +test("throw SynthError when rest parameter is used", () => { + expect(() => { + appsyncTestCase<{ strings: string[] }, { pk: string; sk: string }>( + // source https://github.com/functionless/functionless/issues/266 + reflect(async ($context) => { + $context.arguments.strings.forEach((...rest) => { + return rest; + }); + + return $util.error("Cannot find account."); + }) + ); + }).toThrow(); +}); diff --git a/test/eventpattern.test.ts b/test/eventpattern.test.ts index 9acfd1d3..b99b6ed5 100644 --- a/test/eventpattern.test.ts +++ b/test/eventpattern.test.ts @@ -1659,3 +1659,12 @@ describe.skip("list some", () => { ); }); }); + +test("error when using rest parameters", () => { + ebEventPatternTestCaseError( + reflect>((...event) => + event[0].resources.some((r) => r.startsWith("hi") && r === "taco") + ), + "Event Bridge does not yet support rest parameters" + ); +}); diff --git a/test/step-function.test.ts b/test/step-function.test.ts index 226e5663..1e922c9b 100644 --- a/test/step-function.test.ts +++ b/test/step-function.test.ts @@ -3973,3 +3973,26 @@ describe("binding", () => { expect(normalizeDefinition(definition)).toMatchSnapshot(); }); }); + +test("throw SynthError when for-await is used", () => { + const { stack } = initStepFunctionApp(); + + expect(() => { + new StepFunction(stack, "MyStepF", async () => { + for await (const _ of []) { + } + }); + }).toThrow("Step Functions does not yet support for-await"); +}); + +test("throw SynthError when rest parameter is used", () => { + const { stack } = initStepFunctionApp(); + + expect(() => { + new StepFunction(stack, "MyStepF", async (input: { prop: string[] }) => { + return input.prop.map((...rest) => { + return rest; + }); + }); + }).toThrow("Step Functions does not yet support rest parameters"); +}); From 9ce03c99a3784f7863560b8fae8f3d4a06ecdec9 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 19:35:02 -0700 Subject: [PATCH 020/107] feat: add VarDeclKind to VariableDecl --- src/compile.ts | 19 +++++++++++++++++-- src/declaration.ts | 12 +++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index 497fd53d..6ab0066a 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -1,10 +1,16 @@ +/* eslint-disable no-bitwise */ import path from "path"; import minimatch from "minimatch"; import type { PluginConfig, TransformerExtras } from "ts-patch"; import ts from "typescript"; import { assertDefined } from "./assert"; import { makeFunctionlessChecker } from "./checker"; -import type { ConstructorDecl, FunctionDecl, MethodDecl } from "./declaration"; +import { + ConstructorDecl, + FunctionDecl, + MethodDecl, + VariableDeclKind, +} from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import type { FunctionExpr, @@ -494,7 +500,16 @@ export function compile( ts.factory.createStringLiteral(node.name.text), ]) : toExpr(node.name, scope), - ...(node.initializer ? [toExpr(node.initializer, scope)] : []), + node.initializer + ? toExpr(node.initializer, scope) + : ts.factory.createIdentifier("undefined"), + ts.factory.createNumericLiteral( + (node.flags & ts.NodeFlags.Const) !== 0 + ? VariableDeclKind.Const + : (node.flags & ts.NodeFlags.Let) !== 0 + ? VariableDeclKind.Let + : VariableDeclKind.Var + ), ]); } else if (ts.isIfStatement(node)) { return newExpr(NodeKind.IfStmt, [ diff --git a/src/declaration.ts b/src/declaration.ts index 0700c67b..5b96ab62 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -357,10 +357,20 @@ export type VariableDeclParent = | ForOfStmt | VariableDeclList; +export enum VariableDeclKind { + Const = 0, + Let = 1, + Var = 2, +} + export class VariableDecl< E extends Expr | undefined = Expr | undefined > extends BaseDecl { - constructor(readonly name: BindingName, readonly initializer: E) { + constructor( + readonly name: BindingName, + readonly initializer: E, + readonly varKind: VariableDeclKind + ) { super(NodeKind.VariableDecl, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(initializer, "initializer", ["undefined", "Expr"]); From 2951d854b19cdea26bbadab5431ceacd55cc6345 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 19:46:44 -0700 Subject: [PATCH 021/107] fix: move VarDeclKind to VariableDeclList --- src/appsync.ts | 11 +++++++++-- src/compile.ts | 14 +++++++------- src/declaration.ts | 11 +++++------ src/visit.ts | 11 +++++++++-- 4 files changed, 30 insertions(+), 17 deletions(-) diff --git a/src/appsync.ts b/src/appsync.ts index 8e3eee6f..8e7c2fbd 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -6,7 +6,11 @@ import { ToAttributeMap, ToAttributeValue, } from "typesafe-dynamodb/lib/attribute-value"; -import { FunctionLike, VariableDeclList } from "./declaration"; +import { + FunctionLike, + VariableDeclKind, + VariableDeclList, +} from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import { Argument, @@ -482,7 +486,10 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { * Flatten variable declarations into multiple variable statements. */ return node.declList.decls.map( - (decl) => new VariableStmt(new VariableDeclList([decl])) + (decl) => + new VariableStmt( + new VariableDeclList([decl], VariableDeclKind.Const) + ) ); } else if (isBinaryExpr(node)) { /** diff --git a/src/compile.ts b/src/compile.ts index 6ab0066a..ee9ad22f 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -492,6 +492,13 @@ export function compile( ts.factory.createArrayLiteralExpression( node.declarations.map((decl) => toExpr(decl, scope)) ), + ts.factory.createNumericLiteral( + (node.flags & ts.NodeFlags.Const) !== 0 + ? VariableDeclKind.Const + : (node.flags & ts.NodeFlags.Let) !== 0 + ? VariableDeclKind.Let + : VariableDeclKind.Var + ), ]); } else if (ts.isVariableDeclaration(node)) { return newExpr(NodeKind.VariableDecl, [ @@ -503,13 +510,6 @@ export function compile( node.initializer ? toExpr(node.initializer, scope) : ts.factory.createIdentifier("undefined"), - ts.factory.createNumericLiteral( - (node.flags & ts.NodeFlags.Const) !== 0 - ? VariableDeclKind.Const - : (node.flags & ts.NodeFlags.Let) !== 0 - ? VariableDeclKind.Let - : VariableDeclKind.Var - ), ]); } else if (ts.isIfStatement(node)) { return newExpr(NodeKind.IfStmt, [ diff --git a/src/declaration.ts b/src/declaration.ts index 5b96ab62..d57021be 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -366,11 +366,7 @@ export enum VariableDeclKind { export class VariableDecl< E extends Expr | undefined = Expr | undefined > extends BaseDecl { - constructor( - readonly name: BindingName, - readonly initializer: E, - readonly varKind: VariableDeclKind - ) { + constructor(readonly name: BindingName, readonly initializer: E) { super(NodeKind.VariableDecl, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(initializer, "initializer", ["undefined", "Expr"]); @@ -385,7 +381,10 @@ export class VariableDeclList extends BaseNode< > { readonly nodeKind: "Node" = "Node"; - constructor(readonly decls: VariableDecl[]) { + constructor( + readonly decls: VariableDecl[], + readonly varKind: VariableDeclKind + ) { super(NodeKind.VariableDeclList, arguments); this.ensureArrayOf(decls, "decls", [NodeKind.VariableDecl]); } diff --git a/src/visit.ts b/src/visit.ts index 9dc6c118..f181079b 100644 --- a/src/visit.ts +++ b/src/visit.ts @@ -1,4 +1,8 @@ -import { VariableDecl, VariableDeclList } from "./declaration"; +import { + VariableDecl, + VariableDeclKind, + VariableDeclList, +} from "./declaration"; import { Expr, Identifier } from "./expression"; import { isNode } from "./guards"; import { FunctionlessNode } from "./node"; @@ -73,7 +77,10 @@ export function visitBlock( function hoist(expr: Expr): Identifier { const id = new Identifier(nameGenerator.generateOrGet(expr)); const stmt = new VariableStmt( - new VariableDeclList([new VariableDecl(id.clone(), expr.clone())]) + new VariableDeclList( + [new VariableDecl(id.clone(), expr.clone())], + VariableDeclKind.Const + ) ); nestedTasks.push(stmt); return id; From 5738dd2ca2beae4ef3bf289e5252359ff148c39e Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 20:16:02 -0700 Subject: [PATCH 022/107] fix: make expr in YieldExpr not optional --- src/expression.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expression.ts b/src/expression.ts index d3bb30b6..7390ac9d 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -526,14 +526,14 @@ export class YieldExpr extends BaseExpr { /** * The expression to yield (or delegate) to. */ - readonly expr: Expr | undefined, + readonly expr: Expr, /** * Is a `yield*` delegate expression. */ readonly delegate: boolean ) { super(NodeKind.YieldExpr, arguments); - this.ensure(expr, "expr", ["undefined", "Expr"]); + this.ensure(expr, "expr", ["Expr"]); this.ensure(delegate, "delegate", ["boolean"]); } } From 153ef3c18ebce8102211f4ec0985cad26ac45ea8 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 5 Aug 2022 20:36:40 -0700 Subject: [PATCH 023/107] feat: remove normalization logic of operators, === and !== --- src/asl.ts | 37 +- src/compile.ts | 11 +- src/event-bridge/event-pattern/synth.ts | 4 +- src/expression.ts | 10 +- src/vtl.ts | 4 +- test/__snapshots__/step-function.test.ts.snap | 368 +++++++++--------- test/__snapshots__/vtl.test.ts.snap | 40 +- test/vtl.test.ts | 8 + 8 files changed, 258 insertions(+), 224 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index 69330864..e3957c36 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -1940,8 +1940,10 @@ export class ASL { } else if ( expr.op === "&&" || expr.op === "||" || + expr.op === "===" || expr.op === "==" || expr.op == "!=" || + expr.op == "!==" || expr.op == ">" || expr.op == "<" || expr.op == ">=" || @@ -2742,7 +2744,11 @@ export class ASL { } else if (isBinaryExpr(expr)) { const left = toFilterCondition(expr.left); const right = toFilterCondition(expr.right); - return left && right ? `${left}${expr.op}${right}` : undefined; + return left && right + ? `${left}${ + expr.op === "===" ? "==" : expr.op === "!==" ? "!=" : expr.op + }${right}` + : undefined; } else if (isUnaryExpr(expr)) { const right = toFilterCondition(expr.expr); return right ? `${expr.op}${right}` : undefined; @@ -3721,7 +3727,9 @@ export class ASL { if ( expr.op === "!=" || + expr.op === "!==" || expr.op === "==" || + expr.op === "===" || expr.op === ">" || expr.op === "<" || expr.op === ">=" || @@ -3731,9 +3739,10 @@ export class ASL { ASLGraph.isLiteralValue(leftOutput) && ASLGraph.isLiteralValue(rightOutput) ) { - return (expr.op === "==" && + return ((expr.op === "==" || expr.op === "===") && leftOutput.value === rightOutput.value) || - (expr.op === "!=" && leftOutput.value !== rightOutput.value) || + ((expr.op === "!=" || expr.op === "!==") && + leftOutput.value !== rightOutput.value) || (leftOutput.value !== null && rightOutput.value !== null && ((expr.op === ">" && leftOutput.value > rightOutput.value) || @@ -4799,7 +4808,7 @@ export namespace ASL { // for != use not(equals()) export const VALUE_COMPARISONS: Record< - "==" | ">" | ">=" | "<=" | "<", + "===" | "==" | ">" | ">=" | "<=" | "<", Record<"string" | "boolean" | "number", keyof Condition | undefined> > = { "==": { @@ -4807,6 +4816,11 @@ export namespace ASL { boolean: "BooleanEquals", number: "NumericEquals", }, + "===": { + string: "StringEquals", + boolean: "BooleanEquals", + number: "NumericEquals", + }, "<": { string: "StringLessThan", boolean: undefined, @@ -4870,10 +4884,11 @@ export namespace ASL { export const compare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: keyof typeof VALUE_COMPARISONS | "!=" + operator: keyof typeof VALUE_COMPARISONS ): Condition => { if ( operator === "==" || + operator === "===" || operator === ">" || operator === "<" || operator === ">=" || @@ -4902,7 +4917,7 @@ export namespace ASL { ); } return ASL.and(ASL.isPresent(left.jsonPath), condition); - } else if (operator === "!=") { + } else if (operator === "!=" || operator === "!==") { return ASL.not(ASL.compare(left, right, "==")); } @@ -4913,7 +4928,7 @@ export namespace ASL { export const stringCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { if (ASLGraph.isJsonPath(right) || typeof right.value === "string") { return ASL.and( @@ -4938,7 +4953,7 @@ export namespace ASL { export const numberCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { if (ASLGraph.isJsonPath(right) || typeof right.value === "number") { return ASL.and( @@ -4963,7 +4978,7 @@ export namespace ASL { export const booleanCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { if (ASLGraph.isJsonPath(right) || typeof right.value === "boolean") { return ASL.and( @@ -4988,9 +5003,9 @@ export namespace ASL { export const nullCompare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: "==" | ">" | "<" | "<=" | ">=" + operator: "===" | "==" | ">" | "<" | "<=" | ">=" ) => { - if (operator === "==") { + if (operator === "==" || operator === "===") { if (ASLGraph.isJsonPath(right)) { return ASL.and(ASL.isNull(left.jsonPath), ASL.isNull(right.jsonPath)); } else if (right.value === null) { diff --git a/src/compile.ts b/src/compile.ts index ee9ad22f..ba26c671 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -928,11 +928,7 @@ export function compile( } function getBinaryOperator(op: ts.BinaryOperatorToken): BinaryOp | undefined { - return ( - BinaryOperatorRemappings[ - op.kind as keyof typeof BinaryOperatorRemappings - ] ?? (ts.tokenToString(op.kind) as BinaryOp) - ); + return ts.tokenToString(op.kind) as BinaryOp; } function getPrefixUnaryOperator( @@ -947,11 +943,6 @@ function getPostfixUnaryOperator( return ts.tokenToString(op) as PostfixUnaryOp | undefined; } -const BinaryOperatorRemappings: Record = { - [ts.SyntaxKind.EqualsEqualsEqualsToken]: "==", - [ts.SyntaxKind.ExclamationEqualsEqualsToken]: "!=", -} as const; - function param(name: string, spread: boolean = false) { return ts.factory.createParameterDeclaration( undefined, diff --git a/src/event-bridge/event-pattern/synth.ts b/src/event-bridge/event-pattern/synth.ts index 9dd34e14..8f23d913 100644 --- a/src/event-bridge/event-pattern/synth.ts +++ b/src/event-bridge/event-pattern/synth.ts @@ -163,9 +163,9 @@ export const synthesizePatternDocument = ( }; const evalBinary = (expr: BinaryExpr): PatternDocument => { - if (expr.op === "==") { + if (expr.op === "==" || expr.op === "===") { return evalEquals(expr); - } else if (expr.op === "!=") { + } else if (expr.op === "!=" || expr.op === "!==") { return evalNotEquals(expr); } else if ([">", ">=", "<", "<="].includes(expr.op)) { return evalNumericRange(expr); diff --git a/src/expression.ts b/src/expression.ts index 7390ac9d..03e0056a 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -259,7 +259,15 @@ export class ConditionExpr extends BaseExpr { } } -export type ValueComparisonBinaryOp = "==" | "!=" | "<" | "<=" | ">" | ">="; +export type ValueComparisonBinaryOp = + | "===" + | "==" + | "!=" + | "!==" + | "<" + | "<=" + | ">" + | ">="; export type MathBinaryOp = "/" | "*" | "+" | "-" | "%"; export type MutationMathBinaryOp = "+=" | "*=" | "-=" | "/=" | "%="; export type ComparatorOp = "&&" | "||" | "??"; diff --git a/src/vtl.ts b/src/vtl.ts index 42e52681..9e8ff4f6 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -364,7 +364,9 @@ export abstract class VTL { // VTL fails to evaluate binary expressions inside an object put e.g. $obj.put('x', 1 + 1) // a workaround is to use a temp variable. return this.var( - `${this.eval(node.left)} ${node.op} ${this.eval(node.right)}` + `${this.eval(node.left)} ${ + node.op === "===" ? "==" : node.op === "!==" ? "!=" : node.op + } ${this.eval(node.right)}` ); } else if (isBlockStmt(node)) { for (const stmt of node.statements) { diff --git a/test/__snapshots__/step-function.test.ts.snap b/test/__snapshots__/step-function.test.ts.snap index 536168cc..11e704e1 100644 --- a/test/__snapshots__/step-function.test.ts.snap +++ b/test/__snapshots__/step-function.test.ts.snap @@ -982,7 +982,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "1__return item == {a: \\"a\\"}": Object { + "1__return item === {a: \\"a\\"}": Object { "InputPath": "$.heap3", "Next": "handleResult__[{}].filter(function(item))", "ResultPath": "$.heap2", @@ -1007,14 +1007,14 @@ Object { "ResultPath": "$.heap1", "Type": "Pass", }, - "assignFalse__return item == {a: \\"a\\"}": Object { - "Next": "1__return item == {a: \\"a\\"}", + "assignFalse__return item === {a: \\"a\\"}": Object { + "Next": "1__return item === {a: \\"a\\"}", "Result": false, "ResultPath": "$.heap3", "Type": "Pass", }, - "assignTrue__return item == {a: \\"a\\"}": Object { - "Next": "1__return item == {a: \\"a\\"}", + "assignTrue__return item === {a: \\"a\\"}": Object { + "Next": "1__return item === {a: \\"a\\"}", "Result": true, "ResultPath": "$.heap3", "Type": "Pass", @@ -1119,7 +1119,7 @@ Object { }, "item": Object { "InputPath": "$.heap1.arr[0]", - "Next": "return item == {a: \\"a\\"}", + "Next": "return item === {a: \\"a\\"}", "ResultPath": "$.item", "Type": "Pass", }, @@ -1140,7 +1140,7 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "return item == {a: \\"a\\"}": Object { + "return item === {a: \\"a\\"}": Object { "Choices": Array [ Object { "And": Array [ @@ -1153,10 +1153,10 @@ Object { "Variable": "$$.Execution.Id", }, ], - "Next": "assignTrue__return item == {a: \\"a\\"}", + "Next": "assignTrue__return item === {a: \\"a\\"}", }, ], - "Default": "assignFalse__return item == {a: \\"a\\"}", + "Default": "assignFalse__return item === {a: \\"a\\"}", "Type": "Choice", }, "set__end__[{}].filter(function(item))": Object { @@ -1185,7 +1185,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "1__return value == a": Object { + "1__return value === a": Object { "InputPath": "$.heap3", "Next": "handleResult__[{value: \\"a\\"}].filter(function(item))", "ResultPath": "$.heap2", @@ -1216,14 +1216,14 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "assignFalse__return value == a": Object { - "Next": "1__return value == a", + "assignFalse__return value === a": Object { + "Next": "1__return value === a", "Result": false, "ResultPath": "$.heap3", "Type": "Pass", }, - "assignTrue__return value == a": Object { - "Next": "1__return value == a", + "assignTrue__return value === a": Object { + "Next": "1__return value === a", "Result": true, "ResultPath": "$.heap3", "Type": "Pass", @@ -1351,7 +1351,7 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "return value == a": Object { + "return value === a": Object { "Choices": Array [ Object { "And": Array [ @@ -1412,10 +1412,10 @@ Object { ], }, ], - "Next": "assignTrue__return value == a", + "Next": "assignTrue__return value === a", }, ], - "Default": "assignFalse__return value == a", + "Default": "assignFalse__return value === a", "Type": "Choice", }, "set__end__[{value: \\"a\\"}].filter(function(item))": Object { @@ -1432,7 +1432,7 @@ Object { }, "{value} = item": Object { "InputPath": "$.item['value']", - "Next": "return value == a", + "Next": "return value === a", "ResultPath": "$.value", "Type": "Pass", }, @@ -4294,7 +4294,7 @@ Object { "Default": "return null", "Type": "Choice", }, - "if(item == \\"hello\\")": Object { + "if(item === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -4323,7 +4323,7 @@ Object { }, "item": Object { "InputPath": "$.heap0[0]", - "Next": "if(item == \\"hello\\")", + "Next": "if(item === \\"hello\\")", "ResultPath": "$.item", "Type": "Pass", }, @@ -4384,7 +4384,7 @@ Object { "States": Object { "1__person = await $AWS.DynamoDB.GetItem({Table: personTable, Key: {id: {S: ": Object { "InputPath": "$.heap0", - "Next": "if(person.Item == undefined)", + "Next": "if(person.Item === undefined)", "ResultPath": "$.person", "Type": "Pass", }, @@ -4405,7 +4405,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(person.Item == undefined)": Object { + "if(person.Item === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -5061,7 +5061,7 @@ exports[`condition on task output 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__if(await task() == 1)": Object { + "1__if(await task() === 1)": Object { "Choices": Array [ Object { "And": Array [ @@ -5089,7 +5089,7 @@ Object { "Type": "Choice", }, "Initialize Functionless Context": Object { - "Next": "if(await task() == 1)", + "Next": "if(await task() === 1)", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5098,9 +5098,9 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(await task() == 1)": Object { + "if(await task() === 1)": Object { "InputPath": "$.fnl_context.null", - "Next": "1__if(await task() == 1)", + "Next": "1__if(await task() === 1)", "Resource": "__REPLACED_TOKEN", "ResultPath": "$.heap0", "Type": "Task", @@ -5126,7 +5126,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.id == \\"hello\\")", + "Next": "if(input.id === \\"hello\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5150,7 +5150,7 @@ Object { "ResultPath": "$.heap0", "Type": "Task", }, - "if(input.id == \\"hello\\")": Object { + "if(input.id === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5192,7 +5192,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.id == \\"hello\\")", + "Next": "if(input.id === \\"hello\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5202,7 +5202,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.id == \\"hello\\")": Object { + "if(input.id === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5250,7 +5250,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.id == \\"hello\\")", + "Next": "if(input.id === \\"hello\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5260,7 +5260,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.id == \\"hello\\")": Object { + "if(input.id === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5308,7 +5308,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.key == \\"sam\\")", + "Next": "if(input.key === \\"sam\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5320,23 +5320,23 @@ Object { }, "await task(input.key)": Object { "InputPath": "$.input.key", - "Next": "if(input.key == \\"sam\\")", + "Next": "if(input.key === \\"sam\\")", "Resource": "__REPLACED_TOKEN", "ResultPath": "$.heap0", "Type": "Task", }, - "if(input.key == \\"sam\\")": Object { + "if(input.key === \\"sam\\")": Object { "Choices": Array [ Object { "IsNull": false, - "Next": "if(input.key == \\"sam\\") 1", + "Next": "if(input.key === \\"sam\\") 1", "Variable": "$$.Execution.Id", }, ], "Default": "return null", "Type": "Choice", }, - "if(input.key == \\"sam\\") 1": Object { + "if(input.key === \\"sam\\") 1": Object { "Choices": Array [ Object { "And": Array [ @@ -5357,7 +5357,7 @@ Object { ], }, ], - "Next": "if(input.key == \\"sam\\")", + "Next": "if(input.key === \\"sam\\")", }, ], "Default": "await task(input.key)", @@ -5405,7 +5405,7 @@ Object { "Default": "return null", "Type": "Choice", }, - "if(item == \\"hello\\")": Object { + "if(item === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5434,7 +5434,7 @@ Object { }, "item": Object { "InputPath": "$.heap0[0]", - "Next": "if(item == \\"hello\\")", + "Next": "if(item === \\"hello\\")", "ResultPath": "$.item", "Type": "Pass", }, @@ -5476,7 +5476,7 @@ Object { "ResultPath": "$.heap0", "Type": "Task", }, - "if(input.key == \\"sam\\")": Object { + "if(input.key === \\"sam\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5513,7 +5513,7 @@ Object { "Choices": Array [ Object { "IsNull": false, - "Next": "if(input.key == \\"sam\\")", + "Next": "if(input.key === \\"sam\\")", "Variable": "$$.Execution.Id", }, ], @@ -5529,7 +5529,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.val == \\"a\\")", + "Next": "if(input.val === \\"a\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5539,7 +5539,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.val == \\"a\\")": Object { + "if(input.val === \\"a\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5641,7 +5641,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.val == \\"a\\")", + "Next": "if(input.val === \\"a\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -5651,7 +5651,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.val == \\"a\\")": Object { + "if(input.val === \\"a\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6186,7 +6186,7 @@ Object { }, "assignValue__i": Object { "InputPath": "$.heap0[0].item", - "Next": "if(input.items[i] == \\"1\\")", + "Next": "if(input.items[i] === \\"1\\")", "ResultPath": "$.0__i", "Type": "Pass", }, @@ -6232,11 +6232,11 @@ Object { }, "i 1": Object { "InputPath": "$.heap1[0]", - "Next": "if(i == \\"1\\")", + "Next": "if(i === \\"1\\")", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == \\"1\\")": Object { + "if(i === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6263,7 +6263,7 @@ Object { "Default": "return i", "Type": "Choice", }, - "if(input.items[i] == \\"1\\")": Object { + "if(input.items[i] === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6435,7 +6435,7 @@ Object { }, "assignValue__i": Object { "InputPath": "$.heap0[0].item", - "Next": "if(input.items[i] == \\"1\\")", + "Next": "if(input.items[i] === \\"1\\")", "ResultPath": "$.0__i", "Type": "Pass", }, @@ -6481,11 +6481,11 @@ Object { }, "i 1": Object { "InputPath": "$.heap1[0]", - "Next": "if(i == \\"1\\")", + "Next": "if(i === \\"1\\")", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == \\"1\\")": Object { + "if(i === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6512,7 +6512,7 @@ Object { "Default": "return i", "Type": "Choice", }, - "if(input.items[i] == \\"1\\")": Object { + "if(input.items[i] === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6696,7 +6696,7 @@ Object { }, "assignValue__i": Object { "InputPath": "$.heap0[0].item", - "Next": "if(input.items[i] == \\"1\\")", + "Next": "if(input.items[i] === \\"1\\")", "ResultPath": "$.0__i", "Type": "Pass", }, @@ -6742,11 +6742,11 @@ Object { }, "i 1": Object { "InputPath": "$.heap1[0]", - "Next": "if(i == \\"1\\")", + "Next": "if(i === \\"1\\")", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == \\"1\\")": Object { + "if(i === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6773,7 +6773,7 @@ Object { "Default": "tail__for(i of input.items)", "Type": "Choice", }, - "if(input.items[i] == \\"1\\")": Object { + "if(input.items[i] === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -6868,7 +6868,7 @@ exports[`for(;;) loop 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__for(i = 0;i < 3;i = if(i == 0))": Object { + "1__for(i = 0;i < 3;i = if(i === 0))": Object { "Choices": Array [ Object { "And": Array [ @@ -6895,14 +6895,14 @@ Object { "Default": "return null", "Type": "Choice", }, - "1__i = if(i == 0)": Object { + "1__i = if(i === 0)": Object { "InputPath": "$.heap2", - "Next": "1__for(i = 0;i < 3;i = if(i == 0))", + "Next": "1__for(i = 0;i < 3;i = if(i === 0))", "ResultPath": "$.i", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "for(i = 0;i < 3;i = if(i == 0))", + "Next": "for(i = 0;i < 3;i = if(i === 0))", "Parameters": Object { "fnl_context": Object { "null": null, @@ -6911,26 +6911,26 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "assign__doFalse__i = if(i == 0)": Object { + "assign__doFalse__i = if(i === 0)": Object { "InputPath": "$.heap1", - "Next": "1__i = if(i == 0)", + "Next": "1__i = if(i === 0)", "ResultPath": "$.heap2", "Type": "Pass", }, "await task(i)": Object { "InputPath": "$.i", - "Next": "i = if(i == 0)", + "Next": "i = if(i === 0)", "Resource": "__REPLACED_TOKEN", "ResultPath": "$.heap0", "Type": "Task", }, - "doFalse__doFalse__i = if(i == 0)": Object { - "Next": "assign__doFalse__i = if(i == 0)", + "doFalse__doFalse__i = if(i === 0)": Object { + "Next": "assign__doFalse__i = if(i === 0)", "Result": 3, "ResultPath": "$.heap1", "Type": "Pass", }, - "doFalse__i = if(i == 0)": Object { + "doFalse__i = if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -6951,31 +6951,31 @@ Object { ], }, ], - "Next": "doTrue__doFalse__i = if(i == 0)", + "Next": "doTrue__doFalse__i = if(i === 0)", }, ], - "Default": "doFalse__doFalse__i = if(i == 0)", + "Default": "doFalse__doFalse__i = if(i === 0)", "Type": "Choice", }, - "doTrue__doFalse__i = if(i == 0)": Object { - "Next": "assign__doFalse__i = if(i == 0)", + "doTrue__doFalse__i = if(i === 0)": Object { + "Next": "assign__doFalse__i = if(i === 0)", "Result": 2, "ResultPath": "$.heap1", "Type": "Pass", }, - "doTrue__i = if(i == 0)": Object { - "Next": "1__i = if(i == 0)", + "doTrue__i = if(i === 0)": Object { + "Next": "1__i = if(i === 0)", "Result": 1, "ResultPath": "$.heap2", "Type": "Pass", }, - "for(i = 0;i < 3;i = if(i == 0))": Object { - "Next": "1__for(i = 0;i < 3;i = if(i == 0))", + "for(i = 0;i < 3;i = if(i === 0))": Object { + "Next": "1__for(i = 0;i < 3;i = if(i === 0))", "Result": 0, "ResultPath": "$.i", "Type": "Pass", }, - "i = if(i == 0)": Object { + "i = if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -6996,10 +6996,10 @@ Object { ], }, ], - "Next": "doTrue__i = if(i == 0)", + "Next": "doTrue__i = if(i === 0)", }, ], - "Default": "doFalse__i = if(i == 0)", + "Default": "doFalse__i = if(i === 0)", "Type": "Choice", }, "return null": Object { @@ -7159,7 +7159,7 @@ exports[`for(;;) loop empty body 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__for(i = 0;i < 3;i = if(i == 0))": Object { + "1__for(i = 0;i < 3;i = if(i === 0))": Object { "Choices": Array [ Object { "And": Array [ @@ -7180,20 +7180,20 @@ Object { ], }, ], - "Next": "i = if(i == 0)", + "Next": "i = if(i === 0)", }, ], "Default": "return null", "Type": "Choice", }, - "1__i = if(i == 0)": Object { + "1__i = if(i === 0)": Object { "InputPath": "$.heap1", - "Next": "1__for(i = 0;i < 3;i = if(i == 0))", + "Next": "1__for(i = 0;i < 3;i = if(i === 0))", "ResultPath": "$.i", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "for(i = 0;i < 3;i = if(i == 0))", + "Next": "for(i = 0;i < 3;i = if(i === 0))", "Parameters": Object { "fnl_context": Object { "null": null, @@ -7202,19 +7202,19 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "assign__doFalse__i = if(i == 0)": Object { + "assign__doFalse__i = if(i === 0)": Object { "InputPath": "$.heap0", - "Next": "1__i = if(i == 0)", + "Next": "1__i = if(i === 0)", "ResultPath": "$.heap1", "Type": "Pass", }, - "doFalse__doFalse__i = if(i == 0)": Object { - "Next": "assign__doFalse__i = if(i == 0)", + "doFalse__doFalse__i = if(i === 0)": Object { + "Next": "assign__doFalse__i = if(i === 0)", "Result": 3, "ResultPath": "$.heap0", "Type": "Pass", }, - "doFalse__i = if(i == 0)": Object { + "doFalse__i = if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -7235,31 +7235,31 @@ Object { ], }, ], - "Next": "doTrue__doFalse__i = if(i == 0)", + "Next": "doTrue__doFalse__i = if(i === 0)", }, ], - "Default": "doFalse__doFalse__i = if(i == 0)", + "Default": "doFalse__doFalse__i = if(i === 0)", "Type": "Choice", }, - "doTrue__doFalse__i = if(i == 0)": Object { - "Next": "assign__doFalse__i = if(i == 0)", + "doTrue__doFalse__i = if(i === 0)": Object { + "Next": "assign__doFalse__i = if(i === 0)", "Result": 2, "ResultPath": "$.heap0", "Type": "Pass", }, - "doTrue__i = if(i == 0)": Object { - "Next": "1__i = if(i == 0)", + "doTrue__i = if(i === 0)": Object { + "Next": "1__i = if(i === 0)", "Result": 1, "ResultPath": "$.heap1", "Type": "Pass", }, - "for(i = 0;i < 3;i = if(i == 0))": Object { - "Next": "1__for(i = 0;i < 3;i = if(i == 0))", + "for(i = 0;i < 3;i = if(i === 0))": Object { + "Next": "1__for(i = 0;i < 3;i = if(i === 0))", "Result": 0, "ResultPath": "$.i", "Type": "Pass", }, - "i = if(i == 0)": Object { + "i = if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -7280,10 +7280,10 @@ Object { ], }, ], - "Next": "doTrue__i = if(i == 0)", + "Next": "doTrue__i = if(i === 0)", }, ], - "Default": "doFalse__i = if(i == 0)", + "Default": "doFalse__i = if(i === 0)", "Type": "Choice", }, "return null": Object { @@ -7611,7 +7611,7 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"you dun' goofed\\")", + "Next": "if(err.message === \\"you dun' goofed\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -7647,7 +7647,7 @@ Object { "Default": "return null", "Type": "Choice", }, - "if(err.message == \\"you dun' goofed\\")": Object { + "if(err.message === \\"you dun' goofed\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -7809,7 +7809,7 @@ exports[`if (?? === typeof x) 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "5__if(input.id == undefined)": Object { + "5__if(input.id === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -7934,7 +7934,7 @@ Object { "Type": "Choice", }, "Initialize Functionless Context": Object { - "Next": "if(input.id == undefined)", + "Next": "if(input.id === undefined)", "Parameters": Object { "fnl_context": Object { "null": null, @@ -7944,7 +7944,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "boolean__if(input.id == undefined)": Object { + "boolean__if(input.id === undefined)": Object { "Next": "input.id", "Result": "boolean", "ResultPath": "$.heap0", @@ -7969,12 +7969,12 @@ Object { "Type": "Pass", }, "boolean__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "boolean", "ResultPath": "$.heap4", "Type": "Pass", }, - "if(input.id == undefined)": Object { + "if(input.id === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -7987,7 +7987,7 @@ Object { "Variable": "$.input.id", }, ], - "Next": "string__if(input.id == undefined)", + "Next": "string__if(input.id === undefined)", }, Object { "And": Array [ @@ -8000,7 +8000,7 @@ Object { "Variable": "$.input.id", }, ], - "Next": "boolean__if(input.id == undefined)", + "Next": "boolean__if(input.id === undefined)", }, Object { "And": Array [ @@ -8013,15 +8013,15 @@ Object { "Variable": "$.input.id", }, ], - "Next": "number__if(input.id == undefined)", + "Next": "number__if(input.id === undefined)", }, Object { "IsPresent": true, - "Next": "object__if(input.id == undefined)", + "Next": "object__if(input.id === undefined)", "Variable": "$.input.id", }, ], - "Default": "undefined__if(input.id == undefined)", + "Default": "undefined__if(input.id === undefined)", "Type": "Choice", }, "input.id": Object { @@ -8224,7 +8224,7 @@ Object { "Default": "undefined__input.id 3", "Type": "Choice", }, - "number__if(input.id == undefined)": Object { + "number__if(input.id === undefined)": Object { "Next": "input.id", "Result": "number", "ResultPath": "$.heap0", @@ -8249,12 +8249,12 @@ Object { "Type": "Pass", }, "number__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "number", "ResultPath": "$.heap4", "Type": "Pass", }, - "object__if(input.id == undefined)": Object { + "object__if(input.id === undefined)": Object { "Next": "input.id", "Result": "object", "ResultPath": "$.heap0", @@ -8279,7 +8279,7 @@ Object { "Type": "Pass", }, "object__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "object", "ResultPath": "$.heap4", "Type": "Pass", @@ -8326,7 +8326,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "string__if(input.id == undefined)": Object { + "string__if(input.id === undefined)": Object { "Next": "input.id", "Result": "string", "ResultPath": "$.heap0", @@ -8351,12 +8351,12 @@ Object { "Type": "Pass", }, "string__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "string", "ResultPath": "$.heap4", "Type": "Pass", }, - "undefined__if(input.id == undefined)": Object { + "undefined__if(input.id === undefined)": Object { "Next": "input.id", "Result": "undefined", "ResultPath": "$.heap0", @@ -8381,7 +8381,7 @@ Object { "Type": "Pass", }, "undefined__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "undefined", "ResultPath": "$.heap4", "Type": "Pass", @@ -8394,7 +8394,7 @@ exports[`if (typeof x === ??) 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "5__if(input.id == undefined)": Object { + "5__if(input.id === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -8519,7 +8519,7 @@ Object { "Type": "Choice", }, "Initialize Functionless Context": Object { - "Next": "if(input.id == undefined)", + "Next": "if(input.id === undefined)", "Parameters": Object { "fnl_context": Object { "null": null, @@ -8529,7 +8529,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "boolean__if(input.id == undefined)": Object { + "boolean__if(input.id === undefined)": Object { "Next": "input.id", "Result": "boolean", "ResultPath": "$.heap0", @@ -8554,12 +8554,12 @@ Object { "Type": "Pass", }, "boolean__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "boolean", "ResultPath": "$.heap4", "Type": "Pass", }, - "if(input.id == undefined)": Object { + "if(input.id === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -8572,7 +8572,7 @@ Object { "Variable": "$.input.id", }, ], - "Next": "string__if(input.id == undefined)", + "Next": "string__if(input.id === undefined)", }, Object { "And": Array [ @@ -8585,7 +8585,7 @@ Object { "Variable": "$.input.id", }, ], - "Next": "boolean__if(input.id == undefined)", + "Next": "boolean__if(input.id === undefined)", }, Object { "And": Array [ @@ -8598,15 +8598,15 @@ Object { "Variable": "$.input.id", }, ], - "Next": "number__if(input.id == undefined)", + "Next": "number__if(input.id === undefined)", }, Object { "IsPresent": true, - "Next": "object__if(input.id == undefined)", + "Next": "object__if(input.id === undefined)", "Variable": "$.input.id", }, ], - "Default": "undefined__if(input.id == undefined)", + "Default": "undefined__if(input.id === undefined)", "Type": "Choice", }, "input.id": Object { @@ -8809,7 +8809,7 @@ Object { "Default": "undefined__input.id 3", "Type": "Choice", }, - "number__if(input.id == undefined)": Object { + "number__if(input.id === undefined)": Object { "Next": "input.id", "Result": "number", "ResultPath": "$.heap0", @@ -8834,12 +8834,12 @@ Object { "Type": "Pass", }, "number__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "number", "ResultPath": "$.heap4", "Type": "Pass", }, - "object__if(input.id == undefined)": Object { + "object__if(input.id === undefined)": Object { "Next": "input.id", "Result": "object", "ResultPath": "$.heap0", @@ -8864,7 +8864,7 @@ Object { "Type": "Pass", }, "object__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "object", "ResultPath": "$.heap4", "Type": "Pass", @@ -8911,7 +8911,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "string__if(input.id == undefined)": Object { + "string__if(input.id === undefined)": Object { "Next": "input.id", "Result": "string", "ResultPath": "$.heap0", @@ -8936,12 +8936,12 @@ Object { "Type": "Pass", }, "string__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "string", "ResultPath": "$.heap4", "Type": "Pass", }, - "undefined__if(input.id == undefined)": Object { + "undefined__if(input.id === undefined)": Object { "Next": "input.id", "Result": "undefined", "ResultPath": "$.heap0", @@ -8966,7 +8966,7 @@ Object { "Type": "Pass", }, "undefined__input.id 3": Object { - "Next": "5__if(input.id == undefined)", + "Next": "5__if(input.id === undefined)", "Result": "undefined", "ResultPath": "$.heap4", "Type": "Pass", @@ -9021,7 +9021,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.val == \\"a\\")", + "Next": "if(input.val === \\"a\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -9031,7 +9031,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.val == \\"a\\")": Object { + "if(input.val === \\"a\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -9079,7 +9079,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.val != \\"a\\")", + "Next": "if(input.val !== \\"a\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -9089,10 +9089,10 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.val != \\"a\\")": Object { + "if(input.val !== \\"a\\")": Object { "Choices": Array [ Object { - "Next": "if(input.val == \\"b\\")", + "Next": "if(input.val === \\"b\\")", "Not": Object { "And": Array [ Object { @@ -9118,7 +9118,7 @@ Object { "Default": "return \\"woop\\"", "Type": "Choice", }, - "if(input.val == \\"b\\")": Object { + "if(input.val === \\"b\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -9282,7 +9282,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.id == \\"hello\\")", + "Next": "if(input.id === \\"hello\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -9292,7 +9292,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.id == \\"hello\\")": Object { + "if(input.id === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -9340,7 +9340,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "if(input.id == \\"hello\\")", + "Next": "if(input.id === \\"hello\\")", "Parameters": Object { "fnl_context": Object { "null": null, @@ -9350,7 +9350,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(input.id == \\"hello\\")": Object { + "if(input.id === \\"hello\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -10245,11 +10245,11 @@ Object { }, "i": Object { "InputPath": "$.heap0.arr[0].index", - "Next": "if(i == 0)", + "Next": "if(i === 0)", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == 0)": Object { + "if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -10380,11 +10380,11 @@ Object { }, "i": Object { "InputPath": "$.heap0.arr[0].index", - "Next": "if(i == 0)", + "Next": "if(i === 0)", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == 0)": Object { + "if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -10684,11 +10684,11 @@ Object { }, "i": Object { "InputPath": "$.heap0.arr[0].index", - "Next": "if(i == 0)", + "Next": "if(i === 0)", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == 0)": Object { + "if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -10831,11 +10831,11 @@ Object { }, "i": Object { "InputPath": "$.heap0.arr[0].index", - "Next": "if(i == 0)", + "Next": "if(i === 0)", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == 0)": Object { + "if(i === 0)": Object { "Choices": Array [ Object { "And": Array [ @@ -11885,7 +11885,7 @@ Object { "States": Object { "1__person = await $AWS.DynamoDB.GetItem({Table: personTable, Key: {id: {S: ": Object { "InputPath": "$.heap0", - "Next": "if(person.Item == undefined)", + "Next": "if(person.Item === undefined)", "ResultPath": "$.person", "Type": "Pass", }, @@ -11900,7 +11900,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(person.Item == undefined)": Object { + "if(person.Item === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -11958,7 +11958,7 @@ Object { "States": Object { "1__person = await $AWS.DynamoDB.GetItem({Table: personTable, Key: {id: {S: ": Object { "InputPath": "$.heap1", - "Next": "if(person.Item == undefined)", + "Next": "if(person.Item === undefined)", "ResultPath": "$.person", "Type": "Pass", }, @@ -11987,7 +11987,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "if(person.Item == undefined)": Object { + "if(person.Item === undefined)": Object { "Choices": Array [ Object { "And": Array [ @@ -13854,7 +13854,7 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"you dun' goofed\\")", + "Next": "if(err.message === \\"you dun' goofed\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -13890,7 +13890,7 @@ Object { "Default": "finally", "Type": "Choice", }, - "if(err.message == \\"you dun' goofed\\")": Object { + "if(err.message === \\"you dun' goofed\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -14219,7 +14219,7 @@ Object { }, "catch__try": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -14240,7 +14240,7 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -14599,7 +14599,7 @@ Object { }, "catch__try": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -14622,7 +14622,7 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -15136,7 +15136,7 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"sam\\")", + "Next": "if(err.message === \\"sam\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -15155,7 +15155,7 @@ Object { "ResultPath": "$.heap1", "Type": "Task", }, - "if(err.message == \\"sam\\")": Object { + "if(err.message === \\"sam\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -15491,11 +15491,11 @@ Object { }, "catch__try": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -15706,7 +15706,7 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -15718,7 +15718,7 @@ Object { "ResultPath": "$.fnl_tmp_0", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -15823,7 +15823,7 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -15835,7 +15835,7 @@ Object { "ResultPath": "$.fnl_tmp_0", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -15972,7 +15972,7 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, @@ -15984,7 +15984,7 @@ Object { "ResultPath": "$.fnl_tmp_0", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -16077,11 +16077,11 @@ Object { }, "catch__try": Object { "InputPath": "$.fnl_tmp_0", - "Next": "if(err.message == \\"cause\\")", + "Next": "if(err.message === \\"cause\\")", "ResultPath": "$.err", "Type": "Pass", }, - "if(err.message == \\"cause\\")": Object { + "if(err.message === \\"cause\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -16679,12 +16679,12 @@ Object { "States": Object { "1__cond = await task()": Object { "InputPath": "$.heap0", - "Next": "while (cond == null)", + "Next": "while (cond === null)", "ResultPath": "$.cond", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "while (cond == null)", + "Next": "while (cond === null)", "Parameters": Object { "fnl_context": Object { "null": null, @@ -16706,7 +16706,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "while (cond == null)": Object { + "while (cond === null)": Object { "Choices": Array [ Object { "And": Array [ @@ -16783,12 +16783,12 @@ Object { "States": Object { "1__cond = await task()": Object { "InputPath": "$.heap0", - "Next": "while (cond == null)", + "Next": "while (cond === null)", "ResultPath": "$.cond", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "while (cond == null)", + "Next": "while (cond === null)", "Parameters": Object { "fnl_context": Object { "null": null, @@ -16810,7 +16810,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "while (cond == null)": Object { + "while (cond === null)": Object { "Choices": Array [ Object { "And": Array [ diff --git a/test/__snapshots__/vtl.test.ts.snap b/test/__snapshots__/vtl.test.ts.snap index 11104a02..21804fdd 100644 --- a/test/__snapshots__/vtl.test.ts.snap +++ b/test/__snapshots__/vtl.test.ts.snap @@ -392,21 +392,25 @@ Array [ #set($context.stash.b = $context.arguments.b) #set($v1 = {}) #set($v2 = $context.stash.a != $context.stash.b) -$util.qr($v1.put('!=', $v2)) -#set($v3 = $context.stash.a && $context.stash.b) -$util.qr($v1.put('&&', $v3)) -#set($v4 = $context.stash.a || $context.stash.b) -$util.qr($v1.put('||', $v4)) -#set($v5 = $context.stash.a < $context.stash.b) -$util.qr($v1.put('<', $v5)) -#set($v6 = $context.stash.a <= $context.stash.b) -$util.qr($v1.put('<=', $v6)) -#set($v7 = $context.stash.a == $context.stash.b) -$util.qr($v1.put('==', $v7)) -#set($v8 = $context.stash.a > $context.stash.b) -$util.qr($v1.put('>', $v8)) -#set($v9 = $context.stash.a >= $context.stash.b) -$util.qr($v1.put('>=', $v9)) +$util.qr($v1.put('!==', $v2)) +#set($v3 = $context.stash.a != $context.stash.b) +$util.qr($v1.put('!=', $v3)) +#set($v4 = $context.stash.a && $context.stash.b) +$util.qr($v1.put('&&', $v4)) +#set($v5 = $context.stash.a || $context.stash.b) +$util.qr($v1.put('||', $v5)) +#set($v6 = $context.stash.a < $context.stash.b) +$util.qr($v1.put('<', $v6)) +#set($v7 = $context.stash.a <= $context.stash.b) +$util.qr($v1.put('<=', $v7)) +#set($v8 = $context.stash.a == $context.stash.b) +$util.qr($v1.put('===', $v8)) +#set($v9 = $context.stash.a == $context.stash.b) +$util.qr($v1.put('==', $v9)) +#set($v10 = $context.stash.a > $context.stash.b) +$util.qr($v1.put('>', $v10)) +#set($v11 = $context.stash.a >= $context.stash.b) +$util.qr($v1.put('>=', $v11)) #return($v1)", ] `; @@ -414,10 +418,12 @@ $util.qr($v1.put('>=', $v9)) exports[`binary exprs value comparison 2`] = ` Object { "!=": true, + "!==": true, "&&": 2, "<": true, "<=": true, "==": false, + "===": false, ">": false, ">=": false, "||": 1, @@ -427,10 +433,12 @@ Object { exports[`binary exprs value comparison 3`] = ` Object { "!=": true, + "!==": true, "&&": 1, "<": false, "<=": false, "==": false, + "===": false, ">": true, ">=": true, "||": 2, @@ -440,10 +448,12 @@ Object { exports[`binary exprs value comparison 4`] = ` Object { "!=": false, + "!==": false, "&&": 1, "<": false, "<=": true, "==": true, + "===": true, ">": false, ">=": true, "||": 1, diff --git a/test/vtl.test.ts b/test/vtl.test.ts index 74cf09f9..cf78f573 100644 --- a/test/vtl.test.ts +++ b/test/vtl.test.ts @@ -556,11 +556,13 @@ test("binary exprs value comparison", () => { const a = $context.arguments.a; const b = $context.arguments.b; return { + "!==": a != b, "!=": a != b, "&&": a && b, "||": a || b, "<": a < b, "<=": a <= b, + "===": a == b, "==": a == b, ">": a > b, ">=": a >= b, @@ -571,9 +573,11 @@ test("binary exprs value comparison", () => { testAppsyncVelocity(templates[1], { arguments: { a: 1, b: 2 }, resultMatch: { + "!==": true, "!=": true, "<": true, "<=": true, + "===": false, "==": false, ">": false, ">=": false, @@ -583,9 +587,11 @@ test("binary exprs value comparison", () => { testAppsyncVelocity(templates[1], { arguments: { a: 2, b: 1 }, resultMatch: { + "!==": true, "!=": true, "<": false, "<=": false, + "===": false, "==": false, ">": true, ">=": true, @@ -595,9 +601,11 @@ test("binary exprs value comparison", () => { testAppsyncVelocity(templates[1], { arguments: { a: 1, b: 1 }, resultMatch: { + "!==": false, "!=": false, "<": false, "<=": true, + "===": true, "==": true, ">": false, ">=": true, From 87f39627cafdd2407ff85e3ef45063ae7f18b3bd Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 6 Aug 2022 03:54:39 +0000 Subject: [PATCH 024/107] chore: self mutation Signed-off-by: github-actions --- .../step-function.localstack.test.ts.snap | 756 +++++++++--------- 1 file changed, 378 insertions(+), 378 deletions(-) diff --git a/test/__snapshots__/step-function.localstack.test.ts.snap b/test/__snapshots__/step-function.localstack.test.ts.snap index c89b83c0..13e32e4a 100644 --- a/test/__snapshots__/step-function.localstack.test.ts.snap +++ b/test/__snapshots__/step-function.localstack.test.ts.snap @@ -491,15 +491,15 @@ Object { "Default": "assignFalse__!input.x", "Type": "Choice", }, - "\\"a\\" != \\"a\\"": Object { + "\\"a\\" !== \\"a\\"": Object { "Choices": Array [ Object { "IsNull": true, - "Next": "assignTrue__\\"a\\" != \\"a\\"", + "Next": "assignTrue__\\"a\\" !== \\"a\\"", "Variable": "$$.Execution.Id", }, ], - "Default": "assignFalse__\\"a\\" != \\"a\\"", + "Default": "assignFalse__\\"a\\" !== \\"a\\"", "Type": "Choice", }, "\\"a\\" < \\"a\\"": Object { @@ -579,10 +579,10 @@ Object { "Default": "assignFalse__\\"b\\" in input.obj", "Type": "Choice", }, - "\\"val2\\" != input.v": Object { + "\\"val2\\" !== input.v": Object { "Choices": Array [ Object { - "Next": "assignTrue__\\"val2\\" != input.v", + "Next": "assignTrue__\\"val2\\" !== input.v", "Not": Object { "And": Array [ Object { @@ -605,7 +605,7 @@ Object { }, }, ], - "Default": "assignFalse__\\"val2\\" != input.v", + "Default": "assignFalse__\\"val2\\" !== input.v", "Type": "Choice", }, "\\"val2\\" < input.v": Object { @@ -662,7 +662,7 @@ Object { "Default": "assignFalse__\\"val2\\" <= input.v", "Type": "Choice", }, - "\\"val2\\" == input.v": Object { + "\\"val2\\" === input.v": Object { "Choices": Array [ Object { "And": Array [ @@ -683,10 +683,10 @@ Object { ], }, ], - "Next": "assignTrue__\\"val2\\" == input.v", + "Next": "assignTrue__\\"val2\\" === input.v", }, ], - "Default": "assignFalse__\\"val2\\" == input.v", + "Default": "assignFalse__\\"val2\\" === input.v", "Type": "Choice", }, "\\"val2\\" > input.v": Object { @@ -743,15 +743,15 @@ Object { "Default": "assignFalse__\\"val2\\" >= input.v", "Type": "Choice", }, - "1 != 1": Object { + "1 !== 1": Object { "Choices": Array [ Object { "IsNull": true, - "Next": "assignTrue__1 != 1", + "Next": "assignTrue__1 !== 1", "Variable": "$$.Execution.Id", }, ], - "Default": "assignFalse__1 != 1", + "Default": "assignFalse__1 !== 1", "Type": "Choice", }, "1 < 1": Object { @@ -776,15 +776,15 @@ Object { "Default": "assignFalse__1 <= 1", "Type": "Choice", }, - "1 == 1": Object { + "1 === 1": Object { "Choices": Array [ Object { "IsNull": false, - "Next": "assignTrue__1 == 1", + "Next": "assignTrue__1 === 1", "Variable": "$$.Execution.Id", }, ], - "Default": "assignFalse__1 == 1", + "Default": "assignFalse__1 === 1", "Type": "Choice", }, "1 > 1": Object { @@ -809,7 +809,7 @@ Object { "Default": "assignFalse__1 >= 1", "Type": "Choice", }, - "1__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEquals: inp": Object { + "1__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringEquals: in": Object { "End": true, "Parameters": Object { "constantBooleanEquals.$": "$.heap48", @@ -888,10 +888,10 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "3 != input.n": Object { + "3 !== input.n": Object { "Choices": Array [ Object { - "Next": "assignTrue__3 != input.n", + "Next": "assignTrue__3 !== input.n", "Not": Object { "And": Array [ Object { @@ -914,7 +914,7 @@ Object { }, }, ], - "Default": "assignFalse__3 != input.n", + "Default": "assignFalse__3 !== input.n", "Type": "Choice", }, "3 < input.n": Object { @@ -971,7 +971,7 @@ Object { "Default": "assignFalse__3 <= input.n", "Type": "Choice", }, - "3 == input.n": Object { + "3 === input.n": Object { "Choices": Array [ Object { "And": Array [ @@ -992,10 +992,10 @@ Object { ], }, ], - "Next": "assignTrue__3 == input.n", + "Next": "assignTrue__3 === input.n", }, ], - "Default": "assignFalse__3 == input.n", + "Default": "assignFalse__3 === input.n", "Type": "Choice", }, "3 > input.n": Object { @@ -1053,7 +1053,7 @@ Object { "Type": "Choice", }, "Initialize Functionless Context": Object { - "Next": "return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEquals: input.", + "Next": "return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringEquals: input", "Parameters": Object { "fnl_context": Object { "null": null, @@ -1088,13 +1088,13 @@ Object { "Type": "Pass", }, "assignFalse__!input.x": Object { - "Next": "1__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEquals: inp", + "Next": "1__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringEquals: in", "Result": false, "ResultPath": "$.heap71", "Type": "Pass", }, - "assignFalse__\\"a\\" != \\"a\\"": Object { - "Next": "input.v != \\"val\\"", + "assignFalse__\\"a\\" !== \\"a\\"": Object { + "Next": "input.v !== \\"val\\"", "Result": false, "ResultPath": "$.heap4", "Type": "Pass", @@ -1141,8 +1141,8 @@ Object { "ResultPath": "$.heap66", "Type": "Pass", }, - "assignFalse__\\"val2\\" != input.v": Object { - "Next": "input.v != input.v", + "assignFalse__\\"val2\\" !== input.v": Object { + "Next": "input.v !== input.v", "Result": false, "ResultPath": "$.heap6", "Type": "Pass", @@ -1159,8 +1159,8 @@ Object { "ResultPath": "$.heap14", "Type": "Pass", }, - "assignFalse__\\"val2\\" == input.v": Object { - "Next": "input.v == input.v", + "assignFalse__\\"val2\\" === input.v": Object { + "Next": "input.v === input.v", "Result": false, "ResultPath": "$.heap2", "Type": "Pass", @@ -1177,8 +1177,8 @@ Object { "ResultPath": "$.heap22", "Type": "Pass", }, - "assignFalse__1 != 1": Object { - "Next": "input.n != 2", + "assignFalse__1 !== 1": Object { + "Next": "input.n !== 2", "Result": false, "ResultPath": "$.heap28", "Type": "Pass", @@ -1195,8 +1195,8 @@ Object { "ResultPath": "$.heap36", "Type": "Pass", }, - "assignFalse__1 == 1": Object { - "Next": "input.n == 2", + "assignFalse__1 === 1": Object { + "Next": "input.n === 2", "Result": false, "ResultPath": "$.heap24", "Type": "Pass", @@ -1213,8 +1213,8 @@ Object { "ResultPath": "$.heap44", "Type": "Pass", }, - "assignFalse__3 != input.n": Object { - "Next": "input.n != input.n", + "assignFalse__3 !== input.n": Object { + "Next": "input.n !== input.n", "Result": false, "ResultPath": "$.heap30", "Type": "Pass", @@ -1231,8 +1231,8 @@ Object { "ResultPath": "$.heap38", "Type": "Pass", }, - "assignFalse__3 == input.n": Object { - "Next": "input.n == input.n", + "assignFalse__3 === input.n": Object { + "Next": "input.n === input.n", "Result": false, "ResultPath": "$.heap26", "Type": "Pass", @@ -1249,49 +1249,49 @@ Object { "ResultPath": "$.heap46", "Type": "Pass", }, - "assignFalse__false != input.a": Object { - "Next": "input.a != input.a", + "assignFalse__false !== input.a": Object { + "Next": "input.a !== input.a", "Result": false, "ResultPath": "$.heap54", "Type": "Pass", }, - "assignFalse__false == input.a": Object { - "Next": "input.a == input.a", + "assignFalse__false === input.a": Object { + "Next": "input.a === input.a", "Result": false, "ResultPath": "$.heap50", "Type": "Pass", }, - "assignFalse__input.a != input.a": Object { - "Next": "null == null", + "assignFalse__input.a !== input.a": Object { + "Next": "null === null", "Result": false, "ResultPath": "$.heap55", "Type": "Pass", }, - "assignFalse__input.a != true": Object { - "Next": "false != input.a", + "assignFalse__input.a !== true": Object { + "Next": "false !== input.a", "Result": false, "ResultPath": "$.heap53", "Type": "Pass", }, - "assignFalse__input.a == input.a": Object { - "Next": "true != true", + "assignFalse__input.a === input.a": Object { + "Next": "true !== true", "Result": false, "ResultPath": "$.heap51", "Type": "Pass", }, - "assignFalse__input.a == true": Object { - "Next": "false == input.a", + "assignFalse__input.a === true": Object { + "Next": "false === input.a", "Result": false, "ResultPath": "$.heap49", "Type": "Pass", }, - "assignFalse__input.n != 2": Object { - "Next": "3 != input.n", + "assignFalse__input.n !== 2": Object { + "Next": "3 !== input.n", "Result": false, "ResultPath": "$.heap29", "Type": "Pass", }, - "assignFalse__input.n != input.n": Object { + "assignFalse__input.n !== input.n": Object { "Next": "1 < 1", "Result": false, "ResultPath": "$.heap31", @@ -1321,14 +1321,14 @@ Object { "ResultPath": "$.heap39", "Type": "Pass", }, - "assignFalse__input.n == 2": Object { - "Next": "3 == input.n", + "assignFalse__input.n === 2": Object { + "Next": "3 === input.n", "Result": false, "ResultPath": "$.heap25", "Type": "Pass", }, - "assignFalse__input.n == input.n": Object { - "Next": "1 != 1", + "assignFalse__input.n === input.n": Object { + "Next": "1 !== 1", "Result": false, "ResultPath": "$.heap27", "Type": "Pass", @@ -1352,48 +1352,48 @@ Object { "Type": "Pass", }, "assignFalse__input.n >= input.n": Object { - "Next": "true == true", + "Next": "true === true", "Result": false, "ResultPath": "$.heap47", "Type": "Pass", }, - "assignFalse__input.nv != input.nv": Object { + "assignFalse__input.nv !== input.nv": Object { "Next": "\\"a\\" in {a: \\"val\\"}", "Result": false, "ResultPath": "$.heap63", "Type": "Pass", }, - "assignFalse__input.nv != null": Object { - "Next": "input.v != input.nv", + "assignFalse__input.nv !== null": Object { + "Next": "input.v !== input.nv", "Result": false, "ResultPath": "$.heap61", "Type": "Pass", }, - "assignFalse__input.nv == input.nv": Object { - "Next": "null != null", + "assignFalse__input.nv === input.nv": Object { + "Next": "null !== null", "Result": false, "ResultPath": "$.heap59", "Type": "Pass", }, - "assignFalse__input.nv == null": Object { - "Next": "input.v == input.nv", + "assignFalse__input.nv === null": Object { + "Next": "input.v === input.nv", "Result": false, "ResultPath": "$.heap57", "Type": "Pass", }, - "assignFalse__input.v != \\"val\\"": Object { - "Next": "\\"val2\\" != input.v", + "assignFalse__input.v !== \\"val\\"": Object { + "Next": "\\"val2\\" !== input.v", "Result": false, "ResultPath": "$.heap5", "Type": "Pass", }, - "assignFalse__input.v != input.nv": Object { - "Next": "input.nv != input.nv", + "assignFalse__input.v !== input.nv": Object { + "Next": "input.nv !== input.nv", "Result": false, "ResultPath": "$.heap62", "Type": "Pass", }, - "assignFalse__input.v != input.v": Object { + "assignFalse__input.v !== input.v": Object { "Next": "\\"a\\" < \\"a\\"", "Result": false, "ResultPath": "$.heap7", @@ -1423,20 +1423,20 @@ Object { "ResultPath": "$.heap15", "Type": "Pass", }, - "assignFalse__input.v == \\"val\\"": Object { - "Next": "\\"val2\\" == input.v", + "assignFalse__input.v === \\"val\\"": Object { + "Next": "\\"val2\\" === input.v", "Result": false, "ResultPath": "$.heap1", "Type": "Pass", }, - "assignFalse__input.v == input.nv": Object { - "Next": "input.nv == input.nv", + "assignFalse__input.v === input.nv": Object { + "Next": "input.nv === input.nv", "Result": false, "ResultPath": "$.heap58", "Type": "Pass", }, - "assignFalse__input.v == input.v": Object { - "Next": "\\"a\\" != \\"a\\"", + "assignFalse__input.v === input.v": Object { + "Next": "\\"a\\" !== \\"a\\"", "Result": false, "ResultPath": "$.heap3", "Type": "Pass", @@ -1460,37 +1460,37 @@ Object { "Type": "Pass", }, "assignFalse__input.v >= input.v": Object { - "Next": "1 == 1", + "Next": "1 === 1", "Result": false, "ResultPath": "$.heap23", "Type": "Pass", }, - "assignFalse__null != null": Object { - "Next": "input.nv != null", + "assignFalse__null !== null": Object { + "Next": "input.nv !== null", "Result": false, "ResultPath": "$.heap60", "Type": "Pass", }, - "assignFalse__null == null": Object { - "Next": "input.nv == null", + "assignFalse__null === null": Object { + "Next": "input.nv === null", "Result": false, "ResultPath": "$.heap56", "Type": "Pass", }, - "assignFalse__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringE": Object { - "Next": "input.v == \\"val\\"", + "assignFalse__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarString": Object { + "Next": "input.v === \\"val\\"", "Result": false, "ResultPath": "$.heap0", "Type": "Pass", }, - "assignFalse__true != true": Object { - "Next": "input.a != true", + "assignFalse__true !== true": Object { + "Next": "input.a !== true", "Result": false, "ResultPath": "$.heap52", "Type": "Pass", }, - "assignFalse__true == true": Object { - "Next": "input.a == true", + "assignFalse__true === true": Object { + "Next": "input.a === true", "Result": false, "ResultPath": "$.heap48", "Type": "Pass", @@ -1520,13 +1520,13 @@ Object { "Type": "Pass", }, "assignTrue__!input.x": Object { - "Next": "1__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEquals: inp", + "Next": "1__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringEquals: in", "Result": true, "ResultPath": "$.heap71", "Type": "Pass", }, - "assignTrue__\\"a\\" != \\"a\\"": Object { - "Next": "input.v != \\"val\\"", + "assignTrue__\\"a\\" !== \\"a\\"": Object { + "Next": "input.v !== \\"val\\"", "Result": true, "ResultPath": "$.heap4", "Type": "Pass", @@ -1573,8 +1573,8 @@ Object { "ResultPath": "$.heap66", "Type": "Pass", }, - "assignTrue__\\"val2\\" != input.v": Object { - "Next": "input.v != input.v", + "assignTrue__\\"val2\\" !== input.v": Object { + "Next": "input.v !== input.v", "Result": true, "ResultPath": "$.heap6", "Type": "Pass", @@ -1591,8 +1591,8 @@ Object { "ResultPath": "$.heap14", "Type": "Pass", }, - "assignTrue__\\"val2\\" == input.v": Object { - "Next": "input.v == input.v", + "assignTrue__\\"val2\\" === input.v": Object { + "Next": "input.v === input.v", "Result": true, "ResultPath": "$.heap2", "Type": "Pass", @@ -1609,8 +1609,8 @@ Object { "ResultPath": "$.heap22", "Type": "Pass", }, - "assignTrue__1 != 1": Object { - "Next": "input.n != 2", + "assignTrue__1 !== 1": Object { + "Next": "input.n !== 2", "Result": true, "ResultPath": "$.heap28", "Type": "Pass", @@ -1627,8 +1627,8 @@ Object { "ResultPath": "$.heap36", "Type": "Pass", }, - "assignTrue__1 == 1": Object { - "Next": "input.n == 2", + "assignTrue__1 === 1": Object { + "Next": "input.n === 2", "Result": true, "ResultPath": "$.heap24", "Type": "Pass", @@ -1645,8 +1645,8 @@ Object { "ResultPath": "$.heap44", "Type": "Pass", }, - "assignTrue__3 != input.n": Object { - "Next": "input.n != input.n", + "assignTrue__3 !== input.n": Object { + "Next": "input.n !== input.n", "Result": true, "ResultPath": "$.heap30", "Type": "Pass", @@ -1663,8 +1663,8 @@ Object { "ResultPath": "$.heap38", "Type": "Pass", }, - "assignTrue__3 == input.n": Object { - "Next": "input.n == input.n", + "assignTrue__3 === input.n": Object { + "Next": "input.n === input.n", "Result": true, "ResultPath": "$.heap26", "Type": "Pass", @@ -1681,49 +1681,49 @@ Object { "ResultPath": "$.heap46", "Type": "Pass", }, - "assignTrue__false != input.a": Object { - "Next": "input.a != input.a", + "assignTrue__false !== input.a": Object { + "Next": "input.a !== input.a", "Result": true, "ResultPath": "$.heap54", "Type": "Pass", }, - "assignTrue__false == input.a": Object { - "Next": "input.a == input.a", + "assignTrue__false === input.a": Object { + "Next": "input.a === input.a", "Result": true, "ResultPath": "$.heap50", "Type": "Pass", }, - "assignTrue__input.a != input.a": Object { - "Next": "null == null", + "assignTrue__input.a !== input.a": Object { + "Next": "null === null", "Result": true, "ResultPath": "$.heap55", "Type": "Pass", }, - "assignTrue__input.a != true": Object { - "Next": "false != input.a", + "assignTrue__input.a !== true": Object { + "Next": "false !== input.a", "Result": true, "ResultPath": "$.heap53", "Type": "Pass", }, - "assignTrue__input.a == input.a": Object { - "Next": "true != true", + "assignTrue__input.a === input.a": Object { + "Next": "true !== true", "Result": true, "ResultPath": "$.heap51", "Type": "Pass", }, - "assignTrue__input.a == true": Object { - "Next": "false == input.a", + "assignTrue__input.a === true": Object { + "Next": "false === input.a", "Result": true, "ResultPath": "$.heap49", "Type": "Pass", }, - "assignTrue__input.n != 2": Object { - "Next": "3 != input.n", + "assignTrue__input.n !== 2": Object { + "Next": "3 !== input.n", "Result": true, "ResultPath": "$.heap29", "Type": "Pass", }, - "assignTrue__input.n != input.n": Object { + "assignTrue__input.n !== input.n": Object { "Next": "1 < 1", "Result": true, "ResultPath": "$.heap31", @@ -1753,14 +1753,14 @@ Object { "ResultPath": "$.heap39", "Type": "Pass", }, - "assignTrue__input.n == 2": Object { - "Next": "3 == input.n", + "assignTrue__input.n === 2": Object { + "Next": "3 === input.n", "Result": true, "ResultPath": "$.heap25", "Type": "Pass", }, - "assignTrue__input.n == input.n": Object { - "Next": "1 != 1", + "assignTrue__input.n === input.n": Object { + "Next": "1 !== 1", "Result": true, "ResultPath": "$.heap27", "Type": "Pass", @@ -1784,48 +1784,48 @@ Object { "Type": "Pass", }, "assignTrue__input.n >= input.n": Object { - "Next": "true == true", + "Next": "true === true", "Result": true, "ResultPath": "$.heap47", "Type": "Pass", }, - "assignTrue__input.nv != input.nv": Object { + "assignTrue__input.nv !== input.nv": Object { "Next": "\\"a\\" in {a: \\"val\\"}", "Result": true, "ResultPath": "$.heap63", "Type": "Pass", }, - "assignTrue__input.nv != null": Object { - "Next": "input.v != input.nv", + "assignTrue__input.nv !== null": Object { + "Next": "input.v !== input.nv", "Result": true, "ResultPath": "$.heap61", "Type": "Pass", }, - "assignTrue__input.nv == input.nv": Object { - "Next": "null != null", + "assignTrue__input.nv === input.nv": Object { + "Next": "null !== null", "Result": true, "ResultPath": "$.heap59", "Type": "Pass", }, - "assignTrue__input.nv == null": Object { - "Next": "input.v == input.nv", + "assignTrue__input.nv === null": Object { + "Next": "input.v === input.nv", "Result": true, "ResultPath": "$.heap57", "Type": "Pass", }, - "assignTrue__input.v != \\"val\\"": Object { - "Next": "\\"val2\\" != input.v", + "assignTrue__input.v !== \\"val\\"": Object { + "Next": "\\"val2\\" !== input.v", "Result": true, "ResultPath": "$.heap5", "Type": "Pass", }, - "assignTrue__input.v != input.nv": Object { - "Next": "input.nv != input.nv", + "assignTrue__input.v !== input.nv": Object { + "Next": "input.nv !== input.nv", "Result": true, "ResultPath": "$.heap62", "Type": "Pass", }, - "assignTrue__input.v != input.v": Object { + "assignTrue__input.v !== input.v": Object { "Next": "\\"a\\" < \\"a\\"", "Result": true, "ResultPath": "$.heap7", @@ -1855,20 +1855,20 @@ Object { "ResultPath": "$.heap15", "Type": "Pass", }, - "assignTrue__input.v == \\"val\\"": Object { - "Next": "\\"val2\\" == input.v", + "assignTrue__input.v === \\"val\\"": Object { + "Next": "\\"val2\\" === input.v", "Result": true, "ResultPath": "$.heap1", "Type": "Pass", }, - "assignTrue__input.v == input.nv": Object { - "Next": "input.nv == input.nv", + "assignTrue__input.v === input.nv": Object { + "Next": "input.nv === input.nv", "Result": true, "ResultPath": "$.heap58", "Type": "Pass", }, - "assignTrue__input.v == input.v": Object { - "Next": "\\"a\\" != \\"a\\"", + "assignTrue__input.v === input.v": Object { + "Next": "\\"a\\" !== \\"a\\"", "Result": true, "ResultPath": "$.heap3", "Type": "Pass", @@ -1892,45 +1892,45 @@ Object { "Type": "Pass", }, "assignTrue__input.v >= input.v": Object { - "Next": "1 == 1", + "Next": "1 === 1", "Result": true, "ResultPath": "$.heap23", "Type": "Pass", }, - "assignTrue__null != null": Object { - "Next": "input.nv != null", + "assignTrue__null !== null": Object { + "Next": "input.nv !== null", "Result": true, "ResultPath": "$.heap60", "Type": "Pass", }, - "assignTrue__null == null": Object { - "Next": "input.nv == null", + "assignTrue__null === null": Object { + "Next": "input.nv === null", "Result": true, "ResultPath": "$.heap56", "Type": "Pass", }, - "assignTrue__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEq": Object { - "Next": "input.v == \\"val\\"", + "assignTrue__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringE": Object { + "Next": "input.v === \\"val\\"", "Result": true, "ResultPath": "$.heap0", "Type": "Pass", }, - "assignTrue__true != true": Object { - "Next": "input.a != true", + "assignTrue__true !== true": Object { + "Next": "input.a !== true", "Result": true, "ResultPath": "$.heap52", "Type": "Pass", }, - "assignTrue__true == true": Object { - "Next": "input.a == true", + "assignTrue__true === true": Object { + "Next": "input.a === true", "Result": true, "ResultPath": "$.heap48", "Type": "Pass", }, - "false != input.a": Object { + "false !== input.a": Object { "Choices": Array [ Object { - "Next": "assignTrue__false != input.a", + "Next": "assignTrue__false !== input.a", "Not": Object { "And": Array [ Object { @@ -1953,10 +1953,10 @@ Object { }, }, ], - "Default": "assignFalse__false != input.a", + "Default": "assignFalse__false !== input.a", "Type": "Choice", }, - "false == input.a": Object { + "false === input.a": Object { "Choices": Array [ Object { "And": Array [ @@ -1977,16 +1977,16 @@ Object { ], }, ], - "Next": "assignTrue__false == input.a", + "Next": "assignTrue__false === input.a", }, ], - "Default": "assignFalse__false == input.a", + "Default": "assignFalse__false === input.a", "Type": "Choice", }, - "input.a != input.a": Object { + "input.a !== input.a": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.a != input.a", + "Next": "assignTrue__input.a !== input.a", "Not": Object { "And": Array [ Object { @@ -2049,13 +2049,13 @@ Object { }, }, ], - "Default": "assignFalse__input.a != input.a", + "Default": "assignFalse__input.a !== input.a", "Type": "Choice", }, - "input.a != true": Object { + "input.a !== true": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.a != true", + "Next": "assignTrue__input.a !== true", "Not": Object { "And": Array [ Object { @@ -2078,10 +2078,10 @@ Object { }, }, ], - "Default": "assignFalse__input.a != true", + "Default": "assignFalse__input.a !== true", "Type": "Choice", }, - "input.a == input.a": Object { + "input.a === input.a": Object { "Choices": Array [ Object { "And": Array [ @@ -2142,13 +2142,13 @@ Object { ], }, ], - "Next": "assignTrue__input.a == input.a", + "Next": "assignTrue__input.a === input.a", }, ], - "Default": "assignFalse__input.a == input.a", + "Default": "assignFalse__input.a === input.a", "Type": "Choice", }, - "input.a == true": Object { + "input.a === true": Object { "Choices": Array [ Object { "And": Array [ @@ -2169,16 +2169,16 @@ Object { ], }, ], - "Next": "assignTrue__input.a == true", + "Next": "assignTrue__input.a === true", }, ], - "Default": "assignFalse__input.a == true", + "Default": "assignFalse__input.a === true", "Type": "Choice", }, - "input.n != 2": Object { + "input.n !== 2": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.n != 2", + "Next": "assignTrue__input.n !== 2", "Not": Object { "And": Array [ Object { @@ -2201,13 +2201,13 @@ Object { }, }, ], - "Default": "assignFalse__input.n != 2", + "Default": "assignFalse__input.n !== 2", "Type": "Choice", }, - "input.n != input.n": Object { + "input.n !== input.n": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.n != input.n", + "Next": "assignTrue__input.n !== input.n", "Not": Object { "And": Array [ Object { @@ -2270,7 +2270,7 @@ Object { }, }, ], - "Default": "assignFalse__input.n != input.n", + "Default": "assignFalse__input.n !== input.n", "Type": "Choice", }, "input.n < 3": Object { @@ -2437,7 +2437,7 @@ Object { "Default": "assignFalse__input.n <= input.n", "Type": "Choice", }, - "input.n == 2": Object { + "input.n === 2": Object { "Choices": Array [ Object { "And": Array [ @@ -2458,13 +2458,13 @@ Object { ], }, ], - "Next": "assignTrue__input.n == 2", + "Next": "assignTrue__input.n === 2", }, ], - "Default": "assignFalse__input.n == 2", + "Default": "assignFalse__input.n === 2", "Type": "Choice", }, - "input.n == input.n": Object { + "input.n === input.n": Object { "Choices": Array [ Object { "And": Array [ @@ -2525,10 +2525,10 @@ Object { ], }, ], - "Next": "assignTrue__input.n == input.n", + "Next": "assignTrue__input.n === input.n", }, ], - "Default": "assignFalse__input.n == input.n", + "Default": "assignFalse__input.n === input.n", "Type": "Choice", }, "input.n > 3": Object { @@ -2695,10 +2695,10 @@ Object { "Default": "assignFalse__input.n >= input.n", "Type": "Choice", }, - "input.nv != input.nv": Object { + "input.nv !== input.nv": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.nv != input.nv", + "Next": "assignTrue__input.nv !== input.nv", "Not": Object { "And": Array [ Object { @@ -2761,13 +2761,13 @@ Object { }, }, ], - "Default": "assignFalse__input.nv != input.nv", + "Default": "assignFalse__input.nv !== input.nv", "Type": "Choice", }, - "input.nv != null": Object { + "input.nv !== null": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.nv != null", + "Next": "assignTrue__input.nv !== null", "Not": Object { "And": Array [ Object { @@ -2830,10 +2830,10 @@ Object { }, }, ], - "Default": "assignFalse__input.nv != null", + "Default": "assignFalse__input.nv !== null", "Type": "Choice", }, - "input.nv == input.nv": Object { + "input.nv === input.nv": Object { "Choices": Array [ Object { "And": Array [ @@ -2894,13 +2894,13 @@ Object { ], }, ], - "Next": "assignTrue__input.nv == input.nv", + "Next": "assignTrue__input.nv === input.nv", }, ], - "Default": "assignFalse__input.nv == input.nv", + "Default": "assignFalse__input.nv === input.nv", "Type": "Choice", }, - "input.nv == null": Object { + "input.nv === null": Object { "Choices": Array [ Object { "And": Array [ @@ -2961,16 +2961,16 @@ Object { ], }, ], - "Next": "assignTrue__input.nv == null", + "Next": "assignTrue__input.nv === null", }, ], - "Default": "assignFalse__input.nv == null", + "Default": "assignFalse__input.nv === null", "Type": "Choice", }, - "input.v != \\"val\\"": Object { + "input.v !== \\"val\\"": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.v != \\"val\\"", + "Next": "assignTrue__input.v !== \\"val\\"", "Not": Object { "And": Array [ Object { @@ -2993,13 +2993,13 @@ Object { }, }, ], - "Default": "assignFalse__input.v != \\"val\\"", + "Default": "assignFalse__input.v !== \\"val\\"", "Type": "Choice", }, - "input.v != input.nv": Object { + "input.v !== input.nv": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.v != input.nv", + "Next": "assignTrue__input.v !== input.nv", "Not": Object { "And": Array [ Object { @@ -3062,13 +3062,13 @@ Object { }, }, ], - "Default": "assignFalse__input.v != input.nv", + "Default": "assignFalse__input.v !== input.nv", "Type": "Choice", }, - "input.v != input.v": Object { + "input.v !== input.v": Object { "Choices": Array [ Object { - "Next": "assignTrue__input.v != input.v", + "Next": "assignTrue__input.v !== input.v", "Not": Object { "And": Array [ Object { @@ -3131,7 +3131,7 @@ Object { }, }, ], - "Default": "assignFalse__input.v != input.v", + "Default": "assignFalse__input.v !== input.v", "Type": "Choice", }, "input.v < \\"val2\\"": Object { @@ -3298,7 +3298,7 @@ Object { "Default": "assignFalse__input.v <= input.v", "Type": "Choice", }, - "input.v == \\"val\\"": Object { + "input.v === \\"val\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -3319,13 +3319,13 @@ Object { ], }, ], - "Next": "assignTrue__input.v == \\"val\\"", + "Next": "assignTrue__input.v === \\"val\\"", }, ], - "Default": "assignFalse__input.v == \\"val\\"", + "Default": "assignFalse__input.v === \\"val\\"", "Type": "Choice", }, - "input.v == input.nv": Object { + "input.v === input.nv": Object { "Choices": Array [ Object { "And": Array [ @@ -3386,13 +3386,13 @@ Object { ], }, ], - "Next": "assignTrue__input.v == input.nv", + "Next": "assignTrue__input.v === input.nv", }, ], - "Default": "assignFalse__input.v == input.nv", + "Default": "assignFalse__input.v === input.nv", "Type": "Choice", }, - "input.v == input.v": Object { + "input.v === input.v": Object { "Choices": Array [ Object { "And": Array [ @@ -3453,10 +3453,10 @@ Object { ], }, ], - "Next": "assignTrue__input.v == input.v", + "Next": "assignTrue__input.v === input.v", }, ], - "Default": "assignFalse__input.v == input.v", + "Default": "assignFalse__input.v === input.v", "Type": "Choice", }, "input.v > \\"val2\\"": Object { @@ -3623,10 +3623,10 @@ Object { "Default": "assignFalse__input.v >= input.v", "Type": "Choice", }, - "null != null": Object { + "null !== null": Object { "Choices": Array [ Object { - "Next": "assignTrue__null != null", + "Next": "assignTrue__null !== null", "Not": Object { "And": Array [ Object { @@ -3689,10 +3689,10 @@ Object { }, }, ], - "Default": "assignFalse__null != null", + "Default": "assignFalse__null !== null", "Type": "Choice", }, - "null == null": Object { + "null === null": Object { "Choices": Array [ Object { "And": Array [ @@ -3753,43 +3753,43 @@ Object { ], }, ], - "Next": "assignTrue__null == null", + "Next": "assignTrue__null === null", }, ], - "Default": "assignFalse__null == null", + "Default": "assignFalse__null === null", "Type": "Choice", }, - "return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEquals: input.": Object { + "return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringEquals: input": Object { "Choices": Array [ Object { "IsNull": false, - "Next": "assignTrue__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringEq", + "Next": "assignTrue__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarStringE", "Variable": "$$.Execution.Id", }, ], - "Default": "assignFalse__return {constantStringEquals: \\"a\\" == \\"a\\", constantToVarStringE", + "Default": "assignFalse__return {constantStringEquals: \\"a\\" === \\"a\\", constantToVarString", "Type": "Choice", }, - "true != true": Object { + "true !== true": Object { "Choices": Array [ Object { "IsNull": true, - "Next": "assignTrue__true != true", + "Next": "assignTrue__true !== true", "Variable": "$$.Execution.Id", }, ], - "Default": "assignFalse__true != true", + "Default": "assignFalse__true !== true", "Type": "Choice", }, - "true == true": Object { + "true === true": Object { "Choices": Array [ Object { "IsNull": false, - "Next": "assignTrue__true == true", + "Next": "assignTrue__true === true", "Variable": "$$.Execution.Id", }, ], - "Default": "assignFalse__true == true", + "Default": "assignFalse__true === true", "Type": "Choice", }, }, @@ -5592,7 +5592,7 @@ Object { "States": Object { "1__a = \`a1\`": Object { "InputPath": "$.heap0.string", - "Next": "if(a != \\"111\\")", + "Next": "if(a !== \\"111\\")", "ResultPath": "$.a", "Type": "Pass", }, @@ -5603,7 +5603,7 @@ Object { "Type": "Pass", }, "1__await $AWS.DynamoDB.UpdateItem({Table: table, Key: {id: {S: input.id}}, ": Object { - "Next": "if(i == 3)", + "Next": "if(i === 3)", "Parameters": Object { "ExpressionAttributeValues": Object { ":inc": Object { @@ -5702,14 +5702,14 @@ Object { }, "i": Object { "InputPath": "$.heap4[0]", - "Next": "if(i == 1)", + "Next": "if(i === 1)", "ResultPath": "$.i", "Type": "Pass", }, - "if(a != \\"111\\")": Object { + "if(a !== \\"111\\")": Object { "Choices": Array [ Object { - "Next": "if(a == \\"11121\\")", + "Next": "if(a === \\"11121\\")", "Not": Object { "And": Array [ Object { @@ -5735,7 +5735,7 @@ Object { "Default": "a = \`a2\`", "Type": "Choice", }, - "if(a == \\"11121\\")": Object { + "if(a === \\"11121\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -5762,7 +5762,7 @@ Object { "Default": "while (true)", "Type": "Choice", }, - "if(i == 1)": Object { + "if(i === 1)": Object { "Choices": Array [ Object { "And": Array [ @@ -5789,7 +5789,7 @@ Object { "Default": "await $AWS.DynamoDB.UpdateItem({Table: table, Key: {id: {S: input.id}}, Upd", "Type": "Choice", }, - "if(i == 3)": Object { + "if(i === 3)": Object { "Choices": Array [ Object { "And": Array [ @@ -6403,7 +6403,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "$SFN.waitFor(1)": Object { - "Next": "return itemKey == \`hikey\`", + "Next": "return itemKey === \`hikey\`", "Seconds": 1, "Type": "Wait", }, @@ -6419,13 +6419,13 @@ Object { "ResultPath": "$.arr2", "Type": "Pass", }, - "1__return itemKey == \`hikey\`": Object { + "1__return itemKey === \`hikey\`": Object { "InputPath": "$.heap3", "Next": "handleResult__arr1 = arr.filter(function({value})).filter(function({value})", "ResultPath": "$.heap1", "Type": "Pass", }, - "1__return itemKey == \`hikey\` 1": Object { + "1__return itemKey === \`hikey\` 1": Object { "Choices": Array [ Object { "And": Array [ @@ -6486,13 +6486,13 @@ Object { ], }, ], - "Next": "assignTrue__1__return itemKey == \`hikey\` 1", + "Next": "assignTrue__1__return itemKey === \`hikey\` 1", }, ], - "Default": "assignFalse__1__return itemKey == \`hikey\` 1", + "Default": "assignFalse__1__return itemKey === \`hikey\` 1", "Type": "Choice", }, - "1__return x <= index || first == x": Object { + "1__return x <= index || first === x": Object { "InputPath": "$.heap7", "Next": "handleResult__[4, 3, 2, 1].filter(function(x, index, [first]))", "ResultPath": "$.heap6", @@ -6516,7 +6516,7 @@ Object { }, "[ first ]": Object { "InputPath": "$.heap4[0]", - "Next": "return x <= index || first == x", + "Next": "return x <= index || first === x", "ResultPath": "$.first", "Type": "Pass", }, @@ -6564,26 +6564,26 @@ Object { "ResultPath": "$.heap4", "Type": "Pass", }, - "assignFalse__1__return itemKey == \`hikey\` 1": Object { - "Next": "1__return itemKey == \`hikey\`", + "assignFalse__1__return itemKey === \`hikey\` 1": Object { + "Next": "1__return itemKey === \`hikey\`", "Result": false, "ResultPath": "$.heap3", "Type": "Pass", }, - "assignFalse__return x <= index || first == x": Object { - "Next": "1__return x <= index || first == x", + "assignFalse__return x <= index || first === x": Object { + "Next": "1__return x <= index || first === x", "Result": false, "ResultPath": "$.heap7", "Type": "Pass", }, - "assignTrue__1__return itemKey == \`hikey\` 1": Object { - "Next": "1__return itemKey == \`hikey\`", + "assignTrue__1__return itemKey === \`hikey\` 1": Object { + "Next": "1__return itemKey === \`hikey\`", "Result": true, "ResultPath": "$.heap3", "Type": "Pass", }, - "assignTrue__return x <= index || first == x": Object { - "Next": "1__return x <= index || first == x", + "assignTrue__return x <= index || first === x": Object { + "Next": "1__return x <= index || first === x", "Result": true, "ResultPath": "$.heap7", "Type": "Pass", @@ -6820,18 +6820,18 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "return itemKey == \`hikey\`": Object { - "Next": "1__return itemKey == \`hikey\` 1", + "return itemKey === \`hikey\`": Object { + "Next": "1__return itemKey === \`hikey\` 1", "Parameters": Object { "string.$": "States.Format('hi{}',$.key)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "return x <= index || first == x": Object { + "return x <= index || first === x": Object { "Choices": Array [ Object { - "Next": "assignTrue__return x <= index || first == x", + "Next": "assignTrue__return x <= index || first === x", "Or": Array [ Object { "And": Array [ @@ -6944,7 +6944,7 @@ Object { ], }, ], - "Default": "assignFalse__return x <= index || first == x", + "Default": "assignFalse__return x <= index || first === x", "Type": "Choice", }, "return {arr1: arr1, arr2: arr2}": Object { @@ -7014,13 +7014,13 @@ Object { }, "1__c = \`c1\`": Object { "InputPath": "$.heap3.string", - "Next": "if(c == \\"1\\")", + "Next": "if(c === \\"1\\")", "ResultPath": "$.c", "Type": "Pass", }, "1__c = \`c1\` 1": Object { "InputPath": "$.heap1.string", - "Next": "if(c == \\"1\\")", + "Next": "if(c === \\"1\\")", "ResultPath": "$.c", "Type": "Pass", }, @@ -7143,7 +7143,7 @@ Object { "Type": "Pass", }, "c = \\"\\"": Object { - "Next": "if(c == \\"1\\")", + "Next": "if(c === \\"1\\")", "Result": "", "ResultPath": "$.c", "Type": "Pass", @@ -7170,7 +7170,7 @@ Object { "ResultPath": "$.arr", "Type": "Pass", }, - "if(c == \\"1\\")": Object { + "if(c === \\"1\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -7194,10 +7194,10 @@ Object { "Next": "c = \`c1\` 1", }, ], - "Default": "if(c == \\"111\\")", + "Default": "if(c === \\"111\\")", "Type": "Choice", }, - "if(c == \\"111\\")": Object { + "if(c === \\"111\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -7325,13 +7325,13 @@ Object { }, "assignValue__i": Object { "InputPath": "$.heap1[0].item", - "Next": "if(i == \\"2\\")", + "Next": "if(i === \\"2\\")", "ResultPath": "$.0__i", "Type": "Pass", }, "assignValue__i 1": Object { "InputPath": "$.heap3[0].item", - "Next": "if(i != \\"2\\")", + "Next": "if(i !== \\"2\\")", "ResultPath": "$.0__i", "Type": "Pass", }, @@ -7400,11 +7400,11 @@ Object { }, "i 2": Object { "InputPath": "$.heap4[0]", - "Next": "if(i == 2)", + "Next": "if(i === 2)", "ResultPath": "$.i", "Type": "Pass", }, - "if(i != \\"2\\")": Object { + "if(i !== \\"2\\")": Object { "Choices": Array [ Object { "Next": "tail__for(i in input.arr) 1", @@ -7433,7 +7433,7 @@ Object { "Default": "a = \`ani\` 1", "Type": "Choice", }, - "if(i == \\"2\\")": Object { + "if(i === \\"2\\")": Object { "Choices": Array [ Object { "And": Array [ @@ -7460,7 +7460,7 @@ Object { "Default": "a = \`ani\`", "Type": "Choice", }, - "if(i == 2)": Object { + "if(i === 2)": Object { "Choices": Array [ Object { "And": Array [ @@ -8446,23 +8446,23 @@ Object { }, "i": Object { "InputPath": "$.heap3[0]", - "Next": "if(i == 3)", + "Next": "if(i === 3)", "ResultPath": "$.i", "Type": "Pass", }, "i 1": Object { "InputPath": "$.heap7[0]", - "Next": "if(i == 3) 1", + "Next": "if(i === 3) 1", "ResultPath": "$.i", "Type": "Pass", }, "i 2": Object { "InputPath": "$.heap12[0]", - "Next": "if(i == 3) 2", + "Next": "if(i === 3) 2", "ResultPath": "$.i", "Type": "Pass", }, - "if(i == 3)": Object { + "if(i === 3)": Object { "Choices": Array [ Object { "And": Array [ @@ -8489,7 +8489,7 @@ Object { "Default": "tail__for(i of [1, 2, 3])", "Type": "Choice", }, - "if(i == 3) 1": Object { + "if(i === 3) 1": Object { "Choices": Array [ Object { "And": Array [ @@ -8516,7 +8516,7 @@ Object { "Default": "tail__for(i of input.arr)", "Type": "Choice", }, - "if(i == 3) 2": Object { + "if(i === 3) 2": Object { "Choices": Array [ Object { "And": Array [ @@ -11902,7 +11902,7 @@ exports[`typeof 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input": Object { + "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu": Object { "End": true, "Parameters": Object { "arrType.$": "$.heap12", @@ -11918,7 +11918,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input 1": Object { + "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu 1": Object { "Choices": Array [ Object { "And": Array [ @@ -11939,13 +11939,13 @@ Object { ], }, ], - "Next": "assignTrue__1__return {isString: typeof input.str == \\"string\\", stringType: ", + "Next": "assignTrue__1__return {isString: typeof input.str === \\"string\\", stringType:", }, ], - "Default": "assignFalse__1__return {isString: typeof input.str == \\"string\\", stringType:", + "Default": "assignFalse__1__return {isString: typeof input.str === \\"string\\", stringType", "Type": "Choice", }, - "1__typeof input.bool == \\"boolean\\"": Object { + "1__typeof input.bool === \\"boolean\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -11966,13 +11966,13 @@ Object { ], }, ], - "Next": "assignTrue__1__typeof input.bool == \\"boolean\\"", + "Next": "assignTrue__1__typeof input.bool === \\"boolean\\"", }, ], - "Default": "assignFalse__1__typeof input.bool == \\"boolean\\"", + "Default": "assignFalse__1__typeof input.bool === \\"boolean\\"", "Type": "Choice", }, - "1__typeof input.num == \\"number\\"": Object { + "1__typeof input.num === \\"number\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -11993,13 +11993,13 @@ Object { ], }, ], - "Next": "assignTrue__1__typeof input.num == \\"number\\"", + "Next": "assignTrue__1__typeof input.num === \\"number\\"", }, ], - "Default": "assignFalse__1__typeof input.num == \\"number\\"", + "Default": "assignFalse__1__typeof input.num === \\"number\\"", "Type": "Choice", }, - "1__typeof input.obj == \\"object\\"": Object { + "1__typeof input.obj === \\"object\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -12020,14 +12020,14 @@ Object { ], }, ], - "Next": "assignTrue__1__typeof input.obj == \\"object\\"", + "Next": "assignTrue__1__typeof input.obj === \\"object\\"", }, ], - "Default": "assignFalse__1__typeof input.obj == \\"object\\"", + "Default": "assignFalse__1__typeof input.obj === \\"object\\"", "Type": "Choice", }, "Initialize Functionless Context": Object { - "Next": "return {isString: typeof input.str == \\"string\\", stringType: typeof input.st", + "Next": "return {isString: typeof input.str === \\"string\\", stringType: typeof input.s", "Parameters": Object { "fnl_context": Object { "null": null, @@ -12037,68 +12037,68 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "assignFalse__1__return {isString: typeof input.str == \\"string\\", stringType:": Object { + "assignFalse__1__return {isString: typeof input.str === \\"string\\", stringType": Object { "Next": "input.str", "Result": false, "ResultPath": "$.heap1", "Type": "Pass", }, - "assignFalse__1__typeof input.bool == \\"boolean\\"": Object { + "assignFalse__1__typeof input.bool === \\"boolean\\"": Object { "Next": "input.bool", "Result": false, "ResultPath": "$.heap4", "Type": "Pass", }, - "assignFalse__1__typeof input.num == \\"number\\"": Object { + "assignFalse__1__typeof input.num === \\"number\\"": Object { "Next": "input.num", "Result": false, "ResultPath": "$.heap7", "Type": "Pass", }, - "assignFalse__1__typeof input.obj == \\"object\\"": Object { + "assignFalse__1__typeof input.obj === \\"object\\"": Object { "Next": "input.obj", "Result": false, "ResultPath": "$.heap10", "Type": "Pass", }, - "assignTrue__1__return {isString: typeof input.str == \\"string\\", stringType: ": Object { + "assignTrue__1__return {isString: typeof input.str === \\"string\\", stringType:": Object { "Next": "input.str", "Result": true, "ResultPath": "$.heap1", "Type": "Pass", }, - "assignTrue__1__typeof input.bool == \\"boolean\\"": Object { + "assignTrue__1__typeof input.bool === \\"boolean\\"": Object { "Next": "input.bool", "Result": true, "ResultPath": "$.heap4", "Type": "Pass", }, - "assignTrue__1__typeof input.num == \\"number\\"": Object { + "assignTrue__1__typeof input.num === \\"number\\"": Object { "Next": "input.num", "Result": true, "ResultPath": "$.heap7", "Type": "Pass", }, - "assignTrue__1__typeof input.obj == \\"object\\"": Object { + "assignTrue__1__typeof input.obj === \\"object\\"": Object { "Next": "input.obj", "Result": true, "ResultPath": "$.heap10", "Type": "Pass", }, "boolean__input.arr": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input", + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu", "Result": "boolean", "ResultPath": "$.heap12", "Type": "Pass", }, "boolean__input.bool": Object { - "Next": "typeof input.num == \\"number\\"", + "Next": "typeof input.num === \\"number\\"", "Result": "boolean", "ResultPath": "$.heap5", "Type": "Pass", }, "boolean__input.num": Object { - "Next": "typeof input.obj == \\"object\\"", + "Next": "typeof input.obj === \\"object\\"", "Result": "boolean", "ResultPath": "$.heap8", "Type": "Pass", @@ -12110,31 +12110,31 @@ Object { "Type": "Pass", }, "boolean__input.str": Object { - "Next": "typeof input.bool == \\"boolean\\"", + "Next": "typeof input.bool === \\"boolean\\"", "Result": "boolean", "ResultPath": "$.heap2", "Type": "Pass", }, - "boolean__return {isString: typeof input.str == \\"string\\", stringType: typeof": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input 1", + "boolean__return {isString: typeof input.str === \\"string\\", stringType: typeo": Object { + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu 1", "Result": "boolean", "ResultPath": "$.heap0", "Type": "Pass", }, - "boolean__typeof input.bool == \\"boolean\\"": Object { - "Next": "1__typeof input.bool == \\"boolean\\"", + "boolean__typeof input.bool === \\"boolean\\"": Object { + "Next": "1__typeof input.bool === \\"boolean\\"", "Result": "boolean", "ResultPath": "$.heap3", "Type": "Pass", }, - "boolean__typeof input.num == \\"number\\"": Object { - "Next": "1__typeof input.num == \\"number\\"", + "boolean__typeof input.num === \\"number\\"": Object { + "Next": "1__typeof input.num === \\"number\\"", "Result": "boolean", "ResultPath": "$.heap6", "Type": "Pass", }, - "boolean__typeof input.obj == \\"object\\"": Object { - "Next": "1__typeof input.obj == \\"object\\"", + "boolean__typeof input.obj === \\"object\\"": Object { + "Next": "1__typeof input.obj === \\"object\\"", "Result": "boolean", "ResultPath": "$.heap9", "Type": "Pass", @@ -12390,19 +12390,19 @@ Object { "Type": "Choice", }, "number__input.arr": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input", + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu", "Result": "number", "ResultPath": "$.heap12", "Type": "Pass", }, "number__input.bool": Object { - "Next": "typeof input.num == \\"number\\"", + "Next": "typeof input.num === \\"number\\"", "Result": "number", "ResultPath": "$.heap5", "Type": "Pass", }, "number__input.num": Object { - "Next": "typeof input.obj == \\"object\\"", + "Next": "typeof input.obj === \\"object\\"", "Result": "number", "ResultPath": "$.heap8", "Type": "Pass", @@ -12414,49 +12414,49 @@ Object { "Type": "Pass", }, "number__input.str": Object { - "Next": "typeof input.bool == \\"boolean\\"", + "Next": "typeof input.bool === \\"boolean\\"", "Result": "number", "ResultPath": "$.heap2", "Type": "Pass", }, - "number__return {isString: typeof input.str == \\"string\\", stringType: typeof ": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input 1", + "number__return {isString: typeof input.str === \\"string\\", stringType: typeof": Object { + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu 1", "Result": "number", "ResultPath": "$.heap0", "Type": "Pass", }, - "number__typeof input.bool == \\"boolean\\"": Object { - "Next": "1__typeof input.bool == \\"boolean\\"", + "number__typeof input.bool === \\"boolean\\"": Object { + "Next": "1__typeof input.bool === \\"boolean\\"", "Result": "number", "ResultPath": "$.heap3", "Type": "Pass", }, - "number__typeof input.num == \\"number\\"": Object { - "Next": "1__typeof input.num == \\"number\\"", + "number__typeof input.num === \\"number\\"": Object { + "Next": "1__typeof input.num === \\"number\\"", "Result": "number", "ResultPath": "$.heap6", "Type": "Pass", }, - "number__typeof input.obj == \\"object\\"": Object { - "Next": "1__typeof input.obj == \\"object\\"", + "number__typeof input.obj === \\"object\\"": Object { + "Next": "1__typeof input.obj === \\"object\\"", "Result": "number", "ResultPath": "$.heap9", "Type": "Pass", }, "object__input.arr": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input", + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu", "Result": "object", "ResultPath": "$.heap12", "Type": "Pass", }, "object__input.bool": Object { - "Next": "typeof input.num == \\"number\\"", + "Next": "typeof input.num === \\"number\\"", "Result": "object", "ResultPath": "$.heap5", "Type": "Pass", }, "object__input.num": Object { - "Next": "typeof input.obj == \\"object\\"", + "Next": "typeof input.obj === \\"object\\"", "Result": "object", "ResultPath": "$.heap8", "Type": "Pass", @@ -12468,36 +12468,36 @@ Object { "Type": "Pass", }, "object__input.str": Object { - "Next": "typeof input.bool == \\"boolean\\"", + "Next": "typeof input.bool === \\"boolean\\"", "Result": "object", "ResultPath": "$.heap2", "Type": "Pass", }, - "object__return {isString: typeof input.str == \\"string\\", stringType: typeof ": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input 1", + "object__return {isString: typeof input.str === \\"string\\", stringType: typeof": Object { + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu 1", "Result": "object", "ResultPath": "$.heap0", "Type": "Pass", }, - "object__typeof input.bool == \\"boolean\\"": Object { - "Next": "1__typeof input.bool == \\"boolean\\"", + "object__typeof input.bool === \\"boolean\\"": Object { + "Next": "1__typeof input.bool === \\"boolean\\"", "Result": "object", "ResultPath": "$.heap3", "Type": "Pass", }, - "object__typeof input.num == \\"number\\"": Object { - "Next": "1__typeof input.num == \\"number\\"", + "object__typeof input.num === \\"number\\"": Object { + "Next": "1__typeof input.num === \\"number\\"", "Result": "object", "ResultPath": "$.heap6", "Type": "Pass", }, - "object__typeof input.obj == \\"object\\"": Object { - "Next": "1__typeof input.obj == \\"object\\"", + "object__typeof input.obj === \\"object\\"": Object { + "Next": "1__typeof input.obj === \\"object\\"", "Result": "object", "ResultPath": "$.heap9", "Type": "Pass", }, - "return {isString: typeof input.str == \\"string\\", stringType: typeof input.st": Object { + "return {isString: typeof input.str === \\"string\\", stringType: typeof input.s": Object { "Choices": Array [ Object { "And": Array [ @@ -12510,7 +12510,7 @@ Object { "Variable": "$.input.str", }, ], - "Next": "string__return {isString: typeof input.str == \\"string\\", stringType: typeof ", + "Next": "string__return {isString: typeof input.str === \\"string\\", stringType: typeof", }, Object { "And": Array [ @@ -12523,7 +12523,7 @@ Object { "Variable": "$.input.str", }, ], - "Next": "boolean__return {isString: typeof input.str == \\"string\\", stringType: typeof", + "Next": "boolean__return {isString: typeof input.str === \\"string\\", stringType: typeo", }, Object { "And": Array [ @@ -12536,31 +12536,31 @@ Object { "Variable": "$.input.str", }, ], - "Next": "number__return {isString: typeof input.str == \\"string\\", stringType: typeof ", + "Next": "number__return {isString: typeof input.str === \\"string\\", stringType: typeof", }, Object { "IsPresent": true, - "Next": "object__return {isString: typeof input.str == \\"string\\", stringType: typeof ", + "Next": "object__return {isString: typeof input.str === \\"string\\", stringType: typeof", "Variable": "$.input.str", }, ], - "Default": "undefined__return {isString: typeof input.str == \\"string\\", stringType: type", + "Default": "undefined__return {isString: typeof input.str === \\"string\\", stringType: typ", "Type": "Choice", }, "string__input.arr": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input", + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu", "Result": "string", "ResultPath": "$.heap12", "Type": "Pass", }, "string__input.bool": Object { - "Next": "typeof input.num == \\"number\\"", + "Next": "typeof input.num === \\"number\\"", "Result": "string", "ResultPath": "$.heap5", "Type": "Pass", }, "string__input.num": Object { - "Next": "typeof input.obj == \\"object\\"", + "Next": "typeof input.obj === \\"object\\"", "Result": "string", "ResultPath": "$.heap8", "Type": "Pass", @@ -12572,36 +12572,36 @@ Object { "Type": "Pass", }, "string__input.str": Object { - "Next": "typeof input.bool == \\"boolean\\"", + "Next": "typeof input.bool === \\"boolean\\"", "Result": "string", "ResultPath": "$.heap2", "Type": "Pass", }, - "string__return {isString: typeof input.str == \\"string\\", stringType: typeof ": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input 1", + "string__return {isString: typeof input.str === \\"string\\", stringType: typeof": Object { + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu 1", "Result": "string", "ResultPath": "$.heap0", "Type": "Pass", }, - "string__typeof input.bool == \\"boolean\\"": Object { - "Next": "1__typeof input.bool == \\"boolean\\"", + "string__typeof input.bool === \\"boolean\\"": Object { + "Next": "1__typeof input.bool === \\"boolean\\"", "Result": "string", "ResultPath": "$.heap3", "Type": "Pass", }, - "string__typeof input.num == \\"number\\"": Object { - "Next": "1__typeof input.num == \\"number\\"", + "string__typeof input.num === \\"number\\"": Object { + "Next": "1__typeof input.num === \\"number\\"", "Result": "string", "ResultPath": "$.heap6", "Type": "Pass", }, - "string__typeof input.obj == \\"object\\"": Object { - "Next": "1__typeof input.obj == \\"object\\"", + "string__typeof input.obj === \\"object\\"": Object { + "Next": "1__typeof input.obj === \\"object\\"", "Result": "string", "ResultPath": "$.heap9", "Type": "Pass", }, - "typeof input.bool == \\"boolean\\"": Object { + "typeof input.bool === \\"boolean\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -12614,7 +12614,7 @@ Object { "Variable": "$.input.bool", }, ], - "Next": "string__typeof input.bool == \\"boolean\\"", + "Next": "string__typeof input.bool === \\"boolean\\"", }, Object { "And": Array [ @@ -12627,7 +12627,7 @@ Object { "Variable": "$.input.bool", }, ], - "Next": "boolean__typeof input.bool == \\"boolean\\"", + "Next": "boolean__typeof input.bool === \\"boolean\\"", }, Object { "And": Array [ @@ -12640,18 +12640,18 @@ Object { "Variable": "$.input.bool", }, ], - "Next": "number__typeof input.bool == \\"boolean\\"", + "Next": "number__typeof input.bool === \\"boolean\\"", }, Object { "IsPresent": true, - "Next": "object__typeof input.bool == \\"boolean\\"", + "Next": "object__typeof input.bool === \\"boolean\\"", "Variable": "$.input.bool", }, ], - "Default": "undefined__typeof input.bool == \\"boolean\\"", + "Default": "undefined__typeof input.bool === \\"boolean\\"", "Type": "Choice", }, - "typeof input.num == \\"number\\"": Object { + "typeof input.num === \\"number\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -12664,7 +12664,7 @@ Object { "Variable": "$.input.num", }, ], - "Next": "string__typeof input.num == \\"number\\"", + "Next": "string__typeof input.num === \\"number\\"", }, Object { "And": Array [ @@ -12677,7 +12677,7 @@ Object { "Variable": "$.input.num", }, ], - "Next": "boolean__typeof input.num == \\"number\\"", + "Next": "boolean__typeof input.num === \\"number\\"", }, Object { "And": Array [ @@ -12690,18 +12690,18 @@ Object { "Variable": "$.input.num", }, ], - "Next": "number__typeof input.num == \\"number\\"", + "Next": "number__typeof input.num === \\"number\\"", }, Object { "IsPresent": true, - "Next": "object__typeof input.num == \\"number\\"", + "Next": "object__typeof input.num === \\"number\\"", "Variable": "$.input.num", }, ], - "Default": "undefined__typeof input.num == \\"number\\"", + "Default": "undefined__typeof input.num === \\"number\\"", "Type": "Choice", }, - "typeof input.obj == \\"object\\"": Object { + "typeof input.obj === \\"object\\"": Object { "Choices": Array [ Object { "And": Array [ @@ -12714,7 +12714,7 @@ Object { "Variable": "$.input.obj", }, ], - "Next": "string__typeof input.obj == \\"object\\"", + "Next": "string__typeof input.obj === \\"object\\"", }, Object { "And": Array [ @@ -12727,7 +12727,7 @@ Object { "Variable": "$.input.obj", }, ], - "Next": "boolean__typeof input.obj == \\"object\\"", + "Next": "boolean__typeof input.obj === \\"object\\"", }, Object { "And": Array [ @@ -12740,31 +12740,31 @@ Object { "Variable": "$.input.obj", }, ], - "Next": "number__typeof input.obj == \\"object\\"", + "Next": "number__typeof input.obj === \\"object\\"", }, Object { "IsPresent": true, - "Next": "object__typeof input.obj == \\"object\\"", + "Next": "object__typeof input.obj === \\"object\\"", "Variable": "$.input.obj", }, ], - "Default": "undefined__typeof input.obj == \\"object\\"", + "Default": "undefined__typeof input.obj === \\"object\\"", "Type": "Choice", }, "undefined__input.arr": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input", + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu", "Result": "undefined", "ResultPath": "$.heap12", "Type": "Pass", }, "undefined__input.bool": Object { - "Next": "typeof input.num == \\"number\\"", + "Next": "typeof input.num === \\"number\\"", "Result": "undefined", "ResultPath": "$.heap5", "Type": "Pass", }, "undefined__input.num": Object { - "Next": "typeof input.obj == \\"object\\"", + "Next": "typeof input.obj === \\"object\\"", "Result": "undefined", "ResultPath": "$.heap8", "Type": "Pass", @@ -12776,31 +12776,31 @@ Object { "Type": "Pass", }, "undefined__input.str": Object { - "Next": "typeof input.bool == \\"boolean\\"", + "Next": "typeof input.bool === \\"boolean\\"", "Result": "undefined", "ResultPath": "$.heap2", "Type": "Pass", }, - "undefined__return {isString: typeof input.str == \\"string\\", stringType: type": Object { - "Next": "1__return {isString: typeof input.str == \\"string\\", stringType: typeof input 1", + "undefined__return {isString: typeof input.str === \\"string\\", stringType: typ": Object { + "Next": "1__return {isString: typeof input.str === \\"string\\", stringType: typeof inpu 1", "Result": "undefined", "ResultPath": "$.heap0", "Type": "Pass", }, - "undefined__typeof input.bool == \\"boolean\\"": Object { - "Next": "1__typeof input.bool == \\"boolean\\"", + "undefined__typeof input.bool === \\"boolean\\"": Object { + "Next": "1__typeof input.bool === \\"boolean\\"", "Result": "undefined", "ResultPath": "$.heap3", "Type": "Pass", }, - "undefined__typeof input.num == \\"number\\"": Object { - "Next": "1__typeof input.num == \\"number\\"", + "undefined__typeof input.num === \\"number\\"": Object { + "Next": "1__typeof input.num === \\"number\\"", "Result": "undefined", "ResultPath": "$.heap6", "Type": "Pass", }, - "undefined__typeof input.obj == \\"object\\"": Object { - "Next": "1__typeof input.obj == \\"object\\"", + "undefined__typeof input.obj === \\"object\\"": Object { + "Next": "1__typeof input.obj === \\"object\\"", "Result": "undefined", "ResultPath": "$.heap9", "Type": "Pass", From d0bcba1d3694273a5a7c3affcf39a68a7551c2bd Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 6 Aug 2022 22:49:27 -0700 Subject: [PATCH 025/107] chore: feedback --- src/appsync.ts | 8 ++------ src/compile.ts | 22 +++------------------- src/event-bridge/event-pattern/synth.ts | 4 ++-- src/expression.ts | 4 ++-- src/step-function.ts | 1 + src/vtl.ts | 14 +++++--------- 6 files changed, 15 insertions(+), 38 deletions(-) diff --git a/src/appsync.ts b/src/appsync.ts index 8e7c2fbd..605c920f 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -6,11 +6,7 @@ import { ToAttributeMap, ToAttributeValue, } from "typesafe-dynamodb/lib/attribute-value"; -import { - FunctionLike, - VariableDeclKind, - VariableDeclList, -} from "./declaration"; +import { FunctionLike, VariableDeclList } from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import { Argument, @@ -488,7 +484,7 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { return node.declList.decls.map( (decl) => new VariableStmt( - new VariableDeclList([decl], VariableDeclKind.Const) + new VariableDeclList([decl], node.declList.varKind) ) ); } else if (isBinaryExpr(node)) { diff --git a/src/compile.ts b/src/compile.ts index ba26c671..530b035f 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -555,7 +555,7 @@ export function compile( toExpr(node.left, scope), ts.factory.createStringLiteral( assertDefined( - getBinaryOperator(node.operatorToken), + ts.tokenToString(node.operatorToken.kind) as BinaryOp, `Binary operator token cannot be stringified: ${node.operatorToken.kind}` ) ), @@ -565,7 +565,7 @@ export function compile( return newExpr(NodeKind.UnaryExpr, [ ts.factory.createStringLiteral( assertDefined( - getPrefixUnaryOperator(node.operator), + ts.tokenToString(node.operator) as UnaryOp, `Unary operator token cannot be stringified: ${node.operator}` ) ), @@ -575,7 +575,7 @@ export function compile( return newExpr(NodeKind.PostfixUnaryExpr, [ ts.factory.createStringLiteral( assertDefined( - getPostfixUnaryOperator(node.operator), + ts.tokenToString(node.operator) as PostfixUnaryOp, `Unary operator token cannot be stringified: ${node.operator}` ) ), @@ -927,22 +927,6 @@ export function compile( }; } -function getBinaryOperator(op: ts.BinaryOperatorToken): BinaryOp | undefined { - return ts.tokenToString(op.kind) as BinaryOp; -} - -function getPrefixUnaryOperator( - op: ts.PrefixUnaryOperator -): UnaryOp | undefined { - return ts.tokenToString(op) as UnaryOp | undefined; -} - -function getPostfixUnaryOperator( - op: ts.PostfixUnaryOperator -): PostfixUnaryOp | undefined { - return ts.tokenToString(op) as PostfixUnaryOp | undefined; -} - function param(name: string, spread: boolean = false) { return ts.factory.createParameterDeclaration( undefined, diff --git a/src/event-bridge/event-pattern/synth.ts b/src/event-bridge/event-pattern/synth.ts index 8f23d913..4d337bbe 100644 --- a/src/event-bridge/event-pattern/synth.ts +++ b/src/event-bridge/event-pattern/synth.ts @@ -129,8 +129,8 @@ export const synthesizePatternDocument = ( ): PatternDocument => { const func = validateFunctionLike(predicate, "synthesizeEventPattern"); - func.parameters.forEach((param) => { - if (param.isRest) { + func.parameters.forEach(({ isRest }) => { + if (isRest) { throw new SynthError( ErrorCodes.Unsupported_Feature, `Event Bridge does not yet support rest parameters, see https://github.com/functionless/functionless/issues/391` diff --git a/src/expression.ts b/src/expression.ts index 03e0056a..5ea3dffb 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -534,14 +534,14 @@ export class YieldExpr extends BaseExpr { /** * The expression to yield (or delegate) to. */ - readonly expr: Expr, + readonly expr: Expr | undefined, /** * Is a `yield*` delegate expression. */ readonly delegate: boolean ) { super(NodeKind.YieldExpr, arguments); - this.ensure(expr, "expr", ["Expr"]); + this.ensure(expr, "expr", ["undefined", "Expr"]); this.ensure(delegate, "delegate", ["boolean"]); } } diff --git a/src/step-function.ts b/src/step-function.ts index d46753ea..fff94166 100644 --- a/src/step-function.ts +++ b/src/step-function.ts @@ -325,6 +325,7 @@ export namespace $SFN { if (callbackfn === undefined || !isFunctionLike(callbackfn)) { throw new Error("missing callbackfn in $SFN.map"); } + const callbackStates = context.evalStmt( callbackfn.body, // when a return statement is hit, end the sub-machine in the map and return the given value. diff --git a/src/vtl.ts b/src/vtl.ts index 9e8ff4f6..b46e5fa3 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -463,6 +463,9 @@ export abstract class VTL { node.args[0]?.expr, ...NodeKind.FunctionLike ); + + fn.parameters.forEach(validateParameterDecl); + const initialValue = node.args[1]; // (previousValue: string[], currentValue: string, currentIndex: number, array: string[]) @@ -1059,13 +1062,6 @@ export abstract class VTL { const next = expr.expr.expr; - if (isParameterDecl(value) && value.isRest) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - `VTL does not support rest parameters, see https://github.com/functionless/functionless/issues/391` - ); - } - /** * The variable name this iteration is expecting. * If the variable is a binding expression, create a new variable name to assign the previous value into. @@ -1116,9 +1112,9 @@ const getMapForEachArgs = (call: CallExpr) => { }; function validateParameterDecl( - decl: ParameterDecl + decl: ParameterDecl | undefined ): asserts decl is ParameterDecl & { isRest: false } { - if (isParameterDecl(decl) && decl.isRest) { + if (decl?.isRest) { throw new SynthError( ErrorCodes.Unsupported_Feature, `VTL does not support rest parameters, see https://github.com/functionless/functionless/issues/391` From 834b50668ac6d4e0f6ba67db0554b5f6bca21064 Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 6 Aug 2022 23:10:37 -0700 Subject: [PATCH 026/107] feat: handle more cases in FunctionlessAST -> TSAST --- src/expression.ts | 8 +- src/serialize-closure.ts | 171 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 172 insertions(+), 7 deletions(-) diff --git a/src/expression.ts b/src/expression.ts index 8d1438bd..e04e7c33 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -232,9 +232,9 @@ export class ElementAccessExpr extends BaseExpr { } export class Argument extends BaseExpr { - constructor(readonly expr?: Expr) { + constructor(readonly expr: Expr) { super(NodeKind.Argument, arguments); - this.ensure(expr, "element", ["undefined", "Expr"]); + this.ensure(expr, "element", ["Expr"]); } } @@ -541,14 +541,14 @@ export class YieldExpr extends BaseExpr { /** * The expression to yield (or delegate) to. */ - readonly expr: Expr | undefined, + readonly expr: Expr, /** * Is a `yield*` delegate expression. */ readonly delegate: boolean ) { super(NodeKind.YieldExpr, arguments); - this.ensure(expr, "expr", ["undefined", "Expr"]); + this.ensure(expr, "expr", ["Expr"]); this.ensure(delegate, "delegate", ["boolean"]); } } diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 843c77cc..effa060f 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,25 +1,42 @@ import ts from "typescript"; import { assertNever } from "./assert"; +import { VariableDeclKind } from "./declaration"; import { + isArgument, + isArrayBinding, isArrayLiteralExpr, isArrowFunctionExpr, + isAwaitExpr, isBigIntExpr, + isBinaryExpr, + isBindingElem, isBlockStmt, isBooleanLiteralExpr, isCallExpr, + isClassDecl, + isClassExpr, + isClassStaticBlockDecl, + isComputedPropertyNameExpr, + isConstructorDecl, isElementAccessExpr, + isExprStmt, isFunctionDecl, isFunctionExpr, isFunctionLike, + isGetAccessorDecl, isIdentifier, + isMethodDecl, isNewExpr, isNullLiteralExpr, isNumberLiteralExpr, + isObjectBinding, isObjectLiteralExpr, isOmittedExpr, isParameterDecl, isPropAccessExpr, isPropAssignExpr, + isPropDecl, + isSetAccessorDecl, isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, @@ -27,6 +44,7 @@ import { isVariableDecl, isVariableDeclList, isVariableStmt, + isYieldExpr, } from "./guards"; import { FunctionlessNode } from "./node"; import { reflect } from "./reflect"; @@ -277,6 +295,8 @@ export function serializeClosure(func: AnyFunction): string { undefined, node.args.map((arg) => serializeAST(arg) as ts.Expression) ); + } else if (isArgument(node)) { + return serializeAST(node.expr); } else if (isUndefinedLiteralExpr(node)) { return ts.factory.createIdentifier("undefined"); } else if (isNullLiteralExpr(node)) { @@ -314,6 +334,10 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createSpreadElement( serializeAST(node.expr) as ts.Expression ); + } else if (isComputedPropertyNameExpr(node)) { + return ts.factory.createComputedPropertyName( + serializeAST(node.expr) as ts.Expression + ); } else if (isOmittedExpr(node)) { return ts.factory.createOmittedExpression(); } else if (isVariableStmt(node)) { @@ -323,13 +347,154 @@ export function serializeClosure(func: AnyFunction): string { ); } else if (isVariableDeclList(node)) { return ts.factory.createVariableDeclarationList( - node.decls.map((decl) => serializeAST(decl) as ts.VariableDeclaration) + node.decls.map((decl) => serializeAST(decl) as ts.VariableDeclaration), + node.varKind === VariableDeclKind.Const + ? ts.NodeFlags.Const + : node.varKind === VariableDeclKind.Let + ? ts.NodeFlags.Let + : ts.NodeFlags.None + ); + } else if (isVariableDecl(node)) { + return ts.factory.createVariableDeclaration( + serializeAST(node.name) as ts.BindingName, + undefined, + undefined, + node.initializer + ? (serializeAST(node.initializer) as ts.Expression) + : undefined + ); + } else if (isBindingElem(node)) { + return ts.factory.createBindingElement( + node.rest + ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) + : undefined, + node.propertyName + ? (serializeAST(node.propertyName) as ts.PropertyName) + : undefined, + serializeAST(node.name) as ts.BindingName, + node.initializer + ? (serializeAST(node.initializer) as ts.Expression) + : undefined + ); + } else if (isObjectBinding(node)) { + return ts.factory.createObjectBindingPattern( + node.bindings.map( + (binding) => serializeAST(binding) as ts.BindingElement + ) + ); + } else if (isArrayBinding(node)) { + return ts.factory.createArrayBindingPattern( + node.bindings.map( + (binding) => serializeAST(binding) as ts.BindingElement + ) + ); + } else if (isClassDecl(node) || isClassExpr(node)) { + return ( + isClassDecl(node) + ? ts.factory.createClassDeclaration + : ts.factory.createClassExpression + )( + undefined, + undefined, + node.name, + undefined, + node.heritage + ? [serializeAST(node.heritage) as ts.HeritageClause] + : undefined, + node.members.map((member) => serializeAST(member) as ts.ClassElement) + ); + } else if (isClassStaticBlockDecl(node)) { + return ts.factory.createClassStaticBlockDeclaration( + undefined, + undefined, + serializeAST(node.block) as ts.Block + ); + } else if (isConstructorDecl(node)) { + return ts.factory.createConstructorDeclaration( + undefined, + undefined, + node.parameters.map( + (param) => serializeAST(param) as ts.ParameterDeclaration + ), + serializeAST(node.body) as ts.Block + ); + } else if (isPropDecl(node)) { + return ts.factory.createPropertyDeclaration( + undefined, + node.isStatic + ? [ts.factory.createModifier(ts.SyntaxKind.StaticKeyword)] + : undefined, + serializeAST(node.name) as ts.PropertyName, + undefined, + undefined, + node.initializer + ? (serializeAST(node.initializer) as ts.Expression) + : undefined + ); + } else if (isMethodDecl(node)) { + return ts.factory.createMethodDeclaration( + undefined, + node.isAsync + ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] + : undefined, + node.isAsterisk + ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) + : undefined, + serializeAST(node.name) as ts.PropertyName, + undefined, + undefined, + node.parameters.map( + (param) => serializeAST(param) as ts.ParameterDeclaration + ), + undefined, + serializeAST(node.body) as ts.Block + ); + } else if (isGetAccessorDecl(node)) { + return ts.factory.createGetAccessorDeclaration( + undefined, + undefined, + serializeAST(node.name) as ts.PropertyName, + [], + undefined, + serializeAST(node.body) as ts.Block + ); + } else if (isSetAccessorDecl(node)) { + return ts.factory.createSetAccessorDeclaration( + undefined, + undefined, + serializeAST(node.name) as ts.PropertyName, + [serializeAST(node.parameter) as ts.ParameterDeclaration], + serializeAST(node.body) as ts.Block + ); + } else if (isExprStmt(node)) { + return ts.factory.createExpressionStatement( + serializeAST(node.expr) as ts.Expression + ); + } else if (isAwaitExpr(node)) { + return ts.factory.createAwaitExpression( + serializeAST(node.expr) as ts.Expression + ); + } else if (isYieldExpr(node)) { + if (node.delegate) { + return ts.factory.createYieldExpression( + ts.factory.createToken(ts.SyntaxKind.AsteriskToken), + serializeAST(node.expr) as ts.Expression + ); + } else { + return ts.factory.createYieldExpression( + undefined, + serializeAST(node.expr) as ts.Expression + ); + } + } else if (isBinaryExpr(node)) { + return ts.factory.createBinaryExpression( + serializeAST(node.left) as ts.Expression, + ts.factory.createToken(), + serializeAST(node.right) as ts.Expression ); } else { return assertNever(node); } - - throw new Error("not yet implemented"); } } From bd6e8013de7a17ffd783fea3d6df22624579222d Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 6 Aug 2022 23:53:47 -0700 Subject: [PATCH 027/107] feat: add missing BinaryOp and organize them how Mozzila does --- src/asl.ts | 69 ++++++++++++++++++++++++++++++---- src/error-code.ts | 2 +- src/expression.ts | 94 +++++++++++++++++++++++++++++++++++++---------- src/validate.ts | 2 +- test/vtl.test.ts | 18 ++++++--- 5 files changed, 149 insertions(+), 36 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index e3957c36..1fc604a6 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -1922,10 +1922,11 @@ export class ASL { expr.op === "-" || expr.op === "++" || expr.op === "--" || - expr.op === "~" + expr.op === "~" || + expr.op === "+" ) { throw new SynthError( - ErrorCodes.Cannot_perform_arithmetic_on_variables_in_Step_Function, + ErrorCodes.Cannot_perform_arithmetic_or_bitwise_computations_on_variables_in_Step_Function, `Step Function does not support operator ${expr.op}` ); } @@ -2051,13 +2052,38 @@ export class ASL { expr.op === "-=" || expr.op === "*=" || expr.op === "/=" || - expr.op === "%=" + expr.op === "%=" || + expr.op === "&" || + expr.op === "&&=" || + expr.op === "&=" || + expr.op === "**" || + expr.op === "**=" || + expr.op === "<<" || + expr.op === "<<=" || + expr.op === ">>" || + expr.op === ">>=" || + expr.op === ">>>" || + expr.op === ">>>=" || + expr.op === "^" || + expr.op === "^=" || + expr.op === "|" || + expr.op === "|=" ) { // TODO: support string concat - https://github.com/functionless/functionless/issues/330 throw new SynthError( - ErrorCodes.Cannot_perform_arithmetic_on_variables_in_Step_Function, + ErrorCodes.Cannot_perform_arithmetic_or_bitwise_computations_on_variables_in_Step_Function, `Step Function does not support operator ${expr.op}` ); + } else if ( + expr.op === "instanceof" || + // https://github.com/functionless/functionless/issues/393 + expr.op === "??=" || + expr.op === "||=" + ) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `Step Function does not support ${expr.op} operator` + ); } assertNever(expr.op); } else if (isAwaitExpr(expr)) { @@ -3684,10 +3710,12 @@ export class ASL { expr.op === "++" || expr.op === "--" || expr.op === "-" || - expr.op === "~" + expr.op === "~" || + // https://github.com/functionless/functionless/issues/395 + expr.op === "+" ) { throw new SynthError( - ErrorCodes.Cannot_perform_arithmetic_on_variables_in_Step_Function, + ErrorCodes.Cannot_perform_arithmetic_or_bitwise_computations_on_variables_in_Step_Function, `Step Function does not support operator ${expr.op}` ); } @@ -3793,12 +3821,37 @@ export class ASL { expr.op === "-=" || expr.op === "*=" || expr.op === "/=" || - expr.op === "%=" + expr.op === "%=" || + expr.op === "&" || + expr.op === "&&=" || + expr.op === "&=" || + expr.op === "**" || + expr.op === "**=" || + expr.op === "<<" || + expr.op === "<<=" || + expr.op === ">>" || + expr.op === ">>=" || + expr.op === ">>>" || + expr.op === ">>>=" || + expr.op === "^" || + expr.op === "^=" || + expr.op === "|" || + expr.op === "|=" ) { throw new SynthError( - ErrorCodes.Cannot_perform_arithmetic_on_variables_in_Step_Function, + ErrorCodes.Cannot_perform_arithmetic_or_bitwise_computations_on_variables_in_Step_Function, `Step Function does not support operator ${expr.op}` ); + } else if ( + expr.op === "instanceof" || + // https://github.com/functionless/functionless/issues/393 + expr.op === "??=" || + expr.op === "||=" + ) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + `Step Function does not support ${expr.op} operator` + ); } assertNever(expr.op); diff --git a/src/error-code.ts b/src/error-code.ts index 96c67415..e4ab420a 100644 --- a/src/error-code.ts +++ b/src/error-code.ts @@ -90,7 +90,7 @@ export namespace ErrorCodes { * }); * ``` */ - export const Cannot_perform_arithmetic_on_variables_in_Step_Function: ErrorCode = + export const Cannot_perform_arithmetic_or_bitwise_computations_on_variables_in_Step_Function: ErrorCode = { code: 10000, type: ErrorType.ERROR, diff --git a/src/expression.ts b/src/expression.ts index 5ea3dffb..4c7b69cd 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -259,27 +259,74 @@ export class ConditionExpr extends BaseExpr { } } -export type ValueComparisonBinaryOp = - | "===" - | "==" - | "!=" - | "!==" - | "<" - | "<=" - | ">" - | ">="; -export type MathBinaryOp = "/" | "*" | "+" | "-" | "%"; -export type MutationMathBinaryOp = "+=" | "*=" | "-=" | "/=" | "%="; -export type ComparatorOp = "&&" | "||" | "??"; +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#arithmetic_operators + */ +export type ArithmeticOp = "+" | "-" | "/" | "*" | "%" | "**"; -export type BinaryOp = - | MathBinaryOp - | MutationMathBinaryOp - | ValueComparisonBinaryOp - | ComparatorOp - | "," +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#assignment_operators + */ +export type AssignmentOp = | "=" - | "in"; + | "*=" + | "**=" + | "/=" + | "%=" + | "+=" + | "-=" + | "<<=" + | ">>=" + | ">>>=" + | "&=" + | "^=" + | "|=" + | "&&=" + | "||=" + | "??="; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_logical_operators + */ +export type BinaryLogicalOp = "&&" | "||" | "??"; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#bitwise_shift_operators + */ +export type BitwiseShiftOp = "<<" | ">>" | ">>>"; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#binary_bitwise_operators + */ +export type BitwiseBinaryOp = "&" | "|" | "^"; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#comma_operator + */ +export type CommaOp = ","; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#equality_operators + */ +export type EqualityOp = "==" | "!=" | "===" | "!=="; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#relational_operators + */ +export type RelationalOp = "in" | "instanceof" | "<" | ">" | "<=" | ">="; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators + */ +export type BinaryOp = + | ArithmeticOp + | AssignmentOp + | BinaryLogicalOp + | BitwiseShiftOp + | BitwiseBinaryOp + | CommaOp + | EqualityOp + | RelationalOp; export class BinaryExpr extends BaseExpr { constructor( @@ -293,8 +340,15 @@ export class BinaryExpr extends BaseExpr { } } +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#increment_and_decrement + */ export type PostfixUnaryOp = "--" | "++"; -export type UnaryOp = "!" | "-" | "~" | PostfixUnaryOp; + +/** + * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators#unary_operators + */ +export type UnaryOp = "!" | "+" | "-" | "~" | PostfixUnaryOp; export class UnaryExpr extends BaseExpr { constructor(readonly op: UnaryOp, readonly expr: Expr) { diff --git a/src/validate.ts b/src/validate.ts index 6e3e4bf7..e79654ab 100644 --- a/src/validate.ts +++ b/src/validate.ts @@ -154,7 +154,7 @@ export function validate( return [ newError( node, - ErrorCodes.Cannot_perform_arithmetic_on_variables_in_Step_Function + ErrorCodes.Cannot_perform_arithmetic_or_bitwise_computations_on_variables_in_Step_Function ), ]; } else if (ts.isCallExpression(node)) { diff --git a/test/vtl.test.ts b/test/vtl.test.ts index cf78f573..13f6baad 100644 --- a/test/vtl.test.ts +++ b/test/vtl.test.ts @@ -2,10 +2,11 @@ import "jest"; import { $util, AppsyncContext, - ComparatorOp, - MathBinaryOp, + ArithmeticOp, + BinaryLogicalOp, + EqualityOp, + RelationalOp, ResolverFunction, - ValueComparisonBinaryOp, } from "../src"; import { reflect } from "../src/reflect"; import { appsyncTestCase, testAppsyncVelocity } from "./util"; @@ -549,7 +550,12 @@ test("binary exprs value comparison", () => { reflect< ResolverFunction< { a: number; b: number }, - Record, + Record< + | EqualityOp + | Exclude + | Exclude, + boolean | number + >, any > >(($context) => { @@ -641,7 +647,7 @@ test("binary exprs logical", () => { reflect< ResolverFunction< { a: boolean; b: boolean }, - Record, + Record, any > >(($context) => { @@ -688,7 +694,7 @@ test("binary exprs math", () => { reflect< ResolverFunction< { a: number; b: number }, - Record, + Record, number>, any > >(($context) => { From d5378ad8c3079129692987e93a6af381042b4bc6 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 18:11:35 -0700 Subject: [PATCH 028/107] feat: remove QuasiString and add in TemplateHead, Middle, Tail, Span --- src/asl.ts | 83 +-- src/compile.ts | 65 +- src/event-bridge/target-input.ts | 11 +- src/event-bridge/utils.ts | 35 +- src/expression.ts | 132 +++- src/guards.ts | 9 +- src/node-ctor.ts | 12 +- src/node-kind.ts | 6 +- src/node.ts | 18 +- src/util.ts | 32 +- src/vtl.ts | 15 +- test-app/src/message-board.ts | 4 +- .../step-function.localstack.test.ts.snap | 626 +++++++++--------- test/__snapshots__/step-function.test.ts.snap | 206 +++--- 14 files changed, 697 insertions(+), 557 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index 1fc604a6..26d0f0d1 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -19,15 +19,16 @@ import { Identifier, NullLiteralExpr, PropAccessExpr, - QuasiString, } from "./expression"; import { isArgument, isArrayBinding, isArrayLiteralExpr, isAwaitExpr, + isBigIntExpr, isBinaryExpr, isBindingElem, + isBindingPattern, isBlockStmt, isBooleanLiteralExpr, isBreakStmt, @@ -43,6 +44,7 @@ import { isContinueStmt, isDebuggerStmt, isDefaultClause, + isDeleteExpr, isDoStmt, isElementAccessExpr, isEmptyStmt, @@ -51,59 +53,60 @@ import { isExprStmt, isForInStmt, isForOfStmt, + isForStmt, isFunctionLike, + isGetAccessorDecl, isIdentifier, isIfStmt, + isImportKeyword, isLabelledStmt, isLiteralExpr, isMethodDecl, isNewExpr, isNode, + isNoSubstitutionTemplateLiteral, isNullLiteralExpr, isNumberLiteralExpr, isObjectBinding, isObjectLiteralExpr, + isOmittedExpr, isParameterDecl, + isParenthesizedExpr, isPostfixUnaryExpr, + isPrivateIdentifier, isPropAccessExpr, isPropAssignExpr, isPropDecl, isReferenceExpr, + isRegexExpr, isReturnStmt, + isSetAccessorDecl, isSpreadAssignExpr, isSpreadElementExpr, isStmt, isStringLiteralExpr, isSuperKeyword, isSwitchStmt, + isTaggedTemplateExpr, isTemplateExpr, + isTemplateHead, + isTemplateMiddle, + isTemplateSpan, + isTemplateTail, isThisExpr, isThrowStmt, isTryStmt, isTypeOfExpr, isUnaryExpr, isUndefinedLiteralExpr, + isVariableDecl, + isVariableDeclList, isVariableReference, isVariableStmt, + isVoidExpr, isWhileStmt, isWithStmt, - isForStmt, - isVariableDeclList, - isVariableDecl, - isPrivateIdentifier, isYieldExpr, - isBigIntExpr, - isRegexExpr, - isDeleteExpr, - isVoidExpr, - isParenthesizedExpr, - isImportKeyword, - isBindingPattern, - isSetAccessorDecl, - isGetAccessorDecl, - isTaggedTemplateExpr, - isOmittedExpr, - isQuasiString, } from "./guards"; import { IntegrationImpl, @@ -1599,11 +1602,19 @@ export class ASL { if (isTemplateExpr(expr)) { return this.evalContext(expr, (evalExpr) => { - const elementOutputs = expr.spans.map((span) => - isQuasiString(span) - ? { value: span.value, containsJsonPath: false } - : evalExpr(span) - ); + const elementOutputs = [ + { + value: expr.head.text, + containsJsonPath: false, + }, + ...expr.spans.flatMap((span) => [ + evalExpr(span.expr), + { + value: span.literal.text, + containsJsonPath: false, + }, + ]), + ]; /** * Step Functions `States.Format` has a bug which fails when a jsonPath does not start with a @@ -4937,7 +4948,7 @@ export namespace ASL { export const compare = ( left: ASLGraph.JsonPath, right: ASLGraph.Output, - operator: keyof typeof VALUE_COMPARISONS + operator: keyof typeof VALUE_COMPARISONS | "!=" | "!==" ): Condition => { if ( operator === "==" || @@ -5092,7 +5103,7 @@ function toStateName(node: FunctionlessNode): string { } } function inner(node: Exclude): string { - if (isExpr(node) || isQuasiString(node)) { + if (isExpr(node)) { return nodeToString(node); } else if (isIfStmt(node)) { return `if(${nodeToString(node.when)})`; @@ -5181,7 +5192,11 @@ function toStateName(node: FunctionlessNode): string { isSuperKeyword(node) || isSwitchStmt(node) || isWithStmt(node) || - isYieldExpr(node) + isYieldExpr(node) || + isTemplateHead(node) || + isTemplateMiddle(node) || + isTemplateTail(node) || + isTemplateSpan(node) ) { throw new SynthError( ErrorCodes.Unsupported_Feature, @@ -5196,13 +5211,7 @@ function toStateName(node: FunctionlessNode): string { } function nodeToString( - expr?: - | Expr - | ParameterDecl - | BindingName - | BindingElem - | VariableDecl - | QuasiString + expr?: Expr | ParameterDecl | BindingName | BindingElem | VariableDecl ): string { if (!expr) { return ""; @@ -5285,9 +5294,11 @@ function nodeToString( } else if (isStringLiteralExpr(expr)) { return `"${expr.value}"`; } else if (isTemplateExpr(expr)) { - return `\`${expr.spans - .map((e) => (isStringLiteralExpr(e) ? e.value : nodeToString(e))) - .join("")}\``; + return `${expr.head.text}${expr.spans + .map((span) => `\${${nodeToString(span.expr)}}${span.literal.text}`) + .join("")}`; + } else if (isNoSubstitutionTemplateLiteral(expr)) { + return `\`${expr.text}\``; } else if (isTypeOfExpr(expr)) { return `typeof ${nodeToString(expr.expr)}`; } else if (isUnaryExpr(expr)) { @@ -5340,8 +5351,6 @@ function nodeToString( ); } else if (isOmittedExpr(expr)) { return "undefined"; - } else if (isQuasiString(expr)) { - return expr.value; } else { return assertNever(expr); } diff --git a/src/compile.ts b/src/compile.ts index 530b035f..99047042 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -689,30 +689,41 @@ export function compile( toExpr(node.condition, scope), toExpr(node.incrementor, scope), ]); - } else if ( - ts.isTemplateExpression(node) || - ts.isTaggedTemplateExpression(node) - ) { - const template = ts.isTemplateExpression(node) ? node : node.template; - const exprs = []; - if (ts.isNoSubstitutionTemplateLiteral(template)) { - return newExpr(NodeKind.TaggedTemplateExpr, [quasi(template.text)]); - } - if (template.head.text) { - exprs.push(quasi(template.head.text)); - } - for (const span of template.templateSpans) { - exprs.push(toExpr(span.expression, scope)); - if (span.literal.text) { - exprs.push(quasi(span.literal.text)); - } - } - return newExpr( - ts.isTemplateExpression(node) - ? NodeKind.TemplateExpr - : NodeKind.TaggedTemplateExpr, - [ts.factory.createArrayLiteralExpression(exprs)] - ); + } else if (ts.isTemplateExpression(node)) { + return newExpr(NodeKind.TemplateExpr, [ + // head + toExpr(node.head, scope), + // spans + ts.factory.createArrayLiteralExpression( + node.templateSpans.map((span) => toExpr(span, scope)) + ), + ]); + } else if (ts.isTaggedTemplateExpression(node)) { + return newExpr(NodeKind.TaggedTemplateExpr, [ + toExpr(node.tag, scope), + toExpr(node.template, scope), + ]); + } else if (ts.isNoSubstitutionTemplateLiteral(node)) { + return newExpr(NodeKind.NoSubstitutionTemplateLiteral, [ + ts.factory.createStringLiteral(node.text), + ]); + } else if (ts.isTemplateSpan(node)) { + return newExpr(NodeKind.TemplateSpan, [ + toExpr(node.expression, scope), + toExpr(node.literal, scope), + ]); + } else if (ts.isTemplateHead(node)) { + return newExpr(NodeKind.TemplateHead, [ + ts.factory.createStringLiteral(node.text), + ]); + } else if (ts.isTemplateMiddle(node)) { + return newExpr(NodeKind.TemplateMiddle, [ + ts.factory.createStringLiteral(node.text), + ]); + } else if (ts.isTemplateTail(node)) { + return newExpr(NodeKind.TemplateTail, [ + ts.factory.createStringLiteral(node.text), + ]); } else if (ts.isBreakStatement(node)) { return newExpr(NodeKind.BreakStmt, []); } else if (ts.isContinueStatement(node)) { @@ -905,12 +916,6 @@ export function compile( } } - function quasi(literal: string): ts.Expression { - return newExpr(NodeKind.QuasiString, [ - ts.factory.createStringLiteral(literal), - ]); - } - function string(literal: string): ts.Expression { return newExpr(NodeKind.StringLiteralExpr, [ ts.factory.createStringLiteral(literal), diff --git a/src/event-bridge/target-input.ts b/src/event-bridge/target-input.ts index c9287830..d4615895 100644 --- a/src/event-bridge/target-input.ts +++ b/src/event-bridge/target-input.ts @@ -21,7 +21,6 @@ import { isParenthesizedExpr, isPropAccessExpr, isPropAssignExpr, - isQuasiString, isReferenceExpr, isStringLiteralExpr, isTemplateExpr, @@ -197,10 +196,14 @@ export const synthesizeEventBridgeTargets = ( } } else if (isTemplateExpr(expr)) { return { - value: expr.spans - .map((x) => (isQuasiString(x) ? x.value : exprToStringLiteral(x))) - .join(""), type: "string", + value: [ + expr.head.text, + ...expr.spans.flatMap((span) => [ + exprToStringLiteral(span.expr), + span.literal.text, + ]), + ].join(""), }; } else if (isObjectLiteralExpr(expr) || isArrayLiteralExpr(expr)) { return exprToObject(expr); diff --git a/src/event-bridge/utils.ts b/src/event-bridge/utils.ts index a69899fb..d68333e5 100644 --- a/src/event-bridge/utils.ts +++ b/src/event-bridge/utils.ts @@ -13,6 +13,9 @@ import { PropAssignExpr, StringLiteralExpr, TemplateExpr, + TemplateMiddle, + TemplateSpan, + TemplateTail, UnaryExpr, } from "../expression"; import { @@ -28,18 +31,18 @@ import { isParenthesizedExpr, isPropAccessExpr, isPropAssignExpr, - isQuasiString, isReturnStmt, isSetAccessorDecl, isSpreadElementExpr, isStringLiteralExpr, isTemplateExpr, + isTemplateMiddle, isUnaryExpr, isVariableStmt, } from "../guards"; import { NodeKind } from "../node-kind"; import { Stmt, VariableStmt } from "../statement"; -import { Constant, evalToConstant } from "../util"; +import { evalToConstant } from "../util"; /** * Returns a string array representing the property access starting from a named identity. @@ -249,24 +252,34 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { }, [] as PropAssignExpr[]) ); } else if (isTemplateExpr(expr)) { - const flattenedExpressions = expr.spans.map((x) => - isQuasiString(x) ? x : flattenExpression(x, scope) + const flattenedExpressions = expr.spans.map( + (x) => [flattenExpression(x.expr, scope), x.literal.text] as const ); - const flattenedConstants = flattenedExpressions.map((e) => - evalToConstant(e) + const flattenedConstants = flattenedExpressions.map( + (e) => [evalToConstant(e[0]), e[1]] as const ); - const allConstants = flattenedConstants.every((c) => !!c); + const allConstants = flattenedConstants.every((c) => !!c[0]); // when all of values are constants, turn them into a string constant now. return allConstants ? new StringLiteralExpr( - (flattenedConstants).map((e) => e.constant).join("") + [ + expr.head.text, + ...flattenedConstants.flatMap((e) => [e[0]!.constant, e[1]]), + ].join("") ) : new TemplateExpr( - expr.spans.map((x) => - isQuasiString(x) ? x : flattenExpression(x, scope) - ) + expr.head.clone(), + expr.spans.map( + (span) => + new TemplateSpan( + flattenExpression(span.expr, scope), + isTemplateMiddle(span.literal) + ? new TemplateMiddle(span.literal.text) + : new TemplateTail(span.literal.text) + ) + ) as [...TemplateSpan[], TemplateSpan] ); } else { return expr; diff --git a/src/expression.ts b/src/expression.ts index 4c7b69cd..cc16f6d4 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -41,6 +41,7 @@ export type Expr = | FunctionExpr | Identifier | NewExpr + | NoSubstitutionTemplateLiteralExpr | NullLiteralExpr | NumberLiteralExpr | ObjectLiteralExpr @@ -225,9 +226,9 @@ export class ElementAccessExpr extends BaseExpr { } export class Argument extends BaseExpr { - constructor(readonly expr?: Expr) { + constructor(readonly expr: Expr) { super(NodeKind.Argument, arguments); - this.ensure(expr, "element", ["undefined", "Expr"]); + this.ensure(expr, "element", ["Expr"]); } } @@ -495,47 +496,132 @@ export class SpreadElementExpr extends BaseExpr< } } +export type TemplateLiteral = TemplateExpr | NoSubstitutionTemplateLiteralExpr; + /** - * A quasi string in a {@link TemplateExpr} or {@link TaggedTemplateExpr}. + * A Template literal with no substitutions. * * ```ts - * const s = `abc${def}` - * // ^ quasi + * `has no substitutions` * ``` */ -export class QuasiString extends BaseNode { - readonly nodeKind = "Node"; - constructor(readonly value: string) { - super(NodeKind.QuasiString, arguments); +export class NoSubstitutionTemplateLiteralExpr extends BaseExpr { + constructor(readonly text: string) { + super(NodeKind.NoSubstitutionTemplateLiteral, arguments); + this.ensure(text, "text", ["string"]); } } /** - * A span of text within a {@link TemplateExpr} or {@link TaggedTemplateExpr}. + * A template expression. * * ```ts - * const s = `quasi ${expr}` - * // ^ Quasi string - * const s = `quasi ${expr}` - * // ^ expression to splice + * `(${expr})* * ``` */ -export type TemplateSpan = QuasiString | Expr; - -/** - * Interpolates a TemplateExpr to a string `this ${is} a template expression` - */ export class TemplateExpr extends BaseExpr { - constructor(readonly spans: TemplateSpan[]) { + constructor( + /** + * The literal text prefix of the template. + * ``` + * `head${expr}` // "head" + * `${expr}` // "" + * ``` + */ + readonly head: TemplateHead, + /** + * A chain of {@link TemplateSpan}s. The last {@link TemplateSpan}'s `literal` is always a + * {@link TemplateTail} and the former are always {@link TemplateMiddle}s. + */ + readonly spans: [ + ...TemplateSpan[], + TemplateSpan + ] + ) { super(NodeKind.TemplateExpr, arguments); - this.ensureArrayOf(spans, "span", [NodeKind.QuasiString, "Expr"]); + this.ensure(head, "head", [NodeKind.TemplateHead]); + this.ensureArrayOf(spans, "spans", [NodeKind.TemplateSpan]); } } +/** + * A tagged template expression. + * + * ```ts + * `(${expr})* + * ``` + */ export class TaggedTemplateExpr extends BaseExpr { - constructor(readonly tag: Expr, readonly spans: TemplateSpan[]) { + constructor(readonly tag: Expr, readonly template: TemplateLiteral) { super(NodeKind.TaggedTemplateExpr, arguments); - this.ensureArrayOf(spans, "span", [NodeKind.QuasiString, "Expr"]); + this.ensure(tag, "tag", ["Expr"]); + this.ensure(template, "template", [ + NodeKind.TemplateExpr, + NodeKind.NoSubstitutionTemplateLiteral, + ]); + } +} + +/** + * The first quasi string at the beginning of a {@link TemplateExpr}. + * + * ```ts + * const s = `abc${def}` + * // ^ TemplateHead + * ``` + * + * Is empty in the case when there is no head quasi: + * ```ts + * `${abc}` + * // TemplateHead is "". + * ``` + */ +export class TemplateHead extends BaseNode { + readonly nodeKind = "Node"; + + constructor(readonly text: string) { + super(NodeKind.TemplateHead, arguments); + this.ensure(text, "text", ["string"]); + } +} + +/** + * A span of text and expression within a {@link TemplateExpr} or {@link TaggedTemplateExpr}. + * + * ```ts + * `${expr}` + * ``` + */ +export class TemplateSpan< + Literal extends TemplateMiddle | TemplateTail = TemplateMiddle | TemplateTail +> extends BaseNode { + readonly nodeKind = "Node"; + + constructor(readonly expr: Expr, readonly literal: Literal) { + super(NodeKind.TemplateSpan, arguments); + this.ensure(expr, "expr", ["Expr"]); + this.ensure(literal, "literal", [ + NodeKind.TemplateMiddle, + NodeKind.TemplateTail, + ]); + } +} + +export class TemplateMiddle extends BaseNode { + readonly nodeKind = "Node"; + + constructor(readonly text: string) { + super(NodeKind.TemplateMiddle, arguments); + this.ensure(text, "text", ["string"]); + } +} + +export class TemplateTail extends BaseNode { + readonly nodeKind = "Node"; + + constructor(readonly text: string) { + super(NodeKind.TemplateTail, arguments); + this.ensure(text, "text", ["string"]); } } diff --git a/src/guards.ts b/src/guards.ts index 2773bc23..4e34477d 100644 --- a/src/guards.ts +++ b/src/guards.ts @@ -33,6 +33,9 @@ export const isFunctionExpr = typeGuard(NodeKind.FunctionExpr); export const isIdentifier = typeGuard(NodeKind.Identifier); export const isImportKeyword = typeGuard(NodeKind.ImportKeyword); export const isNewExpr = typeGuard(NodeKind.NewExpr); +export const isNoSubstitutionTemplateLiteral = typeGuard( + NodeKind.NoSubstitutionTemplateLiteral +); export const isNullLiteralExpr = typeGuard(NodeKind.NullLiteralExpr); export const isNumberLiteralExpr = typeGuard(NodeKind.NumberLiteralExpr); export const isObjectLiteralExpr = typeGuard(NodeKind.ObjectLiteralExpr); @@ -42,7 +45,6 @@ export const isPostfixUnaryExpr = typeGuard(NodeKind.PostfixUnaryExpr); export const isPrivateIdentifier = typeGuard(NodeKind.PrivateIdentifier); export const isPropAccessExpr = typeGuard(NodeKind.PropAccessExpr); export const isPropAssignExpr = typeGuard(NodeKind.PropAssignExpr); -export const isQuasiString = typeGuard(NodeKind.QuasiString); export const isReferenceExpr = typeGuard(NodeKind.ReferenceExpr); export const isRegexExpr = typeGuard(NodeKind.RegexExpr); export const isSpreadAssignExpr = typeGuard(NodeKind.SpreadAssignExpr); @@ -79,6 +81,11 @@ export const isLiteralPrimitiveExpr = typeGuard( NodeKind.StringLiteralExpr ); +export const isTemplateHead = typeGuard(NodeKind.TemplateHead); +export const isTemplateSpan = typeGuard(NodeKind.TemplateSpan); +export const isTemplateMiddle = typeGuard(NodeKind.TemplateMiddle); +export const isTemplateTail = typeGuard(NodeKind.TemplateTail); + export function isStmt(a: any): a is Stmt { return isNode(a) && a.nodeKind === "Stmt"; } diff --git a/src/node-ctor.ts b/src/node-ctor.ts index 3b00d7af..a6f1d2b4 100644 --- a/src/node-ctor.ts +++ b/src/node-ctor.ts @@ -33,6 +33,7 @@ import { Identifier, ImportKeyword, NewExpr, + NoSubstitutionTemplateLiteralExpr, NullLiteralExpr, NumberLiteralExpr, ObjectLiteralExpr, @@ -42,7 +43,6 @@ import { PrivateIdentifier, PropAccessExpr, PropAssignExpr, - QuasiString, ReferenceExpr, RegexExpr, SpreadAssignExpr, @@ -51,6 +51,10 @@ import { SuperKeyword, TaggedTemplateExpr, TemplateExpr, + TemplateHead, + TemplateMiddle, + TemplateSpan, + TemplateTail, ThisExpr, TypeOfExpr, UnaryExpr, @@ -110,7 +114,11 @@ export const declarations = { [NodeKind.SetAccessorDecl]: SetAccessorDecl, [NodeKind.VariableDecl]: VariableDecl, [NodeKind.VariableDeclList]: VariableDeclList, - [NodeKind.QuasiString]: QuasiString, + [NodeKind.TemplateHead]: TemplateHead, + [NodeKind.TemplateSpan]: TemplateSpan, + [NodeKind.TemplateMiddle]: TemplateMiddle, + [NodeKind.TemplateTail]: TemplateTail, + [NodeKind.NoSubstitutionTemplateLiteral]: NoSubstitutionTemplateLiteralExpr, } as const; export const error = { diff --git a/src/node-kind.ts b/src/node-kind.ts index 7099c732..caa57a88 100644 --- a/src/node-kind.ts +++ b/src/node-kind.ts @@ -76,7 +76,11 @@ export enum NodeKind { WhileStmt = 76, WithStmt = 77, YieldExpr = 78, - QuasiString = 79, + TemplateHead = 79, + TemplateSpan = 80, + TemplateMiddle = 81, + TemplateTail = 82, + NoSubstitutionTemplateLiteral = 83, } export namespace NodeKind { diff --git a/src/node.ts b/src/node.ts index 095976a5..72af191c 100644 --- a/src/node.ts +++ b/src/node.ts @@ -16,8 +16,12 @@ import type { Err } from "./error"; import type { Expr, ImportKeyword, - QuasiString, + NoSubstitutionTemplateLiteralExpr, SuperKeyword, + TemplateHead, + TemplateMiddle, + TemplateSpan, + TemplateTail, } from "./expression"; import { isBindingElem, @@ -48,11 +52,15 @@ export type FunctionlessNode = | Expr | Stmt | Err - | SuperKeyword - | ImportKeyword | BindingPattern - | VariableDeclList - | QuasiString; + | ImportKeyword + | NoSubstitutionTemplateLiteralExpr + | SuperKeyword + | TemplateHead + | TemplateMiddle + | TemplateSpan + | TemplateTail + | VariableDeclList; export interface HasParent { get parent(): Parent; diff --git a/src/util.ts b/src/util.ts index 4dbf2b4b..64845172 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,12 +1,6 @@ import { Construct } from "constructs"; import ts from "typescript"; -import { - BinaryOp, - CallExpr, - Expr, - PropAccessExpr, - QuasiString, -} from "./expression"; +import { BinaryOp, CallExpr, Expr, PropAccessExpr } from "./expression"; import { isArrayLiteralExpr, isBinaryExpr, @@ -16,13 +10,13 @@ import { isForOfStmt, isFunctionLike, isIdentifier, + isNoSubstitutionTemplateLiteral, isNullLiteralExpr, isNumberLiteralExpr, isObjectLiteralExpr, isPrivateIdentifier, isPropAccessExpr, isPropAssignExpr, - isQuasiString, isReferenceExpr, isSpreadAssignExpr, isSpreadElementExpr, @@ -206,18 +200,17 @@ export function isConstant(x: any): x is Constant { * const obj = { val: "hello" }; * obj.val -> { constant: "hello" } */ -export const evalToConstant = ( - expr: Expr | QuasiString -): Constant | undefined => { +export const evalToConstant = (expr: Expr): Constant | undefined => { if ( isStringLiteralExpr(expr) || isNumberLiteralExpr(expr) || isBooleanLiteralExpr(expr) || isNullLiteralExpr(expr) || - isUndefinedLiteralExpr(expr) || - isQuasiString(expr) + isUndefinedLiteralExpr(expr) ) { return { constant: expr.value }; + } else if (isNoSubstitutionTemplateLiteral(expr)) { + return { constant: expr.text }; } else if (isArrayLiteralExpr(expr)) { const array = []; for (const item of expr.items) { @@ -321,11 +314,16 @@ export const evalToConstant = ( } } } else if (isTemplateExpr(expr)) { - const values = expr.spans.map(evalToConstant); - if (values.every((v): v is Constant => !!v)) { - return { constant: values.map((v) => v.constant).join("") }; + const components: any[] = [expr.head.text]; + for (const span of expr.spans) { + const exprVal = evalToConstant(span.expr); + if (exprVal === undefined) { + // can only evaluate templates if all expressions are constants + return undefined; + } + components.push(exprVal.constant, span.literal.text); } - return undefined; + return { constant: components.map((v) => v).join("") }; } return undefined; }; diff --git a/src/vtl.ts b/src/vtl.ts index b46e5fa3..75f955c6 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -56,6 +56,7 @@ import { isLabelledStmt, isMethodDecl, isNewExpr, + isNoSubstitutionTemplateLiteral, isNullLiteralExpr, isNumberLiteralExpr, isObjectLiteralExpr, @@ -67,7 +68,6 @@ import { isPropAccessExpr, isPropAssignExpr, isPropDecl, - isQuasiString, isReferenceExpr, isRegexExpr, isReturnStmt, @@ -656,18 +656,17 @@ export abstract class VTL { // handled inside ObjectLiteralExpr } else if (isStringLiteralExpr(node)) { return this.str(node.value); + } else if (isNoSubstitutionTemplateLiteral(node)) { + return this.str(node.text); } else if (isTemplateExpr(node)) { - return `"${node.spans + return `"${node.head.text}${node.spans .map((expr) => { - if (isQuasiString(expr) || isStringLiteralExpr(expr)) { - return expr.value; - } - const text = this.eval(expr, returnVar); + const text = this.eval(expr.expr, returnVar); if (text.startsWith("$")) { - return `\${${text.slice(1)}}`; + return `\${${text.slice(1)}}${expr.literal.text}`; } else { const varName = this.var(text); - return `\${${varName.slice(1)}}`; + return `\${${varName.slice(1)}}${expr.literal.text}`; } }) .join("")}"`; diff --git a/test-app/src/message-board.ts b/test-app/src/message-board.ts index 4cacfe9c..8cd04186 100644 --- a/test-app/src/message-board.ts +++ b/test-app/src/message-board.ts @@ -301,10 +301,10 @@ const deleteWorkflow = new StepFunction<{ postId: string }, void>( } ); -export const deletePost = new AppsyncResolver< +export const deletePost: AppsyncResolver< { postId: string }, AWS.StepFunctions.StartExecutionOutput | undefined ->( +> = new AppsyncResolver( stack, "deletePost", { diff --git a/test/__snapshots__/step-function.localstack.test.ts.snap b/test/__snapshots__/step-function.localstack.test.ts.snap index 13e32e4a..98ac8ca6 100644 --- a/test/__snapshots__/step-function.localstack.test.ts.snap +++ b/test/__snapshots__/step-function.localstack.test.ts.snap @@ -4807,16 +4807,16 @@ Object { "$SFN.map([1, 2, 3], function(n))": Object { "ItemsPath": "$.heap1", "Iterator": Object { - "StartAt": "return \`nn\`", + "StartAt": "return n\${n}", "States": Object { - "1__return \`nn\`": Object { + "1__return n\${n}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", "Type": "Pass", }, - "return \`nn\`": Object { - "Next": "1__return \`nn\`", + "return n\${n}": Object { + "Next": "1__return n\${n}", "Parameters": Object { "string.$": "States.Format('n{}',$.n)", }, @@ -5557,14 +5557,14 @@ exports[`context 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`name: context.Execution.Name\`": Object { + "1__return name: \${context.Execution.Name}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "return \`name: context.Execution.Name\`", + "Next": "return name: \${context.Execution.Name}", "Parameters": Object { "_.$": "$", "fnl_context": Object { @@ -5574,8 +5574,8 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return \`name: context.Execution.Name\`": Object { - "Next": "1__return \`name: context.Execution.Name\`", + "return name: \${context.Execution.Name}": Object { + "Next": "1__return name: \${context.Execution.Name}", "Parameters": Object { "string.$": "States.Format('name: {}',$$.Execution.Name)", }, @@ -5590,13 +5590,13 @@ exports[`continue break 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`a1\`": Object { + "1__a = \${a}1": Object { "InputPath": "$.heap0.string", "Next": "if(a !== \\"111\\")", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`a2\`": Object { + "1__a = \${a}2": Object { "InputPath": "$.heap1.string", "Next": "while (true)", "ResultPath": "$.a", @@ -5627,11 +5627,11 @@ Object { }, "1__item = await $AWS.DynamoDB.GetItem({Table: table, Key: {id: {S: input.id": Object { "InputPath": "$.heap5", - "Next": "return \`aitem.Item.val.N\`", + "Next": "return \${a}\${item.Item.val.N}", "ResultPath": "$.item", "Type": "Pass", }, - "1__return \`aitem.Item.val.N\`": Object { + "1__return \${a}\${item.Item.val.N}": Object { "End": true, "InputPath": "$.heap6.string", "ResultPath": "$", @@ -5654,16 +5654,16 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`a1\`": Object { - "Next": "1__a = \`a1\`", + "a = \${a}1": Object { + "Next": "1__a = \${a}1", "Parameters": Object { "string.$": "States.Format('{}1',$.a)", }, "ResultPath": "$.heap0", "Type": "Pass", }, - "a = \`a2\`": Object { - "Next": "1__a = \`a2\`", + "a = \${a}2": Object { + "Next": "1__a = \${a}2", "Parameters": Object { "string.$": "States.Format('{}2',$.a)", }, @@ -5732,7 +5732,7 @@ Object { }, }, ], - "Default": "a = \`a2\`", + "Default": "a = \${a}2", "Type": "Choice", }, "if(a === \\"11121\\")": Object { @@ -5831,8 +5831,8 @@ Object { "ResultPath": "$.heap5", "Type": "Task", }, - "return \`aitem.Item.val.N\`": Object { - "Next": "1__return \`aitem.Item.val.N\`", + "return \${a}\${item.Item.val.N}": Object { + "Next": "1__return \${a}\${item.Item.val.N}", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.item.Item.val.N)", }, @@ -5849,7 +5849,7 @@ Object { "Choices": Array [ Object { "IsNull": false, - "Next": "a = \`a1\`", + "Next": "a = \${a}1", "Variable": "$$.Execution.Id", }, ], @@ -5888,6 +5888,14 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, + "\${z}\${w}\${v}\${x}\${s}\${u}\${t}\${tserRra[0]}": Object { + "Next": "1__return {prop: \${a}\${b}\${c}\${d}\${e}\${f}\${arrRest[0]}\${r}\${m}, var: \${z}\${", + "Parameters": Object { + "string.$": "States.Format('{}{}{}{}{}{}{}{}',$.z,$.w,$.v,$.x,$.s,$.u,$.t,$.tserRra[0])", + }, + "ResultPath": "$.heap10", + "Type": "Pass", + }, "1__[ d, undefined, e, arrRest ]": Object { "InputPath": "$$.Execution.Input['arr'][2]", "Next": "2__[ d, undefined, e, arrRest ]", @@ -5908,11 +5916,11 @@ Object { }, "1__f = \\"sir\\"": Object { "InputPath": "$.heap13", - "Next": "6__{ a, bb: { value: b, [\`ab\`]: r }, c = \\"what\\", m = c, arr: [ d, undefined", + "Next": "6__{ a, bb: { value: b, [\${\\"a\\"}\${\\"b\\"}]: r }, c = \\"what\\", m = c, arr: [ d, u", "ResultPath": "$.f", "Type": "Pass", }, - "1__forV = \`forVhl\`": Object { + "1__forV = \${forV}\${h}\${l}": Object { "InputPath": "$.heap7.string", "Next": "tail__for({h,j:[l]} of [{h: \\"a\\", j: [\\"b\\"]}])", "ResultPath": "$.forV", @@ -5945,13 +5953,13 @@ Object { "ResultPath": "$.heap3", "Type": "Pass", }, - "1__return \`aacc\`": Object { + "1__return \${aa}\${cc}": Object { "InputPath": "$.heap4.string", "Next": "handleResult__1__map = [{aa: \\"a\\", bb: [\\"b\\"]}].map(function({aa,bb:[cc]})).j", "ResultPath": "$.heap3.arr[0]", "Type": "Pass", }, - "1__return {prop: \`abcdefarrRest[0]rm\`, var: \`zwvxsuttserRra[0]\`, map: map, ": Object { + "1__return {prop: \${a}\${b}\${c}\${d}\${e}\${f}\${arrRest[0]}\${r}\${m}, var: \${z}\${": Object { "End": true, "Parameters": Object { "forV.$": "$.forV", @@ -5975,13 +5983,13 @@ Object { "ResultPath": "$.x", "Type": "Pass", }, - "1__{ [\\"value\\"]: w, [\`ab\`]: v }": Object { + "1__{ [\\"value\\"]: w, [\${\\"a\\"}\${\\"b\\"}]: v }": Object { "InputPath": "$.value['yy']['ab']", "Next": "x = \\"what\\"", "ResultPath": "$.v", "Type": "Pass", }, - "1__{ value: b, [\`ab\`]: r }": Object { + "1__{ value: b, [\${\\"a\\"}\${\\"b\\"}]: r }": Object { "InputPath": "$$.Execution.Input['bb']['ab']", "Next": "c = \\"what\\"", "ResultPath": "$.r", @@ -5999,14 +6007,14 @@ Object { "ResultPath": "$.tserRra", "Type": "Pass", }, - "6__{ a, bb: { value: b, [\`ab\`]: r }, c = \\"what\\", m = c, arr: [ d, undefined": Object { + "6__{ a, bb: { value: b, [\${\\"a\\"}\${\\"b\\"}]: r }, c = \\"what\\", m = c, arr: [ d, u": Object { "InputPath": "$$.Execution.Input['value']", - "Next": "{z,yy:{[\\"value\\"]:w,[\`ab\`]:v},x,rra:[s,undefined,u,...tserRra],rra2:[t]} = v", + "Next": "{z,yy:{[\\"value\\"]:w,[\${\\"a\\"}\${\\"b\\"}]:v},x,rra:[s,undefined,u,...tserRra],rra2:", "ResultPath": "$.value", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "{ a, bb: { value: b, [\`ab\`]: r }, c = \\"what\\", m = c, arr: [ d, undefined, e", + "Next": "{ a, bb: { value: b, [\${\\"a\\"}\${\\"b\\"}]: r }, c = \\"what\\", m = c, arr: [ d, unde", "Parameters": Object { "fnl_context": Object { "null": null, @@ -6017,7 +6025,7 @@ Object { }, "[ cc ]": Object { "InputPath": "$.heap3.arr[0]['bb'][0]", - "Next": "return \`aacc\`", + "Next": "return \${aa}\${cc}", "ResultPath": "$.cc", "Type": "Pass", }, @@ -6029,7 +6037,7 @@ Object { }, "[ l ]": Object { "InputPath": "$.heap8[0]['j'][0]", - "Next": "forV = \`forVhl\`", + "Next": "forV = \${forV}\${h}\${l}", "ResultPath": "$.l", "Type": "Pass", }, @@ -6039,14 +6047,6 @@ Object { "ResultPath": "$.s", "Type": "Pass", }, - "\`zwvxsuttserRra[0]\`": Object { - "Next": "1__return {prop: \`abcdefarrRest[0]rm\`, var: \`zwvxsuttserRra[0]\`, map: map, ", - "Parameters": Object { - "string.$": "States.Format('{}{}{}{}{}{}{}{}',$.z,$.w,$.v,$.x,$.s,$.u,$.t,$.tserRra[0])", - }, - "ResultPath": "$.heap10", - "Type": "Pass", - }, "append__1__map = [{aa: \\"a\\", bb: [\\"b\\"]}].map(function({aa,bb:[cc]})).join() ": Object { "Next": "tail__1__map = [{aa: \\"a\\", bb: [\\"b\\"]}].map(function({aa,bb:[cc]})).join() 1", "Parameters": Object { @@ -6127,8 +6127,8 @@ Object { "ResultPath": "$.forV", "Type": "Pass", }, - "forV = \`forVhl\`": Object { - "Next": "1__forV = \`forVhl\`", + "forV = \${forV}\${h}\${l}": Object { + "Next": "1__forV = \${forV}\${h}\${l}", "Parameters": Object { "string.$": "States.Format('{}{}{}',$.forV,$.h,$.l)", }, @@ -6228,16 +6228,16 @@ Object { "ResultPath": "$.heap2", "Type": "Pass", }, - "return \`aacc\`": Object { - "Next": "1__return \`aacc\`", + "return \${aa}\${cc}": Object { + "Next": "1__return \${aa}\${cc}", "Parameters": Object { "string.$": "States.Format('{}{}',$.aa,$.cc)", }, "ResultPath": "$.heap4", "Type": "Pass", }, - "return {prop: \`abcdefarrRest[0]rm\`, var: \`zwvxsuttserRra[0]\`, map: map, for": Object { - "Next": "\`zwvxsuttserRra[0]\`", + "return {prop: \${a}\${b}\${c}\${d}\${e}\${f}\${arrRest[0]}\${r}\${m}, var: \${z}\${w}$": Object { + "Next": "\${z}\${w}\${v}\${x}\${s}\${u}\${t}\${tserRra[0]}", "Parameters": Object { "string.$": "States.Format('{}{}{}{}{}{}{}{}{}',$.a,$.b,$.c,$.d,$.e,$.f,$.arrRest[0],$.r,$.m)", }, @@ -6281,7 +6281,7 @@ Object { }, "tr = message": Object { "InputPath": "$.message", - "Next": "return {prop: \`abcdefarrRest[0]rm\`, var: \`zwvxsuttserRra[0]\`, map: map, for", + "Next": "return {prop: \${a}\${b}\${c}\${d}\${e}\${f}\${arrRest[0]}\${r}\${m}, var: \${z}\${w}$", "ResultPath": "$.tr", "Type": "Pass", }, @@ -6334,15 +6334,15 @@ Object { "Default": "\\"what\\" 1", "Type": "Choice", }, - "{ [\\"value\\"]: w, [\`ab\`]: v }": Object { + "{ [\\"value\\"]: w, [\${\\"a\\"}\${\\"b\\"}]: v }": Object { "InputPath": "$.value['yy']['value']", - "Next": "1__{ [\\"value\\"]: w, [\`ab\`]: v }", + "Next": "1__{ [\\"value\\"]: w, [\${\\"a\\"}\${\\"b\\"}]: v }", "ResultPath": "$.w", "Type": "Pass", }, - "{ a, bb: { value: b, [\`ab\`]: r }, c = \\"what\\", m = c, arr: [ d, undefined, e": Object { + "{ a, bb: { value: b, [\${\\"a\\"}\${\\"b\\"}]: r }, c = \\"what\\", m = c, arr: [ d, unde": Object { "InputPath": "$$.Execution.Input['a']", - "Next": "{ value: b, [\`ab\`]: r }", + "Next": "{ value: b, [\${\\"a\\"}\${\\"b\\"}]: r }", "ResultPath": "$.a", "Type": "Pass", }, @@ -6358,15 +6358,15 @@ Object { "ResultPath": "$.h", "Type": "Pass", }, - "{ value: b, [\`ab\`]: r }": Object { + "{ value: b, [\${\\"a\\"}\${\\"b\\"}]: r }": Object { "InputPath": "$$.Execution.Input['bb']['value']", - "Next": "1__{ value: b, [\`ab\`]: r }", + "Next": "1__{ value: b, [\${\\"a\\"}\${\\"b\\"}]: r }", "ResultPath": "$.b", "Type": "Pass", }, - "{z,yy:{[\\"value\\"]:w,[\`ab\`]:v},x,rra:[s,undefined,u,...tserRra],rra2:[t]} = v": Object { + "{z,yy:{[\\"value\\"]:w,[\${\\"a\\"}\${\\"b\\"}]:v},x,rra:[s,undefined,u,...tserRra],rra2:": Object { "InputPath": "$.value['z']", - "Next": "{ [\\"value\\"]: w, [\`ab\`]: v }", + "Next": "{ [\\"value\\"]: w, [\${\\"a\\"}\${\\"b\\"}]: v }", "ResultPath": "$.z", "Type": "Pass", }, @@ -6403,7 +6403,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "$SFN.waitFor(1)": Object { - "Next": "return itemKey === \`hikey\`", + "Next": "return itemKey === hi\${key}", "Seconds": 1, "Type": "Wait", }, @@ -6419,13 +6419,13 @@ Object { "ResultPath": "$.arr2", "Type": "Pass", }, - "1__return itemKey === \`hikey\`": Object { + "1__return itemKey === hi\${key}": Object { "InputPath": "$.heap3", "Next": "handleResult__arr1 = arr.filter(function({value})).filter(function({value})", "ResultPath": "$.heap1", "Type": "Pass", }, - "1__return itemKey === \`hikey\` 1": Object { + "1__return itemKey === hi\${key} 1": Object { "Choices": Array [ Object { "And": Array [ @@ -6486,10 +6486,10 @@ Object { ], }, ], - "Next": "assignTrue__1__return itemKey === \`hikey\` 1", + "Next": "assignTrue__1__return itemKey === hi\${key} 1", }, ], - "Default": "assignFalse__1__return itemKey === \`hikey\` 1", + "Default": "assignFalse__1__return itemKey === hi\${key} 1", "Type": "Choice", }, "1__return x <= index || first === x": Object { @@ -6564,8 +6564,8 @@ Object { "ResultPath": "$.heap4", "Type": "Pass", }, - "assignFalse__1__return itemKey === \`hikey\` 1": Object { - "Next": "1__return itemKey === \`hikey\`", + "assignFalse__1__return itemKey === hi\${key} 1": Object { + "Next": "1__return itemKey === hi\${key}", "Result": false, "ResultPath": "$.heap3", "Type": "Pass", @@ -6576,8 +6576,8 @@ Object { "ResultPath": "$.heap7", "Type": "Pass", }, - "assignTrue__1__return itemKey === \`hikey\` 1": Object { - "Next": "1__return itemKey === \`hikey\`", + "assignTrue__1__return itemKey === hi\${key} 1": Object { + "Next": "1__return itemKey === hi\${key}", "Result": true, "ResultPath": "$.heap3", "Type": "Pass", @@ -6820,8 +6820,8 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "return itemKey === \`hikey\`": Object { - "Next": "1__return itemKey === \`hikey\` 1", + "return itemKey === hi\${key}": Object { + "Next": "1__return itemKey === hi\${key} 1", "Parameters": Object { "string.$": "States.Format('hi{}',$.key)", }, @@ -7000,25 +7000,25 @@ exports[`for 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`acc\`": Object { + "1__a = \${a}c\${c}": Object { "InputPath": "$.heap2.string", - "Next": "c = \`c1\`", + "Next": "c = \${c}1", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`anarr[0]\`": Object { + "1__a = \${a}n\${arr[0]}": Object { "InputPath": "$.heap0.string", "Next": "arr = arr.slice(1)", "ResultPath": "$.a", "Type": "Pass", }, - "1__c = \`c1\`": Object { + "1__c = \${c}1": Object { "InputPath": "$.heap3.string", "Next": "if(c === \\"1\\")", "ResultPath": "$.c", "Type": "Pass", }, - "1__c = \`c1\` 1": Object { + "1__c = \${c}1 1": Object { "InputPath": "$.heap1.string", "Next": "if(c === \\"1\\")", "ResultPath": "$.c", @@ -7097,7 +7097,7 @@ Object { ], }, ], - "Next": "a = \`anarr[0]\`", + "Next": "a = \${a}n\${arr[0]}", }, ], "Default": "c = \\"\\"", @@ -7120,16 +7120,16 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`acc\`": Object { - "Next": "1__a = \`acc\`", + "a = \${a}c\${c}": Object { + "Next": "1__a = \${a}c\${c}", "Parameters": Object { "string.$": "States.Format('{}c{}',$.a,$.c)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "a = \`anarr[0]\`": Object { - "Next": "1__a = \`anarr[0]\`", + "a = \${a}n\${arr[0]}": Object { + "Next": "1__a = \${a}n\${arr[0]}", "Parameters": Object { "string.$": "States.Format('{}n{}',$.a,$.arr[0])", }, @@ -7148,16 +7148,16 @@ Object { "ResultPath": "$.c", "Type": "Pass", }, - "c = \`c1\`": Object { - "Next": "1__c = \`c1\`", + "c = \${c}1": Object { + "Next": "1__c = \${c}1", "Parameters": Object { "string.$": "States.Format('{}1',$.c)", }, "ResultPath": "$.heap3", "Type": "Pass", }, - "c = \`c1\` 1": Object { - "Next": "1__c = \`c1\` 1", + "c = \${c}1 1": Object { + "Next": "1__c = \${c}1 1", "Parameters": Object { "string.$": "States.Format('{}1',$.c)", }, @@ -7191,7 +7191,7 @@ Object { ], }, ], - "Next": "c = \`c1\` 1", + "Next": "c = \${c}1 1", }, ], "Default": "if(c === \\"111\\")", @@ -7221,7 +7221,7 @@ Object { "Next": "return a", }, ], - "Default": "a = \`acc\`", + "Default": "a = \${a}c\${c}", "Type": "Choice", }, "return a": Object { @@ -7238,13 +7238,13 @@ exports[`for control and assignment 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`ani\`": Object { + "1__a = \${a}n\${i}": Object { "InputPath": "$.heap0.string", "Next": "tail__for(i in input.arr)", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`ani\` 1": Object { + "1__a = \${a}n\${i} 1": Object { "InputPath": "$.heap2.string", "Next": "tail__for(i in input.arr) 1", "ResultPath": "$.a", @@ -7307,16 +7307,16 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`ani\`": Object { - "Next": "1__a = \`ani\`", + "a = \${a}n\${i}": Object { + "Next": "1__a = \${a}n\${i}", "Parameters": Object { "string.$": "States.Format('{}n{}',$.a,$.i)", }, "ResultPath": "$.heap0", "Type": "Pass", }, - "a = \`ani\` 1": Object { - "Next": "1__a = \`ani\` 1", + "a = \${a}n\${i} 1": Object { + "Next": "1__a = \${a}n\${i} 1", "Parameters": Object { "string.$": "States.Format('{}n{}',$.a,$.i)", }, @@ -7430,7 +7430,7 @@ Object { }, }, ], - "Default": "a = \`ani\` 1", + "Default": "a = \${a}n\${i} 1", "Type": "Choice", }, "if(i === \\"2\\")": Object { @@ -7457,7 +7457,7 @@ Object { "Next": "for(i in input.arr) 1", }, ], - "Default": "a = \`ani\`", + "Default": "a = \${a}n\${i}", "Type": "Choice", }, "if(i === 2)": Object { @@ -7525,7 +7525,7 @@ exports[`for in 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__await func({n: \`input.arr[i]\`, id: input.id})": Object { + "1__await func({n: \${input.arr[i]}, id: input.id})": Object { "Next": "tail__for(i in input.arr)", "Parameters": Object { "id.$": "$.input.id", @@ -7535,15 +7535,15 @@ Object { "ResultPath": "$.heap2", "Type": "Task", }, - "1__await func({n: \`input.arr[i]\`, id: input.id}) 1": Object { - "Next": "1__await func({n: \`input.arr[i]\`, id: input.id})", + "1__await func({n: \${input.arr[i]}, id: input.id}) 1": Object { + "Next": "1__await func({n: \${input.arr[i]}, id: input.id})", "Parameters": Object { "string.$": "States.Format('{}',$.heap0)", }, "ResultPath": "$.heap1", "Type": "Pass", }, - "1__await func({n: \`input.arr[i]\`, id: input.id}) 1 1": Object { + "1__await func({n: \${input.arr[i]}, id: input.id}) 1 1": Object { "Next": "await func({n: i, id: input.id})", "Parameters": Object { "id.$": "$.input.id", @@ -7553,15 +7553,15 @@ Object { "ResultPath": "$.heap6", "Type": "Task", }, - "1__await func({n: \`input.arr[i]\`, id: input.id}) 1 2": Object { - "Next": "1__await func({n: \`input.arr[i]\`, id: input.id}) 1 1", + "1__await func({n: \${input.arr[i]}, id: input.id}) 1 2": Object { + "Next": "1__await func({n: \${input.arr[i]}, id: input.id}) 1 1", "Parameters": Object { "string.$": "States.Format('{}',$.heap4)", }, "ResultPath": "$.heap5", "Type": "Pass", }, - "1__await func({n: \`input.arr[j]\`, id: input.id})": Object { + "1__await func({n: \${input.arr[j]}, id: input.id})": Object { "Next": "await func({n: j, id: input.id}) 1", "Parameters": Object { "id.$": "$.input.id", @@ -7571,8 +7571,8 @@ Object { "ResultPath": "$.heap10", "Type": "Task", }, - "1__await func({n: \`input.arr[j]\`, id: input.id}) 1": Object { - "Next": "1__await func({n: \`input.arr[j]\`, id: input.id})", + "1__await func({n: \${input.arr[j]}, id: input.id}) 1": Object { + "Next": "1__await func({n: \${input.arr[j]}, id: input.id})", "Parameters": Object { "string.$": "States.Format('{}',$.heap8)", }, @@ -7658,7 +7658,7 @@ Object { }, "assignValue__i": Object { "InputPath": "$.heap3[0].item", - "Next": "await func({n: \`input.arr[i]\`, id: input.id})", + "Next": "await func({n: \${input.arr[i]}, id: input.id})", "ResultPath": "$.0__i", "Type": "Pass", }, @@ -7670,30 +7670,30 @@ Object { }, "assignValue__j": Object { "InputPath": "$.heap12[0].item", - "Next": "await func({n: \`input.arr[i]\`, id: input.id}) 1", + "Next": "await func({n: \${input.arr[i]}, id: input.id}) 1", "ResultPath": "$.0__j", "Type": "Pass", }, - "await func({n: \`input.arr[i]\`, id: input.id})": Object { + "await func({n: \${input.arr[i]}, id: input.id})": Object { "InputPath": "$.0__i", - "Next": "1__await func({n: \`input.arr[i]\`, id: input.id}) 1", + "Next": "1__await func({n: \${input.arr[i]}, id: input.id}) 1", "ResultPath": "$.heap0", "Type": "Pass", }, - "await func({n: \`input.arr[i]\`, id: input.id}) 1": Object { + "await func({n: \${input.arr[i]}, id: input.id}) 1": Object { "InputPath": "$.0__i", - "Next": "1__await func({n: \`input.arr[i]\`, id: input.id}) 1 2", + "Next": "1__await func({n: \${input.arr[i]}, id: input.id}) 1 2", "ResultPath": "$.heap4", "Type": "Pass", }, - "await func({n: \`input.arr[j]\`, id: input.id})": Object { + "await func({n: \${input.arr[j]}, id: input.id})": Object { "InputPath": "$.0__j", - "Next": "1__await func({n: \`input.arr[j]\`, id: input.id}) 1", + "Next": "1__await func({n: \${input.arr[j]}, id: input.id}) 1", "ResultPath": "$.heap8", "Type": "Pass", }, "await func({n: i, id: input.id})": Object { - "Next": "await func({n: \`input.arr[j]\`, id: input.id})", + "Next": "await func({n: \${input.arr[j]}, id: input.id})", "Parameters": Object { "id.$": "$.input.id", "n.$": "$.i", @@ -7844,19 +7844,19 @@ exports[`for loops 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`ai\`": Object { + "1__a = \${a}\${i}": Object { "InputPath": "$.heap0.string", "Next": "tail__for(i of [1, 2, 3])", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`ai\` 1": Object { + "1__a = \${a}\${i} 1": Object { "InputPath": "$.heap2.string", "Next": "tail__for(i of input.arr)", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`ai\` 2": Object { + "1__a = \${a}\${i} 2": Object { "InputPath": "$.heap5.string", "Next": "tail__for(i of await func()) 1", "ResultPath": "$.a", @@ -7879,24 +7879,24 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`ai\`": Object { - "Next": "1__a = \`ai\`", + "a = \${a}\${i}": Object { + "Next": "1__a = \${a}\${i}", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.i)", }, "ResultPath": "$.heap0", "Type": "Pass", }, - "a = \`ai\` 1": Object { - "Next": "1__a = \`ai\` 1", + "a = \${a}\${i} 1": Object { + "Next": "1__a = \${a}\${i} 1", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.i)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "a = \`ai\` 2": Object { - "Next": "1__a = \`ai\` 2", + "a = \${a}\${i} 2": Object { + "Next": "1__a = \${a}\${i} 2", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.i)", }, @@ -7967,19 +7967,19 @@ Object { }, "i": Object { "InputPath": "$.heap1[0]", - "Next": "a = \`ai\`", + "Next": "a = \${a}\${i}", "ResultPath": "$.i", "Type": "Pass", }, "i 1": Object { "InputPath": "$.heap3[0]", - "Next": "a = \`ai\` 1", + "Next": "a = \${a}\${i} 1", "ResultPath": "$.i", "Type": "Pass", }, "i 2": Object { "InputPath": "$.heap6[0]", - "Next": "a = \`ai\` 2", + "Next": "a = \${a}\${i} 2", "ResultPath": "$.i", "Type": "Pass", }, @@ -8015,6 +8015,14 @@ exports[`for map conditional 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { + "\${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { + "Next": "1__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", + "Parameters": Object { + "string.$": "States.Format('{}{}{}',$.heap14.string,$.heap16.string,$.heap18.string)", + }, + "ResultPath": "$.heap19", + "Type": "Pass", + }, "1__b = [\\"b\\"].map(function(v))": Object { "InputPath": "$.heap1", "Next": "c = [\\"c\\"].map(function(v))", @@ -8047,7 +8055,7 @@ Object { }, "1__d = await Promise.all([\\"d\\"].map(function(v)))": Object { "InputPath": "$.heap9", - "Next": "return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "ResultPath": "$.d", "Type": "Pass", }, @@ -8060,25 +8068,25 @@ Object { "ResultPath": "$.heap9", "Type": "Pass", }, - "1__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { + "1__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { "End": true, "InputPath": "$.heap19.string", "ResultPath": "$", "Type": "Pass", }, - "1__return \`vai\`": Object { + "1__return \${v}\${a}\${i}": Object { "InputPath": "$.heap2.string", "Next": "handleResult__1__b = [\\"b\\"].map(function(v)) 1", "ResultPath": "$.heap1.arr[0]", "Type": "Pass", }, - "1__return \`vai\` 1": Object { + "1__return \${v}\${a}\${i} 1": Object { "InputPath": "$.heap6.string", "Next": "handleResult__1__c = [\\"c\\"].map(function(v)) 1", "ResultPath": "$.heap5.arr[0]", "Type": "Pass", }, - "1__return \`vai\` 2": Object { + "1__return \${v}\${a}\${i} 2": Object { "InputPath": "$.heap11.string", "Next": "handleResult__1__d = await Promise.all([\\"d\\"].map(function(v))) 1", "ResultPath": "$.heap9.arr[0]", @@ -8095,14 +8103,6 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "\`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { - "Next": "1__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", - "Parameters": Object { - "string.$": "States.Format('{}{}{}',$.heap14.string,$.heap16.string,$.heap18.string)", - }, - "ResultPath": "$.heap19", - "Type": "Pass", - }, "a = \\"x\\"": Object { "Next": "b = [\\"b\\"].map(function(v))", "Result": "x", @@ -8125,8 +8125,8 @@ Object { "ResultPath": "$.heap18", "Type": "Pass", }, - "append__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { - "Next": "tail__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "append__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { + "Next": "tail__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "Parameters": Object { "string.$": "States.Format('{}{}', $.heap14.string, $.heap13[0])", }, @@ -8365,7 +8365,7 @@ Object { "Variable": "$.heap17[0]", }, ], - "Default": "\`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Default": "\${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "Type": "Choice", }, "hasNext__for(i of [1, 2, 3])": Object { @@ -8401,7 +8401,7 @@ Object { "Default": "return \\"boo\\" 1", "Type": "Choice", }, - "hasNext__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { + "hasNext__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { "Choices": Array [ Object { "And": Array [ @@ -8416,7 +8416,7 @@ Object { }, }, ], - "Next": "initValue__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "initValue__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", }, Object { "And": Array [ @@ -8433,11 +8433,11 @@ Object { }, }, ], - "Next": "returnEmpty__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "returnEmpty__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", }, Object { "IsPresent": true, - "Next": "append__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "append__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "Variable": "$.heap13[0]", }, ], @@ -8483,7 +8483,7 @@ Object { ], }, ], - "Next": "return \`vai\`", + "Next": "return \${v}\${a}\${i}", }, ], "Default": "tail__for(i of [1, 2, 3])", @@ -8510,7 +8510,7 @@ Object { ], }, ], - "Next": "return \`vai\` 1", + "Next": "return \${v}\${a}\${i} 1", }, ], "Default": "tail__for(i of input.arr)", @@ -8537,7 +8537,7 @@ Object { ], }, ], - "Next": "return \`vai\` 2", + "Next": "return \${v}\${a}\${i} 2", }, ], "Default": "tail__for(i of await func()) 1", @@ -8555,9 +8555,9 @@ Object { "ResultPath": "$.heap18.string", "Type": "Pass", }, - "initValue__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { + "initValue__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { "InputPath": "$.heap13[0]", - "Next": "tail__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "tail__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "ResultPath": "$.heap14.string", "Type": "Pass", }, @@ -8579,30 +8579,30 @@ Object { "ResultPath": "$.heap9.arr[0]", "Type": "Pass", }, - "return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { + "return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { "InputPath": "$.b", - "Next": "hasNext__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "hasNext__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "ResultPath": "$.heap13", "Type": "Pass", }, - "return \`vai\`": Object { - "Next": "1__return \`vai\`", + "return \${v}\${a}\${i}": Object { + "Next": "1__return \${v}\${a}\${i}", "Parameters": Object { "string.$": "States.Format('{}{}{}',$.v,$.a,$.i)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "return \`vai\` 1": Object { - "Next": "1__return \`vai\` 1", + "return \${v}\${a}\${i} 1": Object { + "Next": "1__return \${v}\${a}\${i} 1", "Parameters": Object { "string.$": "States.Format('{}{}{}',$.v,$.a,$.i)", }, "ResultPath": "$.heap6", "Type": "Pass", }, - "return \`vai\` 2": Object { - "Next": "1__return \`vai\` 2", + "return \${v}\${a}\${i} 2": Object { + "Next": "1__return \${v}\${a}\${i} 2", "Parameters": Object { "string.$": "States.Format('{}{}{}',$.v,$.a,$.i)", }, @@ -8616,12 +8616,12 @@ Object { "Type": "Pass", }, "returnEmpty__d.join(\\"\\")": Object { - "Next": "\`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "\${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "Result": "", "ResultPath": "$.heap18.string", "Type": "Pass", }, - "returnEmpty__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { + "returnEmpty__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { "Next": "c.join(\\"\\")", "Result": "", "ResultPath": "$.heap14.string", @@ -8675,9 +8675,9 @@ Object { "ResultPath": "$.heap7", "Type": "Pass", }, - "tail__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`": Object { + "tail__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}": Object { "InputPath": "$.heap13[1:]", - "Next": "hasNext__return \`b.join(\\"\\")c.join(\\"\\")d.join(\\"\\")\`", + "Next": "hasNext__return \${b.join(\\"\\")}\${c.join(\\"\\")}\${d.join(\\"\\")}", "ResultPath": "$.heap13", "Type": "Pass", }, @@ -8707,7 +8707,7 @@ exports[`for of 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__await func({n: \`i\`, id: input.id})": Object { + "1__await func({n: \${i}, id: input.id})": Object { "Next": "tail__for(i of input.arr)", "Parameters": Object { "id.$": "$.input.id", @@ -8717,8 +8717,8 @@ Object { "ResultPath": "$.heap1", "Type": "Task", }, - "1__await func({n: \`i\`, id: input.id}) 1": Object { - "Next": "await func({n: \`j\`, id: input.id}) 1", + "1__await func({n: \${i}, id: input.id}) 1": Object { + "Next": "await func({n: \${j}, id: input.id}) 1", "Parameters": Object { "id.$": "$.input.id", "n.$": "$.heap3.string", @@ -8727,7 +8727,7 @@ Object { "ResultPath": "$.heap4", "Type": "Task", }, - "1__await func({n: \`j\`, id: input.id})": Object { + "1__await func({n: \${j}, id: input.id})": Object { "Next": "tail__for(i of input.arr) 1", "Parameters": Object { "id.$": "$.input.id", @@ -8737,7 +8737,7 @@ Object { "ResultPath": "$.heap9", "Type": "Task", }, - "1__await func({n: \`j\`, id: input.id}) 1": Object { + "1__await func({n: \${j}, id: input.id}) 1": Object { "Next": "tail__for(j of input.arr)", "Parameters": Object { "id.$": "$.input.id", @@ -8764,32 +8764,32 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "await func({n: \`i\`, id: input.id})": Object { - "Next": "1__await func({n: \`i\`, id: input.id})", + "await func({n: \${i}, id: input.id})": Object { + "Next": "1__await func({n: \${i}, id: input.id})", "Parameters": Object { "string.$": "States.Format('{}',$.i)", }, "ResultPath": "$.heap0", "Type": "Pass", }, - "await func({n: \`i\`, id: input.id}) 1": Object { - "Next": "1__await func({n: \`i\`, id: input.id}) 1", + "await func({n: \${i}, id: input.id}) 1": Object { + "Next": "1__await func({n: \${i}, id: input.id}) 1", "Parameters": Object { "string.$": "States.Format('{}',$.i)", }, "ResultPath": "$.heap3", "Type": "Pass", }, - "await func({n: \`j\`, id: input.id})": Object { - "Next": "1__await func({n: \`j\`, id: input.id})", + "await func({n: \${j}, id: input.id})": Object { + "Next": "1__await func({n: \${j}, id: input.id})", "Parameters": Object { "string.$": "States.Format('{}',$.j)", }, "ResultPath": "$.heap8", "Type": "Pass", }, - "await func({n: \`j\`, id: input.id}) 1": Object { - "Next": "1__await func({n: \`j\`, id: input.id}) 1", + "await func({n: \${j}, id: input.id}) 1": Object { + "Next": "1__await func({n: \${j}, id: input.id}) 1", "Parameters": Object { "string.$": "States.Format('{}',$.j)", }, @@ -8844,12 +8844,12 @@ Object { "Variable": "$.heap7[0]", }, ], - "Default": "await func({n: \`j\`, id: input.id})", + "Default": "await func({n: \${j}, id: input.id})", "Type": "Choice", }, "i": Object { "InputPath": "$.heap2[0]", - "Next": "await func({n: \`i\`, id: input.id})", + "Next": "await func({n: \${i}, id: input.id})", "ResultPath": "$.i", "Type": "Pass", }, @@ -8876,7 +8876,7 @@ Object { }, "j": Object { "InputPath": "$.heap7[0]", - "Next": "await func({n: \`i\`, id: input.id}) 1", + "Next": "await func({n: \${i}, id: input.id}) 1", "ResultPath": "$.j", "Type": "Pass", }, @@ -8918,7 +8918,7 @@ exports[`foreach 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`aax\`": Object { + "1__a = \${a}a\${x}": Object { "InputPath": "$.heap1.string", "Next": "return a 1", "ResultPath": "$.a", @@ -8941,8 +8941,8 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`aax\`": Object { - "Next": "1__a = \`aax\`", + "a = \${a}a\${x}": Object { + "Next": "1__a = \${a}a\${x}", "Parameters": Object { "string.$": "States.Format('{}a{}',$.a,$.x)", }, @@ -8994,7 +8994,7 @@ Object { }, "x": Object { "InputPath": "$.heap0.arr[0]", - "Next": "a = \`aax\`", + "Next": "a = \${a}a\${x}", "ResultPath": "$.x", "Type": "Pass", }, @@ -9481,7 +9481,7 @@ exports[`map 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`aax\`": Object { + "1__a = \${a}a\${x}": Object { "InputPath": "$.heap6.string", "Next": "return a", "ResultPath": "$.a", @@ -9508,19 +9508,19 @@ Object { "ResultPath": "$.l2", "Type": "Pass", }, - "1__return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]a\`": Object { + "1__return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}\${a}": Object { "End": true, "InputPath": "$.heap7.string", "ResultPath": "$", "Type": "Pass", }, - "1__return \`nixhead\`": Object { + "1__return n\${i}\${x}\${head}": Object { "InputPath": "$.heap4.string", "Next": "handleResult__l2 = input.arr.map(function(x, i, [head]))", "ResultPath": "$.heap3.arr[0]", "Type": "Pass", }, - "1__return \`nx\`": Object { + "1__return n\${x}": Object { "InputPath": "$.heap2.string", "Next": "handleResult__1__l = await func().map(function(x)) 1", "ResultPath": "$.heap1.arr[0]", @@ -9539,7 +9539,7 @@ Object { }, "[ head ]": Object { "InputPath": "$.input.arr[0]", - "Next": "return \`nixhead\`", + "Next": "return n\${i}\${x}\${head}", "ResultPath": "$.head", "Type": "Pass", }, @@ -9549,8 +9549,8 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`aax\`": Object { - "Next": "1__a = \`aax\`", + "a = \${a}a\${x}": Object { + "Next": "1__a = \${a}a\${x}", "Parameters": Object { "string.$": "States.Format('{}a{}',$.a,$.x)", }, @@ -9693,36 +9693,36 @@ Object { }, "Type": "Map", }, - "return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]a\`": Object { - "Next": "1__return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]a\`", + "return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}\${a}": Object { + "Next": "1__return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}\${a}", "Parameters": Object { "string.$": "States.Format('{}{}{}{}{}{}{}',$.l[0],$.l[1],$.l[2],$.l2[0],$.l2[1],$.l2[2],$.a)", }, "ResultPath": "$.heap7", "Type": "Pass", }, - "return \`nixhead\`": Object { - "Next": "1__return \`nixhead\`", + "return a": Object { + "InputPath": "$.a", + "Next": "handleResult__input.arr.map(function(x))", + "ResultPath": "$.heap5.arr[0]", + "Type": "Pass", + }, + "return n\${i}\${x}\${head}": Object { + "Next": "1__return n\${i}\${x}\${head}", "Parameters": Object { "string.$": "States.Format('n{}{}{}',$.i,$.x,$.head)", }, "ResultPath": "$.heap4", "Type": "Pass", }, - "return \`nx\`": Object { - "Next": "1__return \`nx\`", + "return n\${x}": Object { + "Next": "1__return n\${x}", "Parameters": Object { "string.$": "States.Format('n{}',$.x)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "return a": Object { - "InputPath": "$.a", - "Next": "handleResult__input.arr.map(function(x))", - "ResultPath": "$.heap5.arr[0]", - "Type": "Pass", - }, "set__end__1__l = await func().map(function(x)) 1": Object { "InputPath": "$.heap1.result[1:]", "Next": "1__l = await func().map(function(x))", @@ -9731,7 +9731,7 @@ Object { }, "set__end__input.arr.map(function(x))": Object { "InputPath": "$.heap5.result[1:]", - "Next": "return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]a\`", + "Next": "return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}\${a}", "ResultPath": "$.heap5", "Type": "Pass", }, @@ -9743,13 +9743,13 @@ Object { }, "x": Object { "InputPath": "$.heap1.arr[0]", - "Next": "return \`nx\`", + "Next": "return n\${x}", "ResultPath": "$.x", "Type": "Pass", }, "x 1": Object { "InputPath": "$.heap5.arr[0]", - "Next": "a = \`aax\`", + "Next": "a = \${a}a\${x}", "ResultPath": "$.x", "Type": "Pass", }, @@ -9778,23 +9778,23 @@ Object { }, "1__l2 = input.arr.map(function(x))": Object { "InputPath": "$.heap3", - "Next": "return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]\`", + "Next": "return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}", "ResultPath": "$.l2", "Type": "Pass", }, - "1__return \`input.prefixx\`": Object { + "1__return \${input.prefix}\${x}": Object { "InputPath": "$.heap2.string", "Next": "handleResult__1__l = await func().map(function(x)) 1", "ResultPath": "$.heap1.arr[0]", "Type": "Pass", }, - "1__return \`input.prefixx\` 1": Object { + "1__return \${input.prefix}\${x} 1": Object { "InputPath": "$.heap4.string", "Next": "handleResult__l2 = input.arr.map(function(x))", "ResultPath": "$.heap3.arr[0]", "Type": "Pass", }, - "1__return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]\`": Object { + "1__return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}": Object { "End": true, "InputPath": "$.heap5.string", "ResultPath": "$", @@ -9883,24 +9883,24 @@ Object { "ResultPath": "$.heap3", "Type": "Pass", }, - "return \`input.prefixx\`": Object { - "Next": "1__return \`input.prefixx\`", + "return \${input.prefix}\${x}": Object { + "Next": "1__return \${input.prefix}\${x}", "Parameters": Object { "string.$": "States.Format('{}{}',$.input.prefix,$.x)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "return \`input.prefixx\` 1": Object { - "Next": "1__return \`input.prefixx\` 1", + "return \${input.prefix}\${x} 1": Object { + "Next": "1__return \${input.prefix}\${x} 1", "Parameters": Object { "string.$": "States.Format('{}{}',$.input.prefix,$.x)", }, "ResultPath": "$.heap4", "Type": "Pass", }, - "return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]\`": Object { - "Next": "1__return \`l[0]l[1]l[2]l2[0]l2[1]l2[2]\`", + "return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}": Object { + "Next": "1__return \${l[0]}\${l[1]}\${l[2]}\${l2[0]}\${l2[1]}\${l2[2]}", "Parameters": Object { "string.$": "States.Format('{}{}{}{}{}{}',$.l[0],$.l[1],$.l[2],$.l2[0],$.l2[1],$.l2[2])", }, @@ -9921,13 +9921,13 @@ Object { }, "x": Object { "InputPath": "$.heap1.arr[0]", - "Next": "return \`input.prefixx\`", + "Next": "return \${input.prefix}\${x}", "ResultPath": "$.x", "Type": "Pass", }, "x 1": Object { "InputPath": "$.heap3.arr[0]", - "Next": "return \`input.prefixx\` 1", + "Next": "return \${input.prefix}\${x} 1", "ResultPath": "$.x", "Type": "Pass", }, @@ -9939,13 +9939,13 @@ exports[`map with dynamic for loops 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`ax\`": Object { + "1__a = \${a}\${x}": Object { "InputPath": "$.heap5.string", "Next": "tail__for(x of l)", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`ax\` 1": Object { + "1__a = \${a}\${x} 1": Object { "InputPath": "$.heap7.string", "Next": "tail__for(x of l2)", "ResultPath": "$.a", @@ -9972,13 +9972,13 @@ Object { "ResultPath": "$.l2", "Type": "Pass", }, - "1__return \`nx\`": Object { + "1__return n\${x}": Object { "InputPath": "$.heap2.string", "Next": "handleResult__1__l = await func().map(function(x)) 1", "ResultPath": "$.heap1.arr[0]", "Type": "Pass", }, - "1__return \`nx\` 1": Object { + "1__return n\${x} 1": Object { "InputPath": "$.heap4.string", "Next": "handleResult__l2 = input.arr.map(function(x))", "ResultPath": "$.heap3.arr[0]", @@ -10001,16 +10001,16 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`ax\`": Object { - "Next": "1__a = \`ax\`", + "a = \${a}\${x}": Object { + "Next": "1__a = \${a}\${x}", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.x)", }, "ResultPath": "$.heap5", "Type": "Pass", }, - "a = \`ax\` 1": Object { - "Next": "1__a = \`ax\` 1", + "a = \${a}\${x} 1": Object { + "Next": "1__a = \${a}\${x} 1", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.x)", }, @@ -10123,28 +10123,28 @@ Object { "ResultPath": "$.heap3", "Type": "Pass", }, - "return \`nx\`": Object { - "Next": "1__return \`nx\`", + "return a": Object { + "End": true, + "InputPath": "$.a", + "ResultPath": "$", + "Type": "Pass", + }, + "return n\${x}": Object { + "Next": "1__return n\${x}", "Parameters": Object { "string.$": "States.Format('n{}',$.x)", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "return \`nx\` 1": Object { - "Next": "1__return \`nx\` 1", + "return n\${x} 1": Object { + "Next": "1__return n\${x} 1", "Parameters": Object { "string.$": "States.Format('n{}',$.x)", }, "ResultPath": "$.heap4", "Type": "Pass", }, - "return a": Object { - "End": true, - "InputPath": "$.a", - "ResultPath": "$", - "Type": "Pass", - }, "set__end__1__l = await func().map(function(x)) 1": Object { "InputPath": "$.heap1.result[1:]", "Next": "1__l = await func().map(function(x))", @@ -10171,25 +10171,25 @@ Object { }, "x": Object { "InputPath": "$.heap1.arr[0]", - "Next": "return \`nx\`", + "Next": "return n\${x}", "ResultPath": "$.x", "Type": "Pass", }, "x 1": Object { "InputPath": "$.heap3.arr[0]", - "Next": "return \`nx\` 1", + "Next": "return n\${x} 1", "ResultPath": "$.x", "Type": "Pass", }, "x 2": Object { "InputPath": "$.heap6[0]", - "Next": "a = \`ax\`", + "Next": "a = \${a}\${x}", "ResultPath": "$.x", "Type": "Pass", }, "x 3": Object { "InputPath": "$.heap8[0]", - "Next": "a = \`ax\` 1", + "Next": "a = \${a}\${x} 1", "ResultPath": "$.x", "Type": "Pass", }, @@ -10389,33 +10389,33 @@ exports[`templates 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`": Object { + "1__partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}": Object { "InputPath": "$.heap1.string", - "Next": "result = await func(\`input.obj.str hello partOfTheTemplateString input.obj.", + "Next": "result = await func(\${input.obj.str} \${\\"hello\\"} \${partOfTheTemplateString} ", "ResultPath": "$.partOfTheTemplateString", "Type": "Pass", }, - "1__result = await func(\`input.obj.str hello partOfTheTemplateString input.o": Object { + "1__result = await func(\${input.obj.str} \${\\"hello\\"} \${partOfTheTemplateStrin": Object { "InputPath": "$.heap3", - "Next": "return \`the result: result.str\`", + "Next": "return the result: \${result.str}", "ResultPath": "$.result", "Type": "Pass", }, - "1__result = await func(\`input.obj.str hello partOfTheTemplateString input.o 1": Object { + "1__result = await func(\${input.obj.str} \${\\"hello\\"} \${partOfTheTemplateStrin 1": Object { "InputPath": "$.heap2.string", - "Next": "1__result = await func(\`input.obj.str hello partOfTheTemplateString input.o", + "Next": "1__result = await func(\${input.obj.str} \${\\"hello\\"} \${partOfTheTemplateStrin", "Resource": "__REPLACED_TOKEN", "ResultPath": "$.heap3", "Type": "Task", }, - "1__return \`the result: result.str\`": Object { + "1__return the result: \${result.str}": Object { "End": true, "InputPath": "$.heap4.string", "ResultPath": "$", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`", + "Next": "partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}", "Parameters": Object { "fnl_context": Object { "null": null, @@ -10425,15 +10425,15 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "\`hello input.obj.str2 ?? \\"default\\"\`": Object { - "Next": "1__partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`", + "hello \${input.obj.str2 ?? \\"default\\"}": Object { + "Next": "1__partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}", "Parameters": Object { "string.$": "States.Format('hello {}',$.heap0)", }, "ResultPath": "$.heap1", "Type": "Pass", }, - "partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`": Object { + "partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}": Object { "Choices": Array [ Object { "And": Array [ @@ -10446,36 +10446,36 @@ Object { "Variable": "$.input.obj.str2", }, ], - "Next": "takeLeft__partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`", + "Next": "takeLeft__partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}", }, ], - "Default": "takeRight__partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`", + "Default": "takeRight__partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}", "Type": "Choice", }, - "result = await func(\`input.obj.str hello partOfTheTemplateString input.obj.": Object { - "Next": "1__result = await func(\`input.obj.str hello partOfTheTemplateString input.o 1", + "result = await func(\${input.obj.str} \${\\"hello\\"} \${partOfTheTemplateString} ": Object { + "Next": "1__result = await func(\${input.obj.str} \${\\"hello\\"} \${partOfTheTemplateStrin 1", "Parameters": Object { "string.$": "States.Format('{} hello {} {}',$.input.obj.str,$.partOfTheTemplateString,$.input.obj.items[0])", }, "ResultPath": "$.heap2", "Type": "Pass", }, - "return \`the result: result.str\`": Object { - "Next": "1__return \`the result: result.str\`", + "return the result: \${result.str}": Object { + "Next": "1__return the result: \${result.str}", "Parameters": Object { "string.$": "States.Format('the result: {}',$.result.str)", }, "ResultPath": "$.heap4", "Type": "Pass", }, - "takeLeft__partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`": Object { + "takeLeft__partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}": Object { "InputPath": "$.input.obj.str2", - "Next": "\`hello input.obj.str2 ?? \\"default\\"\`", + "Next": "hello \${input.obj.str2 ?? \\"default\\"}", "ResultPath": "$.heap0", "Type": "Pass", }, - "takeRight__partOfTheTemplateString = \`hello input.obj.str2 ?? \\"default\\"\`": Object { - "Next": "\`hello input.obj.str2 ?? \\"default\\"\`", + "takeRight__partOfTheTemplateString = hello \${input.obj.str2 ?? \\"default\\"}": Object { + "Next": "hello \${input.obj.str2 ?? \\"default\\"}", "Result": "default", "ResultPath": "$.heap0", "Type": "Pass", @@ -10488,7 +10488,7 @@ exports[`templates simple 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`x\`": Object { + "1__return \${x}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", @@ -10505,8 +10505,8 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return \`x\`": Object { - "Next": "1__return \`x\`", + "return \${x}": Object { + "Next": "1__return \${x}", "Parameters": Object { "string.$": "States.Format('{}',$.x)", }, @@ -10515,7 +10515,7 @@ Object { }, "x = input.str": Object { "InputPath": "$.input.str", - "Next": "return \`x\`", + "Next": "return \${x}", "ResultPath": "$.x", "Type": "Pass", }, @@ -11233,61 +11233,61 @@ Object { "ResultPath": "$.heap21", "Type": "Map", }, - "1__a = \`aarrmaperr.errorMessage\`": Object { - "InputPath": "$.heap26.string", - "Next": "return a", + "1__a = \${a}\${err.errorMessage}": Object { + "InputPath": "$.heap9.string", + "Next": "try 6", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`adoerr.errorMessage\`": Object { - "InputPath": "$.heap18.string", - "Next": "try 10", + "1__a = \${a}\${err.message}": Object { + "InputPath": "$.heap1.string", + "Next": "try 2", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`aerr.errorMessage\`": Object { - "InputPath": "$.heap9.string", - "Next": "try 6", + "1__a = \${a}arrmap\${err.errorMessage}": Object { + "InputPath": "$.heap26.string", + "Next": "return a", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`aerr.message\`": Object { - "InputPath": "$.heap1.string", - "Next": "try 2", + "1__a = \${a}do\${err.errorMessage}": Object { + "InputPath": "$.heap18.string", + "Next": "try 10", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`afinally1\`": Object { + "1__a = \${a}finally1": Object { "InputPath": "$.heap3.string", "Next": "try 3", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`afinally2\`": Object { + "1__a = \${a}finally2": Object { "InputPath": "$.heap5.string", "Next": "try 4", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`aforerr.errorMessage\`": Object { + "1__a = \${a}for\${err.errorMessage}": Object { "InputPath": "$.heap12.string", "Next": "try 7", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`arecatcherr.message\`": Object { + "1__a = \${a}recatch\${err.message}": Object { "InputPath": "$.heap14.string", "Next": "try 8", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`asfnmaperr.errorMessage\`": Object { + "1__a = \${a}sfnmap\${err.errorMessage}": Object { "InputPath": "$.heap22.string", "Next": "try 11", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`awhileerr.errorMessage\`": Object { + "1__a = \${a}while\${err.errorMessage}": Object { "InputPath": "$.heap16.string", "Next": "try 9", "ResultPath": "$.a", @@ -11313,7 +11313,7 @@ Object { }, "1__catch__try 2": Object { "InputPath": "$.heap2.string", - "Next": "a = \`afinally1\`", + "Next": "a = \${a}finally1", "ResultPath": "$.a", "Type": "Pass", }, @@ -11381,7 +11381,7 @@ Object { }, "1__try 3": Object { "InputPath": "$.heap4.string", - "Next": "a = \`afinally2\`", + "Next": "a = \${a}finally2", "ResultPath": "$.a", "Type": "Pass", }, @@ -11427,80 +11427,80 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`aarrmaperr.errorMessage\`": Object { - "Next": "1__a = \`aarrmaperr.errorMessage\`", + "a = \${a}\${err.errorMessage}": Object { + "Next": "1__a = \${a}\${err.errorMessage}", "Parameters": Object { - "string.$": "States.Format('{}arrmap{}',$.a,$.err.errorMessage)", + "string.$": "States.Format('{}{}',$.a,$.err.errorMessage)", }, - "ResultPath": "$.heap26", + "ResultPath": "$.heap9", "Type": "Pass", }, - "a = \`adoerr.errorMessage\`": Object { - "Next": "1__a = \`adoerr.errorMessage\`", + "a = \${a}\${err.message}": Object { + "Next": "1__a = \${a}\${err.message}", "Parameters": Object { - "string.$": "States.Format('{}do{}',$.a,$.err.errorMessage)", + "string.$": "States.Format('{}{}',$.a,$.err.message)", }, - "ResultPath": "$.heap18", + "ResultPath": "$.heap1", "Type": "Pass", }, - "a = \`aerr.errorMessage\`": Object { - "Next": "1__a = \`aerr.errorMessage\`", + "a = \${a}arrmap\${err.errorMessage}": Object { + "Next": "1__a = \${a}arrmap\${err.errorMessage}", "Parameters": Object { - "string.$": "States.Format('{}{}',$.a,$.err.errorMessage)", + "string.$": "States.Format('{}arrmap{}',$.a,$.err.errorMessage)", }, - "ResultPath": "$.heap9", + "ResultPath": "$.heap26", "Type": "Pass", }, - "a = \`aerr.message\`": Object { - "Next": "1__a = \`aerr.message\`", + "a = \${a}do\${err.errorMessage}": Object { + "Next": "1__a = \${a}do\${err.errorMessage}", "Parameters": Object { - "string.$": "States.Format('{}{}',$.a,$.err.message)", + "string.$": "States.Format('{}do{}',$.a,$.err.errorMessage)", }, - "ResultPath": "$.heap1", + "ResultPath": "$.heap18", "Type": "Pass", }, - "a = \`afinally1\`": Object { - "Next": "1__a = \`afinally1\`", + "a = \${a}finally1": Object { + "Next": "1__a = \${a}finally1", "Parameters": Object { "string.$": "States.Format('{}finally1',$.a)", }, "ResultPath": "$.heap3", "Type": "Pass", }, - "a = \`afinally2\`": Object { - "Next": "1__a = \`afinally2\`", + "a = \${a}finally2": Object { + "Next": "1__a = \${a}finally2", "Parameters": Object { "string.$": "States.Format('{}finally2',$.a)", }, "ResultPath": "$.heap5", "Type": "Pass", }, - "a = \`aforerr.errorMessage\`": Object { - "Next": "1__a = \`aforerr.errorMessage\`", + "a = \${a}for\${err.errorMessage}": Object { + "Next": "1__a = \${a}for\${err.errorMessage}", "Parameters": Object { "string.$": "States.Format('{}for{}',$.a,$.err.errorMessage)", }, "ResultPath": "$.heap12", "Type": "Pass", }, - "a = \`arecatcherr.message\`": Object { - "Next": "1__a = \`arecatcherr.message\`", + "a = \${a}recatch\${err.message}": Object { + "Next": "1__a = \${a}recatch\${err.message}", "Parameters": Object { "string.$": "States.Format('{}recatch{}',$.a,$.err.message)", }, "ResultPath": "$.heap14", "Type": "Pass", }, - "a = \`asfnmaperr.errorMessage\`": Object { - "Next": "1__a = \`asfnmaperr.errorMessage\`", + "a = \${a}sfnmap\${err.errorMessage}": Object { + "Next": "1__a = \${a}sfnmap\${err.errorMessage}", "Parameters": Object { "string.$": "States.Format('{}sfnmap{}',$.a,$.err.errorMessage)", }, "ResultPath": "$.heap22", "Type": "Pass", }, - "a = \`awhileerr.errorMessage\`": Object { - "Next": "1__a = \`awhileerr.errorMessage\`", + "a = \${a}while\${err.errorMessage}": Object { + "Next": "1__a = \${a}while\${err.errorMessage}", "Parameters": Object { "string.$": "States.Format('{}while{}',$.a,$.err.errorMessage)", }, @@ -11563,37 +11563,37 @@ Object { }, "catch(err)": Object { "InputPath": "$.fnl_tmp_4", - "Next": "a = \`aerr.errorMessage\`", + "Next": "a = \${a}\${err.errorMessage}", "ResultPath": "$.err", "Type": "Pass", }, "catch(err) 1": Object { "InputPath": "$.fnl_tmp_5", - "Next": "a = \`aforerr.errorMessage\`", + "Next": "a = \${a}for\${err.errorMessage}", "ResultPath": "$.err", "Type": "Pass", }, "catch(err) 2": Object { "InputPath": "$.fnl_tmp_9", - "Next": "a = \`awhileerr.errorMessage\`", + "Next": "a = \${a}while\${err.errorMessage}", "ResultPath": "$.err", "Type": "Pass", }, "catch(err) 3": Object { "InputPath": "$.fnl_tmp_10", - "Next": "a = \`adoerr.errorMessage\`", + "Next": "a = \${a}do\${err.errorMessage}", "ResultPath": "$.err", "Type": "Pass", }, "catch(err) 4": Object { "InputPath": "$.fnl_tmp_11", - "Next": "a = \`asfnmaperr.errorMessage\`", + "Next": "a = \${a}sfnmap\${err.errorMessage}", "ResultPath": "$.err", "Type": "Pass", }, "catch(err) 5": Object { "InputPath": "$.fnl_tmp_12", - "Next": "a = \`aarrmaperr.errorMessage\`", + "Next": "a = \${a}arrmap\${err.errorMessage}", "ResultPath": "$.err", "Type": "Pass", }, @@ -11607,7 +11607,7 @@ Object { }, "catch__try 1": Object { "InputPath": "$.fnl_tmp_1", - "Next": "a = \`aerr.message\`", + "Next": "a = \${a}\${err.message}", "ResultPath": "$.err", "Type": "Pass", }, @@ -11661,7 +11661,7 @@ Object { }, "catch__try 7": Object { "InputPath": "$.fnl_tmp_6", - "Next": "a = \`arecatcherr.message\`", + "Next": "a = \${a}recatch\${err.message}", "ResultPath": "$.err", "Type": "Pass", }, diff --git a/test/__snapshots__/step-function.test.ts.snap b/test/__snapshots__/step-function.test.ts.snap index 11e704e1..04138d03 100644 --- a/test/__snapshots__/step-function.test.ts.snap +++ b/test/__snapshots__/step-function.test.ts.snap @@ -61,16 +61,16 @@ Object { "$SFN.map([1, 2, 3], function(item))": Object { "ItemsPath": "$.heap1", "Iterator": Object { - "StartAt": "return \`nitem\`", + "StartAt": "return n\${item}", "States": Object { - "1__return \`nitem\`": Object { + "1__return n\${item}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", "Type": "Pass", }, - "return \`nitem\`": Object { - "Next": "1__return \`nitem\`", + "return n\${item}": Object { + "Next": "1__return n\${item}", "Parameters": Object { "string.$": "States.Format('n{}',$.item)", }, @@ -1603,14 +1603,14 @@ exports[`\`template me \${await task(input.value)}\` 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`template me await task(input.value)\`": Object { + "1__return template me \${await task(input.value)}": Object { "End": true, "InputPath": "$.heap1.string", "ResultPath": "$", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "return \`template me await task(input.value)\`", + "Next": "return template me \${await task(input.value)}", "Parameters": Object { "fnl_context": Object { "null": null, @@ -1620,21 +1620,21 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "\`template me await task(input.value)\`": Object { - "Next": "1__return \`template me await task(input.value)\`", + "return template me \${await task(input.value)}": Object { + "InputPath": "$.input.value", + "Next": "template me \${await task(input.value)}", + "Resource": "__REPLACED_TOKEN", + "ResultPath": "$.heap0", + "Type": "Task", + }, + "template me \${await task(input.value)}": Object { + "Next": "1__return template me \${await task(input.value)}", "Parameters": Object { "string.$": "States.Format('template me {}',$.heap0)", }, "ResultPath": "$.heap1", "Type": "Pass", }, - "return \`template me await task(input.value)\`": Object { - "InputPath": "$.input.value", - "Next": "\`template me await task(input.value)\`", - "Resource": "__REPLACED_TOKEN", - "ResultPath": "$.heap0", - "Type": "Task", - }, }, } `; @@ -1643,14 +1643,14 @@ exports[`\`template me \${input.value}\` 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`template me input.value\`": Object { + "1__return template me \${input.value}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "return \`template me input.value\`", + "Next": "return template me \${input.value}", "Parameters": Object { "fnl_context": Object { "null": null, @@ -1660,8 +1660,8 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return \`template me input.value\`": Object { - "Next": "1__return \`template me input.value\`", + "return template me \${input.value}": Object { + "Next": "1__return template me \${input.value}", "Parameters": Object { "string.$": "States.Format('template me {}',$.input.value)", }, @@ -1833,12 +1833,12 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "1__for({key,value} = {key: \\"x\\", value: \\"y\\"};;) 1": Object { - "Next": "return \`keyvalue\`", + "Next": "return \${key}\${value}", "Result": "y", "ResultPath": "$.value", "Type": "Pass", }, - "1__return \`keyvalue\`": Object { + "1__return \${key}\${value}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", @@ -1860,8 +1860,8 @@ Object { "ResultPath": "$.key", "Type": "Pass", }, - "return \`keyvalue\`": Object { - "Next": "1__return \`keyvalue\`", + "return \${key}\${value}": Object { + "Next": "1__return \${key}\${value}", "Parameters": Object { "string.$": "States.Format('{}{}',$.key,$.value)", }, @@ -1876,7 +1876,7 @@ exports[`binding forOf 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`keyvaluea\`": Object { + "1__a = \${key}\${value}\${a}": Object { "InputPath": "$.heap0.string", "Next": "tail__for({key,value} of input.value)", "ResultPath": "$.a", @@ -1884,7 +1884,7 @@ Object { }, "1__{ key, value }": Object { "InputPath": "$.heap1[0]['value']", - "Next": "a = \`keyvaluea\`", + "Next": "a = \${key}\${value}\${a}", "ResultPath": "$.value", "Type": "Pass", }, @@ -1905,8 +1905,8 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`keyvaluea\`": Object { - "Next": "1__a = \`keyvaluea\`", + "a = \${key}\${value}\${a}": Object { + "Next": "1__a = \${key}\${value}\${a}", "Parameters": Object { "string.$": "States.Format('{}{}{}',$.key,$.value,$.a)", }, @@ -1972,7 +1972,7 @@ Object { "Iterator": Object { "StartAt": "function({value:b,arr:[c]})", "States": Object { - "1__return \`bc\`": Object { + "1__return \${b}\${c}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", @@ -1980,7 +1980,7 @@ Object { }, "[ c ]": Object { "InputPath": "$.heap1['arr'][0]", - "Next": "return \`bc\`", + "Next": "return \${b}\${c}", "ResultPath": "$.c", "Type": "Pass", }, @@ -1990,8 +1990,8 @@ Object { "ResultPath": "$.b", "Type": "Pass", }, - "return \`bc\`": Object { - "Next": "1__return \`bc\`", + "return \${b}\${c}": Object { + "Next": "1__return \${b}\${c}", "Parameters": Object { "string.$": "States.Format('{}{}',$.b,$.c)", }, @@ -2108,7 +2108,7 @@ Object { "Iterator": Object { "StartAt": "function({value:b,arr:[c]})", "States": Object { - "1__return \`bc\`": Object { + "1__return \${b}\${c}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", @@ -2116,7 +2116,7 @@ Object { }, "[ c ]": Object { "InputPath": "$.heap1['arr'][0]", - "Next": "return \`bc\`", + "Next": "return \${b}\${c}", "ResultPath": "$.c", "Type": "Pass", }, @@ -2126,8 +2126,8 @@ Object { "ResultPath": "$.b", "Type": "Pass", }, - "return \`bc\`": Object { - "Next": "1__return \`bc\`", + "return \${b}\${c}": Object { + "Next": "1__return \${b}\${c}", "Parameters": Object { "string.$": "States.Format('{}{}',$.b,$.c)", }, @@ -2190,7 +2190,7 @@ exports[`binding functions forEach 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`bc\`": Object { + "1__return \${b}\${c}": Object { "InputPath": "$.heap1.string", "Next": "tail__input.value.forEach(function({value:b,arr:[c]}))", "ResultPath": "$.heap0.arr[0]", @@ -2209,7 +2209,7 @@ Object { }, "[ c ]": Object { "InputPath": "$.heap0.arr[0]['arr'][0]", - "Next": "return \`bc\`", + "Next": "return \${b}\${c}", "ResultPath": "$.c", "Type": "Pass", }, @@ -2244,8 +2244,8 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return \`bc\`": Object { - "Next": "1__return \`bc\`", + "return \${b}\${c}": Object { + "Next": "1__return \${b}\${c}", "Parameters": Object { "string.$": "States.Format('{}{}',$.b,$.c)", }, @@ -2272,7 +2272,7 @@ exports[`binding functions map 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`bc\`": Object { + "1__return \${b}\${c}": Object { "InputPath": "$.heap1.string", "Next": "handleResult__return input.value.map(function({value:b,arr:[c]})).join()", "ResultPath": "$.heap0.arr[0]", @@ -2303,7 +2303,7 @@ Object { }, "[ c ]": Object { "InputPath": "$.heap0.arr[0]['arr'][0]", - "Next": "return \`bc\`", + "Next": "return \${b}\${c}", "ResultPath": "$.c", "Type": "Pass", }, @@ -2392,8 +2392,8 @@ Object { "ResultPath": "$.heap3.string", "Type": "Pass", }, - "return \`bc\`": Object { - "Next": "1__return \`bc\`", + "return \${b}\${c}": Object { + "Next": "1__return \${b}\${c}", "Parameters": Object { "string.$": "States.Format('{}{}',$.b,$.c)", }, @@ -2441,6 +2441,12 @@ exports[`binding functions use in map 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { + "1__return \${value}\${v}": Object { + "InputPath": "$.heap2.string", + "Next": "handleResult__1__return [1, 2, 3].map(function()).join() 2", + "ResultPath": "$.heap1.arr[0]", + "Type": "Pass", + }, "1__return [1, 2, 3].map(function()).join()": Object { "End": true, "InputPath": "$.heap4.string", @@ -2462,12 +2468,6 @@ Object { "ResultPath": "$.heap1", "Type": "Pass", }, - "1__return \`valuev\`": Object { - "InputPath": "$.heap2.string", - "Next": "handleResult__1__return [1, 2, 3].map(function()).join() 2", - "ResultPath": "$.heap1.arr[0]", - "Type": "Pass", - }, "1__{ value, obj }": Object { "InputPath": "$$.Execution.Input['obj']", "Next": "{value:v} = obj", @@ -2496,7 +2496,7 @@ Object { "Choices": Array [ Object { "IsPresent": true, - "Next": "return \`valuev\`", + "Next": "return \${value}\${v}", "Variable": "$.heap1.arr[0]", }, ], @@ -2569,6 +2569,14 @@ Object { "ResultPath": "$.heap4.string", "Type": "Pass", }, + "return \${value}\${v}": Object { + "Next": "1__return \${value}\${v}", + "Parameters": Object { + "string.$": "States.Format('{}{}',$.value,$.v)", + }, + "ResultPath": "$.heap2", + "Type": "Pass", + }, "return [1, 2, 3].map(function()).join()": Object { "Next": "1__return [1, 2, 3].map(function()).join() 2", "Result": Array [ @@ -2579,14 +2587,6 @@ Object { "ResultPath": "$.heap0", "Type": "Pass", }, - "return \`valuev\`": Object { - "Next": "1__return \`valuev\`", - "Parameters": Object { - "string.$": "States.Format('{}{}',$.value,$.v)", - }, - "ResultPath": "$.heap2", - "Type": "Pass", - }, "returnEmpty__1__return [1, 2, 3].map(function()).join() 1": Object { "Next": "1__return [1, 2, 3].map(function()).join()", "Result": "", @@ -4967,7 +4967,7 @@ exports[`closure from map 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`aitem\`": Object { + "1__return \${a}\${item}": Object { "InputPath": "$.heap1.string", "Next": "handleResult__return input.list.map(function(item))", "ResultPath": "$.heap0.arr[0]", @@ -5026,12 +5026,12 @@ Object { }, "item": Object { "InputPath": "$.heap0.arr[0]", - "Next": "return \`aitem\`", + "Next": "return \${a}\${item}", "ResultPath": "$.item", "Type": "Pass", }, - "return \`aitem\`": Object { - "Next": "1__return \`aitem\`", + "return \${a}\${item}": Object { + "Next": "1__return \${a}\${item}", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.item)", }, @@ -6010,13 +6010,13 @@ exports[`for assign 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`i\`": Object { + "1__a = \${i}": Object { "InputPath": "$.heap0.string", "Next": "tail__for(i in input.items)", "ResultPath": "$.a", "Type": "Pass", }, - "1__a = \`i\` 1": Object { + "1__a = \${i} 1": Object { "InputPath": "$.heap2.string", "Next": "tail__for(i of input.items)", "ResultPath": "$.a", @@ -6059,16 +6059,16 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`i\`": Object { - "Next": "1__a = \`i\`", + "a = \${i}": Object { + "Next": "1__a = \${i}", "Parameters": Object { "string.$": "States.Format('{}',$.i)", }, "ResultPath": "$.heap0", "Type": "Pass", }, - "a = \`i\` 1": Object { - "Next": "1__a = \`i\` 1", + "a = \${i} 1": Object { + "Next": "1__a = \${i} 1", "Parameters": Object { "string.$": "States.Format('{}',$.i)", }, @@ -6077,7 +6077,7 @@ Object { }, "assignValue__i": Object { "InputPath": "$.heap1[0].item", - "Next": "a = \`i\`", + "Next": "a = \${i}", "ResultPath": "$.0__i", "Type": "Pass", }, @@ -6123,7 +6123,7 @@ Object { }, "i 1": Object { "InputPath": "$.heap3[0]", - "Next": "a = \`i\` 1", + "Next": "a = \${i} 1", "ResultPath": "$.i", "Type": "Pass", }, @@ -10462,7 +10462,7 @@ exports[`list.forEach(item => ) 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__a = \`aitem\`": Object { + "1__a = \${a}\${item}": Object { "InputPath": "$.heap1.string", "Next": "return null 1", "ResultPath": "$.a", @@ -10485,8 +10485,8 @@ Object { "ResultPath": "$.a", "Type": "Pass", }, - "a = \`aitem\`": Object { - "Next": "1__a = \`aitem\`", + "a = \${a}\${item}": Object { + "Next": "1__a = \${a}\${item}", "Parameters": Object { "string.$": "States.Format('{}{}',$.a,$.item)", }, @@ -10520,7 +10520,7 @@ Object { }, "item": Object { "InputPath": "$.heap0.arr[0]", - "Next": "a = \`aitem\`", + "Next": "a = \${a}\${item}", "ResultPath": "$.item", "Type": "Pass", }, @@ -13372,14 +13372,14 @@ exports[`template literal strings 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return task({key: \`input.obj.str hello input.obj.items[0]\`})": Object { + "1__return task({key: \${input.obj.str} \${\\"hello\\"} \${input.obj.items[0]}})": Object { "End": true, "InputPath": "$.heap1", "ResultPath": "$", "Type": "Pass", }, - "1__return task({key: \`input.obj.str hello input.obj.items[0]\`}) 1": Object { - "Next": "1__return task({key: \`input.obj.str hello input.obj.items[0]\`})", + "1__return task({key: \${input.obj.str} \${\\"hello\\"} \${input.obj.items[0]}}) 1": Object { + "Next": "1__return task({key: \${input.obj.str} \${\\"hello\\"} \${input.obj.items[0]}})", "Parameters": Object { "key.$": "$.heap0.string", }, @@ -13388,7 +13388,7 @@ Object { "Type": "Task", }, "Initialize Functionless Context": Object { - "Next": "return task({key: \`input.obj.str hello input.obj.items[0]\`})", + "Next": "return task({key: \${input.obj.str} \${\\"hello\\"} \${input.obj.items[0]}})", "Parameters": Object { "fnl_context": Object { "null": null, @@ -13398,8 +13398,8 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return task({key: \`input.obj.str hello input.obj.items[0]\`})": Object { - "Next": "1__return task({key: \`input.obj.str hello input.obj.items[0]\`}) 1", + "return task({key: \${input.obj.str} \${\\"hello\\"} \${input.obj.items[0]}})": Object { + "Next": "1__return task({key: \${input.obj.str} \${\\"hello\\"} \${input.obj.items[0]}}) 1", "Parameters": Object { "string.$": "States.Format('{} hello {}',$.input.obj.str,$.input.obj.items[0])", }, @@ -13414,14 +13414,22 @@ exports[`template literal strings complex 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.obj.item": Object { + "\${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input.obj.items[0] ?? awai": Object { + "Next": "1__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input 1", + "Parameters": Object { + "string.$": "States.Format('{} hello hello {}',$.heap0,$.heap2)", + }, + "ResultPath": "$.heap3", + "Type": "Pass", + }, + "1__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input": Object { "End": true, "InputPath": "$.heap4", "ResultPath": "$", "Type": "Pass", }, - "1__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.obj.item 1": Object { - "Next": "1__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.obj.item", + "1__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input 1": Object { + "Next": "1__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input", "Parameters": Object { "key.$": "$.heap3.string", }, @@ -13430,7 +13438,7 @@ Object { "Type": "Task", }, "Initialize Functionless Context": Object { - "Next": "return task({key: \`input.obj.str ?? \\"default\\" hello hello input.obj.items[0", + "Next": "return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input.ob", "Parameters": Object { "fnl_context": Object { "null": null, @@ -13440,14 +13448,6 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "\`input.obj.str ?? \\"default\\" hello hello input.obj.items[0] ?? await task()\`": Object { - "Next": "1__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.obj.item 1", - "Parameters": Object { - "string.$": "States.Format('{} hello hello {}',$.heap0,$.heap2)", - }, - "ResultPath": "$.heap3", - "Type": "Pass", - }, "input.obj.items[0] ?? await task()": Object { "InputPath": "$.fnl_context.null", "Next": "input.obj.items[0] ?? await task() 1", @@ -13474,7 +13474,7 @@ Object { "Default": "takeRight__input.obj.items[0] ?? await task() 1", "Type": "Choice", }, - "return task({key: \`input.obj.str ?? \\"default\\" hello hello input.obj.items[0": Object { + "return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input.ob": Object { "Choices": Array [ Object { "And": Array [ @@ -13487,19 +13487,19 @@ Object { "Variable": "$.input.obj.str", }, ], - "Next": "takeLeft__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.o", + "Next": "takeLeft__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} ", }, ], - "Default": "takeRight__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.", + "Default": "takeRight__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"}", "Type": "Choice", }, "takeLeft__input.obj.items[0] ?? await task() 1": Object { "InputPath": "$.input.obj.items[0]", - "Next": "\`input.obj.str ?? \\"default\\" hello hello input.obj.items[0] ?? await task()\`", + "Next": "\${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input.obj.items[0] ?? awai", "ResultPath": "$.heap2", "Type": "Pass", }, - "takeLeft__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.o": Object { + "takeLeft__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} ": Object { "InputPath": "$.input.obj.str", "Next": "input.obj.items[0] ?? await task()", "ResultPath": "$.heap0", @@ -13507,11 +13507,11 @@ Object { }, "takeRight__input.obj.items[0] ?? await task() 1": Object { "InputPath": "$.heap1", - "Next": "\`input.obj.str ?? \\"default\\" hello hello input.obj.items[0] ?? await task()\`", + "Next": "\${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"} \${input.obj.items[0] ?? awai", "ResultPath": "$.heap2", "Type": "Pass", }, - "takeRight__return task({key: \`input.obj.str ?? \\"default\\" hello hello input.": Object { + "takeRight__return task({key: \${input.obj.str ?? \\"default\\"} hello \${\\"hello\\"}": Object { "Next": "input.obj.items[0] ?? await task()", "Result": "default", "ResultPath": "$.heap0", @@ -16526,14 +16526,14 @@ exports[`use context parameter in template 1`] = ` Object { "StartAt": "Initialize Functionless Context", "States": Object { - "1__return \`name: context.Execution.Id\`": Object { + "1__return name: \${context.Execution.Id}": Object { "End": true, "InputPath": "$.heap0.string", "ResultPath": "$", "Type": "Pass", }, "Initialize Functionless Context": Object { - "Next": "return \`name: context.Execution.Id\`", + "Next": "return name: \${context.Execution.Id}", "Parameters": Object { "_.$": "$", "fnl_context": Object { @@ -16543,8 +16543,8 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return \`name: context.Execution.Id\`": Object { - "Next": "1__return \`name: context.Execution.Id\`", + "return name: \${context.Execution.Id}": Object { + "Next": "1__return name: \${context.Execution.Id}", "Parameters": Object { "string.$": "States.Format('name: {}',$$.Execution.Id)", }, From e4cfc110915f0d689bb53d07dc2b6535336d47cf Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 18:28:55 -0700 Subject: [PATCH 029/107] feat: add label to BreakStmt and ContinueStmt, and fix parsing of LabelledStmt --- src/compile.ts | 9 +++++++-- src/statement.ts | 10 ++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index 99047042..d3d874e8 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -725,9 +725,13 @@ export function compile( ts.factory.createStringLiteral(node.text), ]); } else if (ts.isBreakStatement(node)) { - return newExpr(NodeKind.BreakStmt, []); + return newExpr(NodeKind.BreakStmt, [ + ...(node.label ? [toExpr(node.label, scope)] : []), + ]); } else if (ts.isContinueStatement(node)) { - return newExpr(NodeKind.ContinueStmt, []); + return newExpr(NodeKind.ContinueStmt, [ + ...(node.label ? [toExpr(node.label, scope)] : []), + ]); } else if (ts.isTryStatement(node)) { return newExpr(NodeKind.TryStmt, [ toExpr(node.tryBlock, scope), @@ -841,6 +845,7 @@ export function compile( return newExpr(NodeKind.DebuggerStmt, []); } else if (ts.isLabeledStatement(node)) { return newExpr(NodeKind.LabelledStmt, [ + toExpr(node.label, scope), toExpr(node.statement, scope), ]); } else if (ts.isSwitchStatement(node)) { diff --git a/src/statement.ts b/src/statement.ts index afbd8850..849d014a 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -185,14 +185,16 @@ export class ForStmt extends BaseStmt { } export class BreakStmt extends BaseStmt { - constructor() { + constructor(readonly label?: Identifier) { super(NodeKind.BreakStmt, arguments); + this.ensure(label, "label", ["undefined", NodeKind.Identifier]); } } export class ContinueStmt extends BaseStmt { - constructor() { + constructor(readonly label?: Identifier) { super(NodeKind.ContinueStmt, arguments); + this.ensure(label, "label", ["undefined", NodeKind.Identifier]); } } @@ -259,9 +261,9 @@ export class DoStmt extends BaseStmt { } export class LabelledStmt extends BaseStmt { - constructor(readonly label: string, readonly stmt: Stmt) { + constructor(readonly label: Identifier, readonly stmt: Stmt) { super(NodeKind.LabelledStmt, arguments); - this.ensure(label, "label", ["string"]); + this.ensure(label, "label", [NodeKind.Identifier]); this.ensure(stmt, "stmt", ["Stmt"]); } } From 48d7d02ec90cd30c1d2a2774d9e9238d5014acd9 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 18:29:23 -0700 Subject: [PATCH 030/107] improvements to AST tranfsorm --- src/serialize-closure.ts | 289 ++++++++++++++++++++++++++++++++++----- 1 file changed, 257 insertions(+), 32 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 94491c5b..3f95285a 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -12,38 +12,64 @@ import { isBindingElem, isBlockStmt, isBooleanLiteralExpr, + isBreakStmt, isCallExpr, + isCatchClause, isClassDecl, isClassExpr, isClassStaticBlockDecl, isComputedPropertyNameExpr, + isConditionExpr, isConstructorDecl, + isDeleteExpr, + isDoStmt, isElementAccessExpr, isExprStmt, + isForInStmt, + isForOfStmt, + isForStmt, isFunctionDecl, isFunctionExpr, isFunctionLike, isGetAccessorDecl, isIdentifier, + isIfStmt, isMethodDecl, isNewExpr, + isNoSubstitutionTemplateLiteral, isNullLiteralExpr, isNumberLiteralExpr, isObjectBinding, isObjectLiteralExpr, isOmittedExpr, isParameterDecl, + isParenthesizedExpr, + isPostfixUnaryExpr, + isPrivateIdentifier, isPropAccessExpr, isPropAssignExpr, isPropDecl, + isReferenceExpr, + isRegexExpr, isSetAccessorDecl, isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, + isSuperKeyword, + isTaggedTemplateExpr, + isTemplateExpr, + isTemplateHead, + isTemplateMiddle, + isTemplateSpan, + isTemplateTail, + isThisExpr, + isTryStmt, + isUnaryExpr, isUndefinedLiteralExpr, isVariableDecl, isVariableDeclList, isVariableStmt, + isWhileStmt, isYieldExpr, } from "./guards"; import { FunctionlessNode } from "./node"; @@ -201,7 +227,9 @@ export function serializeClosure(func: AnyFunction): string { } function serializeAST(node: FunctionlessNode): ts.Node { - if (isArrowFunctionExpr(node)) { + if (isReferenceExpr(node)) { + // TODO: serialize value captured in closure + } else if (isArrowFunctionExpr(node)) { return ts.factory.createArrowFunction( node.isAsync ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] @@ -265,8 +293,14 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createBlock( node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) ); + } else if (isThisExpr(node)) { + return ts.factory.createThis(); + } else if (isSuperKeyword(node)) { + return ts.factory.createSuper(); } else if (isIdentifier(node)) { return ts.factory.createIdentifier(node.name); + } else if (isPrivateIdentifier(node)) { + return ts.factory.createPrivateIdentifier(node.name); } else if (isPropAccessExpr(node)) { return ts.factory.createPropertyAccessChain( serializeAST(node.expr) as ts.Expression, @@ -486,37 +520,228 @@ export function serializeClosure(func: AnyFunction): string { serializeAST(node.expr) as ts.Expression ); } - } - // else if (isBinaryExpr(node)) { - // return ts.factory.createBinaryExpression( - // serializeAST(node.left) as ts.Expression, - // ts.factory.createToken( - // node.op === "!=" - // ? ts.SyntaxKind.ExclamationEqualsToken - // : node.op === "!==" - // ? ts.SyntaxKind.ExclamationEqualsEqualsToken - // : node.op === "==" - // ? ts.SyntaxKind.EqualsEqualsToken - // : node.op === "===" - // ? ts.SyntaxKind.EqualsEqualsEqualsToken - // : node.op === "%" - // ? ts.SyntaxKind.PercentToken - // : node.op === "%=" - // ? ts.SyntaxKind.PercentEqualsToken - // : node.op === "&&" - // ? ts.SyntaxKind.AmpersandAmpersandToken - // : node.op === "&" - // ? ts.SyntaxKind.AmpersandAmpersandToken - // : node.op === "*" - // ? ts.SyntaxKind.AsteriskToken - // : node.op === "**" - // ? ts.SyntaxKind.AsteriskToken - // : undefined! - // ), - // serializeAST(node.right) as ts.Expression - // ); - // } - else { + } else if (isUnaryExpr(node)) { + return ts.factory.createPrefixUnaryExpression( + node.op === "!" + ? ts.SyntaxKind.ExclamationToken + : node.op === "+" + ? ts.SyntaxKind.PlusToken + : node.op === "++" + ? ts.SyntaxKind.PlusPlusToken + : node.op === "-" + ? ts.SyntaxKind.MinusToken + : node.op === "--" + ? ts.SyntaxKind.MinusMinusToken + : node.op === "~" + ? ts.SyntaxKind.TildeToken + : assertNever(node.op), + serializeAST(node.expr) as ts.Expression + ); + } else if (isPostfixUnaryExpr(node)) { + return ts.factory.createPostfixUnaryExpression( + serializeAST(node.expr) as ts.Expression, + node.op === "++" + ? ts.SyntaxKind.PlusPlusToken + : node.op === "--" + ? ts.SyntaxKind.MinusMinusToken + : assertNever(node.op) + ); + } else if (isBinaryExpr(node)) { + return ts.factory.createBinaryExpression( + serializeAST(node.left) as ts.Expression, + node.op === "!=" + ? ts.SyntaxKind.ExclamationEqualsToken + : node.op === "!==" + ? ts.SyntaxKind.ExclamationEqualsEqualsToken + : node.op === "==" + ? ts.SyntaxKind.EqualsEqualsToken + : node.op === "===" + ? ts.SyntaxKind.EqualsEqualsEqualsToken + : node.op === "%" + ? ts.SyntaxKind.PercentToken + : node.op === "%=" + ? ts.SyntaxKind.PercentEqualsToken + : node.op === "&&" + ? ts.SyntaxKind.AmpersandAmpersandToken + : node.op === "&" + ? ts.SyntaxKind.AmpersandAmpersandToken + : node.op === "*" + ? ts.SyntaxKind.AsteriskToken + : node.op === "**" + ? ts.SyntaxKind.AsteriskToken + : node.op === "&&=" + ? ts.SyntaxKind.AmpersandAmpersandEqualsToken + : node.op === "&=" + ? ts.SyntaxKind.AmpersandEqualsToken + : node.op === "**=" + ? ts.SyntaxKind.AsteriskAsteriskEqualsToken + : node.op === "*=" + ? ts.SyntaxKind.AsteriskEqualsToken + : node.op === "+" + ? ts.SyntaxKind.PlusToken + : node.op === "+=" + ? ts.SyntaxKind.PlusEqualsToken + : node.op === "," + ? ts.SyntaxKind.CommaToken + : node.op === "-" + ? ts.SyntaxKind.MinusToken + : node.op === "-=" + ? ts.SyntaxKind.MinusEqualsToken + : node.op === "/" + ? ts.SyntaxKind.SlashToken + : node.op === "/=" + ? ts.SyntaxKind.SlashEqualsToken + : node.op === "<" + ? ts.SyntaxKind.LessThanToken + : node.op === "<=" + ? ts.SyntaxKind.LessThanEqualsToken + : node.op === "<<" + ? ts.SyntaxKind.LessThanLessThanToken + : node.op === "<<=" + ? ts.SyntaxKind.LessThanLessThanEqualsToken + : node.op === "=" + ? ts.SyntaxKind.EqualsToken + : node.op === ">" + ? ts.SyntaxKind.GreaterThanToken + : node.op === ">>" + ? ts.SyntaxKind.GreaterThanGreaterThanToken + : node.op === ">>>" + ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanToken + : node.op === ">=" + ? ts.SyntaxKind.GreaterThanEqualsToken + : node.op === ">>=" + ? ts.SyntaxKind.GreaterThanGreaterThanEqualsToken + : node.op === ">>>=" + ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken + : node.op === "??" + ? ts.SyntaxKind.QuestionQuestionToken + : node.op === "??=" + ? ts.SyntaxKind.QuestionQuestionEqualsToken + : node.op === "^" + ? ts.SyntaxKind.CaretToken + : node.op === "^=" + ? ts.SyntaxKind.CaretEqualsToken + : node.op === "in" + ? ts.SyntaxKind.InKeyword + : node.op === "instanceof" + ? ts.SyntaxKind.InstanceOfKeyword + : node.op === "|" + ? ts.SyntaxKind.BarToken + : node.op === "||" + ? ts.SyntaxKind.BarBarToken + : node.op === "|=" + ? ts.SyntaxKind.BarEqualsToken + : node.op === "||=" + ? ts.SyntaxKind.BarBarEqualsToken + : assertNever(node.op), + serializeAST(node.right) as ts.Expression + ); + } else if (isConditionExpr(node)) { + return ts.factory.createConditionalExpression( + serializeAST(node.when) as ts.Expression, + undefined, + serializeAST(node.then) as ts.Expression, + undefined, + serializeAST(node._else) as ts.Expression + ); + } else if (isIfStmt(node)) { + return ts.factory.createIfStatement( + serializeAST(node.when) as ts.Expression, + serializeAST(node.then) as ts.Statement, + node._else ? (serializeAST(node._else) as ts.Statement) : undefined + ); + } else if (isForStmt(node)) { + return ts.factory.createForStatement( + node.initializer + ? (serializeAST(node.initializer) as ts.ForInitializer) + : undefined, + node.condition + ? (serializeAST(node.condition) as ts.Expression) + : undefined, + node.incrementor + ? (serializeAST(node.incrementor) as ts.Expression) + : undefined, + serializeAST(node.body) as ts.Statement + ); + } else if (isForOfStmt(node)) { + return ts.factory.createForOfStatement( + node.isAwait + ? ts.factory.createToken(ts.SyntaxKind.AwaitKeyword) + : undefined, + serializeAST(node.initializer) as ts.ForInitializer, + serializeAST(node.expr) as ts.Expression, + serializeAST(node.body) as ts.Statement + ); + } else if (isForInStmt(node)) { + return ts.factory.createForInStatement( + serializeAST(node.initializer) as ts.ForInitializer, + serializeAST(node.expr) as ts.Expression, + serializeAST(node.body) as ts.Statement + ); + } else if (isWhileStmt(node)) { + return ts.factory.createWhileStatement( + serializeAST(node.condition) as ts.Expression, + serializeAST(node.block) as ts.Statement + ); + } else if (isDoStmt(node)) { + return ts.factory.createDoStatement( + serializeAST(node.block) as ts.Statement, + serializeAST(node.condition) as ts.Expression + ); + } else if (isBreakStmt(node)) { + return ts.factory.createBreakStatement(node); + } else if (isTryStmt(node)) { + return ts.factory.createTryStatement( + serializeAST(node.tryBlock) as ts.Block, + node.catchClause + ? (serializeAST(node.catchClause) as ts.CatchClause) + : undefined, + node.finallyBlock + ? (serializeAST(node.finallyBlock) as ts.Block) + : undefined + ); + } else if (isCatchClause(node)) { + return ts.factory.createCatchClause( + node.variableDecl + ? (serializeAST(node.variableDecl) as ts.VariableDeclaration) + : undefined, + serializeAST(node.block) as ts.Block + ); + } else if (isDeleteExpr(node)) { + return ts.factory.createDeleteExpression( + serializeAST(node.expr) as ts.Expression + ); + } else if (isParenthesizedExpr(node)) { + return ts.factory.createParenthesizedExpression( + serializeAST(node.expr) as ts.Expression + ); + } else if (isRegexExpr(node)) { + return ts.factory.createRegularExpressionLiteral(node.regex.source); + } else if (isTemplateExpr(node)) { + return ts.factory.createTemplateExpression( + serializeAST(node.head) as ts.TemplateHead, + node.spans.map((span) => serializeAST(span) as ts.TemplateSpan) + ); + } else if (isTaggedTemplateExpr(node)) { + return ts.factory.createTaggedTemplateExpression( + serializeAST(node.tag) as ts.Expression, + undefined, + serializeAST(node.template) as ts.TemplateLiteral + ); + } else if (isNoSubstitutionTemplateLiteral(node)) { + return ts.factory.createNoSubstitutionTemplateLiteral(node.text); + } else if (isTemplateHead(node)) { + return ts.factory.createTemplateHead(node.text); + } else if (isTemplateSpan(node)) { + return ts.factory.createTemplateSpan( + serializeAST(node.expr) as ts.Expression, + serializeAST(node.literal) as ts.TemplateMiddle | ts.TemplateTail + ); + } else if (isTemplateMiddle(node)) { + return ts.factory.createTemplateMiddle(node.text); + } else if (isTemplateTail(node)) { + return ts.factory.createTemplateTail(node.text); + } else { return assertNever(node); } } From 365fd536f9087ee4e1a5dc88e0eeeb004f553690 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 18:36:14 -0700 Subject: [PATCH 031/107] feat: add expr to SwitchStmt --- src/compile.ts | 1 + src/statement.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compile.ts b/src/compile.ts index d3d874e8..97f8cd14 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -850,6 +850,7 @@ export function compile( ]); } else if (ts.isSwitchStatement(node)) { return newExpr(NodeKind.SwitchStmt, [ + toExpr(node.expression, scope), ts.factory.createArrayLiteralExpression( node.caseBlock.clauses.map((clause) => toExpr(clause, scope)) ), diff --git a/src/statement.ts b/src/statement.ts index 849d014a..8169970c 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -275,8 +275,9 @@ export class DebuggerStmt extends BaseStmt { } export class SwitchStmt extends BaseStmt { - constructor(readonly clauses: SwitchClause[]) { + constructor(readonly expr: Expr, readonly clauses: SwitchClause[]) { super(NodeKind.SwitchStmt, arguments); + this.ensure(expr, "expr", ["Expr"]); this.ensureArrayOf(clauses, "clauses", NodeKind.SwitchClause); } } From 6938f191bb7822cc4645eaf9bf00f7dc8ba73ff1 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 18:43:58 -0700 Subject: [PATCH 032/107] feat: serialize all AST node types --- src/serialize-closure.ts | 75 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 3f95285a..e74dd6da 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -14,6 +14,7 @@ import { isBooleanLiteralExpr, isBreakStmt, isCallExpr, + isCaseClause, isCatchClause, isClassDecl, isClassExpr, @@ -21,9 +22,14 @@ import { isComputedPropertyNameExpr, isConditionExpr, isConstructorDecl, + isContinueStmt, + isDebuggerStmt, + isDefaultClause, isDeleteExpr, isDoStmt, isElementAccessExpr, + isEmptyStmt, + isErr, isExprStmt, isForInStmt, isForOfStmt, @@ -34,6 +40,8 @@ import { isGetAccessorDecl, isIdentifier, isIfStmt, + isImportKeyword, + isLabelledStmt, isMethodDecl, isNewExpr, isNoSubstitutionTemplateLiteral, @@ -51,11 +59,13 @@ import { isPropDecl, isReferenceExpr, isRegexExpr, + isReturnStmt, isSetAccessorDecl, isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, isSuperKeyword, + isSwitchStmt, isTaggedTemplateExpr, isTemplateExpr, isTemplateHead, @@ -63,13 +73,17 @@ import { isTemplateSpan, isTemplateTail, isThisExpr, + isThrowStmt, isTryStmt, + isTypeOfExpr, isUnaryExpr, isUndefinedLiteralExpr, isVariableDecl, isVariableDeclList, isVariableStmt, + isVoidExpr, isWhileStmt, + isWithStmt, isYieldExpr, } from "./guards"; import { FunctionlessNode } from "./node"; @@ -229,6 +243,7 @@ export function serializeClosure(func: AnyFunction): string { function serializeAST(node: FunctionlessNode): ts.Node { if (isReferenceExpr(node)) { // TODO: serialize value captured in closure + return ts.factory.createIdentifier(serialize(node.ref())); } else if (isArrowFunctionExpr(node)) { return ts.factory.createArrowFunction( node.isAsync @@ -650,6 +665,24 @@ export function serializeClosure(func: AnyFunction): string { serializeAST(node.then) as ts.Statement, node._else ? (serializeAST(node._else) as ts.Statement) : undefined ); + } else if (isSwitchStmt(node)) { + return ts.factory.createSwitchStatement( + serializeAST(node.expr) as ts.Expression, + ts.factory.createCaseBlock( + node.clauses.map( + (clause) => serializeAST(clause) as ts.CaseOrDefaultClause + ) + ) + ); + } else if (isCaseClause(node)) { + return ts.factory.createCaseClause( + serializeAST(node.expr) as ts.Expression, + node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) + ); + } else if (isDefaultClause(node)) { + return ts.factory.createDefaultClause( + node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) + ); } else if (isForStmt(node)) { return ts.factory.createForStatement( node.initializer @@ -689,7 +722,18 @@ export function serializeClosure(func: AnyFunction): string { serializeAST(node.condition) as ts.Expression ); } else if (isBreakStmt(node)) { - return ts.factory.createBreakStatement(node); + return ts.factory.createBreakStatement( + node.label ? (serializeAST(node.label) as ts.Identifier) : undefined + ); + } else if (isContinueStmt(node)) { + return ts.factory.createContinueStatement( + node.label ? (serializeAST(node.label) as ts.Identifier) : undefined + ); + } else if (isLabelledStmt(node)) { + return ts.factory.createLabeledStatement( + serializeAST(node.label) as ts.Identifier, + serializeAST(node.stmt) as ts.Statement + ); } else if (isTryStmt(node)) { return ts.factory.createTryStatement( serializeAST(node.tryBlock) as ts.Block, @@ -707,6 +751,10 @@ export function serializeClosure(func: AnyFunction): string { : undefined, serializeAST(node.block) as ts.Block ); + } else if (isThrowStmt(node)) { + return ts.factory.createThrowStatement( + serializeAST(node.expr) as ts.Expression + ); } else if (isDeleteExpr(node)) { return ts.factory.createDeleteExpression( serializeAST(node.expr) as ts.Expression @@ -741,6 +789,31 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createTemplateMiddle(node.text); } else if (isTemplateTail(node)) { return ts.factory.createTemplateTail(node.text); + } else if (isTypeOfExpr(node)) { + return ts.factory.createTypeOfExpression( + serializeAST(node.expr) as ts.Expression + ); + } else if (isVoidExpr(node)) { + return ts.factory.createVoidExpression( + serializeAST(node.expr) as ts.Expression + ); + } else if (isDebuggerStmt(node)) { + return ts.factory.createDebuggerStatement(); + } else if (isEmptyStmt(node)) { + return ts.factory.createEmptyStatement(); + } else if (isReturnStmt(node)) { + return ts.factory.createReturnStatement( + serializeAST(node.expr) as ts.Expression + ); + } else if (isImportKeyword(node)) { + return ts.factory.createToken(ts.SyntaxKind.ImportKeyword); + } else if (isWithStmt(node)) { + return ts.factory.createWithStatement( + serializeAST(node.expr) as ts.Expression, + serializeAST(node.stmt) as ts.Statement + ); + } else if (isErr(node)) { + throw node.error; } else { return assertNever(node); } From 76775b91aefa28935fe7ee83cefdcb35e719e68c Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 18:52:02 -0700 Subject: [PATCH 033/107] feat: update ReturnStmt.expr to be optional --- src/api.ts | 5 +- src/appsync.ts | 7 ++- src/asl.ts | 22 +++++--- src/compile.ts | 4 +- src/event-bridge/utils.ts | 6 +- src/node.ts | 2 +- src/statement.ts | 4 +- test/__snapshots__/step-function.test.ts.snap | 56 +++++++++---------- test/reflect.test.ts | 2 +- 9 files changed, 60 insertions(+), 48 deletions(-) diff --git a/src/api.ts b/src/api.ts index bfc9467c..aae67dec 100644 --- a/src/api.ts +++ b/src/api.ts @@ -12,6 +12,7 @@ import { Identifier, ReferenceExpr, ThisExpr, + UndefinedLiteralExpr, } from "./expression"; import { Function } from "./function"; import { @@ -649,7 +650,9 @@ export class APIGatewayVTL extends VTL { public eval(node: Stmt, returnVar?: string): void; public eval(node?: Expr | Stmt, returnVar?: string): string | void { if (isReturnStmt(node)) { - return this.add(this.exprToJson(node.expr)); + return this.add( + this.exprToJson(node.expr ?? node.fork(new UndefinedLiteralExpr())) + ); } else if ( isPropAccessExpr(node) && isIdentifier(node.name) && diff --git a/src/appsync.ts b/src/appsync.ts index 605c920f..ac97933d 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -19,6 +19,7 @@ import { ReferenceExpr, StringLiteralExpr, ThisExpr, + UndefinedLiteralExpr, } from "./expression"; import { isVariableStmt, @@ -611,7 +612,9 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { return createStage( service, `${pre ? `${pre}\n` : ""}#set( $context.stash.return__flag = true ) -#set( $context.stash.return__val = ${getResult(stmt.expr)} ) +#set( $context.stash.return__val = ${getResult( + stmt.expr ?? stmt.fork(new UndefinedLiteralExpr()) + )} ) {}` ); } else if ( @@ -686,7 +689,7 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { } } else if (isLastExpr) { if (isReturnStmt(stmt)) { - template.return(stmt.expr); + template.return(stmt.expr ?? stmt.fork(new UndefinedLiteralExpr())); } else if (isIfStmt(stmt)) { template.eval(stmt); } else { diff --git a/src/asl.ts b/src/asl.ts index 26d0f0d1..e3eeb08c 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -982,14 +982,16 @@ export class ASL { }; }); } else if (isReturnStmt(stmt)) { - return this.evalExprToSubState(stmt.expr, (output) => - ASLGraph.passWithInput( - { - Type: "Pass", - ...returnPass, - }, - output - ) + return this.evalExprToSubState( + stmt.expr ?? stmt.fork(new NullLiteralExpr()), + (output) => + ASLGraph.passWithInput( + { + Type: "Pass", + ...returnPass, + }, + output + ) ); } else if (isVariableStmt(stmt)) { return ASLGraph.joinSubStates( @@ -2866,7 +2868,9 @@ export class ASL { return undefined; }; - const expression = toFilterCondition(stmt.expr); + const expression = toFilterCondition( + stmt.expr ?? stmt.fork(new NullLiteralExpr()) + ); return expression ? { jsonPath: `${valueJsonPath.jsonPath}[?(${expression})]`, diff --git a/src/compile.ts b/src/compile.ts index 97f8cd14..9f629ccd 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -584,9 +584,7 @@ export function compile( } else if (ts.isReturnStatement(node)) { return newExpr( NodeKind.ReturnStmt, - node.expression - ? [toExpr(node.expression, scope)] - : [newExpr(NodeKind.NullLiteralExpr, [])] + node.expression ? [toExpr(node.expression, scope)] : [] ); } else if (ts.isObjectLiteralExpression(node)) { return newExpr(NodeKind.ObjectLiteralExpr, [ diff --git a/src/event-bridge/utils.ts b/src/event-bridge/utils.ts index d68333e5..8f22d6f1 100644 --- a/src/event-bridge/utils.ts +++ b/src/event-bridge/utils.ts @@ -17,6 +17,7 @@ import { TemplateSpan, TemplateTail, UnaryExpr, + UndefinedLiteralExpr, } from "../expression"; import { isArrayLiteralExpr, @@ -364,7 +365,10 @@ export const flattenReturnEvent = (stmts: Stmt[]) => { throw Error("No return statement found in event bridge target function."); } - return flattenExpression(ret.expr, scope); + return flattenExpression( + ret.expr ?? ret.fork(new UndefinedLiteralExpr()), + scope + ); }; // to prevent the closure serializer from trying to import all of functionless. diff --git a/src/node.ts b/src/node.ts index 72af191c..89271d37 100644 --- a/src/node.ts +++ b/src/node.ts @@ -126,7 +126,7 @@ export abstract class BaseNode< * * This function simply sets the {@link node}'s parent and returns it. */ - public fork(node: N): N { + public fork(node: N): N { // @ts-ignore node.parent = this; return node; diff --git a/src/statement.ts b/src/statement.ts index 8169970c..fa7e1f88 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -117,9 +117,9 @@ export class BlockStmt extends BaseStmt { } export class ReturnStmt extends BaseStmt { - constructor(readonly expr: Expr) { + constructor(readonly expr: Expr | undefined) { super(NodeKind.ReturnStmt, arguments); - this.ensure(expr, "expr", ["Expr"]); + this.ensure(expr, "expr", ["undefined", "Expr"]); } } diff --git a/test/__snapshots__/step-function.test.ts.snap b/test/__snapshots__/step-function.test.ts.snap index 04138d03..6cce6061 100644 --- a/test/__snapshots__/step-function.test.ts.snap +++ b/test/__snapshots__/step-function.test.ts.snap @@ -4418,7 +4418,7 @@ Object { "Variable": "$$.Execution.Id", }, ], - "Next": "return null", + "Next": "return", }, ], "Default": "score = await computeScore({id: person.Item.id.S, name: person.Item.name.S}", @@ -4438,7 +4438,7 @@ Object { "ResultPath": "$.heap0", "Type": "Task", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -5082,7 +5082,7 @@ Object { ], }, ], - "Next": "return null 1", + "Next": "return", }, ], "Default": "return null", @@ -5105,13 +5105,13 @@ Object { "ResultPath": "$.heap0", "Type": "Task", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", "Type": "Pass", }, - "return null 1": Object { + "return null": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -5223,19 +5223,19 @@ Object { ], }, ], - "Next": "return null 1", + "Next": "return", }, ], "Default": "return null", "Type": "Choice", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", "Type": "Pass", }, - "return null 1": Object { + "return null": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -5281,19 +5281,19 @@ Object { ], }, ], - "Next": "return null 1", + "Next": "return", }, ], "Default": "return null", "Type": "Choice", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", "Type": "Pass", }, - "return null 1": Object { + "return null": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -7356,10 +7356,10 @@ Object { "Variable": "$.heap0[0]", }, ], - "Default": "return null", + "Default": "return", "Type": "Choice", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -7780,10 +7780,10 @@ Object { "Variable": "$.heap0[0]", }, ], - "Default": "return null", + "Default": "return", "Type": "Choice", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -9395,24 +9395,24 @@ Object { "Next": "return \\"world\\"", }, ], - "Default": "return null", + "Default": "return", "Type": "Choice", }, - "return \\"hello\\"": Object { + "return": Object { "End": true, - "Result": "hello", + "InputPath": "$.fnl_context.null", "ResultPath": "$", "Type": "Pass", }, - "return \\"world\\"": Object { + "return \\"hello\\"": Object { "End": true, - "Result": "world", + "Result": "hello", "ResultPath": "$", "Type": "Pass", }, - "return null": Object { + "return \\"world\\"": Object { "End": true, - "InputPath": "$.fnl_context.null", + "Result": "world", "ResultPath": "$", "Type": "Pass", }, @@ -11913,7 +11913,7 @@ Object { "Variable": "$$.Execution.Id", }, ], - "Next": "return null", + "Next": "return", }, ], "Default": "return {id: person.Item.id.S, name: person.Item.name.S}", @@ -11933,7 +11933,7 @@ Object { "ResultPath": "$.heap0", "Type": "Task", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -12000,7 +12000,7 @@ Object { "Variable": "$$.Execution.Id", }, ], - "Next": "return null", + "Next": "return", }, ], "Default": "return {id: person.Item.id.S, name: person.Item.name.S}", @@ -12025,7 +12025,7 @@ Object { "Default": "takeRight__person = await $AWS.DynamoDB.GetItem({Table: personTable, Key: {", "Type": "Choice", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", @@ -12863,7 +12863,7 @@ Object { "StartAt": "Initialize Functionless Context", "States": Object { "Initialize Functionless Context": Object { - "Next": "return null", + "Next": "return", "Parameters": Object { "fnl_context": Object { "null": null, @@ -12872,7 +12872,7 @@ Object { "ResultPath": "$", "Type": "Pass", }, - "return null": Object { + "return": Object { "End": true, "InputPath": "$.fnl_context.null", "ResultPath": "$", diff --git a/test/reflect.test.ts b/test/reflect.test.ts index 35b3adca..f77e0d82 100644 --- a/test/reflect.test.ts +++ b/test/reflect.test.ts @@ -26,7 +26,7 @@ test("returns a string", () => { NodeKind.ArrowFunctionExpr ); expect( - assertNodeKind(fn.body.statements[0], NodeKind.ReturnStmt).expr.kindName + assertNodeKind(fn.body.statements[0], NodeKind.ReturnStmt).expr?.kindName ).toEqual("StringLiteralExpr"); }); From 5b9a620584bd23ee64de88fcffe3ccb03ead62a3 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 21:07:12 -0700 Subject: [PATCH 034/107] serialize array, primtiives and other improvements --- src/asl.ts | 11 ++++- src/serialize-closure.ts | 103 +++++++++++++++++++++++++-------------- 2 files changed, 75 insertions(+), 39 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index e055185c..0ac3411e 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -8,6 +8,7 @@ import { FunctionLike, ParameterDecl, VariableDecl, + VariableDeclList, } from "./declaration"; import { ErrorCodes, SynthError } from "./error-code"; import { @@ -5215,7 +5216,13 @@ function toStateName(node: FunctionlessNode): string { } function nodeToString( - expr?: Expr | ParameterDecl | BindingName | BindingElem | VariableDecl + expr?: + | Expr + | ParameterDecl + | BindingName + | BindingElem + | VariableDecl + | VariableDeclList ): string { if (!expr) { return ""; @@ -5351,7 +5358,7 @@ function nodeToString( expr.initializer ? ` = ${nodeToString(expr.initializer)}` : "" }`; } else if (isVariableDeclList(expr)) { - return expr.declList.map(nodeToString).join(", "); + return expr.decls.map(nodeToString).join(", "); } else if (isParameterDecl(expr)) { return nodeToString(expr.name); } else if (isTaggedTemplateExpr(expr)) { diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index e74dd6da..57b7f4b1 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -120,7 +120,7 @@ export function serializeClosure(func: AnyFunction): string { function emitVarDecl( expr: ts.Expression, varKind: "const" | "let" | "var" = "const" - ): string { + ): ts.Identifier { const name = uniqueName(); emit( ts.factory.createVariableStatement( @@ -142,12 +142,12 @@ export function serializeClosure(func: AnyFunction): string { ) ) ); - return name; + return ts.factory.createIdentifier(name); } - const valueIds = new Map(); + const valueIds = new Map(); - emit(expr(assign(prop(id("exports"), "handler"), id(serialize(func))))); + emit(expr(assign(prop(id("exports"), "handler"), serialize(func)))); return printer.printFile( ts.factory.createSourceFile( @@ -157,7 +157,7 @@ export function serializeClosure(func: AnyFunction): string { ) ); - function serialize(value: any): string { + function serialize(value: any): ts.Expression { let id = valueIds.get(value); if (id) { return id; @@ -167,9 +167,42 @@ export function serializeClosure(func: AnyFunction): string { return id; } - function serializeValue(value: any) { + function serializeValue(value: any): ts.Expression { if (value === undefined) { + return undefined_expr(); } else if (value === null) { + return null_expr(); + } else if (value === true) { + return true_expr(); + } else if (value === false) { + return false_expr(); + } else if (typeof value === "number") { + return num(value); + } else if (typeof value === "bigint") { + return ts.factory.createBigIntLiteral(value.toString(10)); + } else if (typeof value === "string") { + return string(value); + } else if (value instanceof RegExp) { + return ts.factory.createRegularExpressionLiteral(value.source); + } else if (value instanceof Date) { + return ts.factory.createNewExpression(id("Date"), undefined, [ + num(value.getTime()), + ]); + } else if (Array.isArray(value)) { + // TODO: should we check the array's prototype? + + // emit an empty array + // var vArr = [] + const arr = emitVarDecl(ts.factory.createArrayLiteralExpression([])); + + // cache the empty array now in case any of the items in the array circularly reference the array + valueIds.set(value, arr); + + // for each item in the array, serialize the value and push it into the array + // vArr.push(vItem1, vItem2) + emit(expr(call(prop(arr, "push"), value.map(serialize)))); + + return arr; } else if (typeof value === "object") { // serialize the prototype first // there should be no circular references between an object instance and its prototype @@ -179,38 +212,15 @@ export function serializeClosure(func: AnyFunction): string { // emit an empty object with the correct prototype // e.g. `var vObj = Object.create(vPrototype);` - const obj = emitVarDecl( - call(prop(id("Object"), "create"), [id(prototype)]) - ); - - /** - * Cache the emitted value so that any circular object references serialize without issue. - * - * e.g. - * - * The following objects circularly reference each other: - * ```ts - * const a = {}; - * const b = { a }; - * a.b = b; - * ``` - * - * Serializing `b` will emit the following code: - * ```ts - * const b = {}; - * const a = {}; - * a.b = b; - * b.a = a; - * ``` - */ + const obj = emitVarDecl(call(prop(id("Object"), "create"), [prototype])); + + // cache the empty object nwo in case any of the properties in teh array circular reference the object valueIds.set(value, obj); // for each of the object's own properties, emit a statement that assigns the value of that property // vObj.propName = vValue Object.getOwnPropertyNames(value).forEach((propName) => - emit( - expr(assign(prop(id(obj), propName), id(serialize(value[propName])))) - ) + emit(expr(assign(prop(obj, propName), serialize(value[propName])))) ); return obj; @@ -229,7 +239,7 @@ export function serializeClosure(func: AnyFunction): string { const moduleName = emitVarDecl(call(id("require"), [string(mod.path)])); // const vFunc = vMod.prop - return emitVarDecl(prop(id(moduleName), mod.exportName)); + return emitVarDecl(prop(moduleName, mod.exportName)); } else if (isFunctionLike(ast)) { return emitVarDecl(serializeAST(ast) as ts.Expression); } else { @@ -242,8 +252,7 @@ export function serializeClosure(func: AnyFunction): string { function serializeAST(node: FunctionlessNode): ts.Node { if (isReferenceExpr(node)) { - // TODO: serialize value captured in closure - return ts.factory.createIdentifier(serialize(node.ref())); + return serialize(node.ref()); } else if (isArrowFunctionExpr(node)) { return ts.factory.createArrowFunction( node.isAsync @@ -803,7 +812,7 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createEmptyStatement(); } else if (isReturnStmt(node)) { return ts.factory.createReturnStatement( - serializeAST(node.expr) as ts.Expression + node.expr ? (serializeAST(node.expr) as ts.Expression) : undefined ); } else if (isImportKeyword(node)) { return ts.factory.createToken(ts.SyntaxKind.ImportKeyword); @@ -820,6 +829,22 @@ export function serializeClosure(func: AnyFunction): string { } } +function undefined_expr() { + return ts.factory.createIdentifier("undefined"); +} + +function null_expr() { + return ts.factory.createNull(); +} + +function true_expr() { + return ts.factory.createTrue(); +} + +function false_expr() { + return ts.factory.createFalse(); +} + function id(name: string) { return ts.factory.createIdentifier(name); } @@ -828,6 +853,10 @@ function string(name: string) { return ts.factory.createStringLiteral(name); } +function num(num: number) { + return ts.factory.createNumericLiteral(num); +} + function prop(expr: ts.Expression, name: string) { return ts.factory.createPropertyAccessExpression(expr, name); } From c211e121d0c96f63f38dc6f0d962f90b6b4746c5 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Aug 2022 21:42:18 -0700 Subject: [PATCH 035/107] fix: the build --- src/asl.ts | 6 +----- src/declaration.ts | 3 ++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index 0ac3411e..6be9dd60 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -5235,11 +5235,7 @@ function nodeToString( } else if (isBigIntExpr(expr)) { return expr.value.toString(10); } else if (isBinaryExpr(expr)) { - return `${nodeToString(expr.left)} ${ - // backwards compatibility - // TODO: remove this and update snapshots - expr.op === "===" ? "==" : expr.op === "!==" ? "!=" : expr.op - } ${nodeToString(expr.right)}`; + return `${nodeToString(expr.left)} ${expr.op} ${nodeToString(expr.right)}`; } else if (isBooleanLiteralExpr(expr)) { return `${expr.value}`; } else if (isCallExpr(expr) || isNewExpr(expr)) { diff --git a/src/declaration.ts b/src/declaration.ts index d57021be..01e670e4 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -217,7 +217,8 @@ export class ParameterDecl extends BaseDecl< * ```ts * function foo(...rest) {} * ``` - */ readonly isRest: boolean + */ + readonly isRest: boolean ) { super(NodeKind.ParameterDecl, arguments); this.ensure(name, "name", NodeKind.BindingNames); From dd025bc24683e51d81734f92bca09472e802c5d3 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 00:44:59 -0700 Subject: [PATCH 036/107] chore: use npm version of ast-reflection --- .projen/deps.json | 9 ++++----- .projen/tasks.json | 10 +++++----- .projenrc.js | 2 +- .swcrc | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index b85acb96..0b445abc 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -20,6 +20,10 @@ "version": "2.28.1", "type": "build" }, + { + "name": "@functionless/ast-reflection", + "type": "build" + }, { "name": "@swc/cli", "type": "build" @@ -171,11 +175,6 @@ "version": "^9", "type": "build" }, - { - "name": "swc-closure", - "version": "file:../swc-closure", - "type": "build" - }, { "name": "ts-jest", "type": "build" diff --git a/.projen/tasks.json b/.projen/tasks.json index b621b73a..79b7ee6f 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -259,19 +259,19 @@ "exec": "yarn upgrade npm-check-updates" }, { - "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { "exec": "yarn install --check-files" diff --git a/.projenrc.js b/.projenrc.js index ff0d5fcd..7174a82d 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -116,7 +116,7 @@ const project = new CustomTypescriptProject({ "@swc/core", "@swc/register", "@swc/jest", - "swc-closure@file:../swc-closure", + "@functionless/ast-reflection", "jest", "ts-jest", ], diff --git a/.swcrc b/.swcrc index 0bfda685..506f771c 100644 --- a/.swcrc +++ b/.swcrc @@ -13,7 +13,7 @@ "loose": false, "externalHelpers": false, "experimental": { - "plugins": [["swc-closure", {}]] + "plugins": [["@functionless/ast-reflection", {}]] } }, "minify": false, diff --git a/package.json b/package.json index b1c9dfeb..babd0ff9 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", + "@functionless/ast-reflection": "file:../swc-closure", "@swc/cli": "^0.1.57", "@swc/core": "1.2.218", "@swc/jest": "^0.2.22", @@ -69,7 +70,6 @@ "promptly": "^3.2.0", "proxy-agent": "^5.0.0", "standard-version": "^9", - "swc-closure": "file:../swc-closure", "ts-jest": "^28.0.7", "ts-node": "^10.9.1", "ts-patch": "^2.0.1", diff --git a/yarn.lock b/yarn.lock index 745d0647..0c65b5fc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,6 +1040,9 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@functionless/ast-reflection@file:../swc-closure": + version "0.1.0" + "@functionless/nodejs-closure-serializer@^0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@functionless/nodejs-closure-serializer/-/nodejs-closure-serializer-0.1.1.tgz#2c56bbe164c3447d55ff8162472e9c0b59c1e690" @@ -1714,7 +1717,7 @@ "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": version "7.18.0" resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.18.0.tgz#8134fd78cb39567465be65b9fdc16d378095f41f" integrity sha512-v4Vwdko+pgymgS+A2UIaJru93zQd85vIGWObM5ekZNdXCKtDYqATlEYnWgfo86Q6I1Lh0oXnksDnMU1cwmlPDw== @@ -7561,9 +7564,6 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -"swc-closure@file:../swc-closure": - version "0.1.0" - table@^6.8.0: version "6.8.0" resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca" From 38fafeaf0674825241787534538a1b0265bbdd56 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 01:43:36 -0700 Subject: [PATCH 037/107] chore: remove jest.config.ts --- .eslintrc.json | 7 ++++++- .projenrc.js | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1bdf5bf2..6b31b63d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -36,7 +36,12 @@ } }, "ignorePatterns": [ - "jest.config.ts" + "*.js", + "!.projenrc.js", + "*.d.ts", + "node_modules/", + "*.generated.ts", + "coverage" ], "rules": { "prettier/prettier": [ diff --git a/.projenrc.js b/.projenrc.js index ff0d5fcd..531e86a8 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -145,7 +145,6 @@ const project = new CustomTypescriptProject({ ], eslintOptions: { lintProjenRc: true, - ignorePatterns: ["jest.config.ts"], }, tsconfig: { compilerOptions: { From 5029d71c295bbb0ad823f8464a95f64900f3ebd1 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 01:47:13 -0700 Subject: [PATCH 038/107] fix: depend on @functionless/ast-reflection --- .gitattributes | 1 + .gitignore | 1 + .projen/deps.json | 9 ++++----- .projen/files.json | 1 + .projen/tasks.json | 10 +++++----- .projenrc.js | 30 +++++++++++++++++++++++++++++- .swcrc | 7 ++++++- .vscode/launch.json | 12 ------------ package.json | 2 +- yarn.lock | 8 +++++--- 10 files changed, 53 insertions(+), 28 deletions(-) diff --git a/.gitattributes b/.gitattributes index 87b23178..81a5e951 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,6 +18,7 @@ /.projen/deps.json linguist-generated /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated +/.swcrc linguist-generated /LICENSE linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated diff --git a/.gitignore b/.gitignore index 6a423edd..aab84bfb 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,4 @@ junit.xml /dist/ !/.eslintrc.json !/.git/hooks/pre-commit +!/.swcrc diff --git a/.projen/deps.json b/.projen/deps.json index b85acb96..0b445abc 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -20,6 +20,10 @@ "version": "2.28.1", "type": "build" }, + { + "name": "@functionless/ast-reflection", + "type": "build" + }, { "name": "@swc/cli", "type": "build" @@ -171,11 +175,6 @@ "version": "^9", "type": "build" }, - { - "name": "swc-closure", - "version": "file:../swc-closure", - "type": "build" - }, { "name": "ts-jest", "type": "build" diff --git a/.projen/files.json b/.projen/files.json index 2afb3380..d7e2e5b5 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -16,6 +16,7 @@ ".projen/deps.json", ".projen/files.json", ".projen/tasks.json", + ".swcrc", "LICENSE", "tsconfig.dev.json", "tsconfig.json" diff --git a/.projen/tasks.json b/.projen/tasks.json index b621b73a..79b7ee6f 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -259,19 +259,19 @@ "exec": "yarn upgrade npm-check-updates" }, { - "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,swc-closure,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { "exec": "yarn install --check-files" diff --git a/.projenrc.js b/.projenrc.js index 531e86a8..6fc2135d 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -116,7 +116,7 @@ const project = new CustomTypescriptProject({ "@swc/core", "@swc/register", "@swc/jest", - "swc-closure@file:../swc-closure", + "@functionless/ast-reflection", "jest", "ts-jest", ], @@ -174,6 +174,34 @@ const project = new CustomTypescriptProject({ delete project.jest.config.globals; delete project.jest.config.preset; +new JsonFile(project, ".swcrc", { + marker: false, + obj: { + jsc: { + parser: { + syntax: "typescript", + dynamicImport: false, + decorators: false, + hidden: { + jest: true, + }, + }, + transform: null, + target: "es2021", + loose: false, + externalHelpers: false, + experimental: { + plugins: [["@functionless/ast-reflection", {}]], + }, + }, + minify: false, + sourceMaps: "inline", + module: { + type: "commonjs", + }, + }, +}); + const packageJson = project.tryFindObjectFile("package.json"); packageJson.addOverride("lint-staged", { diff --git a/.swcrc b/.swcrc index 0bfda685..7a21792b 100644 --- a/.swcrc +++ b/.swcrc @@ -13,7 +13,12 @@ "loose": false, "externalHelpers": false, "experimental": { - "plugins": [["swc-closure", {}]] + "plugins": [ + [ + "@functionless/ast-reflection", + {} + ] + ] } }, "minify": false, diff --git a/.vscode/launch.json b/.vscode/launch.json index 38489747..1f19d836 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -89,18 +89,6 @@ "TS_NODE_PROJECT": "${workspaceRoot}/test-app/tsconfig.json" } }, - - { - "name": "launch js", - "type": "node", - "request": "launch", - "runtimeExecutable": "node", - "runtimeArgs": ["--nolazy"], - "args": ["./lib-test/test/step-function.test.js"], - "cwd": "${workspaceRoot}", - "internalConsoleOptions": "openOnSessionStart", - "skipFiles": ["/**", "node_modules/**"] - }, { "type": "node", "name": "vscode-jest-tests.v2", diff --git a/package.json b/package.json index b1c9dfeb..a319d07b 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", + "@functionless/ast-reflection": "^0.0.0", "@swc/cli": "^0.1.57", "@swc/core": "1.2.218", "@swc/jest": "^0.2.22", @@ -69,7 +70,6 @@ "promptly": "^3.2.0", "proxy-agent": "^5.0.0", "standard-version": "^9", - "swc-closure": "file:../swc-closure", "ts-jest": "^28.0.7", "ts-node": "^10.9.1", "ts-patch": "^2.0.1", diff --git a/yarn.lock b/yarn.lock index 4d0e7bba..7ca69eab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,6 +1040,11 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" +"@functionless/ast-reflection@^0.0.0": + version "0.0.0" + resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.0.0.tgz#328423829a09fc96df448d18fdf4228de87641ee" + integrity sha512-6YsxKPSOKofmyQoomDbXy/1vBUcAb4xUawPiS83Pilgxl1AM49C0I7l+HIc2sZBHj3q3ClGzQ7l6n4C++sQMjQ== + "@functionless/nodejs-closure-serializer@^0.1.1": version "0.1.1" resolved "https://registry.yarnpkg.com/@functionless/nodejs-closure-serializer/-/nodejs-closure-serializer-0.1.1.tgz#2c56bbe164c3447d55ff8162472e9c0b59c1e690" @@ -7561,9 +7566,6 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -"swc-closure@file:../swc-closure": - version "0.1.0" - table@^6.8.0: version "6.8.0" resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca" From 178a89ea1afb51b00f43a8c0a8f5de29944f61db Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 01:51:11 -0700 Subject: [PATCH 039/107] chore: remove experimental code --- .projenrc.js | 3 +-- src/compile.ts | 20 +------------------- src/expression.ts | 9 +-------- src/function.ts | 7 +++---- 4 files changed, 6 insertions(+), 33 deletions(-) diff --git a/.projenrc.js b/.projenrc.js index 6fc2135d..c6895604 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -118,7 +118,6 @@ const project = new CustomTypescriptProject({ "@swc/jest", "@functionless/ast-reflection", "jest", - "ts-jest", ], jestOptions: { jestConfig: { @@ -175,7 +174,7 @@ delete project.jest.config.globals; delete project.jest.config.preset; new JsonFile(project, ".swcrc", { - marker: false, + marker: false, // swc's JSON schema is super strict, so disable the `"//": "generated by projen" marker obj: { jsc: { parser: { diff --git a/src/compile.ts b/src/compile.ts index 3e7f2ab6..a53a1c80 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -110,16 +110,7 @@ export function compile( ? _config.exclude.map((pattern) => minimatch.makeRe(path.resolve(pattern))) : []; const checker = makeFunctionlessChecker(program.getTypeChecker()); - const getUniqueId = (() => { - const uniqueIds = new Map(); - let i = 1; // start counter from 1 so that unresolvable names can use 0 - return (node: ts.Node) => { - if (!uniqueIds.has(node)) { - uniqueIds.set(node, i++); - } - return uniqueIds.get(node)!; - }; - })(); + return (ctx) => { const functionless = ts.factory.createUniqueName("functionless"); return (sf) => { @@ -903,13 +894,6 @@ export function compile( } function ref(node: ts.Identifier) { - const symbol = checker.getSymbolAtLocation(node); - - const id = symbol?.valueDeclaration - ? getUniqueId(symbol.valueDeclaration) - : symbol?.declarations?.[0] - ? getUniqueId(symbol.declarations[0]) - : 0; return newExpr(NodeKind.ReferenceExpr, [ ts.factory.createStringLiteral(exprToString(node)), ts.factory.createArrowFunction( @@ -920,8 +904,6 @@ export function compile( undefined, node ), - ts.factory.createNumericLiteral(id), - ts.factory.createIdentifier("__filename"), ]); } diff --git a/src/expression.ts b/src/expression.ts index 7ce947dc..cc16f6d4 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -157,17 +157,10 @@ export class ClassExpr extends BaseExpr< export class ReferenceExpr< R = unknown > extends BaseExpr { - constructor( - readonly name: string, - readonly ref: () => R, - readonly id: number, - readonly filename: string - ) { + constructor(readonly name: string, readonly ref: () => R) { super(NodeKind.ReferenceExpr, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensure(ref, "ref", ["function"]); - this.ensure(id, "id", ["number"]); - this.ensure(filename, "filename", ["string"]); } } diff --git a/src/function.ts b/src/function.ts index 8f5f27bb..2a4711a3 100644 --- a/src/function.ts +++ b/src/function.ts @@ -709,10 +709,9 @@ export class Function< `While serializing ${_resource.node.path}:\n\n${e.message}` ); } else if (e instanceof Error) { - throw e; - // throw Error( - // `While serializing ${_resource.node.path}:\n\n${e.message}` - // ); + throw Error( + `While serializing ${_resource.node.path}:\n\n${e.message}` + ); } } })() From b1d02945e28b509284ae7c880991905e89b86365 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 01:53:40 -0700 Subject: [PATCH 040/107] chore: clean up --- .projenrc.js | 1 - src/compile.ts | 2 +- src/integration.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.projenrc.js b/.projenrc.js index c6895604..aa9d8e5c 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -117,7 +117,6 @@ const project = new CustomTypescriptProject({ "@swc/register", "@swc/jest", "@functionless/ast-reflection", - "jest", ], jestOptions: { jestConfig: { diff --git a/src/compile.ts b/src/compile.ts index a53a1c80..33014384 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -893,7 +893,7 @@ export function compile( ); } - function ref(node: ts.Identifier) { + function ref(node: ts.Expression) { return newExpr(NodeKind.ReferenceExpr, [ ts.factory.createStringLiteral(exprToString(node)), ts.factory.createArrowFunction( diff --git a/src/integration.ts b/src/integration.ts index 0225a986..f13fc021 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -306,7 +306,7 @@ export function findDeepIntegrations( ...integrations.map((integration) => node.fork( new CallExpr( - new ReferenceExpr("", () => integration, 0, __filename), + new ReferenceExpr("", () => integration), node.args.map((arg) => arg.clone()) ) ) From 8cd27efbde63eb25b065966a27a3ce405680ba83 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 16:06:27 -0700 Subject: [PATCH 041/107] chore: upgrade to 0.0.1 of ast-reflection --- package.json | 2 +- yarn.lock | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5f07f647..71187a41 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", - "@functionless/ast-reflection": "file:../ast-reflection", + "@functionless/ast-reflection": "0.0.1", "@swc/cli": "^0.1.57", "@swc/core": "1.2.218", "@swc/jest": "^0.2.22", diff --git a/yarn.lock b/yarn.lock index 9284747e..a46ba0cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,8 +1040,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@functionless/ast-reflection@file:../ast-reflection": - version "0.0.0" +"@functionless/ast-reflection@0.0.1": + version "0.0.1" + resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.0.1.tgz#bf025e87456449f47a62c90323e55574b5131fdc" + integrity sha512-flKyyHZsAlSdEn9rZuLIOsLhM+jqt0U8vIPKsc/tzJzWnVRXRMHTzubES+YoXqT5MR0dJo94MTfte5zN/YlXxg== "@functionless/nodejs-closure-serializer@^0.1.1": version "0.1.1" From 224b2c97e3aad073dd0b37d8880e16d9f7d0d43d Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 17:35:27 -0700 Subject: [PATCH 042/107] chore: update docs and fix some tests --- CONTRIBUTING.md | 6 +- package.json | 2 +- src/reflect.ts | 25 +- src/visit.ts | 24 ++ test-app/.swcrc | 29 ++ test-app/cdk.json | 2 +- test-app/package.json | 7 +- test-app/yarn.lock | 261 +++++++++++++----- .../step-function.localstack.test.ts.snap | 4 +- test/function.localstack.test.ts | 4 +- website/docs/getting-started.md | 68 ++--- yarn.lock | 8 +- 12 files changed, 314 insertions(+), 126 deletions(-) create mode 100644 test-app/.swcrc diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9e65a12c..9663c0dc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -221,8 +221,4 @@ To the bottom of your PR description. When we merge the PR into `main`, the BREA [Error 10001 - Function not compiled]https://functionless.org/docs/error-codes#function-not-compiled-by-functionless-plugin -The compiler plugin isn't patched or working. - -1. `npx ts-patch install -s` - 1. `npx ts-patch check` can be used to this needs to be done. At least 1 item should be marked as Installed -2. Check your typescript versions and match sure they all match through the code base. +The SWC plugin isn't running on your code. See the [Getting Started](./website/docs/getting-started.md#add-to-an-existing-cdk-project) documentation for steps on how to properly configure SWC. diff --git a/package.json b/package.json index 71187a41..2e212fb3 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "@aws-cdk/aws-appsync-alpha": "*" }, "dependencies": { - "@functionless/nodejs-closure-serializer": "^0.1.1", + "@functionless/nodejs-closure-serializer": "^0.1.2", "@types/aws-lambda": "^8.10.101", "fs-extra": "^10.1.0", "minimatch": "^5.1.0" diff --git a/src/reflect.ts b/src/reflect.ts index d8de99eb..aad08378 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -1,10 +1,16 @@ import { FunctionLike } from "./declaration"; import { Err } from "./error"; import { ErrorCodes, SynthError } from "./error-code"; -import { isFunctionLike, isErr } from "./guards"; +import { isFunctionLike, isErr, isNewExpr } from "./guards"; +import { + findDeepIntegrations, + tryFindIntegration, + tryFindIntegrations, +} from "./integration"; import type { FunctionlessNode } from "./node"; import { parseSExpr } from "./s-expression"; import { AnyAsyncFunction, AnyFunction } from "./util"; +import { forEachChild } from "./visit"; /** * A macro (compile-time) function that converts an ArrowFunction or FunctionExpression to a {@link FunctionDecl}. @@ -122,7 +128,7 @@ function validateFunctionlessNode( validate: (e: FunctionlessNode) => e is Node ): Node { if (validate(a)) { - return a; + return validateFunctionlessNodeSemantics(a); } else if (isErr(a)) { throw a.error; } else if (typeof a === "function") { @@ -134,3 +140,18 @@ function validateFunctionlessNode( ); } } + +export function validateFunctionlessNodeSemantics( + node: N +): N { + forEachChild(node, (child) => { + if (isNewExpr(child) && tryFindIntegrations(child)?.length > 0) { + throw new SynthError( + ErrorCodes.Unsupported_initialization_of_resources, + "Cannot initialize new CDK resources in a runtime function." + ); + } + validateFunctionlessNodeSemantics(child); + }); + return node; +} diff --git a/src/visit.ts b/src/visit.ts index f181079b..280f55bd 100644 --- a/src/visit.ts +++ b/src/visit.ts @@ -62,6 +62,30 @@ export function visitEachChild( return new ctor(...args) as T; } +export function forEachChild( + node: FunctionlessNode, + visit: (node: FunctionlessNode) => any +): void { + for (const argument of node._arguments) { + if (argument === null || typeof argument !== "object") { + // all primitives are simply returned as-is + } else if (isNode(argument)) { + if (visit(argument)) { + // if a truthy value is returned from visit, terminate the walk + return; + } + } else if (Array.isArray(argument)) { + // is an Array of nodes + for (const item of argument) { + if (visit(item)) { + // if a truthy value is returned from visit, terminate the walk + return; + } + } + } + } +} + /** * Like {@link visitEachChild} but it only visits the statements of a block. * diff --git a/test-app/.swcrc b/test-app/.swcrc new file mode 100644 index 00000000..7a21792b --- /dev/null +++ b/test-app/.swcrc @@ -0,0 +1,29 @@ +{ + "jsc": { + "parser": { + "syntax": "typescript", + "dynamicImport": false, + "decorators": false, + "hidden": { + "jest": true + } + }, + "transform": null, + "target": "es2021", + "loose": false, + "externalHelpers": false, + "experimental": { + "plugins": [ + [ + "@functionless/ast-reflection", + {} + ] + ] + } + }, + "minify": false, + "sourceMaps": "inline", + "module": { + "type": "commonjs" + } +} diff --git a/test-app/cdk.json b/test-app/cdk.json index 87517a62..da048aa5 100644 --- a/test-app/cdk.json +++ b/test-app/cdk.json @@ -1,3 +1,3 @@ { - "app": "ts-node ./src/message-board.ts" + "app": "node -r '@swc/register' ./src/message-board.ts" } diff --git a/test-app/package.json b/test-app/package.json index ea9389a7..b49527ea 100644 --- a/test-app/package.json +++ b/test-app/package.json @@ -20,8 +20,13 @@ "constructs": "10.0.0", "functionless": "file:../", "graphql": "^16.3.0", - "ts-node": "^10.5.0", "typesafe-dynamodb": "^0.1.5", "typescript": "^4.7.2" + }, + "devDependencies": { + "@swc/cli": "^0.1.57", + "@swc/core": "1.2.218", + "@swc/jest": "^0.2.22", + "@swc/register": "^0.1.10" } } diff --git a/test-app/yarn.lock b/test-app/yarn.lock index 3455038d..7d82ab8e 100644 --- a/test-app/yarn.lock +++ b/test-app/yarn.lock @@ -1523,6 +1523,24 @@ resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c" integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg== +"@jest/create-cache-key-function@^27.4.2": + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz#7448fae15602ea95c828f5eceed35c202a820b31" + integrity sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ== + dependencies: + "@jest/types" "^27.5.1" + +"@jest/types@^27.5.1": + version "27.5.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" + integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^16.0.0" + chalk "^4.0.0" + "@jridgewell/gen-mapping@^0.1.0": version "0.1.1" resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" @@ -1597,6 +1615,116 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" +"@swc/cli@^0.1.57": + version "0.1.57" + resolved "https://registry.yarnpkg.com/@swc/cli/-/cli-0.1.57.tgz#a9c424de5a217ec20a4b7c2c0e5c343980537e83" + integrity sha512-HxM8TqYHhAg+zp7+RdTU69bnkl4MWdt1ygyp6BDIPjTiaJVH6Dizn2ezbgDS8mnFZI1FyhKvxU/bbaUs8XhzQg== + dependencies: + commander "^7.1.0" + fast-glob "^3.2.5" + slash "3.0.0" + source-map "^0.7.3" + +"@swc/core-android-arm-eabi@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-android-arm-eabi/-/core-android-arm-eabi-1.2.218.tgz#017792272e70a0511d7df3397a31d73c6ef37b40" + integrity sha512-Q/uLCh262t3xxNzhCz+ZW9t+g2nWd0gZZO4jMYFWJs7ilKVNsBfRtfnNGGACHzkVuWLNDIWtAS2PSNodl7VUHQ== + +"@swc/core-android-arm64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.218.tgz#ee1b6cd7281d9bd0f26d5d24843addf09365c137" + integrity sha512-dy+8lUHUcyrkfPcl7azEQ4M44duRo1Uibz1E5/tltXCGoR6tu2ZN2VkqEKgA2a9XR3UD8/x4lv2r5evwJWy+uQ== + +"@swc/core-darwin-arm64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.218.tgz#d73f6eedf0aac4ad117e67227d65d65c57657858" + integrity sha512-aTpFjWio8G0oukN76VtXCBPtFzH0PXIQ+1dFjGGkzrBcU5suztCCbhPBGhKRoWp3NJBwfPDwwWzmG+ddXrVAKg== + +"@swc/core-darwin-x64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.218.tgz#a872c618727ceac8780539b5fa8aa45ae600d362" + integrity sha512-H3w/gNzROE6gVPZCAg5qvvPihzlg88Yi7HWb/mowfpNqH9/iJ8XMdwqJyovnfUeUXsuJQBFv6uXv/ri7qhGMHA== + +"@swc/core-freebsd-x64@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.218.tgz#6abc75e409739cad2ed9d57c1c741e8e5759794c" + integrity sha512-kkch07yCSlpUrSMp0FZPWtMHJjh3lfHiwp7JYNf6CUl5xXlgT19NeomPYq31dbTzPV2VnE7TVVlAawIjuuOH4g== + +"@swc/core-linux-arm-gnueabihf@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.218.tgz#a1a1bb172632082766770e47426df606c828d28c" + integrity sha512-vwEgvtD9f/+0HFxYD5q4sd8SG6zd0cxm17cwRGZ6jWh/d4Ninjht3CpDGE1ffh9nJ+X3Mb/7rjU/kTgWFz5qfg== + +"@swc/core-linux-arm64-gnu@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.218.tgz#4d3325cd35016dd5ec389084bd5c304348002b15" + integrity sha512-g5PQI6COUHV7x7tyaZQn6jXWtOLXXNIEQK1HS5/e+6kqqsM2NsndE9bjLhoH1EQuXiN2eUjAR/ZDOFAg102aRw== + +"@swc/core-linux-arm64-musl@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.218.tgz#8abab2fe12bb6a7687ff3bbd6030fcc728ed007d" + integrity sha512-IETYHB6H01NmVmlw+Ng8nkjdFBv1exGQRR74GAnHis1bVx1Uq14hREIF6XT3I1Aj26nRwlGkIYQuEKnFO5/j3Q== + +"@swc/core-linux-x64-gnu@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.218.tgz#39227c15018d9b5253e7679bc8bbe3fd7ed109cd" + integrity sha512-PK39Zg4/YZbfchQRw77iVfB7Qat7QaK58sQt8enH39CUMXlJ+GSfC0Fqw2mtZ12sFGwmsGrK9yBy3ZVoOws5Ng== + +"@swc/core-linux-x64-musl@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.218.tgz#d661bfc6a9f0c35979c0e608777355222092e534" + integrity sha512-SNjrzORJYiKTSmFbaBkKZAf5B/PszwoZoFZOcd86AG192zsvQBSvKjQzMjT5rDZxB+sOnhRE7wH/bvqxZishQQ== + +"@swc/core-win32-arm64-msvc@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.218.tgz#ea94260b36010d67f529d2f73c99e7d338a98711" + integrity sha512-lVXFWkYl+w8+deq9mgGsfvSY5Gr1RRjFgqZ+0wMZgyaonfx7jNn3TILUwc7egumEwxK0anNriVZCyKfcO3ZIjA== + +"@swc/core-win32-ia32-msvc@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.218.tgz#b5b5fbbe17680e0e1626d974ac2ace2866da7639" + integrity sha512-jgP+NZsHUh9Cp8PcXznnkpJTW3hPDLUgsXI0NKfE+8+Xvc6hALHxl6K46IyPYU67FfFlegYcBSNkOgpc85gk0A== + +"@swc/core-win32-x64-msvc@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.218.tgz#9f6ba50cac6e3322d844cc24418c7b0ab08f7e0e" + integrity sha512-XYLjX00KV4ft324Q3QDkw61xHkoN7EKkVvIpb0wXaf6wVshwU+BCDyPw2CSg4PQecNP8QGgMRQf9QM7xNtEM7A== + +"@swc/core@1.2.218": + version "1.2.218" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.218.tgz#3bc7532621f491bf920d103a4a0433ac7df9d390" + integrity sha512-wzXTeBUi3YAHr305lCo1tlxRj5Zpk7hu6rmulngH06NgrH7fS6bj8IaR7K2QPZ4ZZ4U+TGS2tOKbXBmqeMRUtg== + optionalDependencies: + "@swc/core-android-arm-eabi" "1.2.218" + "@swc/core-android-arm64" "1.2.218" + "@swc/core-darwin-arm64" "1.2.218" + "@swc/core-darwin-x64" "1.2.218" + "@swc/core-freebsd-x64" "1.2.218" + "@swc/core-linux-arm-gnueabihf" "1.2.218" + "@swc/core-linux-arm64-gnu" "1.2.218" + "@swc/core-linux-arm64-musl" "1.2.218" + "@swc/core-linux-x64-gnu" "1.2.218" + "@swc/core-linux-x64-musl" "1.2.218" + "@swc/core-win32-arm64-msvc" "1.2.218" + "@swc/core-win32-ia32-msvc" "1.2.218" + "@swc/core-win32-x64-msvc" "1.2.218" + +"@swc/jest@^0.2.22": + version "0.2.22" + resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.22.tgz#70d02ac648c21a442016d7a0aa485577335a4c9a" + integrity sha512-PIUIk9IdB1oAVfF9zNIfYoMBoEhahrrSvyryFANas7swC1cF0L5HR0f9X4qfet46oyCHCBtNcSpN0XJEOFIKlw== + dependencies: + "@jest/create-cache-key-function" "^27.4.2" + +"@swc/register@^0.1.10": + version "0.1.10" + resolved "https://registry.yarnpkg.com/@swc/register/-/register-0.1.10.tgz#74a20b7559669e03479b05e9e5c6d1524d4d92a2" + integrity sha512-6STwH/q4dc3pitXLVkV7sP0Hiy+zBsU2wOF1aXpXR95pnH3RYHKIsDC+gvesfyB7jxNT9OOZgcqOp9RPxVTx9A== + dependencies: + lodash.clonedeep "^4.5.0" + pirates "^4.0.1" + source-map-support "^0.5.13" + "@tootallnate/once@2": version "2.0.0" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" @@ -1627,6 +1755,25 @@ resolved "https://registry.yarnpkg.com/@types/aws-lambda/-/aws-lambda-8.10.101.tgz#35d85783a834e04604d49e85dc7ee6e2820e8939" integrity sha512-84geGyVc0H9P9aGbcg/vkDh5akJq0bEf3tizHNR2d1gcm0wsp9IZ/SW6rPxvgjJFi3OeVxDc8WTKCAjoZbogzg== +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== + +"@types/istanbul-lib-report@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" + integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^3.0.0": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" + integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== + dependencies: + "@types/istanbul-lib-report" "*" + "@types/js-yaml@^4.0.0": version "4.0.5" resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.5.tgz#738dd390a6ecc5442f35e7f03fa1431353f7e138" @@ -1666,6 +1813,18 @@ dependencies: "@types/node" "*" +"@types/yargs-parser@*": + version "21.0.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" + integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== + +"@types/yargs@^16.0.0": + version "16.0.4" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" + integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== + dependencies: + "@types/yargs-parser" "*" + abort-controller@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" @@ -2178,6 +2337,11 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" +commander@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== + common-tags@1.8.2: version "1.8.2" resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6" @@ -2458,7 +2622,7 @@ extract-files@^9.0.0: resolved "https://registry.yarnpkg.com/extract-files/-/extract-files-9.0.0.tgz#8a7744f2437f81f5ed3250ed9f1550de902fe54a" integrity sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ== -fast-glob@^3.2.9: +fast-glob@^3.2.5, fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== @@ -2648,7 +2812,7 @@ glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" -glob@^7.0.0, glob@^7.1.1, glob@^7.1.7: +glob@^7.1.1: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -2660,15 +2824,6 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.7: once "^1.3.0" path-is-absolute "^1.0.0" -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -2870,11 +3025,6 @@ inherits@2, inherits@^2.0.3, inherits@^2.0.4: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== -ini@^1.3.5: - version "1.3.8" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - inquirer@^8.0.0: version "8.2.4" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.4.tgz#ddbfe86ca2f67649a67daa6f1051c128f684f0b4" @@ -2905,11 +3055,6 @@ internal-slot@^1.0.3: has "^1.0.3" side-channel "^1.0.4" -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - invariant@^2.2.4: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" @@ -3115,11 +3260,6 @@ isarray@^1.0.0: resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - isomorphic-fetch@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz#0267b005049046d2421207215d45d6a262b8b8b4" @@ -3232,11 +3372,6 @@ jws@^3.2.2: jwa "^1.4.1" safe-buffer "^5.0.1" -kind-of@^6.0.2: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - lines-and-columns@^1.1.6: version "1.2.4" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" @@ -3263,6 +3398,11 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +lodash.clonedeep@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== + lodash.get@^4: version "4.4.2" resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" @@ -3425,11 +3565,6 @@ minimatch@^5.1.0: dependencies: brace-expansion "^2.0.1" -minimist@^1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" - integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== - mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" @@ -3728,6 +3863,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +pirates@^4.0.1: + version "4.0.5" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + promise@^7.1.1: version "7.3.1" resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" @@ -3800,13 +3940,6 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== - dependencies: - resolve "^1.1.6" - regenerator-runtime@^0.13.4: version "0.13.9" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" @@ -3870,7 +4003,7 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.20.0: +resolve@^1.10.0: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -3982,15 +4115,6 @@ setimmediate@^1.0.5: resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== -shelljs@^0.8.4: - version "0.8.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - side-channel@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" @@ -4010,7 +4134,7 @@ signedsource@^1.0.0: resolved "https://registry.yarnpkg.com/signedsource/-/signedsource-1.0.0.tgz#1ddace4981798f93bd833973803d80d52e93ad6a" integrity sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww== -slash@^3.0.0: +slash@3.0.0, slash@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== @@ -4041,7 +4165,7 @@ snake-case@^3.0.4: dot-case "^3.0.4" tslib "^2.0.3" -source-map-support@^0.5.17: +source-map-support@^0.5.13, source-map-support@^0.5.17: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== @@ -4054,6 +4178,11 @@ source-map@^0.6.0: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== +source-map@^0.7.3: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + spdx-correct@^3.0.0: version "3.1.1" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9" @@ -4213,7 +4342,7 @@ ts-log@^2.2.3: resolved "https://registry.yarnpkg.com/ts-log/-/ts-log-2.2.4.tgz#d672cf904b33735eaba67a7395c93d45fba475b3" integrity sha512-DEQrfv6l7IvN2jlzc/VTdZJYsWUnQNCsueYjMkC/iXoEoi5fNan6MjeDqkvhfzbmHgdz9UxDUluX3V5HdjTydQ== -ts-node@^10.5.0, ts-node@^10.8.0: +ts-node@^10.8.0: version "10.9.1" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== @@ -4244,19 +4373,6 @@ ts-node@^9: source-map-support "^0.5.17" yn "3.1.1" -ts-patch@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-2.0.1.tgz#08c17caef856b431641fc9fc88015f41195435b6" - integrity sha512-mP7beU1QkmyDs1+SzXYVaSTD6Xo7ZCibOJ3sZkb/xsQjoAQXvn4oPjk0keC2LfCNAgilqtqgjiWp3pQri1uz4w== - dependencies: - chalk "^4.1.0" - glob "^7.1.7" - global-prefix "^3.0.0" - minimist "^1.2.5" - resolve "^1.20.0" - shelljs "^0.8.4" - strip-ansi "^6.0.0" - tslib@^1.11.1: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -4477,13 +4593,6 @@ which-typed-array@^1.1.2: has-tostringtag "^1.0.0" is-typed-array "^1.1.9" -which@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - wrap-ansi@^6.2.0: version "6.2.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" diff --git a/test/__snapshots__/step-function.localstack.test.ts.snap b/test/__snapshots__/step-function.localstack.test.ts.snap index d4ff9012..d044e5b3 100644 --- a/test/__snapshots__/step-function.localstack.test.ts.snap +++ b/test/__snapshots__/step-function.localstack.test.ts.snap @@ -7951,7 +7951,7 @@ Object { "Variable": "$.heap6[0]", }, ], - "Default": "return \\"madeit\\"", + "Default": "return \`madeit\`", "Type": "Choice", }, "hasNext__for(i of input.arr)": Object { @@ -7983,7 +7983,7 @@ Object { "ResultPath": "$.i__2", "Type": "Pass", }, - "return \\"madeit\\"": Object { + "return \`madeit\`": Object { "End": true, "Result": "madeit", "ResultPath": "$", diff --git a/test/function.localstack.test.ts b/test/function.localstack.test.ts index dbc08c8b..673dfcf6 100644 --- a/test/function.localstack.test.ts +++ b/test/function.localstack.test.ts @@ -1299,7 +1299,7 @@ test("should not create new resources in lambda", async () => { ); await Promise.all(Function.promises); }).rejects.toThrow( - `Cannot initialize new CDK resources in a runtime function, found EventBus.` + `Cannot initialize new CDK resources in a runtime function.` ); }); @@ -1319,7 +1319,7 @@ test("should not create new functionless resources in lambda", async () => { ); await Promise.all(Function.promises); }).rejects.toThrow( - "Cannot initialize new resources in a runtime function, found EventBus." + "Cannot initialize new CDK resources in a runtime function." ); }); diff --git a/website/docs/getting-started.md b/website/docs/getting-started.md index 8dc66caa..a8d91d55 100644 --- a/website/docs/getting-started.md +++ b/website/docs/getting-started.md @@ -35,57 +35,61 @@ npm run deploy ## Add to an existing CDK project -Functionless relies on a TypeScript compiler plugin. Setting this up requires two packages, `functionless` and `ts-patch`, and some configuration added to your `tsconfig.json`. - -Install the `functionless` and `ts-patch` NPM packages. +Functionless relies on a [SWC](https://swc.rs) plugin for analyzing your code, so first install SWC and its core dependencies: ```shell -npm install --save-dev functionless ts-patch +npm install --save-dev functionless @swc/core@1.2.218 @swc/cli @swc/register @swc/jest ``` -Then, add `ts-patch install -s` to your `prepare` script (see [ts-patch](https://github.com/nonara/ts-patch) for mode details.) +Then, create a `.swcrc` file to configure SWC to use the [Functionless AST Reflection Plugin](https://github.com/functionless/ast-reflection). ```json { - "scripts": { - "prepare": "ts-patch install -s" + "jsc": { + "parser": { + "syntax": "typescript", + "dynamicImport": false, + "decorators": false, + "hidden": { + "jest": true + } + }, + "transform": null, + "target": "es2021", + "loose": false, + "externalHelpers": false, + "experimental": { + "plugins": [ + [ + // make sure to configure the ast-reflection plugin or else Functionless will not work + "@functionless/ast-reflection", + {} + ] + ] + } + }, + "minify": false, + "sourceMaps": "inline", + "module": { + "type": "commonjs" } } ``` -Make sure to run `npm install` to bootstrap `ts-patch` (via the `prepare` script). - -```shell -npm install -``` - -Finally, configure the `functionless/lib/compile` TypeScript transformer plugin in your `tsconfig.json`: +In your `cdk.json`, make sure to configure the `@swc/register` require-hook. This hook ensures that the [Functionless AST Reflection Plugin](https://github.com/functionless/ast-reflection) is applied to all `src` and `node_modules`, enabling AST-reflection on not just your code, but also your dependencies. ```json { - "compilerOptions": { - "plugins": [ - { - "transform": "functionless/lib/compile" - } - ] - } + "app": "node -r '@swc/register' ./src/app.ts" } ``` -Files can be ignored by the transformer by using glob patterns in the `tsconfig.json`: +For `jest` integration, we use [`@swc/jest`](https://github.com/swc-project/jest) instead of `ts-jest`. To configure `@swc/jest`, simply add the following `transform` configuration and remove any `ts-jest` configuration. ```json -{ - "compilerOptions": { - "plugins": [ - { - "transform": "functionless/lib/compile", - "exclude": ["./src/**/protected/*"] - } - ] - } -} +"transform": { + "^.+\\.(t|j)sx?$": ["@swc/jest", {}] +}, ``` ## Configure IDE Language Service diff --git a/yarn.lock b/yarn.lock index a46ba0cc..81c098ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1045,10 +1045,10 @@ resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.0.1.tgz#bf025e87456449f47a62c90323e55574b5131fdc" integrity sha512-flKyyHZsAlSdEn9rZuLIOsLhM+jqt0U8vIPKsc/tzJzWnVRXRMHTzubES+YoXqT5MR0dJo94MTfte5zN/YlXxg== -"@functionless/nodejs-closure-serializer@^0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@functionless/nodejs-closure-serializer/-/nodejs-closure-serializer-0.1.1.tgz#2c56bbe164c3447d55ff8162472e9c0b59c1e690" - integrity sha512-wjFpir9ulw9ulB4bU6gpf6PF7X2iwK6cGBQV0S9e33SchcIPR4EypOPC0Cbf0H4aG6g5mQYP3r9RZaWRpmrUmw== +"@functionless/nodejs-closure-serializer@^0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@functionless/nodejs-closure-serializer/-/nodejs-closure-serializer-0.1.2.tgz#70d0a00d34629e40a362e35b144506aa5ceac7cd" + integrity sha512-l5SXGotOZ+WV7muMFe4Y3mlSwL5kQoDk4CRSZs07fp1rJNbNIFtP+T0CgXB1IlHOAb6IImaCYIwFgJgahE/lIA== dependencies: normalize-package-data "^4.0.0" read-package-tree "^5.3.1" From 3985881fdf3eb9582546486d935931d5cadad735 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 17:42:48 -0700 Subject: [PATCH 043/107] chore: remove dead code --- src/reflect.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/reflect.ts b/src/reflect.ts index aad08378..a3ff7853 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -2,11 +2,7 @@ import { FunctionLike } from "./declaration"; import { Err } from "./error"; import { ErrorCodes, SynthError } from "./error-code"; import { isFunctionLike, isErr, isNewExpr } from "./guards"; -import { - findDeepIntegrations, - tryFindIntegration, - tryFindIntegrations, -} from "./integration"; +import { tryFindIntegrations } from "./integration"; import type { FunctionlessNode } from "./node"; import { parseSExpr } from "./s-expression"; import { AnyAsyncFunction, AnyFunction } from "./util"; From 5ec25e738f84adf6f0db8c04b4e401d684bf3b4a Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 21:54:24 -0700 Subject: [PATCH 044/107] chore: revert unnecessary changes --- src/asl.ts | 4 ++-- src/expression.ts | 4 ++-- src/visit.ts | 24 ------------------------ 3 files changed, 4 insertions(+), 28 deletions(-) diff --git a/src/asl.ts b/src/asl.ts index 22025f8c..dfa31fb3 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -5008,12 +5008,12 @@ export namespace ASL { "===" | "==" | ">" | ">=" | "<=" | "<", Record<"string" | "boolean" | "number", keyof Condition | undefined> > = { - "===": { + "==": { string: "StringEquals", boolean: "BooleanEquals", number: "NumericEquals", }, - "==": { + "===": { string: "StringEquals", boolean: "BooleanEquals", number: "NumericEquals", diff --git a/src/expression.ts b/src/expression.ts index c7bb9bff..cc16f6d4 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -674,14 +674,14 @@ export class YieldExpr extends BaseExpr { /** * The expression to yield (or delegate) to. */ - readonly expr: Expr, + readonly expr: Expr | undefined, /** * Is a `yield*` delegate expression. */ readonly delegate: boolean ) { super(NodeKind.YieldExpr, arguments); - this.ensure(expr, "expr", ["Expr"]); + this.ensure(expr, "expr", ["undefined", "Expr"]); this.ensure(delegate, "delegate", ["boolean"]); } } diff --git a/src/visit.ts b/src/visit.ts index a0ace97d..f12d2e60 100644 --- a/src/visit.ts +++ b/src/visit.ts @@ -62,30 +62,6 @@ export function visitEachChild( return new ctor(...args) as T; } -export function forEachChild( - node: FunctionlessNode, - visit: (node: FunctionlessNode) => any -): void { - for (const argument of node._arguments) { - if (argument === null || typeof argument !== "object") { - // all primitives are simply returned as-is - } else if (isNode(argument)) { - if (visit(argument)) { - // if a truthy value is returned from visit, terminate the walk - return; - } - } else if (Array.isArray(argument)) { - // is an Array of nodes - for (const item of argument) { - if (visit(item)) { - // if a truthy value is returned from visit, terminate the walk - return; - } - } - } - } -} - /** * Walks each of the children in {@link node} and calls {@link visit}. * From dbb18ec3f608c6c6dff622bb0ef2d59e36da914f Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 21:55:02 -0700 Subject: [PATCH 045/107] chore: cleanup --- src/asl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asl.ts b/src/asl.ts index dfa31fb3..8cca167c 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -5084,8 +5084,8 @@ export namespace ASL { operator: keyof typeof VALUE_COMPARISONS | "!=" | "!==" ): Condition => { if ( - operator === "===" || operator === "==" || + operator === "===" || operator === ">" || operator === "<" || operator === ">=" || From 4f82a748e7f3698fc48d09a0302b5367560199f2 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 8 Aug 2022 22:00:43 -0700 Subject: [PATCH 046/107] feat: fix YieldExpr --- src/expression.ts | 17 +++++++++++++---- src/reflect.ts | 2 +- src/serialize-closure.ts | 6 ++++-- test/serialize-closure.test.ts | 4 +++- 4 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/expression.ts b/src/expression.ts index cc16f6d4..d8d5d512 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -669,20 +669,29 @@ export class ImportKeyword extends BaseNode { } } -export class YieldExpr extends BaseExpr { +export class YieldExpr< + Delegate extends boolean = boolean +> extends BaseExpr { constructor( /** * The expression to yield (or delegate) to. + * + * If {@link delegate} is `true`, then {@link expr} must be defined, because + * `yield*` defers to another Generator, which `undefined` is not. */ - readonly expr: Expr | undefined, + readonly expr: Expr | Delegate extends true ? undefined : never, /** * Is a `yield*` delegate expression. */ - readonly delegate: boolean + readonly delegate: Delegate ) { super(NodeKind.YieldExpr, arguments); - this.ensure(expr, "expr", ["undefined", "Expr"]); this.ensure(delegate, "delegate", ["boolean"]); + if (delegate) { + this.ensure(expr, "expr", ["Expr"]); + } else { + this.ensure(expr, "expr", ["undefined", "Expr"]); + } } } diff --git a/src/reflect.ts b/src/reflect.ts index 87090daf..7caf10a1 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -167,7 +167,7 @@ function validateFunctionlessNodeSemantics( // we should definitely make this a Symbol typeof clazz.FunctionlessType === "string" ); - if (references?.length > 0) { + if (references.length > 0) { throw new SynthError( ErrorCodes.Unsupported_initialization_of_resources, "Cannot initialize new CDK resources in a runtime function." diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 5a9a283a..d521b780 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -537,12 +537,14 @@ export function serializeClosure(func: AnyFunction): string { if (node.delegate) { return ts.factory.createYieldExpression( ts.factory.createToken(ts.SyntaxKind.AsteriskToken), - serializeAST(node.expr) as ts.Expression + node.expr + ? (serializeAST(node.expr) as ts.Expression) + : ts.factory.createIdentifier("undefined") ); } else { return ts.factory.createYieldExpression( undefined, - serializeAST(node.expr) as ts.Expression + node.expr ? (serializeAST(node.expr) as ts.Expression) : undefined ); } } else if (isUnaryExpr(node)) { diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index baea550f..2ff27c7c 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -9,5 +9,7 @@ test("serialize a closure", () => { return i; }); - expect(closure).toEqual(""); + expect(closure).toEqual(`const v0 = () => { 0 += 1; return 0; }; +exports.handler = v0; +`); }); From c162f1bb75f396a8f1127da27f91fa532986d601 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 9 Aug 2022 00:03:15 -0700 Subject: [PATCH 047/107] feat: add Span information to F-AST --- .projen/deps.json | 1 + .projen/tasks.json | 10 +- .projenrc.js | 2 +- package.json | 2 +- src/api.ts | 4 +- src/appsync.ts | 56 +++-- src/asl.ts | 26 ++- src/declaration.ts | 112 ++++++++-- src/error.ts | 11 +- src/event-bridge/utils.ts | 38 +++- src/expression.ts | 416 ++++++++++++++++++++++++++++++-------- src/integration.ts | 3 +- src/node.ts | 11 +- src/s-expression.ts | 10 +- src/span.ts | 30 +++ src/statement.ts | 207 +++++++++++++++---- src/visit.ts | 24 ++- test/node.test.ts | 31 ++- yarn.lock | 6 +- 19 files changed, 800 insertions(+), 200 deletions(-) create mode 100644 src/span.ts diff --git a/.projen/deps.json b/.projen/deps.json index 0b445abc..347936d8 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -22,6 +22,7 @@ }, { "name": "@functionless/ast-reflection", + "version": "file:../ast-reflection", "type": "build" }, { diff --git a/.projen/tasks.json b/.projen/tasks.json index 79b7ee6f..a9f4e567 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -259,19 +259,19 @@ "exec": "yarn upgrade npm-check-updates" }, { - "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep dev --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,@functionless/ast-reflection,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep optional --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,@functionless/ast-reflection,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep peer --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,@functionless/ast-reflection,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep prod --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,@functionless/ast-reflection,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { - "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" + "exec": "npm-check-updates --dep bundle --upgrade --target=minor --reject='@aws-cdk/aws-appsync-alpha,@aws-cdk/cloud-assembly-schema,@aws-cdk/cloudformation-diff,@aws-cdk/cx-api,@functionless/ast-reflection,aws-cdk-lib,aws-cdk,cdk-assets,constructs,typesafe-dynamodb,typescript'" }, { "exec": "yarn install --check-files" diff --git a/.projenrc.js b/.projenrc.js index 97b17798..c86dd131 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -116,7 +116,7 @@ const project = new CustomTypescriptProject({ "@swc/core", "@swc/register", "@swc/jest", - "@functionless/ast-reflection", + "@functionless/ast-reflection@file:../ast-reflection", ], jestOptions: { jestConfig: { diff --git a/package.json b/package.json index cccfdaf7..0d5d136c 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", - "@functionless/ast-reflection": "0.0.1", + "@functionless/ast-reflection": "file:../ast-reflection", "@swc/cli": "^0.1.57", "@swc/core": "1.2.218", "@swc/jest": "^0.2.22", diff --git a/src/api.ts b/src/api.ts index 4bd6f454..6ea575d4 100644 --- a/src/api.ts +++ b/src/api.ts @@ -651,7 +651,9 @@ export class APIGatewayVTL extends VTL { public eval(node?: Expr | Stmt, returnVar?: string): string | void { if (isReturnStmt(node)) { return this.add( - this.exprToJson(node.expr ?? node.fork(new UndefinedLiteralExpr())) + this.exprToJson( + node.expr ?? node.fork(new UndefinedLiteralExpr(node.span)) + ) ); } else if ( isPropAccessExpr(node) && diff --git a/src/appsync.ts b/src/appsync.ts index b9a29cab..19fad41b 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -54,6 +54,7 @@ import { import { Literal } from "./literal"; import { FunctionlessNode } from "./node"; import { validateFunctionLike } from "./reflect"; +import { emptySpan } from "./span"; import { BlockStmt, VariableStmt } from "./statement"; import { AnyFunction, @@ -451,7 +452,7 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { ): FunctionlessNode | FunctionlessNode[] { // just counting, don'r do anything if (isBlockStmt(node)) { - return new BlockStmt([ + return new BlockStmt(node.span, [ // for each block statement ...visitBlock( node, @@ -485,7 +486,12 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { return node.declList.decls.map( (decl) => new VariableStmt( - new VariableDeclList([decl], node.declList.varKind) + node.span, + new VariableDeclList( + node.declList.span, + [decl], + node.declList.varKind + ) ) ); } else if (isBinaryExpr(node)) { @@ -503,51 +509,73 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { ); const rightClassName = new PropAccessExpr( + updatedNode.span, new PropAccessExpr( + updatedNode.right.span, updatedNode.right, - new Identifier("class"), + new Identifier(emptySpan(), "class"), false ), - new Identifier("name"), + new Identifier(emptySpan(), "name"), false ); return new ConditionExpr( + node.span, new BinaryExpr( + node.span, new CallExpr( + node.span, new PropAccessExpr( + node.span, rightClassName, - new Identifier("startsWith"), + new Identifier(emptySpan(), "startsWith"), false ), - [new Argument(new StringLiteralExpr("[L"))] + [ + new Argument( + emptySpan(), + new StringLiteralExpr(emptySpan(), "[L") + ), + ] ), "||", new CallExpr( + node.span, new PropAccessExpr( + node.span, rightClassName, - new Identifier("contains"), + new Identifier(emptySpan(), "contains"), false ), - [new Argument(new StringLiteralExpr("ArrayList"))] + [ + new Argument( + emptySpan(), + new StringLiteralExpr(emptySpan(), "ArrayList") + ), + ] ) ), new BinaryExpr( + node.span, new PropAccessExpr( + node.span, updatedNode.right, - new Identifier("length"), + new Identifier(emptySpan(), "length"), false ), ">=", updatedNode.left ), new CallExpr( + node.span, new PropAccessExpr( + updatedNode.span, updatedNode.right, - new Identifier("containsKey"), + new Identifier(emptySpan(), "containsKey"), false ), - [new Argument(updatedNode.left)] + [new Argument(updatedNode.left.span, updatedNode.left)] ) ); } @@ -613,7 +641,7 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { service, `${pre ? `${pre}\n` : ""}#set( $context.stash.return__flag = true ) #set( $context.stash.return__val = ${getResult( - stmt.expr ?? stmt.fork(new UndefinedLiteralExpr()) + stmt.expr ?? stmt.fork(new UndefinedLiteralExpr(stmt.span)) )} ) {}` ); @@ -689,7 +717,9 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { } } else if (isLastExpr) { if (isReturnStmt(stmt)) { - template.return(stmt.expr ?? stmt.fork(new UndefinedLiteralExpr())); + template.return( + stmt.expr ?? stmt.fork(new UndefinedLiteralExpr(stmt.span)) + ); } else if (isIfStmt(stmt)) { template.eval(stmt); } else { diff --git a/src/asl.ts b/src/asl.ts index 8cca167c..5fd22a67 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -116,6 +116,7 @@ import { tryFindIntegration, } from "./integration"; import { BindingDecl, FunctionlessNode } from "./node"; +import { emptySpan } from "./span"; import { BlockStmt, BreakStmt, @@ -513,7 +514,7 @@ export class ASL { | FunctionlessNode | FunctionlessNode[] { if (isBlockStmt(node)) { - return new BlockStmt([ + return new BlockStmt(node.span, [ // for each block statement ...node.statements.flatMap((stmt) => { const transformed = normalizeAST(stmt) as Stmt[]; @@ -530,7 +531,12 @@ export class ASL { // without this, chains that should return null will actually include the entire state as their output ...(isFunctionLike(node.parent) && (!node.lastStmt || !node.lastStmt.isTerminal()) - ? [new ReturnStmt(new NullLiteralExpr())] + ? [ + new ReturnStmt( + node.lastStmt?.span ?? node.span, + new NullLiteralExpr(node.lastStmt?.span ?? node.span) + ), + ] : []), ]); } else if (isForOfStmt(node) && node.isAwait) { @@ -896,12 +902,12 @@ export class ASL { [ASL.ContinueNext]: { Type: "Pass", Next: "tail", - node: new ContinueStmt(), + node: new ContinueStmt(emptySpan()), }, [ASL.BreakNext]: { Type: "Pass", Next: "exit", - node: new BreakStmt(), + node: new BreakStmt(emptySpan()), }, }, }; @@ -961,12 +967,12 @@ export class ASL { [ASL.ContinueNext]: { Type: "Pass", Next: "check", - node: new ContinueStmt(), + node: new ContinueStmt(emptySpan()), }, [ASL.BreakNext]: { Type: "Pass", Next: "exit", - node: new BreakStmt(), + node: new BreakStmt(emptySpan()), }, }, })!; @@ -1019,7 +1025,7 @@ export class ASL { }); } else if (isReturnStmt(stmt)) { return this.evalExprToSubState( - stmt.expr ?? stmt.fork(new NullLiteralExpr()), + stmt.expr ?? stmt.fork(new NullLiteralExpr(stmt.span)), (output) => ASLGraph.passWithInput( { @@ -1351,12 +1357,12 @@ export class ASL { ), [ASL.ContinueNext]: { Type: "Pass", - node: new ContinueStmt(), + node: new ContinueStmt(emptySpan()), Next: "check", }, [ASL.BreakNext]: { Type: "Pass", - node: new BreakStmt(), + node: new BreakStmt(emptySpan()), Next: ASLGraph.DeferNext, }, }, @@ -2907,7 +2913,7 @@ export class ASL { }; const expression = toFilterCondition( - stmt.expr ?? stmt.fork(new NullLiteralExpr()) + stmt.expr ?? stmt.fork(new NullLiteralExpr(stmt.span)) ); return expression ? { diff --git a/src/declaration.ts b/src/declaration.ts index d57021be..c7e6818e 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -11,6 +11,7 @@ import { import { Integration } from "./integration"; import { BaseNode, FunctionlessNode } from "./node"; import { NodeKind } from "./node-kind"; +import { Span } from "./span"; import type { BlockStmt, CatchClause, @@ -42,11 +43,15 @@ export class ClassDecl extends BaseDecl< > { readonly _classBrand?: C; constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: string, readonly heritage: Expr | undefined, readonly members: ClassMember[] ) { - super(NodeKind.ClassDecl, arguments); + super(NodeKind.ClassDecl, span, arguments); this.ensure(name, "name", ["string"]); this.ensureArrayOf(members, "members", NodeKind.ClassMember); } @@ -61,15 +66,28 @@ export type ClassMember = | SetAccessorDecl; export class ClassStaticBlockDecl extends BaseDecl { - constructor(readonly block: BlockStmt) { - super(NodeKind.ClassStaticBlockDecl, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly block: BlockStmt + ) { + super(NodeKind.ClassStaticBlockDecl, span, arguments); this.ensure(block, "block", [NodeKind.BlockStmt]); } } export class ConstructorDecl extends BaseDecl { - constructor(readonly parameters: ParameterDecl[], readonly body: BlockStmt) { - super(NodeKind.ConstructorDecl, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly parameters: ParameterDecl[], + readonly body: BlockStmt + ) { + super(NodeKind.ConstructorDecl, span, arguments); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); } @@ -77,6 +95,10 @@ export class ConstructorDecl extends BaseDecl { export class MethodDecl extends BaseDecl { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: PropName, readonly parameters: ParameterDecl[], readonly body: BlockStmt, @@ -107,7 +129,7 @@ export class MethodDecl extends BaseDecl { */ readonly isAsterisk: boolean ) { - super(NodeKind.MethodDecl, arguments); + super(NodeKind.MethodDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); @@ -118,11 +140,15 @@ export class MethodDecl extends BaseDecl { export class PropDecl extends BaseDecl { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: PropName, readonly isStatic: boolean, readonly initializer?: Expr ) { - super(NodeKind.PropDecl, arguments); + super(NodeKind.PropDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensure(isStatic, "isStatic", ["boolean"]); this.ensure(initializer, "initializer", ["undefined", "Expr"]); @@ -133,8 +159,15 @@ export class GetAccessorDecl extends BaseDecl< NodeKind.GetAccessorDecl, ClassDecl | ClassExpr | ObjectLiteralExpr > { - constructor(readonly name: PropName, readonly body: BlockStmt) { - super(NodeKind.GetAccessorDecl, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly name: PropName, + readonly body: BlockStmt + ) { + super(NodeKind.GetAccessorDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensure(body, "body", [NodeKind.BlockStmt]); } @@ -144,11 +177,15 @@ export class SetAccessorDecl extends BaseDecl< ClassDecl | ClassExpr | ObjectLiteralExpr > { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: PropName, readonly parameter: ParameterDecl, readonly body: BlockStmt ) { - super(NodeKind.SetAccessorDecl, arguments); + super(NodeKind.SetAccessorDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensure(parameter, "parameter", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); @@ -165,6 +202,10 @@ export class FunctionDecl< > extends BaseDecl { readonly _functionBrand?: F; constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, // TODO: narrow to string once we migrate compile.ts to produce a 1:1 AST node // right now, Arrow and FunctionExpr are parsed to FunctionDecl, so name can be undefined // according to the spec, name is mandatory on a FunctionDecl and FunctionExpr @@ -192,7 +233,7 @@ export class FunctionDecl< */ readonly isAsterisk: boolean ) { - super(NodeKind.FunctionDecl, arguments); + super(NodeKind.FunctionDecl, span, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); @@ -210,6 +251,10 @@ export class ParameterDecl extends BaseDecl< ArrowFunctionExpr | FunctionDecl | FunctionExpr | SetAccessorDecl > { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: BindingName, readonly initializer: Expr | undefined, /** @@ -219,7 +264,7 @@ export class ParameterDecl extends BaseDecl< * ``` */ readonly isRest: boolean ) { - super(NodeKind.ParameterDecl, arguments); + super(NodeKind.ParameterDecl, span, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(initializer, "initializer", ["undefined", "Expr"]); this.ensure(isRest, "isRest", ["boolean"]); @@ -267,12 +312,16 @@ export class BindingElem extends BaseDecl< BindingPattern > { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: BindingName, readonly rest: boolean, readonly propertyName?: PropName, readonly initializer?: Expr ) { - super(NodeKind.BindingElem, arguments); + super(NodeKind.BindingElem, span, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(rest, "rest", ["boolean"]); this.ensure(propertyName, "propertyName", [ @@ -310,8 +359,14 @@ export class ObjectBinding extends BaseNode< > { readonly nodeKind: "Node" = "Node"; - constructor(readonly bindings: BindingElem[]) { - super(NodeKind.ObjectBinding, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly bindings: BindingElem[] + ) { + super(NodeKind.ObjectBinding, span, arguments); this.ensureArrayOf(bindings, "bindings", [NodeKind.BindingElem]); } } @@ -342,8 +397,14 @@ export class ArrayBinding extends BaseNode< > { readonly nodeKind: "Node" = "Node"; - constructor(readonly bindings: (BindingElem | OmittedExpr)[]) { - super(NodeKind.ArrayBinding, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly bindings: (BindingElem | OmittedExpr)[] + ) { + super(NodeKind.ArrayBinding, span, arguments); this.ensureArrayOf(bindings, "bindings", [ NodeKind.BindingElem, NodeKind.OmittedExpr, @@ -366,8 +427,15 @@ export enum VariableDeclKind { export class VariableDecl< E extends Expr | undefined = Expr | undefined > extends BaseDecl { - constructor(readonly name: BindingName, readonly initializer: E) { - super(NodeKind.VariableDecl, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly name: BindingName, + readonly initializer: E + ) { + super(NodeKind.VariableDecl, span, arguments); this.ensure(name, "name", NodeKind.BindingNames); this.ensure(initializer, "initializer", ["undefined", "Expr"]); } @@ -382,10 +450,14 @@ export class VariableDeclList extends BaseNode< readonly nodeKind: "Node" = "Node"; constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly decls: VariableDecl[], readonly varKind: VariableDeclKind ) { - super(NodeKind.VariableDeclList, arguments); + super(NodeKind.VariableDeclList, span, arguments); this.ensureArrayOf(decls, "decls", [NodeKind.VariableDecl]); } } diff --git a/src/error.ts b/src/error.ts index 789d1ed9..c7a26836 100644 --- a/src/error.ts +++ b/src/error.ts @@ -1,11 +1,18 @@ import { BaseNode } from "./node"; import { NodeKind } from "./node-kind"; +import { Span } from "./span"; export class Err extends BaseNode { readonly nodeKind: "Err" = "Err"; - constructor(readonly error: Error) { - super(NodeKind.Err, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly error: Error + ) { + super(NodeKind.Err, span, arguments); } } diff --git a/src/event-bridge/utils.ts b/src/event-bridge/utils.ts index 2d0da31b..fd87ca53 100644 --- a/src/event-bridge/utils.ts +++ b/src/event-bridge/utils.ts @@ -84,6 +84,7 @@ export const getPropertyAccessKeyFlatten = ( if (isElementAccessExpr(expr)) { return getPropertyAccessKey( new ElementAccessExpr( + expr.span, expr.expr, flattenExpression(expr.element, scope), expr.isOptional @@ -145,7 +146,11 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { if (isParenthesizedExpr(expr)) { return flattenExpression(expr.expr, scope); } else if (isUnaryExpr(expr)) { - return new UnaryExpr(expr.op, flattenExpression(expr.expr, scope)); + return new UnaryExpr( + expr.span, + expr.op, + flattenExpression(expr.expr, scope) + ); } else if (isIdentifier(expr)) { // if this variable is in scope, return the expression it points to. if (expr.name in scope) { @@ -188,17 +193,30 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { throw Error("Object access must be a string."); } else if (isArrayLiteralExpr(parent)) { if (typeof key === "number") { - return parent.items[key] ?? parent.fork(new UndefinedLiteralExpr()); + return ( + parent.items[key] ?? parent.fork(new UndefinedLiteralExpr(expr.span)) + ); } throw new Error("Array access must be a number."); } return typeof key === "string" - ? new PropAccessExpr(parent, new Identifier(key), false) - : new ElementAccessExpr(parent, new NumberLiteralExpr(key), false); + ? new PropAccessExpr( + expr.span, + parent, + new Identifier(expr.span, key), + false + ) + : new ElementAccessExpr( + expr.span, + parent, + new NumberLiteralExpr(expr.span, key), + false + ); } else if (isComputedPropertyNameExpr(expr)) { return flattenExpression(expr.expr, scope); } else if (isArrayLiteralExpr(expr)) { return new ArrayLiteralExpr( + expr.span, expr.items.reduce((items, x) => { if (isSpreadElementExpr(x)) { const ref = flattenExpression(x.expr, scope); @@ -214,17 +232,20 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { ); } else if (isBinaryExpr(expr)) { return new BinaryExpr( + expr.span, flattenExpression(expr.left, scope), expr.op, flattenExpression(expr.right, scope) ); } else if (isObjectLiteralExpr(expr)) { return new ObjectLiteralExpr( + expr.span, expr.properties.reduce((props, e) => { if (isPropAssignExpr(e)) { return [ ...props, new PropAssignExpr( + e.span, isIdentifier(e.name) ? e.name : assertNodeKind( @@ -265,20 +286,23 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { // when all of values are constants, turn them into a string constant now. return allConstants ? new StringLiteralExpr( + expr.span, [ expr.head.text, ...flattenedConstants.flatMap((e) => [e[0]!.constant, e[1]]), ].join("") ) : new TemplateExpr( + expr.span, expr.head.clone(), expr.spans.map( (span) => new TemplateSpan( + span.span, flattenExpression(span.expr, scope), isTemplateMiddle(span.literal) - ? new TemplateMiddle(span.literal.text) - : new TemplateTail(span.literal.text) + ? new TemplateMiddle(span.literal.span, span.literal.text) + : new TemplateTail(span.literal.span, span.literal.text) ) ) as [...TemplateSpan[], TemplateSpan] ); @@ -366,7 +390,7 @@ export const flattenReturnEvent = (stmts: Stmt[]) => { } return flattenExpression( - ret.expr ?? ret.fork(new UndefinedLiteralExpr()), + ret.expr ?? ret.fork(new UndefinedLiteralExpr(ret.span)), scope ); }; diff --git a/src/expression.ts b/src/expression.ts index cc16f6d4..7e8f591a 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -18,6 +18,7 @@ import { } from "./guards"; import { BaseNode, FunctionlessNode } from "./node"; import { NodeKind } from "./node-kind"; +import { Span } from "./span"; import type { BlockStmt, Stmt } from "./statement"; import type { AnyClass, AnyFunction } from "./util"; @@ -82,6 +83,10 @@ export class ArrowFunctionExpr< > extends BaseExpr { readonly _functionBrand?: F; constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly parameters: ParameterDecl[], readonly body: BlockStmt, /** @@ -92,7 +97,7 @@ export class ArrowFunctionExpr< */ readonly isAsync: boolean ) { - super(NodeKind.ArrowFunctionExpr, arguments); + super(NodeKind.ArrowFunctionExpr, span, arguments); this.ensure(body, "body", [NodeKind.BlockStmt]); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(isAsync, "isAsync", ["boolean"]); @@ -104,6 +109,10 @@ export class FunctionExpr< > extends BaseExpr { readonly _functionBrand?: F; constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: string | undefined, readonly parameters: ParameterDecl[], readonly body: BlockStmt, @@ -128,7 +137,7 @@ export class FunctionExpr< */ readonly isAsterisk: boolean ) { - super(NodeKind.FunctionExpr, arguments); + super(NodeKind.FunctionExpr, span, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); @@ -143,11 +152,15 @@ export class ClassExpr extends BaseExpr< > { readonly _classBrand?: C; constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly name: string | undefined, readonly heritage: Expr | undefined, readonly members: ClassMember[] ) { - super(NodeKind.ClassExpr, arguments); + super(NodeKind.ClassExpr, span, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensure(heritage, "heritage", ["undefined", "Expr"]); this.ensureArrayOf(members, "members", NodeKind.ClassMember); @@ -157,8 +170,15 @@ export class ClassExpr extends BaseExpr< export class ReferenceExpr< R = unknown > extends BaseExpr { - constructor(readonly name: string, readonly ref: () => R) { - super(NodeKind.ReferenceExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly name: string, + readonly ref: () => R + ) { + super(NodeKind.ReferenceExpr, span, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensure(ref, "ref", ["function"]); } @@ -167,8 +187,14 @@ export class ReferenceExpr< export type VariableReference = Identifier | PropAccessExpr | ElementAccessExpr; export class Identifier extends BaseExpr { - constructor(readonly name: string) { - super(NodeKind.Identifier, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly name: string + ) { + super(NodeKind.Identifier, span, arguments); this.ensure(name, "name", ["string"]); } @@ -178,8 +204,14 @@ export class Identifier extends BaseExpr { } export class PrivateIdentifier extends BaseExpr { - constructor(readonly name: `#${string}`) { - super(NodeKind.PrivateIdentifier, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly name: `#${string}` + ) { + super(NodeKind.PrivateIdentifier, span, arguments); this.ensure(name, "name", ["string"]); } @@ -190,6 +222,10 @@ export class PrivateIdentifier extends BaseExpr { export class PropAccessExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly expr: Expr, readonly name: Identifier | PrivateIdentifier, /** @@ -200,7 +236,7 @@ export class PropAccessExpr extends BaseExpr { */ readonly isOptional: boolean ) { - super(NodeKind.PropAccessExpr, arguments); + super(NodeKind.PropAccessExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensure(name, "ref", [NodeKind.Identifier, NodeKind.PrivateIdentifier]); } @@ -208,6 +244,10 @@ export class PropAccessExpr extends BaseExpr { export class ElementAccessExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly expr: Expr, readonly element: Expr, /** @@ -218,7 +258,7 @@ export class ElementAccessExpr extends BaseExpr { */ readonly isOptional: boolean ) { - super(NodeKind.ElementAccessExpr, arguments); + super(NodeKind.ElementAccessExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensure(element, "element", ["Expr"]); this.ensure(isOptional, "isOptional", ["undefined", "boolean"]); @@ -226,8 +266,14 @@ export class ElementAccessExpr extends BaseExpr { } export class Argument extends BaseExpr { - constructor(readonly expr: Expr) { - super(NodeKind.Argument, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.Argument, span, arguments); this.ensure(expr, "element", ["Expr"]); } } @@ -238,22 +284,44 @@ export class CallExpr< | SuperKeyword | ImportKeyword > extends BaseExpr { - constructor(readonly expr: E, readonly args: Argument[]) { - super(NodeKind.CallExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: E, + readonly args: Argument[] + ) { + super(NodeKind.CallExpr, span, arguments); } } export class NewExpr extends BaseExpr { - constructor(readonly expr: Expr, readonly args: Argument[]) { - super(NodeKind.NewExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr, + readonly args: Argument[] + ) { + super(NodeKind.NewExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensureArrayOf(args, "args", [NodeKind.Argument]); } } export class ConditionExpr extends BaseExpr { - constructor(readonly when: Expr, readonly then: Expr, readonly _else: Expr) { - super(NodeKind.ConditionExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly when: Expr, + readonly then: Expr, + readonly _else: Expr + ) { + super(NodeKind.ConditionExpr, span, arguments); this.ensure(when, "when", ["Expr"]); this.ensure(then, "then", ["Expr"]); this.ensure(_else, "else", ["Expr"]); @@ -331,11 +399,15 @@ export type BinaryOp = export class BinaryExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly left: Expr, readonly op: BinaryOp, readonly right: Expr ) { - super(NodeKind.BinaryExpr, arguments); + super(NodeKind.BinaryExpr, span, arguments); this.ensure(left, "left", ["Expr"]); this.ensure(right, "right", ["Expr"]); } @@ -352,15 +424,29 @@ export type PostfixUnaryOp = "--" | "++"; export type UnaryOp = "!" | "+" | "-" | "~" | PostfixUnaryOp; export class UnaryExpr extends BaseExpr { - constructor(readonly op: UnaryOp, readonly expr: Expr) { - super(NodeKind.UnaryExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly op: UnaryOp, + readonly expr: Expr + ) { + super(NodeKind.UnaryExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } export class PostfixUnaryExpr extends BaseExpr { - constructor(readonly op: PostfixUnaryOp, readonly expr: Expr) { - super(NodeKind.PostfixUnaryExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly op: PostfixUnaryOp, + readonly expr: Expr + ) { + super(NodeKind.PostfixUnaryExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } @@ -369,50 +455,90 @@ export class PostfixUnaryExpr extends BaseExpr { export class NullLiteralExpr extends BaseExpr { readonly value = null; - constructor() { - super(NodeKind.NullLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.NullLiteralExpr, span, arguments); } } export class UndefinedLiteralExpr extends BaseExpr { readonly value = undefined; - constructor() { - super(NodeKind.UndefinedLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.UndefinedLiteralExpr, span, arguments); } } export class BooleanLiteralExpr extends BaseExpr { - constructor(readonly value: boolean) { - super(NodeKind.BooleanLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly value: boolean + ) { + super(NodeKind.BooleanLiteralExpr, span, arguments); this.ensure(value, "value", ["boolean"]); } } export class BigIntExpr extends BaseExpr { - constructor(readonly value: bigint) { - super(NodeKind.BigIntExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly value: bigint + ) { + super(NodeKind.BigIntExpr, span, arguments); this.ensure(value, "value", ["bigint"]); } } export class NumberLiteralExpr extends BaseExpr { - constructor(readonly value: number) { - super(NodeKind.NumberLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly value: number + ) { + super(NodeKind.NumberLiteralExpr, span, arguments); this.ensure(value, "value", ["number"]); } } export class StringLiteralExpr extends BaseExpr { - constructor(readonly value: string) { - super(NodeKind.StringLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly value: string + ) { + super(NodeKind.StringLiteralExpr, span, arguments); this.ensure(value, "value", ["string"]); } } export class ArrayLiteralExpr extends BaseExpr { - constructor(readonly items: Expr[]) { - super(NodeKind.ArrayLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly items: Expr[] + ) { + super(NodeKind.ArrayLiteralExpr, span, arguments); this.ensureArrayOf(items, "items", ["Expr"]); } } @@ -425,8 +551,14 @@ export type ObjectElementExpr = | SpreadAssignExpr; export class ObjectLiteralExpr extends BaseExpr { - constructor(readonly properties: ObjectElementExpr[]) { - super(NodeKind.ObjectLiteralExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly properties: ObjectElementExpr[] + ) { + super(NodeKind.ObjectLiteralExpr, span, arguments); this.ensureArrayOf(properties, "properties", NodeKind.ObjectElementExpr); } @@ -460,8 +592,15 @@ export class PropAssignExpr extends BaseExpr< NodeKind.PropAssignExpr, ObjectLiteralExpr > { - constructor(readonly name: PropName, readonly expr: Expr) { - super(NodeKind.PropAssignExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly name: PropName, + readonly expr: Expr + ) { + super(NodeKind.PropAssignExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } @@ -470,8 +609,14 @@ export class ComputedPropertyNameExpr extends BaseExpr< NodeKind.ComputedPropertyNameExpr, PropAssignExpr > { - constructor(readonly expr: Expr) { - super(NodeKind.ComputedPropertyNameExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.ComputedPropertyNameExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } @@ -480,8 +625,14 @@ export class SpreadAssignExpr extends BaseExpr< NodeKind.SpreadAssignExpr, ObjectLiteralExpr > { - constructor(readonly expr: Expr) { - super(NodeKind.SpreadAssignExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.SpreadAssignExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } @@ -490,8 +641,14 @@ export class SpreadElementExpr extends BaseExpr< NodeKind.SpreadElementExpr, ObjectLiteralExpr > { - constructor(readonly expr: Expr) { - super(NodeKind.SpreadElementExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.SpreadElementExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } @@ -506,8 +663,14 @@ export type TemplateLiteral = TemplateExpr | NoSubstitutionTemplateLiteralExpr; * ``` */ export class NoSubstitutionTemplateLiteralExpr extends BaseExpr { - constructor(readonly text: string) { - super(NodeKind.NoSubstitutionTemplateLiteral, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly text: string + ) { + super(NodeKind.NoSubstitutionTemplateLiteral, span, arguments); this.ensure(text, "text", ["string"]); } } @@ -521,6 +684,10 @@ export class NoSubstitutionTemplateLiteralExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, /** * The literal text prefix of the template. * ``` @@ -538,7 +705,7 @@ export class TemplateExpr extends BaseExpr { TemplateSpan ] ) { - super(NodeKind.TemplateExpr, arguments); + super(NodeKind.TemplateExpr, span, arguments); this.ensure(head, "head", [NodeKind.TemplateHead]); this.ensureArrayOf(spans, "spans", [NodeKind.TemplateSpan]); } @@ -552,8 +719,15 @@ export class TemplateExpr extends BaseExpr { * ``` */ export class TaggedTemplateExpr extends BaseExpr { - constructor(readonly tag: Expr, readonly template: TemplateLiteral) { - super(NodeKind.TaggedTemplateExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly tag: Expr, + readonly template: TemplateLiteral + ) { + super(NodeKind.TaggedTemplateExpr, span, arguments); this.ensure(tag, "tag", ["Expr"]); this.ensure(template, "template", [ NodeKind.TemplateExpr, @@ -579,8 +753,14 @@ export class TaggedTemplateExpr extends BaseExpr { export class TemplateHead extends BaseNode { readonly nodeKind = "Node"; - constructor(readonly text: string) { - super(NodeKind.TemplateHead, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly text: string + ) { + super(NodeKind.TemplateHead, span, arguments); this.ensure(text, "text", ["string"]); } } @@ -597,8 +777,15 @@ export class TemplateSpan< > extends BaseNode { readonly nodeKind = "Node"; - constructor(readonly expr: Expr, readonly literal: Literal) { - super(NodeKind.TemplateSpan, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr, + readonly literal: Literal + ) { + super(NodeKind.TemplateSpan, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensure(literal, "literal", [ NodeKind.TemplateMiddle, @@ -610,8 +797,14 @@ export class TemplateSpan< export class TemplateMiddle extends BaseNode { readonly nodeKind = "Node"; - constructor(readonly text: string) { - super(NodeKind.TemplateMiddle, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly text: string + ) { + super(NodeKind.TemplateMiddle, span, arguments); this.ensure(text, "text", ["string"]); } } @@ -619,34 +812,56 @@ export class TemplateMiddle extends BaseNode { export class TemplateTail extends BaseNode { readonly nodeKind = "Node"; - constructor(readonly text: string) { - super(NodeKind.TemplateTail, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly text: string + ) { + super(NodeKind.TemplateTail, span, arguments); this.ensure(text, "text", ["string"]); } } export class TypeOfExpr extends BaseExpr { - constructor(readonly expr: Expr) { - super(NodeKind.TypeOfExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.TypeOfExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } export class AwaitExpr extends BaseExpr { - constructor(readonly expr: Expr) { - super(NodeKind.AwaitExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.AwaitExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } export class ThisExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, /** * Produce the value of `this` */ readonly ref: () => T ) { - super(NodeKind.ThisExpr, arguments); + super(NodeKind.ThisExpr, span, arguments); this.ensure(ref, "ref", ["function"]); } } @@ -657,20 +872,34 @@ export class SuperKeyword extends BaseNode { // 1. call in a constructor - `super(..)` // 2. call a method on it - `super.method(..)`. readonly nodeKind = "Node"; - constructor() { - super(NodeKind.SuperKeyword, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.SuperKeyword, span, arguments); } } export class ImportKeyword extends BaseNode { readonly nodeKind = "Node"; - constructor() { - super(NodeKind.ImportKeyword, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.ImportKeyword, span, arguments); } } export class YieldExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, /** * The expression to yield (or delegate) to. */ @@ -680,33 +909,49 @@ export class YieldExpr extends BaseExpr { */ readonly delegate: boolean ) { - super(NodeKind.YieldExpr, arguments); + super(NodeKind.YieldExpr, span, arguments); this.ensure(expr, "expr", ["undefined", "Expr"]); this.ensure(delegate, "delegate", ["boolean"]); } } export class RegexExpr extends BaseExpr { - constructor(readonly regex: RegExp) { - super(NodeKind.RegexExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly regex: RegExp + ) { + super(NodeKind.RegexExpr, span, arguments); } } export class VoidExpr extends BaseExpr { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, /** * The expression to yield (or delegate) to. */ readonly expr: Expr ) { - super(NodeKind.VoidExpr, arguments); + super(NodeKind.VoidExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } export class DeleteExpr extends BaseExpr { - constructor(readonly expr: PropAccessExpr | ElementAccessExpr) { - super(NodeKind.DeleteExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: PropAccessExpr | ElementAccessExpr + ) { + super(NodeKind.DeleteExpr, span, arguments); this.ensure(expr, "expr", [ NodeKind.PropAccessExpr, NodeKind.ElementAccessExpr, @@ -715,8 +960,14 @@ export class DeleteExpr extends BaseExpr { } export class ParenthesizedExpr extends BaseExpr { - constructor(readonly expr: Expr) { - super(NodeKind.ParenthesizedExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.ParenthesizedExpr, span, arguments); this.ensure(expr, "expr", ["Expr"]); } @@ -729,8 +980,13 @@ export class ParenthesizedExpr extends BaseExpr { } export class OmittedExpr extends BaseExpr { - constructor() { - super(NodeKind.OmittedExpr, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.OmittedExpr, span, arguments); } } diff --git a/src/integration.ts b/src/integration.ts index 49718194..a18ada51 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -306,7 +306,8 @@ export function findDeepIntegrations( ...integrations.map((integration) => node.fork( new CallExpr( - new ReferenceExpr("", () => integration), + node.span, + new ReferenceExpr(node.expr.span, "", () => integration), node.args.map((arg) => arg.clone()) ) ) diff --git a/src/node.ts b/src/node.ts index 3cc79281..5bd682ac 100644 --- a/src/node.ts +++ b/src/node.ts @@ -47,6 +47,7 @@ import { } from "./guards"; import type { NodeCtor } from "./node-ctor"; import { NodeKind, NodeKindName, getNodeKindName } from "./node-kind"; +import type { Span } from "./span"; import type { BlockStmt, CatchClause, Stmt } from "./statement"; export type FunctionlessNode = @@ -88,7 +89,11 @@ export abstract class BaseNode< readonly _arguments: ConstructorParameters>; - constructor(readonly kind: Kind, _arguments: IArguments) { + constructor( + readonly kind: Kind, + readonly span: Span, + _arguments: IArguments + ) { this._arguments = Array.from(_arguments) as any; const setParent = (node: any) => { if (isNode(node)) { @@ -109,9 +114,11 @@ export abstract class BaseNode< } public toSExpr(): [kind: this["kind"], ...args: any[]] { + const [span, ...rest] = this._arguments; return [ this.kind, - ...this._arguments.map(function toSExpr(arg: any): any { + span, + ...rest.map(function toSExpr(arg: any): any { if (isNode(arg)) { return arg.toSExpr(); } else if (Array.isArray(arg)) { diff --git a/src/s-expression.ts b/src/s-expression.ts index 3ec290cb..1e76e9c4 100644 --- a/src/s-expression.ts +++ b/src/s-expression.ts @@ -1,6 +1,7 @@ import { FunctionlessNode } from "./node"; import { getCtor, NodeInstance } from "./node-ctor"; import { NodeKind } from "./node-kind"; +import { isSpan, Span } from "./span"; /** * A memory-efficient representation of a serializer {@link FunctionlessNode} as an s-expression tuple. @@ -16,6 +17,7 @@ import { NodeKind } from "./node-kind"; */ export type SExpr = [ kind: Node["kind"], + span: Span, ...args: any[] // we could make these more type-safe, but TS has instantiation problems because of eager evaluation of spreads on recursive tuple types ]; @@ -27,9 +29,15 @@ export type SExpr = [ export function parseSExpr( expr: [kind: Kind, ...args: any[]] ): NodeInstance { - const [kind, ...args] = expr; + const [kind, span, ...args] = expr; + if (!isSpan(span)) { + throw new Error( + `The first argument in a s-expression must always be the Node's Span, but found ${span}.` + ); + } const ctor = getCtor(kind); return new ctor( + span, ...(args.map(function parse(item: any): any { if (Array.isArray(item)) { if (typeof item[0] === "number") { diff --git a/src/span.ts b/src/span.ts new file mode 100644 index 00000000..215f2b7b --- /dev/null +++ b/src/span.ts @@ -0,0 +1,30 @@ +/** + * A {@link Span} is a range of text within a source file, represented + * by two numbers, a `start` and `end` character position. + */ +export type Span = [ + /** + * Character position where this span starts. + */ + start: number, + /** + * Character position where this span ends. + */ + end: number +]; + +/** + * Determines if {@link a} is a {@link Span}. + */ +export function isSpan(a: any): a is Span { + return ( + Array.isArray(a) && + a.length === 2 && + typeof a[0] === "number" && + typeof a[1] === "number" + ); +} + +export function emptySpan(): Span { + return [0, 0]; +} diff --git a/src/statement.ts b/src/statement.ts index fa7e1f88..1e3d32a2 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -7,6 +7,7 @@ import { Expr, FunctionExpr, Identifier } from "./expression"; import { isTryStmt } from "./guards"; import { BaseNode, FunctionlessNode } from "./node"; import { NodeKind } from "./node-kind"; +import { Span } from "./span"; /** * A {@link Stmt} (Statement) is unit of execution that does not yield any value. They are translated @@ -52,15 +53,27 @@ export abstract class BaseStmt< } export class ExprStmt extends BaseStmt { - constructor(readonly expr: Expr) { - super(NodeKind.ExprStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.ExprStmt, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } export class VariableStmt extends BaseStmt { - constructor(readonly declList: VariableDeclList) { - super(NodeKind.VariableStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly declList: VariableDeclList + ) { + super(NodeKind.VariableStmt, span, arguments); this.ensure(declList, "declList", [NodeKind.VariableDeclList]); } } @@ -78,8 +91,14 @@ export type BlockStmtParent = | WhileStmt; export class BlockStmt extends BaseStmt { - constructor(readonly statements: Stmt[]) { - super(NodeKind.BlockStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly statements: Stmt[] + ) { + super(NodeKind.BlockStmt, span, arguments); this.ensureArrayOf(statements, "statements", ["Stmt"]); statements.forEach((stmt, i) => { stmt.prev = i > 0 ? statements[i - 1] : undefined; @@ -117,15 +136,29 @@ export class BlockStmt extends BaseStmt { } export class ReturnStmt extends BaseStmt { - constructor(readonly expr: Expr | undefined) { - super(NodeKind.ReturnStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr | undefined + ) { + super(NodeKind.ReturnStmt, span, arguments); this.ensure(expr, "expr", ["undefined", "Expr"]); } } export class IfStmt extends BaseStmt { - constructor(readonly when: Expr, readonly then: Stmt, readonly _else?: Stmt) { - super(NodeKind.IfStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly when: Expr, + readonly then: Stmt, + readonly _else?: Stmt + ) { + super(NodeKind.IfStmt, span, arguments); this.ensure(when, "when", ["Expr"]); this.ensure(then, "then", ["Stmt"]); this.ensure(_else, "else", ["undefined", "Stmt"]); @@ -134,6 +167,10 @@ export class IfStmt extends BaseStmt { export class ForOfStmt extends BaseStmt { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly initializer: VariableDecl | Identifier, readonly expr: Expr, readonly body: BlockStmt, @@ -145,7 +182,7 @@ export class ForOfStmt extends BaseStmt { */ readonly isAwait: boolean ) { - super(NodeKind.ForOfStmt, arguments); + super(NodeKind.ForOfStmt, span, arguments); this.ensure(initializer, "initializer", [ NodeKind.VariableDecl, NodeKind.Identifier, @@ -157,22 +194,30 @@ export class ForOfStmt extends BaseStmt { export class ForInStmt extends BaseStmt { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly initializer: VariableDecl | Identifier, readonly expr: Expr, readonly body: BlockStmt ) { - super(NodeKind.ForInStmt, arguments); + super(NodeKind.ForInStmt, span, arguments); } } export class ForStmt extends BaseStmt { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly body: BlockStmt, readonly initializer?: VariableDeclList | Expr, readonly condition?: Expr, readonly incrementor?: Expr ) { - super(NodeKind.ForStmt, arguments); + super(NodeKind.ForStmt, span, arguments); this.ensure(body, "body", [NodeKind.BlockStmt]); this.ensure(initializer, "initializer", [ "undefined", @@ -185,15 +230,27 @@ export class ForStmt extends BaseStmt { } export class BreakStmt extends BaseStmt { - constructor(readonly label?: Identifier) { - super(NodeKind.BreakStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly label?: Identifier + ) { + super(NodeKind.BreakStmt, span, arguments); this.ensure(label, "label", ["undefined", NodeKind.Identifier]); } } export class ContinueStmt extends BaseStmt { - constructor(readonly label?: Identifier) { - super(NodeKind.ContinueStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly label?: Identifier + ) { + super(NodeKind.ContinueStmt, span, arguments); this.ensure(label, "label", ["undefined", NodeKind.Identifier]); } } @@ -206,11 +263,15 @@ export interface FinallyBlock extends BlockStmt { export class TryStmt extends BaseStmt { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly tryBlock: BlockStmt, readonly catchClause?: CatchClause, readonly finallyBlock?: FinallyBlock ) { - super(NodeKind.TryStmt, arguments); + super(NodeKind.TryStmt, span, arguments); this.ensure(tryBlock, "tryBlock", [NodeKind.BlockStmt]); this.ensure(catchClause, "catchClause", [ "undefined", @@ -225,10 +286,14 @@ export class TryStmt extends BaseStmt { export class CatchClause extends BaseStmt { constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, readonly variableDecl: VariableDecl | undefined, readonly block: BlockStmt ) { - super(NodeKind.CatchClause, arguments); + super(NodeKind.CatchClause, span, arguments); this.ensure(variableDecl, "variableDecl", [ "undefined", NodeKind.VariableDecl, @@ -238,45 +303,84 @@ export class CatchClause extends BaseStmt { } export class ThrowStmt extends BaseStmt { - constructor(readonly expr: Expr) { - super(NodeKind.ThrowStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr + ) { + super(NodeKind.ThrowStmt, span, arguments); this.ensure(expr, "expr", ["Expr"]); } } export class WhileStmt extends BaseStmt { - constructor(readonly condition: Expr, readonly block: BlockStmt) { - super(NodeKind.WhileStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly condition: Expr, + readonly block: BlockStmt + ) { + super(NodeKind.WhileStmt, span, arguments); this.ensure(condition, "condition", ["Expr"]); this.ensure(block, "block", [NodeKind.BlockStmt]); } } export class DoStmt extends BaseStmt { - constructor(readonly block: BlockStmt, readonly condition: Expr) { - super(NodeKind.DoStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly block: BlockStmt, + readonly condition: Expr + ) { + super(NodeKind.DoStmt, span, arguments); this.ensure(block, "block", [NodeKind.BlockStmt]); this.ensure(condition, "condition", ["Expr"]); } } export class LabelledStmt extends BaseStmt { - constructor(readonly label: Identifier, readonly stmt: Stmt) { - super(NodeKind.LabelledStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly label: Identifier, + readonly stmt: Stmt + ) { + super(NodeKind.LabelledStmt, span, arguments); this.ensure(label, "label", [NodeKind.Identifier]); this.ensure(stmt, "stmt", ["Stmt"]); } } export class DebuggerStmt extends BaseStmt { - constructor() { - super(NodeKind.DebuggerStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.DebuggerStmt, span, arguments); } } export class SwitchStmt extends BaseStmt { - constructor(readonly expr: Expr, readonly clauses: SwitchClause[]) { - super(NodeKind.SwitchStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr, + readonly clauses: SwitchClause[] + ) { + super(NodeKind.SwitchStmt, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensureArrayOf(clauses, "clauses", NodeKind.SwitchClause); } @@ -285,29 +389,54 @@ export class SwitchStmt extends BaseStmt { export type SwitchClause = CaseClause | DefaultClause; export class CaseClause extends BaseStmt { - constructor(readonly expr: Expr, readonly statements: Stmt[]) { - super(NodeKind.CaseClause, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr, + readonly statements: Stmt[] + ) { + super(NodeKind.CaseClause, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensureArrayOf(statements, "statements", ["Stmt"]); } } export class DefaultClause extends BaseStmt { - constructor(readonly statements: Stmt[]) { - super(NodeKind.DefaultClause, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly statements: Stmt[] + ) { + super(NodeKind.DefaultClause, span, arguments); this.ensureArrayOf(statements, "statements", ["Stmt"]); } } export class EmptyStmt extends BaseStmt { - constructor() { - super(NodeKind.EmptyStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span + ) { + super(NodeKind.EmptyStmt, span, arguments); } } export class WithStmt extends BaseStmt { - constructor(readonly expr: Expr, readonly stmt: Stmt) { - super(NodeKind.WithStmt, arguments); + constructor( + /** + * Range of text in the source file where this Node resides. + */ + span: Span, + readonly expr: Expr, + readonly stmt: Stmt + ) { + super(NodeKind.WithStmt, span, arguments); this.ensure(expr, "expr", ["Expr"]); this.ensure(stmt, "stmt", ["Stmt"]); } diff --git a/src/visit.ts b/src/visit.ts index f12d2e60..decbf6f3 100644 --- a/src/visit.ts +++ b/src/visit.ts @@ -27,8 +27,11 @@ export function visitEachChild( ) => FunctionlessNode | FunctionlessNode[] | undefined ): T { const ctor = getCtor(node.kind); - const args = node._arguments.map((argument) => { - if (argument === null || typeof argument !== "object") { + const args = node._arguments.map((argument, index) => { + if (index === 0) { + // first argument is always a Span, so simply return it + return argument; + } else if (argument === null || typeof argument !== "object") { // all primitives are simply returned as-is return argument; } else if (isNode(argument)) { @@ -43,7 +46,7 @@ export function visitEachChild( } else if (Array.isArray(argument)) { // is an Array of nodes return argument.flatMap((item) => { - const transformed = visit(item); + const transformed = visit(item as FunctionlessNode); if (transformed === undefined) { // the item was deleted, so remove it from the array return []; @@ -74,8 +77,11 @@ export function forEachChild( node: FunctionlessNode, visit: (node: FunctionlessNode) => any ): void { - for (const argument of node._arguments) { - if (argument === null || typeof argument !== "object") { + for (let i = 0; i < node._arguments.length; i++) { + const argument = node._arguments[i]; + if (i === 0) { + // the first argument is always a span, so skip visiting it + } else if (argument === null || typeof argument !== "object") { // all primitives are simply returned as-is } else if (isNode(argument)) { if (visit(argument)) { @@ -85,7 +91,7 @@ export function forEachChild( } else if (Array.isArray(argument)) { // is an Array of nodes for (const item of argument) { - if (visit(item)) { + if (visit(item as FunctionlessNode)) { // if a truthy value is returned from visit, terminate the walk return; } @@ -107,10 +113,12 @@ export function visitBlock( return visitEachChild(block, (stmt) => { const nestedTasks: FunctionlessNode[] = []; function hoist(expr: Expr): Identifier { - const id = new Identifier(nameGenerator.generateOrGet(expr)); + const id = new Identifier(expr.span, nameGenerator.generateOrGet(expr)); const stmt = new VariableStmt( + expr.span, new VariableDeclList( - [new VariableDecl(id.clone(), expr.clone())], + expr.span, + [new VariableDecl(expr.span, id.clone(), expr.clone())], VariableDeclKind.Const ) ); diff --git a/test/node.test.ts b/test/node.test.ts index 71fc14eb..515b0269 100644 --- a/test/node.test.ts +++ b/test/node.test.ts @@ -12,19 +12,40 @@ import { VariableDecl, WhileStmt, } from "../src"; +import { emptySpan } from "../src/span"; test("node.exit() from catch surrounded by while", () => { const catchClause = new CatchClause( - new VariableDecl(new Identifier("var"), new NullLiteralExpr()), - new BlockStmt([new ExprStmt(new CallExpr(new Identifier("task"), []))]) + emptySpan(), + new VariableDecl( + emptySpan(), + new Identifier(emptySpan(), "var"), + new NullLiteralExpr(emptySpan()) + ), + new BlockStmt(emptySpan(), [ + new ExprStmt( + emptySpan(), + new CallExpr(emptySpan(), new Identifier(emptySpan(), "task"), []) + ), + ]) ); const whileStmt = new WhileStmt( - new BooleanLiteralExpr(true), - new BlockStmt([new TryStmt(new BlockStmt([]), catchClause)]) + emptySpan(), + new BooleanLiteralExpr(emptySpan(), true), + new BlockStmt(emptySpan(), [ + new TryStmt(emptySpan(), new BlockStmt(emptySpan(), []), catchClause), + ]) ); - new FunctionDecl("name", [], new BlockStmt([whileStmt]), false, false); + new FunctionDecl( + emptySpan(), + "name", + [], + new BlockStmt(emptySpan(), [whileStmt]), + false, + false + ); const exit = catchClause.exit(); diff --git a/yarn.lock b/yarn.lock index eafab47f..10f2c2d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,10 +1040,8 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@functionless/ast-reflection@0.0.1": - version "0.0.1" - resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.0.1.tgz#bf025e87456449f47a62c90323e55574b5131fdc" - integrity sha512-flKyyHZsAlSdEn9rZuLIOsLhM+jqt0U8vIPKsc/tzJzWnVRXRMHTzubES+YoXqT5MR0dJo94MTfte5zN/YlXxg== +"@functionless/ast-reflection@file:../ast-reflection": + version "0.0.0" "@functionless/nodejs-closure-serializer@^0.1.2": version "0.1.2" From ff32f486e71e9331f204f869e854ba425f8647f9 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 9 Aug 2022 00:15:19 -0700 Subject: [PATCH 048/107] feat: upgrade compile.ts to also include span information --- src/compile.ts | 191 +++++++++++++++++++++++++++---------------------- 1 file changed, 105 insertions(+), 86 deletions(-) diff --git a/src/compile.ts b/src/compile.ts index b68d3b8e..627dcd1a 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -234,6 +234,7 @@ export function compile( * Catches any errors and wraps them in a {@link Err} node. */ function errorBoundary( + span: ts.Node, func: () => T ): T | ts.ArrayLiteralExpression { try { @@ -241,7 +242,7 @@ export function compile( } catch (err) { const error = err instanceof Error ? err : Error("Unknown compiler error."); - return newExpr(NodeKind.Err, [ + return newExpr(NodeKind.Err, span, [ ts.factory.createNewExpression( ts.factory.createIdentifier(error.name), undefined, @@ -279,7 +280,7 @@ export function compile( */ scope?: ts.Node ): ts.Expression { - return errorBoundary(() => { + return errorBoundary(impl, () => { if ( (!ts.isFunctionDeclaration(impl) && !ts.isArrowFunction(impl) && @@ -295,9 +296,9 @@ export function compile( const body = ts.isBlock(impl.body) ? toExpr(impl.body, scope ?? impl) - : newExpr(NodeKind.BlockStmt, [ + : newExpr(NodeKind.BlockStmt, impl.body, [ ts.factory.createArrayLiteralExpression([ - newExpr(NodeKind.ReturnStmt, [ + newExpr(NodeKind.ReturnStmt, impl.body, [ toExpr(impl.body, scope ?? impl), ]), ]), @@ -328,11 +329,11 @@ export function compile( ] : []; - return newExpr(type, [ + return newExpr(type, impl, [ ...resolveFunctionName(), ts.factory.createArrayLiteralExpression( impl.parameters.map((param) => - newExpr(NodeKind.ParameterDecl, [ + newExpr(NodeKind.ParameterDecl, param, [ toExpr(param.name, scope ?? impl), param.initializer ? toExpr(param.initializer, scope ?? impl) @@ -384,7 +385,9 @@ export function compile( } else if (ts.isFunctionExpression(node)) { return toFunction(NodeKind.FunctionExpr, node, scope); } else if (ts.isExpressionStatement(node)) { - return newExpr(NodeKind.ExprStmt, [toExpr(node.expression, scope)]); + return newExpr(NodeKind.ExprStmt, node, [ + toExpr(node.expression, scope), + ]); } else if (ts.isCallExpression(node) || ts.isNewExpression(node)) { if (ts.isNewExpression(node)) { const newType = checker.getTypeAtLocation(node); @@ -407,11 +410,12 @@ export function compile( const call = newExpr( ts.isCallExpression(node) ? NodeKind.CallExpr : NodeKind.NewExpr, + node, [ toExpr(node.expression, scope), ts.factory.createArrayLiteralExpression( node.arguments?.map((arg) => - newExpr(NodeKind.Argument, [toExpr(arg, scope)]) + newExpr(NodeKind.Argument, arg, [toExpr(arg, scope)]) ) ?? [] ), ts.isPropertyAccessExpression(node.parent) && @@ -424,16 +428,16 @@ export function compile( return call; } else if (ts.isBlock(node)) { - return newExpr(NodeKind.BlockStmt, [ + return newExpr(NodeKind.BlockStmt, node, [ ts.factory.createArrayLiteralExpression( node.statements.map((x) => toExpr(x, scope)) ), ]); } else if (ts.isIdentifier(node)) { if (node.text === "undefined") { - return newExpr(NodeKind.UndefinedLiteralExpr, []); + return newExpr(NodeKind.UndefinedLiteralExpr, node, []); } else if (node.text === "null") { - return newExpr(NodeKind.NullLiteralExpr, []); + return newExpr(NodeKind.NullLiteralExpr, node, []); } /** @@ -449,11 +453,11 @@ export function compile( return ref(node); } - return newExpr(NodeKind.Identifier, [ + return newExpr(NodeKind.Identifier, node, [ ts.factory.createStringLiteral(node.text), ]); } else if (ts.isPropertyAccessExpression(node)) { - return newExpr(NodeKind.PropAccessExpr, [ + return newExpr(NodeKind.PropAccessExpr, node, [ toExpr(node.expression, scope), toExpr(node.name, scope), node.questionDotToken @@ -461,7 +465,7 @@ export function compile( : ts.factory.createFalse(), ]); } else if (ts.isPropertyAccessChain(node)) { - return newExpr(NodeKind.PropAccessExpr, [ + return newExpr(NodeKind.PropAccessExpr, node, [ toExpr(node.expression, scope), toExpr(node.name, scope), node.questionDotToken @@ -469,7 +473,7 @@ export function compile( : ts.factory.createFalse(), ]); } else if (ts.isElementAccessChain(node)) { - return newExpr(NodeKind.ElementAccessExpr, [ + return newExpr(NodeKind.ElementAccessExpr, node, [ toExpr(node.expression, scope), toExpr(node.argumentExpression, scope), node.questionDotToken @@ -477,7 +481,7 @@ export function compile( : ts.factory.createFalse(), ]); } else if (ts.isElementAccessExpression(node)) { - return newExpr(NodeKind.ElementAccessExpr, [ + return newExpr(NodeKind.ElementAccessExpr, node, [ toExpr(node.expression, scope), toExpr(node.argumentExpression, scope), node.questionDotToken @@ -485,11 +489,11 @@ export function compile( : ts.factory.createFalse(), ]); } else if (ts.isVariableStatement(node)) { - return newExpr(NodeKind.VariableStmt, [ + return newExpr(NodeKind.VariableStmt, node, [ toExpr(node.declarationList, scope), ]); } else if (ts.isVariableDeclarationList(node)) { - return newExpr(NodeKind.VariableDeclList, [ + return newExpr(NodeKind.VariableDeclList, node, [ ts.factory.createArrayLiteralExpression( node.declarations.map((decl) => toExpr(decl, scope)) ), @@ -502,9 +506,9 @@ export function compile( ), ]); } else if (ts.isVariableDeclaration(node)) { - return newExpr(NodeKind.VariableDecl, [ + return newExpr(NodeKind.VariableDecl, node, [ ts.isIdentifier(node.name) - ? newExpr(NodeKind.Identifier, [ + ? newExpr(NodeKind.Identifier, node.name, [ ts.factory.createStringLiteral(node.name.text), ]) : toExpr(node.name, scope), @@ -513,7 +517,7 @@ export function compile( : ts.factory.createIdentifier("undefined"), ]); } else if (ts.isIfStatement(node)) { - return newExpr(NodeKind.IfStmt, [ + return newExpr(NodeKind.IfStmt, node, [ // when toExpr(node.expression, scope), // then @@ -522,19 +526,19 @@ export function compile( ...(node.elseStatement ? [toExpr(node.elseStatement, scope)] : []), ]); } else if (ts.isObjectBindingPattern(node)) { - return newExpr(NodeKind.ObjectBinding, [ + return newExpr(NodeKind.ObjectBinding, node, [ ts.factory.createArrayLiteralExpression( node.elements.map((e) => toExpr(e, scope)) ), ]); } else if (ts.isArrayBindingPattern(node)) { - return newExpr(NodeKind.ArrayBinding, [ + return newExpr(NodeKind.ArrayBinding, node, [ ts.factory.createArrayLiteralExpression( node.elements.map((e) => toExpr(e, scope)) ), ]); } else if (ts.isBindingElement(node)) { - return newExpr(NodeKind.BindingElem, [ + return newExpr(NodeKind.BindingElem, node, [ toExpr(node.name, scope), node.dotDotDotToken ? ts.factory.createTrue() @@ -543,7 +547,7 @@ export function compile( toExpr(node.initializer, scope), ]); } else if (ts.isConditionalExpression(node)) { - return newExpr(NodeKind.ConditionExpr, [ + return newExpr(NodeKind.ConditionExpr, node, [ // when toExpr(node.condition, scope), // then @@ -552,7 +556,7 @@ export function compile( toExpr(node.whenFalse, scope), ]); } else if (ts.isBinaryExpression(node)) { - return newExpr(NodeKind.BinaryExpr, [ + return newExpr(NodeKind.BinaryExpr, node, [ toExpr(node.left, scope), ts.factory.createStringLiteral( assertDefined( @@ -563,7 +567,7 @@ export function compile( toExpr(node.right, scope), ]); } else if (ts.isPrefixUnaryExpression(node)) { - return newExpr(NodeKind.UnaryExpr, [ + return newExpr(NodeKind.UnaryExpr, node, [ ts.factory.createStringLiteral( assertDefined( ts.tokenToString(node.operator) as UnaryOp, @@ -573,7 +577,7 @@ export function compile( toExpr(node.operand, scope), ]); } else if (ts.isPostfixUnaryExpression(node)) { - return newExpr(NodeKind.PostfixUnaryExpr, [ + return newExpr(NodeKind.PostfixUnaryExpr, node, [ ts.factory.createStringLiteral( assertDefined( ts.tokenToString(node.operator) as PostfixUnaryOp, @@ -585,62 +589,65 @@ export function compile( } else if (ts.isReturnStatement(node)) { return newExpr( NodeKind.ReturnStmt, + node, node.expression ? [toExpr(node.expression, scope)] : [] ); } else if (ts.isObjectLiteralExpression(node)) { - return newExpr(NodeKind.ObjectLiteralExpr, [ + return newExpr(NodeKind.ObjectLiteralExpr, node, [ ts.factory.createArrayLiteralExpression( node.properties.map((x) => toExpr(x, scope)) ), ]); } else if (ts.isPropertyAssignment(node)) { - return newExpr(NodeKind.PropAssignExpr, [ + return newExpr(NodeKind.PropAssignExpr, node, [ ts.isStringLiteral(node.name) || ts.isIdentifier(node.name) - ? string(node.name.text) + ? newExpr(NodeKind.StringLiteralExpr, node.name, [ + ts.factory.createStringLiteral(node.name.text), + ]) : toExpr(node.name, scope), toExpr(node.initializer, scope), ]); } else if (ts.isComputedPropertyName(node)) { - return newExpr(NodeKind.ComputedPropertyNameExpr, [ + return newExpr(NodeKind.ComputedPropertyNameExpr, node, [ toExpr(node.expression, scope), ]); } else if (ts.isShorthandPropertyAssignment(node)) { - return newExpr(NodeKind.PropAssignExpr, [ - newExpr(NodeKind.Identifier, [ + return newExpr(NodeKind.PropAssignExpr, node, [ + newExpr(NodeKind.Identifier, node.name, [ ts.factory.createStringLiteral(node.name.text), ]), toExpr(node.name, scope), ]); } else if (ts.isSpreadAssignment(node)) { - return newExpr(NodeKind.SpreadAssignExpr, [ + return newExpr(NodeKind.SpreadAssignExpr, node, [ toExpr(node.expression, scope), ]); } else if (ts.isSpreadElement(node)) { - return newExpr(NodeKind.SpreadElementExpr, [ + return newExpr(NodeKind.SpreadElementExpr, node, [ toExpr(node.expression, scope), ]); } else if (ts.isArrayLiteralExpression(node)) { - return newExpr(NodeKind.ArrayLiteralExpr, [ + return newExpr(NodeKind.ArrayLiteralExpr, node, [ ts.factory.updateArrayLiteralExpression( node, node.elements.map((x) => toExpr(x, scope)) ), ]); } else if (node.kind === ts.SyntaxKind.NullKeyword) { - return newExpr(NodeKind.NullLiteralExpr, [ + return newExpr(NodeKind.NullLiteralExpr, node, [ ts.factory.createIdentifier("false"), ]); } else if (ts.isNumericLiteral(node)) { - return newExpr(NodeKind.NumberLiteralExpr, [node]); + return newExpr(NodeKind.NumberLiteralExpr, node, [node]); } else if (ts.isBigIntLiteral(node)) { - return newExpr(NodeKind.BigIntExpr, [node]); + return newExpr(NodeKind.BigIntExpr, node, [node]); } else if (ts.isRegularExpressionLiteral(node)) { - return newExpr(NodeKind.RegexExpr, [node]); + return newExpr(NodeKind.RegexExpr, node, [node]); } else if ( ts.isStringLiteral(node) || ts.isNoSubstitutionTemplateLiteral(node) ) { - return newExpr(NodeKind.StringLiteralExpr, [node]); + return newExpr(NodeKind.StringLiteralExpr, node, [node]); } else if (ts.isLiteralExpression(node)) { // const type = checker.getTypeAtLocation(node); // if (type.symbol.escapedName === "boolean") { @@ -650,7 +657,9 @@ export function compile( node.kind === ts.SyntaxKind.TrueKeyword || node.kind === ts.SyntaxKind.FalseKeyword ) { - return newExpr(NodeKind.BooleanLiteralExpr, [node as ts.Expression]); + return newExpr(NodeKind.BooleanLiteralExpr, node, [ + node as ts.Expression, + ]); } else if (ts.isForOfStatement(node) || ts.isForInStatement(node)) { const decl = ts.isVariableDeclarationList(node.initializer) && @@ -668,6 +677,7 @@ export function compile( return newExpr( ts.isForOfStatement(node) ? NodeKind.ForOfStmt : NodeKind.ForInStmt, + node, [ toExpr(decl, scope), toExpr(node.expression, scope), @@ -682,14 +692,14 @@ export function compile( ] ); } else if (ts.isForStatement(node)) { - return newExpr(NodeKind.ForStmt, [ + return newExpr(NodeKind.ForStmt, node, [ toExpr(node.statement, scope), toExpr(node.initializer, scope), toExpr(node.condition, scope), toExpr(node.incrementor, scope), ]); } else if (ts.isTemplateExpression(node)) { - return newExpr(NodeKind.TemplateExpr, [ + return newExpr(NodeKind.TemplateExpr, node, [ // head toExpr(node.head, scope), // spans @@ -698,41 +708,41 @@ export function compile( ), ]); } else if (ts.isTaggedTemplateExpression(node)) { - return newExpr(NodeKind.TaggedTemplateExpr, [ + return newExpr(NodeKind.TaggedTemplateExpr, node, [ toExpr(node.tag, scope), toExpr(node.template, scope), ]); } else if (ts.isNoSubstitutionTemplateLiteral(node)) { - return newExpr(NodeKind.NoSubstitutionTemplateLiteral, [ + return newExpr(NodeKind.NoSubstitutionTemplateLiteral, node, [ ts.factory.createStringLiteral(node.text), ]); } else if (ts.isTemplateSpan(node)) { - return newExpr(NodeKind.TemplateSpan, [ + return newExpr(NodeKind.TemplateSpan, node, [ toExpr(node.expression, scope), toExpr(node.literal, scope), ]); } else if (ts.isTemplateHead(node)) { - return newExpr(NodeKind.TemplateHead, [ + return newExpr(NodeKind.TemplateHead, node, [ ts.factory.createStringLiteral(node.text), ]); } else if (ts.isTemplateMiddle(node)) { - return newExpr(NodeKind.TemplateMiddle, [ + return newExpr(NodeKind.TemplateMiddle, node, [ ts.factory.createStringLiteral(node.text), ]); } else if (ts.isTemplateTail(node)) { - return newExpr(NodeKind.TemplateTail, [ + return newExpr(NodeKind.TemplateTail, node, [ ts.factory.createStringLiteral(node.text), ]); } else if (ts.isBreakStatement(node)) { - return newExpr(NodeKind.BreakStmt, [ + return newExpr(NodeKind.BreakStmt, node, [ ...(node.label ? [toExpr(node.label, scope)] : []), ]); } else if (ts.isContinueStatement(node)) { - return newExpr(NodeKind.ContinueStmt, [ + return newExpr(NodeKind.ContinueStmt, node, [ ...(node.label ? [toExpr(node.label, scope)] : []), ]); } else if (ts.isTryStatement(node)) { - return newExpr(NodeKind.TryStmt, [ + return newExpr(NodeKind.TryStmt, node, [ toExpr(node.tryBlock, scope), node.catchClause ? toExpr(node.catchClause, scope) @@ -742,34 +752,38 @@ export function compile( : ts.factory.createIdentifier("undefined"), ]); } else if (ts.isCatchClause(node)) { - return newExpr(NodeKind.CatchClause, [ + return newExpr(NodeKind.CatchClause, node, [ node.variableDeclaration ? toExpr(node.variableDeclaration, scope) : ts.factory.createIdentifier("undefined"), toExpr(node.block, scope), ]); } else if (ts.isThrowStatement(node)) { - return newExpr(NodeKind.ThrowStmt, [toExpr(node.expression, scope)]); + return newExpr(NodeKind.ThrowStmt, node, [ + toExpr(node.expression, scope), + ]); } else if (ts.isTypeOfExpression(node)) { - return newExpr(NodeKind.TypeOfExpr, [toExpr(node.expression, scope)]); + return newExpr(NodeKind.TypeOfExpr, node, [ + toExpr(node.expression, scope), + ]); } else if (ts.isWhileStatement(node)) { - return newExpr(NodeKind.WhileStmt, [ + return newExpr(NodeKind.WhileStmt, node, [ toExpr(node.expression, scope), ts.isBlock(node.statement) ? toExpr(node.statement, scope) : // re-write a standalone statement as as BlockStmt - newExpr(NodeKind.BlockStmt, [ + newExpr(NodeKind.BlockStmt, node.statement, [ ts.factory.createArrayLiteralExpression([ toExpr(node.statement, scope), ]), ]), ]); } else if (ts.isDoStatement(node)) { - return newExpr(NodeKind.DoStmt, [ + return newExpr(NodeKind.DoStmt, node, [ ts.isBlock(node.statement) ? toExpr(node.statement, scope) : // re-write a standalone statement as as BlockStmt - newExpr(NodeKind.BlockStmt, [ + newExpr(NodeKind.BlockStmt, node.statement, [ ts.factory.createArrayLiteralExpression([ toExpr(node.statement, scope), ]), @@ -777,7 +791,7 @@ export function compile( toExpr(node.expression, scope), ]); } else if (ts.isParenthesizedExpression(node)) { - return newExpr(NodeKind.ParenthesizedExpr, [ + return newExpr(NodeKind.ParenthesizedExpr, node, [ toExpr(node.expression, scope), ]); } else if (ts.isAsExpression(node)) { @@ -787,7 +801,7 @@ export function compile( } else if (ts.isNonNullExpression(node)) { return toExpr(node.expression, scope); } else if (node.kind === ts.SyntaxKind.ThisKeyword) { - return newExpr(NodeKind.ThisExpr, [ + return newExpr(NodeKind.ThisExpr, node, [ ts.factory.createArrowFunction( undefined, undefined, @@ -801,14 +815,17 @@ export function compile( ts.isToken(node) && node.kind === ts.SyntaxKind.SuperKeyword ) { - return newExpr(NodeKind.SuperKeyword, []); + return newExpr(NodeKind.SuperKeyword, node, []); } else if (ts.isAwaitExpression(node)) { - return newExpr(NodeKind.AwaitExpr, [toExpr(node.expression, scope)]); + return newExpr(NodeKind.AwaitExpr, node, [ + toExpr(node.expression, scope), + ]); } else if (ts.isClassDeclaration(node) || ts.isClassExpression(node)) { return newExpr( ts.isClassDeclaration(node) ? NodeKind.ClassDecl : NodeKind.ClassExpr, + node, [ // name node.name ?? ts.factory.createIdentifier("undefined"), @@ -826,7 +843,7 @@ export function compile( ] ); } else if (ts.isClassStaticBlockDeclaration(node)) { - return newExpr(NodeKind.ClassStaticBlockDecl, [ + return newExpr(NodeKind.ClassStaticBlockDecl, node, [ toExpr(node.body, scope), ]); } else if (ts.isConstructorDeclaration(node)) { @@ -834,58 +851,62 @@ export function compile( } else if (ts.isMethodDeclaration(node)) { return toFunction(NodeKind.MethodDecl, node); } else if (ts.isPropertyDeclaration(node)) { - return newExpr(NodeKind.PropDecl, [ + return newExpr(NodeKind.PropDecl, node, [ toExpr(node.name, scope), node.initializer ? toExpr(node.initializer, scope) : ts.factory.createIdentifier("undefined"), ]); } else if (ts.isDebuggerStatement(node)) { - return newExpr(NodeKind.DebuggerStmt, []); + return newExpr(NodeKind.DebuggerStmt, node, []); } else if (ts.isLabeledStatement(node)) { - return newExpr(NodeKind.LabelledStmt, [ + return newExpr(NodeKind.LabelledStmt, node, [ toExpr(node.label, scope), toExpr(node.statement, scope), ]); } else if (ts.isSwitchStatement(node)) { - return newExpr(NodeKind.SwitchStmt, [ + return newExpr(NodeKind.SwitchStmt, node, [ toExpr(node.expression, scope), ts.factory.createArrayLiteralExpression( node.caseBlock.clauses.map((clause) => toExpr(clause, scope)) ), ]); } else if (ts.isCaseClause(node)) { - return newExpr(NodeKind.CaseClause, [ + return newExpr(NodeKind.CaseClause, node, [ toExpr(node.expression, scope), ts.factory.createArrayLiteralExpression( node.statements.map((stmt) => toExpr(stmt, scope)) ), ]); } else if (ts.isDefaultClause(node)) { - return newExpr(NodeKind.DefaultClause, [ + return newExpr(NodeKind.DefaultClause, node, [ ts.factory.createArrayLiteralExpression( node.statements.map((stmt) => toExpr(stmt, scope)) ), ]); } else if (ts.isWithStatement(node)) { - return newExpr(NodeKind.WithStmt, []); + return newExpr(NodeKind.WithStmt, node, []); } else if (ts.isPrivateIdentifier(node)) { - return newExpr(NodeKind.PrivateIdentifier, [ + return newExpr(NodeKind.PrivateIdentifier, node, [ ts.factory.createStringLiteral(node.getText()), ]); } else if (ts.isVoidExpression(node)) { - return newExpr(NodeKind.VoidExpr, [toExpr(node.expression, scope)]); + return newExpr(NodeKind.VoidExpr, node, [ + toExpr(node.expression, scope), + ]); } else if (ts.isDeleteExpression(node)) { - return newExpr(NodeKind.DeleteExpr, [toExpr(node.expression, scope)]); + return newExpr(NodeKind.DeleteExpr, node, [ + toExpr(node.expression, scope), + ]); } else if (ts.isYieldExpression(node)) { - return newExpr(NodeKind.YieldExpr, [ + return newExpr(NodeKind.YieldExpr, node, [ toExpr(node.expression, scope), node.asteriskToken ? ts.factory.createTrue() : ts.factory.createFalse(), ]); } else if (ts.isOmittedExpression(node)) { - return newExpr(NodeKind.OmittedExpr, []); + return newExpr(NodeKind.OmittedExpr, node, []); } throw new Error( @@ -894,7 +915,7 @@ export function compile( } function ref(node: ts.Expression) { - return newExpr(NodeKind.ReferenceExpr, [ + return newExpr(NodeKind.ReferenceExpr, node, [ ts.factory.createStringLiteral(exprToString(node)), ts.factory.createArrowFunction( undefined, @@ -921,15 +942,13 @@ export function compile( } } - function string(literal: string): ts.Expression { - return newExpr(NodeKind.StringLiteralExpr, [ - ts.factory.createStringLiteral(literal), - ]); - } - - function newExpr(type: NodeKind, args: ts.Expression[]) { + function newExpr(type: NodeKind, span: ts.Node, args: ts.Expression[]) { return ts.factory.createArrayLiteralExpression([ ts.factory.createNumericLiteral(type), + ts.factory.createArrayLiteralExpression([ + ts.factory.createNumericLiteral(span.getStart()), + ts.factory.createNumericLiteral(span.getEnd()), + ]), ...args, ]); } From b902eb2ed6f4b3409c5eaec9cabad2ea4e129258 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 9 Aug 2022 00:16:47 -0700 Subject: [PATCH 049/107] feat: add id and filename to ReferenceExpr --- src/expression.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/expression.ts b/src/expression.ts index d8d5d512..805f2efc 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -157,7 +157,27 @@ export class ClassExpr extends BaseExpr< export class ReferenceExpr< R = unknown > extends BaseExpr { - constructor(readonly name: string, readonly ref: () => R) { + constructor( + /** + * Name of the referenced variable. + * + * ```ts + * let i; + * + * i; // "i" + * ``` + */ + readonly name: string, + /** + * A closure that produces the referred value. + */ + readonly ref: () => R, + /** + * An id number unique within the file where the reference originates from. + */ + readonly id: number, + readonly filename: string + ) { super(NodeKind.ReferenceExpr, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensure(ref, "ref", ["function"]); From f8be24b06920622da3097119a7ed8c42dd999ac7 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 9 Aug 2022 13:12:49 -0700 Subject: [PATCH 050/107] feat: root node --- src/asl.ts | 4 +- src/declaration.ts | 12 +- src/expression.ts | 23 ++-- src/guards.ts | 2 + src/integration.ts | 8 +- src/node-ctor.ts | 2 + src/node-kind.ts | 2 + src/node.ts | 24 +++- src/reflect.ts | 7 +- src/root.ts | 32 +++++ src/serialize-closure.ts | 289 ++++++++++++++++++--------------------- src/statement.ts | 2 +- 12 files changed, 222 insertions(+), 185 deletions(-) create mode 100644 src/root.ts diff --git a/src/asl.ts b/src/asl.ts index 5fd22a67..bbfbc199 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -63,6 +63,7 @@ import { isLabelledStmt, isLiteralExpr, isMethodDecl, + isRoot, isNewExpr, isNode, isNoSubstitutionTemplateLiteral, @@ -5335,7 +5336,8 @@ function toStateName(node: FunctionlessNode): string { isTemplateHead(node) || isTemplateMiddle(node) || isTemplateTail(node) || - isTemplateSpan(node) + isTemplateSpan(node) || + isRoot(node) ) { throw new SynthError( ErrorCodes.Unsupported_Feature, diff --git a/src/declaration.ts b/src/declaration.ts index f45ad8ad..c96d9235 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -11,6 +11,7 @@ import { import { Integration } from "./integration"; import { BaseNode, FunctionlessNode } from "./node"; import { NodeKind } from "./node-kind"; +import { Root } from "./root"; import { Span } from "./span"; import type { BlockStmt, @@ -32,14 +33,14 @@ export type Decl = abstract class BaseDecl< Kind extends NodeKind, - Parent extends FunctionlessNode | undefined = FunctionlessNode | undefined + Parent extends FunctionlessNode = FunctionlessNode > extends BaseNode { readonly nodeKind: "Decl" = "Decl"; } export class ClassDecl extends BaseDecl< NodeKind.ClassDecl, - undefined + Root > { readonly _classBrand?: C; constructor( @@ -197,9 +198,10 @@ export type FunctionLike = | FunctionExpr | ArrowFunctionExpr; -export class FunctionDecl< - F extends AnyFunction = AnyFunction -> extends BaseDecl { +export class FunctionDecl extends BaseDecl< + NodeKind.FunctionDecl, + Root | BlockStmt +> { readonly _functionBrand?: F; constructor( /** diff --git a/src/expression.ts b/src/expression.ts index 7303d542..6a8c936b 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -68,12 +68,7 @@ export type Expr = export abstract class BaseExpr< Kind extends NodeKind, - Parent extends FunctionlessNode | undefined = - | BindingElem - | Expr - | Stmt - | VariableDecl - | undefined + Parent extends FunctionlessNode = BindingElem | Expr | Stmt | VariableDecl > extends BaseNode { readonly nodeKind: "Expr" = "Expr"; } @@ -146,10 +141,9 @@ export class FunctionExpr< } } -export class ClassExpr extends BaseExpr< - NodeKind.ClassExpr, - undefined -> { +export class ClassExpr< + C extends AnyClass = AnyClass +> extends BaseExpr { readonly _classBrand?: C; constructor( /** @@ -190,14 +184,17 @@ export class ReferenceExpr< */ readonly ref: () => R, /** - * An id number unique within the file where the reference originates from. + * A number that uniquely identifies the variable within this AST. + * + * This is used to ensure that two ReferenceExpr's pointing to the same variable still point + * to the same variable after transformation. */ - readonly id: number, - readonly filename: string + readonly id: number ) { super(NodeKind.ReferenceExpr, span, arguments); this.ensure(name, "name", ["undefined", "string"]); this.ensure(ref, "ref", ["function"]); + this.ensure(id, "id", ["number"]); } } diff --git a/src/guards.ts b/src/guards.ts index 4e34477d..16c88794 100644 --- a/src/guards.ts +++ b/src/guards.ts @@ -14,6 +14,8 @@ export function isExpr(a: any): a is Expr { return isNode(a) && a.nodeKind === "Expr"; } +export const isRoot = typeGuard(NodeKind.Root); + export const isArgument = typeGuard(NodeKind.Argument); export const isArrayLiteralExpr = typeGuard(NodeKind.ArrayLiteralExpr); export const isArrowFunctionExpr = typeGuard(NodeKind.ArrowFunctionExpr); diff --git a/src/integration.ts b/src/integration.ts index a18ada51..590ca7c9 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -19,7 +19,7 @@ import { } from "./guards"; import { FunctionlessNode } from "./node"; import { AnyFunction, evalToConstant } from "./util"; -import { visitEachChild } from "./visit"; +import { forEachChild } from "./visit"; import { VTL } from "./vtl"; export const isIntegration = >( @@ -298,7 +298,7 @@ export function findDeepIntegrations( ast: FunctionlessNode ): CallExpr[] { const nodes: CallExpr[] = []; - visitEachChild(ast, function visit(node: FunctionlessNode): FunctionlessNode { + forEachChild(ast, function visit(node: FunctionlessNode) { if (isCallExpr(node)) { const integrations = tryFindIntegrations(node.expr); if (integrations) { @@ -307,7 +307,7 @@ export function findDeepIntegrations( node.fork( new CallExpr( node.span, - new ReferenceExpr(node.expr.span, "", () => integration), + new ReferenceExpr(node.expr.span, "", () => integration, 0), node.args.map((arg) => arg.clone()) ) ) @@ -316,7 +316,7 @@ export function findDeepIntegrations( } } - return visitEachChild(node, visit); + forEachChild(node, visit); }); return nodes; diff --git a/src/node-ctor.ts b/src/node-ctor.ts index a6f1d2b4..124e0de0 100644 --- a/src/node-ctor.ts +++ b/src/node-ctor.ts @@ -63,6 +63,7 @@ import { YieldExpr, } from "./expression"; import { NodeKind } from "./node-kind"; +import { Root } from "./root"; import { BlockStmt, BreakStmt, @@ -197,6 +198,7 @@ export const keywords = { } as const; export const nodes = { + [NodeKind.Root]: Root, ...declarations, ...error, ...expressions, diff --git a/src/node-kind.ts b/src/node-kind.ts index caa57a88..f13fd898 100644 --- a/src/node-kind.ts +++ b/src/node-kind.ts @@ -1,4 +1,6 @@ export enum NodeKind { + Root = -1, + Argument = 0, ArrayBinding = 1, ArrayLiteralExpr = 2, diff --git a/src/node.ts b/src/node.ts index 5bd682ac..4a6e1c5e 100644 --- a/src/node.ts +++ b/src/node.ts @@ -35,6 +35,7 @@ import { isFunctionLike, isIdentifier, isIfStmt, + isRoot, isNode, isParameterDecl, isReturnStmt, @@ -47,10 +48,12 @@ import { } from "./guards"; import type { NodeCtor } from "./node-ctor"; import { NodeKind, NodeKindName, getNodeKindName } from "./node-kind"; +import { Root } from "./root"; import type { Span } from "./span"; import type { BlockStmt, CatchClause, Stmt } from "./statement"; export type FunctionlessNode = + | Root | Decl | Expr | Stmt @@ -77,7 +80,13 @@ export abstract class BaseNode< Kind extends NodeKind, Parent extends FunctionlessNode | undefined = FunctionlessNode | undefined > { - abstract readonly nodeKind: "Err" | "Expr" | "Stmt" | "Decl" | "Node"; + abstract readonly nodeKind: + | "Decl" + | "Err" + | "Expr" + | "Node" + | "Root" + | "Stmt"; // @ts-ignore - we have a convention to set this in the parent constructor readonly parent: Parent; @@ -141,6 +150,19 @@ export abstract class BaseNode< return node; } + /** + * @returns the name of the file this node originates from. + */ + public getFileName(): string { + if (isRoot(this)) { + return this.filename; + } else if (this.parent === undefined) { + throw new Error(`cannot get filename of orphaned node`); + } else { + return this.parent.getFileName(); + } + } + protected ensureArrayOf( arr: any[], fieldName: string, diff --git a/src/reflect.ts b/src/reflect.ts index 7caf10a1..ae8e730c 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -4,6 +4,7 @@ import { ErrorCodes, SynthError } from "./error-code"; import { isFunctionLike, isErr, isNewExpr } from "./guards"; import { tryResolveReferences } from "./integration"; import type { FunctionlessNode } from "./node"; +import { Root } from "./root"; import { parseSExpr } from "./s-expression"; import { AnyAsyncFunction, AnyFunction } from "./util"; import { forEachChild } from "./visit"; @@ -53,10 +54,8 @@ export function reflect( const astCallback = (func)[ReflectionSymbols.AST]; if (typeof astCallback === "function") { if (!reflectCache.has(astCallback)) { - reflectCache.set( - astCallback, - parseSExpr(astCallback()) as FunctionLike | Err - ); + const mod = parseSExpr(astCallback()) as Root; + reflectCache.set(astCallback, mod.entrypoint as FunctionLike | Err); } return reflectCache.get(astCallback) as FunctionLike | Err | undefined; } diff --git a/src/root.ts b/src/root.ts new file mode 100644 index 00000000..fee1831c --- /dev/null +++ b/src/root.ts @@ -0,0 +1,32 @@ +import { ClassDecl, FunctionDecl, MethodDecl } from "./declaration"; +import { ArrowFunctionExpr, ClassExpr, FunctionExpr } from "./expression"; +import { BaseNode } from "./node"; +import { NodeKind } from "./node-kind"; +import { Span } from "./span"; + +/** + * A `Module` is the root of an entire AST. + * + * It contains metadata about the contained AST, such as its {@link filename}. + */ +export class Root extends BaseNode { + readonly nodeKind = "Root"; + constructor( + span: Span, + /** + * Contains the name of the source file this Node originated from. + * + * Only set for the root declaration in an AST tree. + */ + readonly filename: string, + readonly entrypoint: + | FunctionDecl + | FunctionExpr + | ArrowFunctionExpr + | ClassDecl + | ClassExpr + | MethodDecl + ) { + super(NodeKind.Root, span, arguments); + } +} diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index d521b780..17d652a4 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -43,6 +43,7 @@ import { isImportKeyword, isLabelledStmt, isMethodDecl, + isRoot, isNewExpr, isNoSubstitutionTemplateLiteral, isNullLiteralExpr, @@ -109,22 +110,26 @@ export function serializeClosure(func: AnyFunction): string { return `v${i++}`; }; - const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed }); - const statements: ts.Statement[] = []; const valueIds = new Map(); emit(expr(assign(prop(id("exports"), "handler"), serialize(func)))); - return printer.printFile( - ts.factory.createSourceFile( - statements, - ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), - ts.NodeFlags.JavaScriptFile - ) + const printer = ts.createPrinter({ + newLine: ts.NewLineKind.LineFeed, + }); + + const sourceFile = ts.factory.createSourceFile( + statements, + ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), + ts.NodeFlags.JavaScriptFile ); + // looks like TS does not expose the source-map functionality + // TODO: figure out how to generate a source map since we have all the information ... + return printer.printFile(sourceFile); + function emit(...stmts: ts.Statement[]) { statements.push(...stmts); } @@ -241,7 +246,7 @@ export function serializeClosure(func: AnyFunction): string { // const vFunc = vMod.prop return emitVarDecl(prop(moduleName, mod.exportName)); } else if (isFunctionLike(ast)) { - const expr = serializeAST(ast) as ts.Expression; + const expr = toTS(ast) as ts.Expression; return emitVarDecl(expr); } else { throw ast.error; @@ -251,8 +256,20 @@ export function serializeClosure(func: AnyFunction): string { throw new Error("not implemented"); } - function serializeAST(node: FunctionlessNode): ts.Node { - if (isReferenceExpr(node)) { + function toTS(node: FunctionlessNode): ts.Node { + const tsNode = _toTS(node); + ts.setSourceMapRange(tsNode, { + pos: node.span[0], + end: node.span[1], + source: undefined, // TODO: acquire this + }); + return tsNode; + } + + function _toTS(node: FunctionlessNode): ts.Node { + if (isRoot(node)) { + return toTS(node.entrypoint); + } else if (isReferenceExpr(node)) { return serialize(node.ref()); } else if (isArrowFunctionExpr(node)) { return ts.factory.createArrowFunction( @@ -260,12 +277,10 @@ export function serializeClosure(func: AnyFunction): string { ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] : undefined, undefined, - node.parameters.map( - (param) => serializeAST(param) as ts.ParameterDeclaration - ), + node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), undefined, undefined, - serializeAST(node.body) as ts.Block + toTS(node.body) as ts.Block ); } else if (isFunctionDecl(node)) { return ts.factory.createFunctionDeclaration( @@ -278,11 +293,9 @@ export function serializeClosure(func: AnyFunction): string { : undefined, node.name, undefined, - node.parameters.map( - (param) => serializeAST(param) as ts.ParameterDeclaration - ), + node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), undefined, - serializeAST(node.body) as ts.Block + toTS(node.body) as ts.Block ); } else if (isFunctionExpr(node)) { return ts.factory.createFunctionExpression( @@ -294,11 +307,9 @@ export function serializeClosure(func: AnyFunction): string { : undefined, node.name, undefined, - node.parameters.map( - (param) => serializeAST(param) as ts.ParameterDeclaration - ), + node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), undefined, - serializeAST(node.body) as ts.Block + toTS(node.body) as ts.Block ); } else if (isParameterDecl(node)) { return ts.factory.createParameterDeclaration( @@ -307,16 +318,14 @@ export function serializeClosure(func: AnyFunction): string { node.isRest ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) : undefined, - serializeAST(node.name) as ts.BindingName, + toTS(node.name) as ts.BindingName, undefined, undefined, - node.initializer - ? (serializeAST(node.initializer) as ts.Expression) - : undefined + node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined ); } else if (isBlockStmt(node)) { return ts.factory.createBlock( - node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) + node.statements.map((stmt) => toTS(stmt) as ts.Statement) ); } else if (isThisExpr(node)) { return ts.factory.createThis(); @@ -328,34 +337,34 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createPrivateIdentifier(node.name); } else if (isPropAccessExpr(node)) { return ts.factory.createPropertyAccessChain( - serializeAST(node.expr) as ts.Expression, + toTS(node.expr) as ts.Expression, node.isOptional ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) : undefined, - serializeAST(node.name) as ts.MemberName + toTS(node.name) as ts.MemberName ); } else if (isElementAccessExpr(node)) { return ts.factory.createElementAccessChain( - serializeAST(node.expr) as ts.Expression, + toTS(node.expr) as ts.Expression, node.isOptional ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) : undefined, - serializeAST(node.element) as ts.Expression + toTS(node.element) as ts.Expression ); } else if (isCallExpr(node)) { return ts.factory.createCallExpression( - serializeAST(node.expr) as ts.Expression, + toTS(node.expr) as ts.Expression, undefined, - node.args.map((arg) => serializeAST(arg) as ts.Expression) + node.args.map((arg) => toTS(arg) as ts.Expression) ); } else if (isNewExpr(node)) { return ts.factory.createCallExpression( - serializeAST(node.expr) as ts.Expression, + toTS(node.expr) as ts.Expression, undefined, - node.args.map((arg) => serializeAST(arg) as ts.Expression) + node.args.map((arg) => toTS(arg) as ts.Expression) ); } else if (isArgument(node)) { - return serializeAST(node.expr); + return toTS(node.expr); } else if (isUndefinedLiteralExpr(node)) { return ts.factory.createIdentifier("undefined"); } else if (isNullLiteralExpr(node)) { @@ -370,43 +379,39 @@ export function serializeClosure(func: AnyFunction): string { return string(node.value); } else if (isArrayLiteralExpr(node)) { return ts.factory.createArrayLiteralExpression( - node.items.map((item) => serializeAST(item) as ts.Expression), + node.items.map((item) => toTS(item) as ts.Expression), undefined ); } else if (isSpreadElementExpr(node)) { - return ts.factory.createSpreadElement( - serializeAST(node.expr) as ts.Expression - ); + return ts.factory.createSpreadElement(toTS(node.expr) as ts.Expression); } else if (isObjectLiteralExpr(node)) { return ts.factory.createObjectLiteralExpression( node.properties.map( - (prop) => serializeAST(prop) as ts.ObjectLiteralElementLike + (prop) => toTS(prop) as ts.ObjectLiteralElementLike ), undefined ); } else if (isPropAssignExpr(node)) { return ts.factory.createPropertyAssignment( - serializeAST(node.name) as ts.PropertyName, - serializeAST(node.expr) as ts.Expression + toTS(node.name) as ts.PropertyName, + toTS(node.expr) as ts.Expression ); } else if (isSpreadAssignExpr(node)) { - return ts.factory.createSpreadElement( - serializeAST(node.expr) as ts.Expression - ); + return ts.factory.createSpreadElement(toTS(node.expr) as ts.Expression); } else if (isComputedPropertyNameExpr(node)) { return ts.factory.createComputedPropertyName( - serializeAST(node.expr) as ts.Expression + toTS(node.expr) as ts.Expression ); } else if (isOmittedExpr(node)) { return ts.factory.createOmittedExpression(); } else if (isVariableStmt(node)) { return ts.factory.createVariableStatement( undefined, - serializeAST(node.declList) as ts.VariableDeclarationList + toTS(node.declList) as ts.VariableDeclarationList ); } else if (isVariableDeclList(node)) { return ts.factory.createVariableDeclarationList( - node.decls.map((decl) => serializeAST(decl) as ts.VariableDeclaration), + node.decls.map((decl) => toTS(decl) as ts.VariableDeclaration), node.varKind === VariableDeclKind.Const ? ts.NodeFlags.Const : node.varKind === VariableDeclKind.Let @@ -415,12 +420,10 @@ export function serializeClosure(func: AnyFunction): string { ); } else if (isVariableDecl(node)) { return ts.factory.createVariableDeclaration( - serializeAST(node.name) as ts.BindingName, + toTS(node.name) as ts.BindingName, undefined, undefined, - node.initializer - ? (serializeAST(node.initializer) as ts.Expression) - : undefined + node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined ); } else if (isBindingElem(node)) { return ts.factory.createBindingElement( @@ -428,24 +431,18 @@ export function serializeClosure(func: AnyFunction): string { ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) : undefined, node.propertyName - ? (serializeAST(node.propertyName) as ts.PropertyName) + ? (toTS(node.propertyName) as ts.PropertyName) : undefined, - serializeAST(node.name) as ts.BindingName, - node.initializer - ? (serializeAST(node.initializer) as ts.Expression) - : undefined + toTS(node.name) as ts.BindingName, + node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined ); } else if (isObjectBinding(node)) { return ts.factory.createObjectBindingPattern( - node.bindings.map( - (binding) => serializeAST(binding) as ts.BindingElement - ) + node.bindings.map((binding) => toTS(binding) as ts.BindingElement) ); } else if (isArrayBinding(node)) { return ts.factory.createArrayBindingPattern( - node.bindings.map( - (binding) => serializeAST(binding) as ts.BindingElement - ) + node.bindings.map((binding) => toTS(binding) as ts.BindingElement) ); } else if (isClassDecl(node) || isClassExpr(node)) { return ( @@ -457,25 +454,21 @@ export function serializeClosure(func: AnyFunction): string { undefined, node.name, undefined, - node.heritage - ? [serializeAST(node.heritage) as ts.HeritageClause] - : undefined, - node.members.map((member) => serializeAST(member) as ts.ClassElement) + node.heritage ? [toTS(node.heritage) as ts.HeritageClause] : undefined, + node.members.map((member) => toTS(member) as ts.ClassElement) ); } else if (isClassStaticBlockDecl(node)) { return ts.factory.createClassStaticBlockDeclaration( undefined, undefined, - serializeAST(node.block) as ts.Block + toTS(node.block) as ts.Block ); } else if (isConstructorDecl(node)) { return ts.factory.createConstructorDeclaration( undefined, undefined, - node.parameters.map( - (param) => serializeAST(param) as ts.ParameterDeclaration - ), - serializeAST(node.body) as ts.Block + node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), + toTS(node.body) as ts.Block ); } else if (isPropDecl(node)) { return ts.factory.createPropertyDeclaration( @@ -483,12 +476,10 @@ export function serializeClosure(func: AnyFunction): string { node.isStatic ? [ts.factory.createModifier(ts.SyntaxKind.StaticKeyword)] : undefined, - serializeAST(node.name) as ts.PropertyName, + toTS(node.name) as ts.PropertyName, undefined, undefined, - node.initializer - ? (serializeAST(node.initializer) as ts.Expression) - : undefined + node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined ); } else if (isMethodDecl(node)) { return ts.factory.createMethodDeclaration( @@ -499,52 +490,48 @@ export function serializeClosure(func: AnyFunction): string { node.isAsterisk ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) : undefined, - serializeAST(node.name) as ts.PropertyName, + toTS(node.name) as ts.PropertyName, undefined, undefined, - node.parameters.map( - (param) => serializeAST(param) as ts.ParameterDeclaration - ), + node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), undefined, - serializeAST(node.body) as ts.Block + toTS(node.body) as ts.Block ); } else if (isGetAccessorDecl(node)) { return ts.factory.createGetAccessorDeclaration( undefined, undefined, - serializeAST(node.name) as ts.PropertyName, + toTS(node.name) as ts.PropertyName, [], undefined, - serializeAST(node.body) as ts.Block + toTS(node.body) as ts.Block ); } else if (isSetAccessorDecl(node)) { return ts.factory.createSetAccessorDeclaration( undefined, undefined, - serializeAST(node.name) as ts.PropertyName, - [serializeAST(node.parameter) as ts.ParameterDeclaration], - serializeAST(node.body) as ts.Block + toTS(node.name) as ts.PropertyName, + [toTS(node.parameter) as ts.ParameterDeclaration], + toTS(node.body) as ts.Block ); } else if (isExprStmt(node)) { return ts.factory.createExpressionStatement( - serializeAST(node.expr) as ts.Expression + toTS(node.expr) as ts.Expression ); } else if (isAwaitExpr(node)) { - return ts.factory.createAwaitExpression( - serializeAST(node.expr) as ts.Expression - ); + return ts.factory.createAwaitExpression(toTS(node.expr) as ts.Expression); } else if (isYieldExpr(node)) { if (node.delegate) { return ts.factory.createYieldExpression( ts.factory.createToken(ts.SyntaxKind.AsteriskToken), node.expr - ? (serializeAST(node.expr) as ts.Expression) + ? (toTS(node.expr) as ts.Expression) : ts.factory.createIdentifier("undefined") ); } else { return ts.factory.createYieldExpression( undefined, - node.expr ? (serializeAST(node.expr) as ts.Expression) : undefined + node.expr ? (toTS(node.expr) as ts.Expression) : undefined ); } } else if (isUnaryExpr(node)) { @@ -562,11 +549,11 @@ export function serializeClosure(func: AnyFunction): string { : node.op === "~" ? ts.SyntaxKind.TildeToken : assertNever(node.op), - serializeAST(node.expr) as ts.Expression + toTS(node.expr) as ts.Expression ); } else if (isPostfixUnaryExpr(node)) { return ts.factory.createPostfixUnaryExpression( - serializeAST(node.expr) as ts.Expression, + toTS(node.expr) as ts.Expression, node.op === "++" ? ts.SyntaxKind.PlusPlusToken : node.op === "--" @@ -575,7 +562,7 @@ export function serializeClosure(func: AnyFunction): string { ); } else if (isBinaryExpr(node)) { return ts.factory.createBinaryExpression( - serializeAST(node.left) as ts.Expression, + toTS(node.left) as ts.Expression, node.op === "!=" ? ts.SyntaxKind.ExclamationEqualsToken : node.op === "!==" @@ -661,132 +648,124 @@ export function serializeClosure(func: AnyFunction): string { : node.op === "||=" ? ts.SyntaxKind.BarBarEqualsToken : assertNever(node.op), - serializeAST(node.right) as ts.Expression + toTS(node.right) as ts.Expression ); } else if (isConditionExpr(node)) { return ts.factory.createConditionalExpression( - serializeAST(node.when) as ts.Expression, + toTS(node.when) as ts.Expression, undefined, - serializeAST(node.then) as ts.Expression, + toTS(node.then) as ts.Expression, undefined, - serializeAST(node._else) as ts.Expression + toTS(node._else) as ts.Expression ); } else if (isIfStmt(node)) { return ts.factory.createIfStatement( - serializeAST(node.when) as ts.Expression, - serializeAST(node.then) as ts.Statement, - node._else ? (serializeAST(node._else) as ts.Statement) : undefined + toTS(node.when) as ts.Expression, + toTS(node.then) as ts.Statement, + node._else ? (toTS(node._else) as ts.Statement) : undefined ); } else if (isSwitchStmt(node)) { return ts.factory.createSwitchStatement( - serializeAST(node.expr) as ts.Expression, + toTS(node.expr) as ts.Expression, ts.factory.createCaseBlock( - node.clauses.map( - (clause) => serializeAST(clause) as ts.CaseOrDefaultClause - ) + node.clauses.map((clause) => toTS(clause) as ts.CaseOrDefaultClause) ) ); } else if (isCaseClause(node)) { return ts.factory.createCaseClause( - serializeAST(node.expr) as ts.Expression, - node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) + toTS(node.expr) as ts.Expression, + node.statements.map((stmt) => toTS(stmt) as ts.Statement) ); } else if (isDefaultClause(node)) { return ts.factory.createDefaultClause( - node.statements.map((stmt) => serializeAST(stmt) as ts.Statement) + node.statements.map((stmt) => toTS(stmt) as ts.Statement) ); } else if (isForStmt(node)) { return ts.factory.createForStatement( node.initializer - ? (serializeAST(node.initializer) as ts.ForInitializer) - : undefined, - node.condition - ? (serializeAST(node.condition) as ts.Expression) + ? (toTS(node.initializer) as ts.ForInitializer) : undefined, + node.condition ? (toTS(node.condition) as ts.Expression) : undefined, node.incrementor - ? (serializeAST(node.incrementor) as ts.Expression) + ? (toTS(node.incrementor) as ts.Expression) : undefined, - serializeAST(node.body) as ts.Statement + toTS(node.body) as ts.Statement ); } else if (isForOfStmt(node)) { return ts.factory.createForOfStatement( node.isAwait ? ts.factory.createToken(ts.SyntaxKind.AwaitKeyword) : undefined, - serializeAST(node.initializer) as ts.ForInitializer, - serializeAST(node.expr) as ts.Expression, - serializeAST(node.body) as ts.Statement + toTS(node.initializer) as ts.ForInitializer, + toTS(node.expr) as ts.Expression, + toTS(node.body) as ts.Statement ); } else if (isForInStmt(node)) { return ts.factory.createForInStatement( - serializeAST(node.initializer) as ts.ForInitializer, - serializeAST(node.expr) as ts.Expression, - serializeAST(node.body) as ts.Statement + toTS(node.initializer) as ts.ForInitializer, + toTS(node.expr) as ts.Expression, + toTS(node.body) as ts.Statement ); } else if (isWhileStmt(node)) { return ts.factory.createWhileStatement( - serializeAST(node.condition) as ts.Expression, - serializeAST(node.block) as ts.Statement + toTS(node.condition) as ts.Expression, + toTS(node.block) as ts.Statement ); } else if (isDoStmt(node)) { return ts.factory.createDoStatement( - serializeAST(node.block) as ts.Statement, - serializeAST(node.condition) as ts.Expression + toTS(node.block) as ts.Statement, + toTS(node.condition) as ts.Expression ); } else if (isBreakStmt(node)) { return ts.factory.createBreakStatement( - node.label ? (serializeAST(node.label) as ts.Identifier) : undefined + node.label ? (toTS(node.label) as ts.Identifier) : undefined ); } else if (isContinueStmt(node)) { return ts.factory.createContinueStatement( - node.label ? (serializeAST(node.label) as ts.Identifier) : undefined + node.label ? (toTS(node.label) as ts.Identifier) : undefined ); } else if (isLabelledStmt(node)) { return ts.factory.createLabeledStatement( - serializeAST(node.label) as ts.Identifier, - serializeAST(node.stmt) as ts.Statement + toTS(node.label) as ts.Identifier, + toTS(node.stmt) as ts.Statement ); } else if (isTryStmt(node)) { return ts.factory.createTryStatement( - serializeAST(node.tryBlock) as ts.Block, + toTS(node.tryBlock) as ts.Block, node.catchClause - ? (serializeAST(node.catchClause) as ts.CatchClause) + ? (toTS(node.catchClause) as ts.CatchClause) : undefined, - node.finallyBlock - ? (serializeAST(node.finallyBlock) as ts.Block) - : undefined + node.finallyBlock ? (toTS(node.finallyBlock) as ts.Block) : undefined ); } else if (isCatchClause(node)) { return ts.factory.createCatchClause( node.variableDecl - ? (serializeAST(node.variableDecl) as ts.VariableDeclaration) + ? (toTS(node.variableDecl) as ts.VariableDeclaration) : undefined, - serializeAST(node.block) as ts.Block + toTS(node.block) as ts.Block ); } else if (isThrowStmt(node)) { - return ts.factory.createThrowStatement( - serializeAST(node.expr) as ts.Expression - ); + return ts.factory.createThrowStatement(toTS(node.expr) as ts.Expression); } else if (isDeleteExpr(node)) { return ts.factory.createDeleteExpression( - serializeAST(node.expr) as ts.Expression + toTS(node.expr) as ts.Expression ); } else if (isParenthesizedExpr(node)) { return ts.factory.createParenthesizedExpression( - serializeAST(node.expr) as ts.Expression + toTS(node.expr) as ts.Expression ); } else if (isRegexExpr(node)) { return ts.factory.createRegularExpressionLiteral(node.regex.source); } else if (isTemplateExpr(node)) { return ts.factory.createTemplateExpression( - serializeAST(node.head) as ts.TemplateHead, - node.spans.map((span) => serializeAST(span) as ts.TemplateSpan) + toTS(node.head) as ts.TemplateHead, + node.spans.map((span) => toTS(span) as ts.TemplateSpan) ); } else if (isTaggedTemplateExpr(node)) { return ts.factory.createTaggedTemplateExpression( - serializeAST(node.tag) as ts.Expression, + toTS(node.tag) as ts.Expression, undefined, - serializeAST(node.template) as ts.TemplateLiteral + toTS(node.template) as ts.TemplateLiteral ); } else if (isNoSubstitutionTemplateLiteral(node)) { return ts.factory.createNoSubstitutionTemplateLiteral(node.text); @@ -794,8 +773,8 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createTemplateHead(node.text); } else if (isTemplateSpan(node)) { return ts.factory.createTemplateSpan( - serializeAST(node.expr) as ts.Expression, - serializeAST(node.literal) as ts.TemplateMiddle | ts.TemplateTail + toTS(node.expr) as ts.Expression, + toTS(node.literal) as ts.TemplateMiddle | ts.TemplateTail ); } else if (isTemplateMiddle(node)) { return ts.factory.createTemplateMiddle(node.text); @@ -803,26 +782,24 @@ export function serializeClosure(func: AnyFunction): string { return ts.factory.createTemplateTail(node.text); } else if (isTypeOfExpr(node)) { return ts.factory.createTypeOfExpression( - serializeAST(node.expr) as ts.Expression + toTS(node.expr) as ts.Expression ); } else if (isVoidExpr(node)) { - return ts.factory.createVoidExpression( - serializeAST(node.expr) as ts.Expression - ); + return ts.factory.createVoidExpression(toTS(node.expr) as ts.Expression); } else if (isDebuggerStmt(node)) { return ts.factory.createDebuggerStatement(); } else if (isEmptyStmt(node)) { return ts.factory.createEmptyStatement(); } else if (isReturnStmt(node)) { return ts.factory.createReturnStatement( - node.expr ? (serializeAST(node.expr) as ts.Expression) : undefined + node.expr ? (toTS(node.expr) as ts.Expression) : undefined ); } else if (isImportKeyword(node)) { return ts.factory.createToken(ts.SyntaxKind.ImportKeyword); } else if (isWithStmt(node)) { return ts.factory.createWithStatement( - serializeAST(node.expr) as ts.Expression, - serializeAST(node.stmt) as ts.Statement + toTS(node.expr) as ts.Expression, + toTS(node.stmt) as ts.Statement ); } else if (isErr(node)) { throw node.error; diff --git a/src/statement.ts b/src/statement.ts index 1e3d32a2..cf5520a0 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -38,7 +38,7 @@ export type Stmt = export abstract class BaseStmt< Kind extends NodeKind, - Parent extends FunctionlessNode | undefined = BlockStmt | IfStmt + Parent extends FunctionlessNode = BlockStmt | IfStmt > extends BaseNode { readonly nodeKind: "Stmt" = "Stmt"; From 6cdc203927484577afcf8dc9252d3f88ee4a8685 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 9 Aug 2022 22:41:37 -0700 Subject: [PATCH 051/107] feat: configure require-hook --- .eslintrc.json | 16 ++--- .gitattributes | 1 + .gitignore | 1 + .projen/files.json | 1 + .projen/tasks.json | 4 +- .projenrc.js => .projenrc.ts | 54 +++++++++------ .vscode/launch.json | 14 ++++ jest.config.defaults.json | 46 +++++++++++++ jest.config.ts | 22 ++++++ package.json | 45 ------------- src/asl.ts | 4 +- src/guards.ts | 1 - src/serialize-closure.ts | 118 +++++++++++++++++++++++++-------- test/serialize-closure.test.ts | 31 ++++++++- tsconfig.dev.json | 4 +- 15 files changed, 249 insertions(+), 113 deletions(-) rename .projenrc.js => .projenrc.ts (85%) create mode 100644 jest.config.defaults.json create mode 100644 jest.config.ts diff --git a/.eslintrc.json b/.eslintrc.json index 6b31b63d..2505c49c 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -36,12 +36,9 @@ } }, "ignorePatterns": [ - "*.js", - "!.projenrc.js", - "*.d.ts", - "node_modules/", - "*.generated.ts", - "coverage" + "jest.config.ts", + "!.projenrc.ts", + "!projenrc/**/*.ts" ], "rules": { "prettier/prettier": [ @@ -55,7 +52,10 @@ { "devDependencies": [ "**/test/**", - "**/build-tools/**" + "**/build-tools/**", + "**/projenrc/**", + ".projenrc.ts", + "projenrc/**/*.ts" ], "optionalDependencies": false, "peerDependencies": true @@ -120,7 +120,7 @@ "overrides": [ { "files": [ - ".projenrc.js" + ".projenrc.ts" ], "rules": { "@typescript-eslint/no-require-imports": "off", diff --git a/.gitattributes b/.gitattributes index 81a5e951..fcc36ad2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -19,6 +19,7 @@ /.projen/files.json linguist-generated /.projen/tasks.json linguist-generated /.swcrc linguist-generated +/jest.config.defaults.json linguist-generated /LICENSE linguist-generated /package.json linguist-generated /tsconfig.dev.json linguist-generated diff --git a/.gitignore b/.gitignore index aab84bfb..3ca47b66 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,4 @@ junit.xml !/.eslintrc.json !/.git/hooks/pre-commit !/.swcrc +!/jest.config.defaults.json diff --git a/.projen/files.json b/.projen/files.json index d7e2e5b5..61e68f23 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -17,6 +17,7 @@ ".projen/files.json", ".projen/tasks.json", ".swcrc", + "jest.config.defaults.json", "LICENSE", "tsconfig.dev.json", "tsconfig.json" diff --git a/.projen/tasks.json b/.projen/tasks.json index ae50e77a..dac15072 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -98,7 +98,7 @@ "description": "Synthesize project files", "steps": [ { - "exec": "node .projenrc.js" + "exec": "ts-node --project tsconfig.dev.json .projenrc.ts" } ] }, @@ -119,7 +119,7 @@ "description": "Runs eslint against the codebase", "steps": [ { - "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools .projenrc.js" + "exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test test build-tools projenrc" } ] }, diff --git a/.projenrc.js b/.projenrc.ts similarity index 85% rename from .projenrc.js rename to .projenrc.ts index daf78ec2..2ce005c4 100644 --- a/.projenrc.js +++ b/.projenrc.ts @@ -1,7 +1,7 @@ -const { readFileSync, writeFileSync, chmodSync } = require("fs"); -const { join } = require("path"); -const { typescript, TextFile, JsonFile } = require("projen"); -const { GithubCredentials } = require("projen/lib/github"); +import { readFileSync, writeFileSync, chmodSync } from "fs"; +import { join } from "path"; +import { typescript, TextFile, JsonFile, Project } from "projen"; +import { GithubCredentials } from "projen/lib/github"; /** * Adds githooks into the .git/hooks folder during projen synth. @@ -9,13 +9,13 @@ const { GithubCredentials } = require("projen/lib/github"); * @see https://git-scm.com/docs/githooks */ class GitHooksPreCommitComponent extends TextFile { - constructor(project) { + constructor(project: Project) { super(project, ".git/hooks/pre-commit", { lines: ["#!/bin/sh", "npx -y lint-staged"], }); } - postSynthesize() { + public postSynthesize() { chmodSync(this.path, "755"); } } @@ -37,10 +37,7 @@ const MIN_CDK_VERSION = "2.28.1"; * TODO: Remove this hack once https://github.com/projen/projen/issues/1802 is resolved. */ class CustomTypescriptProject extends typescript.TypeScriptProject { - /** - * @param {typescript.TypeScriptProjectOptions} opts - */ - constructor(opts) { + constructor(opts: typescript.TypeScriptProjectOptions) { super(opts); new GitHooksPreCommitComponent(this); @@ -48,7 +45,7 @@ class CustomTypescriptProject extends typescript.TypeScriptProject { this.postSynthesize = this.postSynthesize.bind(this); } - postSynthesize() { + public postSynthesize() { super.postSynthesize(); /** @@ -58,7 +55,9 @@ class CustomTypescriptProject extends typescript.TypeScriptProject { const outdir = this.outdir; const rootPackageJson = join(outdir, "package.json"); - const packageJson = JSON.parse(readFileSync(rootPackageJson)); + const packageJson = JSON.parse( + readFileSync(rootPackageJson).toString("utf8") + ); const updated = { ...packageJson, @@ -80,6 +79,7 @@ const project = new CustomTypescriptProject({ bin: { functionless: "./bin/functionless.js", }, + projenrcTs: true, deps: [ "@types/aws-lambda", "fs-extra", @@ -142,10 +142,13 @@ const project = new CustomTypescriptProject({ "typescript@^4.7.2", ], eslintOptions: { - lintProjenRc: true, + lintProjenRc: false, + dirs: ["src", "test"], + ignorePatterns: ["jest.config.ts"], }, tsconfig: { compilerOptions: { + // @ts-ignore declarationMap: true, noUncheckedIndexedAccess: true, lib: ["dom", "ES2019"], @@ -167,11 +170,11 @@ const project = new CustomTypescriptProject({ projenCredentials: GithubCredentials.fromApp(), }, }, - prettier: {}, + prettier: true, }); // projen assumes ts-jest -delete project.jest.config.globals; -delete project.jest.config.preset; +delete project.jest!.config.globals; +delete project.jest!.config.preset; new JsonFile(project, ".swcrc", { marker: false, // swc's JSON schema is super strict, so disable the `"//": "generated by projen" marker @@ -201,7 +204,15 @@ new JsonFile(project, ".swcrc", { }, }); -const packageJson = project.tryFindObjectFile("package.json"); +new JsonFile(project, "jest.config.defaults.json", { + obj: project.jest!.config, +}); + +// @ts-ignore +delete project.jest; +project.package.addField("jest", undefined); + +const packageJson = project.tryFindObjectFile("package.json")!; packageJson.addOverride("lint-staged", { "*.{tsx,jsx,ts,js,json,md,css}": ["eslint --fix"], @@ -227,7 +238,7 @@ testFast.exec(`jest --testPathIgnorePatterns localstack --coverage false`); project.addPackageIgnore("/test-app"); -project.eslint.addRules({ +project.eslint!.addRules({ quotes: "off", "comma-dangle": "off", "quote-props": "off", @@ -239,8 +250,9 @@ project.eslint.addRules({ "no-debugger": "error", }); -project.eslint.addOverride({ +project.eslint!.addOverride({ files: ["*.ts", "*.mts", "*.cts", "*.tsx"], + // @ts-ignore plugins: ["no-only-tests"], parserOptions: { project: [ @@ -268,7 +280,7 @@ project.eslint.addOverride({ }, }); -project.prettier.addIgnorePattern("coverage"); -project.prettier.addIgnorePattern("lib"); +project.prettier!.addIgnorePattern("coverage"); +project.prettier!.addIgnorePattern("lib"); project.synth(); diff --git a/.vscode/launch.json b/.vscode/launch.json index 1f19d836..113e23d8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -107,6 +107,20 @@ "${jest.testFile}", "--coverage=false" ] + }, + { + "name": ".projenrc.ts", + "type": "node", + "request": "launch", + "runtimeExecutable": "node", + "runtimeArgs": ["--nolazy", "-r", "@swc/register"], + "args": [".projenrc.ts"], + "cwd": "${workspaceRoot}", + "internalConsoleOptions": "openOnSessionStart", + "skipFiles": ["/**", "node_modules/**"], + "env": { + "TS_NODE_PROJECT": "${workspaceRoot}/test-app/tsconfig.json" + } } ] } diff --git a/jest.config.defaults.json b/jest.config.defaults.json new file mode 100644 index 00000000..7484e54a --- /dev/null +++ b/jest.config.defaults.json @@ -0,0 +1,46 @@ +{ + "collectCoverage": false, + "coveragePathIgnorePatterns": [ + "/test/", + "/node_modules/", + "/lib" + ], + "moduleNameMapper": { + "^@fnls$": "/lib/index" + }, + "transform": { + "^.+\\.(t|j)sx?$": [ + "@swc/jest", + {} + ] + }, + "testMatch": [ + "/src/**/__tests__/**/*.ts?(x)", + "/(test|src)/**/*(*.)@(spec|test).ts?(x)" + ], + "clearMocks": true, + "coverageReporters": [ + "json", + "lcov", + "clover", + "cobertura", + "text" + ], + "coverageDirectory": "coverage", + "testPathIgnorePatterns": [ + "/node_modules/" + ], + "watchPathIgnorePatterns": [ + "/node_modules/" + ], + "reporters": [ + "default", + [ + "jest-junit", + { + "outputDirectory": "test-reports" + } + ] + ], + "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." +} diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 00000000..410b947e --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,22 @@ +// ensure the SWC require-hook is installed before anything else runs +import "@swc/register"; + +import fs from "fs"; +import path from "path"; +import type { Config } from "@jest/types"; + +// Or async function +export default async (): Promise => { + // load the projen-generated jest configuration from ./jest.config.defaults.json + const defaults = JSON.parse( + ( + await fs.promises.readFile( + path.join(__dirname, "jest.config.defaults.json") + ) + ).toString("utf8") + ); + return { + // override defaults programmatically if needed + ...defaults, + }; +}; diff --git a/package.json b/package.json index 678a886d..88da88cf 100644 --- a/package.json +++ b/package.json @@ -94,51 +94,6 @@ "main": "lib/index.js", "license": "Apache-2.0", "version": "0.0.0", - "jest": { - "collectCoverage": false, - "coveragePathIgnorePatterns": [ - "/test/", - "/node_modules/", - "/lib" - ], - "moduleNameMapper": { - "^@fnls$": "/lib/index" - }, - "transform": { - "^.+\\.(t|j)sx?$": [ - "@swc/jest", - {} - ] - }, - "testMatch": [ - "/src/**/__tests__/**/*.ts?(x)", - "/(test|src)/**/*(*.)@(spec|test).ts?(x)" - ], - "clearMocks": true, - "coverageReporters": [ - "json", - "lcov", - "clover", - "cobertura", - "text" - ], - "coverageDirectory": "coverage", - "testPathIgnorePatterns": [ - "/node_modules/" - ], - "watchPathIgnorePatterns": [ - "/node_modules/" - ], - "reporters": [ - "default", - [ - "jest-junit", - { - "outputDirectory": "test-reports" - } - ] - ] - }, "types": "lib/index.d.ts", "lint-staged": { "*.{tsx,jsx,ts,js,json,md,css}": [ diff --git a/src/asl.ts b/src/asl.ts index bbfbc199..5fd22a67 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -63,7 +63,6 @@ import { isLabelledStmt, isLiteralExpr, isMethodDecl, - isRoot, isNewExpr, isNode, isNoSubstitutionTemplateLiteral, @@ -5336,8 +5335,7 @@ function toStateName(node: FunctionlessNode): string { isTemplateHead(node) || isTemplateMiddle(node) || isTemplateTail(node) || - isTemplateSpan(node) || - isRoot(node) + isTemplateSpan(node) ) { throw new SynthError( ErrorCodes.Unsupported_Feature, diff --git a/src/guards.ts b/src/guards.ts index 4e34477d..bd64cea5 100644 --- a/src/guards.ts +++ b/src/guards.ts @@ -168,7 +168,6 @@ export function typeGuard( return (a: any): a is Extract => kinds.find((kind) => a?.kind === kind) !== undefined; } - export function isVariableReference(expr: Expr): expr is VariableReference { return ( isIdentifier(expr) || isPropAccessExpr(expr) || isElementAccessExpr(expr) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 6d09f515..ff075587 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -111,8 +111,12 @@ export function serializeClosure(func: AnyFunction): string { const statements: ts.Statement[] = []; + // stores a map of value to a ts.Expression producing that value const valueIds = new Map(); + // stores a map of a `` to a ts.Identifier pointing to the unique location of that variable + const referenceIds = new Map(); + emit(expr(assign(prop(id("exports"), "handler"), serialize(func)))); const printer = ts.createPrinter({ @@ -134,17 +138,17 @@ export function serializeClosure(func: AnyFunction): string { } function emitVarDecl( - expr: ts.Expression, - varKind: "const" | "let" | "var" = "const" + varKind: "const" | "let" | "var", + varName: string, + expr: ts.Expression ): ts.Identifier { - const name = uniqueName(); emit( ts.factory.createVariableStatement( undefined, ts.factory.createVariableDeclarationList( [ ts.factory.createVariableDeclaration( - name, + varName, undefined, undefined, expr @@ -158,7 +162,7 @@ export function serializeClosure(func: AnyFunction): string { ) ) ); - return ts.factory.createIdentifier(name); + return ts.factory.createIdentifier(varName); } function serialize(value: any): ts.Expression { @@ -197,7 +201,11 @@ export function serializeClosure(func: AnyFunction): string { // emit an empty array // var vArr = [] - const arr = emitVarDecl(ts.factory.createArrayLiteralExpression([])); + const arr = emitVarDecl( + "const", + uniqueName(), + ts.factory.createArrayLiteralExpression([]) + ); // cache the empty array now in case any of the items in the array circularly reference the array valueIds.set(value, arr); @@ -216,7 +224,11 @@ export function serializeClosure(func: AnyFunction): string { // emit an empty object with the correct prototype // e.g. `var vObj = Object.create(vPrototype);` - const obj = emitVarDecl(call(prop(id("Object"), "create"), [prototype])); + const obj = emitVarDecl( + "const", + uniqueName(), + call(prop(id("Object"), "create"), [prototype]) + ); // cache the empty object nwo in case any of the properties in teh array circular reference the object valueIds.set(value, obj); @@ -229,25 +241,34 @@ export function serializeClosure(func: AnyFunction): string { return obj; } else if (typeof value === "function") { - const ast = reflect(func); + const ast = reflect(value); if (ast === undefined) { // if this is not compiled by functionless, we can only serialize it if it is exported by a module - const mod = requireCache.get(func); + const mod = requireCache.get(value); if (mod === undefined) { + // eslint-disable-next-line no-debugger + debugger; throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); } // const vMod = require("module-name"); - const moduleName = emitVarDecl(call(id("require"), [string(mod.path)])); + const moduleName = emitVarDecl( + "const", + uniqueName(), + call(id("require"), [string(mod.path)]) + ); // const vFunc = vMod.prop - return emitVarDecl(prop(moduleName, mod.exportName)); + return emitVarDecl( + "const", + uniqueName(), + prop(moduleName, mod.exportName) + ); } else if (isFunctionLike(ast)) { - const expr = toTS(ast) as ts.Expression; - return emitVarDecl(expr); - } else { + return emitVarDecl("const", uniqueName(), toTS(ast) as ts.Expression); + } else if (isErr(ast)) { throw ast.error; } } @@ -267,7 +288,23 @@ export function serializeClosure(func: AnyFunction): string { function _toTS(node: FunctionlessNode): ts.Node { if (isReferenceExpr(node)) { - return serialize(node.ref()); + // a key that uniquely identifies the variable pointed to by this reference + const varKey = `${node.getFileName()} ${node.name} ${node.id}`; + + // a ts.Identifier that uniquely references the memory location of this variable in the serialized closure + let varId: ts.Identifier | undefined = referenceIds.get(varKey); + if (varId === undefined) { + const varName = uniqueName(); + varId = ts.factory.createIdentifier(varName); + referenceIds.set(varKey, varId); + + const value = serialize(node.ref()); + + // emit a unique variable with the current value + emitVarDecl("var", varName, value); + } + + return varId; } else if (isArrowFunctionExpr(node)) { return ts.factory.createArrowFunction( node.isAsync @@ -280,20 +317,43 @@ export function serializeClosure(func: AnyFunction): string { toTS(node.body) as ts.Block ); } else if (isFunctionDecl(node)) { - return ts.factory.createFunctionDeclaration( - undefined, - node.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - node.isAsterisk - ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) - : undefined, - node.name, - undefined, - node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), - undefined, - toTS(node.body) as ts.Block - ); + if (node.parent === undefined) { + // if this is the root of a tree, then we must declare it as a FunctionExpression + // so that it can be assigned to a variable in the serialized closure + return ts.factory.createFunctionExpression( + node.isAsync + ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] + : undefined, + node.isAsterisk + ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) + : undefined, + node.name, + undefined, + node.parameters.map( + (param) => toTS(param) as ts.ParameterDeclaration + ), + undefined, + toTS(node.body) as ts.Block + ); + } else { + // if it's not the root, then maintain the FunctionDeclaration SyntaxKind + return ts.factory.createFunctionDeclaration( + undefined, + node.isAsync + ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] + : undefined, + node.isAsterisk + ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) + : undefined, + node.name, + undefined, + node.parameters.map( + (param) => toTS(param) as ts.ParameterDeclaration + ), + undefined, + toTS(node.body) as ts.Block + ); + } } else if (isFunctionExpr(node)) { return ts.factory.createFunctionExpression( node.isAsync diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 2ff27c7c..c70ad629 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1,15 +1,40 @@ import "jest"; +import { isNode } from "../src/guards"; import { serializeClosure } from "../src/serialize-closure"; -test("serialize a closure", () => { +test("all observers of a free variable share the same reference", () => { let i = 0; - const closure = serializeClosure(() => { + + function up() { i += 1; + } + + function down() { + i -= 1; + } + + const closure = serializeClosure(() => { + up(); + down(); return i; }); - expect(closure).toEqual(`const v0 = () => { 0 += 1; return 0; }; + expect(closure).toEqual(`var v3 = 0; +const v2 = function up() { v3 += 1; }; +var v1 = v2; +const v5 = function down() { v3 -= 1; }; +var v4 = v5; +const v0 = () => { v1(); v4(); return v3; }; +exports.handler = v0; +`); +}); + +test("serialize an imported module", () => { + const closure = serializeClosure(isNode); + + expect(closure) + .toEqual(`const v0 = function isNode(a) { return typeof a?.kind === \"number\"; }; exports.handler = v0; `); }); diff --git a/tsconfig.dev.json b/tsconfig.dev.json index dbe9b4b1..b88eec20 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -36,7 +36,9 @@ "include": [ ".projenrc.js", "src/**/*.ts", - "test/**/*.ts" + "test/**/*.ts", + ".projenrc.ts", + "projenrc/**/*.ts" ], "exclude": [ "node_modules" From eed69a47704d870698e38f60f67e674f6b6db439 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 15:35:58 -0700 Subject: [PATCH 052/107] feat: update ClassExpr and ClassDecl name tobe an Identifier --- src/declaration.ts | 4 ++-- src/expression.ts | 4 ++-- src/serialize-closure.ts | 3 +-- test/serialize-closure.test.ts | 20 ++++++++++++++++++++ 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/declaration.ts b/src/declaration.ts index 7a6e3071..af07ba3f 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -47,7 +47,7 @@ export class ClassDecl extends BaseDecl< * Range of text in the source file where this Node resides. */ span: Span, - readonly name: string, + readonly name: Identifier, readonly heritage: Expr | undefined, readonly members: ClassMember[], /** @@ -58,7 +58,7 @@ export class ClassDecl extends BaseDecl< readonly filename?: string ) { super(NodeKind.ClassDecl, span, arguments); - this.ensure(name, "name", ["string"]); + this.ensure(name, "name", [NodeKind.Identifier]); this.ensureArrayOf(members, "members", NodeKind.ClassMember); this.ensure(filename, "filename", ["undefined", "string"]); } diff --git a/src/expression.ts b/src/expression.ts index 2d87a78a..98999e07 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -169,7 +169,7 @@ export class ClassExpr extends BaseExpr< * Range of text in the source file where this Node resides. */ span: Span, - readonly name: string | undefined, + readonly name: Identifier | undefined, readonly heritage: Expr | undefined, readonly members: ClassMember[], /** @@ -180,7 +180,7 @@ export class ClassExpr extends BaseExpr< readonly filename?: string ) { super(NodeKind.ClassExpr, span, arguments); - this.ensure(name, "name", ["undefined", "string"]); + this.ensure(name, "name", ["undefined", NodeKind.Identifier]); this.ensure(heritage, "heritage", ["undefined", "Expr"]); this.ensureArrayOf(members, "members", NodeKind.ClassMember); this.ensure(filename, "filename", ["undefined", "string"]); diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index ff075587..3b2b21e2 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -303,7 +303,6 @@ export function serializeClosure(func: AnyFunction): string { // emit a unique variable with the current value emitVarDecl("var", varName, value); } - return varId; } else if (isArrowFunctionExpr(node)) { return ts.factory.createArrowFunction( @@ -509,7 +508,7 @@ export function serializeClosure(func: AnyFunction): string { )( undefined, undefined, - node.name, + node.name?.name, undefined, node.heritage ? [toTS(node.heritage) as ts.HeritageClause] : undefined, node.members.map((member) => toTS(member) as ts.ClassElement) diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index c70ad629..524b2b4d 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -38,3 +38,23 @@ test("serialize an imported module", () => { exports.handler = v0; `); }); + +test("serialize a class declaration", () => { + let i = 0; + class Foo { + public method() { + i++; + return i; + } + } + + const closure = serializeClosure(() => { + const foo = new Foo(); + + foo.method(); + foo.method(); + return i; + }); + + expect(closure).toEqual(""); +}); From d6424ded2eaa649ad247a5c8fb16a85eee93ec00 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 15:58:57 -0700 Subject: [PATCH 053/107] feat: support serializing classes --- src/declaration.ts | 1 + src/guards.ts | 2 ++ src/node.ts | 3 ++- src/serialize-closure.ts | 4 ++-- test/serialize-closure.test.ts | 9 ++++++++- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/declaration.ts b/src/declaration.ts index af07ba3f..1391ccc6 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -59,6 +59,7 @@ export class ClassDecl extends BaseDecl< ) { super(NodeKind.ClassDecl, span, arguments); this.ensure(name, "name", [NodeKind.Identifier]); + this.ensure(heritage, "name", ["undefined", NodeKind.Identifier]); this.ensureArrayOf(members, "members", NodeKind.ClassMember); this.ensure(filename, "filename", ["undefined", "string"]); } diff --git a/src/guards.ts b/src/guards.ts index bd64cea5..20327eef 100644 --- a/src/guards.ts +++ b/src/guards.ts @@ -128,6 +128,8 @@ export const isFunctionLike = typeGuard( NodeKind.ArrowFunctionExpr ); +export const isClassLike = typeGuard(NodeKind.ClassDecl, NodeKind.ClassExpr); + export const isClassDecl = typeGuard(NodeKind.ClassDecl); export const isClassStaticBlockDecl = typeGuard(NodeKind.ClassStaticBlockDecl); export const isConstructorDecl = typeGuard(NodeKind.ConstructorDecl); diff --git a/src/node.ts b/src/node.ts index b835eea8..6077c120 100644 --- a/src/node.ts +++ b/src/node.ts @@ -28,6 +28,7 @@ import { isBindingPattern, isBlockStmt, isCatchClause, + isClassLike, isDoStmt, isForInStmt, isForOfStmt, @@ -145,7 +146,7 @@ export abstract class BaseNode< * @returns the name of the file this node originates from. */ public getFileName(): string { - if (isFunctionLike(this) && this.filename) { + if ((isFunctionLike(this) || isClassLike(this)) && this.filename) { return this.filename; } else if (this.parent === undefined) { throw new Error(`cannot get filename of orphaned node`); diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 3b2b21e2..2b418f45 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -266,7 +266,7 @@ export function serializeClosure(func: AnyFunction): string { uniqueName(), prop(moduleName, mod.exportName) ); - } else if (isFunctionLike(ast)) { + } else if (isFunctionLike(ast) || isClassDecl(ast) || isClassExpr(ast)) { return emitVarDecl("const", uniqueName(), toTS(ast) as ts.Expression); } else if (isErr(ast)) { throw ast.error; @@ -502,7 +502,7 @@ export function serializeClosure(func: AnyFunction): string { ); } else if (isClassDecl(node) || isClassExpr(node)) { return ( - isClassDecl(node) + isClassDecl(node) && node.parent !== undefined // if this is the root ClassDecl, it must be a ts.ClassExpression to be assigned to a variable ? ts.factory.createClassDeclaration : ts.factory.createClassExpression )( diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 524b2b4d..8502f985 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -56,5 +56,12 @@ test("serialize a class declaration", () => { return i; }); - expect(closure).toEqual(""); + expect(closure).toEqual(`var v3 = 0; +const v2 = class Foo { + method() { v3++; return v3; } +}; +var v1 = v2; +const v0 = () => { const foo = v1(); foo.method(); foo.method(); return v3; }; +exports.handler = v0; +`); }); From 6f512fd5488c4a0bbc72db02a234877259b444fd Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 16:12:33 -0700 Subject: [PATCH 054/107] chore: set up snapshot and runtime tests for serialize-closure.test.ts --- src/serialize-closure.ts | 2 +- .../serialize-closure.test.ts.snap | 40 ++++++++ test/serialize-closure.test.ts | 92 +++++++++++++------ 3 files changed, 107 insertions(+), 27 deletions(-) create mode 100644 test/__snapshots__/serialize-closure.test.ts.snap diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 2b418f45..fe384d89 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -414,7 +414,7 @@ export function serializeClosure(func: AnyFunction): string { node.args.map((arg) => toTS(arg) as ts.Expression) ); } else if (isNewExpr(node)) { - return ts.factory.createCallExpression( + return ts.factory.createNewExpression( toTS(node.expr) as ts.Expression, undefined, node.args.map((arg) => toTS(arg) as ts.Expression) diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap new file mode 100644 index 00000000..b5e1875f --- /dev/null +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -0,0 +1,40 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`all observers of a free variable share the same reference 1`] = ` +"var v3 = 0; +const v2 = function up() { v3 += 1; }; +var v1 = v2; +const v5 = function down() { v3 -= 1; }; +var v4 = v5; +const v0 = () => { v1(); v4(); return v3; }; +exports.handler = v0; +" +`; + +exports[`serialize a class declaration 1`] = ` +"var v3 = 0; +const v2 = class Foo { + method() { v3++; return v3; } +}; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v3; }; +exports.handler = v0; +" +`; + +exports[`serialize a class declaration with constructor 1`] = ` +"var v3 = 0; +const v2 = class Foo { + method() { v3++; return v3; } +}; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v3; }; +exports.handler = v0; +" +`; + +exports[`serialize an imported module 1`] = ` +"const v0 = function isNode(a) { return typeof a?.kind === \\"number\\"; }; +exports.handler = v0; +" +`; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 8502f985..f60496ea 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1,9 +1,46 @@ import "jest"; +import fs from "fs"; +import path from "path"; +import { v4 } from "uuid"; +import { AnyFunction } from "../src"; import { isNode } from "../src/guards"; import { serializeClosure } from "../src/serialize-closure"; -test("all observers of a free variable share the same reference", () => { +const tmpDir = path.join(__dirname, ".test"); +beforeAll(async () => { + await fs.promises.mkdir(tmpDir); +}); + +const cleanup = true; + +afterAll(async () => { + if (cleanup) { + await rmrf(tmpDir); + } +}); +async function rmrf(file: string) { + const stat = await fs.promises.stat(file); + if (stat.isDirectory()) { + await Promise.all( + (await fs.promises.readdir(file)).map((f) => rmrf(path.join(file, f))) + ); + await fs.promises.rmdir(file); + } else { + await fs.promises.rm(file); + } +} + +async function expectClosure(f: F): Promise { + const closure = serializeClosure(f); + expect(closure).toMatchSnapshot(); + const jsFile = path.join(tmpDir, `${v4()}.js`); + await fs.promises.writeFile(jsFile, closure); + // eslint-disable-next-line @typescript-eslint/no-require-imports + return require(jsFile).handler as F; +} + +test("all observers of a free variable share the same reference", async () => { let i = 0; function up() { @@ -14,32 +51,42 @@ test("all observers of a free variable share the same reference", () => { i -= 1; } - const closure = serializeClosure(() => { + const closure = await expectClosure(() => { up(); down(); return i; }); - expect(closure).toEqual(`var v3 = 0; -const v2 = function up() { v3 += 1; }; -var v1 = v2; -const v5 = function down() { v3 -= 1; }; -var v4 = v5; -const v0 = () => { v1(); v4(); return v3; }; -exports.handler = v0; -`); + expect(closure()).toEqual(0); +}); + +test("serialize an imported module", async () => { + const closure = await expectClosure(isNode); + + expect(closure({ kind: 1 })).toEqual(true); }); -test("serialize an imported module", () => { - const closure = serializeClosure(isNode); +test("serialize a class declaration", async () => { + let i = 0; + class Foo { + public method() { + i++; + return i; + } + } + + const closure = await expectClosure(() => { + const foo = new Foo(); + + foo.method(); + foo.method(); + return i; + }); - expect(closure) - .toEqual(`const v0 = function isNode(a) { return typeof a?.kind === \"number\"; }; -exports.handler = v0; -`); + expect(closure()).toEqual(2); }); -test("serialize a class declaration", () => { +test("serialize a class declaration with constructor", async () => { let i = 0; class Foo { public method() { @@ -48,7 +95,7 @@ test("serialize a class declaration", () => { } } - const closure = serializeClosure(() => { + const closure = await expectClosure(() => { const foo = new Foo(); foo.method(); @@ -56,12 +103,5 @@ test("serialize a class declaration", () => { return i; }); - expect(closure).toEqual(`var v3 = 0; -const v2 = class Foo { - method() { v3++; return v3; } -}; -var v1 = v2; -const v0 = () => { const foo = v1(); foo.method(); foo.method(); return v3; }; -exports.handler = v0; -`); + expect(closure()).toEqual(2); }); From 916d174241e73769c4b7bcbb6eaee1d23b113e13 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 17:37:15 -0700 Subject: [PATCH 055/107] feat: support monkey-patching functions on the prototype --- src/declaration.ts | 187 +++++++++++++++++- src/reflect.ts | 4 +- src/serialize-closure.ts | 66 ++++++- .../serialize-closure.test.ts.snap | 33 +++- test/serialize-closure.test.ts | 38 +++- 5 files changed, 307 insertions(+), 21 deletions(-) diff --git a/src/declaration.ts b/src/declaration.ts index 1391ccc6..24158770 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -7,6 +7,7 @@ import { ObjectLiteralExpr, OmittedExpr, PropName, + ReferenceExpr, } from "./expression"; import { Integration } from "./integration"; import { BaseNode, FunctionlessNode } from "./node"; @@ -102,19 +103,36 @@ export class ConstructorDecl extends BaseDecl { * * Only set on the root of the tree, i.e. when `this` is `undefined`. */ - readonly filename?: string + readonly filename: string | undefined, + /** + * The class or object that owns this {@link ConstructorDecl}. + * + * This value is only set if this {@link ConstructorDecl} is the root node in the tree (parent === undefined). + * + * ```ts + * class Foo { + * // ^ + * constructor() {} + * } + * ``` + */ + readonly ownedBy: ReferenceExpr | undefined ) { super(NodeKind.ConstructorDecl, span, arguments); this.ensureArrayOf(parameters, "parameters", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); this.ensure(filename, "filename", ["undefined", "string"]); + this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); } } -export class MethodDecl extends BaseDecl< +export class MethodDecl extends BaseDecl< NodeKind.MethodDecl, ClassDecl | ClassExpr | undefined > { + // @ts-ignore + __methodBrand: F; + constructor( /** * Range of text in the source file where this Node resides. @@ -153,7 +171,34 @@ export class MethodDecl extends BaseDecl< * * Only set on the root of the tree, i.e. when `this` is `undefined`. */ - readonly filename?: string + readonly filename: string | undefined, + /** + * `true` if this is a static setter on a class. + * + * ```ts + * class Foo { + * static method() { + * return value; + * } + * } + * ``` + */ + readonly isStatic: boolean | undefined, + /** + * The class or object that owns this {@link MethodDecl}. + * + * This value is only set if this {@link MethodDecl} is the root node in the tree (parent === undefined). + * + * ```ts + * class Foo { + * // ^ + * static method() { + * return value; + * } + * } + * ``` + */ + readonly ownedBy: ReferenceExpr | undefined ) { super(NodeKind.MethodDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); @@ -162,23 +207,71 @@ export class MethodDecl extends BaseDecl< this.ensure(isAsync, "isAsync", ["boolean"]); this.ensure(isAsterisk, "isAsterisk", ["boolean"]); this.ensure(filename, "filename", ["undefined", "string"]); + this.ensure(isStatic, "isStatic", ["undefined", "boolean"]); + this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); } } -export class PropDecl extends BaseDecl { +export class PropDecl extends BaseDecl< + NodeKind.PropDecl, + ClassDecl | ClassExpr +> { constructor( /** * Range of text in the source file where this Node resides. */ span: Span, + /** + * Name of the {@link PropDecl}. + * + * ```ts + * class Foo { + * prop; + * // ^ + * } + * ``` + */ readonly name: PropName, + /** + * `true` if this is a static setter on a class. + * + * ```ts + * class Foo { + * static prop: string = ? + * } + * ``` + */ readonly isStatic: boolean, - readonly initializer?: Expr + /** + * An optional initializer for the property. + * + * ```ts + * class Foo { + * prop = + * // ^ + * } + * ``` + */ + readonly initializer: Expr | undefined, + /** + * A reference to the {@link ClassDecl} or {@link ClassExpr} instance that owns this {@link PropDecl} + * + * This value is only set if this {@link PropDecl} is the root node in the tree (parent === undefined). + * + * ```ts + * class Foo { + * // ^ + * static prop: string = ? + * } + * ``` + */ + readonly ownedBy: ReferenceExpr | undefined ) { super(NodeKind.PropDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensure(isStatic, "isStatic", ["boolean"]); this.ensure(initializer, "initializer", ["undefined", "Expr"]); + this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); } } @@ -192,11 +285,46 @@ export class GetAccessorDecl extends BaseDecl< */ span: Span, readonly name: PropName, - readonly body: BlockStmt + readonly body: BlockStmt, + /** + * `true` if this is a static getter on a class. + * + * ```ts + * class Foo { + * static get getter() { + * return value; + * } + * } + * ``` + */ + readonly isStatic: boolean | undefined, + /** + * The class or object that owns this {@link GetAccessorDecl}. This value is only set + * if this {@link GetAccessorDecl} is the root node in the tree (parent === undefined). + * + * ```ts + * const object = { + * // ^ + * get getter() { + * return value; + * } + * } + * + * class Foo { + * // ^ + * get getter() { + * return value; + * } + * } + * ``` + */ + readonly ownedBy: ReferenceExpr | undefined ) { super(NodeKind.GetAccessorDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensure(body, "body", [NodeKind.BlockStmt]); + this.ensure(isStatic, "isStatic", ["undefined", "boolean"]); + this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); } } export class SetAccessorDecl extends BaseDecl< @@ -209,13 +337,58 @@ export class SetAccessorDecl extends BaseDecl< */ span: Span, readonly name: PropName, + /** + * ```ts + * class Foo { + * static get setter(value) { + * // ^ + * _value = value; + * } + * } + * ``` + */ readonly parameter: ParameterDecl, - readonly body: BlockStmt + readonly body: BlockStmt, + /** + * `true` if this is a static setter on a class. + * + * ```ts + * class Foo { + * static get setter(value) { + * _value = value; + * } + * } + * ``` + */ + readonly isStatic: boolean | undefined, + /** + * The class or object that owns this {@link SetAccessorDecl}. This value is only set + * if this {@link SetAccessorDecl} is the root node in the tree (parent === undefined). + * + * ```ts + * const object = { + * // ^ + * get setter(value) { + * _value = value; + * } + * } + * + * class Foo { + * // ^ + * get setter(value) { + * _value = value; + * } + * } + * ``` + */ + readonly ownedBy: ReferenceExpr | undefined ) { super(NodeKind.SetAccessorDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); this.ensure(parameter, "parameter", [NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); + this.ensure(isStatic, "isStatic", ["undefined", "boolean"]); + this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); } } diff --git a/src/reflect.ts b/src/reflect.ts index d7a47756..65a50e66 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -1,4 +1,4 @@ -import { FunctionLike } from "./declaration"; +import { FunctionLike, MethodDecl } from "./declaration"; import { Err } from "./error"; import { ErrorCodes, SynthError } from "./error-code"; import { isFunctionLike, isErr, isNewExpr } from "./guards"; @@ -36,7 +36,7 @@ import { forEachChild } from "./visit"; */ export function reflect( func: F -): FunctionLike | Err | undefined { +): FunctionLike | MethodDecl | Err | undefined { if (func.name.startsWith("bound ")) { // native bound function const targetFunc = (func)[ReflectionSymbols.TargetFunction]; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index fe384d89..e09bc082 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,6 +1,7 @@ import ts from "typescript"; import { assertNever } from "./assert"; -import { VariableDeclKind } from "./declaration"; +import { ClassDecl, VariableDeclKind } from "./declaration"; +import { ClassExpr } from "./expression"; import { isArgument, isArrayBinding, @@ -88,7 +89,7 @@ import { } from "./guards"; import { FunctionlessNode } from "./node"; import { reflect } from "./reflect"; -import { AnyFunction } from "./util"; +import { AnyClass, AnyFunction } from "./util"; export function serializeClosure(func: AnyFunction): string { const requireCache = new Map( @@ -266,8 +267,10 @@ export function serializeClosure(func: AnyFunction): string { uniqueName(), prop(moduleName, mod.exportName) ); - } else if (isFunctionLike(ast) || isClassDecl(ast) || isClassExpr(ast)) { + } else if (isFunctionLike(ast)) { return emitVarDecl("const", uniqueName(), toTS(ast) as ts.Expression); + } else if (isClassDecl(ast) || isClassExpr(ast)) { + return emitVarDecl("const", uniqueName(), serializeClass(value, ast)); } else if (isErr(ast)) { throw ast.error; } @@ -276,6 +279,63 @@ export function serializeClosure(func: AnyFunction): string { throw new Error("not implemented"); } + function serializeClass( + classVal: AnyClass, + classAST: ClassExpr | ClassDecl + ): ts.Expression { + // emit the class to the closure + const classDecl = emitVarDecl( + "const", + uniqueName(), + toTS(classAST) as ts.Expression + ); + + monkeyPatch(classDecl, classVal, classVal); + monkeyPatch(prop(classDecl, "prototype"), classVal.prototype, classVal, [ + "constructor", + ]); + + return classDecl; + } + + function monkeyPatch( + varName: ts.Expression, + varValue: any, + ownedBy: any, + exclude: string[] = [] + ) { + // discover any properties that have been monkey-patched and overwrite them + for (const [propName, propDescriptor] of Object.entries( + Object.getOwnPropertyDescriptors(varValue) + ).filter(([propName]) => !exclude.includes(propName))) { + if (propDescriptor.get || propDescriptor.set) { + // getter or setter + } else if (typeof propDescriptor.value === "function") { + // method + const method = propDescriptor.value; + const methodAST = reflect(method); + if (methodAST === undefined) { + throw new Error(`method ${method.toString()} cannot be reflected`); + } + if (isMethodDecl(methodAST)) { + if (methodAST.ownedBy!.ref() !== ownedBy) { + // this is a monkey-patched method, overwrite the value + emit(expr(assign(prop(varName, propName), serialize(method)))); + } else { + // this is the same method as declared in the class, so do nothing + } + } else if (isFunctionLike(methodAST)) { + // a method that has been patched with a function decl/expr or arrow expr. + emit(expr(assign(prop(varName, propName), serialize(method)))); + } else { + throw new Error( + `Cannot monkey-patch a method with a ${methodAST.kindName}` + ); + } + } + } + } + function toTS(node: FunctionlessNode): ts.Node { const tsNode = _toTS(node); ts.setSourceMapRange(tsNode, { diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index b5e1875f..17d81043 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -12,23 +12,40 @@ exports.handler = v0; `; exports[`serialize a class declaration 1`] = ` -"var v3 = 0; -const v2 = class Foo { - method() { v3++; return v3; } +"var v4 = 0; +const v3 = class Foo { + method() { v4++; return v4; } }; +const v2 = v3; var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v3; }; +const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v4; }; exports.handler = v0; " `; exports[`serialize a class declaration with constructor 1`] = ` -"var v3 = 0; -const v2 = class Foo { - method() { v3++; return v3; } +"var v4 = 0; +const v3 = class Foo { + constructor() { v4 += 1; } + method() { v4++; return v4; } +}; +const v2 = v3; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v4; }; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class method 1`] = ` +"var v4 = 0; +const v3 = class Foo { + method() { v4 += 1; } }; +const v5 = function () { v4 += 2; }; +v3.prototype.method = v5; +const v2 = v3; var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v3; }; +const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v4; }; exports.handler = v0; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index f60496ea..bb97215b 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -9,6 +9,15 @@ import { serializeClosure } from "../src/serialize-closure"; const tmpDir = path.join(__dirname, ".test"); beforeAll(async () => { + let exists = true; + try { + await fs.promises.access(tmpDir); + } catch { + exists = false; + } + if (exists) { + await rmrf(tmpDir); + } await fs.promises.mkdir(tmpDir); }); @@ -89,6 +98,10 @@ test("serialize a class declaration", async () => { test("serialize a class declaration with constructor", async () => { let i = 0; class Foo { + constructor() { + i += 1; + } + public method() { i++; return i; @@ -103,5 +116,28 @@ test("serialize a class declaration with constructor", async () => { return i; }); - expect(closure()).toEqual(2); + expect(closure()).toEqual(3); +}); + +test("serialize a monkey-patched class method", async () => { + let i = 0; + class Foo { + public method() { + i += 1; + } + } + + Foo.prototype.method = function () { + i += 2; + }; + + const closure = await expectClosure(() => { + const foo = new Foo(); + + foo.method(); + foo.method(); + return i; + }); + + expect(closure()).toEqual(4); }); From 3e27d7df09394ce101da3ec738ee697ae8040a91 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 19:03:36 -0700 Subject: [PATCH 056/107] feat: add support for monkey-patched methods, getters and setters. --- src/declaration.ts | 16 ++- src/node.ts | 6 +- src/reflect.ts | 15 ++- src/serialize-closure.ts | 119 +++++++++++++++++- .../serialize-closure.test.ts.snap | 44 +++++++ test/serialize-closure.test.ts | 81 ++++++++++++ 6 files changed, 269 insertions(+), 12 deletions(-) diff --git a/src/declaration.ts b/src/declaration.ts index 24158770..caeff4e0 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -275,10 +275,13 @@ export class PropDecl extends BaseDecl< } } -export class GetAccessorDecl extends BaseDecl< +export class GetAccessorDecl any = () => any> extends BaseDecl< NodeKind.GetAccessorDecl, ClassDecl | ClassExpr | ObjectLiteralExpr > { + // @ts-ignore + __getterBrand: F; + constructor( /** * Range of text in the source file where this Node resides. @@ -327,10 +330,15 @@ export class GetAccessorDecl extends BaseDecl< this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); } } -export class SetAccessorDecl extends BaseDecl< +export class SetAccessorDecl< + F extends (val: any) => typeof val = (val: any) => typeof val +> extends BaseDecl< NodeKind.SetAccessorDecl, ClassDecl | ClassExpr | ObjectLiteralExpr > { + // @ts-ignore + __setterBrand: F; + constructor( /** * Range of text in the source file where this Node resides. @@ -347,7 +355,7 @@ export class SetAccessorDecl extends BaseDecl< * } * ``` */ - readonly parameter: ParameterDecl, + readonly parameter: ParameterDecl | undefined, readonly body: BlockStmt, /** * `true` if this is a static setter on a class. @@ -385,7 +393,7 @@ export class SetAccessorDecl extends BaseDecl< ) { super(NodeKind.SetAccessorDecl, span, arguments); this.ensure(name, "name", NodeKind.PropName); - this.ensure(parameter, "parameter", [NodeKind.ParameterDecl]); + this.ensure(parameter, "parameter", ["undefined", NodeKind.ParameterDecl]); this.ensure(body, "body", [NodeKind.BlockStmt]); this.ensure(isStatic, "isStatic", ["undefined", "boolean"]); this.ensure(ownedBy, "ownedBy", ["undefined", NodeKind.ReferenceExpr]); diff --git a/src/node.ts b/src/node.ts index 6077c120..d4eca373 100644 --- a/src/node.ts +++ b/src/node.ts @@ -36,6 +36,7 @@ import { isFunctionLike, isIdentifier, isIfStmt, + isMethodDecl, isNode, isParameterDecl, isReturnStmt, @@ -146,7 +147,10 @@ export abstract class BaseNode< * @returns the name of the file this node originates from. */ public getFileName(): string { - if ((isFunctionLike(this) || isClassLike(this)) && this.filename) { + if ( + (isFunctionLike(this) || isClassLike(this) || isMethodDecl(this)) && + this.filename + ) { return this.filename; } else if (this.parent === undefined) { throw new Error(`cannot get filename of orphaned node`); diff --git a/src/reflect.ts b/src/reflect.ts index 65a50e66..6fedc139 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -1,4 +1,9 @@ -import { FunctionLike, MethodDecl } from "./declaration"; +import { + FunctionLike, + GetAccessorDecl, + MethodDecl, + SetAccessorDecl, +} from "./declaration"; import { Err } from "./error"; import { ErrorCodes, SynthError } from "./error-code"; import { isFunctionLike, isErr, isNewExpr } from "./guards"; @@ -36,7 +41,13 @@ import { forEachChild } from "./visit"; */ export function reflect( func: F -): FunctionLike | MethodDecl | Err | undefined { +): + | FunctionLike + | MethodDecl + | GetAccessorDecl + | SetAccessorDecl + | Err + | undefined { if (func.name.startsWith("bound ")) { // native bound function const targetFunc = (func)[ReflectionSymbols.TargetFunction]; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index e09bc082..59eddc39 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,6 +1,6 @@ import ts from "typescript"; import { assertNever } from "./assert"; -import { ClassDecl, VariableDeclKind } from "./declaration"; +import { ClassDecl, MethodDecl, VariableDeclKind } from "./declaration"; import { ClassExpr } from "./expression"; import { isArgument, @@ -271,9 +271,16 @@ export function serializeClosure(func: AnyFunction): string { return emitVarDecl("const", uniqueName(), toTS(ast) as ts.Expression); } else if (isClassDecl(ast) || isClassExpr(ast)) { return emitVarDecl("const", uniqueName(), serializeClass(value, ast)); + } else if (isMethodDecl(ast)) { + return emitVarDecl( + "const", + uniqueName(), + serializeMethodAsFunction(ast) + ); } else if (isErr(ast)) { throw ast.error; } + throw new Error("not implemented"); } throw new Error("not implemented"); @@ -290,7 +297,7 @@ export function serializeClosure(func: AnyFunction): string { toTS(classAST) as ts.Expression ); - monkeyPatch(classDecl, classVal, classVal); + monkeyPatch(classDecl, classVal, classVal, ["prototype"]); monkeyPatch(prop(classDecl, "prototype"), classVal.prototype, classVal, [ "constructor", ]); @@ -298,10 +305,27 @@ export function serializeClosure(func: AnyFunction): string { return classDecl; } + /** + * Detect properties that have been patched on the original class and + * emit statements to re-apply the patched values. + */ function monkeyPatch( + /** + * A ts.Expression pointing to the value within the closure that contains the + * patched properties. + */ varName: ts.Expression, + /** + * The value being serialized. + */ varValue: any, - ownedBy: any, + /** + * The class that "owns" this value. + */ + ownedBy: AnyClass, + /** + * A list of names that should not be considered, such as `prototype` or `constructor`. + */ exclude: string[] = [] ) { // discover any properties that have been monkey-patched and overwrite them @@ -309,7 +333,57 @@ export function serializeClosure(func: AnyFunction): string { Object.getOwnPropertyDescriptors(varValue) ).filter(([propName]) => !exclude.includes(propName))) { if (propDescriptor.get || propDescriptor.set) { - // getter or setter + let get: ts.Expression | undefined; + let set: ts.Expression | undefined; + if (propDescriptor.get) { + const getAST = reflect(propDescriptor.get); + if (getAST === undefined) { + throw new Error(`getter was not compiled with functionless`); + } + if (isGetAccessorDecl(getAST)) { + if (getAST.ownedBy!.ref() !== ownedBy) { + // a monkey-patched getter + get = serialize(propDescriptor.get); + } + } else if (isFunctionLike(getAST) || isMethodDecl(getAST)) { + get = serialize(propDescriptor.get); + } + } + if (propDescriptor.set) { + const setAST = reflect(propDescriptor.set); + if (setAST === undefined) { + throw new Error(`setter was not compiled with functionless`); + } + if (isSetAccessorDecl(setAST)) { + if (setAST.ownedBy!.ref() !== ownedBy) { + // a monkey-patched setter + set = serialize(propDescriptor.set); + } + } else if (isFunctionLike(setAST) || isMethodDecl(setAST)) { + set = serialize(propDescriptor.set); + } + } + + if (get || set) { + emit( + expr( + call(prop(id("Object"), "defineProperty"), [ + varName, + string(propName), + object( + get && set + ? { + get, + set, + } + : get + ? { get } + : { set: set! } + ), + ]) + ) + ); + } } else if (typeof propDescriptor.value === "function") { // method const method = propDescriptor.value; @@ -336,6 +410,30 @@ export function serializeClosure(func: AnyFunction): string { } } + /** + * Serialize a {@link MethodDecl} as a {@link ts.FunctionExpression} so that it can be individually referenced. + */ + function serializeMethodAsFunction( + method: MethodDecl + ): ts.FunctionExpression { + return ts.factory.createFunctionExpression( + method.isAsync + ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] + : undefined, + method.isAsterisk + ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) + : undefined, + toTS(method.name) as ts.Identifier, + undefined, + method.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), + undefined, + toTS(method.body) as ts.Block + ); + } + + /** + * Convert a {@link FunctionlessNode} into its TypeScript counter-part and set the Source Map Range. + */ function toTS(node: FunctionlessNode): ts.Node { const tsNode = _toTS(node); ts.setSourceMapRange(tsNode, { @@ -346,6 +444,9 @@ export function serializeClosure(func: AnyFunction): string { return tsNode; } + /** + * Convert a {@link FunctionlessNode} into its TypeScript counter-part. + */ function _toTS(node: FunctionlessNode): ts.Node { if (isReferenceExpr(node)) { // a key that uniquely identifies the variable pointed to by this reference @@ -627,7 +728,7 @@ export function serializeClosure(func: AnyFunction): string { undefined, undefined, toTS(node.name) as ts.PropertyName, - [toTS(node.parameter) as ts.ParameterDeclaration], + node.parameter ? [toTS(node.parameter) as ts.ParameterDeclaration] : [], toTS(node.body) as ts.Block ); } else if (isExprStmt(node)) { @@ -953,6 +1054,14 @@ function num(num: number) { return ts.factory.createNumericLiteral(num); } +function object(obj: Record) { + return ts.factory.createObjectLiteralExpression( + Object.entries(obj).map(([name, val]) => + ts.factory.createPropertyAssignment(name, val) + ) + ); +} + function prop(expr: ts.Expression, name: string) { return ts.factory.createPropertyAccessExpression(expr, name); } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 17d81043..691bc386 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -36,6 +36,36 @@ exports.handler = v0; " `; +exports[`serialize a monkey-patched class getter 1`] = ` +"var v4 = 0; +const v3 = class Foo { + get method() { return (v4 += 1); } +}; +const v5 = function get() { return (v4 += 2); }; +Object.defineProperty(v3.prototype, \\"method\\", { get: v5 }); +const v2 = v3; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method; foo.method; return v4; }; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter and setter 1`] = ` +"var v4 = 0; +const v3 = class Foo { + set method(val) { v4 += val; } + get method() { return v4; } +}; +const v5 = function get() { return v4 + 1; }; +const v6 = function set(val) { v4 += val + 1; }; +Object.defineProperty(v3.prototype, \\"method\\", { get: v5, set: v6 }); +const v2 = v3; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return foo.method; }; +exports.handler = v0; +" +`; + exports[`serialize a monkey-patched class method 1`] = ` "var v4 = 0; const v3 = class Foo { @@ -50,6 +80,20 @@ exports.handler = v0; " `; +exports[`serialize a monkey-patched class setter 1`] = ` +"var v4 = 0; +const v3 = class Foo { + set method(val) { v4 += val; } +}; +const v5 = function set(val) { v4 += val + 1; }; +Object.defineProperty(v3.prototype, \\"method\\", { set: v5 }); +const v2 = v3; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return v4; }; +exports.handler = v0; +" +`; + exports[`serialize an imported module 1`] = ` "const v0 = function isNode(a) { return typeof a?.kind === \\"number\\"; }; exports.handler = v0; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index bb97215b..47f73497 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -141,3 +141,84 @@ test("serialize a monkey-patched class method", async () => { expect(closure()).toEqual(4); }); + +test("serialize a monkey-patched class getter", async () => { + let i = 0; + class Foo { + public get method() { + return (i += 1); + } + } + + Object.defineProperty(Foo.prototype, "method", { + get() { + return (i += 2); + }, + }); + + const closure = await expectClosure(() => { + const foo = new Foo(); + + foo.method; + foo.method; + return i; + }); + + expect(closure()).toEqual(4); // equals 2 if monkey patch not applied +}); + +test("serialize a monkey-patched class setter", async () => { + let i = 0; + class Foo { + public set method(val: number) { + i += val; + } + } + + Object.defineProperty(Foo.prototype, "method", { + set(val: number) { + i += val + 1; + }, + }); + + const closure = await expectClosure(() => { + const foo = new Foo(); + + foo.method = 1; + foo.method = 1; + return i; + }); + + expect(closure()).toEqual(4); // equals 2 if monkey patch not applied +}); + +test("serialize a monkey-patched class getter and setter", async () => { + let i = 0; + class Foo { + public set method(val: number) { + i += val; + } + public get method() { + return i; + } + } + + Object.defineProperty(Foo.prototype, "method", { + set(val: number) { + i += val + 1; + }, + get() { + return i + 1; + }, + }); + + const closure = await expectClosure(() => { + const foo = new Foo(); + + foo.method = 1; + foo.method = 1; + return foo.method; + }); + + expect(closure()).toEqual(5); // equals 2 if monkey patch not applied +}); From c5b0e91bea417680d98db0294f573fc58dad3051 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 19:12:45 -0700 Subject: [PATCH 057/107] feat: improved support for monkey-patching --- src/serialize-closure.ts | 5 ++ .../serialize-closure.test.ts.snap | 40 ++++++++++++ test/serialize-closure.test.ts | 61 ++++++++++++++++++- 3 files changed, 104 insertions(+), 2 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 59eddc39..dbc77a2b 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -406,6 +406,11 @@ export function serializeClosure(func: AnyFunction): string { `Cannot monkey-patch a method with a ${methodAST.kindName}` ); } + } else if (propDescriptor.writable) { + // this is a literal value, like an object, so let's serialize it and set + emit( + expr(assign(prop(varName, propName), serialize(propDescriptor.value))) + ); } } } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 691bc386..39edf0a3 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -94,6 +94,46 @@ exports.handler = v0; " `; +exports[`serialize a monkey-patched static class arrow function 1`] = ` +"var v4 = 0; +const v3 = class Foo { + static method = () => { v4 += 1; }; +}; +const v5 = function () { v4 += 2; }; +v3.method = v5; +const v2 = v3; +var v1 = v2; +const v0 = () => { v1.method(); v1.method(); return v4; }; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class method 1`] = ` +"var v4 = 0; +const v3 = class Foo { + method() { v4 += 1; } +}; +const v5 = function () { v4 += 2; }; +v3.method = v5; +const v2 = v3; +var v1 = v2; +const v0 = () => { v1.method(); v1.method(); return v4; }; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class property 1`] = ` +"const v3 = class Foo { + static prop = 1; +}; +v3.prop = 2; +const v2 = v3; +var v1 = v2; +const v0 = () => { return v1.prop; }; +exports.handler = v0; +" +`; + exports[`serialize an imported module 1`] = ` "const v0 = function isNode(a) { return typeof a?.kind === \\"number\\"; }; exports.handler = v0; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 47f73497..cdf62766 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -7,6 +7,9 @@ import { AnyFunction } from "../src"; import { isNode } from "../src/guards"; import { serializeClosure } from "../src/serialize-closure"; +// set to false to inspect generated js files in .test/ +const cleanup = true; + const tmpDir = path.join(__dirname, ".test"); beforeAll(async () => { let exists = true; @@ -21,8 +24,6 @@ beforeAll(async () => { await fs.promises.mkdir(tmpDir); }); -const cleanup = true; - afterAll(async () => { if (cleanup) { await rmrf(tmpDir); @@ -119,6 +120,62 @@ test("serialize a class declaration with constructor", async () => { expect(closure()).toEqual(3); }); +test("serialize a monkey-patched static class method", async () => { + let i = 0; + class Foo { + public static method() { + i += 1; + } + } + + Foo.method = function () { + i += 2; + }; + + const closure = await expectClosure(() => { + Foo.method(); + Foo.method(); + return i; + }); + + expect(closure()).toEqual(4); +}); + +test("serialize a monkey-patched static class arrow function", async () => { + let i = 0; + class Foo { + public static method = () => { + i += 1; + }; + } + + Foo.method = function () { + i += 2; + }; + + const closure = await expectClosure(() => { + Foo.method(); + Foo.method(); + return i; + }); + + expect(closure()).toEqual(4); +}); + +test("serialize a monkey-patched static class property", async () => { + class Foo { + public static prop = 1; + } + + Foo.prop = 2; + + const closure = await expectClosure(() => { + return Foo.prop; + }); + + expect(closure()).toEqual(2); +}); + test("serialize a monkey-patched class method", async () => { let i = 0; class Foo { From fd5bf1125ae5096fa49e53cef8730983a65481e5 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 21:15:34 -0700 Subject: [PATCH 058/107] feat: support monkey patching of getter/setter even when only one is changed --- src/serialize-closure.ts | 134 ++++++++++++------ .../serialize-closure.test.ts.snap | 15 ++ test/serialize-closure.test.ts | 29 ++++ 3 files changed, 136 insertions(+), 42 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index dbc77a2b..a8d1c7ae 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,6 +1,12 @@ import ts from "typescript"; import { assertNever } from "./assert"; -import { ClassDecl, MethodDecl, VariableDeclKind } from "./declaration"; +import { + ClassDecl, + GetAccessorDecl, + MethodDecl, + SetAccessorDecl, + VariableDeclKind, +} from "./declaration"; import { ClassExpr } from "./expression"; import { isArgument, @@ -297,6 +303,8 @@ export function serializeClosure(func: AnyFunction): string { toTS(classAST) as ts.Expression ); + valueIds.set(classVal, classDecl); + monkeyPatch(classDecl, classVal, classVal, ["prototype"]); monkeyPatch(prop(classDecl, "prototype"), classVal.prototype, classVal, [ "constructor", @@ -333,57 +341,87 @@ export function serializeClosure(func: AnyFunction): string { Object.getOwnPropertyDescriptors(varValue) ).filter(([propName]) => !exclude.includes(propName))) { if (propDescriptor.get || propDescriptor.set) { - let get: ts.Expression | undefined; - let set: ts.Expression | undefined; - if (propDescriptor.get) { - const getAST = reflect(propDescriptor.get); - if (getAST === undefined) { - throw new Error(`getter was not compiled with functionless`); - } - if (isGetAccessorDecl(getAST)) { - if (getAST.ownedBy!.ref() !== ownedBy) { - // a monkey-patched getter - get = serialize(propDescriptor.get); - } - } else if (isFunctionLike(getAST) || isMethodDecl(getAST)) { - get = serialize(propDescriptor.get); - } - } - if (propDescriptor.set) { - const setAST = reflect(propDescriptor.set); - if (setAST === undefined) { - throw new Error(`setter was not compiled with functionless`); - } - if (isSetAccessorDecl(setAST)) { - if (setAST.ownedBy!.ref() !== ownedBy) { - // a monkey-patched setter - set = serialize(propDescriptor.set); - } - } else if (isFunctionLike(setAST) || isMethodDecl(setAST)) { - set = serialize(propDescriptor.set); - } - } + const get = propAccessor("get", propDescriptor); + const set = propAccessor("set", propDescriptor); - if (get || set) { + if (get?.patched || set?.patched) { emit( expr( - call(prop(id("Object"), "defineProperty"), [ + defineProperty( varName, string(propName), - object( - get && set + object({ + ...(get ? { - get, - set, + get: get.patched ?? get.original, } - : get - ? { get } - : { set: set! } - ), - ]) + : {}), + ...(set + ? { + set: set.patched ?? set.original, + } + : {}), + }) + ) ) ); } + + type PatchedPropAccessor = + | { + patched: ts.Expression; + original?: never; + } + | { + patched?: never; + original: ts.Expression; + }; + + /** + * If this getter/setter has changed from the original declaration, then + * serialize its value and monkey-patch it back in. + */ + function propAccessor( + kind: "get" | "set", + propDescriptor: PropertyDescriptor + ): PatchedPropAccessor | undefined { + const getterOrSetter = propDescriptor[kind]; + if (getterOrSetter === undefined) { + return undefined; + } + const ast = reflect(getterOrSetter); + if (ast === undefined) { + throw new Error( + `${`${kind}ter`} was not compiled with functionless` + ); + } + if ( + (kind === "get" && isGetAccessorDecl(ast)) || + (kind === "set" && isSetAccessorDecl(ast)) + ) { + const owner = ( + ast as GetAccessorDecl | SetAccessorDecl + ).ownedBy!.ref(); + if (owner === ownedBy) { + return { + original: prop( + getOwnPropertyDescriptor(serialize(owner), string(propName)), + kind + ), + }; + } else { + // a monkey-patched getter/setter + return { + patched: serialize(getterOrSetter), + }; + } + } else if (isFunctionLike(ast) || isMethodDecl(ast)) { + return { + patched: serialize(getterOrSetter), + }; + } + return undefined; + } } else if (typeof propDescriptor.value === "function") { // method const method = propDescriptor.value; @@ -1086,3 +1124,15 @@ function call(expr: ts.Expression, args: ts.Expression[]) { function expr(expr: ts.Expression): ts.Statement { return ts.factory.createExpressionStatement(expr); } + +function defineProperty( + on: ts.Expression, + name: ts.Expression, + value: ts.Expression +) { + return call(prop(id("Object"), "defineProperty"), [on, name, value]); +} + +function getOwnPropertyDescriptor(obj: ts.Expression, key: ts.Expression) { + return call(prop(id("Object"), "getOwnPropertyDescriptor"), [obj, key]); +} diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 39edf0a3..f05d8db4 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -66,6 +66,21 @@ exports.handler = v0; " `; +exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` +"var v4 = 0; +const v3 = class Foo { + set method(val) { v4 += val; } + get method() { return v4; } +}; +const v5 = function get() { return v4 + 1; }; +Object.defineProperty(v3.prototype, \\"method\\", { get: v5, set: Object.getOwnPropertyDescriptor(v3, \\"method\\").set }); +const v2 = v3; +var v1 = v2; +const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return foo.method; }; +exports.handler = v0; +" +`; + exports[`serialize a monkey-patched class method 1`] = ` "var v4 = 0; const v3 = class Foo { diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index cdf62766..8056550c 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -279,3 +279,32 @@ test("serialize a monkey-patched class getter and setter", async () => { expect(closure()).toEqual(5); // equals 2 if monkey patch not applied }); + +test("serialize a monkey-patched class getter while setter remains unchanged", async () => { + let i = 0; + class Foo { + public set method(val: number) { + i += val; + } + public get method() { + return i; + } + } + + Object.defineProperty(Foo.prototype, "method", { + set: Object.getOwnPropertyDescriptor(Foo.prototype, "method")?.set!, + get() { + return i + 1; + }, + }); + + const closure = await expectClosure(() => { + const foo = new Foo(); + + foo.method = 1; + foo.method = 1; + return foo.method; + }); + + expect(closure()).toEqual(3); +}); From db9c29e2ecc62a05b67d15f7da96eb12669d3515 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 21:36:33 -0700 Subject: [PATCH 059/107] feat: support class hierarchies and super calls --- src/api.ts | 22 +++++++-- src/appsync.ts | 3 +- src/asl.ts | 49 ++++++++++++++++++- src/declaration.ts | 2 +- src/event-bridge/event-pattern/synth.ts | 12 ++++- src/event-bridge/utils.ts | 13 +++++ src/expression.ts | 4 +- src/serialize-closure.ts | 13 ++++- src/util.ts | 3 +- src/vtl.ts | 10 ++-- .../serialize-closure.test.ts.snap | 35 ++++++++++++- test/serialize-closure.test.ts | 47 ++++++++++++++++++ 12 files changed, 195 insertions(+), 18 deletions(-) diff --git a/src/api.ts b/src/api.ts index 6ea575d4..3c9b2667 100644 --- a/src/api.ts +++ b/src/api.ts @@ -38,6 +38,7 @@ import { isParenthesizedExpr, isSpreadAssignExpr, isFunctionLike, + isSuperKeyword, } from "./guards"; import { IntegrationImpl, tryFindIntegration } from "./integration"; import { validateFunctionLike } from "./reflect"; @@ -658,12 +659,18 @@ export class APIGatewayVTL extends VTL { } else if ( isPropAccessExpr(node) && isIdentifier(node.name) && - isInputBody(node.expr) && node.name.name === "data" ) { - // $input.data maps to `$input.path('$')` - // this returns a VTL object representing the root payload data - return `$input.path('$')`; + if (isSuperKeyword(node.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "API Gateway does not support `super`." + ); + } else if (isInputBody(node.expr)) { + // $input.data maps to `$input.path('$')` + // this returns a VTL object representing the root payload data + return `$input.path('$')`; + } } return super.eval(node as any, returnVar); } @@ -844,7 +851,12 @@ export class APIGatewayVTL extends VTL { // this is a reference to an intermediate value, cannot be expressed as JSON Path return undefined; } else if (isPropAccessExpr(expr)) { - if ( + if (isSuperKeyword(expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "API Gateway does not support `super`." + ); + } else if ( isIdentifier(expr.name) && expr.name.name === "data" && isInputBody(expr.expr) diff --git a/src/appsync.ts b/src/appsync.ts index 19fad41b..fb67a984 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -42,6 +42,7 @@ import { isThisExpr, isVariableDecl, isFunctionLike, + isSuperKeyword, } from "./guards"; import { findDeepIntegrations, @@ -683,7 +684,7 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { if (isCallExpr(expr)) { template.call(expr); return returnValName; - } else if (isPropAccessExpr(expr)) { + } else if (isPropAccessExpr(expr) && !isSuperKeyword(expr.expr)) { return `${getResult(expr.expr)}.${expr.name.name}`; } else if (isElementAccessExpr(expr)) { return `${getResult(expr.expr)}[${getResult(expr.element)}]`; diff --git a/src/asl.ts b/src/asl.ts index 5fd22a67..385cf387 100644 --- a/src/asl.ts +++ b/src/asl.ts @@ -20,6 +20,7 @@ import { Identifier, NullLiteralExpr, PropAccessExpr, + SuperKeyword, } from "./expression"; import { isArgument, @@ -1622,9 +1623,15 @@ export class ASL { * @returns the {@link ASLGraph.Output} generated by an expression or an {@link ASLGraph.OutputSubState} with additional states and outputs. */ private eval( - expr: Expr, + expr: Expr | SuperKeyword, allowUndefined: boolean = false ): ASLGraph.NodeResults { + if (isSuperKeyword(expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } // first check to see if the expression can be turned into a constant. const constant = evalToConstant(expr); if (constant !== undefined) { @@ -1858,6 +1865,12 @@ export class ASL { } return { jsonPath: `$.${this.getIdentifierName(expr)}` }; } else if (isPropAccessExpr(expr)) { + if (isSuperKeyword(expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } if (isIdentifier(expr.name)) { return this.evalExpr(expr.expr, (output) => { return this.accessConstant(output, expr.name.name, false); @@ -2543,6 +2556,7 @@ export class ASL { ): ASLGraph.NodeResults { const startArg = expr.args[0]?.expr; const endArg = expr.args[1]?.expr; + const value = this.eval(expr.expr.expr); const valueOutput = ASLGraph.getAslStateOutput(value); if (startArg === undefined && endArg === undefined) { @@ -2606,6 +2620,12 @@ export class ASL { expr: CallExpr & { expr: PropAccessExpr } ): ASLGraph.NodeResults { return this.evalContext(expr, (evalExpr) => { + if (isSuperKeyword(expr.expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } const separatorArg = expr.args[0]?.expr; const valueOutput = evalExpr(expr.expr.expr); const separatorOutput = separatorArg ? evalExpr(separatorArg) : undefined; @@ -2763,6 +2783,12 @@ export class ASL { `the 'predicate' argument of filter must be a function or arrow expression, found: ${predicate?.kindName}` ); } + if (isSuperKeyword(expr.expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } return this.evalExpr( expr.expr.expr, @@ -2894,6 +2920,12 @@ export class ASL { } } } else if (isPropAccessExpr(expr)) { + if (isSuperKeyword(expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } const value = toFilterCondition(expr.expr); return value ? `${value}.${expr.name.name}` : undefined; } else if (isElementAccessExpr(expr)) { @@ -3020,6 +3052,12 @@ export class ASL { `the 'callback' argument of map must be a function or arrow expression, found: ${callbackfn?.kindName}` ); } + if (isSuperKeyword(expr.expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } return this.evalExpr( expr.expr.expr, (listOutput, { normalizeOutputToJsonPath }) => { @@ -3100,6 +3138,12 @@ export class ASL { `the 'callback' argument of forEach must be a function or arrow expression, found: ${callbackfn?.kindName}` ); } + if (isSuperKeyword(expr.expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Step Functions does not support super." + ); + } return this.evalExpr( expr.expr.expr, (listOutput, { normalizeOutputToJsonPath }) => { @@ -5357,6 +5401,7 @@ function nodeToString( | BindingElem | VariableDecl | VariableDeclList + | SuperKeyword ): string { if (!expr) { return ""; @@ -5498,6 +5543,8 @@ function nodeToString( ); } else if (isOmittedExpr(expr)) { return "undefined"; + } else if (isSuperKeyword(expr)) { + return "super"; } else { return assertNever(expr); } diff --git a/src/declaration.ts b/src/declaration.ts index caeff4e0..638dcb70 100644 --- a/src/declaration.ts +++ b/src/declaration.ts @@ -60,7 +60,7 @@ export class ClassDecl extends BaseDecl< ) { super(NodeKind.ClassDecl, span, arguments); this.ensure(name, "name", [NodeKind.Identifier]); - this.ensure(heritage, "name", ["undefined", NodeKind.Identifier]); + this.ensure(heritage, "heritage", ["undefined", "Expr"]); this.ensureArrayOf(members, "members", NodeKind.ClassMember); this.ensure(filename, "filename", ["undefined", "string"]); } diff --git a/src/event-bridge/event-pattern/synth.ts b/src/event-bridge/event-pattern/synth.ts index 75646cf0..31ee1941 100644 --- a/src/event-bridge/event-pattern/synth.ts +++ b/src/event-bridge/event-pattern/synth.ts @@ -16,6 +16,7 @@ import { Expr, PropAccessExpr, UnaryExpr, + SuperKeyword, } from "../../expression"; import { isBinaryExpr, @@ -25,6 +26,7 @@ import { isNullLiteralExpr, isParenthesizedExpr, isPropAccessExpr, + isSuperKeyword, isUnaryExpr, isUndefinedLiteralExpr, } from "../../guards"; @@ -635,7 +637,15 @@ export const synthesizePatternDocument = ( /** * Recurse an expression to find a reference to the event. */ - const getEventReference = (expression: Expr): ReferencePath | undefined => { + const getEventReference = ( + expression: Expr | SuperKeyword + ): ReferencePath | undefined => { + if (isSuperKeyword(expression)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Event Bridge does not support super." + ); + } return getReferencePath(expression); }; diff --git a/src/event-bridge/utils.ts b/src/event-bridge/utils.ts index fd87ca53..1188c09e 100644 --- a/src/event-bridge/utils.ts +++ b/src/event-bridge/utils.ts @@ -36,6 +36,7 @@ import { isSetAccessorDecl, isSpreadElementExpr, isStringLiteralExpr, + isSuperKeyword, isTemplateExpr, isTemplateMiddle, isUnaryExpr, @@ -65,6 +66,12 @@ export const getReferencePath = ( return { reference: [], identity: expression.name }; } else if (isPropAccessExpr(expression) || isElementAccessExpr(expression)) { const key = getPropertyAccessKey(expression); + if (isSuperKeyword(expression.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Event Bridge does not support super." + ); + } const parent = getReferencePath(expression.expr); if (parent) { return { @@ -162,6 +169,12 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { } return expr; } else if (isPropAccessExpr(expr) || isElementAccessExpr(expr)) { + if (isSuperKeyword(expr.expr)) { + throw new SynthError( + ErrorCodes.Unsupported_Feature, + "Event Bridge does not support super." + ); + } const key = getPropertyAccessKeyFlatten(expr, scope); const parent = flattenExpression(expr.expr, scope); if (isObjectLiteralExpr(parent)) { diff --git a/src/expression.ts b/src/expression.ts index 98999e07..61509d31 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -266,7 +266,7 @@ export class PropAccessExpr extends BaseExpr { * Range of text in the source file where this Node resides. */ span: Span, - readonly expr: Expr, + readonly expr: Expr | SuperKeyword, readonly name: Identifier | PrivateIdentifier, /** * Whether this is using optional chaining. @@ -277,7 +277,7 @@ export class PropAccessExpr extends BaseExpr { readonly isOptional: boolean ) { super(NodeKind.PropAccessExpr, span, arguments); - this.ensure(expr, "expr", ["Expr"]); + this.ensure(expr, "expr", ["Expr", NodeKind.SuperKeyword]); this.ensure(name, "ref", [NodeKind.Identifier, NodeKind.PrivateIdentifier]); } } diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index a8d1c7ae..4c227a6f 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -405,7 +405,7 @@ export function serializeClosure(func: AnyFunction): string { if (owner === ownedBy) { return { original: prop( - getOwnPropertyDescriptor(serialize(owner), string(propName)), + getOwnPropertyDescriptor(varName, string(propName)), kind ), }; @@ -714,7 +714,16 @@ export function serializeClosure(func: AnyFunction): string { undefined, node.name?.name, undefined, - node.heritage ? [toTS(node.heritage) as ts.HeritageClause] : undefined, + node.heritage + ? [ + ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [ + ts.factory.createExpressionWithTypeArguments( + toTS(node.heritage) as ts.Expression, + [] + ), + ]), + ] + : undefined, node.members.map((member) => toTS(member) as ts.ClassElement) ); } else if (isClassStaticBlockDecl(node)) { diff --git a/src/util.ts b/src/util.ts index f683c5f5..c5340b11 100644 --- a/src/util.ts +++ b/src/util.ts @@ -21,6 +21,7 @@ import { isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, + isSuperKeyword, isTemplateExpr, isUnaryExpr, isUndefinedLiteralExpr, @@ -280,7 +281,7 @@ export const evalToConstant = (expr: Expr): Constant | undefined => { if (typeof number === "number") { return { constant: -number }; } - } else if (isPropAccessExpr(expr)) { + } else if (isPropAccessExpr(expr) && !isSuperKeyword(expr.expr)) { const obj = evalToConstant(expr.expr)?.constant as any; if (obj && isIdentifier(expr.name) && expr.name.name in obj) { return { constant: obj[expr.name.name] }; diff --git a/src/vtl.ts b/src/vtl.ts index 1849ebe7..3d0563d2 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -12,6 +12,7 @@ import { Expr, Identifier, ReferenceExpr, + SuperKeyword, ThisExpr, } from "./expression"; import { @@ -321,9 +322,12 @@ export abstract class VTL { * @param node the {@link Expr} or {@link Stmt} to evaluate. * @returns a variable reference to the evaluated value */ - public eval(node?: Expr, returnVar?: string): string; + public eval(node?: Expr | SuperKeyword, returnVar?: string): string; public eval(node: Stmt, returnVar?: string): void; - public eval(node?: Expr | Stmt, returnVar?: string): string | void { + public eval( + node?: Expr | Stmt | SuperKeyword, + returnVar?: string + ): string | void { if (!node) { return "$null"; } @@ -1049,7 +1053,7 @@ export abstract class VTL { * @return [firstVariable, list variable, render function] */ private flattenListMapOperations( - expr: Expr, + expr: Expr | SuperKeyword, // Should start with $ returnVariable: string, before: (firstVariable: string, list: string) => void, diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index f05d8db4..70ba88f9 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -36,6 +36,39 @@ exports.handler = v0; " `; +exports[`serialize a class hierarchy 1`] = ` +"var v7 = 0; +const v6 = class Foo { + method() { return (v7 += 1); } +}; +const v5 = v6; +var v4 = v5; +const v3 = class Bar extends v4 { + method() { return super.method() + 1; } +}; +const v2 = v3; +var v1 = v2; +const v0 = () => { const bar = new v1(); return [bar.method(), v7]; }; +exports.handler = v0; +" +`; + +exports[`serialize a class mix-in 1`] = ` +"var v6 = 0; +const v5 = () => { return class Foo { + method() { return (v6 += 1); } +}; }; +var v4 = v5; +const v3 = class Bar extends v4() { + method() { return super.method() + 1; } +}; +const v2 = v3; +var v1 = v2; +const v0 = () => { const bar = new v1(); return [bar.method(), v6]; }; +exports.handler = v0; +" +`; + exports[`serialize a monkey-patched class getter 1`] = ` "var v4 = 0; const v3 = class Foo { @@ -73,7 +106,7 @@ const v3 = class Foo { get method() { return v4; } }; const v5 = function get() { return v4 + 1; }; -Object.defineProperty(v3.prototype, \\"method\\", { get: v5, set: Object.getOwnPropertyDescriptor(v3, \\"method\\").set }); +Object.defineProperty(v3.prototype, \\"method\\", { get: v5, set: Object.getOwnPropertyDescriptor(v3.prototype, \\"method\\").set }); const v2 = v3; var v1 = v2; const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return foo.method; }; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 8056550c..87ff86cb 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -308,3 +308,50 @@ test("serialize a monkey-patched class getter while setter remains unchanged", a expect(closure()).toEqual(3); }); + +test("serialize a class hierarchy", async () => { + let i = 0; + class Foo { + public method() { + return (i += 1); + } + } + + class Bar extends Foo { + public method() { + return super.method() + 1; + } + } + + const closure = await expectClosure(() => { + const bar = new Bar(); + + return [bar.method(), i]; + }); + + expect(closure()).toEqual([2, 1]); +}); + +test("serialize a class mix-in", async () => { + let i = 0; + const mixin = () => + class Foo { + public method() { + return (i += 1); + } + }; + + class Bar extends mixin() { + public method() { + return super.method() + 1; + } + } + + const closure = await expectClosure(() => { + const bar = new Bar(); + + return [bar.method(), i]; + }); + + expect(closure()).toEqual([2, 1]); +}); From c9d61d760972c570690d92968326ccd4d75f5cda Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 22:08:01 -0700 Subject: [PATCH 060/107] feat: avoid name collisions --- src/expression.ts | 7 +- src/node.ts | 80 ++++--- src/serialize-closure.ts | 23 +- .../serialize-closure.test.ts.snap | 205 ++++++++---------- test/serialize-closure.test.ts | 17 ++ 5 files changed, 159 insertions(+), 173 deletions(-) diff --git a/src/expression.ts b/src/expression.ts index 61509d31..e84c3745 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -1,7 +1,6 @@ import type { BindingElem, ClassMember, - Decl, GetAccessorDecl, MethodDecl, ParameterDecl, @@ -16,7 +15,7 @@ import { isPropAssignExpr, isStringLiteralExpr, } from "./guards"; -import { BaseNode, FunctionlessNode } from "./node"; +import { BaseNode, BindingDecl, FunctionlessNode } from "./node"; import { NodeKind } from "./node-kind"; import { Span } from "./span"; import type { BlockStmt, Stmt } from "./statement"; @@ -238,7 +237,7 @@ export class Identifier extends BaseExpr { this.ensure(name, "name", ["string"]); } - public lookup(): Decl | undefined { + public lookup(): BindingDecl | undefined { return this.getLexicalScope().get(this.name); } } @@ -255,7 +254,7 @@ export class PrivateIdentifier extends BaseExpr { this.ensure(name, "name", ["string"]); } - public lookup(): Decl | undefined { + public lookup(): BindingDecl | undefined { return this.getLexicalScope().get(this.name); } } diff --git a/src/node.ts b/src/node.ts index d4eca373..536f972e 100644 --- a/src/node.ts +++ b/src/node.ts @@ -1,7 +1,9 @@ import type { BindingElem, BindingPattern, + ClassDecl, Decl, + FunctionDecl, ParameterDecl, VariableDecl, VariableDeclList, @@ -14,7 +16,9 @@ import { } from "./ensure"; import type { Err } from "./error"; import type { + ClassExpr, Expr, + FunctionExpr, ImportKeyword, NoSubstitutionTemplateLiteralExpr, SuperKeyword, @@ -28,11 +32,15 @@ import { isBindingPattern, isBlockStmt, isCatchClause, + isClassDecl, + isClassExpr, isClassLike, isDoStmt, isForInStmt, isForOfStmt, isForStmt, + isFunctionDecl, + isFunctionExpr, isFunctionLike, isIdentifier, isIfStmt, @@ -73,7 +81,14 @@ export interface HasParent { } type Binding = [string, BindingDecl]; -export type BindingDecl = VariableDecl | ParameterDecl | BindingElem; +export type BindingDecl = + | VariableDecl + | ParameterDecl + | BindingElem + | ClassDecl + | ClassExpr + | FunctionDecl + | FunctionExpr; export abstract class BaseNode< Kind extends NodeKind, @@ -420,80 +435,59 @@ export abstract class BaseNode< * @returns a mapping of name to the node visible in this node's scope. */ public getLexicalScope(): Map { - return new Map( - getLexicalScope(this as unknown as FunctionlessNode, "scope") - ); + return new Map(getLexicalScope(this as unknown as FunctionlessNode)); /** * @param kind the relation between the current `node` and the requesting `node`. */ - function getLexicalScope( - node: FunctionlessNode | undefined, - /** - * the relation between the current `node` and the requesting `node`. - * * `scope` - the current node is an ancestor of the requesting node - * * `sibling` - the current node is the sibling of the requesting node - * - * ```ts - * for(const i in []) { // scope - emits i=self - * const a = ""; // sibling - emits a=self - * for(const a of []) {} // sibling emits [] - * a // requesting node - * } - * ``` - * - * some nodes only emit names to their `scope` (ex: for) and - * other nodes emit names to all of their `sibling`s (ex: variableStmt) - */ - kind: "scope" | "sibling" - ): Binding[] { + function getLexicalScope(node: FunctionlessNode | undefined): Binding[] { if (node === undefined) { return []; } return getLexicalScope( - node.nodeKind === "Stmt" && node.prev ? node.prev : node.parent, - node.nodeKind === "Stmt" && node.prev ? "sibling" : "scope" - ).concat(getNames(node, kind)); + node.nodeKind === "Stmt" && node.prev ? node.prev : node.parent + ).concat(getNames(node)); } /** * @see getLexicalScope */ - function getNames( - node: FunctionlessNode | undefined, - kind: "scope" | "sibling" - ): Binding[] { + function getNames(node: FunctionlessNode | undefined): Binding[] { if (node === undefined) { return []; } else if (isParameterDecl(node)) { return isIdentifier(node.name) ? [[node.name.name, node]] - : getNames(node.name, kind); + : getNames(node.name); } else if (isVariableDeclList(node)) { - return node.decls.flatMap((d) => getNames(d, kind)); + return node.decls.flatMap((d) => getNames(d)); } else if (isVariableStmt(node)) { - return getNames(node.declList, kind); + return getNames(node.declList); } else if (isVariableDecl(node)) { if (isBindingPattern(node.name)) { - return getNames(node.name, kind); + return getNames(node.name); } return [[node.name.name, node]]; } else if (isBindingElem(node)) { if (isIdentifier(node.name)) { return [[node.name.name, node]]; } - return getNames(node.name, kind); + return getNames(node.name); } else if (isBindingPattern(node)) { - return node.bindings.flatMap((b) => getNames(b, kind)); + return node.bindings.flatMap((b) => getNames(b)); } else if (isFunctionLike(node)) { - if (kind === "sibling") return []; - return node.parameters.flatMap((param) => getNames(param, kind)); + const parameters = node.parameters.flatMap((param) => getNames(param)); + if ((isFunctionExpr(node) || isFunctionDecl(node)) && node.name) { + return [[node.name, node], ...parameters]; + } else { + return parameters; + } } else if (isForInStmt(node) || isForOfStmt(node) || isForStmt(node)) { - if (kind === "sibling") return []; - return getNames(node.initializer, kind); + return getNames(node.initializer); } else if (isCatchClause(node) && node.variableDecl?.name) { - if (kind === "sibling") return []; - return getNames(node.variableDecl, kind); + return getNames(node.variableDecl); + } else if (isClassDecl(node) || (isClassExpr(node) && node.name)) { + return [[node.name!.name, node]]; } else { return []; } diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 4c227a6f..285388fe 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -112,8 +112,13 @@ export function serializeClosure(func: AnyFunction): string { ) ); let i = 0; - const uniqueName = () => { - return `v${i++}`; + const uniqueName = (scope?: FunctionlessNode) => { + const names = scope?.getLexicalScope(); + let name; + do { + name = `v${i++}`; + } while (names?.has(name)); + return name; }; const statements: ts.Statement[] = []; @@ -274,15 +279,11 @@ export function serializeClosure(func: AnyFunction): string { prop(moduleName, mod.exportName) ); } else if (isFunctionLike(ast)) { - return emitVarDecl("const", uniqueName(), toTS(ast) as ts.Expression); + return toTS(ast) as ts.Expression; } else if (isClassDecl(ast) || isClassExpr(ast)) { - return emitVarDecl("const", uniqueName(), serializeClass(value, ast)); + return serializeClass(value, ast); } else if (isMethodDecl(ast)) { - return emitVarDecl( - "const", - uniqueName(), - serializeMethodAsFunction(ast) - ); + return serializeMethodAsFunction(ast); } else if (isErr(ast)) { throw ast.error; } @@ -299,7 +300,7 @@ export function serializeClosure(func: AnyFunction): string { // emit the class to the closure const classDecl = emitVarDecl( "const", - uniqueName(), + uniqueName(classAST), toTS(classAST) as ts.Expression ); @@ -498,7 +499,7 @@ export function serializeClosure(func: AnyFunction): string { // a ts.Identifier that uniquely references the memory location of this variable in the serialized closure let varId: ts.Identifier | undefined = referenceIds.get(varKey); if (varId === undefined) { - const varName = uniqueName(); + const varName = uniqueName(node); varId = ts.factory.createIdentifier(varName); referenceIds.set(varKey, varId); diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 70ba88f9..f7852919 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,189 +1,164 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`all observers of a free variable share the same reference 1`] = ` -"var v3 = 0; -const v2 = function up() { v3 += 1; }; -var v1 = v2; -const v5 = function down() { v3 -= 1; }; -var v4 = v5; -const v0 = () => { v1(); v4(); return v3; }; -exports.handler = v0; +"var v1 = 0; +var v0 = function up() { v1 += 1; }; +var v2 = function down() { v1 -= 1; }; +exports.handler = () => { v0(); v2(); return v1; }; +" +`; + +exports[`avoid name collision with a closure's lexical scope 1`] = ` +"var v5 = 0; +const v4 = class v1 { + foo() { return (v5 += 1); } +}; +var v3 = v4; +const v1 = class v2 extends v3 { +}; +var v0 = v1; +exports.handler = () => { const v3 = new v0(); return v3.foo(); }; " `; exports[`serialize a class declaration 1`] = ` -"var v4 = 0; -const v3 = class Foo { - method() { v4++; return v4; } +"var v2 = 0; +const v1 = class Foo { + method() { v2++; return v2; } }; -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v4; }; -exports.handler = v0; +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; " `; exports[`serialize a class declaration with constructor 1`] = ` -"var v4 = 0; -const v3 = class Foo { - constructor() { v4 += 1; } - method() { v4++; return v4; } +"var v2 = 0; +const v1 = class Foo { + constructor() { v2 += 1; } + method() { v2++; return v2; } }; -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v4; }; -exports.handler = v0; +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; " `; exports[`serialize a class hierarchy 1`] = ` -"var v7 = 0; -const v6 = class Foo { - method() { return (v7 += 1); } +"var v4 = 0; +const v3 = class Foo { + method() { return (v4 += 1); } }; -const v5 = v6; -var v4 = v5; -const v3 = class Bar extends v4 { +var v2 = v3; +const v1 = class Bar extends v2 { method() { return super.method() + 1; } }; -const v2 = v3; -var v1 = v2; -const v0 = () => { const bar = new v1(); return [bar.method(), v7]; }; -exports.handler = v0; +var v0 = v1; +exports.handler = () => { const bar = new v0(); return [bar.method(), v4]; }; " `; exports[`serialize a class mix-in 1`] = ` -"var v6 = 0; -const v5 = () => { return class Foo { - method() { return (v6 += 1); } +"var v3 = 0; +var v2 = () => { return class Foo { + method() { return (v3 += 1); } }; }; -var v4 = v5; -const v3 = class Bar extends v4() { +const v1 = class Bar extends v2() { method() { return super.method() + 1; } }; -const v2 = v3; -var v1 = v2; -const v0 = () => { const bar = new v1(); return [bar.method(), v6]; }; -exports.handler = v0; +var v0 = v1; +exports.handler = () => { const bar = new v0(); return [bar.method(), v3]; }; " `; exports[`serialize a monkey-patched class getter 1`] = ` -"var v4 = 0; -const v3 = class Foo { - get method() { return (v4 += 1); } +"var v2 = 0; +const v1 = class Foo { + get method() { return (v2 += 1); } }; -const v5 = function get() { return (v4 += 2); }; -Object.defineProperty(v3.prototype, \\"method\\", { get: v5 }); -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method; foo.method; return v4; }; -exports.handler = v0; +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return (v2 += 2); } }); +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method; foo.method; return v2; }; " `; exports[`serialize a monkey-patched class getter and setter 1`] = ` -"var v4 = 0; -const v3 = class Foo { - set method(val) { v4 += val; } - get method() { return v4; } +"var v2 = 0; +const v1 = class Foo { + set method(val) { v2 += val; } + get method() { return v2; } }; -const v5 = function get() { return v4 + 1; }; -const v6 = function set(val) { v4 += val + 1; }; -Object.defineProperty(v3.prototype, \\"method\\", { get: v5, set: v6 }); -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return foo.method; }; -exports.handler = v0; +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: function set(val) { v2 += val + 1; } }); +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; " `; exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"var v4 = 0; -const v3 = class Foo { - set method(val) { v4 += val; } - get method() { return v4; } +"var v2 = 0; +const v1 = class Foo { + set method(val) { v2 += val; } + get method() { return v2; } }; -const v5 = function get() { return v4 + 1; }; -Object.defineProperty(v3.prototype, \\"method\\", { get: v5, set: Object.getOwnPropertyDescriptor(v3.prototype, \\"method\\").set }); -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return foo.method; }; -exports.handler = v0; +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; " `; exports[`serialize a monkey-patched class method 1`] = ` -"var v4 = 0; -const v3 = class Foo { - method() { v4 += 1; } +"var v2 = 0; +const v1 = class Foo { + method() { v2 += 1; } }; -const v5 = function () { v4 += 2; }; -v3.prototype.method = v5; -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method(); foo.method(); return v4; }; -exports.handler = v0; +v1.prototype.method = function () { v2 += 2; }; +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; " `; exports[`serialize a monkey-patched class setter 1`] = ` -"var v4 = 0; -const v3 = class Foo { - set method(val) { v4 += val; } +"var v2 = 0; +const v1 = class Foo { + set method(val) { v2 += val; } }; -const v5 = function set(val) { v4 += val + 1; }; -Object.defineProperty(v3.prototype, \\"method\\", { set: v5 }); -const v2 = v3; -var v1 = v2; -const v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; return v4; }; -exports.handler = v0; +Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { v2 += val + 1; } }); +var v0 = v1; +exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return v2; }; " `; exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var v4 = 0; -const v3 = class Foo { - static method = () => { v4 += 1; }; +"var v2 = 0; +const v1 = class Foo { + static method = () => { v2 += 1; }; }; -const v5 = function () { v4 += 2; }; -v3.method = v5; -const v2 = v3; -var v1 = v2; -const v0 = () => { v1.method(); v1.method(); return v4; }; -exports.handler = v0; +v1.method = function () { v2 += 2; }; +var v0 = v1; +exports.handler = () => { v0.method(); v0.method(); return v2; }; " `; exports[`serialize a monkey-patched static class method 1`] = ` -"var v4 = 0; -const v3 = class Foo { - method() { v4 += 1; } +"var v2 = 0; +const v1 = class Foo { + method() { v2 += 1; } }; -const v5 = function () { v4 += 2; }; -v3.method = v5; -const v2 = v3; -var v1 = v2; -const v0 = () => { v1.method(); v1.method(); return v4; }; -exports.handler = v0; +v1.method = function () { v2 += 2; }; +var v0 = v1; +exports.handler = () => { v0.method(); v0.method(); return v2; }; " `; exports[`serialize a monkey-patched static class property 1`] = ` -"const v3 = class Foo { +"const v1 = class Foo { static prop = 1; }; -v3.prop = 2; -const v2 = v3; -var v1 = v2; -const v0 = () => { return v1.prop; }; -exports.handler = v0; +v1.prop = 2; +var v0 = v1; +exports.handler = () => { return v0.prop; }; " `; exports[`serialize an imported module 1`] = ` -"const v0 = function isNode(a) { return typeof a?.kind === \\"number\\"; }; -exports.handler = v0; +"exports.handler = function isNode(a) { return typeof a?.kind === \\"number\\"; }; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 87ff86cb..24789e85 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -355,3 +355,20 @@ test("serialize a class mix-in", async () => { expect(closure()).toEqual([2, 1]); }); + +test("avoid name collision with a closure's lexical scope", async () => { + let v0 = 0; + class v1 { + public foo() { + return (v0 += 1); + } + } + class v2 extends v1 {} + + const closure = await expectClosure(() => { + const v3 = new v2(); + return v3.foo(); + }); + + expect(closure()).toEqual(1); +}); From d6d9a09a7a1dfb7ec7bfac1373ee51f83917d5a7 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 22:21:35 -0700 Subject: [PATCH 061/107] feat: run bundle through esbuild --- src/serialize-closure.ts | 34 +- .../serialize-closure.test.ts.snap | 293 +++++++++++++----- test/serialize-closure.test.ts | 2 +- 3 files changed, 253 insertions(+), 76 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 285388fe..2dca99c8 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,4 +1,6 @@ +import esbuild from "esbuild"; import ts from "typescript"; + import { assertNever } from "./assert"; import { ClassDecl, @@ -97,7 +99,16 @@ import { FunctionlessNode } from "./node"; import { reflect } from "./reflect"; import { AnyClass, AnyFunction } from "./util"; -export function serializeClosure(func: AnyFunction): string { +/** + * Serialize a closure to a bundle that can be remotely executed. + * @param func + * @param options ES Build options. + * @returns a string + */ +export function serializeClosure( + func: AnyFunction, + _options?: esbuild.BuildOptions +): esbuild.OutputFile { const requireCache = new Map( Object.entries(require.cache).flatMap(([path, module]) => Object.entries(module ?? {}).map(([exportName, exportValue]) => [ @@ -143,7 +154,26 @@ export function serializeClosure(func: AnyFunction): string { // looks like TS does not expose the source-map functionality // TODO: figure out how to generate a source map since we have all the information ... - return printer.printFile(sourceFile); + const script = printer.printFile(sourceFile); + + const bundle = esbuild.buildSync({ + stdin: { + contents: script, + resolveDir: process.cwd(), + }, + bundle: true, + write: false, + metafile: true, + platform: "node", + target: "node14", + external: ["aws-sdk", "aws-cdk-lib", "esbuild"], + }); + + if (bundle.outputFiles[0] === undefined) { + throw new Error("No output files after bundling with ES Build"); + } + + return bundle.outputFiles[0]; function emit(...stmts: ts.Statement[]) { statements.push(...stmts); diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index f7852919..78416aae 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,164 +1,311 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`all observers of a free variable share the same reference 1`] = ` -"var v1 = 0; -var v0 = function up() { v1 += 1; }; -var v2 = function down() { v1 -= 1; }; -exports.handler = () => { v0(); v2(); return v1; }; +"// +var v1 = 0; +var v0 = function up() { + v1 += 1; +}; +var v2 = function down() { + v1 -= 1; +}; +exports.handler = () => { + v0(); + v2(); + return v1; +}; " `; exports[`avoid name collision with a closure's lexical scope 1`] = ` -"var v5 = 0; -const v4 = class v1 { - foo() { return (v5 += 1); } +"// +var v5 = 0; +var v4 = class v1 { + foo() { + return v5 += 1; + } }; var v3 = v4; -const v1 = class v2 extends v3 { +var v12 = class v2 extends v3 { +}; +var v0 = v12; +exports.handler = () => { + const v32 = new v0(); + return v32.foo(); }; -var v0 = v1; -exports.handler = () => { const v3 = new v0(); return v3.foo(); }; " `; exports[`serialize a class declaration 1`] = ` -"var v2 = 0; -const v1 = class Foo { - method() { v2++; return v2; } +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2++; + return v2; + } }; var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method(); + foo.method(); + return v2; +}; " `; exports[`serialize a class declaration with constructor 1`] = ` -"var v2 = 0; -const v1 = class Foo { - constructor() { v2 += 1; } - method() { v2++; return v2; } +"// +var v2 = 0; +var v1 = class Foo { + constructor() { + v2 += 1; + } + method() { + v2++; + return v2; + } }; var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method(); + foo.method(); + return v2; +}; " `; exports[`serialize a class hierarchy 1`] = ` -"var v4 = 0; -const v3 = class Foo { - method() { return (v4 += 1); } +"// +var v4 = 0; +var v3 = class Foo { + method() { + return v4 += 1; + } }; var v2 = v3; -const v1 = class Bar extends v2 { - method() { return super.method() + 1; } +var v1 = class Bar extends v2 { + method() { + return super.method() + 1; + } }; var v0 = v1; -exports.handler = () => { const bar = new v0(); return [bar.method(), v4]; }; +exports.handler = () => { + const bar = new v0(); + return [bar.method(), v4]; +}; " `; exports[`serialize a class mix-in 1`] = ` -"var v3 = 0; -var v2 = () => { return class Foo { - method() { return (v3 += 1); } -}; }; -const v1 = class Bar extends v2() { - method() { return super.method() + 1; } +"// +var v3 = 0; +var v2 = () => { + return class Foo { + method() { + return v3 += 1; + } + }; +}; +var v1 = class Bar extends v2() { + method() { + return super.method() + 1; + } }; var v0 = v1; -exports.handler = () => { const bar = new v0(); return [bar.method(), v3]; }; +exports.handler = () => { + const bar = new v0(); + return [bar.method(), v3]; +}; " `; exports[`serialize a monkey-patched class getter 1`] = ` -"var v2 = 0; -const v1 = class Foo { - get method() { return (v2 += 1); } +"// +var v2 = 0; +var v1 = class Foo { + get method() { + return v2 += 1; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return (v2 += 2); } }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { + return v2 += 2; +} }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method; foo.method; return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method; + foo.method; + return v2; +}; " `; exports[`serialize a monkey-patched class getter and setter 1`] = ` -"var v2 = 0; -const v1 = class Foo { - set method(val) { v2 += val; } - get method() { return v2; } +"// +var v2 = 0; +var v1 = class Foo { + set method(val) { + v2 += val; + } + get method() { + return v2; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: function set(val) { v2 += val + 1; } }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { + return v2 + 1; +}, set: function set(val) { + v2 += val + 1; +} }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; +exports.handler = () => { + const foo = new v0(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; " `; exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"var v2 = 0; -const v1 = class Foo { - set method(val) { v2 += val; } - get method() { return v2; } +"// +var v2 = 0; +var v1 = class Foo { + set method(val) { + v2 += val; + } + get method() { + return v2; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { + return v2 + 1; +}, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; +exports.handler = () => { + const foo = new v0(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; " `; exports[`serialize a monkey-patched class method 1`] = ` -"var v2 = 0; -const v1 = class Foo { - method() { v2 += 1; } +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2 += 1; + } +}; +v1.prototype.method = function() { + v2 += 2; }; -v1.prototype.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method(); + foo.method(); + return v2; +}; " `; exports[`serialize a monkey-patched class setter 1`] = ` -"var v2 = 0; -const v1 = class Foo { - set method(val) { v2 += val; } +"// +var v2 = 0; +var v1 = class Foo { + set method(val) { + v2 += val; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { v2 += val + 1; } }); +Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { + v2 += val + 1; +} }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method = 1; + foo.method = 1; + return v2; +}; " `; exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var v2 = 0; -const v1 = class Foo { - static method = () => { v2 += 1; }; +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; +}; + +// +var v2 = 0; +var _a; +var v1 = (_a = class { +}, __publicField(_a, \\"method\\", () => { + v2 += 1; +}), _a); +v1.method = function() { + v2 += 2; }; -v1.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { v0.method(); v0.method(); return v2; }; +exports.handler = () => { + v0.method(); + v0.method(); + return v2; +}; " `; exports[`serialize a monkey-patched static class method 1`] = ` -"var v2 = 0; -const v1 = class Foo { - method() { v2 += 1; } +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2 += 1; + } +}; +v1.method = function() { + v2 += 2; }; -v1.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { v0.method(); v0.method(); return v2; }; +exports.handler = () => { + v0.method(); + v0.method(); + return v2; +}; " `; exports[`serialize a monkey-patched static class property 1`] = ` -"const v1 = class Foo { - static prop = 1; +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; }; + +// +var _a; +var v1 = (_a = class { +}, __publicField(_a, \\"prop\\", 1), _a); v1.prop = 2; var v0 = v1; -exports.handler = () => { return v0.prop; }; +exports.handler = () => { + return v0.prop; +}; " `; exports[`serialize an imported module 1`] = ` -"exports.handler = function isNode(a) { return typeof a?.kind === \\"number\\"; }; +"// +exports.handler = function isNode(a) { + return typeof (a == null ? void 0 : a.kind) === \\"number\\"; +}; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 24789e85..7527620b 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -42,7 +42,7 @@ async function rmrf(file: string) { } async function expectClosure(f: F): Promise { - const closure = serializeClosure(f); + const closure = serializeClosure(f).text; expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); From 1c44372a5f081214f7c64bf2056b91825c565fad Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 10 Aug 2022 23:21:42 -0700 Subject: [PATCH 062/107] feat: support choosing between esbuild and not --- src/serialize-closure.ts | 128 +++++--- .../serialize-closure.test.ts.snap | 293 +++++------------- test/serialize-closure.test.ts | 2 +- 3 files changed, 160 insertions(+), 263 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 2dca99c8..6ff51bb8 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -99,6 +99,16 @@ import { FunctionlessNode } from "./node"; import { reflect } from "./reflect"; import { AnyClass, AnyFunction } from "./util"; +export interface SerializeClosureProps extends esbuild.BuildOptions { + /** + * Whether to favor require statements and es-build's tree-shaking over a pure + * traversal of the in-memory graph. + * + * @default false + */ + useESBuild?: boolean; +} + /** * Serialize a closure to a bundle that can be remotely executed. * @param func @@ -107,21 +117,37 @@ import { AnyClass, AnyFunction } from "./util"; */ export function serializeClosure( func: AnyFunction, - _options?: esbuild.BuildOptions -): esbuild.OutputFile { + options?: SerializeClosureProps +): string { + // this may be un-safe if the module is not available locally + const externalModules = options?.external?.map(require) ?? []; + + type RequiredModule = Exclude, undefined>; const requireCache = new Map( - Object.entries(require.cache).flatMap(([path, module]) => - Object.entries(module ?? {}).map(([exportName, exportValue]) => [ - exportValue, - { - path, - exportName, + Object.entries(require.cache).flatMap(([path, module]) => { + return Object.entries(module?.exports ?? {}).map( + ([exportName, exportValue]) => [ exportValue, - module, - }, + { + path, + exportName, + exportValue, + module, + }, + ] + ); + }) + ); + + const externalModuleExports = new Map( + externalModules.flatMap((mod) => + Object.entries(mod).map(([, exportVal]) => [ + exportVal, + requireCache.get(exportVal), ]) ) ); + let i = 0; const uniqueName = (scope?: FunctionlessNode) => { const names = scope?.getLexicalScope(); @@ -156,24 +182,28 @@ export function serializeClosure( // TODO: figure out how to generate a source map since we have all the information ... const script = printer.printFile(sourceFile); - const bundle = esbuild.buildSync({ - stdin: { - contents: script, - resolveDir: process.cwd(), - }, - bundle: true, - write: false, - metafile: true, - platform: "node", - target: "node14", - external: ["aws-sdk", "aws-cdk-lib", "esbuild"], - }); + if (!options?.useESBuild) { + return script; + } else { + const bundle = esbuild.buildSync({ + stdin: { + contents: script, + resolveDir: process.cwd(), + }, + bundle: true, + write: false, + metafile: true, + platform: "node", + target: "node14", + external: ["aws-sdk", "aws-cdk-lib", "esbuild"], + }); - if (bundle.outputFiles[0] === undefined) { - throw new Error("No output files after bundling with ES Build"); - } + if (bundle.outputFiles[0] === undefined) { + throw new Error("No output files after bundling with ES Build"); + } - return bundle.outputFiles[0]; + return bundle.outputFiles[0].text; + } function emit(...stmts: ts.Statement[]) { statements.push(...stmts); @@ -207,6 +237,18 @@ export function serializeClosure( return ts.factory.createIdentifier(varName); } + function emitRequire(mod: RequiredModule) { + // const vMod = require("module-name"); + const moduleName = emitVarDecl( + "const", + uniqueName(), + call(id("require"), [string(mod.path)]) + ); + + // const vFunc = vMod.prop + return emitVarDecl("const", uniqueName(), prop(moduleName, mod.exportName)); + } + function serialize(value: any): ts.Expression { let id = valueIds.get(value); if (id) { @@ -283,31 +325,33 @@ export function serializeClosure( return obj; } else if (typeof value === "function") { + // if this is not compiled by functionless, we can only serialize it if it is exported by a module + const mod = requireCache.get(value); + + if (mod) { + } + if ( + mod && + // if useESBuild is true then favor esbuild's tree-shaking algorithm + // by emitting requires for any imported value + (options?.useESBuild || + // or, if this is imported from a module marked as `external`, then emit a require + externalModuleExports.has(value)) + ) { + return emitRequire(mod); + } + const ast = reflect(value); if (ast === undefined) { - // if this is not compiled by functionless, we can only serialize it if it is exported by a module - const mod = requireCache.get(value); + // TODO: check if this is an intrinsic, such as Object, Function, Array, Date, etc. if (mod === undefined) { - // eslint-disable-next-line no-debugger - debugger; throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); } - // const vMod = require("module-name"); - const moduleName = emitVarDecl( - "const", - uniqueName(), - call(id("require"), [string(mod.path)]) - ); - // const vFunc = vMod.prop - return emitVarDecl( - "const", - uniqueName(), - prop(moduleName, mod.exportName) - ); + return emitRequire(mod); } else if (isFunctionLike(ast)) { return toTS(ast) as ts.Expression; } else if (isClassDecl(ast) || isClassExpr(ast)) { diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 78416aae..f7852919 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,311 +1,164 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`all observers of a free variable share the same reference 1`] = ` -"// -var v1 = 0; -var v0 = function up() { - v1 += 1; -}; -var v2 = function down() { - v1 -= 1; -}; -exports.handler = () => { - v0(); - v2(); - return v1; -}; +"var v1 = 0; +var v0 = function up() { v1 += 1; }; +var v2 = function down() { v1 -= 1; }; +exports.handler = () => { v0(); v2(); return v1; }; " `; exports[`avoid name collision with a closure's lexical scope 1`] = ` -"// -var v5 = 0; -var v4 = class v1 { - foo() { - return v5 += 1; - } +"var v5 = 0; +const v4 = class v1 { + foo() { return (v5 += 1); } }; var v3 = v4; -var v12 = class v2 extends v3 { -}; -var v0 = v12; -exports.handler = () => { - const v32 = new v0(); - return v32.foo(); +const v1 = class v2 extends v3 { }; +var v0 = v1; +exports.handler = () => { const v3 = new v0(); return v3.foo(); }; " `; exports[`serialize a class declaration 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2++; - return v2; - } +"var v2 = 0; +const v1 = class Foo { + method() { v2++; return v2; } }; var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method(); - foo.method(); - return v2; -}; +exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; " `; exports[`serialize a class declaration with constructor 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - constructor() { - v2 += 1; - } - method() { - v2++; - return v2; - } +"var v2 = 0; +const v1 = class Foo { + constructor() { v2 += 1; } + method() { v2++; return v2; } }; var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method(); - foo.method(); - return v2; -}; +exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; " `; exports[`serialize a class hierarchy 1`] = ` -"// -var v4 = 0; -var v3 = class Foo { - method() { - return v4 += 1; - } +"var v4 = 0; +const v3 = class Foo { + method() { return (v4 += 1); } }; var v2 = v3; -var v1 = class Bar extends v2 { - method() { - return super.method() + 1; - } +const v1 = class Bar extends v2 { + method() { return super.method() + 1; } }; var v0 = v1; -exports.handler = () => { - const bar = new v0(); - return [bar.method(), v4]; -}; +exports.handler = () => { const bar = new v0(); return [bar.method(), v4]; }; " `; exports[`serialize a class mix-in 1`] = ` -"// -var v3 = 0; -var v2 = () => { - return class Foo { - method() { - return v3 += 1; - } - }; -}; -var v1 = class Bar extends v2() { - method() { - return super.method() + 1; - } +"var v3 = 0; +var v2 = () => { return class Foo { + method() { return (v3 += 1); } +}; }; +const v1 = class Bar extends v2() { + method() { return super.method() + 1; } }; var v0 = v1; -exports.handler = () => { - const bar = new v0(); - return [bar.method(), v3]; -}; +exports.handler = () => { const bar = new v0(); return [bar.method(), v3]; }; " `; exports[`serialize a monkey-patched class getter 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - get method() { - return v2 += 1; - } +"var v2 = 0; +const v1 = class Foo { + get method() { return (v2 += 1); } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { - return v2 += 2; -} }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return (v2 += 2); } }); var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method; - foo.method; - return v2; -}; +exports.handler = () => { const foo = new v0(); foo.method; foo.method; return v2; }; " `; exports[`serialize a monkey-patched class getter and setter 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - set method(val) { - v2 += val; - } - get method() { - return v2; - } +"var v2 = 0; +const v1 = class Foo { + set method(val) { v2 += val; } + get method() { return v2; } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { - return v2 + 1; -}, set: function set(val) { - v2 += val + 1; -} }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: function set(val) { v2 += val + 1; } }); var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; +exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; " `; exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - set method(val) { - v2 += val; - } - get method() { - return v2; - } +"var v2 = 0; +const v1 = class Foo { + set method(val) { v2 += val; } + get method() { return v2; } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { - return v2 + 1; -}, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; +exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; " `; exports[`serialize a monkey-patched class method 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2 += 1; - } -}; -v1.prototype.method = function() { - v2 += 2; +"var v2 = 0; +const v1 = class Foo { + method() { v2 += 1; } }; +v1.prototype.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method(); - foo.method(); - return v2; -}; +exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; " `; exports[`serialize a monkey-patched class setter 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - set method(val) { - v2 += val; - } +"var v2 = 0; +const v1 = class Foo { + set method(val) { v2 += val; } }; -Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { - v2 += val + 1; -} }); +Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { v2 += val + 1; } }); var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method = 1; - foo.method = 1; - return v2; -}; +exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return v2; }; " `; exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; -}; - -// -var v2 = 0; -var _a; -var v1 = (_a = class { -}, __publicField(_a, \\"method\\", () => { - v2 += 1; -}), _a); -v1.method = function() { - v2 += 2; +"var v2 = 0; +const v1 = class Foo { + static method = () => { v2 += 1; }; }; +v1.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { - v0.method(); - v0.method(); - return v2; -}; +exports.handler = () => { v0.method(); v0.method(); return v2; }; " `; exports[`serialize a monkey-patched static class method 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2 += 1; - } -}; -v1.method = function() { - v2 += 2; +"var v2 = 0; +const v1 = class Foo { + method() { v2 += 1; } }; +v1.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { - v0.method(); - v0.method(); - return v2; -}; +exports.handler = () => { v0.method(); v0.method(); return v2; }; " `; exports[`serialize a monkey-patched static class property 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; +"const v1 = class Foo { + static prop = 1; }; - -// -var _a; -var v1 = (_a = class { -}, __publicField(_a, \\"prop\\", 1), _a); v1.prop = 2; var v0 = v1; -exports.handler = () => { - return v0.prop; -}; +exports.handler = () => { return v0.prop; }; " `; exports[`serialize an imported module 1`] = ` -"// -exports.handler = function isNode(a) { - return typeof (a == null ? void 0 : a.kind) === \\"number\\"; -}; +"exports.handler = function isNode(a) { return typeof a?.kind === \\"number\\"; }; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 7527620b..24789e85 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -42,7 +42,7 @@ async function rmrf(file: string) { } async function expectClosure(f: F): Promise { - const closure = serializeClosure(f).text; + const closure = serializeClosure(f); expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); From cb20c2fcb855a6329633d0d53d92149e0068bca9 Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 11 Aug 2022 16:51:28 -0700 Subject: [PATCH 063/107] feat: favor importing modules via require --- .projen/deps.json | 4 + .projenrc.ts | 1 + package.json | 1 + src/serialize-closure.ts | 123 ++- .../serialize-closure.test.ts.snap | 746 ++++++++++++++++-- test/serialize-closure.test.ts | 58 +- yarn.lock | 16 + 7 files changed, 830 insertions(+), 119 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index 2a3d9527..c4626841 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -69,6 +69,10 @@ "version": "2.28.1", "type": "build" }, + { + "name": "aws-sdk", + "type": "build" + }, { "name": "axios", "type": "build" diff --git a/.projenrc.ts b/.projenrc.ts index 2ce005c4..6467a271 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -107,6 +107,7 @@ const project = new CustomTypescriptProject({ `@aws-cdk/cloud-assembly-schema@${MIN_CDK_VERSION}`, `@aws-cdk/cloudformation-diff@${MIN_CDK_VERSION}`, `@aws-cdk/cx-api@${MIN_CDK_VERSION}`, + "aws-sdk", `aws-cdk@${MIN_CDK_VERSION}`, `cdk-assets@${MIN_CDK_VERSION}`, "promptly", diff --git a/package.json b/package.json index 88da88cf..ea5c13c7 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "amplify-appsync-simulator": "^2.4.1", "aws-cdk": "2.28.1", "aws-cdk-lib": "2.28.1", + "aws-sdk": "^2.1193.0", "axios": "^0.27.2", "cdk-assets": "2.28.1", "constructs": "10.0.0", diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 6ff51bb8..4a5a836a 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,3 +1,5 @@ +import fs from "fs"; +import path from "path"; import esbuild from "esbuild"; import ts from "typescript"; @@ -104,7 +106,7 @@ export interface SerializeClosureProps extends esbuild.BuildOptions { * Whether to favor require statements and es-build's tree-shaking over a pure * traversal of the in-memory graph. * - * @default false + * @default true */ useESBuild?: boolean; } @@ -119,33 +121,36 @@ export function serializeClosure( func: AnyFunction, options?: SerializeClosureProps ): string { - // this may be un-safe if the module is not available locally - const externalModules = options?.external?.map(require) ?? []; + interface RequiredModule { + path: string; + exportName?: string; + exportValue: any; + module: NodeModule; + } - type RequiredModule = Exclude, undefined>; - const requireCache = new Map( - Object.entries(require.cache).flatMap(([path, module]) => { - return Object.entries(module?.exports ?? {}).map( + const requireCache = new Map( + Object.entries(require.cache).flatMap(([path, module]) => [ + [ + module?.exports as any, + { + path: module?.path, + exportName: undefined, + exportValue: module?.exports, + module, + }, + ], + ...(Object.entries(module?.exports ?? {}).map( ([exportName, exportValue]) => [ - exportValue, - { + exportValue as any, + { path, exportName, exportValue, module, }, ] - ); - }) - ); - - const externalModuleExports = new Map( - externalModules.flatMap((mod) => - Object.entries(mod).map(([, exportVal]) => [ - exportVal, - requireCache.get(exportVal), - ]) - ) + ) as [any, RequiredModule][]), + ]) ); let i = 0; @@ -182,7 +187,7 @@ export function serializeClosure( // TODO: figure out how to generate a source map since we have all the information ... const script = printer.printFile(sourceFile); - if (!options?.useESBuild) { + if (options?.useESBuild === false) { return script; } else { const bundle = esbuild.buildSync({ @@ -237,16 +242,33 @@ export function serializeClosure( return ts.factory.createIdentifier(varName); } - function emitRequire(mod: RequiredModule) { + function emitRequire(mod: string) { // const vMod = require("module-name"); - const moduleName = emitVarDecl( + return emitVarDecl( "const", uniqueName(), - call(id("require"), [string(mod.path)]) + call(id("require"), [string(mod)]) ); + } - // const vFunc = vMod.prop - return emitVarDecl("const", uniqueName(), prop(moduleName, mod.exportName)); + function getModuleId(jsFile: string): string { + return findModuleName(path.dirname(jsFile)); + function findModuleName(dir: string): string { + if (path.resolve(dir) === path.resolve(process.cwd())) { + // reached the root workspace, import the absolute file path of the jsFile + return jsFile; + } + const pkgJsonPath = path.join(dir, "package.json"); + if (fs.existsSync(pkgJsonPath)) { + const pkgJson = JSON.parse( + fs.readFileSync(pkgJsonPath).toString("utf-8") + ); + if (typeof pkgJson.name === "string") { + return pkgJson.name; + } + } + return findModuleName(path.join(dir, "..")); + } } function serialize(value: any): ts.Expression { @@ -269,7 +291,7 @@ export function serializeClosure( } else if (value === false) { return false_expr(); } else if (typeof value === "number") { - return num(value); + return number_expr(value); } else if (typeof value === "bigint") { return ts.factory.createBigIntLiteral(value.toString(10)); } else if (typeof value === "string") { @@ -278,7 +300,7 @@ export function serializeClosure( return ts.factory.createRegularExpressionLiteral(value.source); } else if (value instanceof Date) { return ts.factory.createNewExpression(id("Date"), undefined, [ - num(value.getTime()), + number_expr(value.getTime()), ]); } else if (Array.isArray(value)) { // TODO: should we check the array's prototype? @@ -300,18 +322,28 @@ export function serializeClosure( return arr; } else if (typeof value === "object") { + const mod = requireCache.get(value); + + if (mod) { + return importMod(mod, value); + } + + const prototype = Object.getPrototypeOf(value); // serialize the prototype first // there should be no circular references between an object instance and its prototype // if we need to handle circular references between an instance and prototype, then we can // switch to a strategy of emitting an object and then calling Object.setPrototypeOf - const prototype = serialize(Object.getPrototypeOf(value)); + const serializedPrototype = + prototype !== Object.prototype ? serialize(prototype) : undefined; // emit an empty object with the correct prototype // e.g. `var vObj = Object.create(vPrototype);` const obj = emitVarDecl( "const", uniqueName(), - call(prop(id("Object"), "create"), [prototype]) + serializedPrototype + ? call(prop(id("Object"), "create"), [serializedPrototype]) + : object({}) ); // cache the empty object nwo in case any of the properties in teh array circular reference the object @@ -329,16 +361,7 @@ export function serializeClosure( const mod = requireCache.get(value); if (mod) { - } - if ( - mod && - // if useESBuild is true then favor esbuild's tree-shaking algorithm - // by emitting requires for any imported value - (options?.useESBuild || - // or, if this is imported from a module marked as `external`, then emit a require - externalModuleExports.has(value)) - ) { - return emitRequire(mod); + return importMod(mod, value); } const ast = reflect(value); @@ -367,6 +390,24 @@ export function serializeClosure( throw new Error("not implemented"); } + function importMod(mod: RequiredModule, value: any) { + const exports = mod.module?.exports; + if (exports === undefined) { + throw new Error(`undefined exports`); + } + if (!valueIds.has(exports)) { + valueIds.set(exports, emitRequire(getModuleId(mod.path))); + } + const requireMod = valueIds.get(exports)!; + const requireModExport = emitVarDecl( + "const", + uniqueName(), + mod.exportName ? prop(requireMod, mod.exportName) : requireMod + ); + valueIds.set(value, requireModExport); + return requireModExport; + } + function serializeClass( classVal: AnyClass, classAST: ClassExpr | ClassDecl @@ -1177,7 +1218,7 @@ function string(name: string) { return ts.factory.createStringLiteral(name); } -function num(num: number) { +function number_expr(num: number) { return ts.factory.createNumericLiteral(num); } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index f7852919..e8698800 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,164 +1,764 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`all observers of a free variable share the same reference 1`] = ` -"var v1 = 0; -var v0 = function up() { v1 += 1; }; -var v2 = function down() { v1 -= 1; }; -exports.handler = () => { v0(); v2(); return v1; }; +"// +var v1 = 0; +var v0 = function up() { + v1 += 2; +}; +var v2 = function down() { + v1 -= 1; +}; +exports.handler = () => { + v0(); + v2(); + return v1; +}; " `; exports[`avoid name collision with a closure's lexical scope 1`] = ` -"var v5 = 0; -const v4 = class v1 { - foo() { return (v5 += 1); } +"// +var v5 = 0; +var v4 = class v1 { + foo() { + return v5 += 1; + } }; var v3 = v4; -const v1 = class v2 extends v3 { +var v12 = class v2 extends v3 { +}; +var v0 = v12; +exports.handler = () => { + const v32 = new v0(); + return v32.foo(); +}; +" +`; + +exports[`instantiating the AWS SDK 1`] = ` +"// +var v1 = require(\\"aws-sdk\\"); +var v2 = v1; +var v0 = v2; +exports.handler = () => { + const client = new v0.DynamoDB(); + return client.config.endpoint; }; -var v0 = v1; -exports.handler = () => { const v3 = new v0(); return v3.foo(); }; " `; exports[`serialize a class declaration 1`] = ` -"var v2 = 0; -const v1 = class Foo { - method() { v2++; return v2; } +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2++; + return v2; + } }; var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method(); + foo.method(); + return v2; +}; " `; exports[`serialize a class declaration with constructor 1`] = ` -"var v2 = 0; -const v1 = class Foo { - constructor() { v2 += 1; } - method() { v2++; return v2; } +"// +var v2 = 0; +var v1 = class Foo { + constructor() { + v2 += 1; + } + method() { + v2++; + return v2; + } }; var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method(); + foo.method(); + return v2; +}; " `; exports[`serialize a class hierarchy 1`] = ` -"var v4 = 0; -const v3 = class Foo { - method() { return (v4 += 1); } +"// +var v4 = 0; +var v3 = class Foo { + method() { + return v4 += 1; + } }; var v2 = v3; -const v1 = class Bar extends v2 { - method() { return super.method() + 1; } +var v1 = class Bar extends v2 { + method() { + return super.method() + 1; + } }; var v0 = v1; -exports.handler = () => { const bar = new v0(); return [bar.method(), v4]; }; +exports.handler = () => { + const bar = new v0(); + return [bar.method(), v4]; +}; " `; exports[`serialize a class mix-in 1`] = ` -"var v3 = 0; -var v2 = () => { return class Foo { - method() { return (v3 += 1); } -}; }; -const v1 = class Bar extends v2() { - method() { return super.method() + 1; } +"// +var v3 = 0; +var v2 = () => { + return class Foo { + method() { + return v3 += 1; + } + }; +}; +var v1 = class Bar extends v2() { + method() { + return super.method() + 1; + } }; var v0 = v1; -exports.handler = () => { const bar = new v0(); return [bar.method(), v3]; }; +exports.handler = () => { + const bar = new v0(); + return [bar.method(), v3]; +}; " `; exports[`serialize a monkey-patched class getter 1`] = ` -"var v2 = 0; -const v1 = class Foo { - get method() { return (v2 += 1); } +"// +var v2 = 0; +var v1 = class Foo { + get method() { + return v2 += 1; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return (v2 += 2); } }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { + return v2 += 2; +} }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method; foo.method; return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method; + foo.method; + return v2; +}; " `; exports[`serialize a monkey-patched class getter and setter 1`] = ` -"var v2 = 0; -const v1 = class Foo { - set method(val) { v2 += val; } - get method() { return v2; } +"// +var v2 = 0; +var v1 = class Foo { + set method(val) { + v2 += val; + } + get method() { + return v2; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: function set(val) { v2 += val + 1; } }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { + return v2 + 1; +}, set: function set(val) { + v2 += val + 1; +} }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; +exports.handler = () => { + const foo = new v0(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; " `; exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"var v2 = 0; -const v1 = class Foo { - set method(val) { v2 += val; } - get method() { return v2; } +"// +var v2 = 0; +var v1 = class Foo { + set method(val) { + v2 += val; + } + get method() { + return v2; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { return v2 + 1; }, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); +Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { + return v2 + 1; +}, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return foo.method; }; +exports.handler = () => { + const foo = new v0(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; " `; exports[`serialize a monkey-patched class method 1`] = ` -"var v2 = 0; -const v1 = class Foo { - method() { v2 += 1; } +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2 += 1; + } +}; +v1.prototype.method = function() { + v2 += 2; }; -v1.prototype.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method(); foo.method(); return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method(); + foo.method(); + return v2; +}; +" +`; + +exports[`serialize a monkey-patched class method that has been re-set 1`] = ` +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2 += 1; + } +}; +v1.prototype.method = function() { + v2 += 2; +}; +var v0 = v1; +var v3 = function method() { + v2 += 1; +}; +exports.handler = () => { + const foo = new v0(); + foo.method(); + v0.prototype.method = v3; + foo.method(); + return v2; +}; " `; exports[`serialize a monkey-patched class setter 1`] = ` -"var v2 = 0; -const v1 = class Foo { - set method(val) { v2 += val; } +"// +var v2 = 0; +var v1 = class Foo { + set method(val) { + v2 += val; + } }; -Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { v2 += val + 1; } }); +Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { + v2 += val + 1; +} }); var v0 = v1; -exports.handler = () => { const foo = new v0(); foo.method = 1; foo.method = 1; return v2; }; +exports.handler = () => { + const foo = new v0(); + foo.method = 1; + foo.method = 1; + return v2; +}; " `; exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var v2 = 0; -const v1 = class Foo { - static method = () => { v2 += 1; }; +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; +}; + +// +var v2 = 0; +var _a; +var v1 = (_a = class { +}, __publicField(_a, \\"method\\", () => { + v2 += 1; +}), _a); +v1.method = function() { + v2 += 2; }; -v1.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { v0.method(); v0.method(); return v2; }; +exports.handler = () => { + v0.method(); + v0.method(); + return v2; +}; " `; exports[`serialize a monkey-patched static class method 1`] = ` -"var v2 = 0; -const v1 = class Foo { - method() { v2 += 1; } +"// +var v2 = 0; +var v1 = class Foo { + method() { + v2 += 1; + } +}; +v1.method = function() { + v2 += 2; }; -v1.method = function () { v2 += 2; }; var v0 = v1; -exports.handler = () => { v0.method(); v0.method(); return v2; }; +exports.handler = () => { + v0.method(); + v0.method(); + return v2; +}; " `; exports[`serialize a monkey-patched static class property 1`] = ` -"const v1 = class Foo { - static prop = 1; +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; }; + +// +var _a; +var v1 = (_a = class { +}, __publicField(_a, \\"prop\\", 1), _a); v1.prop = 2; var v0 = v1; -exports.handler = () => { return v0.prop; }; +exports.handler = () => { + return v0.prop; +}; " `; exports[`serialize an imported module 1`] = ` -"exports.handler = function isNode(a) { return typeof a?.kind === \\"number\\"; }; +"var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __esm = (fn, res) => function __init() { + return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; +}; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === \\"object\\" || typeof from === \\"function\\") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, \\"__esModule\\", { value: true }), mod); + +// src/node-kind.ts +var NodeKind, NodeKindNames; +var init_node_kind = __esm({ + \\"src/node-kind.ts\\"() { + \\"use strict\\"; + NodeKind = /* @__PURE__ */ ((NodeKind2) => { + NodeKind2[NodeKind2[\\"Argument\\"] = 0] = \\"Argument\\"; + NodeKind2[NodeKind2[\\"ArrayBinding\\"] = 1] = \\"ArrayBinding\\"; + NodeKind2[NodeKind2[\\"ArrayLiteralExpr\\"] = 2] = \\"ArrayLiteralExpr\\"; + NodeKind2[NodeKind2[\\"ArrowFunctionExpr\\"] = 3] = \\"ArrowFunctionExpr\\"; + NodeKind2[NodeKind2[\\"AwaitExpr\\"] = 4] = \\"AwaitExpr\\"; + NodeKind2[NodeKind2[\\"BigIntExpr\\"] = 5] = \\"BigIntExpr\\"; + NodeKind2[NodeKind2[\\"BinaryExpr\\"] = 6] = \\"BinaryExpr\\"; + NodeKind2[NodeKind2[\\"BindingElem\\"] = 7] = \\"BindingElem\\"; + NodeKind2[NodeKind2[\\"BlockStmt\\"] = 8] = \\"BlockStmt\\"; + NodeKind2[NodeKind2[\\"BooleanLiteralExpr\\"] = 9] = \\"BooleanLiteralExpr\\"; + NodeKind2[NodeKind2[\\"BreakStmt\\"] = 10] = \\"BreakStmt\\"; + NodeKind2[NodeKind2[\\"CallExpr\\"] = 11] = \\"CallExpr\\"; + NodeKind2[NodeKind2[\\"CaseClause\\"] = 12] = \\"CaseClause\\"; + NodeKind2[NodeKind2[\\"CatchClause\\"] = 13] = \\"CatchClause\\"; + NodeKind2[NodeKind2[\\"ClassDecl\\"] = 14] = \\"ClassDecl\\"; + NodeKind2[NodeKind2[\\"ClassExpr\\"] = 15] = \\"ClassExpr\\"; + NodeKind2[NodeKind2[\\"ClassStaticBlockDecl\\"] = 16] = \\"ClassStaticBlockDecl\\"; + NodeKind2[NodeKind2[\\"ComputedPropertyNameExpr\\"] = 17] = \\"ComputedPropertyNameExpr\\"; + NodeKind2[NodeKind2[\\"ConditionExpr\\"] = 18] = \\"ConditionExpr\\"; + NodeKind2[NodeKind2[\\"ConstructorDecl\\"] = 19] = \\"ConstructorDecl\\"; + NodeKind2[NodeKind2[\\"ContinueStmt\\"] = 20] = \\"ContinueStmt\\"; + NodeKind2[NodeKind2[\\"DebuggerStmt\\"] = 21] = \\"DebuggerStmt\\"; + NodeKind2[NodeKind2[\\"DefaultClause\\"] = 22] = \\"DefaultClause\\"; + NodeKind2[NodeKind2[\\"DeleteExpr\\"] = 23] = \\"DeleteExpr\\"; + NodeKind2[NodeKind2[\\"DoStmt\\"] = 24] = \\"DoStmt\\"; + NodeKind2[NodeKind2[\\"ElementAccessExpr\\"] = 25] = \\"ElementAccessExpr\\"; + NodeKind2[NodeKind2[\\"EmptyStmt\\"] = 26] = \\"EmptyStmt\\"; + NodeKind2[NodeKind2[\\"Err\\"] = 27] = \\"Err\\"; + NodeKind2[NodeKind2[\\"ExprStmt\\"] = 28] = \\"ExprStmt\\"; + NodeKind2[NodeKind2[\\"ForInStmt\\"] = 29] = \\"ForInStmt\\"; + NodeKind2[NodeKind2[\\"ForOfStmt\\"] = 30] = \\"ForOfStmt\\"; + NodeKind2[NodeKind2[\\"ForStmt\\"] = 31] = \\"ForStmt\\"; + NodeKind2[NodeKind2[\\"FunctionDecl\\"] = 32] = \\"FunctionDecl\\"; + NodeKind2[NodeKind2[\\"FunctionExpr\\"] = 33] = \\"FunctionExpr\\"; + NodeKind2[NodeKind2[\\"GetAccessorDecl\\"] = 34] = \\"GetAccessorDecl\\"; + NodeKind2[NodeKind2[\\"Identifier\\"] = 35] = \\"Identifier\\"; + NodeKind2[NodeKind2[\\"IfStmt\\"] = 36] = \\"IfStmt\\"; + NodeKind2[NodeKind2[\\"ImportKeyword\\"] = 37] = \\"ImportKeyword\\"; + NodeKind2[NodeKind2[\\"LabelledStmt\\"] = 38] = \\"LabelledStmt\\"; + NodeKind2[NodeKind2[\\"MethodDecl\\"] = 39] = \\"MethodDecl\\"; + NodeKind2[NodeKind2[\\"NewExpr\\"] = 40] = \\"NewExpr\\"; + NodeKind2[NodeKind2[\\"NullLiteralExpr\\"] = 41] = \\"NullLiteralExpr\\"; + NodeKind2[NodeKind2[\\"NumberLiteralExpr\\"] = 42] = \\"NumberLiteralExpr\\"; + NodeKind2[NodeKind2[\\"ObjectBinding\\"] = 43] = \\"ObjectBinding\\"; + NodeKind2[NodeKind2[\\"ObjectLiteralExpr\\"] = 44] = \\"ObjectLiteralExpr\\"; + NodeKind2[NodeKind2[\\"OmittedExpr\\"] = 45] = \\"OmittedExpr\\"; + NodeKind2[NodeKind2[\\"ParameterDecl\\"] = 46] = \\"ParameterDecl\\"; + NodeKind2[NodeKind2[\\"ParenthesizedExpr\\"] = 47] = \\"ParenthesizedExpr\\"; + NodeKind2[NodeKind2[\\"PostfixUnaryExpr\\"] = 48] = \\"PostfixUnaryExpr\\"; + NodeKind2[NodeKind2[\\"PrivateIdentifier\\"] = 49] = \\"PrivateIdentifier\\"; + NodeKind2[NodeKind2[\\"PropAccessExpr\\"] = 52] = \\"PropAccessExpr\\"; + NodeKind2[NodeKind2[\\"PropAssignExpr\\"] = 53] = \\"PropAssignExpr\\"; + NodeKind2[NodeKind2[\\"PropDecl\\"] = 54] = \\"PropDecl\\"; + NodeKind2[NodeKind2[\\"ReferenceExpr\\"] = 55] = \\"ReferenceExpr\\"; + NodeKind2[NodeKind2[\\"RegexExpr\\"] = 56] = \\"RegexExpr\\"; + NodeKind2[NodeKind2[\\"ReturnStmt\\"] = 57] = \\"ReturnStmt\\"; + NodeKind2[NodeKind2[\\"SetAccessorDecl\\"] = 58] = \\"SetAccessorDecl\\"; + NodeKind2[NodeKind2[\\"SpreadAssignExpr\\"] = 59] = \\"SpreadAssignExpr\\"; + NodeKind2[NodeKind2[\\"SpreadElementExpr\\"] = 60] = \\"SpreadElementExpr\\"; + NodeKind2[NodeKind2[\\"StringLiteralExpr\\"] = 61] = \\"StringLiteralExpr\\"; + NodeKind2[NodeKind2[\\"SuperKeyword\\"] = 62] = \\"SuperKeyword\\"; + NodeKind2[NodeKind2[\\"SwitchStmt\\"] = 63] = \\"SwitchStmt\\"; + NodeKind2[NodeKind2[\\"TaggedTemplateExpr\\"] = 64] = \\"TaggedTemplateExpr\\"; + NodeKind2[NodeKind2[\\"TemplateExpr\\"] = 65] = \\"TemplateExpr\\"; + NodeKind2[NodeKind2[\\"ThisExpr\\"] = 66] = \\"ThisExpr\\"; + NodeKind2[NodeKind2[\\"ThrowStmt\\"] = 67] = \\"ThrowStmt\\"; + NodeKind2[NodeKind2[\\"TryStmt\\"] = 68] = \\"TryStmt\\"; + NodeKind2[NodeKind2[\\"TypeOfExpr\\"] = 69] = \\"TypeOfExpr\\"; + NodeKind2[NodeKind2[\\"UnaryExpr\\"] = 70] = \\"UnaryExpr\\"; + NodeKind2[NodeKind2[\\"UndefinedLiteralExpr\\"] = 71] = \\"UndefinedLiteralExpr\\"; + NodeKind2[NodeKind2[\\"VariableDecl\\"] = 72] = \\"VariableDecl\\"; + NodeKind2[NodeKind2[\\"VariableDeclList\\"] = 73] = \\"VariableDeclList\\"; + NodeKind2[NodeKind2[\\"VariableStmt\\"] = 74] = \\"VariableStmt\\"; + NodeKind2[NodeKind2[\\"VoidExpr\\"] = 75] = \\"VoidExpr\\"; + NodeKind2[NodeKind2[\\"WhileStmt\\"] = 76] = \\"WhileStmt\\"; + NodeKind2[NodeKind2[\\"WithStmt\\"] = 77] = \\"WithStmt\\"; + NodeKind2[NodeKind2[\\"YieldExpr\\"] = 78] = \\"YieldExpr\\"; + NodeKind2[NodeKind2[\\"TemplateHead\\"] = 79] = \\"TemplateHead\\"; + NodeKind2[NodeKind2[\\"TemplateSpan\\"] = 80] = \\"TemplateSpan\\"; + NodeKind2[NodeKind2[\\"TemplateMiddle\\"] = 81] = \\"TemplateMiddle\\"; + NodeKind2[NodeKind2[\\"TemplateTail\\"] = 82] = \\"TemplateTail\\"; + NodeKind2[NodeKind2[\\"NoSubstitutionTemplateLiteral\\"] = 83] = \\"NoSubstitutionTemplateLiteral\\"; + return NodeKind2; + })(NodeKind || {}); + ((NodeKind2) => { + NodeKind2.BindingPattern = [ + 43 /* ObjectBinding */, + 1 /* ArrayBinding */ + ]; + NodeKind2.BindingNames = [ + 35 /* Identifier */, + 55 /* ReferenceExpr */, + ...NodeKind2.BindingPattern + ]; + NodeKind2.ClassMember = [ + 16 /* ClassStaticBlockDecl */, + 19 /* ConstructorDecl */, + 34 /* GetAccessorDecl */, + 39 /* MethodDecl */, + 54 /* PropDecl */, + 58 /* SetAccessorDecl */ + ]; + NodeKind2.ObjectElementExpr = [ + 34 /* GetAccessorDecl */, + 39 /* MethodDecl */, + 53 /* PropAssignExpr */, + 58 /* SetAccessorDecl */, + 59 /* SpreadAssignExpr */ + ]; + NodeKind2.PropName = [ + 35 /* Identifier */, + 49 /* PrivateIdentifier */, + 17 /* ComputedPropertyNameExpr */, + 61 /* StringLiteralExpr */, + 42 /* NumberLiteralExpr */ + ]; + NodeKind2.SwitchClause = [ + 12 /* CaseClause */, + 22 /* DefaultClause */ + ]; + NodeKind2.FunctionLike = [ + 32 /* FunctionDecl */, + 33 /* FunctionExpr */, + 3 /* ArrowFunctionExpr */ + ]; + })(NodeKind || (NodeKind = {})); + NodeKindNames = Object.fromEntries( + Object.entries(NodeKind).flatMap( + ([name, kind]) => typeof kind === \\"number\\" ? [[kind, name]] : [] + ) + ); + } +}); + +// src/guards.ts +var guards_exports = {}; +__export(guards_exports, { + isArgument: () => isArgument, + isArrayBinding: () => isArrayBinding, + isArrayLiteralExpr: () => isArrayLiteralExpr, + isArrowFunctionExpr: () => isArrowFunctionExpr, + isAwaitExpr: () => isAwaitExpr, + isBigIntExpr: () => isBigIntExpr, + isBinaryExpr: () => isBinaryExpr, + isBindingElem: () => isBindingElem, + isBindingPattern: () => isBindingPattern, + isBlockStmt: () => isBlockStmt, + isBooleanLiteralExpr: () => isBooleanLiteralExpr, + isBreakStmt: () => isBreakStmt, + isCallExpr: () => isCallExpr, + isCaseClause: () => isCaseClause, + isCatchClause: () => isCatchClause, + isClassDecl: () => isClassDecl, + isClassExpr: () => isClassExpr, + isClassLike: () => isClassLike, + isClassMember: () => isClassMember, + isClassStaticBlockDecl: () => isClassStaticBlockDecl, + isComputedPropertyNameExpr: () => isComputedPropertyNameExpr, + isConditionExpr: () => isConditionExpr, + isConstructorDecl: () => isConstructorDecl, + isContinueStmt: () => isContinueStmt, + isDebuggerStmt: () => isDebuggerStmt, + isDecl: () => isDecl, + isDefaultClause: () => isDefaultClause, + isDeleteExpr: () => isDeleteExpr, + isDoStmt: () => isDoStmt, + isElementAccessExpr: () => isElementAccessExpr, + isEmptyStmt: () => isEmptyStmt, + isErr: () => isErr, + isExpr: () => isExpr, + isExprStmt: () => isExprStmt, + isForInStmt: () => isForInStmt, + isForOfStmt: () => isForOfStmt, + isForStmt: () => isForStmt, + isFunctionDecl: () => isFunctionDecl, + isFunctionExpr: () => isFunctionExpr, + isFunctionLike: () => isFunctionLike, + isGetAccessorDecl: () => isGetAccessorDecl, + isIdentifier: () => isIdentifier, + isIfStmt: () => isIfStmt, + isImportKeyword: () => isImportKeyword, + isLabelledStmt: () => isLabelledStmt, + isLiteralExpr: () => isLiteralExpr, + isLiteralPrimitiveExpr: () => isLiteralPrimitiveExpr, + isMethodDecl: () => isMethodDecl, + isNewExpr: () => isNewExpr, + isNoSubstitutionTemplateLiteral: () => isNoSubstitutionTemplateLiteral, + isNode: () => isNode, + isNullLiteralExpr: () => isNullLiteralExpr, + isNumberLiteralExpr: () => isNumberLiteralExpr, + isObjectBinding: () => isObjectBinding, + isObjectElementExpr: () => isObjectElementExpr, + isObjectLiteralExpr: () => isObjectLiteralExpr, + isOmittedExpr: () => isOmittedExpr, + isParameterDecl: () => isParameterDecl, + isParenthesizedExpr: () => isParenthesizedExpr, + isPostfixUnaryExpr: () => isPostfixUnaryExpr, + isPrivateIdentifier: () => isPrivateIdentifier, + isPropAccessExpr: () => isPropAccessExpr, + isPropAssignExpr: () => isPropAssignExpr, + isPropDecl: () => isPropDecl, + isPropName: () => isPropName, + isReferenceExpr: () => isReferenceExpr, + isRegexExpr: () => isRegexExpr, + isReturnStmt: () => isReturnStmt, + isSetAccessorDecl: () => isSetAccessorDecl, + isSpreadAssignExpr: () => isSpreadAssignExpr, + isSpreadElementExpr: () => isSpreadElementExpr, + isStmt: () => isStmt, + isStringLiteralExpr: () => isStringLiteralExpr, + isSuperKeyword: () => isSuperKeyword, + isSwitchClause: () => isSwitchClause, + isSwitchStmt: () => isSwitchStmt, + isTaggedTemplateExpr: () => isTaggedTemplateExpr, + isTemplateExpr: () => isTemplateExpr, + isTemplateHead: () => isTemplateHead, + isTemplateMiddle: () => isTemplateMiddle, + isTemplateSpan: () => isTemplateSpan, + isTemplateTail: () => isTemplateTail, + isThisExpr: () => isThisExpr, + isThrowStmt: () => isThrowStmt, + isTryStmt: () => isTryStmt, + isTypeOfExpr: () => isTypeOfExpr, + isUnaryExpr: () => isUnaryExpr, + isUndefinedLiteralExpr: () => isUndefinedLiteralExpr, + isVariableDecl: () => isVariableDecl, + isVariableDeclList: () => isVariableDeclList, + isVariableReference: () => isVariableReference, + isVariableStmt: () => isVariableStmt, + isVoidExpr: () => isVoidExpr, + isWhileStmt: () => isWhileStmt, + isWithStmt: () => isWithStmt, + isYieldExpr: () => isYieldExpr, + typeGuard: () => typeGuard +}); +function isNode(a) { + return typeof (a == null ? void 0 : a.kind) === \\"number\\"; +} +function isExpr(a) { + return isNode(a) && a.nodeKind === \\"Expr\\"; +} +function isStmt(a) { + return isNode(a) && a.nodeKind === \\"Stmt\\"; +} +function isDecl(a) { + return isNode(a) && a.nodeKind === \\"Decl\\"; +} +function typeGuard(...kinds) { + return (a) => kinds.find((kind) => (a == null ? void 0 : a.kind) === kind) !== void 0; +} +function isVariableReference(expr) { + return isIdentifier(expr) || isPropAccessExpr(expr) || isElementAccessExpr(expr); +} +var isErr, isArgument, isArrayLiteralExpr, isArrowFunctionExpr, isAwaitExpr, isBigIntExpr, isBinaryExpr, isBooleanLiteralExpr, isCallExpr, isClassExpr, isComputedPropertyNameExpr, isConditionExpr, isDeleteExpr, isElementAccessExpr, isFunctionExpr, isIdentifier, isImportKeyword, isNewExpr, isNoSubstitutionTemplateLiteral, isNullLiteralExpr, isNumberLiteralExpr, isObjectLiteralExpr, isOmittedExpr, isParenthesizedExpr, isPostfixUnaryExpr, isPrivateIdentifier, isPropAccessExpr, isPropAssignExpr, isReferenceExpr, isRegexExpr, isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, isSuperKeyword, isTemplateExpr, isThisExpr, isTypeOfExpr, isUnaryExpr, isUndefinedLiteralExpr, isVoidExpr, isYieldExpr, isObjectElementExpr, isLiteralExpr, isLiteralPrimitiveExpr, isTemplateHead, isTemplateSpan, isTemplateMiddle, isTemplateTail, isBlockStmt, isBreakStmt, isCaseClause, isCatchClause, isContinueStmt, isDebuggerStmt, isDefaultClause, isDoStmt, isEmptyStmt, isExprStmt, isForInStmt, isForOfStmt, isForStmt, isIfStmt, isLabelledStmt, isReturnStmt, isSwitchStmt, isTaggedTemplateExpr, isThrowStmt, isTryStmt, isVariableStmt, isWhileStmt, isWithStmt, isSwitchClause, isFunctionLike, isClassLike, isClassDecl, isClassStaticBlockDecl, isConstructorDecl, isFunctionDecl, isGetAccessorDecl, isMethodDecl, isParameterDecl, isPropDecl, isSetAccessorDecl, isClassMember, isVariableDecl, isArrayBinding, isBindingElem, isObjectBinding, isPropName, isBindingPattern, isVariableDeclList; +var init_guards = __esm({ + \\"src/guards.ts\\"() { + \\"use strict\\"; + init_node_kind(); + isErr = typeGuard(27 /* Err */); + isArgument = typeGuard(0 /* Argument */); + isArrayLiteralExpr = typeGuard(2 /* ArrayLiteralExpr */); + isArrowFunctionExpr = typeGuard(3 /* ArrowFunctionExpr */); + isAwaitExpr = typeGuard(4 /* AwaitExpr */); + isBigIntExpr = typeGuard(5 /* BigIntExpr */); + isBinaryExpr = typeGuard(6 /* BinaryExpr */); + isBooleanLiteralExpr = typeGuard(9 /* BooleanLiteralExpr */); + isCallExpr = typeGuard(11 /* CallExpr */); + isClassExpr = typeGuard(15 /* ClassExpr */); + isComputedPropertyNameExpr = typeGuard( + 17 /* ComputedPropertyNameExpr */ + ); + isConditionExpr = typeGuard(18 /* ConditionExpr */); + isDeleteExpr = typeGuard(23 /* DeleteExpr */); + isElementAccessExpr = typeGuard(25 /* ElementAccessExpr */); + isFunctionExpr = typeGuard(33 /* FunctionExpr */); + isIdentifier = typeGuard(35 /* Identifier */); + isImportKeyword = typeGuard(37 /* ImportKeyword */); + isNewExpr = typeGuard(40 /* NewExpr */); + isNoSubstitutionTemplateLiteral = typeGuard( + 83 /* NoSubstitutionTemplateLiteral */ + ); + isNullLiteralExpr = typeGuard(41 /* NullLiteralExpr */); + isNumberLiteralExpr = typeGuard(42 /* NumberLiteralExpr */); + isObjectLiteralExpr = typeGuard(44 /* ObjectLiteralExpr */); + isOmittedExpr = typeGuard(45 /* OmittedExpr */); + isParenthesizedExpr = typeGuard(47 /* ParenthesizedExpr */); + isPostfixUnaryExpr = typeGuard(48 /* PostfixUnaryExpr */); + isPrivateIdentifier = typeGuard(49 /* PrivateIdentifier */); + isPropAccessExpr = typeGuard(52 /* PropAccessExpr */); + isPropAssignExpr = typeGuard(53 /* PropAssignExpr */); + isReferenceExpr = typeGuard(55 /* ReferenceExpr */); + isRegexExpr = typeGuard(56 /* RegexExpr */); + isSpreadAssignExpr = typeGuard(59 /* SpreadAssignExpr */); + isSpreadElementExpr = typeGuard(60 /* SpreadElementExpr */); + isStringLiteralExpr = typeGuard(61 /* StringLiteralExpr */); + isSuperKeyword = typeGuard(62 /* SuperKeyword */); + isTemplateExpr = typeGuard(65 /* TemplateExpr */); + isThisExpr = typeGuard(66 /* ThisExpr */); + isTypeOfExpr = typeGuard(69 /* TypeOfExpr */); + isUnaryExpr = typeGuard(70 /* UnaryExpr */); + isUndefinedLiteralExpr = typeGuard(71 /* UndefinedLiteralExpr */); + isVoidExpr = typeGuard(75 /* VoidExpr */); + isYieldExpr = typeGuard(78 /* YieldExpr */); + isObjectElementExpr = typeGuard( + 53 /* PropAssignExpr */, + 59 /* SpreadAssignExpr */ + ); + isLiteralExpr = typeGuard( + 2 /* ArrayLiteralExpr */, + 9 /* BooleanLiteralExpr */, + 71 /* UndefinedLiteralExpr */, + 41 /* NullLiteralExpr */, + 42 /* NumberLiteralExpr */, + 44 /* ObjectLiteralExpr */, + 61 /* StringLiteralExpr */ + ); + isLiteralPrimitiveExpr = typeGuard( + 9 /* BooleanLiteralExpr */, + 41 /* NullLiteralExpr */, + 42 /* NumberLiteralExpr */, + 61 /* StringLiteralExpr */ + ); + isTemplateHead = typeGuard(79 /* TemplateHead */); + isTemplateSpan = typeGuard(80 /* TemplateSpan */); + isTemplateMiddle = typeGuard(81 /* TemplateMiddle */); + isTemplateTail = typeGuard(82 /* TemplateTail */); + isBlockStmt = typeGuard(8 /* BlockStmt */); + isBreakStmt = typeGuard(10 /* BreakStmt */); + isCaseClause = typeGuard(12 /* CaseClause */); + isCatchClause = typeGuard(13 /* CatchClause */); + isContinueStmt = typeGuard(20 /* ContinueStmt */); + isDebuggerStmt = typeGuard(21 /* DebuggerStmt */); + isDefaultClause = typeGuard(22 /* DefaultClause */); + isDoStmt = typeGuard(24 /* DoStmt */); + isEmptyStmt = typeGuard(26 /* EmptyStmt */); + isExprStmt = typeGuard(28 /* ExprStmt */); + isForInStmt = typeGuard(29 /* ForInStmt */); + isForOfStmt = typeGuard(30 /* ForOfStmt */); + isForStmt = typeGuard(31 /* ForStmt */); + isIfStmt = typeGuard(36 /* IfStmt */); + isLabelledStmt = typeGuard(38 /* LabelledStmt */); + isReturnStmt = typeGuard(57 /* ReturnStmt */); + isSwitchStmt = typeGuard(63 /* SwitchStmt */); + isTaggedTemplateExpr = typeGuard(64 /* TaggedTemplateExpr */); + isThrowStmt = typeGuard(67 /* ThrowStmt */); + isTryStmt = typeGuard(68 /* TryStmt */); + isVariableStmt = typeGuard(74 /* VariableStmt */); + isWhileStmt = typeGuard(76 /* WhileStmt */); + isWithStmt = typeGuard(77 /* WithStmt */); + isSwitchClause = typeGuard( + 12 /* CaseClause */, + 22 /* DefaultClause */ + ); + isFunctionLike = typeGuard( + 32 /* FunctionDecl */, + 33 /* FunctionExpr */, + 3 /* ArrowFunctionExpr */ + ); + isClassLike = typeGuard(14 /* ClassDecl */, 15 /* ClassExpr */); + isClassDecl = typeGuard(14 /* ClassDecl */); + isClassStaticBlockDecl = typeGuard(16 /* ClassStaticBlockDecl */); + isConstructorDecl = typeGuard(19 /* ConstructorDecl */); + isFunctionDecl = typeGuard(32 /* FunctionDecl */); + isGetAccessorDecl = typeGuard(34 /* GetAccessorDecl */); + isMethodDecl = typeGuard(39 /* MethodDecl */); + isParameterDecl = typeGuard(46 /* ParameterDecl */); + isPropDecl = typeGuard(54 /* PropDecl */); + isSetAccessorDecl = typeGuard(58 /* SetAccessorDecl */); + isClassMember = typeGuard( + 16 /* ClassStaticBlockDecl */, + 19 /* ConstructorDecl */, + 39 /* MethodDecl */, + 54 /* PropDecl */ + ); + isVariableDecl = typeGuard(72 /* VariableDecl */); + isArrayBinding = typeGuard(1 /* ArrayBinding */); + isBindingElem = typeGuard(7 /* BindingElem */); + isObjectBinding = typeGuard(43 /* ObjectBinding */); + isPropName = typeGuard( + 17 /* ComputedPropertyNameExpr */, + 35 /* Identifier */, + 42 /* NumberLiteralExpr */, + 61 /* StringLiteralExpr */ + ); + isBindingPattern = (a) => isNode(a) && (isObjectBinding(a) || isArrayBinding(a)); + isVariableDeclList = typeGuard(73 /* VariableDeclList */); + } +}); + +// +var v0 = (init_guards(), __toCommonJS(guards_exports)); +var v1 = v0.isNode; +exports.handler = v1; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 24789e85..f1648dd6 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1,11 +1,15 @@ import "jest"; import fs from "fs"; import path from "path"; +import AWS from "aws-sdk"; import { v4 } from "uuid"; import { AnyFunction } from "../src"; import { isNode } from "../src/guards"; -import { serializeClosure } from "../src/serialize-closure"; +import { + serializeClosure, + SerializeClosureProps, +} from "../src/serialize-closure"; // set to false to inspect generated js files in .test/ const cleanup = true; @@ -41,8 +45,11 @@ async function rmrf(file: string) { } } -async function expectClosure(f: F): Promise { - const closure = serializeClosure(f); +async function expectClosure( + f: F, + options?: SerializeClosureProps +): Promise { + const closure = serializeClosure(f, options); expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); @@ -54,7 +61,7 @@ test("all observers of a free variable share the same reference", async () => { let i = 0; function up() { - i += 1; + i += 2; } function down() { @@ -67,7 +74,7 @@ test("all observers of a free variable share the same reference", async () => { return i; }); - expect(closure()).toEqual(0); + expect(closure()).toEqual(1); }); test("serialize an imported module", async () => { @@ -199,6 +206,37 @@ test("serialize a monkey-patched class method", async () => { expect(closure()).toEqual(4); }); +test("serialize a monkey-patched class method that has been re-set", async () => { + let i = 0; + class Foo { + public method() { + i += 1; + } + } + + const method = Foo.prototype.method; + + Foo.prototype.method = function () { + i += 2; + }; + + const closure = () => { + const foo = new Foo(); + + foo.method(); + + Foo.prototype.method = method; + + foo.method(); + return i; + }; + + const serialized = await expectClosure(closure); + + expect(serialized()).toEqual(3); + expect(closure()).toEqual(3); +}); + test("serialize a monkey-patched class getter", async () => { let i = 0; class Foo { @@ -372,3 +410,13 @@ test("avoid name collision with a closure's lexical scope", async () => { expect(closure()).toEqual(1); }); + +test("instantiating the AWS SDK", async () => { + const closure = await expectClosure(() => { + const client = new AWS.DynamoDB(); + + return client.config.endpoint; + }); + + expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); +}); diff --git a/yarn.lock b/yarn.lock index 10f2c2d1..fc57c2c4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2328,6 +2328,22 @@ aws-sdk@^2.1079.0, aws-sdk@^2.1093.0, aws-sdk@^2.1113.0: uuid "8.0.0" xml2js "0.4.19" +aws-sdk@^2.1193.0: + version "2.1193.0" + resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1193.0.tgz#34d3ed3ea19a776dafd954183588169c6daa4764" + integrity sha512-nSbljBZhxNn+LmENc14md+y1Z+U8BUcS1LLlOxeJvjYAkkGbPf29Bl8FvzbRsZuoxtF6N1Mkel3AI5XIx7mkew== + dependencies: + buffer "4.9.2" + events "1.1.1" + ieee754 "1.1.13" + jmespath "0.16.0" + querystring "0.2.0" + sax "1.2.1" + url "0.10.3" + util "^0.12.4" + uuid "8.0.0" + xml2js "0.4.19" + axios@^0.27.2: version "0.27.2" resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" From 9d85580b3f39c5e42c6e3e05178d9368fe6764ab Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 11 Aug 2022 16:59:14 -0700 Subject: [PATCH 064/107] feat: add test for importing AWS SDK v3 --- .projen/deps.json | 4 + .projenrc.ts | 1 + package.json | 1 + src/serialize-closure.ts | 7 +- .../serialize-closure.test.ts.snap | 23681 ++++++++++++++++ test/serialize-closure.test.ts | 11 + yarn.lock | 2 +- 7 files changed, 23705 insertions(+), 2 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index c4626841..bc85e1bc 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -20,6 +20,10 @@ "version": "2.28.1", "type": "build" }, + { + "name": "@aws-sdk/client-dynamodb", + "type": "build" + }, { "name": "@swc/jest", "type": "build" diff --git a/.projenrc.ts b/.projenrc.ts index 6467a271..86a5b109 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -104,6 +104,7 @@ const project = new CustomTypescriptProject({ /** * For CDK Local Stack tests */ + "@aws-sdk/client-dynamodb", `@aws-cdk/cloud-assembly-schema@${MIN_CDK_VERSION}`, `@aws-cdk/cloudformation-diff@${MIN_CDK_VERSION}`, `@aws-cdk/cx-api@${MIN_CDK_VERSION}`, diff --git a/package.json b/package.json index ea5c13c7..5bb1adcf 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@aws-cdk/cloud-assembly-schema": "2.28.1", "@aws-cdk/cloudformation-diff": "2.28.1", "@aws-cdk/cx-api": "2.28.1", + "@aws-sdk/client-dynamodb": "^3.145.0", "@swc/jest": "^0.2.22", "@types/fs-extra": "^9.0.13", "@types/jest": "^28.1.6", diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 4a5a836a..af965d90 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -200,7 +200,12 @@ export function serializeClosure( metafile: true, platform: "node", target: "node14", - external: ["aws-sdk", "aws-cdk-lib", "esbuild"], + external: [ + "aws-sdk", + "aws-cdk-lib", + "esbuild", + ...(options?.external ?? []), + ], }); if (bundle.outputFiles[0] === undefined) { diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index e8698800..2be7213c 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -48,6 +48,23687 @@ exports.handler = () => { " `; +exports[`instantiating the AWS SDK v3 1`] = ` +"var __getOwnPropNames = Object.getOwnPropertyNames; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; + +// node_modules/tslib/tslib.js +var require_tslib = __commonJS({ + \\"node_modules/tslib/tslib.js\\"(exports2, module2) { + var __extends; + var __assign; + var __rest; + var __decorate; + var __param; + var __metadata; + var __awaiter; + var __generator; + var __exportStar; + var __values; + var __read; + var __spread; + var __spreadArrays; + var __spreadArray; + var __await; + var __asyncGenerator; + var __asyncDelegator; + var __asyncValues; + var __makeTemplateObject; + var __importStar; + var __importDefault; + var __classPrivateFieldGet; + var __classPrivateFieldSet; + var __classPrivateFieldIn; + var __createBinding; + (function(factory) { + var root = typeof global === \\"object\\" ? global : typeof self === \\"object\\" ? self : typeof this === \\"object\\" ? this : {}; + if (typeof define === \\"function\\" && define.amd) { + define(\\"tslib\\", [\\"exports\\"], function(exports3) { + factory(createExporter(root, createExporter(exports3))); + }); + } else if (typeof module2 === \\"object\\" && typeof module2.exports === \\"object\\") { + factory(createExporter(root, createExporter(module2.exports))); + } else { + factory(createExporter(root)); + } + function createExporter(exports3, previous) { + if (exports3 !== root) { + if (typeof Object.create === \\"function\\") { + Object.defineProperty(exports3, \\"__esModule\\", { value: true }); + } else { + exports3.__esModule = true; + } + } + return function(id, v) { + return exports3[id] = previous ? previous(id, v) : v; + }; + } + })(function(exporter) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) + if (Object.prototype.hasOwnProperty.call(b, p)) + d[p] = b[p]; + }; + __extends = function(d, b) { + if (typeof b !== \\"function\\" && b !== null) + throw new TypeError(\\"Class extends value \\" + String(b) + \\" is not a constructor or null\\"); + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + __rest = function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === \\"function\\") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + __decorate = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === \\"object\\" && typeof Reflect.decorate === \\"function\\") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + __param = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + __metadata = function(metadataKey, metadataValue) { + if (typeof Reflect === \\"object\\" && typeof Reflect.metadata === \\"function\\") + return Reflect.metadata(metadataKey, metadataValue); + }; + __awaiter = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator[\\"throw\\"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + __generator = function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), \\"throw\\": verb(1), \\"return\\": verb(2) }, typeof Symbol === \\"function\\" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) + throw new TypeError(\\"Generator is already executing.\\"); + while (_) + try { + if (f = 1, y && (t = op[0] & 2 ? y[\\"return\\"] : op[0] ? y[\\"throw\\"] || ((t = y[\\"return\\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + __exportStar = function(m, o) { + for (var p in m) + if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(o, p)) + __createBinding(o, m, p); + }; + __createBinding = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || (\\"get\\" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; + __values = function(o) { + var s = typeof Symbol === \\"function\\" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === \\"number\\") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? \\"Object is not iterable.\\" : \\"Symbol.iterator is not defined.\\"); + }; + __read = function(o, n) { + var m = typeof Symbol === \\"function\\" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i[\\"return\\"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar; + }; + __spread = function() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + __spreadArrays = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + __spreadArray = function(to, from, pack) { + if (pack || arguments.length === 2) + for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) + ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + __await = function(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume(\\"next\\", value); + } + function reject(value) { + resume(\\"throw\\", value); + } + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + __asyncDelegator = function(o) { + var i, p; + return i = {}, verb(\\"next\\"), verb(\\"throw\\", function(e) { + throw e; + }), verb(\\"return\\"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await(o[n](v)), done: n === \\"return\\" } : f ? f(v) : v; + } : f; + } + }; + __asyncValues = function(o) { + if (!Symbol.asyncIterator) + throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === \\"function\\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v3) { + resolve({ value: v3, done: d }); + }, reject); + } + }; + __makeTemplateObject = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, \\"raw\\", { value: raw }); + } else { + cooked.raw = raw; + } + return cooked; + }; + var __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, \\"default\\", { enumerable: true, value: v }); + } : function(o, v) { + o[\\"default\\"] = v; + }; + __importStar = function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== \\"default\\" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + __importDefault = function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + __classPrivateFieldGet = function(receiver, state, kind, f) { + if (kind === \\"a\\" && !f) + throw new TypeError(\\"Private accessor was defined without a getter\\"); + if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError(\\"Cannot read private member from an object whose class did not declare it\\"); + return kind === \\"m\\" ? f : kind === \\"a\\" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + __classPrivateFieldSet = function(receiver, state, value, kind, f) { + if (kind === \\"m\\") + throw new TypeError(\\"Private method is not writable\\"); + if (kind === \\"a\\" && !f) + throw new TypeError(\\"Private accessor was defined without a setter\\"); + if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError(\\"Cannot write private member to an object whose class did not declare it\\"); + return kind === \\"a\\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; + }; + __classPrivateFieldIn = function(state, receiver) { + if (receiver === null || typeof receiver !== \\"object\\" && typeof receiver !== \\"function\\") + throw new TypeError(\\"Cannot use 'in' operator on non-object\\"); + return typeof state === \\"function\\" ? receiver === state : state.has(receiver); + }; + exporter(\\"__extends\\", __extends); + exporter(\\"__assign\\", __assign); + exporter(\\"__rest\\", __rest); + exporter(\\"__decorate\\", __decorate); + exporter(\\"__param\\", __param); + exporter(\\"__metadata\\", __metadata); + exporter(\\"__awaiter\\", __awaiter); + exporter(\\"__generator\\", __generator); + exporter(\\"__exportStar\\", __exportStar); + exporter(\\"__createBinding\\", __createBinding); + exporter(\\"__values\\", __values); + exporter(\\"__read\\", __read); + exporter(\\"__spread\\", __spread); + exporter(\\"__spreadArrays\\", __spreadArrays); + exporter(\\"__spreadArray\\", __spreadArray); + exporter(\\"__await\\", __await); + exporter(\\"__asyncGenerator\\", __asyncGenerator); + exporter(\\"__asyncDelegator\\", __asyncDelegator); + exporter(\\"__asyncValues\\", __asyncValues); + exporter(\\"__makeTemplateObject\\", __makeTemplateObject); + exporter(\\"__importStar\\", __importStar); + exporter(\\"__importDefault\\", __importDefault); + exporter(\\"__classPrivateFieldGet\\", __classPrivateFieldGet); + exporter(\\"__classPrivateFieldSet\\", __classPrivateFieldSet); + exporter(\\"__classPrivateFieldIn\\", __classPrivateFieldIn); + }); + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js +var require_deserializerMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.deserializerMiddleware = void 0; + var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed + }; + } catch (error) { + Object.defineProperty(error, \\"$response\\", { + value: response + }); + throw error; + } + }; + exports2.deserializerMiddleware = deserializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js +var require_serializerMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.serializerMiddleware = void 0; + var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + const request = await serializer(args.input, options); + return next({ + ...args, + request + }); + }; + exports2.serializerMiddleware = serializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js +var require_serdePlugin = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSerdePlugin = exports2.serializerMiddlewareOption = exports2.deserializerMiddlewareOption = void 0; + var deserializerMiddleware_1 = require_deserializerMiddleware(); + var serializerMiddleware_1 = require_serializerMiddleware(); + exports2.deserializerMiddlewareOption = { + name: \\"deserializerMiddleware\\", + step: \\"deserialize\\", + tags: [\\"DESERIALIZER\\"], + override: true + }; + exports2.serializerMiddlewareOption = { + name: \\"serializerMiddleware\\", + step: \\"serialize\\", + tags: [\\"SERIALIZER\\"], + override: true + }; + function getSerdePlugin(config, serializer, deserializer) { + return { + applyToStack: (commandStack) => { + commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports2.deserializerMiddlewareOption); + commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports2.serializerMiddlewareOption); + } + }; + } + exports2.getSerdePlugin = getSerdePlugin; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js +var require_dist_cjs = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_deserializerMiddleware(), exports2); + tslib_1.__exportStar(require_serdePlugin(), exports2); + tslib_1.__exportStar(require_serializerMiddleware(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js +var require_MiddlewareStack = __commonJS({ + \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.constructStack = void 0; + var constructStack = () => { + let absoluteEntries = []; + let relativeEntries = []; + const entriesNameSet = /* @__PURE__ */ new Set(); + const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || \\"normal\\"] - priorityWeights[a.priority || \\"normal\\"]); + const removeByName = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.name && entry.name === toRemove) { + isRemoved = true; + entriesNameSet.delete(toRemove); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const removeByReference = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.middleware === toRemove) { + isRemoved = true; + if (entry.name) + entriesNameSet.delete(entry.name); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const cloneTo = (toStack) => { + absoluteEntries.forEach((entry) => { + toStack.add(entry.middleware, { ...entry }); + }); + relativeEntries.forEach((entry) => { + toStack.addRelativeTo(entry.middleware, { ...entry }); + }); + return toStack; + }; + const expandRelativeMiddlewareList = (from) => { + const expandedMiddlewareList = []; + from.before.forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + expandedMiddlewareList.push(from); + from.after.reverse().forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + return expandedMiddlewareList; + }; + const getMiddlewareList = () => { + const normalizedAbsoluteEntries = []; + const normalizedRelativeEntries = []; + const normalizedEntriesNameMap = {}; + absoluteEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedAbsoluteEntries.push(normalizedEntry); + }); + relativeEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedRelativeEntries.push(normalizedEntry); + }); + normalizedRelativeEntries.forEach((entry) => { + if (entry.toMiddleware) { + const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; + if (toMiddleware === void 0) { + throw new Error(\`\${entry.toMiddleware} is not found when adding \${entry.name || \\"anonymous\\"} middleware \${entry.relation} \${entry.toMiddleware}\`); + } + if (entry.relation === \\"after\\") { + toMiddleware.after.push(entry); + } + if (entry.relation === \\"before\\") { + toMiddleware.before.push(entry); + } + } + }); + const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { + wholeList.push(...expendedMiddlewareList); + return wholeList; + }, []); + return mainChain.map((entry) => entry.middleware); + }; + const stack = { + add: (middleware, options = {}) => { + const { name, override } = options; + const entry = { + step: \\"initialize\\", + priority: \\"normal\\", + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(\`Duplicate middleware name '\${name}'\`); + const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { + throw new Error(\`\\"\${name}\\" middleware with \${toOverride.priority} priority in \${toOverride.step} step cannot be overridden by same-name middleware with \${entry.priority} priority in \${entry.step} step.\`); + } + absoluteEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + absoluteEntries.push(entry); + }, + addRelativeTo: (middleware, options) => { + const { name, override } = options; + const entry = { + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(\`Duplicate middleware name '\${name}'\`); + const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error(\`\\"\${name}\\" middleware \${toOverride.relation} \\"\${toOverride.toMiddleware}\\" middleware cannot be overridden by same-name middleware \${entry.relation} \\"\${entry.toMiddleware}\\" middleware.\`); + } + relativeEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + relativeEntries.push(entry); + }, + clone: () => cloneTo((0, exports2.constructStack)()), + use: (plugin) => { + plugin.applyToStack(stack); + }, + remove: (toRemove) => { + if (typeof toRemove === \\"string\\") + return removeByName(toRemove); + else + return removeByReference(toRemove); + }, + removeByTag: (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const { tags, name } = entry; + if (tags && tags.includes(toRemove)) { + if (name) + entriesNameSet.delete(name); + isRemoved = true; + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }, + concat: (from) => { + const cloned = cloneTo((0, exports2.constructStack)()); + cloned.use(from); + return cloned; + }, + applyToStack: cloneTo, + resolve: (handler, context) => { + for (const middleware of getMiddlewareList().reverse()) { + handler = middleware(handler, context); + } + return handler; + } + }; + return stack; + }; + exports2.constructStack = constructStack; + var stepWeights = { + initialize: 5, + serialize: 4, + build: 3, + finalizeRequest: 2, + deserialize: 1 + }; + var priorityWeights = { + high: 3, + normal: 2, + low: 1 + }; + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js +var require_dist_cjs2 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_MiddlewareStack(), exports2); + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/client.js +var require_client = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/client.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Client = void 0; + var middleware_stack_1 = require_dist_cjs2(); + var Client = class { + constructor(config) { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this.config = config; + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== \\"function\\" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === \\"function\\" ? optionsOrCb : cb; + const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + if (callback) { + handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { + }); + } else { + return handler(command).then((result) => result.output); + } + } + destroy() { + if (this.config.requestHandler.destroy) + this.config.requestHandler.destroy(); + } + }; + exports2.Client = Client; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/command.js +var require_command = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/command.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Command = void 0; + var middleware_stack_1 = require_dist_cjs2(); + var Command = class { + constructor() { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + } + }; + exports2.Command = Command; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js +var require_constants = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SENSITIVE_STRING = void 0; + exports2.SENSITIVE_STRING = \\"***SensitiveInformation***\\"; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js +var require_parse_utils = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.strictParseByte = exports2.strictParseShort = exports2.strictParseInt32 = exports2.strictParseInt = exports2.strictParseLong = exports2.limitedParseFloat32 = exports2.limitedParseFloat = exports2.handleFloat = exports2.limitedParseDouble = exports2.strictParseFloat32 = exports2.strictParseFloat = exports2.strictParseDouble = exports2.expectUnion = exports2.expectString = exports2.expectObject = exports2.expectNonNull = exports2.expectByte = exports2.expectShort = exports2.expectInt32 = exports2.expectInt = exports2.expectLong = exports2.expectFloat32 = exports2.expectNumber = exports2.expectBoolean = exports2.parseBoolean = void 0; + var parseBoolean = (value) => { + switch (value) { + case \\"true\\": + return true; + case \\"false\\": + return false; + default: + throw new Error(\`Unable to parse boolean value \\"\${value}\\"\`); + } + }; + exports2.parseBoolean = parseBoolean; + var expectBoolean = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"boolean\\") { + return value; + } + throw new TypeError(\`Expected boolean, got \${typeof value}\`); + }; + exports2.expectBoolean = expectBoolean; + var expectNumber = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"number\\") { + return value; + } + throw new TypeError(\`Expected number, got \${typeof value}\`); + }; + exports2.expectNumber = expectNumber; + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = (value) => { + const expected = (0, exports2.expectNumber)(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(\`Expected 32-bit float, got \${value}\`); + } + } + return expected; + }; + exports2.expectFloat32 = expectFloat32; + var expectLong = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(\`Expected integer, got \${typeof value}\`); + }; + exports2.expectLong = expectLong; + exports2.expectInt = exports2.expectLong; + var expectInt32 = (value) => expectSizedInt(value, 32); + exports2.expectInt32 = expectInt32; + var expectShort = (value) => expectSizedInt(value, 16); + exports2.expectShort = expectShort; + var expectByte = (value) => expectSizedInt(value, 8); + exports2.expectByte = expectByte; + var expectSizedInt = (value, size) => { + const expected = (0, exports2.expectLong)(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(\`Expected \${size}-bit integer, got \${value}\`); + } + return expected; + }; + var castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }; + var expectNonNull = (value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(\`Expected a non-null value for \${location}\`); + } + throw new TypeError(\\"Expected a non-null value\\"); + } + return value; + }; + exports2.expectNonNull = expectNonNull; + var expectObject = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"object\\" && !Array.isArray(value)) { + return value; + } + throw new TypeError(\`Expected object, got \${typeof value}\`); + }; + exports2.expectObject = expectObject; + var expectString = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"string\\") { + return value; + } + throw new TypeError(\`Expected string, got \${typeof value}\`); + }; + exports2.expectString = expectString; + var expectUnion = (value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = (0, exports2.expectObject)(value); + const setKeys = Object.entries(asObject).filter(([_, v]) => v !== null && v !== void 0).map(([k, _]) => k); + if (setKeys.length === 0) { + throw new TypeError(\`Unions must have exactly one non-null member\`); + } + if (setKeys.length > 1) { + throw new TypeError(\`Unions must have exactly one non-null member. Keys \${setKeys} were not null.\`); + } + return asObject; + }; + exports2.expectUnion = expectUnion; + var strictParseDouble = (value) => { + if (typeof value == \\"string\\") { + return (0, exports2.expectNumber)(parseNumber(value)); + } + return (0, exports2.expectNumber)(value); + }; + exports2.strictParseDouble = strictParseDouble; + exports2.strictParseFloat = exports2.strictParseDouble; + var strictParseFloat32 = (value) => { + if (typeof value == \\"string\\") { + return (0, exports2.expectFloat32)(parseNumber(value)); + } + return (0, exports2.expectFloat32)(value); + }; + exports2.strictParseFloat32 = strictParseFloat32; + var NUMBER_REGEX = /(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = (value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(\`Expected real number, got implicit NaN\`); + } + return parseFloat(value); + }; + var limitedParseDouble = (value) => { + if (typeof value == \\"string\\") { + return parseFloatString(value); + } + return (0, exports2.expectNumber)(value); + }; + exports2.limitedParseDouble = limitedParseDouble; + exports2.handleFloat = exports2.limitedParseDouble; + exports2.limitedParseFloat = exports2.limitedParseDouble; + var limitedParseFloat32 = (value) => { + if (typeof value == \\"string\\") { + return parseFloatString(value); + } + return (0, exports2.expectFloat32)(value); + }; + exports2.limitedParseFloat32 = limitedParseFloat32; + var parseFloatString = (value) => { + switch (value) { + case \\"NaN\\": + return NaN; + case \\"Infinity\\": + return Infinity; + case \\"-Infinity\\": + return -Infinity; + default: + throw new Error(\`Unable to parse float value: \${value}\`); + } + }; + var strictParseLong = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectLong)(parseNumber(value)); + } + return (0, exports2.expectLong)(value); + }; + exports2.strictParseLong = strictParseLong; + exports2.strictParseInt = exports2.strictParseLong; + var strictParseInt32 = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectInt32)(parseNumber(value)); + } + return (0, exports2.expectInt32)(value); + }; + exports2.strictParseInt32 = strictParseInt32; + var strictParseShort = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectShort)(parseNumber(value)); + } + return (0, exports2.expectShort)(value); + }; + exports2.strictParseShort = strictParseShort; + var strictParseByte = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectByte)(parseNumber(value)); + } + return (0, exports2.expectByte)(value); + }; + exports2.strictParseByte = strictParseByte; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js +var require_date_utils = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseEpochTimestamp = exports2.parseRfc7231DateTime = exports2.parseRfc3339DateTime = exports2.dateToUtcString = void 0; + var parse_utils_1 = require_parse_utils(); + var DAYS = [\\"Sun\\", \\"Mon\\", \\"Tue\\", \\"Wed\\", \\"Thu\\", \\"Fri\\", \\"Sat\\"]; + var MONTHS = [\\"Jan\\", \\"Feb\\", \\"Mar\\", \\"Apr\\", \\"May\\", \\"Jun\\", \\"Jul\\", \\"Aug\\", \\"Sep\\", \\"Oct\\", \\"Nov\\", \\"Dec\\"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? \`0\${dayOfMonthInt}\` : \`\${dayOfMonthInt}\`; + const hoursString = hoursInt < 10 ? \`0\${hoursInt}\` : \`\${hoursInt}\`; + const minutesString = minutesInt < 10 ? \`0\${minutesInt}\` : \`\${minutesInt}\`; + const secondsString = secondsInt < 10 ? \`0\${secondsInt}\` : \`\${secondsInt}\`; + return \`\${DAYS[dayOfWeek]}, \${dayOfMonthString} \${MONTHS[month]} \${year} \${hoursString}:\${minutesString}:\${secondsString} GMT\`; + } + exports2.dateToUtcString = dateToUtcString; + var RFC3339 = new RegExp(/^(\\\\d{4})-(\\\\d{2})-(\\\\d{2})[tT](\\\\d{2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))?[zZ]$/); + var parseRfc3339DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== \\"string\\") { + throw new TypeError(\\"RFC-3339 date-times must be expressed as strings\\"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError(\\"Invalid RFC-3339 date-time value\\"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, \\"month\\", 1, 12); + const day = parseDateValue(dayStr, \\"day\\", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }; + exports2.parseRfc3339DateTime = parseRfc3339DateTime; + var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\\\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\\\d{4}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); + var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\\\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); + var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? (\\\\d{4})$/); + var parseRfc7231DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== \\"string\\") { + throw new TypeError(\\"RFC-7231 date-times must be expressed as strings\\"); + } + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + })); + } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + throw new TypeError(\\"Invalid RFC-7231 date-time value\\"); + }; + exports2.parseRfc7231DateTime = parseRfc7231DateTime; + var parseEpochTimestamp = (value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === \\"number\\") { + valueAsDouble = value; + } else if (typeof value === \\"string\\") { + valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + } else { + throw new TypeError(\\"Epoch timestamps must be expressed as floating point numbers or their string representation\\"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError(\\"Epoch timestamps must be valid, non-Infinite, non-NaN numerics\\"); + } + return new Date(Math.round(valueAsDouble * 1e3)); + }; + exports2.parseEpochTimestamp = parseEpochTimestamp; + var buildDate = (year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, \\"hour\\", 0, 23), parseDateValue(time.minutes, \\"minute\\", 0, 59), parseDateValue(time.seconds, \\"seconds\\", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); + }; + var parseTwoDigitYear = (value) => { + const thisYear = new Date().getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; + }; + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = (input) => { + if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); + } + return input; + }; + var parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(\`Invalid month: \${value}\`); + } + return monthIdx + 1; + }; + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(\`Invalid day for \${MONTHS[month]} in \${year}: \${day}\`); + } + }; + var isLeapYear = (year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); + }; + var parseDateValue = (value, type, lower, upper) => { + const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(\`\${type} must be between \${lower} and \${upper}, inclusive\`); + } + return dateVal; + }; + var parseMilliseconds = (value) => { + if (value === null || value === void 0) { + return 0; + } + return (0, parse_utils_1.strictParseFloat32)(\\"0.\\" + value) * 1e3; + }; + var stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === \\"0\\") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js +var require_exceptions = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decorateServiceException = exports2.ServiceException = void 0; + var ServiceException = class extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, ServiceException.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + }; + exports2.ServiceException = ServiceException; + var decorateServiceException = (exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === \\"\\") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || \\"UnknownError\\"; + exception.message = message; + delete exception.Message; + return exception; + }; + exports2.decorateServiceException = decorateServiceException; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js +var require_default_error_handler = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.throwDefaultError = void 0; + var exceptions_1 = require_exceptions(); + var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + \\"\\" : void 0; + const response = new exceptionCtor({ + name: parsedBody.code || parsedBody.Code || errorCode || statusCode || \\"UnknowError\\", + $fault: \\"client\\", + $metadata + }); + throw (0, exceptions_1.decorateServiceException)(response, parsedBody); + }; + exports2.throwDefaultError = throwDefaultError; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js +var require_defaults_mode = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadConfigsForDefaultMode = void 0; + var loadConfigsForDefaultMode = (mode) => { + switch (mode) { + case \\"standard\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 3100 + }; + case \\"in-region\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 1100 + }; + case \\"cross-region\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 3100 + }; + case \\"mobile\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 3e4 + }; + default: + return {}; + } + }; + exports2.loadConfigsForDefaultMode = loadConfigsForDefaultMode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +var require_emitWarningIfUnsupportedVersion = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.emitWarningIfUnsupportedVersion = void 0; + var warningEmitted = false; + var emitWarningIfUnsupportedVersion = (version) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf(\\".\\"))) < 14) { + warningEmitted = true; + process.emitWarning(\`The AWS SDK for JavaScript (v3) will +no longer support Node.js \${version} on November 1, 2022. + +To continue receiving updates to AWS services, bug fixes, and security +updates please upgrade to Node.js 14.x or later. + +For details, please refer our blog post: https://a.co/48dbdYz\`, \`NodeDeprecationWarning\`); + } + }; + exports2.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js +var require_extended_encode_uri_component = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.extendedEncodeURIComponent = void 0; + function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return \\"%\\" + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + exports2.extendedEncodeURIComponent = extendedEncodeURIComponent; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js +var require_get_array_if_single_item = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getArrayIfSingleItem = void 0; + var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; + exports2.getArrayIfSingleItem = getArrayIfSingleItem; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js +var require_get_value_from_text_node = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getValueFromTextNode = void 0; + var getValueFromTextNode = (obj) => { + const textNodeName = \\"#text\\"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === \\"object\\" && obj[key] !== null) { + obj[key] = (0, exports2.getValueFromTextNode)(obj[key]); + } + } + return obj; + }; + exports2.getValueFromTextNode = getValueFromTextNode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js +var require_lazy_json = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.LazyJsonString = exports2.StringWrapper = void 0; + var StringWrapper = function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }; + exports2.StringWrapper = StringWrapper; + exports2.StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: exports2.StringWrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.setPrototypeOf(exports2.StringWrapper, String); + var LazyJsonString = class extends exports2.StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof LazyJsonString) { + return object; + } else if (object instanceof String || typeof object === \\"string\\") { + return new LazyJsonString(object); + } + return new LazyJsonString(JSON.stringify(object)); + } + }; + exports2.LazyJsonString = LazyJsonString; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js +var require_object_mapping = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.convertMap = exports2.map = void 0; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === \\"undefined\\" && typeof arg2 === \\"undefined\\") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === \\"function\\") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; + } + } + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + let [filter2, value] = instructions[key]; + if (typeof value === \\"function\\") { + let _value; + const defaultFilterPassed = filter2 === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(void 0) || typeof filter2 !== \\"function\\" && !!filter2; + if (defaultFilterPassed) { + target[key] = _value; + } else if (customFilterPassed) { + target[key] = value(); + } + } else { + const defaultFilterPassed = filter2 === void 0 && value != null; + const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(value) || typeof filter2 !== \\"function\\" && !!filter2; + if (defaultFilterPassed || customFilterPassed) { + target[key] = value; + } + } + } + return target; + } + exports2.map = map; + var convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; + } + return output; + }; + exports2.convertMap = convertMap; + var mapWithFilter = (target, filter, instructions) => { + return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } else { + if (typeof value === \\"function\\") { + _instructions[key] = [filter, value()]; + } else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, {})); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js +var require_resolve_path = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolvedPath = void 0; + var extended_encode_uri_component_1 = require_extended_encode_uri_component(); + var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== void 0) { + const labelValue = labelValueProvider(); + if (labelValue.length <= 0) { + throw new Error(\\"Empty value provided for input HTTP label: \\" + memberName + \\".\\"); + } + resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split(\\"/\\").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join(\\"/\\") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); + } else { + throw new Error(\\"No value provided for input HTTP label: \\" + memberName + \\".\\"); + } + return resolvedPath2; + }; + exports2.resolvedPath = resolvedPath; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js +var require_ser_utils = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.serializeFloat = void 0; + var serializeFloat = (value) => { + if (value !== value) { + return \\"NaN\\"; + } + switch (value) { + case Infinity: + return \\"Infinity\\"; + case -Infinity: + return \\"-Infinity\\"; + default: + return value; + } + }; + exports2.serializeFloat = serializeFloat; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js +var require_split_every = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.splitEvery = void 0; + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error(\\"Invalid number of delimiters (\\" + numDelimiters + \\") for splitEvery.\\"); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = \\"\\"; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === \\"\\") { + currentSegment = segments[i]; + } else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = \\"\\"; + } + } + if (currentSegment !== \\"\\") { + compoundSegments.push(currentSegment); + } + return compoundSegments; + } + exports2.splitEvery = splitEvery; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +var require_dist_cjs3 = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_client(), exports2); + tslib_1.__exportStar(require_command(), exports2); + tslib_1.__exportStar(require_constants(), exports2); + tslib_1.__exportStar(require_date_utils(), exports2); + tslib_1.__exportStar(require_default_error_handler(), exports2); + tslib_1.__exportStar(require_defaults_mode(), exports2); + tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports2); + tslib_1.__exportStar(require_exceptions(), exports2); + tslib_1.__exportStar(require_extended_encode_uri_component(), exports2); + tslib_1.__exportStar(require_get_array_if_single_item(), exports2); + tslib_1.__exportStar(require_get_value_from_text_node(), exports2); + tslib_1.__exportStar(require_lazy_json(), exports2); + tslib_1.__exportStar(require_object_mapping(), exports2); + tslib_1.__exportStar(require_parse_utils(), exports2); + tslib_1.__exportStar(require_resolve_path(), exports2); + tslib_1.__exportStar(require_ser_utils(), exports2); + tslib_1.__exportStar(require_split_every(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js +var require_DynamoDBServiceException = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDBServiceException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var DynamoDBServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, DynamoDBServiceException.prototype); + } + }; + exports2.DynamoDBServiceException = DynamoDBServiceException; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js +var require_models_0 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ProjectionFilterSensitiveLog = exports2.SourceTableDetailsFilterSensitiveLog = exports2.ProvisionedThroughputFilterSensitiveLog = exports2.KeySchemaElementFilterSensitiveLog = exports2.BackupDetailsFilterSensitiveLog = exports2.AutoScalingSettingsUpdateFilterSensitiveLog = exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = exports2.AutoScalingPolicyUpdateFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = exports2.AttributeDefinitionFilterSensitiveLog = exports2.ArchivalSummaryFilterSensitiveLog = exports2.TransactionCanceledException = exports2.AttributeValue = exports2.IndexNotFoundException = exports2.ReplicaNotFoundException = exports2.ReplicaAlreadyExistsException = exports2.InvalidRestoreTimeException = exports2.TableAlreadyExistsException = exports2.PointInTimeRecoveryUnavailableException = exports2.InvalidExportTimeException = exports2.ExportConflictException = exports2.TransactionInProgressException = exports2.IdempotentParameterMismatchException = exports2.DuplicateItemException = exports2.GlobalTableNotFoundException = exports2.ExportNotFoundException = exports2.ExportStatus = exports2.ExportFormat = exports2.TransactionConflictException = exports2.ResourceInUseException = exports2.GlobalTableAlreadyExistsException = exports2.TableClass = exports2.TableNotFoundException = exports2.TableInUseException = exports2.LimitExceededException = exports2.ContinuousBackupsUnavailableException = exports2.ConditionalCheckFailedException = exports2.ItemCollectionSizeLimitExceededException = exports2.ResourceNotFoundException = exports2.ProvisionedThroughputExceededException = exports2.InvalidEndpointException = exports2.RequestLimitExceeded = exports2.InternalServerError = exports2.BatchStatementErrorCodeEnum = exports2.BackupTypeFilter = exports2.BackupNotFoundException = exports2.BackupInUseException = exports2.BackupType = void 0; + exports2.DescribeContinuousBackupsInputFilterSensitiveLog = exports2.DescribeBackupOutputFilterSensitiveLog = exports2.DescribeBackupInputFilterSensitiveLog = exports2.DeleteTableOutputFilterSensitiveLog = exports2.DeleteTableInputFilterSensitiveLog = exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = exports2.DeleteReplicaActionFilterSensitiveLog = exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = exports2.DeleteBackupOutputFilterSensitiveLog = exports2.DeleteBackupInputFilterSensitiveLog = exports2.CreateTableOutputFilterSensitiveLog = exports2.TableDescriptionFilterSensitiveLog = exports2.RestoreSummaryFilterSensitiveLog = exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = exports2.CreateTableInputFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.SSESpecificationFilterSensitiveLog = exports2.LocalSecondaryIndexFilterSensitiveLog = exports2.GlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicaActionFilterSensitiveLog = exports2.CreateGlobalTableOutputFilterSensitiveLog = exports2.GlobalTableDescriptionFilterSensitiveLog = exports2.ReplicaDescriptionFilterSensitiveLog = exports2.TableClassSummaryFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputOverrideFilterSensitiveLog = exports2.CreateGlobalTableInputFilterSensitiveLog = exports2.ReplicaFilterSensitiveLog = exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.CreateBackupOutputFilterSensitiveLog = exports2.CreateBackupInputFilterSensitiveLog = exports2.ContributorInsightsSummaryFilterSensitiveLog = exports2.ContinuousBackupsDescriptionFilterSensitiveLog = exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = exports2.BillingModeSummaryFilterSensitiveLog = exports2.BatchStatementErrorFilterSensitiveLog = exports2.ConsumedCapacityFilterSensitiveLog = exports2.CapacityFilterSensitiveLog = exports2.BackupSummaryFilterSensitiveLog = exports2.BackupDescriptionFilterSensitiveLog = exports2.SourceTableFeatureDetailsFilterSensitiveLog = exports2.TimeToLiveDescriptionFilterSensitiveLog = exports2.StreamSpecificationFilterSensitiveLog = exports2.SSEDescriptionFilterSensitiveLog = exports2.LocalSecondaryIndexInfoFilterSensitiveLog = exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = void 0; + exports2.RestoreTableFromBackupOutputFilterSensitiveLog = exports2.RestoreTableFromBackupInputFilterSensitiveLog = exports2.ListTagsOfResourceOutputFilterSensitiveLog = exports2.ListTagsOfResourceInputFilterSensitiveLog = exports2.ListTablesOutputFilterSensitiveLog = exports2.ListTablesInputFilterSensitiveLog = exports2.ListGlobalTablesOutputFilterSensitiveLog = exports2.GlobalTableFilterSensitiveLog = exports2.ListGlobalTablesInputFilterSensitiveLog = exports2.ListExportsOutputFilterSensitiveLog = exports2.ExportSummaryFilterSensitiveLog = exports2.ListExportsInputFilterSensitiveLog = exports2.ListContributorInsightsOutputFilterSensitiveLog = exports2.ListContributorInsightsInputFilterSensitiveLog = exports2.ListBackupsOutputFilterSensitiveLog = exports2.ListBackupsInputFilterSensitiveLog = exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = exports2.ExportTableToPointInTimeInputFilterSensitiveLog = exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeTimeToLiveOutputFilterSensitiveLog = exports2.DescribeTimeToLiveInputFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.TableAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = exports2.DescribeTableOutputFilterSensitiveLog = exports2.DescribeTableInputFilterSensitiveLog = exports2.DescribeLimitsOutputFilterSensitiveLog = exports2.DescribeLimitsInputFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisDataStreamDestinationFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = exports2.ReplicaSettingsDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = exports2.DescribeGlobalTableOutputFilterSensitiveLog = exports2.DescribeGlobalTableInputFilterSensitiveLog = exports2.DescribeExportOutputFilterSensitiveLog = exports2.ExportDescriptionFilterSensitiveLog = exports2.DescribeExportInputFilterSensitiveLog = exports2.DescribeEndpointsResponseFilterSensitiveLog = exports2.EndpointFilterSensitiveLog = exports2.DescribeEndpointsRequestFilterSensitiveLog = exports2.DescribeContributorInsightsOutputFilterSensitiveLog = exports2.FailureExceptionFilterSensitiveLog = exports2.DescribeContributorInsightsInputFilterSensitiveLog = exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = void 0; + exports2.BatchExecuteStatementOutputFilterSensitiveLog = exports2.BatchExecuteStatementInputFilterSensitiveLog = exports2.TransactGetItemFilterSensitiveLog = exports2.KeysAndAttributesFilterSensitiveLog = exports2.PutRequestFilterSensitiveLog = exports2.ParameterizedStatementFilterSensitiveLog = exports2.ItemResponseFilterSensitiveLog = exports2.ItemCollectionMetricsFilterSensitiveLog = exports2.GetItemOutputFilterSensitiveLog = exports2.GetItemInputFilterSensitiveLog = exports2.GetFilterSensitiveLog = exports2.ExecuteStatementInputFilterSensitiveLog = exports2.DeleteRequestFilterSensitiveLog = exports2.ConditionFilterSensitiveLog = exports2.CancellationReasonFilterSensitiveLog = exports2.BatchStatementResponseFilterSensitiveLog = exports2.BatchStatementRequestFilterSensitiveLog = exports2.AttributeValueUpdateFilterSensitiveLog = exports2.AttributeValueFilterSensitiveLog = exports2.UpdateTimeToLiveOutputFilterSensitiveLog = exports2.UpdateTimeToLiveInputFilterSensitiveLog = exports2.TimeToLiveSpecificationFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.UpdateTableOutputFilterSensitiveLog = exports2.UpdateTableInputFilterSensitiveLog = exports2.ReplicationGroupUpdateFilterSensitiveLog = exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = exports2.ReplicaSettingsUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.UpdateGlobalTableOutputFilterSensitiveLog = exports2.UpdateGlobalTableInputFilterSensitiveLog = exports2.ReplicaUpdateFilterSensitiveLog = exports2.UpdateContributorInsightsOutputFilterSensitiveLog = exports2.UpdateContributorInsightsInputFilterSensitiveLog = exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = exports2.UpdateContinuousBackupsInputFilterSensitiveLog = exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = exports2.UntagResourceInputFilterSensitiveLog = exports2.TagResourceInputFilterSensitiveLog = exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = void 0; + exports2.TransactWriteItemsInputFilterSensitiveLog = exports2.TransactWriteItemFilterSensitiveLog = exports2.UpdateItemInputFilterSensitiveLog = exports2.BatchWriteItemOutputFilterSensitiveLog = exports2.QueryInputFilterSensitiveLog = exports2.PutItemInputFilterSensitiveLog = exports2.DeleteItemInputFilterSensitiveLog = exports2.BatchWriteItemInputFilterSensitiveLog = exports2.ScanInputFilterSensitiveLog = exports2.BatchGetItemOutputFilterSensitiveLog = exports2.WriteRequestFilterSensitiveLog = exports2.UpdateItemOutputFilterSensitiveLog = exports2.ScanOutputFilterSensitiveLog = exports2.QueryOutputFilterSensitiveLog = exports2.PutItemOutputFilterSensitiveLog = exports2.ExecuteStatementOutputFilterSensitiveLog = exports2.DeleteItemOutputFilterSensitiveLog = exports2.UpdateFilterSensitiveLog = exports2.PutFilterSensitiveLog = exports2.DeleteFilterSensitiveLog = exports2.ConditionCheckFilterSensitiveLog = exports2.TransactWriteItemsOutputFilterSensitiveLog = exports2.TransactGetItemsInputFilterSensitiveLog = exports2.ExpectedAttributeValueFilterSensitiveLog = exports2.BatchGetItemInputFilterSensitiveLog = exports2.TransactGetItemsOutputFilterSensitiveLog = exports2.ExecuteTransactionOutputFilterSensitiveLog = exports2.ExecuteTransactionInputFilterSensitiveLog = void 0; + var DynamoDBServiceException_1 = require_DynamoDBServiceException(); + var BackupType; + (function(BackupType2) { + BackupType2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; + BackupType2[\\"SYSTEM\\"] = \\"SYSTEM\\"; + BackupType2[\\"USER\\"] = \\"USER\\"; + })(BackupType = exports2.BackupType || (exports2.BackupType = {})); + var BackupInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"BackupInUseException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"BackupInUseException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, BackupInUseException.prototype); + } + }; + exports2.BackupInUseException = BackupInUseException; + var BackupNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"BackupNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"BackupNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, BackupNotFoundException.prototype); + } + }; + exports2.BackupNotFoundException = BackupNotFoundException; + var BackupTypeFilter; + (function(BackupTypeFilter2) { + BackupTypeFilter2[\\"ALL\\"] = \\"ALL\\"; + BackupTypeFilter2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; + BackupTypeFilter2[\\"SYSTEM\\"] = \\"SYSTEM\\"; + BackupTypeFilter2[\\"USER\\"] = \\"USER\\"; + })(BackupTypeFilter = exports2.BackupTypeFilter || (exports2.BackupTypeFilter = {})); + var BatchStatementErrorCodeEnum; + (function(BatchStatementErrorCodeEnum2) { + BatchStatementErrorCodeEnum2[\\"AccessDenied\\"] = \\"AccessDenied\\"; + BatchStatementErrorCodeEnum2[\\"ConditionalCheckFailed\\"] = \\"ConditionalCheckFailed\\"; + BatchStatementErrorCodeEnum2[\\"DuplicateItem\\"] = \\"DuplicateItem\\"; + BatchStatementErrorCodeEnum2[\\"InternalServerError\\"] = \\"InternalServerError\\"; + BatchStatementErrorCodeEnum2[\\"ItemCollectionSizeLimitExceeded\\"] = \\"ItemCollectionSizeLimitExceeded\\"; + BatchStatementErrorCodeEnum2[\\"ProvisionedThroughputExceeded\\"] = \\"ProvisionedThroughputExceeded\\"; + BatchStatementErrorCodeEnum2[\\"RequestLimitExceeded\\"] = \\"RequestLimitExceeded\\"; + BatchStatementErrorCodeEnum2[\\"ResourceNotFound\\"] = \\"ResourceNotFound\\"; + BatchStatementErrorCodeEnum2[\\"ThrottlingError\\"] = \\"ThrottlingError\\"; + BatchStatementErrorCodeEnum2[\\"TransactionConflict\\"] = \\"TransactionConflict\\"; + BatchStatementErrorCodeEnum2[\\"ValidationError\\"] = \\"ValidationError\\"; + })(BatchStatementErrorCodeEnum = exports2.BatchStatementErrorCodeEnum || (exports2.BatchStatementErrorCodeEnum = {})); + var InternalServerError = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InternalServerError\\", + $fault: \\"server\\", + ...opts + }); + this.name = \\"InternalServerError\\"; + this.$fault = \\"server\\"; + Object.setPrototypeOf(this, InternalServerError.prototype); + } + }; + exports2.InternalServerError = InternalServerError; + var RequestLimitExceeded = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"RequestLimitExceeded\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"RequestLimitExceeded\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, RequestLimitExceeded.prototype); + } + }; + exports2.RequestLimitExceeded = RequestLimitExceeded; + var InvalidEndpointException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InvalidEndpointException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidEndpointException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidEndpointException.prototype); + this.Message = opts.Message; + } + }; + exports2.InvalidEndpointException = InvalidEndpointException; + var ProvisionedThroughputExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ProvisionedThroughputExceededException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ProvisionedThroughputExceededException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype); + } + }; + exports2.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException; + var ResourceNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ResourceNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ResourceNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } + }; + exports2.ResourceNotFoundException = ResourceNotFoundException; + var ItemCollectionSizeLimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ItemCollectionSizeLimitExceededException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ItemCollectionSizeLimitExceededException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype); + } + }; + exports2.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException; + var ConditionalCheckFailedException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ConditionalCheckFailedException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ConditionalCheckFailedException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype); + } + }; + exports2.ConditionalCheckFailedException = ConditionalCheckFailedException; + var ContinuousBackupsUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ContinuousBackupsUnavailableException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ContinuousBackupsUnavailableException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype); + } + }; + exports2.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException; + var LimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"LimitExceededException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"LimitExceededException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, LimitExceededException.prototype); + } + }; + exports2.LimitExceededException = LimitExceededException; + var TableInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TableInUseException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TableInUseException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TableInUseException.prototype); + } + }; + exports2.TableInUseException = TableInUseException; + var TableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TableNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TableNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TableNotFoundException.prototype); + } + }; + exports2.TableNotFoundException = TableNotFoundException; + var TableClass; + (function(TableClass2) { + TableClass2[\\"STANDARD\\"] = \\"STANDARD\\"; + TableClass2[\\"STANDARD_INFREQUENT_ACCESS\\"] = \\"STANDARD_INFREQUENT_ACCESS\\"; + })(TableClass = exports2.TableClass || (exports2.TableClass = {})); + var GlobalTableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"GlobalTableAlreadyExistsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"GlobalTableAlreadyExistsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype); + } + }; + exports2.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException; + var ResourceInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ResourceInUseException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ResourceInUseException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ResourceInUseException.prototype); + } + }; + exports2.ResourceInUseException = ResourceInUseException; + var TransactionConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TransactionConflictException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TransactionConflictException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TransactionConflictException.prototype); + } + }; + exports2.TransactionConflictException = TransactionConflictException; + var ExportFormat; + (function(ExportFormat2) { + ExportFormat2[\\"DYNAMODB_JSON\\"] = \\"DYNAMODB_JSON\\"; + ExportFormat2[\\"ION\\"] = \\"ION\\"; + })(ExportFormat = exports2.ExportFormat || (exports2.ExportFormat = {})); + var ExportStatus; + (function(ExportStatus2) { + ExportStatus2[\\"COMPLETED\\"] = \\"COMPLETED\\"; + ExportStatus2[\\"FAILED\\"] = \\"FAILED\\"; + ExportStatus2[\\"IN_PROGRESS\\"] = \\"IN_PROGRESS\\"; + })(ExportStatus = exports2.ExportStatus || (exports2.ExportStatus = {})); + var ExportNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ExportNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ExportNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ExportNotFoundException.prototype); + } + }; + exports2.ExportNotFoundException = ExportNotFoundException; + var GlobalTableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"GlobalTableNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"GlobalTableNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype); + } + }; + exports2.GlobalTableNotFoundException = GlobalTableNotFoundException; + var DuplicateItemException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"DuplicateItemException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"DuplicateItemException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, DuplicateItemException.prototype); + } + }; + exports2.DuplicateItemException = DuplicateItemException; + var IdempotentParameterMismatchException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"IdempotentParameterMismatchException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IdempotentParameterMismatchException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype); + this.Message = opts.Message; + } + }; + exports2.IdempotentParameterMismatchException = IdempotentParameterMismatchException; + var TransactionInProgressException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TransactionInProgressException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TransactionInProgressException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TransactionInProgressException.prototype); + this.Message = opts.Message; + } + }; + exports2.TransactionInProgressException = TransactionInProgressException; + var ExportConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ExportConflictException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ExportConflictException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ExportConflictException.prototype); + } + }; + exports2.ExportConflictException = ExportConflictException; + var InvalidExportTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InvalidExportTimeException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidExportTimeException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidExportTimeException.prototype); + } + }; + exports2.InvalidExportTimeException = InvalidExportTimeException; + var PointInTimeRecoveryUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"PointInTimeRecoveryUnavailableException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"PointInTimeRecoveryUnavailableException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype); + } + }; + exports2.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException; + var TableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TableAlreadyExistsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TableAlreadyExistsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TableAlreadyExistsException.prototype); + } + }; + exports2.TableAlreadyExistsException = TableAlreadyExistsException; + var InvalidRestoreTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InvalidRestoreTimeException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidRestoreTimeException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype); + } + }; + exports2.InvalidRestoreTimeException = InvalidRestoreTimeException; + var ReplicaAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ReplicaAlreadyExistsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ReplicaAlreadyExistsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype); + } + }; + exports2.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException; + var ReplicaNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ReplicaNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ReplicaNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ReplicaNotFoundException.prototype); + } + }; + exports2.ReplicaNotFoundException = ReplicaNotFoundException; + var IndexNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"IndexNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IndexNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IndexNotFoundException.prototype); + } + }; + exports2.IndexNotFoundException = IndexNotFoundException; + var AttributeValue; + (function(AttributeValue2) { + AttributeValue2.visit = (value, visitor) => { + if (value.S !== void 0) + return visitor.S(value.S); + if (value.N !== void 0) + return visitor.N(value.N); + if (value.B !== void 0) + return visitor.B(value.B); + if (value.SS !== void 0) + return visitor.SS(value.SS); + if (value.NS !== void 0) + return visitor.NS(value.NS); + if (value.BS !== void 0) + return visitor.BS(value.BS); + if (value.M !== void 0) + return visitor.M(value.M); + if (value.L !== void 0) + return visitor.L(value.L); + if (value.NULL !== void 0) + return visitor.NULL(value.NULL); + if (value.BOOL !== void 0) + return visitor.BOOL(value.BOOL); + return visitor._(value.$unknown[0], value.$unknown[1]); + }; + })(AttributeValue = exports2.AttributeValue || (exports2.AttributeValue = {})); + var TransactionCanceledException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TransactionCanceledException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TransactionCanceledException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TransactionCanceledException.prototype); + this.Message = opts.Message; + this.CancellationReasons = opts.CancellationReasons; + } + }; + exports2.TransactionCanceledException = TransactionCanceledException; + var ArchivalSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ArchivalSummaryFilterSensitiveLog = ArchivalSummaryFilterSensitiveLog; + var AttributeDefinitionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AttributeDefinitionFilterSensitiveLog = AttributeDefinitionFilterSensitiveLog; + var AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog; + var AutoScalingPolicyDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = AutoScalingPolicyDescriptionFilterSensitiveLog; + var AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog; + var AutoScalingPolicyUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingPolicyUpdateFilterSensitiveLog = AutoScalingPolicyUpdateFilterSensitiveLog; + var AutoScalingSettingsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = AutoScalingSettingsDescriptionFilterSensitiveLog; + var AutoScalingSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingSettingsUpdateFilterSensitiveLog = AutoScalingSettingsUpdateFilterSensitiveLog; + var BackupDetailsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BackupDetailsFilterSensitiveLog = BackupDetailsFilterSensitiveLog; + var KeySchemaElementFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KeySchemaElementFilterSensitiveLog = KeySchemaElementFilterSensitiveLog; + var ProvisionedThroughputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProvisionedThroughputFilterSensitiveLog = ProvisionedThroughputFilterSensitiveLog; + var SourceTableDetailsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SourceTableDetailsFilterSensitiveLog = SourceTableDetailsFilterSensitiveLog; + var ProjectionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProjectionFilterSensitiveLog = ProjectionFilterSensitiveLog; + var GlobalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = GlobalSecondaryIndexInfoFilterSensitiveLog; + var LocalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.LocalSecondaryIndexInfoFilterSensitiveLog = LocalSecondaryIndexInfoFilterSensitiveLog; + var SSEDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SSEDescriptionFilterSensitiveLog = SSEDescriptionFilterSensitiveLog; + var StreamSpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.StreamSpecificationFilterSensitiveLog = StreamSpecificationFilterSensitiveLog; + var TimeToLiveDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TimeToLiveDescriptionFilterSensitiveLog = TimeToLiveDescriptionFilterSensitiveLog; + var SourceTableFeatureDetailsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SourceTableFeatureDetailsFilterSensitiveLog = SourceTableFeatureDetailsFilterSensitiveLog; + var BackupDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BackupDescriptionFilterSensitiveLog = BackupDescriptionFilterSensitiveLog; + var BackupSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BackupSummaryFilterSensitiveLog = BackupSummaryFilterSensitiveLog; + var CapacityFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CapacityFilterSensitiveLog = CapacityFilterSensitiveLog; + var ConsumedCapacityFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ConsumedCapacityFilterSensitiveLog = ConsumedCapacityFilterSensitiveLog; + var BatchStatementErrorFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BatchStatementErrorFilterSensitiveLog = BatchStatementErrorFilterSensitiveLog; + var BillingModeSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BillingModeSummaryFilterSensitiveLog = BillingModeSummaryFilterSensitiveLog; + var PointInTimeRecoveryDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = PointInTimeRecoveryDescriptionFilterSensitiveLog; + var ContinuousBackupsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ContinuousBackupsDescriptionFilterSensitiveLog = ContinuousBackupsDescriptionFilterSensitiveLog; + var ContributorInsightsSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ContributorInsightsSummaryFilterSensitiveLog = ContributorInsightsSummaryFilterSensitiveLog; + var CreateBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateBackupInputFilterSensitiveLog = CreateBackupInputFilterSensitiveLog; + var CreateBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateBackupOutputFilterSensitiveLog = CreateBackupOutputFilterSensitiveLog; + var CreateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = CreateGlobalSecondaryIndexActionFilterSensitiveLog; + var ReplicaFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaFilterSensitiveLog = ReplicaFilterSensitiveLog; + var CreateGlobalTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateGlobalTableInputFilterSensitiveLog = CreateGlobalTableInputFilterSensitiveLog; + var ProvisionedThroughputOverrideFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProvisionedThroughputOverrideFilterSensitiveLog = ProvisionedThroughputOverrideFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog; + var TableClassSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableClassSummaryFilterSensitiveLog = TableClassSummaryFilterSensitiveLog; + var ReplicaDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaDescriptionFilterSensitiveLog = ReplicaDescriptionFilterSensitiveLog; + var GlobalTableDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalTableDescriptionFilterSensitiveLog = GlobalTableDescriptionFilterSensitiveLog; + var CreateGlobalTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateGlobalTableOutputFilterSensitiveLog = CreateGlobalTableOutputFilterSensitiveLog; + var CreateReplicaActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateReplicaActionFilterSensitiveLog = CreateReplicaActionFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = ReplicaGlobalSecondaryIndexFilterSensitiveLog; + var CreateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = CreateReplicationGroupMemberActionFilterSensitiveLog; + var GlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexFilterSensitiveLog = GlobalSecondaryIndexFilterSensitiveLog; + var LocalSecondaryIndexFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.LocalSecondaryIndexFilterSensitiveLog = LocalSecondaryIndexFilterSensitiveLog; + var SSESpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SSESpecificationFilterSensitiveLog = SSESpecificationFilterSensitiveLog; + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; + var CreateTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateTableInputFilterSensitiveLog = CreateTableInputFilterSensitiveLog; + var ProvisionedThroughputDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = ProvisionedThroughputDescriptionFilterSensitiveLog; + var GlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = GlobalSecondaryIndexDescriptionFilterSensitiveLog; + var LocalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = LocalSecondaryIndexDescriptionFilterSensitiveLog; + var RestoreSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreSummaryFilterSensitiveLog = RestoreSummaryFilterSensitiveLog; + var TableDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableDescriptionFilterSensitiveLog = TableDescriptionFilterSensitiveLog; + var CreateTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateTableOutputFilterSensitiveLog = CreateTableOutputFilterSensitiveLog; + var DeleteBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteBackupInputFilterSensitiveLog = DeleteBackupInputFilterSensitiveLog; + var DeleteBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteBackupOutputFilterSensitiveLog = DeleteBackupOutputFilterSensitiveLog; + var DeleteGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = DeleteGlobalSecondaryIndexActionFilterSensitiveLog; + var DeleteReplicaActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteReplicaActionFilterSensitiveLog = DeleteReplicaActionFilterSensitiveLog; + var DeleteReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = DeleteReplicationGroupMemberActionFilterSensitiveLog; + var DeleteTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteTableInputFilterSensitiveLog = DeleteTableInputFilterSensitiveLog; + var DeleteTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteTableOutputFilterSensitiveLog = DeleteTableOutputFilterSensitiveLog; + var DescribeBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeBackupInputFilterSensitiveLog = DescribeBackupInputFilterSensitiveLog; + var DescribeBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeBackupOutputFilterSensitiveLog = DescribeBackupOutputFilterSensitiveLog; + var DescribeContinuousBackupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContinuousBackupsInputFilterSensitiveLog = DescribeContinuousBackupsInputFilterSensitiveLog; + var DescribeContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = DescribeContinuousBackupsOutputFilterSensitiveLog; + var DescribeContributorInsightsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContributorInsightsInputFilterSensitiveLog = DescribeContributorInsightsInputFilterSensitiveLog; + var FailureExceptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.FailureExceptionFilterSensitiveLog = FailureExceptionFilterSensitiveLog; + var DescribeContributorInsightsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContributorInsightsOutputFilterSensitiveLog = DescribeContributorInsightsOutputFilterSensitiveLog; + var DescribeEndpointsRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeEndpointsRequestFilterSensitiveLog = DescribeEndpointsRequestFilterSensitiveLog; + var EndpointFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.EndpointFilterSensitiveLog = EndpointFilterSensitiveLog; + var DescribeEndpointsResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeEndpointsResponseFilterSensitiveLog = DescribeEndpointsResponseFilterSensitiveLog; + var DescribeExportInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeExportInputFilterSensitiveLog = DescribeExportInputFilterSensitiveLog; + var ExportDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportDescriptionFilterSensitiveLog = ExportDescriptionFilterSensitiveLog; + var DescribeExportOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeExportOutputFilterSensitiveLog = DescribeExportOutputFilterSensitiveLog; + var DescribeGlobalTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableInputFilterSensitiveLog = DescribeGlobalTableInputFilterSensitiveLog; + var DescribeGlobalTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableOutputFilterSensitiveLog = DescribeGlobalTableOutputFilterSensitiveLog; + var DescribeGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = DescribeGlobalTableSettingsInputFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog; + var ReplicaSettingsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaSettingsDescriptionFilterSensitiveLog = ReplicaSettingsDescriptionFilterSensitiveLog; + var DescribeGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = DescribeGlobalTableSettingsOutputFilterSensitiveLog; + var DescribeKinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = DescribeKinesisStreamingDestinationInputFilterSensitiveLog; + var KinesisDataStreamDestinationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KinesisDataStreamDestinationFilterSensitiveLog = KinesisDataStreamDestinationFilterSensitiveLog; + var DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = DescribeKinesisStreamingDestinationOutputFilterSensitiveLog; + var DescribeLimitsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeLimitsInputFilterSensitiveLog = DescribeLimitsInputFilterSensitiveLog; + var DescribeLimitsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeLimitsOutputFilterSensitiveLog = DescribeLimitsOutputFilterSensitiveLog; + var DescribeTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableInputFilterSensitiveLog = DescribeTableInputFilterSensitiveLog; + var DescribeTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableOutputFilterSensitiveLog = DescribeTableOutputFilterSensitiveLog; + var DescribeTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = DescribeTableReplicaAutoScalingInputFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog; + var ReplicaAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = ReplicaAutoScalingDescriptionFilterSensitiveLog; + var TableAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableAutoScalingDescriptionFilterSensitiveLog = TableAutoScalingDescriptionFilterSensitiveLog; + var DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = DescribeTableReplicaAutoScalingOutputFilterSensitiveLog; + var DescribeTimeToLiveInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTimeToLiveInputFilterSensitiveLog = DescribeTimeToLiveInputFilterSensitiveLog; + var DescribeTimeToLiveOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTimeToLiveOutputFilterSensitiveLog = DescribeTimeToLiveOutputFilterSensitiveLog; + var KinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KinesisStreamingDestinationInputFilterSensitiveLog = KinesisStreamingDestinationInputFilterSensitiveLog; + var KinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = KinesisStreamingDestinationOutputFilterSensitiveLog; + var ExportTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportTableToPointInTimeInputFilterSensitiveLog = ExportTableToPointInTimeInputFilterSensitiveLog; + var ExportTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = ExportTableToPointInTimeOutputFilterSensitiveLog; + var ListBackupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListBackupsInputFilterSensitiveLog = ListBackupsInputFilterSensitiveLog; + var ListBackupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListBackupsOutputFilterSensitiveLog = ListBackupsOutputFilterSensitiveLog; + var ListContributorInsightsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListContributorInsightsInputFilterSensitiveLog = ListContributorInsightsInputFilterSensitiveLog; + var ListContributorInsightsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListContributorInsightsOutputFilterSensitiveLog = ListContributorInsightsOutputFilterSensitiveLog; + var ListExportsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListExportsInputFilterSensitiveLog = ListExportsInputFilterSensitiveLog; + var ExportSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportSummaryFilterSensitiveLog = ExportSummaryFilterSensitiveLog; + var ListExportsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListExportsOutputFilterSensitiveLog = ListExportsOutputFilterSensitiveLog; + var ListGlobalTablesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListGlobalTablesInputFilterSensitiveLog = ListGlobalTablesInputFilterSensitiveLog; + var GlobalTableFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalTableFilterSensitiveLog = GlobalTableFilterSensitiveLog; + var ListGlobalTablesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListGlobalTablesOutputFilterSensitiveLog = ListGlobalTablesOutputFilterSensitiveLog; + var ListTablesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTablesInputFilterSensitiveLog = ListTablesInputFilterSensitiveLog; + var ListTablesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTablesOutputFilterSensitiveLog = ListTablesOutputFilterSensitiveLog; + var ListTagsOfResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTagsOfResourceInputFilterSensitiveLog = ListTagsOfResourceInputFilterSensitiveLog; + var ListTagsOfResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTagsOfResourceOutputFilterSensitiveLog = ListTagsOfResourceOutputFilterSensitiveLog; + var RestoreTableFromBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableFromBackupInputFilterSensitiveLog = RestoreTableFromBackupInputFilterSensitiveLog; + var RestoreTableFromBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableFromBackupOutputFilterSensitiveLog = RestoreTableFromBackupOutputFilterSensitiveLog; + var RestoreTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = RestoreTableToPointInTimeInputFilterSensitiveLog; + var RestoreTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = RestoreTableToPointInTimeOutputFilterSensitiveLog; + var TagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog; + var UntagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog; + var PointInTimeRecoverySpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = PointInTimeRecoverySpecificationFilterSensitiveLog; + var UpdateContinuousBackupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContinuousBackupsInputFilterSensitiveLog = UpdateContinuousBackupsInputFilterSensitiveLog; + var UpdateContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = UpdateContinuousBackupsOutputFilterSensitiveLog; + var UpdateContributorInsightsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContributorInsightsInputFilterSensitiveLog = UpdateContributorInsightsInputFilterSensitiveLog; + var UpdateContributorInsightsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContributorInsightsOutputFilterSensitiveLog = UpdateContributorInsightsOutputFilterSensitiveLog; + var ReplicaUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaUpdateFilterSensitiveLog = ReplicaUpdateFilterSensitiveLog; + var UpdateGlobalTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableInputFilterSensitiveLog = UpdateGlobalTableInputFilterSensitiveLog; + var UpdateGlobalTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableOutputFilterSensitiveLog = UpdateGlobalTableOutputFilterSensitiveLog; + var GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; + var ReplicaSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaSettingsUpdateFilterSensitiveLog = ReplicaSettingsUpdateFilterSensitiveLog; + var UpdateGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = UpdateGlobalTableSettingsInputFilterSensitiveLog; + var UpdateGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = UpdateGlobalTableSettingsOutputFilterSensitiveLog; + var UpdateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = UpdateGlobalSecondaryIndexActionFilterSensitiveLog; + var GlobalSecondaryIndexUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = GlobalSecondaryIndexUpdateFilterSensitiveLog; + var UpdateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = UpdateReplicationGroupMemberActionFilterSensitiveLog; + var ReplicationGroupUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicationGroupUpdateFilterSensitiveLog = ReplicationGroupUpdateFilterSensitiveLog; + var UpdateTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableInputFilterSensitiveLog = UpdateTableInputFilterSensitiveLog; + var UpdateTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableOutputFilterSensitiveLog = UpdateTableOutputFilterSensitiveLog; + var GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; + var ReplicaAutoScalingUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = ReplicaAutoScalingUpdateFilterSensitiveLog; + var UpdateTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = UpdateTableReplicaAutoScalingInputFilterSensitiveLog; + var UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = UpdateTableReplicaAutoScalingOutputFilterSensitiveLog; + var TimeToLiveSpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TimeToLiveSpecificationFilterSensitiveLog = TimeToLiveSpecificationFilterSensitiveLog; + var UpdateTimeToLiveInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTimeToLiveInputFilterSensitiveLog = UpdateTimeToLiveInputFilterSensitiveLog; + var UpdateTimeToLiveOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTimeToLiveOutputFilterSensitiveLog = UpdateTimeToLiveOutputFilterSensitiveLog; + var AttributeValueFilterSensitiveLog = (obj) => { + if (obj.S !== void 0) + return { S: obj.S }; + if (obj.N !== void 0) + return { N: obj.N }; + if (obj.B !== void 0) + return { B: obj.B }; + if (obj.SS !== void 0) + return { SS: obj.SS }; + if (obj.NS !== void 0) + return { NS: obj.NS }; + if (obj.BS !== void 0) + return { BS: obj.BS }; + if (obj.M !== void 0) + return { + M: Object.entries(obj.M).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }; + if (obj.L !== void 0) + return { L: obj.L.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) }; + if (obj.NULL !== void 0) + return { NULL: obj.NULL }; + if (obj.BOOL !== void 0) + return { BOOL: obj.BOOL }; + if (obj.$unknown !== void 0) + return { [obj.$unknown[0]]: \\"UNKNOWN\\" }; + }; + exports2.AttributeValueFilterSensitiveLog = AttributeValueFilterSensitiveLog; + var AttributeValueUpdateFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) } + }); + exports2.AttributeValueUpdateFilterSensitiveLog = AttributeValueUpdateFilterSensitiveLog; + var BatchStatementRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } + }); + exports2.BatchStatementRequestFilterSensitiveLog = BatchStatementRequestFilterSensitiveLog; + var BatchStatementResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.BatchStatementResponseFilterSensitiveLog = BatchStatementResponseFilterSensitiveLog; + var CancellationReasonFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.CancellationReasonFilterSensitiveLog = CancellationReasonFilterSensitiveLog; + var ConditionFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.AttributeValueList && { + AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) + } + }); + exports2.ConditionFilterSensitiveLog = ConditionFilterSensitiveLog; + var DeleteRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.DeleteRequestFilterSensitiveLog = DeleteRequestFilterSensitiveLog; + var ExecuteStatementInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } + }); + exports2.ExecuteStatementInputFilterSensitiveLog = ExecuteStatementInputFilterSensitiveLog; + var GetFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.GetFilterSensitiveLog = GetFilterSensitiveLog; + var GetItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.GetItemInputFilterSensitiveLog = GetItemInputFilterSensitiveLog; + var GetItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.GetItemOutputFilterSensitiveLog = GetItemOutputFilterSensitiveLog; + var ItemCollectionMetricsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ItemCollectionKey && { + ItemCollectionKey: Object.entries(obj.ItemCollectionKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ItemCollectionMetricsFilterSensitiveLog = ItemCollectionMetricsFilterSensitiveLog; + var ItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ItemResponseFilterSensitiveLog = ItemResponseFilterSensitiveLog; + var ParameterizedStatementFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } + }); + exports2.ParameterizedStatementFilterSensitiveLog = ParameterizedStatementFilterSensitiveLog; + var PutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.PutRequestFilterSensitiveLog = PutRequestFilterSensitiveLog; + var KeysAndAttributesFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Keys && { + Keys: obj.Keys.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + } + }); + exports2.KeysAndAttributesFilterSensitiveLog = KeysAndAttributesFilterSensitiveLog; + var TransactGetItemFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Get && { Get: (0, exports2.GetFilterSensitiveLog)(obj.Get) } + }); + exports2.TransactGetItemFilterSensitiveLog = TransactGetItemFilterSensitiveLog; + var BatchExecuteStatementInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Statements && { Statements: obj.Statements.map((item) => (0, exports2.BatchStatementRequestFilterSensitiveLog)(item)) } + }); + exports2.BatchExecuteStatementInputFilterSensitiveLog = BatchExecuteStatementInputFilterSensitiveLog; + var BatchExecuteStatementOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.BatchStatementResponseFilterSensitiveLog)(item)) } + }); + exports2.BatchExecuteStatementOutputFilterSensitiveLog = BatchExecuteStatementOutputFilterSensitiveLog; + var ExecuteTransactionInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.TransactStatements && { + TransactStatements: obj.TransactStatements.map((item) => (0, exports2.ParameterizedStatementFilterSensitiveLog)(item)) + } + }); + exports2.ExecuteTransactionInputFilterSensitiveLog = ExecuteTransactionInputFilterSensitiveLog; + var ExecuteTransactionOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } + }); + exports2.ExecuteTransactionOutputFilterSensitiveLog = ExecuteTransactionOutputFilterSensitiveLog; + var TransactGetItemsOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } + }); + exports2.TransactGetItemsOutputFilterSensitiveLog = TransactGetItemsOutputFilterSensitiveLog; + var BatchGetItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.RequestItems && { + RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.BatchGetItemInputFilterSensitiveLog = BatchGetItemInputFilterSensitiveLog; + var ExpectedAttributeValueFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) }, + ...obj.AttributeValueList && { + AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) + } + }); + exports2.ExpectedAttributeValueFilterSensitiveLog = ExpectedAttributeValueFilterSensitiveLog; + var TransactGetItemsInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.TransactItems && { TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactGetItemFilterSensitiveLog)(item)) } + }); + exports2.TransactGetItemsInputFilterSensitiveLog = TransactGetItemsInputFilterSensitiveLog; + var TransactWriteItemsOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) + }), {}) + } + }); + exports2.TransactWriteItemsOutputFilterSensitiveLog = TransactWriteItemsOutputFilterSensitiveLog; + var ConditionCheckFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ConditionCheckFilterSensitiveLog = ConditionCheckFilterSensitiveLog; + var DeleteFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.DeleteFilterSensitiveLog = DeleteFilterSensitiveLog; + var PutFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.PutFilterSensitiveLog = PutFilterSensitiveLog; + var UpdateFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.UpdateFilterSensitiveLog = UpdateFilterSensitiveLog; + var DeleteItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Attributes && { + Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) + } + }); + exports2.DeleteItemOutputFilterSensitiveLog = DeleteItemOutputFilterSensitiveLog; + var ExecuteStatementOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Items && { + Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + }, + ...obj.LastEvaluatedKey && { + LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ExecuteStatementOutputFilterSensitiveLog = ExecuteStatementOutputFilterSensitiveLog; + var PutItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Attributes && { + Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) + } + }); + exports2.PutItemOutputFilterSensitiveLog = PutItemOutputFilterSensitiveLog; + var QueryOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Items && { + Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + }, + ...obj.LastEvaluatedKey && { + LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.QueryOutputFilterSensitiveLog = QueryOutputFilterSensitiveLog; + var ScanOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Items && { + Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + }, + ...obj.LastEvaluatedKey && { + LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ScanOutputFilterSensitiveLog = ScanOutputFilterSensitiveLog; + var UpdateItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Attributes && { + Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) + } + }); + exports2.UpdateItemOutputFilterSensitiveLog = UpdateItemOutputFilterSensitiveLog; + var WriteRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.PutRequest && { PutRequest: (0, exports2.PutRequestFilterSensitiveLog)(obj.PutRequest) }, + ...obj.DeleteRequest && { DeleteRequest: (0, exports2.DeleteRequestFilterSensitiveLog)(obj.DeleteRequest) } + }); + exports2.WriteRequestFilterSensitiveLog = WriteRequestFilterSensitiveLog; + var BatchGetItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { + Responses: Object.entries(obj.Responses).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => Object.entries(item).reduce((acc2, [key2, value2]) => ({ + ...acc2, + [key2]: (0, exports2.AttributeValueFilterSensitiveLog)(value2) + }), {})) + }), {}) + }, + ...obj.UnprocessedKeys && { + UnprocessedKeys: Object.entries(obj.UnprocessedKeys).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.BatchGetItemOutputFilterSensitiveLog = BatchGetItemOutputFilterSensitiveLog; + var ScanInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ScanFilter && { + ScanFilter: Object.entries(obj.ScanFilter).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ConditionFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExclusiveStartKey && { + ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ScanInputFilterSensitiveLog = ScanInputFilterSensitiveLog; + var BatchWriteItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.RequestItems && { + RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) + }), {}) + } + }); + exports2.BatchWriteItemInputFilterSensitiveLog = BatchWriteItemInputFilterSensitiveLog; + var DeleteItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.Expected && { + Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.DeleteItemInputFilterSensitiveLog = DeleteItemInputFilterSensitiveLog; + var PutItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.Expected && { + Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.PutItemInputFilterSensitiveLog = PutItemInputFilterSensitiveLog; + var QueryInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.KeyConditions && { + KeyConditions: Object.entries(obj.KeyConditions).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ConditionFilterSensitiveLog)(value) + }), {}) + }, + ...obj.QueryFilter && { + QueryFilter: Object.entries(obj.QueryFilter).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ConditionFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExclusiveStartKey && { + ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.QueryInputFilterSensitiveLog = QueryInputFilterSensitiveLog; + var BatchWriteItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.UnprocessedItems && { + UnprocessedItems: Object.entries(obj.UnprocessedItems).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) + }), {}) + } + }); + exports2.BatchWriteItemOutputFilterSensitiveLog = BatchWriteItemOutputFilterSensitiveLog; + var UpdateItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.AttributeUpdates && { + AttributeUpdates: Object.entries(obj.AttributeUpdates).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueUpdateFilterSensitiveLog)(value) + }), {}) + }, + ...obj.Expected && { + Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.UpdateItemInputFilterSensitiveLog = UpdateItemInputFilterSensitiveLog; + var TransactWriteItemFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ConditionCheck && { ConditionCheck: (0, exports2.ConditionCheckFilterSensitiveLog)(obj.ConditionCheck) }, + ...obj.Put && { Put: (0, exports2.PutFilterSensitiveLog)(obj.Put) }, + ...obj.Delete && { Delete: (0, exports2.DeleteFilterSensitiveLog)(obj.Delete) }, + ...obj.Update && { Update: (0, exports2.UpdateFilterSensitiveLog)(obj.Update) } + }); + exports2.TransactWriteItemFilterSensitiveLog = TransactWriteItemFilterSensitiveLog; + var TransactWriteItemsInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.TransactItems && { + TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactWriteItemFilterSensitiveLog)(item)) + } + }); + exports2.TransactWriteItemsInputFilterSensitiveLog = TransactWriteItemsInputFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js +var require_httpHandler = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +var require_httpRequest = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.HttpRequest = void 0; + var HttpRequest = class { + constructor(options) { + this.method = options.method || \\"GET\\"; + this.hostname = options.hostname || \\"localhost\\"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol ? options.protocol.slice(-1) !== \\":\\" ? \`\${options.protocol}:\` : options.protocol : \\"https:\\"; + this.path = options.path ? options.path.charAt(0) !== \\"/\\" ? \`/\${options.path}\` : options.path : \\"/\\"; + } + static isInstance(request) { + if (!request) + return false; + const req = request; + return \\"method\\" in req && \\"protocol\\" in req && \\"hostname\\" in req && \\"path\\" in req && typeof req[\\"query\\"] === \\"object\\" && typeof req[\\"headers\\"] === \\"object\\"; + } + clone() { + const cloned = new HttpRequest({ + ...this, + headers: { ...this.headers } + }); + if (cloned.query) + cloned.query = cloneQuery(cloned.query); + return cloned; + } + }; + exports2.HttpRequest = HttpRequest; + function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + } + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js +var require_httpResponse = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.HttpResponse = void 0; + var HttpResponse = class { + constructor(options) { + this.statusCode = options.statusCode; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === \\"number\\" && typeof resp.headers === \\"object\\"; + } + }; + exports2.HttpResponse = HttpResponse; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js +var require_isValidHostname = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isValidHostname = void 0; + function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9\\\\.\\\\-]*[a-z0-9]$/; + return hostPattern.test(hostname); + } + exports2.isValidHostname = isValidHostname; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/index.js +var require_dist_cjs4 = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_httpHandler(), exports2); + tslib_1.__exportStar(require_httpRequest(), exports2); + tslib_1.__exportStar(require_httpResponse(), exports2); + tslib_1.__exportStar(require_isValidHostname(), exports2); + } +}); + +// node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + \\"node_modules/uuid/dist/rng.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = rng; + var _crypto = _interopRequireDefault(require(\\"crypto\\")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + \\"node_modules/uuid/dist/regex.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + \\"node_modules/uuid/dist/validate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === \\"string\\" && _regex.default.test(uuid); + } + var _default = validate; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + \\"node_modules/uuid/dist/stringify.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + \\"-\\" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + \\"-\\" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + \\"-\\" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + \\"-\\" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!(0, _validate.default)(uuid)) { + throw TypeError(\\"Stringified UUID is invalid\\"); + } + return uuid; + } + var _default = stringify; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + \\"node_modules/uuid/dist/v1.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + function v12(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error(\\"uuid.v1(): Can't create more than 10M uuids/sec\\"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || (0, _stringify.default)(b); + } + var _default = v12; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + \\"node_modules/uuid/dist/parse.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError(\\"Invalid UUID\\"); + } + let v; + const arr = new Uint8Array(16); + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; + return arr; + } + var _default = parse; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + \\"node_modules/uuid/dist/v35.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = _default; + exports2.URL = exports2.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = \\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\\"; + exports2.DNS = DNS; + var URL2 = \\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\\"; + exports2.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === \\"string\\") { + value = stringToBytes(value); + } + if (typeof namespace === \\"string\\") { + namespace = (0, _parse.default)(namespace); + } + if (namespace.length !== 16) { + throw TypeError(\\"Namespace must be array-like (16 iterable integer values, 0-255)\\"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + \\"node_modules/uuid/dist/md5.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require(\\"crypto\\")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === \\"string\\") { + bytes = Buffer.from(bytes, \\"utf8\\"); + } + return _crypto.default.createHash(\\"md5\\").update(bytes).digest(); + } + var _default = md5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + \\"node_modules/uuid/dist/v3.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v3 = (0, _v.default)(\\"v3\\", 48, _md.default); + var _default = v3; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + \\"node_modules/uuid/dist/v4.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, _stringify.default)(rnds); + } + var _default = v4; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + \\"node_modules/uuid/dist/sha1.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require(\\"crypto\\")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === \\"string\\") { + bytes = Buffer.from(bytes, \\"utf8\\"); + } + return _crypto.default.createHash(\\"sha1\\").update(bytes).digest(); + } + var _default = sha1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + \\"node_modules/uuid/dist/v5.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)(\\"v5\\", 80, _sha.default); + var _default = v5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + \\"node_modules/uuid/dist/nil.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _default = \\"00000000-0000-0000-0000-000000000000\\"; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/version.js +var require_version = __commonJS({ + \\"node_modules/uuid/dist/version.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError(\\"Invalid UUID\\"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + \\"node_modules/uuid/dist/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + Object.defineProperty(exports2, \\"v1\\", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports2, \\"v3\\", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports2, \\"v4\\", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports2, \\"v5\\", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports2, \\"NIL\\", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports2, \\"version\\", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports2, \\"validate\\", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports2, \\"stringify\\", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports2, \\"parse\\", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js +var require_Aws_json1_0 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.serializeAws_json1_0UpdateTimeToLiveCommand = exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0UpdateTableCommand = exports2.serializeAws_json1_0UpdateItemCommand = exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.serializeAws_json1_0UpdateGlobalTableCommand = exports2.serializeAws_json1_0UpdateContributorInsightsCommand = exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = exports2.serializeAws_json1_0UntagResourceCommand = exports2.serializeAws_json1_0TransactWriteItemsCommand = exports2.serializeAws_json1_0TransactGetItemsCommand = exports2.serializeAws_json1_0TagResourceCommand = exports2.serializeAws_json1_0ScanCommand = exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.serializeAws_json1_0RestoreTableFromBackupCommand = exports2.serializeAws_json1_0QueryCommand = exports2.serializeAws_json1_0PutItemCommand = exports2.serializeAws_json1_0ListTagsOfResourceCommand = exports2.serializeAws_json1_0ListTablesCommand = exports2.serializeAws_json1_0ListGlobalTablesCommand = exports2.serializeAws_json1_0ListExportsCommand = exports2.serializeAws_json1_0ListContributorInsightsCommand = exports2.serializeAws_json1_0ListBackupsCommand = exports2.serializeAws_json1_0GetItemCommand = exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = exports2.serializeAws_json1_0ExecuteTransactionCommand = exports2.serializeAws_json1_0ExecuteStatementCommand = exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeTimeToLiveCommand = exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0DescribeTableCommand = exports2.serializeAws_json1_0DescribeLimitsCommand = exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.serializeAws_json1_0DescribeGlobalTableCommand = exports2.serializeAws_json1_0DescribeExportCommand = exports2.serializeAws_json1_0DescribeEndpointsCommand = exports2.serializeAws_json1_0DescribeContributorInsightsCommand = exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = exports2.serializeAws_json1_0DescribeBackupCommand = exports2.serializeAws_json1_0DeleteTableCommand = exports2.serializeAws_json1_0DeleteItemCommand = exports2.serializeAws_json1_0DeleteBackupCommand = exports2.serializeAws_json1_0CreateTableCommand = exports2.serializeAws_json1_0CreateGlobalTableCommand = exports2.serializeAws_json1_0CreateBackupCommand = exports2.serializeAws_json1_0BatchWriteItemCommand = exports2.serializeAws_json1_0BatchGetItemCommand = exports2.serializeAws_json1_0BatchExecuteStatementCommand = void 0; + exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0UpdateTableCommand = exports2.deserializeAws_json1_0UpdateItemCommand = exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.deserializeAws_json1_0UpdateGlobalTableCommand = exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = exports2.deserializeAws_json1_0UntagResourceCommand = exports2.deserializeAws_json1_0TransactWriteItemsCommand = exports2.deserializeAws_json1_0TransactGetItemsCommand = exports2.deserializeAws_json1_0TagResourceCommand = exports2.deserializeAws_json1_0ScanCommand = exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = exports2.deserializeAws_json1_0QueryCommand = exports2.deserializeAws_json1_0PutItemCommand = exports2.deserializeAws_json1_0ListTagsOfResourceCommand = exports2.deserializeAws_json1_0ListTablesCommand = exports2.deserializeAws_json1_0ListGlobalTablesCommand = exports2.deserializeAws_json1_0ListExportsCommand = exports2.deserializeAws_json1_0ListContributorInsightsCommand = exports2.deserializeAws_json1_0ListBackupsCommand = exports2.deserializeAws_json1_0GetItemCommand = exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = exports2.deserializeAws_json1_0ExecuteTransactionCommand = exports2.deserializeAws_json1_0ExecuteStatementCommand = exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0DescribeTableCommand = exports2.deserializeAws_json1_0DescribeLimitsCommand = exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.deserializeAws_json1_0DescribeGlobalTableCommand = exports2.deserializeAws_json1_0DescribeExportCommand = exports2.deserializeAws_json1_0DescribeEndpointsCommand = exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = exports2.deserializeAws_json1_0DescribeBackupCommand = exports2.deserializeAws_json1_0DeleteTableCommand = exports2.deserializeAws_json1_0DeleteItemCommand = exports2.deserializeAws_json1_0DeleteBackupCommand = exports2.deserializeAws_json1_0CreateTableCommand = exports2.deserializeAws_json1_0CreateGlobalTableCommand = exports2.deserializeAws_json1_0CreateBackupCommand = exports2.deserializeAws_json1_0BatchWriteItemCommand = exports2.deserializeAws_json1_0BatchGetItemCommand = exports2.deserializeAws_json1_0BatchExecuteStatementCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs3(); + var uuid_1 = require_dist(); + var DynamoDBServiceException_1 = require_DynamoDBServiceException(); + var models_0_1 = require_models_0(); + var serializeAws_json1_0BatchExecuteStatementCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.BatchExecuteStatement\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0BatchExecuteStatementInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0BatchExecuteStatementCommand = serializeAws_json1_0BatchExecuteStatementCommand; + var serializeAws_json1_0BatchGetItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.BatchGetItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0BatchGetItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0BatchGetItemCommand = serializeAws_json1_0BatchGetItemCommand; + var serializeAws_json1_0BatchWriteItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.BatchWriteItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0BatchWriteItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0BatchWriteItemCommand = serializeAws_json1_0BatchWriteItemCommand; + var serializeAws_json1_0CreateBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.CreateBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0CreateBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0CreateBackupCommand = serializeAws_json1_0CreateBackupCommand; + var serializeAws_json1_0CreateGlobalTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.CreateGlobalTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0CreateGlobalTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0CreateGlobalTableCommand = serializeAws_json1_0CreateGlobalTableCommand; + var serializeAws_json1_0CreateTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.CreateTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0CreateTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0CreateTableCommand = serializeAws_json1_0CreateTableCommand; + var serializeAws_json1_0DeleteBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DeleteBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DeleteBackupCommand = serializeAws_json1_0DeleteBackupCommand; + var serializeAws_json1_0DeleteItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DeleteItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DeleteItemCommand = serializeAws_json1_0DeleteItemCommand; + var serializeAws_json1_0DeleteTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DeleteTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DeleteTableCommand = serializeAws_json1_0DeleteTableCommand; + var serializeAws_json1_0DescribeBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeBackupCommand = serializeAws_json1_0DescribeBackupCommand; + var serializeAws_json1_0DescribeContinuousBackupsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContinuousBackups\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeContinuousBackupsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = serializeAws_json1_0DescribeContinuousBackupsCommand; + var serializeAws_json1_0DescribeContributorInsightsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContributorInsights\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeContributorInsightsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeContributorInsightsCommand = serializeAws_json1_0DescribeContributorInsightsCommand; + var serializeAws_json1_0DescribeEndpointsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeEndpoints\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeEndpointsRequest(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeEndpointsCommand = serializeAws_json1_0DescribeEndpointsCommand; + var serializeAws_json1_0DescribeExportCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeExport\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeExportInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeExportCommand = serializeAws_json1_0DescribeExportCommand; + var serializeAws_json1_0DescribeGlobalTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeGlobalTableCommand = serializeAws_json1_0DescribeGlobalTableCommand; + var serializeAws_json1_0DescribeGlobalTableSettingsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTableSettings\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableSettingsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = serializeAws_json1_0DescribeGlobalTableSettingsCommand; + var serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeKinesisStreamingDestination\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeKinesisStreamingDestinationInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = serializeAws_json1_0DescribeKinesisStreamingDestinationCommand; + var serializeAws_json1_0DescribeLimitsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeLimits\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeLimitsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeLimitsCommand = serializeAws_json1_0DescribeLimitsCommand; + var serializeAws_json1_0DescribeTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeTableCommand = serializeAws_json1_0DescribeTableCommand; + var serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTableReplicaAutoScaling\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeTableReplicaAutoScalingInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = serializeAws_json1_0DescribeTableReplicaAutoScalingCommand; + var serializeAws_json1_0DescribeTimeToLiveCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTimeToLive\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeTimeToLiveInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeTimeToLiveCommand = serializeAws_json1_0DescribeTimeToLiveCommand; + var serializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DisableKinesisStreamingDestination\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = serializeAws_json1_0DisableKinesisStreamingDestinationCommand; + var serializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.EnableKinesisStreamingDestination\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = serializeAws_json1_0EnableKinesisStreamingDestinationCommand; + var serializeAws_json1_0ExecuteStatementCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteStatement\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ExecuteStatementInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ExecuteStatementCommand = serializeAws_json1_0ExecuteStatementCommand; + var serializeAws_json1_0ExecuteTransactionCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteTransaction\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ExecuteTransactionInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ExecuteTransactionCommand = serializeAws_json1_0ExecuteTransactionCommand; + var serializeAws_json1_0ExportTableToPointInTimeCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ExportTableToPointInTime\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ExportTableToPointInTimeInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = serializeAws_json1_0ExportTableToPointInTimeCommand; + var serializeAws_json1_0GetItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.GetItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0GetItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0GetItemCommand = serializeAws_json1_0GetItemCommand; + var serializeAws_json1_0ListBackupsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListBackups\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListBackupsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListBackupsCommand = serializeAws_json1_0ListBackupsCommand; + var serializeAws_json1_0ListContributorInsightsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListContributorInsights\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListContributorInsightsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListContributorInsightsCommand = serializeAws_json1_0ListContributorInsightsCommand; + var serializeAws_json1_0ListExportsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListExports\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListExportsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListExportsCommand = serializeAws_json1_0ListExportsCommand; + var serializeAws_json1_0ListGlobalTablesCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListGlobalTables\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListGlobalTablesInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListGlobalTablesCommand = serializeAws_json1_0ListGlobalTablesCommand; + var serializeAws_json1_0ListTablesCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListTables\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListTablesInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListTablesCommand = serializeAws_json1_0ListTablesCommand; + var serializeAws_json1_0ListTagsOfResourceCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListTagsOfResource\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListTagsOfResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListTagsOfResourceCommand = serializeAws_json1_0ListTagsOfResourceCommand; + var serializeAws_json1_0PutItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.PutItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0PutItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0PutItemCommand = serializeAws_json1_0PutItemCommand; + var serializeAws_json1_0QueryCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.Query\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0QueryInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0QueryCommand = serializeAws_json1_0QueryCommand; + var serializeAws_json1_0RestoreTableFromBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableFromBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0RestoreTableFromBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0RestoreTableFromBackupCommand = serializeAws_json1_0RestoreTableFromBackupCommand; + var serializeAws_json1_0RestoreTableToPointInTimeCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableToPointInTime\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0RestoreTableToPointInTimeInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = serializeAws_json1_0RestoreTableToPointInTimeCommand; + var serializeAws_json1_0ScanCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.Scan\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ScanInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ScanCommand = serializeAws_json1_0ScanCommand; + var serializeAws_json1_0TagResourceCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.TagResource\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0TagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand; + var serializeAws_json1_0TransactGetItemsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.TransactGetItems\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0TransactGetItemsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0TransactGetItemsCommand = serializeAws_json1_0TransactGetItemsCommand; + var serializeAws_json1_0TransactWriteItemsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.TransactWriteItems\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0TransactWriteItemsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0TransactWriteItemsCommand = serializeAws_json1_0TransactWriteItemsCommand; + var serializeAws_json1_0UntagResourceCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UntagResource\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand; + var serializeAws_json1_0UpdateContinuousBackupsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContinuousBackups\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateContinuousBackupsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = serializeAws_json1_0UpdateContinuousBackupsCommand; + var serializeAws_json1_0UpdateContributorInsightsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContributorInsights\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateContributorInsightsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateContributorInsightsCommand = serializeAws_json1_0UpdateContributorInsightsCommand; + var serializeAws_json1_0UpdateGlobalTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateGlobalTableCommand = serializeAws_json1_0UpdateGlobalTableCommand; + var serializeAws_json1_0UpdateGlobalTableSettingsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTableSettings\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableSettingsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = serializeAws_json1_0UpdateGlobalTableSettingsCommand; + var serializeAws_json1_0UpdateItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateItemCommand = serializeAws_json1_0UpdateItemCommand; + var serializeAws_json1_0UpdateTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateTableCommand = serializeAws_json1_0UpdateTableCommand; + var serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTableReplicaAutoScaling\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateTableReplicaAutoScalingInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = serializeAws_json1_0UpdateTableReplicaAutoScalingCommand; + var serializeAws_json1_0UpdateTimeToLiveCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTimeToLive\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateTimeToLiveInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateTimeToLiveCommand = serializeAws_json1_0UpdateTimeToLiveCommand; + var deserializeAws_json1_0BatchExecuteStatementCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0BatchExecuteStatementCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0BatchExecuteStatementOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0BatchExecuteStatementCommand = deserializeAws_json1_0BatchExecuteStatementCommand; + var deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0BatchGetItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0BatchGetItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0BatchGetItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0BatchGetItemCommand = deserializeAws_json1_0BatchGetItemCommand; + var deserializeAws_json1_0BatchGetItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0BatchWriteItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0BatchWriteItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0BatchWriteItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0BatchWriteItemCommand = deserializeAws_json1_0BatchWriteItemCommand; + var deserializeAws_json1_0BatchWriteItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0CreateBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0CreateBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0CreateBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0CreateBackupCommand = deserializeAws_json1_0CreateBackupCommand; + var deserializeAws_json1_0CreateBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupInUseException\\": + case \\"com.amazonaws.dynamodb#BackupInUseException\\": + throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); + case \\"ContinuousBackupsUnavailableException\\": + case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": + throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"TableInUseException\\": + case \\"com.amazonaws.dynamodb#TableInUseException\\": + throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0CreateGlobalTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0CreateGlobalTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0CreateGlobalTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0CreateGlobalTableCommand = deserializeAws_json1_0CreateGlobalTableCommand; + var deserializeAws_json1_0CreateGlobalTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException\\": + throw await deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0CreateTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0CreateTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0CreateTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0CreateTableCommand = deserializeAws_json1_0CreateTableCommand; + var deserializeAws_json1_0CreateTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DeleteBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DeleteBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DeleteBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DeleteBackupCommand = deserializeAws_json1_0DeleteBackupCommand; + var deserializeAws_json1_0DeleteBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupInUseException\\": + case \\"com.amazonaws.dynamodb#BackupInUseException\\": + throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); + case \\"BackupNotFoundException\\": + case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": + throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DeleteItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DeleteItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DeleteItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DeleteItemCommand = deserializeAws_json1_0DeleteItemCommand; + var deserializeAws_json1_0DeleteItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DeleteTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DeleteTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DeleteTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DeleteTableCommand = deserializeAws_json1_0DeleteTableCommand; + var deserializeAws_json1_0DeleteTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeBackupCommand = deserializeAws_json1_0DescribeBackupCommand; + var deserializeAws_json1_0DescribeBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupNotFoundException\\": + case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": + throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeContinuousBackupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeContinuousBackupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeContinuousBackupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = deserializeAws_json1_0DescribeContinuousBackupsCommand; + var deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeContributorInsightsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeContributorInsightsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeContributorInsightsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = deserializeAws_json1_0DescribeContributorInsightsCommand; + var deserializeAws_json1_0DescribeContributorInsightsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeEndpointsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeEndpointsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeEndpointsCommand = deserializeAws_json1_0DescribeEndpointsCommand; + var deserializeAws_json1_0DescribeEndpointsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + }; + var deserializeAws_json1_0DescribeExportCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeExportCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeExportOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeExportCommand = deserializeAws_json1_0DescribeExportCommand; + var deserializeAws_json1_0DescribeExportCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExportNotFoundException\\": + case \\"com.amazonaws.dynamodb#ExportNotFoundException\\": + throw await deserializeAws_json1_0ExportNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeGlobalTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeGlobalTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeGlobalTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeGlobalTableCommand = deserializeAws_json1_0DescribeGlobalTableCommand; + var deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeGlobalTableSettingsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeGlobalTableSettingsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeGlobalTableSettingsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = deserializeAws_json1_0DescribeGlobalTableSettingsCommand; + var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand; + var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeLimitsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeLimitsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeLimitsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeLimitsCommand = deserializeAws_json1_0DescribeLimitsCommand; + var deserializeAws_json1_0DescribeLimitsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeTableCommand = deserializeAws_json1_0DescribeTableCommand; + var deserializeAws_json1_0DescribeTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand; + var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeTimeToLiveCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeTimeToLiveCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeTimeToLiveOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = deserializeAws_json1_0DescribeTimeToLiveCommand; + var deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = deserializeAws_json1_0DisableKinesisStreamingDestinationCommand; + var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = deserializeAws_json1_0EnableKinesisStreamingDestinationCommand; + var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ExecuteStatementCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ExecuteStatementCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ExecuteStatementOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ExecuteStatementCommand = deserializeAws_json1_0ExecuteStatementCommand; + var deserializeAws_json1_0ExecuteStatementCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"DuplicateItemException\\": + case \\"com.amazonaws.dynamodb#DuplicateItemException\\": + throw await deserializeAws_json1_0DuplicateItemExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ExecuteTransactionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ExecuteTransactionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ExecuteTransactionOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ExecuteTransactionCommand = deserializeAws_json1_0ExecuteTransactionCommand; + var deserializeAws_json1_0ExecuteTransactionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"IdempotentParameterMismatchException\\": + case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": + throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionCanceledException\\": + case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": + throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); + case \\"TransactionInProgressException\\": + case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": + throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ExportTableToPointInTimeCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ExportTableToPointInTimeCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ExportTableToPointInTimeOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = deserializeAws_json1_0ExportTableToPointInTimeCommand; + var deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExportConflictException\\": + case \\"com.amazonaws.dynamodb#ExportConflictException\\": + throw await deserializeAws_json1_0ExportConflictExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidExportTimeException\\": + case \\"com.amazonaws.dynamodb#InvalidExportTimeException\\": + throw await deserializeAws_json1_0InvalidExportTimeExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"PointInTimeRecoveryUnavailableException\\": + case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": + throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0GetItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0GetItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0GetItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0GetItemCommand = deserializeAws_json1_0GetItemCommand; + var deserializeAws_json1_0GetItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListBackupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListBackupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListBackupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListBackupsCommand = deserializeAws_json1_0ListBackupsCommand; + var deserializeAws_json1_0ListBackupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListContributorInsightsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListContributorInsightsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListContributorInsightsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListContributorInsightsCommand = deserializeAws_json1_0ListContributorInsightsCommand; + var deserializeAws_json1_0ListContributorInsightsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListExportsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListExportsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListExportsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListExportsCommand = deserializeAws_json1_0ListExportsCommand; + var deserializeAws_json1_0ListExportsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListGlobalTablesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListGlobalTablesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListGlobalTablesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListGlobalTablesCommand = deserializeAws_json1_0ListGlobalTablesCommand; + var deserializeAws_json1_0ListGlobalTablesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListTablesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListTablesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListTablesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListTablesCommand = deserializeAws_json1_0ListTablesCommand; + var deserializeAws_json1_0ListTablesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListTagsOfResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListTagsOfResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListTagsOfResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListTagsOfResourceCommand = deserializeAws_json1_0ListTagsOfResourceCommand; + var deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0PutItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0PutItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0PutItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0PutItemCommand = deserializeAws_json1_0PutItemCommand; + var deserializeAws_json1_0PutItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0QueryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0QueryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0QueryOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand; + var deserializeAws_json1_0QueryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0RestoreTableFromBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0RestoreTableFromBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0RestoreTableFromBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = deserializeAws_json1_0RestoreTableFromBackupCommand; + var deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupInUseException\\": + case \\"com.amazonaws.dynamodb#BackupInUseException\\": + throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); + case \\"BackupNotFoundException\\": + case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": + throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"TableAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": + throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"TableInUseException\\": + case \\"com.amazonaws.dynamodb#TableInUseException\\": + throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0RestoreTableToPointInTimeCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0RestoreTableToPointInTimeCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0RestoreTableToPointInTimeOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = deserializeAws_json1_0RestoreTableToPointInTimeCommand; + var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"InvalidRestoreTimeException\\": + case \\"com.amazonaws.dynamodb#InvalidRestoreTimeException\\": + throw await deserializeAws_json1_0InvalidRestoreTimeExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"PointInTimeRecoveryUnavailableException\\": + case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": + throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); + case \\"TableAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": + throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"TableInUseException\\": + case \\"com.amazonaws.dynamodb#TableInUseException\\": + throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ScanCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ScanCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ScanOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ScanCommand = deserializeAws_json1_0ScanCommand; + var deserializeAws_json1_0ScanCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0TagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0TagResourceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand; + var deserializeAws_json1_0TagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0TransactGetItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0TransactGetItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0TransactGetItemsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0TransactGetItemsCommand = deserializeAws_json1_0TransactGetItemsCommand; + var deserializeAws_json1_0TransactGetItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionCanceledException\\": + case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": + throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0TransactWriteItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0TransactWriteItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0TransactWriteItemsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0TransactWriteItemsCommand = deserializeAws_json1_0TransactWriteItemsCommand; + var deserializeAws_json1_0TransactWriteItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"IdempotentParameterMismatchException\\": + case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": + throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionCanceledException\\": + case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": + throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); + case \\"TransactionInProgressException\\": + case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": + throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UntagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UntagResourceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand; + var deserializeAws_json1_0UntagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateContinuousBackupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateContinuousBackupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateContinuousBackupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = deserializeAws_json1_0UpdateContinuousBackupsCommand; + var deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ContinuousBackupsUnavailableException\\": + case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": + throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateContributorInsightsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateContributorInsightsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateContributorInsightsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = deserializeAws_json1_0UpdateContributorInsightsCommand; + var deserializeAws_json1_0UpdateContributorInsightsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateGlobalTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateGlobalTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateGlobalTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateGlobalTableCommand = deserializeAws_json1_0UpdateGlobalTableCommand; + var deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ReplicaAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#ReplicaAlreadyExistsException\\": + throw await deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"ReplicaNotFoundException\\": + case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": + throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateGlobalTableSettingsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateGlobalTableSettingsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateGlobalTableSettingsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = deserializeAws_json1_0UpdateGlobalTableSettingsCommand; + var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"IndexNotFoundException\\": + case \\"com.amazonaws.dynamodb#IndexNotFoundException\\": + throw await deserializeAws_json1_0IndexNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ReplicaNotFoundException\\": + case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": + throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateItemCommand = deserializeAws_json1_0UpdateItemCommand; + var deserializeAws_json1_0UpdateItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateTableCommand = deserializeAws_json1_0UpdateTableCommand; + var deserializeAws_json1_0UpdateTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand; + var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateTimeToLiveCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateTimeToLiveCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateTimeToLiveOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = deserializeAws_json1_0UpdateTimeToLiveCommand; + var deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0BackupInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0BackupInUseException(body, context); + const exception = new models_0_1.BackupInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0BackupNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0BackupNotFoundException(body, context); + const exception = new models_0_1.BackupNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ConditionalCheckFailedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ConditionalCheckFailedException(body, context); + const exception = new models_0_1.ConditionalCheckFailedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ContinuousBackupsUnavailableException(body, context); + const exception = new models_0_1.ContinuousBackupsUnavailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0DuplicateItemExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0DuplicateItemException(body, context); + const exception = new models_0_1.DuplicateItemException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ExportConflictExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ExportConflictException(body, context); + const exception = new models_0_1.ExportConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ExportNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ExportNotFoundException(body, context); + const exception = new models_0_1.ExportNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0GlobalTableAlreadyExistsException(body, context); + const exception = new models_0_1.GlobalTableAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0GlobalTableNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0GlobalTableNotFoundException(body, context); + const exception = new models_0_1.GlobalTableNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0IdempotentParameterMismatchException(body, context); + const exception = new models_0_1.IdempotentParameterMismatchException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0IndexNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0IndexNotFoundException(body, context); + const exception = new models_0_1.IndexNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InternalServerError(body, context); + const exception = new models_0_1.InternalServerError({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InvalidEndpointExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InvalidEndpointException(body, context); + const exception = new models_0_1.InvalidEndpointException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InvalidExportTimeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InvalidExportTimeException(body, context); + const exception = new models_0_1.InvalidExportTimeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InvalidRestoreTimeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InvalidRestoreTimeException(body, context); + const exception = new models_0_1.InvalidRestoreTimeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ItemCollectionSizeLimitExceededException(body, context); + const exception = new models_0_1.ItemCollectionSizeLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0LimitExceededException(body, context); + const exception = new models_0_1.LimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0PointInTimeRecoveryUnavailableException(body, context); + const exception = new models_0_1.PointInTimeRecoveryUnavailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ProvisionedThroughputExceededException(body, context); + const exception = new models_0_1.ProvisionedThroughputExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ReplicaAlreadyExistsException(body, context); + const exception = new models_0_1.ReplicaAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ReplicaNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ReplicaNotFoundException(body, context); + const exception = new models_0_1.ReplicaNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0RequestLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0RequestLimitExceeded(body, context); + const exception = new models_0_1.RequestLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ResourceInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ResourceInUseException(body, context); + const exception = new models_0_1.ResourceInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context); + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TableAlreadyExistsException(body, context); + const exception = new models_0_1.TableAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TableInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TableInUseException(body, context); + const exception = new models_0_1.TableInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TableNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TableNotFoundException(body, context); + const exception = new models_0_1.TableNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TransactionCanceledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TransactionCanceledException(body, context); + const exception = new models_0_1.TransactionCanceledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TransactionConflictExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TransactionConflictException(body, context); + const exception = new models_0_1.TransactionConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TransactionInProgressExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TransactionInProgressException(body, context); + const exception = new models_0_1.TransactionInProgressException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_json1_0AttributeDefinition = (input, context) => { + return { + ...input.AttributeName != null && { AttributeName: input.AttributeName }, + ...input.AttributeType != null && { AttributeType: input.AttributeType } + }; + }; + var serializeAws_json1_0AttributeDefinitions = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeDefinition(entry, context); + }); + }; + var serializeAws_json1_0AttributeNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0AttributeUpdates = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValueUpdate(value, context) + }; + }, {}); + }; + var serializeAws_json1_0AttributeValue = (input, context) => { + return models_0_1.AttributeValue.visit(input, { + B: (value) => ({ B: context.base64Encoder(value) }), + BOOL: (value) => ({ BOOL: value }), + BS: (value) => ({ BS: serializeAws_json1_0BinarySetAttributeValue(value, context) }), + L: (value) => ({ L: serializeAws_json1_0ListAttributeValue(value, context) }), + M: (value) => ({ M: serializeAws_json1_0MapAttributeValue(value, context) }), + N: (value) => ({ N: value }), + NS: (value) => ({ NS: serializeAws_json1_0NumberSetAttributeValue(value, context) }), + NULL: (value) => ({ NULL: value }), + S: (value) => ({ S: value }), + SS: (value) => ({ SS: serializeAws_json1_0StringSetAttributeValue(value, context) }), + _: (name, value) => ({ name: value }) + }); + }; + var serializeAws_json1_0AttributeValueList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeValue(entry, context); + }); + }; + var serializeAws_json1_0AttributeValueUpdate = (input, context) => { + return { + ...input.Action != null && { Action: input.Action }, + ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } + }; + }; + var serializeAws_json1_0AutoScalingPolicyUpdate = (input, context) => { + return { + ...input.PolicyName != null && { PolicyName: input.PolicyName }, + ...input.TargetTrackingScalingPolicyConfiguration != null && { + TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context) + } + }; + }; + var serializeAws_json1_0AutoScalingSettingsUpdate = (input, context) => { + return { + ...input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled }, + ...input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn }, + ...input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits }, + ...input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits }, + ...input.ScalingPolicyUpdate != null && { + ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context) + } + }; + }; + var serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => { + return { + ...input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }, + ...input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }, + ...input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }, + ...input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) } + }; + }; + var serializeAws_json1_0BatchExecuteStatementInput = (input, context) => { + return { + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) } + }; + }; + var serializeAws_json1_0BatchGetItemInput = (input, context) => { + return { + ...input.RequestItems != null && { + RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity } + }; + }; + var serializeAws_json1_0BatchGetRequestMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0KeysAndAttributes(value, context) + }; + }, {}); + }; + var serializeAws_json1_0BatchStatementRequest = (input, context) => { + return { + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.Parameters != null && { + Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) + }, + ...input.Statement != null && { Statement: input.Statement } + }; + }; + var serializeAws_json1_0BatchWriteItemInput = (input, context) => { + return { + ...input.RequestItems != null && { + RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + } + }; + }; + var serializeAws_json1_0BatchWriteItemRequestMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0WriteRequests(value, context) + }; + }, {}); + }; + var serializeAws_json1_0BinarySetAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return context.base64Encoder(entry); + }); + }; + var serializeAws_json1_0Condition = (input, context) => { + return { + ...input.AttributeValueList != null && { + AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) + }, + ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator } + }; + }; + var serializeAws_json1_0ConditionCheck = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0CreateBackupInput = (input, context) => { + return { + ...input.BackupName != null && { BackupName: input.BackupName }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0CreateGlobalSecondaryIndexAction = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + } + }; + }; + var serializeAws_json1_0CreateGlobalTableInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, + ...input.ReplicationGroup != null && { + ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context) + } + }; + }; + var serializeAws_json1_0CreateReplicaAction = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0CreateReplicationGroupMemberAction = (input, context) => { + return { + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) + }, + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } + }; + }; + var serializeAws_json1_0CreateTableInput = (input, context) => { + return { + ...input.AttributeDefinitions != null && { + AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) + }, + ...input.BillingMode != null && { BillingMode: input.BillingMode }, + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.LocalSecondaryIndexes != null && { + LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context) + }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + }, + ...input.SSESpecification != null && { + SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) + }, + ...input.StreamSpecification != null && { + StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) + }, + ...input.TableClass != null && { TableClass: input.TableClass }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } + }; + }; + var serializeAws_json1_0Delete = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DeleteBackupInput = (input, context) => { + return { + ...input.BackupArn != null && { BackupArn: input.BackupArn } + }; + }; + var serializeAws_json1_0DeleteGlobalSecondaryIndexAction = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName } + }; + }; + var serializeAws_json1_0DeleteItemInput = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DeleteReplicaAction = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0DeleteReplicationGroupMemberAction = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0DeleteRequest = (input, context) => { + return { + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) } + }; + }; + var serializeAws_json1_0DeleteTableInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeBackupInput = (input, context) => { + return { + ...input.BackupArn != null && { BackupArn: input.BackupArn } + }; + }; + var serializeAws_json1_0DescribeContinuousBackupsInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeContributorInsightsInput = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeEndpointsRequest = (input, context) => { + return {}; + }; + var serializeAws_json1_0DescribeExportInput = (input, context) => { + return { + ...input.ExportArn != null && { ExportArn: input.ExportArn } + }; + }; + var serializeAws_json1_0DescribeGlobalTableInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } + }; + }; + var serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } + }; + }; + var serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeLimitsInput = (input, context) => { + return {}; + }; + var serializeAws_json1_0DescribeTableInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeTableReplicaAutoScalingInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeTimeToLiveInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0ExecuteStatementInput = (input, context) => { + return { + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.Parameters != null && { + Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.Statement != null && { Statement: input.Statement } + }; + }; + var serializeAws_json1_0ExecuteTransactionInput = (input, context) => { + var _a; + return { + ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.TransactStatements != null && { + TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context) + } + }; + }; + var serializeAws_json1_0ExpectedAttributeMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0ExpectedAttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0ExpectedAttributeValue = (input, context) => { + return { + ...input.AttributeValueList != null && { + AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) + }, + ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }, + ...input.Exists != null && { Exists: input.Exists }, + ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } + }; + }; + var serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => { + var _a; + return { + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.ExportFormat != null && { ExportFormat: input.ExportFormat }, + ...input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1e3) }, + ...input.S3Bucket != null && { S3Bucket: input.S3Bucket }, + ...input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }, + ...input.S3Prefix != null && { S3Prefix: input.S3Prefix }, + ...input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm }, + ...input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId }, + ...input.TableArn != null && { TableArn: input.TableArn } + }; + }; + var serializeAws_json1_0ExpressionAttributeNameMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: value + }; + }, {}); + }; + var serializeAws_json1_0ExpressionAttributeValueMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0FilterConditionMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0Condition(value, context) + }; + }, {}); + }; + var serializeAws_json1_0Get = (input, context) => { + return { + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0GetItemInput = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndex = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { + ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) + } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate(entry, context); + }); + }; + var serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalSecondaryIndex(entry, context); + }); + }; + var serializeAws_json1_0GlobalSecondaryIndexUpdate = (input, context) => { + return { + ...input.Create != null && { + Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) + }, + ...input.Delete != null && { + Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) + }, + ...input.Update != null && { + Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) + } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalSecondaryIndexUpdate(entry, context); + }); + }; + var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { + ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context) + }, + ...input.ProvisionedWriteCapacityUnits != null && { + ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits + } + }; + }; + var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context); + }); + }; + var serializeAws_json1_0Key = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0KeyConditions = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0Condition(value, context) + }; + }, {}); + }; + var serializeAws_json1_0KeyList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0Key(entry, context); + }); + }; + var serializeAws_json1_0KeysAndAttributes = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression } + }; + }; + var serializeAws_json1_0KeySchema = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0KeySchemaElement(entry, context); + }); + }; + var serializeAws_json1_0KeySchemaElement = (input, context) => { + return { + ...input.AttributeName != null && { AttributeName: input.AttributeName }, + ...input.KeyType != null && { KeyType: input.KeyType } + }; + }; + var serializeAws_json1_0KinesisStreamingDestinationInput = (input, context) => { + return { + ...input.StreamArn != null && { StreamArn: input.StreamArn }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0ListAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeValue(entry, context); + }); + }; + var serializeAws_json1_0ListBackupsInput = (input, context) => { + return { + ...input.BackupType != null && { BackupType: input.BackupType }, + ...input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.TimeRangeLowerBound != null && { + TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1e3) + }, + ...input.TimeRangeUpperBound != null && { + TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1e3) + } + }; + }; + var serializeAws_json1_0ListContributorInsightsInput = (input, context) => { + return { + ...input.MaxResults != null && { MaxResults: input.MaxResults }, + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0ListExportsInput = (input, context) => { + return { + ...input.MaxResults != null && { MaxResults: input.MaxResults }, + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.TableArn != null && { TableArn: input.TableArn } + }; + }; + var serializeAws_json1_0ListGlobalTablesInput = (input, context) => { + return { + ...input.ExclusiveStartGlobalTableName != null && { + ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName + }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0ListTablesInput = (input, context) => { + return { + ...input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }, + ...input.Limit != null && { Limit: input.Limit } + }; + }; + var serializeAws_json1_0ListTagsOfResourceInput = (input, context) => { + return { + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn } + }; + }; + var serializeAws_json1_0LocalSecondaryIndex = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) } + }; + }; + var serializeAws_json1_0LocalSecondaryIndexList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0LocalSecondaryIndex(entry, context); + }); + }; + var serializeAws_json1_0MapAttributeValue = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0NonKeyAttributeNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0NumberSetAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0ParameterizedStatement = (input, context) => { + return { + ...input.Parameters != null && { + Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) + }, + ...input.Statement != null && { Statement: input.Statement } + }; + }; + var serializeAws_json1_0ParameterizedStatements = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ParameterizedStatement(entry, context); + }); + }; + var serializeAws_json1_0PartiQLBatchRequest = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0BatchStatementRequest(entry, context); + }); + }; + var serializeAws_json1_0PointInTimeRecoverySpecification = (input, context) => { + return { + ...input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled } + }; + }; + var serializeAws_json1_0PreparedStatementParameters = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeValue(entry, context); + }); + }; + var serializeAws_json1_0Projection = (input, context) => { + return { + ...input.NonKeyAttributes != null && { + NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context) + }, + ...input.ProjectionType != null && { ProjectionType: input.ProjectionType } + }; + }; + var serializeAws_json1_0ProvisionedThroughput = (input, context) => { + return { + ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }, + ...input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits } + }; + }; + var serializeAws_json1_0ProvisionedThroughputOverride = (input, context) => { + return { + ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits } + }; + }; + var serializeAws_json1_0Put = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0PutItemInput = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0PutItemInputAttributeMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0PutRequest = (input, context) => { + return { + ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) } + }; + }; + var serializeAws_json1_0QueryInput = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExclusiveStartKey != null && { + ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) + }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression }, + ...input.KeyConditions != null && { + KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context) + }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.QueryFilter != null && { + QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward }, + ...input.Select != null && { Select: input.Select }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0Replica = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0ReplicaAutoScalingUpdate = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.ReplicaGlobalSecondaryIndexUpdates != null && { + ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context) + }, + ...input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && { + ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context) + } + }; + }; + var serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaAutoScalingUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndex = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) + } + }; + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedReadCapacityAutoScalingUpdate != null && { + ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context) + } + }; + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaGlobalSecondaryIndex(entry, context); + }); + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && { + ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context) + }, + ...input.ProvisionedReadCapacityUnits != null && { + ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits + } + }; + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0Replica(entry, context); + }); + }; + var serializeAws_json1_0ReplicaSettingsUpdate = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && { + ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context) + }, + ...input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && { + ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context) + }, + ...input.ReplicaProvisionedReadCapacityUnits != null && { + ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits + }, + ...input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass } + }; + }; + var serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaSettingsUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicationGroupUpdate = (input, context) => { + return { + ...input.Create != null && { + Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context) + }, + ...input.Delete != null && { + Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context) + }, + ...input.Update != null && { + Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context) + } + }; + }; + var serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicationGroupUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaUpdate = (input, context) => { + return { + ...input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }, + ...input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) } + }; + }; + var serializeAws_json1_0ReplicaUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaUpdate(entry, context); + }); + }; + var serializeAws_json1_0RestoreTableFromBackupInput = (input, context) => { + return { + ...input.BackupArn != null && { BackupArn: input.BackupArn }, + ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, + ...input.GlobalSecondaryIndexOverride != null && { + GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) + }, + ...input.LocalSecondaryIndexOverride != null && { + LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) + }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) + }, + ...input.SSESpecificationOverride != null && { + SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) + }, + ...input.TargetTableName != null && { TargetTableName: input.TargetTableName } + }; + }; + var serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => { + return { + ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, + ...input.GlobalSecondaryIndexOverride != null && { + GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) + }, + ...input.LocalSecondaryIndexOverride != null && { + LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) + }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) + }, + ...input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1e3) }, + ...input.SSESpecificationOverride != null && { + SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) + }, + ...input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn }, + ...input.SourceTableName != null && { SourceTableName: input.SourceTableName }, + ...input.TargetTableName != null && { TargetTableName: input.TargetTableName }, + ...input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime } + }; + }; + var serializeAws_json1_0ScanInput = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExclusiveStartKey != null && { + ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) + }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }, + ...input.Segment != null && { Segment: input.Segment }, + ...input.Select != null && { Select: input.Select }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.TotalSegments != null && { TotalSegments: input.TotalSegments } + }; + }; + var serializeAws_json1_0SSESpecification = (input, context) => { + return { + ...input.Enabled != null && { Enabled: input.Enabled }, + ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, + ...input.SSEType != null && { SSEType: input.SSEType } + }; + }; + var serializeAws_json1_0StreamSpecification = (input, context) => { + return { + ...input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled }, + ...input.StreamViewType != null && { StreamViewType: input.StreamViewType } + }; + }; + var serializeAws_json1_0StringSetAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0Tag = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_0TagKeyList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0TagList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0Tag(entry, context); + }); + }; + var serializeAws_json1_0TagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } + }; + }; + var serializeAws_json1_0TimeToLiveSpecification = (input, context) => { + return { + ...input.AttributeName != null && { AttributeName: input.AttributeName }, + ...input.Enabled != null && { Enabled: input.Enabled } + }; + }; + var serializeAws_json1_0TransactGetItem = (input, context) => { + return { + ...input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) } + }; + }; + var serializeAws_json1_0TransactGetItemList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0TransactGetItem(entry, context); + }); + }; + var serializeAws_json1_0TransactGetItemsInput = (input, context) => { + return { + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.TransactItems != null && { + TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context) + } + }; + }; + var serializeAws_json1_0TransactWriteItem = (input, context) => { + return { + ...input.ConditionCheck != null && { + ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context) + }, + ...input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }, + ...input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) }, + ...input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) } + }; + }; + var serializeAws_json1_0TransactWriteItemList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0TransactWriteItem(entry, context); + }); + }; + var serializeAws_json1_0TransactWriteItemsInput = (input, context) => { + var _a; + return { + ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.TransactItems != null && { + TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context) + } + }; + }; + var serializeAws_json1_0UntagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) } + }; + }; + var serializeAws_json1_0Update = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } + }; + }; + var serializeAws_json1_0UpdateContinuousBackupsInput = (input, context) => { + return { + ...input.PointInTimeRecoverySpecification != null && { + PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context) + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateContributorInsightsInput = (input, context) => { + return { + ...input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction }, + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateGlobalSecondaryIndexAction = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + } + }; + }; + var serializeAws_json1_0UpdateGlobalTableInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, + ...input.ReplicaUpdates != null && { + ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context) + } + }; + }; + var serializeAws_json1_0UpdateGlobalTableSettingsInput = (input, context) => { + return { + ...input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode }, + ...input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && { + GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context) + }, + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, + ...input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { + GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context) + }, + ...input.GlobalTableProvisionedWriteCapacityUnits != null && { + GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits + }, + ...input.ReplicaSettingsUpdate != null && { + ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context) + } + }; + }; + var serializeAws_json1_0UpdateItemInput = (input, context) => { + return { + ...input.AttributeUpdates != null && { + AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context) + }, + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } + }; + }; + var serializeAws_json1_0UpdateReplicationGroupMemberAction = (input, context) => { + return { + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) + }, + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } + }; + }; + var serializeAws_json1_0UpdateTableInput = (input, context) => { + return { + ...input.AttributeDefinitions != null && { + AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) + }, + ...input.BillingMode != null && { BillingMode: input.BillingMode }, + ...input.GlobalSecondaryIndexUpdates != null && { + GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context) + }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + }, + ...input.ReplicaUpdates != null && { + ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context) + }, + ...input.SSESpecification != null && { + SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) + }, + ...input.StreamSpecification != null && { + StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) + }, + ...input.TableClass != null && { TableClass: input.TableClass }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateTableReplicaAutoScalingInput = (input, context) => { + return { + ...input.GlobalSecondaryIndexUpdates != null && { + GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context) + }, + ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { + ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) + }, + ...input.ReplicaUpdates != null && { + ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context) + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateTimeToLiveInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName }, + ...input.TimeToLiveSpecification != null && { + TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context) + } + }; + }; + var serializeAws_json1_0WriteRequest = (input, context) => { + return { + ...input.DeleteRequest != null && { + DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context) + }, + ...input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) } + }; + }; + var serializeAws_json1_0WriteRequests = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0WriteRequest(entry, context); + }); + }; + var deserializeAws_json1_0ArchivalSummary = (output, context) => { + return { + ArchivalBackupArn: (0, smithy_client_1.expectString)(output.ArchivalBackupArn), + ArchivalDateTime: output.ArchivalDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ArchivalDateTime))) : void 0, + ArchivalReason: (0, smithy_client_1.expectString)(output.ArchivalReason) + }; + }; + var deserializeAws_json1_0AttributeDefinition = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + AttributeType: (0, smithy_client_1.expectString)(output.AttributeType) + }; + }; + var deserializeAws_json1_0AttributeDefinitions = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AttributeDefinition(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0AttributeMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0AttributeNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0AttributeValue = (output, context) => { + if (output.B != null) { + return { + B: context.base64Decoder(output.B) + }; + } + if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== void 0) { + return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) }; + } + if (output.BS != null) { + return { + BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context) + }; + } + if (output.L != null) { + return { + L: deserializeAws_json1_0ListAttributeValue(output.L, context) + }; + } + if (output.M != null) { + return { + M: deserializeAws_json1_0MapAttributeValue(output.M, context) + }; + } + if ((0, smithy_client_1.expectString)(output.N) !== void 0) { + return { N: (0, smithy_client_1.expectString)(output.N) }; + } + if (output.NS != null) { + return { + NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context) + }; + } + if ((0, smithy_client_1.expectBoolean)(output.NULL) !== void 0) { + return { NULL: (0, smithy_client_1.expectBoolean)(output.NULL) }; + } + if ((0, smithy_client_1.expectString)(output.S) !== void 0) { + return { S: (0, smithy_client_1.expectString)(output.S) }; + } + if (output.SS != null) { + return { + SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context) + }; + } + return { $unknown: Object.entries(output)[0] }; + }; + var deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) => { + return { + PolicyName: (0, smithy_client_1.expectString)(output.PolicyName), + TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context) : void 0 + }; + }; + var deserializeAws_json1_0AutoScalingPolicyDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AutoScalingPolicyDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) => { + return { + AutoScalingDisabled: (0, smithy_client_1.expectBoolean)(output.AutoScalingDisabled), + AutoScalingRoleArn: (0, smithy_client_1.expectString)(output.AutoScalingRoleArn), + MaximumUnits: (0, smithy_client_1.expectLong)(output.MaximumUnits), + MinimumUnits: (0, smithy_client_1.expectLong)(output.MinimumUnits), + ScalingPolicies: output.ScalingPolicies != null ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context) : void 0 + }; + }; + var deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription = (output, context) => { + return { + DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn), + ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown), + ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown), + TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue) + }; + }; + var deserializeAws_json1_0BackupDescription = (output, context) => { + return { + BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0, + SourceTableDetails: output.SourceTableDetails != null ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context) : void 0, + SourceTableFeatureDetails: output.SourceTableFeatureDetails != null ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context) : void 0 + }; + }; + var deserializeAws_json1_0BackupDetails = (output, context) => { + return { + BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), + BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, + BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, + BackupName: (0, smithy_client_1.expectString)(output.BackupName), + BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), + BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), + BackupType: (0, smithy_client_1.expectString)(output.BackupType) + }; + }; + var deserializeAws_json1_0BackupInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0BackupNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0BackupSummaries = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0BackupSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0BackupSummary = (output, context) => { + return { + BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), + BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, + BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, + BackupName: (0, smithy_client_1.expectString)(output.BackupName), + BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), + BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), + BackupType: (0, smithy_client_1.expectString)(output.BackupType), + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableId: (0, smithy_client_1.expectString)(output.TableId), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0BatchExecuteStatementOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : void 0 + }; + }; + var deserializeAws_json1_0BatchGetItemOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : void 0, + UnprocessedKeys: output.UnprocessedKeys != null ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context) : void 0 + }; + }; + var deserializeAws_json1_0BatchGetRequestMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0KeysAndAttributes(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0BatchGetResponseMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0ItemList(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0BatchStatementError = (output, context) => { + return { + Code: (0, smithy_client_1.expectString)(output.Code), + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0BatchStatementResponse = (output, context) => { + return { + Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : void 0, + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0BatchWriteItemOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0, + UnprocessedItems: output.UnprocessedItems != null ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context) : void 0 + }; + }; + var deserializeAws_json1_0BatchWriteItemRequestMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0WriteRequests(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0BillingModeSummary = (output, context) => { + return { + BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), + LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateToPayPerRequestDateTime))) : void 0 + }; + }; + var deserializeAws_json1_0BinarySetAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return context.base64Decoder(entry); + }); + return retVal; + }; + var deserializeAws_json1_0CancellationReason = (output, context) => { + return { + Code: (0, smithy_client_1.expectString)(output.Code), + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0CancellationReasonList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0CancellationReason(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0Capacity = (output, context) => { + return { + CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), + ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), + WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ConditionalCheckFailedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ConsumedCapacity = (output, context) => { + return { + CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context) : void 0, + LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context) : void 0, + ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), + Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName), + WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ConsumedCapacity(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => { + return { + ContinuousBackupsStatus: (0, smithy_client_1.expectString)(output.ContinuousBackupsStatus), + PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0ContinuousBackupsUnavailableException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ContributorInsightsRuleList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0ContributorInsightsSummaries = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ContributorInsightsSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ContributorInsightsSummary = (output, context) => { + return { + ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0CreateBackupOutput = (output, context) => { + return { + BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0 + }; + }; + var deserializeAws_json1_0CreateGlobalTableOutput = (output, context) => { + return { + GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0CreateTableOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteBackupOutput = (output, context) => { + return { + BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteItemOutput = (output, context) => { + return { + Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteRequest = (output, context) => { + return { + Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteTableOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeBackupOutput = (output, context) => { + return { + BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeContinuousBackupsOutput = (output, context) => { + return { + ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context) => { + return { + ContributorInsightsRuleList: output.ContributorInsightsRuleList != null ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context) : void 0, + ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), + FailureException: output.FailureException != null ? deserializeAws_json1_0FailureException(output.FailureException, context) : void 0, + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => { + return { + Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeExportOutput = (output, context) => { + return { + ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => { + return { + GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context) => { + return { + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => { + return { + KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0DescribeLimitsOutput = (output, context) => { + return { + AccountMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxReadCapacityUnits), + AccountMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxWriteCapacityUnits), + TableMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxReadCapacityUnits), + TableMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxWriteCapacityUnits) + }; + }; + var deserializeAws_json1_0DescribeTableOutput = (output, context) => { + return { + Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = (output, context) => { + return { + TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeTimeToLiveOutput = (output, context) => { + return { + TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DuplicateItemException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0Endpoint = (output, context) => { + return { + Address: (0, smithy_client_1.expectString)(output.Address), + CachePeriodInMinutes: (0, smithy_client_1.expectLong)(output.CachePeriodInMinutes) + }; + }; + var deserializeAws_json1_0Endpoints = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Endpoint(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ExecuteStatementOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, + LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ExecuteTransactionOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 + }; + }; + var deserializeAws_json1_0ExportConflictException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ExportDescription = (output, context) => { + return { + BilledSizeBytes: (0, smithy_client_1.expectLong)(output.BilledSizeBytes), + ClientToken: (0, smithy_client_1.expectString)(output.ClientToken), + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, + ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), + ExportFormat: (0, smithy_client_1.expectString)(output.ExportFormat), + ExportManifest: (0, smithy_client_1.expectString)(output.ExportManifest), + ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus), + ExportTime: output.ExportTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime))) : void 0, + FailureCode: (0, smithy_client_1.expectString)(output.FailureCode), + FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket), + S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner), + S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix), + S3SseAlgorithm: (0, smithy_client_1.expectString)(output.S3SseAlgorithm), + S3SseKmsKeyId: (0, smithy_client_1.expectString)(output.S3SseKmsKeyId), + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableId: (0, smithy_client_1.expectString)(output.TableId) + }; + }; + var deserializeAws_json1_0ExportNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ExportSummaries = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ExportSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ExportSummary = (output, context) => { + return { + ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), + ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus) + }; + }; + var deserializeAws_json1_0ExportTableToPointInTimeOutput = (output, context) => { + return { + ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0ExpressionAttributeNameMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value) + }; + }, {}); + }; + var deserializeAws_json1_0FailureException = (output, context) => { + return { + ExceptionDescription: (0, smithy_client_1.expectString)(output.ExceptionDescription), + ExceptionName: (0, smithy_client_1.expectString)(output.ExceptionName) + }; + }; + var deserializeAws_json1_0GetItemOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => { + return { + Backfilling: (0, smithy_client_1.expectBoolean)(output.Backfilling), + IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), + IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalSecondaryIndexDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalSecondaryIndexInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalTable = (output, context) => { + return { + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0GlobalTableDescription = (output, context) => { + return { + CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, + GlobalTableArn: (0, smithy_client_1.expectString)(output.GlobalTableArn), + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + GlobalTableStatus: (0, smithy_client_1.expectString)(output.GlobalTableStatus), + ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalTableList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalTable(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalTableNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0IdempotentParameterMismatchException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0IndexNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0InternalServerError = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0InvalidEndpointException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0InvalidExportTimeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0InvalidRestoreTimeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ItemCollectionKeyAttributeMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0ItemCollectionMetrics = (output, context) => { + return { + ItemCollectionKey: output.ItemCollectionKey != null ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context) : void 0, + SizeEstimateRangeGB: output.SizeEstimateRangeGB != null ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context) : void 0 + }; + }; + var deserializeAws_json1_0ItemCollectionMetricsMultiple = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ItemCollectionMetrics(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ItemCollectionMetricsPerTable = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0ItemCollectionMetricsMultiple(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.limitedParseDouble)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0ItemCollectionSizeLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ItemList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AttributeMap(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ItemResponse = (output, context) => { + return { + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 + }; + }; + var deserializeAws_json1_0ItemResponseList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ItemResponse(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0Key = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0KeyList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Key(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0KeysAndAttributes = (output, context) => { + return { + AttributesToGet: output.AttributesToGet != null ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context) : void 0, + ConsistentRead: (0, smithy_client_1.expectBoolean)(output.ConsistentRead), + ExpressionAttributeNames: output.ExpressionAttributeNames != null ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context) : void 0, + Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : void 0, + ProjectionExpression: (0, smithy_client_1.expectString)(output.ProjectionExpression) + }; + }; + var deserializeAws_json1_0KeySchema = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0KeySchemaElement(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0KeySchemaElement = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + KeyType: (0, smithy_client_1.expectString)(output.KeyType) + }; + }; + var deserializeAws_json1_0KinesisDataStreamDestination = (output, context) => { + return { + DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), + DestinationStatusDescription: (0, smithy_client_1.expectString)(output.DestinationStatusDescription), + StreamArn: (0, smithy_client_1.expectString)(output.StreamArn) + }; + }; + var deserializeAws_json1_0KinesisDataStreamDestinations = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0KinesisDataStreamDestination(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0KinesisStreamingDestinationOutput = (output, context) => { + return { + DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), + StreamArn: (0, smithy_client_1.expectString)(output.StreamArn), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0LimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ListAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(entry), context); + }); + return retVal; + }; + var deserializeAws_json1_0ListBackupsOutput = (output, context) => { + return { + BackupSummaries: output.BackupSummaries != null ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context) : void 0, + LastEvaluatedBackupArn: (0, smithy_client_1.expectString)(output.LastEvaluatedBackupArn) + }; + }; + var deserializeAws_json1_0ListContributorInsightsOutput = (output, context) => { + return { + ContributorInsightsSummaries: output.ContributorInsightsSummaries != null ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ListExportsOutput = (output, context) => { + return { + ExportSummaries: output.ExportSummaries != null ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => { + return { + GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : void 0, + LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName) + }; + }; + var deserializeAws_json1_0ListTablesOutput = (output, context) => { + return { + LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName), + TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : void 0 + }; + }; + var deserializeAws_json1_0ListTagsOfResourceOutput = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : void 0 + }; + }; + var deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) => { + return { + IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 + }; + }; + var deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0LocalSecondaryIndexDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0LocalSecondaryIndexInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 + }; + }; + var deserializeAws_json1_0MapAttributeValue = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0NonKeyAttributeNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0NumberSetAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0PartiQLBatchResponse = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0BatchStatementResponse(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => { + return { + EarliestRestorableDateTime: output.EarliestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EarliestRestorableDateTime))) : void 0, + LatestRestorableDateTime: output.LatestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestRestorableDateTime))) : void 0, + PointInTimeRecoveryStatus: (0, smithy_client_1.expectString)(output.PointInTimeRecoveryStatus) + }; + }; + var deserializeAws_json1_0PointInTimeRecoveryUnavailableException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0Projection = (output, context) => { + return { + NonKeyAttributes: output.NonKeyAttributes != null ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context) : void 0, + ProjectionType: (0, smithy_client_1.expectString)(output.ProjectionType) + }; + }; + var deserializeAws_json1_0ProvisionedThroughput = (output, context) => { + return { + ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), + WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ProvisionedThroughputDescription = (output, context) => { + return { + LastDecreaseDateTime: output.LastDecreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDecreaseDateTime))) : void 0, + LastIncreaseDateTime: output.LastIncreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastIncreaseDateTime))) : void 0, + NumberOfDecreasesToday: (0, smithy_client_1.expectLong)(output.NumberOfDecreasesToday), + ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), + WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ProvisionedThroughputExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ProvisionedThroughputOverride = (output, context) => { + return { + ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits) + }; + }; + var deserializeAws_json1_0PutItemInputAttributeMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0PutItemOutput = (output, context) => { + return { + Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0PutRequest = (output, context) => { + return { + Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : void 0 + }; + }; + var deserializeAws_json1_0QueryOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Count: (0, smithy_client_1.expectInt32)(output.Count), + Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, + LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, + ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) + }; + }; + var deserializeAws_json1_0Replica = (output, context) => { + return { + RegionName: (0, smithy_client_1.expectString)(output.RegionName) + }; + }; + var deserializeAws_json1_0ReplicaAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) => { + return { + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, + RegionName: (0, smithy_client_1.expectString)(output.RegionName), + ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, + ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus) + }; + }; + var deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaAutoScalingDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaDescription = (output, context) => { + return { + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, + KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId), + ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0, + RegionName: (0, smithy_client_1.expectString)(output.RegionName), + ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplicaInaccessibleDateTime))) : void 0, + ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), + ReplicaStatusDescription: (0, smithy_client_1.expectString)(output.ReplicaStatusDescription), + ReplicaStatusPercentProgress: (0, smithy_client_1.expectString)(output.ReplicaStatusPercentProgress), + ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), + ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), + ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedReadCapacityUnits), + ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0, + ProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedWriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Replica(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => { + return { + RegionName: (0, smithy_client_1.expectString)(output.RegionName), + ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context) : void 0, + ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context) : void 0, + ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ReplicaProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedReadCapacityUnits), + ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, + ReplicaProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedWriteCapacityUnits), + ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), + ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaSettingsDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaSettingsDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0RequestLimitExceeded = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ResourceInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ResourceNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0RestoreSummary = (output, context) => { + return { + RestoreDateTime: output.RestoreDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestoreDateTime))) : void 0, + RestoreInProgress: (0, smithy_client_1.expectBoolean)(output.RestoreInProgress), + SourceBackupArn: (0, smithy_client_1.expectString)(output.SourceBackupArn), + SourceTableArn: (0, smithy_client_1.expectString)(output.SourceTableArn) + }; + }; + var deserializeAws_json1_0RestoreTableFromBackupOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0ScanOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Count: (0, smithy_client_1.expectInt32)(output.Count), + Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, + LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, + ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) + }; + }; + var deserializeAws_json1_0SecondaryIndexesCapacityMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0Capacity(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0SourceTableDetails = (output, context) => { + return { + BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableCreationDateTime: output.TableCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TableCreationDateTime))) : void 0, + TableId: (0, smithy_client_1.expectString)(output.TableId), + TableName: (0, smithy_client_1.expectString)(output.TableName), + TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes) + }; + }; + var deserializeAws_json1_0SourceTableFeatureDetails = (output, context) => { + return { + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context) : void 0, + LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context) : void 0, + SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, + StreamDescription: output.StreamDescription != null ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context) : void 0, + TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0SSEDescription = (output, context) => { + return { + InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InaccessibleEncryptionDateTime))) : void 0, + KMSMasterKeyArn: (0, smithy_client_1.expectString)(output.KMSMasterKeyArn), + SSEType: (0, smithy_client_1.expectString)(output.SSEType), + Status: (0, smithy_client_1.expectString)(output.Status) + }; + }; + var deserializeAws_json1_0StreamSpecification = (output, context) => { + return { + StreamEnabled: (0, smithy_client_1.expectBoolean)(output.StreamEnabled), + StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType) + }; + }; + var deserializeAws_json1_0StringSetAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0TableAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0TableAutoScalingDescription = (output, context) => { + return { + Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName), + TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) + }; + }; + var deserializeAws_json1_0TableClassSummary = (output, context) => { + return { + LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, + TableClass: (0, smithy_client_1.expectString)(output.TableClass) + }; + }; + var deserializeAws_json1_0TableDescription = (output, context) => { + return { + ArchivalSummary: output.ArchivalSummary != null ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context) : void 0, + AttributeDefinitions: output.AttributeDefinitions != null ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context) : void 0, + BillingModeSummary: output.BillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context) : void 0, + CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, + GlobalTableVersion: (0, smithy_client_1.expectString)(output.GlobalTableVersion), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + LatestStreamArn: (0, smithy_client_1.expectString)(output.LatestStreamArn), + LatestStreamLabel: (0, smithy_client_1.expectString)(output.LatestStreamLabel), + LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0, + Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : void 0, + RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : void 0, + SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, + StreamSpecification: output.StreamSpecification != null ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableClassSummary: output.TableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context) : void 0, + TableId: (0, smithy_client_1.expectString)(output.TableId), + TableName: (0, smithy_client_1.expectString)(output.TableName), + TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes), + TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) + }; + }; + var deserializeAws_json1_0TableInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0TableNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0TableNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0Tag = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_0TagList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Tag(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0TimeToLiveDescription = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + TimeToLiveStatus: (0, smithy_client_1.expectString)(output.TimeToLiveStatus) + }; + }; + var deserializeAws_json1_0TimeToLiveSpecification = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled) + }; + }; + var deserializeAws_json1_0TransactGetItemsOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 + }; + }; + var deserializeAws_json1_0TransactionCanceledException = (output, context) => { + return { + CancellationReasons: output.CancellationReasons != null ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context) : void 0, + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0TransactionConflictException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0TransactionInProgressException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0TransactWriteItemsOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateContinuousBackupsOutput = (output, context) => { + return { + ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateContributorInsightsOutput = (output, context) => { + return { + ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => { + return { + GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateGlobalTableSettingsOutput = (output, context) => { + return { + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateItemOutput = (output, context) => { + return { + Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateTableOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = (output, context) => { + return { + TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateTimeToLiveOutput = (output, context) => { + return { + TimeToLiveSpecification: output.TimeToLiveSpecification != null ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context) : void 0 + }; + }; + var deserializeAws_json1_0WriteRequest = (output, context) => { + return { + DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : void 0, + PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : void 0 + }; + }; + var deserializeAws_json1_0WriteRequests = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0WriteRequest(entry, context); + }); + return retVal; + }; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: \\"POST\\", + path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === \\"number\\") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(\\":\\") >= 0) { + cleanValue = cleanValue.split(\\":\\")[0]; + } + if (cleanValue.indexOf(\\"#\\") >= 0) { + cleanValue = cleanValue.split(\\"#\\")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data[\\"__type\\"] !== void 0) { + return sanitizeErrorCode(data[\\"__type\\"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js +var require_BatchExecuteStatementCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.BatchExecuteStatementCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var BatchExecuteStatementCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"BatchExecuteStatementCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchExecuteStatementInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchExecuteStatementOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0BatchExecuteStatementCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0BatchExecuteStatementCommand)(output, context); + } + }; + exports2.BatchExecuteStatementCommand = BatchExecuteStatementCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js +var require_BatchGetItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.BatchGetItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var BatchGetItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"BatchGetItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0BatchGetItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0BatchGetItemCommand)(output, context); + } + }; + exports2.BatchGetItemCommand = BatchGetItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js +var require_BatchWriteItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.BatchWriteItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var BatchWriteItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"BatchWriteItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchWriteItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchWriteItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0BatchWriteItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0BatchWriteItemCommand)(output, context); + } + }; + exports2.BatchWriteItemCommand = BatchWriteItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js +var require_CreateBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CreateBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var CreateBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"CreateBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0CreateBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0CreateBackupCommand)(output, context); + } + }; + exports2.CreateBackupCommand = CreateBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js +var require_CreateGlobalTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CreateGlobalTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var CreateGlobalTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"CreateGlobalTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateGlobalTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateGlobalTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0CreateGlobalTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0CreateGlobalTableCommand)(output, context); + } + }; + exports2.CreateGlobalTableCommand = CreateGlobalTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js +var require_CreateTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CreateTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var CreateTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"CreateTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0CreateTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0CreateTableCommand)(output, context); + } + }; + exports2.CreateTableCommand = CreateTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js +var require_DeleteBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DeleteBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DeleteBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DeleteBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DeleteBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteBackupCommand)(output, context); + } + }; + exports2.DeleteBackupCommand = DeleteBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js +var require_DeleteItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DeleteItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DeleteItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DeleteItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DeleteItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteItemCommand)(output, context); + } + }; + exports2.DeleteItemCommand = DeleteItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js +var require_DeleteTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DeleteTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DeleteTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DeleteTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DeleteTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteTableCommand)(output, context); + } + }; + exports2.DeleteTableCommand = DeleteTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js +var require_DescribeBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeBackupCommand)(output, context); + } + }; + exports2.DescribeBackupCommand = DescribeBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js +var require_DescribeContinuousBackupsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeContinuousBackupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeContinuousBackupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeContinuousBackupsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContinuousBackupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContinuousBackupsCommand)(output, context); + } + }; + exports2.DescribeContinuousBackupsCommand = DescribeContinuousBackupsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js +var require_DescribeContributorInsightsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeContributorInsightsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeContributorInsightsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeContributorInsightsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeContributorInsightsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeContributorInsightsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContributorInsightsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContributorInsightsCommand)(output, context); + } + }; + exports2.DescribeContributorInsightsCommand = DescribeContributorInsightsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js +var require_DescribeEndpointsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeEndpointsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeEndpointsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeEndpointsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeEndpointsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeEndpointsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeEndpointsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeEndpointsCommand)(output, context); + } + }; + exports2.DescribeEndpointsCommand = DescribeEndpointsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js +var require_DescribeExportCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeExportCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeExportCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeExportCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeExportInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeExportOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeExportCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeExportCommand)(output, context); + } + }; + exports2.DescribeExportCommand = DescribeExportCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js +var require_DescribeGlobalTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeGlobalTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeGlobalTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeGlobalTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeGlobalTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeGlobalTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableCommand)(output, context); + } + }; + exports2.DescribeGlobalTableCommand = DescribeGlobalTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js +var require_DescribeGlobalTableSettingsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeGlobalTableSettingsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeGlobalTableSettingsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeGlobalTableSettingsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(output, context); + } + }; + exports2.DescribeGlobalTableSettingsCommand = DescribeGlobalTableSettingsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js +var require_DescribeKinesisStreamingDestinationCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeKinesisStreamingDestinationCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeKinesisStreamingDestinationCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(output, context); + } + }; + exports2.DescribeKinesisStreamingDestinationCommand = DescribeKinesisStreamingDestinationCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js +var require_DescribeLimitsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeLimitsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeLimitsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeLimitsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeLimitsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeLimitsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeLimitsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeLimitsCommand)(output, context); + } + }; + exports2.DescribeLimitsCommand = DescribeLimitsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js +var require_DescribeTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableCommand)(output, context); + } + }; + exports2.DescribeTableCommand = DescribeTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js +var require_DescribeTableReplicaAutoScalingCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeTableReplicaAutoScalingCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeTableReplicaAutoScalingCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(output, context); + } + }; + exports2.DescribeTableReplicaAutoScalingCommand = DescribeTableReplicaAutoScalingCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js +var require_DescribeTimeToLiveCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeTimeToLiveCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeTimeToLiveCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeTimeToLiveCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeTimeToLiveInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeTimeToLiveOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTimeToLiveCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTimeToLiveCommand)(output, context); + } + }; + exports2.DescribeTimeToLiveCommand = DescribeTimeToLiveCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js +var require_DisableKinesisStreamingDestinationCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DisableKinesisStreamingDestinationCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DisableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DisableKinesisStreamingDestinationCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(output, context); + } + }; + exports2.DisableKinesisStreamingDestinationCommand = DisableKinesisStreamingDestinationCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js +var require_EnableKinesisStreamingDestinationCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.EnableKinesisStreamingDestinationCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var EnableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"EnableKinesisStreamingDestinationCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(output, context); + } + }; + exports2.EnableKinesisStreamingDestinationCommand = EnableKinesisStreamingDestinationCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js +var require_ExecuteStatementCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ExecuteStatementCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ExecuteStatementCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ExecuteStatementCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ExecuteStatementInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ExecuteStatementOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteStatementCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteStatementCommand)(output, context); + } + }; + exports2.ExecuteStatementCommand = ExecuteStatementCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js +var require_ExecuteTransactionCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ExecuteTransactionCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ExecuteTransactionCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ExecuteTransactionCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ExecuteTransactionInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ExecuteTransactionOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteTransactionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteTransactionCommand)(output, context); + } + }; + exports2.ExecuteTransactionCommand = ExecuteTransactionCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js +var require_ExportTableToPointInTimeCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ExportTableToPointInTimeCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ExportTableToPointInTimeCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ExportTableToPointInTimeCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ExportTableToPointInTimeCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ExportTableToPointInTimeCommand)(output, context); + } + }; + exports2.ExportTableToPointInTimeCommand = ExportTableToPointInTimeCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js +var require_GetItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var GetItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"GetItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0GetItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0GetItemCommand)(output, context); + } + }; + exports2.GetItemCommand = GetItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js +var require_ListBackupsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListBackupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListBackupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListBackupsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListBackupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListBackupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListBackupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListBackupsCommand)(output, context); + } + }; + exports2.ListBackupsCommand = ListBackupsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js +var require_ListContributorInsightsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListContributorInsightsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListContributorInsightsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListContributorInsightsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListContributorInsightsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListContributorInsightsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListContributorInsightsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListContributorInsightsCommand)(output, context); + } + }; + exports2.ListContributorInsightsCommand = ListContributorInsightsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js +var require_ListExportsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListExportsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListExportsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListExportsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListExportsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListExportsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListExportsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListExportsCommand)(output, context); + } + }; + exports2.ListExportsCommand = ListExportsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js +var require_ListGlobalTablesCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListGlobalTablesCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListGlobalTablesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListGlobalTablesCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListGlobalTablesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListGlobalTablesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListGlobalTablesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListGlobalTablesCommand)(output, context); + } + }; + exports2.ListGlobalTablesCommand = ListGlobalTablesCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js +var require_ListTablesCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListTablesCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListTablesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListTablesCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListTablesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListTablesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListTablesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListTablesCommand)(output, context); + } + }; + exports2.ListTablesCommand = ListTablesCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js +var require_ListTagsOfResourceCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListTagsOfResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListTagsOfResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListTagsOfResourceCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListTagsOfResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListTagsOfResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListTagsOfResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListTagsOfResourceCommand)(output, context); + } + }; + exports2.ListTagsOfResourceCommand = ListTagsOfResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js +var require_PutItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.PutItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var PutItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"PutItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.PutItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0PutItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0PutItemCommand)(output, context); + } + }; + exports2.PutItemCommand = PutItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js +var require_QueryCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.QueryCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var QueryCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"QueryCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.QueryInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.QueryOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0QueryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0QueryCommand)(output, context); + } + }; + exports2.QueryCommand = QueryCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js +var require_RestoreTableFromBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.RestoreTableFromBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var RestoreTableFromBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"RestoreTableFromBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RestoreTableFromBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.RestoreTableFromBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableFromBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableFromBackupCommand)(output, context); + } + }; + exports2.RestoreTableFromBackupCommand = RestoreTableFromBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js +var require_RestoreTableToPointInTimeCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.RestoreTableToPointInTimeCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var RestoreTableToPointInTimeCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"RestoreTableToPointInTimeCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableToPointInTimeCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(output, context); + } + }; + exports2.RestoreTableToPointInTimeCommand = RestoreTableToPointInTimeCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js +var require_ScanCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ScanCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ScanCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ScanCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ScanInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ScanOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ScanCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ScanCommand)(output, context); + } + }; + exports2.ScanCommand = ScanCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js +var require_TagResourceCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var TagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"TagResourceCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0TagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0TagResourceCommand)(output, context); + } + }; + exports2.TagResourceCommand = TagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js +var require_TransactGetItemsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TransactGetItemsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var TransactGetItemsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"TransactGetItemsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TransactGetItemsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.TransactGetItemsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0TransactGetItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0TransactGetItemsCommand)(output, context); + } + }; + exports2.TransactGetItemsCommand = TransactGetItemsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js +var require_TransactWriteItemsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TransactWriteItemsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var TransactWriteItemsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"TransactWriteItemsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TransactWriteItemsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.TransactWriteItemsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0TransactWriteItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0TransactWriteItemsCommand)(output, context); + } + }; + exports2.TransactWriteItemsCommand = TransactWriteItemsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js +var require_UntagResourceCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UntagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UntagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UntagResourceCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UntagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UntagResourceCommand)(output, context); + } + }; + exports2.UntagResourceCommand = UntagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js +var require_UpdateContinuousBackupsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateContinuousBackupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateContinuousBackupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateContinuousBackupsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContinuousBackupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContinuousBackupsCommand)(output, context); + } + }; + exports2.UpdateContinuousBackupsCommand = UpdateContinuousBackupsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js +var require_UpdateContributorInsightsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateContributorInsightsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateContributorInsightsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateContributorInsightsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateContributorInsightsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateContributorInsightsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContributorInsightsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContributorInsightsCommand)(output, context); + } + }; + exports2.UpdateContributorInsightsCommand = UpdateContributorInsightsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js +var require_UpdateGlobalTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateGlobalTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateGlobalTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateGlobalTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateGlobalTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateGlobalTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableCommand)(output, context); + } + }; + exports2.UpdateGlobalTableCommand = UpdateGlobalTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js +var require_UpdateGlobalTableSettingsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateGlobalTableSettingsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateGlobalTableSettingsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateGlobalTableSettingsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(output, context); + } + }; + exports2.UpdateGlobalTableSettingsCommand = UpdateGlobalTableSettingsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js +var require_UpdateItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateItemCommand)(output, context); + } + }; + exports2.UpdateItemCommand = UpdateItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js +var require_UpdateTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableCommand)(output, context); + } + }; + exports2.UpdateTableCommand = UpdateTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js +var require_UpdateTableReplicaAutoScalingCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateTableReplicaAutoScalingCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateTableReplicaAutoScalingCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(output, context); + } + }; + exports2.UpdateTableReplicaAutoScalingCommand = UpdateTableReplicaAutoScalingCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js +var require_UpdateTimeToLiveCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateTimeToLiveCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateTimeToLiveCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateTimeToLiveCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateTimeToLiveInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateTimeToLiveOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTimeToLiveCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTimeToLiveCommand)(output, context); + } + }; + exports2.UpdateTimeToLiveCommand = UpdateTimeToLiveCommand; + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js +var require_booleanSelector = __commonJS({ + \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.booleanSelector = exports2.SelectorType = void 0; + var SelectorType; + (function(SelectorType2) { + SelectorType2[\\"ENV\\"] = \\"env\\"; + SelectorType2[\\"CONFIG\\"] = \\"shared config entry\\"; + })(SelectorType = exports2.SelectorType || (exports2.SelectorType = {})); + var booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return void 0; + if (obj[key] === \\"true\\") + return true; + if (obj[key] === \\"false\\") + return false; + throw new Error(\`Cannot load \${type} \\"\${key}\\". Expected \\"true\\" or \\"false\\", got \${obj[key]}.\`); + }; + exports2.booleanSelector = booleanSelector; + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js +var require_dist_cjs5 = __commonJS({ + \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_booleanSelector(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = exports2.CONFIG_USE_DUALSTACK_ENDPOINT = exports2.ENV_USE_DUALSTACK_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs5(); + exports2.ENV_USE_DUALSTACK_ENDPOINT = \\"AWS_USE_DUALSTACK_ENDPOINT\\"; + exports2.CONFIG_USE_DUALSTACK_ENDPOINT = \\"use_dualstack_endpoint\\"; + exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = false; + exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +var require_NodeUseFipsEndpointConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_FIPS_ENDPOINT = exports2.CONFIG_USE_FIPS_ENDPOINT = exports2.ENV_USE_FIPS_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs5(); + exports2.ENV_USE_FIPS_ENDPOINT = \\"AWS_USE_FIPS_ENDPOINT\\"; + exports2.CONFIG_USE_FIPS_ENDPOINT = \\"use_fips_endpoint\\"; + exports2.DEFAULT_USE_FIPS_ENDPOINT = false; + exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js +var require_normalizeProvider = __commonJS({ + \\"node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.normalizeProvider = void 0; + var normalizeProvider = (input) => { + if (typeof input === \\"function\\") + return input; + const promisified = Promise.resolve(input); + return () => promisified; + }; + exports2.normalizeProvider = normalizeProvider; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/index.js +var require_dist_cjs6 = __commonJS({ + \\"node_modules/@aws-sdk/util-middleware/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_normalizeProvider(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +var require_resolveCustomEndpointsConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveCustomEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs6(); + var resolveCustomEndpointsConfig = (input) => { + var _a; + const { endpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint), + isCustomEndpoint: true, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint) + }; + }; + exports2.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +var require_getEndpointFromRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getEndpointFromRegion = void 0; + var getEndpointFromRegion = async (input) => { + var _a; + const { tls = true } = input; + const region = await input.region(); + const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!dnsHostRegex.test(region)) { + throw new Error(\\"Invalid region in client config\\"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; + if (!hostname) { + throw new Error(\\"Cannot resolve hostname from client config\\"); + } + return input.urlParser(\`\${tls ? \\"https:\\" : \\"http:\\"}//\${hostname}\`); + }; + exports2.getEndpointFromRegion = getEndpointFromRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +var require_resolveEndpointsConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs6(); + var getEndpointFromRegion_1 = require_getEndpointFromRegion(); + var resolveEndpointsConfig = (input) => { + var _a; + const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); + const { endpoint, useFipsEndpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: endpoint ? true : false, + useDualstackEndpoint + }; + }; + exports2.resolveEndpointsConfig = resolveEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js +var require_endpointsConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports2); + tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports2); + tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports2); + tslib_1.__exportStar(require_resolveEndpointsConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js +var require_config = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_REGION_CONFIG_FILE_OPTIONS = exports2.NODE_REGION_CONFIG_OPTIONS = exports2.REGION_INI_NAME = exports2.REGION_ENV_NAME = void 0; + exports2.REGION_ENV_NAME = \\"AWS_REGION\\"; + exports2.REGION_INI_NAME = \\"region\\"; + exports2.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports2.REGION_INI_NAME], + default: () => { + throw new Error(\\"Region is missing\\"); + } + }; + exports2.NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: \\"credentials\\" + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +var require_isFipsRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isFipsRegion = void 0; + var isFipsRegion = (region) => typeof region === \\"string\\" && (region.startsWith(\\"fips-\\") || region.endsWith(\\"-fips\\")); + exports2.isFipsRegion = isFipsRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js +var require_getRealRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRealRegion = void 0; + var isFipsRegion_1 = require_isFipsRegion(); + var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? [\\"fips-aws-global\\", \\"aws-fips\\"].includes(region) ? \\"us-east-1\\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \\"\\") : region; + exports2.getRealRegion = getRealRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +var require_resolveRegionConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveRegionConfig = void 0; + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); + var resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error(\\"Region is missing\\"); + } + return { + ...input, + region: async () => { + if (typeof region === \\"string\\") { + return (0, getRealRegion_1.getRealRegion)(region); + } + const providedRegion = await region(); + return (0, getRealRegion_1.getRealRegion)(providedRegion); + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === \\"string\\" ? region : await region(); + if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + return true; + } + return typeof useFipsEndpoint === \\"boolean\\" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); + } + }; + }; + exports2.resolveRegionConfig = resolveRegionConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js +var require_regionConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_config(), exports2); + tslib_1.__exportStar(require_resolveRegionConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js +var require_PartitionHash = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js +var require_RegionHash = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +var require_getHostnameFromVariants = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getHostnameFromVariants = void 0; + var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes(\\"fips\\") && useDualstackEndpoint === tags.includes(\\"dualstack\\"))) === null || _a === void 0 ? void 0 : _a.hostname; + }; + exports2.getHostnameFromVariants = getHostnameFromVariants; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +var require_getResolvedHostname = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getResolvedHostname = void 0; + var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace(\\"{region}\\", resolvedRegion) : void 0; + exports2.getResolvedHostname = getResolvedHostname; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +var require_getResolvedPartition = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getResolvedPartition = void 0; + var getResolvedPartition = (region, { partitionHash }) => { + var _a; + return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : \\"aws\\"; + }; + exports2.getResolvedPartition = getResolvedPartition; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +var require_getResolvedSigningRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getResolvedSigningRegion = void 0; + var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace(\\"\\\\\\\\\\\\\\\\\\", \\"\\\\\\\\\\").replace(/^\\\\^/g, \\"\\\\\\\\.\\").replace(/\\\\$$/g, \\"\\\\\\\\.\\"); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } + }; + exports2.getResolvedSigningRegion = getResolvedSigningRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +var require_getRegionInfo = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRegionInfo = void 0; + var getHostnameFromVariants_1 = require_getHostnameFromVariants(); + var getResolvedHostname_1 = require_getResolvedHostname(); + var getResolvedPartition_1 = require_getResolvedPartition(); + var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); + var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e, _f; + const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; + const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); + const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); + const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); + if (hostname === void 0) { + throw new Error(\`Endpoint resolution failed for: \${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}\`); + } + const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { + signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint + }); + return { + partition, + signingService, + hostname, + ...signingRegion && { signingRegion }, + ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + signingService: regionHash[resolvedRegion].signingService + } + }; + }; + exports2.getRegionInfo = getRegionInfo; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js +var require_regionInfo = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_PartitionHash(), exports2); + tslib_1.__exportStar(require_RegionHash(), exports2); + tslib_1.__exportStar(require_getRegionInfo(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/index.js +var require_dist_cjs7 = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_endpointsConfig(), exports2); + tslib_1.__exportStar(require_regionConfig(), exports2); + tslib_1.__exportStar(require_regionInfo(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js +var require_dist_cjs8 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getContentLengthPlugin = exports2.contentLengthMiddlewareOptions = exports2.contentLengthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var CONTENT_LENGTH_HEADER = \\"content-length\\"; + function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request = args.request; + if (protocol_http_1.HttpRequest.isInstance(request)) { + const { body, headers } = request; + if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request.headers = { + ...request.headers, + [CONTENT_LENGTH_HEADER]: String(length) + }; + } catch (error) { + } + } + } + return next({ + ...args, + request + }); + }; + } + exports2.contentLengthMiddleware = contentLengthMiddleware; + exports2.contentLengthMiddlewareOptions = { + step: \\"build\\", + tags: [\\"SET_CONTENT_LENGTH\\", \\"CONTENT_LENGTH\\"], + name: \\"contentLengthMiddleware\\", + override: true + }; + var getContentLengthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports2.contentLengthMiddlewareOptions); + } + }); + exports2.getContentLengthPlugin = getContentLengthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js +var require_configurations = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = void 0; + var ENV_ENDPOINT_DISCOVERY = [\\"AWS_ENABLE_ENDPOINT_DISCOVERY\\", \\"AWS_ENDPOINT_DISCOVERY_ENABLED\\"]; + var CONFIG_ENDPOINT_DISCOVERY = \\"endpoint_discovery_enabled\\"; + var isFalsy = (value) => [\\"false\\", \\"0\\"].indexOf(value) >= 0; + exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + for (let i = 0; i < ENV_ENDPOINT_DISCOVERY.length; i++) { + const envKey = ENV_ENDPOINT_DISCOVERY[i]; + if (envKey in env) { + const value = env[envKey]; + if (value === \\"\\") { + throw Error(\`Environment variable \${envKey} can't be empty of undefined, got \\"\${value}\\"\`); + } + return !isFalsy(value); + } + } + }, + configFileSelector: (profile) => { + if (CONFIG_ENDPOINT_DISCOVERY in profile) { + const value = profile[CONFIG_ENDPOINT_DISCOVERY]; + if (value === void 0) { + throw Error(\`Shared config entry \${CONFIG_ENDPOINT_DISCOVERY} can't be undefined, got \\"\${value}\\"\`); + } + return !isFalsy(value); + } + }, + default: void 0 + }; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js +var require_getCacheKey = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCacheKey = void 0; + var getCacheKey = async (commandName, config, options) => { + const { accessKeyId } = await config.credentials(); + const { identifiers } = options; + return JSON.stringify({ + ...accessKeyId && { accessKeyId }, + ...identifiers && { + commandName, + identifiers: Object.entries(identifiers).sort().reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}) + } + }); + }; + exports2.getCacheKey = getCacheKey; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js +var require_updateDiscoveredEndpointInCache = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.updateDiscoveredEndpointInCache = void 0; + var requestQueue = {}; + var updateDiscoveredEndpointInCache = async (config, options) => new Promise((resolve, reject) => { + const { endpointCache } = config; + const { cacheKey, commandName, identifiers } = options; + const endpoints = endpointCache.get(cacheKey); + if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { + if (options.isDiscoveredEndpointRequired) { + if (!requestQueue[cacheKey]) + requestQueue[cacheKey] = []; + requestQueue[cacheKey].push({ resolve, reject }); + } else { + resolve(); + } + } else if (endpoints && endpoints.length > 0) { + resolve(); + } else { + const placeholderEndpoints = [{ Address: \\"\\", CachePeriodInMinutes: 1 }]; + endpointCache.set(cacheKey, placeholderEndpoints); + const command = new options.endpointDiscoveryCommandCtor({ + Operation: commandName.slice(0, -7), + Identifiers: identifiers + }); + const handler = command.resolveMiddleware(options.clientStack, config, options.options); + handler(command).then((result) => { + endpointCache.set(cacheKey, result.output.Endpoints); + if (requestQueue[cacheKey]) { + requestQueue[cacheKey].forEach(({ resolve: resolve2 }) => { + resolve2(); + }); + delete requestQueue[cacheKey]; + } + resolve(); + }).catch((error) => { + var _a; + if (error.name === \\"InvalidEndpointException\\" || ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 421) { + endpointCache.delete(cacheKey); + } + const errorToThrow = Object.assign(new Error(\`The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.\`), { reason: error }); + if (requestQueue[cacheKey]) { + requestQueue[cacheKey].forEach(({ reject: reject2 }) => { + reject2(errorToThrow); + }); + delete requestQueue[cacheKey]; + } + if (options.isDiscoveredEndpointRequired) { + reject(errorToThrow); + } else { + endpointCache.set(cacheKey, placeholderEndpoints); + resolve(); + } + }); + } + }); + exports2.updateDiscoveredEndpointInCache = updateDiscoveredEndpointInCache; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js +var require_endpointDiscoveryMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.endpointDiscoveryMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getCacheKey_1 = require_getCacheKey(); + var updateDiscoveredEndpointInCache_1 = require_updateDiscoveredEndpointInCache(); + var endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => { + if (config.isCustomEndpoint) { + if (config.isClientEndpointDiscoveryEnabled) { + throw new Error(\`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.\`); + } + return next(args); + } + const { endpointDiscoveryCommandCtor } = config; + const { isDiscoveredEndpointRequired, identifiers } = middlewareConfig; + const { clientName, commandName } = context; + const isEndpointDiscoveryEnabled = await config.endpointDiscoveryEnabled(); + const cacheKey = await (0, getCacheKey_1.getCacheKey)(commandName, config, { identifiers }); + if (isDiscoveredEndpointRequired) { + if (isEndpointDiscoveryEnabled === false) { + throw new Error(\`Endpoint Discovery is disabled but \${commandName} on \${clientName} requires it. Please check your configurations.\`); + } + await (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { + ...middlewareConfig, + commandName, + cacheKey, + endpointDiscoveryCommandCtor + }); + } else if (isEndpointDiscoveryEnabled) { + (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { + ...middlewareConfig, + commandName, + cacheKey, + endpointDiscoveryCommandCtor + }); + } + const { request } = args; + if (cacheKey && protocol_http_1.HttpRequest.isInstance(request)) { + const endpoint = config.endpointCache.getEndpoint(cacheKey); + if (endpoint) { + request.hostname = endpoint; + } + } + return next(args); + }; + exports2.endpointDiscoveryMiddleware = endpointDiscoveryMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js +var require_getEndpointDiscoveryPlugin = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getEndpointDiscoveryOptionalPlugin = exports2.getEndpointDiscoveryRequiredPlugin = exports2.getEndpointDiscoveryPlugin = exports2.endpointDiscoveryMiddlewareOptions = void 0; + var endpointDiscoveryMiddleware_1 = require_endpointDiscoveryMiddleware(); + exports2.endpointDiscoveryMiddlewareOptions = { + name: \\"endpointDiscoveryMiddleware\\", + step: \\"build\\", + tags: [\\"ENDPOINT_DISCOVERY\\"], + override: true + }; + var getEndpointDiscoveryPlugin = (pluginConfig, middlewareConfig) => ({ + applyToStack: (commandStack) => { + commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, middlewareConfig), exports2.endpointDiscoveryMiddlewareOptions); + } + }); + exports2.getEndpointDiscoveryPlugin = getEndpointDiscoveryPlugin; + var getEndpointDiscoveryRequiredPlugin = (pluginConfig, middlewareConfig) => ({ + applyToStack: (commandStack) => { + commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: true }), exports2.endpointDiscoveryMiddlewareOptions); + } + }); + exports2.getEndpointDiscoveryRequiredPlugin = getEndpointDiscoveryRequiredPlugin; + var getEndpointDiscoveryOptionalPlugin = (pluginConfig, middlewareConfig) => ({ + applyToStack: (commandStack) => { + commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: false }), exports2.endpointDiscoveryMiddlewareOptions); + } + }); + exports2.getEndpointDiscoveryOptionalPlugin = getEndpointDiscoveryOptionalPlugin; + } +}); + +// node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js +var require_Endpoint = __commonJS({ + \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/obliterator/iterator.js +var require_iterator = __commonJS({ + \\"node_modules/obliterator/iterator.js\\"(exports2, module2) { + function Iterator(next) { + Object.defineProperty(this, \\"_next\\", { + writable: false, + enumerable: false, + value: next + }); + this.done = false; + } + Iterator.prototype.next = function() { + if (this.done) + return { done: true }; + var step = this._next(); + if (step.done) + this.done = true; + return step; + }; + if (typeof Symbol !== \\"undefined\\") + Iterator.prototype[Symbol.iterator] = function() { + return this; + }; + Iterator.of = function() { + var args = arguments, l = args.length, i = 0; + return new Iterator(function() { + if (i >= l) + return { done: true }; + return { done: false, value: args[i++] }; + }); + }; + Iterator.empty = function() { + var iterator = new Iterator(null); + iterator.done = true; + return iterator; + }; + Iterator.is = function(value) { + if (value instanceof Iterator) + return true; + return typeof value === \\"object\\" && value !== null && typeof value.next === \\"function\\"; + }; + module2.exports = Iterator; + } +}); + +// node_modules/obliterator/foreach.js +var require_foreach = __commonJS({ + \\"node_modules/obliterator/foreach.js\\"(exports2, module2) { + var ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== \\"undefined\\"; + var SYMBOL_SUPPORT = typeof Symbol !== \\"undefined\\"; + function forEach(iterable, callback) { + var iterator, k, i, l, s; + if (!iterable) + throw new Error(\\"obliterator/forEach: invalid iterable.\\"); + if (typeof callback !== \\"function\\") + throw new Error(\\"obliterator/forEach: expecting a callback.\\"); + if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { + for (i = 0, l = iterable.length; i < l; i++) + callback(iterable[i], i); + return; + } + if (typeof iterable.forEach === \\"function\\") { + iterable.forEach(callback); + return; + } + if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { + iterable = iterable[Symbol.iterator](); + } + if (typeof iterable.next === \\"function\\") { + iterator = iterable; + i = 0; + while (s = iterator.next(), s.done !== true) { + callback(s.value, i); + i++; + } + return; + } + for (k in iterable) { + if (iterable.hasOwnProperty(k)) { + callback(iterable[k], k); + } + } + return; + } + forEach.forEachWithNullKeys = function(iterable, callback) { + var iterator, k, i, l, s; + if (!iterable) + throw new Error(\\"obliterator/forEachWithNullKeys: invalid iterable.\\"); + if (typeof callback !== \\"function\\") + throw new Error(\\"obliterator/forEachWithNullKeys: expecting a callback.\\"); + if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { + for (i = 0, l = iterable.length; i < l; i++) + callback(iterable[i], null); + return; + } + if (iterable instanceof Set) { + iterable.forEach(function(value) { + callback(value, null); + }); + return; + } + if (typeof iterable.forEach === \\"function\\") { + iterable.forEach(callback); + return; + } + if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { + iterable = iterable[Symbol.iterator](); + } + if (typeof iterable.next === \\"function\\") { + iterator = iterable; + i = 0; + while (s = iterator.next(), s.done !== true) { + callback(s.value, null); + i++; + } + return; + } + for (k in iterable) { + if (iterable.hasOwnProperty(k)) { + callback(iterable[k], k); + } + } + return; + }; + module2.exports = forEach; + } +}); + +// node_modules/mnemonist/utils/typed-arrays.js +var require_typed_arrays = __commonJS({ + \\"node_modules/mnemonist/utils/typed-arrays.js\\"(exports2) { + var MAX_8BIT_INTEGER = Math.pow(2, 8) - 1; + var MAX_16BIT_INTEGER = Math.pow(2, 16) - 1; + var MAX_32BIT_INTEGER = Math.pow(2, 32) - 1; + var MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1; + var MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1; + var MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1; + exports2.getPointerArray = function(size) { + var maxIndex = size - 1; + if (maxIndex <= MAX_8BIT_INTEGER) + return Uint8Array; + if (maxIndex <= MAX_16BIT_INTEGER) + return Uint16Array; + if (maxIndex <= MAX_32BIT_INTEGER) + return Uint32Array; + return Float64Array; + }; + exports2.getSignedPointerArray = function(size) { + var maxIndex = size - 1; + if (maxIndex <= MAX_SIGNED_8BIT_INTEGER) + return Int8Array; + if (maxIndex <= MAX_SIGNED_16BIT_INTEGER) + return Int16Array; + if (maxIndex <= MAX_SIGNED_32BIT_INTEGER) + return Int32Array; + return Float64Array; + }; + exports2.getNumberType = function(value) { + if (value === (value | 0)) { + if (Math.sign(value) === -1) { + if (value <= 127 && value >= -128) + return Int8Array; + if (value <= 32767 && value >= -32768) + return Int16Array; + return Int32Array; + } else { + if (value <= 255) + return Uint8Array; + if (value <= 65535) + return Uint16Array; + return Uint32Array; + } + } + return Float64Array; + }; + var TYPE_PRIORITY = { + Uint8Array: 1, + Int8Array: 2, + Uint16Array: 3, + Int16Array: 4, + Uint32Array: 5, + Int32Array: 6, + Float32Array: 7, + Float64Array: 8 + }; + exports2.getMinimalRepresentation = function(array, getter) { + var maxType = null, maxPriority = 0, p, t, v, i, l; + for (i = 0, l = array.length; i < l; i++) { + v = getter ? getter(array[i]) : array[i]; + t = exports2.getNumberType(v); + p = TYPE_PRIORITY[t.name]; + if (p > maxPriority) { + maxPriority = p; + maxType = t; + } + } + return maxType; + }; + exports2.isTypedArray = function(value) { + return typeof ArrayBuffer !== \\"undefined\\" && ArrayBuffer.isView(value); + }; + exports2.concat = function() { + var length = 0, i, o, l; + for (i = 0, l = arguments.length; i < l; i++) + length += arguments[i].length; + var array = new arguments[0].constructor(length); + for (i = 0, o = 0; i < l; i++) { + array.set(arguments[i], o); + o += arguments[i].length; + } + return array; + }; + exports2.indices = function(length) { + var PointerArray = exports2.getPointerArray(length); + var array = new PointerArray(length); + for (var i = 0; i < length; i++) + array[i] = i; + return array; + }; + } +}); + +// node_modules/mnemonist/utils/iterables.js +var require_iterables = __commonJS({ + \\"node_modules/mnemonist/utils/iterables.js\\"(exports2) { + var forEach = require_foreach(); + var typed = require_typed_arrays(); + function isArrayLike(target) { + return Array.isArray(target) || typed.isTypedArray(target); + } + function guessLength(target) { + if (typeof target.length === \\"number\\") + return target.length; + if (typeof target.size === \\"number\\") + return target.size; + return; + } + function toArray(target) { + var l = guessLength(target); + var array = typeof l === \\"number\\" ? new Array(l) : []; + var i = 0; + forEach(target, function(value) { + array[i++] = value; + }); + return array; + } + function toArrayWithIndices(target) { + var l = guessLength(target); + var IndexArray = typeof l === \\"number\\" ? typed.getPointerArray(l) : Array; + var array = typeof l === \\"number\\" ? new Array(l) : []; + var indices = typeof l === \\"number\\" ? new IndexArray(l) : []; + var i = 0; + forEach(target, function(value) { + array[i] = value; + indices[i] = i++; + }); + return [array, indices]; + } + exports2.isArrayLike = isArrayLike; + exports2.guessLength = guessLength; + exports2.toArray = toArray; + exports2.toArrayWithIndices = toArrayWithIndices; + } +}); + +// node_modules/mnemonist/lru-cache.js +var require_lru_cache = __commonJS({ + \\"node_modules/mnemonist/lru-cache.js\\"(exports2, module2) { + var Iterator = require_iterator(); + var forEach = require_foreach(); + var typed = require_typed_arrays(); + var iterables = require_iterables(); + function LRUCache(Keys, Values, capacity) { + if (arguments.length < 2) { + capacity = Keys; + Keys = null; + Values = null; + } + this.capacity = capacity; + if (typeof this.capacity !== \\"number\\" || this.capacity <= 0) + throw new Error(\\"mnemonist/lru-cache: capacity should be positive number.\\"); + var PointerArray = typed.getPointerArray(capacity); + this.forward = new PointerArray(capacity); + this.backward = new PointerArray(capacity); + this.K = typeof Keys === \\"function\\" ? new Keys(capacity) : new Array(capacity); + this.V = typeof Values === \\"function\\" ? new Values(capacity) : new Array(capacity); + this.size = 0; + this.head = 0; + this.tail = 0; + this.items = {}; + } + LRUCache.prototype.clear = function() { + this.size = 0; + this.head = 0; + this.tail = 0; + this.items = {}; + }; + LRUCache.prototype.splayOnTop = function(pointer) { + var oldHead = this.head; + if (this.head === pointer) + return this; + var previous = this.backward[pointer], next = this.forward[pointer]; + if (this.tail === pointer) { + this.tail = previous; + } else { + this.backward[next] = previous; + } + this.forward[previous] = next; + this.backward[oldHead] = pointer; + this.head = pointer; + this.forward[pointer] = oldHead; + return this; + }; + LRUCache.prototype.set = function(key, value) { + var pointer = this.items[key]; + if (typeof pointer !== \\"undefined\\") { + this.splayOnTop(pointer); + this.V[pointer] = value; + return; + } + if (this.size < this.capacity) { + pointer = this.size++; + } else { + pointer = this.tail; + this.tail = this.backward[pointer]; + delete this.items[this.K[pointer]]; + } + this.items[key] = pointer; + this.K[pointer] = key; + this.V[pointer] = value; + this.forward[pointer] = this.head; + this.backward[this.head] = pointer; + this.head = pointer; + }; + LRUCache.prototype.setpop = function(key, value) { + var oldValue = null; + var oldKey = null; + var pointer = this.items[key]; + if (typeof pointer !== \\"undefined\\") { + this.splayOnTop(pointer); + oldValue = this.V[pointer]; + this.V[pointer] = value; + return { evicted: false, key, value: oldValue }; + } + if (this.size < this.capacity) { + pointer = this.size++; + } else { + pointer = this.tail; + this.tail = this.backward[pointer]; + oldValue = this.V[pointer]; + oldKey = this.K[pointer]; + delete this.items[this.K[pointer]]; + } + this.items[key] = pointer; + this.K[pointer] = key; + this.V[pointer] = value; + this.forward[pointer] = this.head; + this.backward[this.head] = pointer; + this.head = pointer; + if (oldKey) { + return { evicted: true, key: oldKey, value: oldValue }; + } else { + return null; + } + }; + LRUCache.prototype.has = function(key) { + return key in this.items; + }; + LRUCache.prototype.get = function(key) { + var pointer = this.items[key]; + if (typeof pointer === \\"undefined\\") + return; + this.splayOnTop(pointer); + return this.V[pointer]; + }; + LRUCache.prototype.peek = function(key) { + var pointer = this.items[key]; + if (typeof pointer === \\"undefined\\") + return; + return this.V[pointer]; + }; + LRUCache.prototype.forEach = function(callback, scope) { + scope = arguments.length > 1 ? scope : this; + var i = 0, l = this.size; + var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; + while (i < l) { + callback.call(scope, values[pointer], keys[pointer], this); + pointer = forward[pointer]; + i++; + } + }; + LRUCache.prototype.keys = function() { + var i = 0, l = this.size; + var pointer = this.head, keys = this.K, forward = this.forward; + return new Iterator(function() { + if (i >= l) + return { done: true }; + var key = keys[pointer]; + i++; + if (i < l) + pointer = forward[pointer]; + return { + done: false, + value: key + }; + }); + }; + LRUCache.prototype.values = function() { + var i = 0, l = this.size; + var pointer = this.head, values = this.V, forward = this.forward; + return new Iterator(function() { + if (i >= l) + return { done: true }; + var value = values[pointer]; + i++; + if (i < l) + pointer = forward[pointer]; + return { + done: false, + value + }; + }); + }; + LRUCache.prototype.entries = function() { + var i = 0, l = this.size; + var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; + return new Iterator(function() { + if (i >= l) + return { done: true }; + var key = keys[pointer], value = values[pointer]; + i++; + if (i < l) + pointer = forward[pointer]; + return { + done: false, + value: [key, value] + }; + }); + }; + if (typeof Symbol !== \\"undefined\\") + LRUCache.prototype[Symbol.iterator] = LRUCache.prototype.entries; + LRUCache.prototype.inspect = function() { + var proxy = /* @__PURE__ */ new Map(); + var iterator = this.entries(), step; + while (step = iterator.next(), !step.done) + proxy.set(step.value[0], step.value[1]); + Object.defineProperty(proxy, \\"constructor\\", { + value: LRUCache, + enumerable: false + }); + return proxy; + }; + if (typeof Symbol !== \\"undefined\\") + LRUCache.prototype[Symbol.for(\\"nodejs.util.inspect.custom\\")] = LRUCache.prototype.inspect; + LRUCache.from = function(iterable, Keys, Values, capacity) { + if (arguments.length < 2) { + capacity = iterables.guessLength(iterable); + if (typeof capacity !== \\"number\\") + throw new Error(\\"mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.\\"); + } else if (arguments.length === 2) { + capacity = Keys; + Keys = null; + Values = null; + } + var cache = new LRUCache(Keys, Values, capacity); + forEach(iterable, function(value, key) { + cache.set(key, value); + }); + return cache; + }; + module2.exports = LRUCache; + } +}); + +// node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js +var require_EndpointCache = __commonJS({ + \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.EndpointCache = void 0; + var tslib_1 = require_tslib(); + var lru_cache_1 = tslib_1.__importDefault(require_lru_cache()); + var EndpointCache = class { + constructor(capacity) { + this.cache = new lru_cache_1.default(capacity); + } + getEndpoint(key) { + const endpointsWithExpiry = this.get(key); + if (!endpointsWithExpiry || endpointsWithExpiry.length === 0) { + return void 0; + } + const endpoints = endpointsWithExpiry.map((endpoint) => endpoint.Address); + return endpoints[Math.floor(Math.random() * endpoints.length)]; + } + get(key) { + if (!this.has(key)) { + return; + } + const value = this.cache.get(key); + if (!value) { + return; + } + const now = Date.now(); + const endpointsWithExpiry = value.filter((endpoint) => now < endpoint.Expires); + if (endpointsWithExpiry.length === 0) { + this.delete(key); + return void 0; + } + return endpointsWithExpiry; + } + set(key, endpoints) { + const now = Date.now(); + this.cache.set(key, endpoints.map(({ Address, CachePeriodInMinutes }) => ({ + Address, + Expires: now + CachePeriodInMinutes * 60 * 1e3 + }))); + } + delete(key) { + this.cache.set(key, []); + } + has(key) { + if (!this.cache.has(key)) { + return false; + } + const endpoints = this.cache.peek(key); + if (!endpoints) { + return false; + } + return endpoints.length > 0; + } + clear() { + this.cache.clear(); + } + }; + exports2.EndpointCache = EndpointCache; + } +}); + +// node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js +var require_dist_cjs9 = __commonJS({ + \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Endpoint(), exports2); + tslib_1.__exportStar(require_EndpointCache(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js +var require_resolveEndpointDiscoveryConfig = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveEndpointDiscoveryConfig = void 0; + var endpoint_cache_1 = require_dist_cjs9(); + var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => { + var _a; + return { + ...input, + endpointDiscoveryCommandCtor, + endpointCache: new endpoint_cache_1.EndpointCache((_a = input.endpointCacheSize) !== null && _a !== void 0 ? _a : 1e3), + endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 ? () => Promise.resolve(input.endpointDiscoveryEnabled) : input.endpointDiscoveryEnabledProvider, + isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 + }; + }; + exports2.resolveEndpointDiscoveryConfig = resolveEndpointDiscoveryConfig; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js +var require_dist_cjs10 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations(), exports2); + tslib_1.__exportStar(require_getEndpointDiscoveryPlugin(), exports2); + tslib_1.__exportStar(require_resolveEndpointDiscoveryConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +var require_dist_cjs11 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getHostHeaderPlugin = exports2.hostHeaderMiddlewareOptions = exports2.hostHeaderMiddleware = exports2.resolveHostHeaderConfig = void 0; + var protocol_http_1 = require_dist_cjs4(); + function resolveHostHeaderConfig(input) { + return input; + } + exports2.resolveHostHeaderConfig = resolveHostHeaderConfig; + var hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const { request } = args; + const { handlerProtocol = \\"\\" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf(\\"h2\\") >= 0 && !request.headers[\\":authority\\"]) { + delete request.headers[\\"host\\"]; + request.headers[\\":authority\\"] = \\"\\"; + } else if (!request.headers[\\"host\\"]) { + request.headers[\\"host\\"] = request.hostname; + } + return next(args); + }; + exports2.hostHeaderMiddleware = hostHeaderMiddleware; + exports2.hostHeaderMiddlewareOptions = { + name: \\"hostHeaderMiddleware\\", + step: \\"build\\", + priority: \\"low\\", + tags: [\\"HOST\\"], + override: true + }; + var getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.hostHeaderMiddleware)(options), exports2.hostHeaderMiddlewareOptions); + } + }); + exports2.getHostHeaderPlugin = getHostHeaderPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +var require_loggerMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getLoggerPlugin = exports2.loggerMiddlewareOptions = exports2.loggerMiddleware = void 0; + var loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger) { + return response; + } + if (typeof logger.info === \\"function\\") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata + }); + } + return response; + }; + exports2.loggerMiddleware = loggerMiddleware; + exports2.loggerMiddlewareOptions = { + name: \\"loggerMiddleware\\", + tags: [\\"LOGGER\\"], + step: \\"initialize\\", + override: true + }; + var getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.loggerMiddleware)(), exports2.loggerMiddlewareOptions); + } + }); + exports2.getLoggerPlugin = getLoggerPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +var require_dist_cjs12 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_loggerMiddleware(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +var require_dist_cjs13 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRecursionDetectionPlugin = exports2.addRecursionDetectionMiddlewareOptions = exports2.recursionDetectionMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var TRACE_ID_HEADER_NAME = \\"X-Amzn-Trace-Id\\"; + var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; + var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; + var recursionDetectionMiddleware = (options) => (next) => async (args) => { + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request) || options.runtime !== \\"node\\" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + return next(args); + } + const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + const traceId = process.env[ENV_TRACE_ID]; + const nonEmptyString = (str) => typeof str === \\"string\\" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request.headers[TRACE_ID_HEADER_NAME] = traceId; + } + return next({ + ...args, + request + }); + }; + exports2.recursionDetectionMiddleware = recursionDetectionMiddleware; + exports2.addRecursionDetectionMiddlewareOptions = { + step: \\"build\\", + tags: [\\"RECURSION_DETECTION\\"], + name: \\"recursionDetectionMiddleware\\", + override: true, + priority: \\"low\\" + }; + var getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.recursionDetectionMiddleware)(options), exports2.addRecursionDetectionMiddlewareOptions); + } + }); + exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js +var require_config2 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DEFAULT_RETRY_MODE = exports2.DEFAULT_MAX_ATTEMPTS = exports2.RETRY_MODES = void 0; + var RETRY_MODES; + (function(RETRY_MODES2) { + RETRY_MODES2[\\"STANDARD\\"] = \\"standard\\"; + RETRY_MODES2[\\"ADAPTIVE\\"] = \\"adaptive\\"; + })(RETRY_MODES = exports2.RETRY_MODES || (exports2.RETRY_MODES = {})); + exports2.DEFAULT_MAX_ATTEMPTS = 3; + exports2.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js +var require_constants2 = __commonJS({ + \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TRANSIENT_ERROR_STATUS_CODES = exports2.TRANSIENT_ERROR_CODES = exports2.THROTTLING_ERROR_CODES = exports2.CLOCK_SKEW_ERROR_CODES = void 0; + exports2.CLOCK_SKEW_ERROR_CODES = [ + \\"AuthFailure\\", + \\"InvalidSignatureException\\", + \\"RequestExpired\\", + \\"RequestInTheFuture\\", + \\"RequestTimeTooSkewed\\", + \\"SignatureDoesNotMatch\\" + ]; + exports2.THROTTLING_ERROR_CODES = [ + \\"BandwidthLimitExceeded\\", + \\"EC2ThrottledException\\", + \\"LimitExceededException\\", + \\"PriorRequestNotComplete\\", + \\"ProvisionedThroughputExceededException\\", + \\"RequestLimitExceeded\\", + \\"RequestThrottled\\", + \\"RequestThrottledException\\", + \\"SlowDown\\", + \\"ThrottledException\\", + \\"Throttling\\", + \\"ThrottlingException\\", + \\"TooManyRequestsException\\", + \\"TransactionInProgressException\\" + ]; + exports2.TRANSIENT_ERROR_CODES = [\\"AbortError\\", \\"TimeoutError\\", \\"RequestTimeout\\", \\"RequestTimeoutException\\"]; + exports2.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js +var require_dist_cjs14 = __commonJS({ + \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isTransientError = exports2.isThrottlingError = exports2.isClockSkewError = exports2.isRetryableByTrait = void 0; + var constants_1 = require_constants2(); + var isRetryableByTrait = (error) => error.$retryable !== void 0; + exports2.isRetryableByTrait = isRetryableByTrait; + var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); + exports2.isClockSkewError = isClockSkewError; + var isThrottlingError = (error) => { + var _a, _b; + return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; + }; + exports2.isThrottlingError = isThrottlingError; + var isTransientError = (error) => { + var _a; + return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); + }; + exports2.isTransientError = isTransientError; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js +var require_DefaultRateLimiter = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DefaultRateLimiter = void 0; + var service_error_classification_1 = require_dist_cjs14(); + var DefaultRateLimiter = class { + constructor(options) { + var _a, _b, _c, _d, _e; + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; + this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; + this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; + this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; + this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; + } + getCurrentTimeInSeconds() { + return Date.now() / 1e3; + } + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; + } + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + this.currentCapacity = this.currentCapacity - amount; + } + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, service_error_classification_1.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); + } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); + } + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } + }; + exports2.DefaultRateLimiter = DefaultRateLimiter; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js +var require_constants3 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.REQUEST_HEADER = exports2.INVOCATION_ID_HEADER = exports2.NO_RETRY_INCREMENT = exports2.TIMEOUT_RETRY_COST = exports2.RETRY_COST = exports2.INITIAL_RETRY_TOKENS = exports2.THROTTLING_RETRY_DELAY_BASE = exports2.MAXIMUM_RETRY_DELAY = exports2.DEFAULT_RETRY_DELAY_BASE = void 0; + exports2.DEFAULT_RETRY_DELAY_BASE = 100; + exports2.MAXIMUM_RETRY_DELAY = 20 * 1e3; + exports2.THROTTLING_RETRY_DELAY_BASE = 500; + exports2.INITIAL_RETRY_TOKENS = 500; + exports2.RETRY_COST = 5; + exports2.TIMEOUT_RETRY_COST = 10; + exports2.NO_RETRY_INCREMENT = 1; + exports2.INVOCATION_ID_HEADER = \\"amz-sdk-invocation-id\\"; + exports2.REQUEST_HEADER = \\"amz-sdk-request\\"; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js +var require_defaultRetryQuota = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getDefaultRetryQuota = void 0; + var constants_1 = require_constants3(); + var getDefaultRetryQuota = (initialRetryTokens, options) => { + var _a, _b, _c; + const MAX_CAPACITY = initialRetryTokens; + const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; + const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; + const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => error.name === \\"TimeoutError\\" ? timeoutRetryCost : retryCost; + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error(\\"No retry token available\\"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens + }); + }; + exports2.getDefaultRetryQuota = getDefaultRetryQuota; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js +var require_delayDecider = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultDelayDecider = void 0; + var constants_1 = require_constants3(); + var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + exports2.defaultDelayDecider = defaultDelayDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js +var require_retryDecider = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRetryDecider = void 0; + var service_error_classification_1 = require_dist_cjs14(); + var defaultRetryDecider = (error) => { + if (!error) { + return false; + } + return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); + }; + exports2.defaultRetryDecider = defaultRetryDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js +var require_StandardRetryStrategy = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.StandardRetryStrategy = void 0; + var protocol_http_1 = require_dist_cjs4(); + var service_error_classification_1 = require_dist_cjs14(); + var uuid_1 = require_dist(); + var config_1 = require_config2(); + var constants_1 = require_constants3(); + var defaultRetryQuota_1 = require_defaultRetryQuota(); + var delayDecider_1 = require_delayDecider(); + var retryDecider_1 = require_retryDecider(); + var StandardRetryStrategy = class { + constructor(maxAttemptsProvider, options) { + var _a, _b, _c; + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = config_1.RETRY_MODES.STANDARD; + this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; + this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; + this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(constants_1.INITIAL_RETRY_TOKENS); + } + shouldRetry(error, attempts, maxAttempts) { + return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + } + async getMaxAttempts() { + let maxAttempts; + try { + maxAttempts = await this.maxAttemptsProvider(); + } catch (error) { + maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; + } + return maxAttempts; + } + async retry(next, args, options) { + let retryTokenAmount; + let attempts = 0; + let totalDelay = 0; + const maxAttempts = await this.getMaxAttempts(); + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + } + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.REQUEST_HEADER] = \`attempt=\${attempts + 1}; max=\${maxAttempts}\`; + } + if (options === null || options === void 0 ? void 0 : options.beforeRequest) { + await options.beforeRequest(); + } + const { response, output } = await next(args); + if (options === null || options === void 0 ? void 0 : options.afterRequest) { + options.afterRequest(response); + } + this.retryQuota.releaseRetryTokens(retryTokenAmount); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalDelay; + return { response, output }; + } catch (e) { + const err = asSdkError(e); + attempts++; + if (this.shouldRetry(err, attempts, maxAttempts)) { + retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); + const delay = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); + totalDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + if (!err.$metadata) { + err.$metadata = {}; + } + err.$metadata.attempts = attempts; + err.$metadata.totalRetryDelay = totalDelay; + throw err; + } + } + } + }; + exports2.StandardRetryStrategy = StandardRetryStrategy; + var asSdkError = (error) => { + if (error instanceof Error) + return error; + if (error instanceof Object) + return Object.assign(new Error(), error); + if (typeof error === \\"string\\") + return new Error(error); + return new Error(\`AWS SDK error wrapper for \${error}\`); + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +var require_AdaptiveRetryStrategy = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AdaptiveRetryStrategy = void 0; + var config_1 = require_config2(); + var DefaultRateLimiter_1 = require_DefaultRateLimiter(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; + super(maxAttemptsProvider, superOptions); + this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); + this.mode = config_1.RETRY_MODES.ADAPTIVE; + } + async retry(next, args) { + return super.retry(next, args, { + beforeRequest: async () => { + return this.rateLimiter.getSendToken(); + }, + afterRequest: (response) => { + this.rateLimiter.updateClientSendingRate(response); + } + }); + } + }; + exports2.AdaptiveRetryStrategy = AdaptiveRetryStrategy; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js +var require_configurations2 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = exports2.CONFIG_RETRY_MODE = exports2.ENV_RETRY_MODE = exports2.resolveRetryConfig = exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports2.CONFIG_MAX_ATTEMPTS = exports2.ENV_MAX_ATTEMPTS = void 0; + var util_middleware_1 = require_dist_cjs6(); + var AdaptiveRetryStrategy_1 = require_AdaptiveRetryStrategy(); + var config_1 = require_config2(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + exports2.ENV_MAX_ATTEMPTS = \\"AWS_MAX_ATTEMPTS\\"; + exports2.CONFIG_MAX_ATTEMPTS = \\"max_attempts\\"; + exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[exports2.ENV_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(\`Environment variable \${exports2.ENV_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[exports2.CONFIG_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(\`Shared config file entry \${exports2.CONFIG_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); + } + return maxAttempt; + }, + default: config_1.DEFAULT_MAX_ATTEMPTS + }; + var resolveRetryConfig = (input) => { + var _a; + const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (input.retryStrategy) { + return input.retryStrategy; + } + const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); + if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { + return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); + } + return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); + } + }; + }; + exports2.resolveRetryConfig = resolveRetryConfig; + exports2.ENV_RETRY_MODE = \\"AWS_RETRY_MODE\\"; + exports2.CONFIG_RETRY_MODE = \\"retry_mode\\"; + exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.ENV_RETRY_MODE], + configFileSelector: (profile) => profile[exports2.CONFIG_RETRY_MODE], + default: config_1.DEFAULT_RETRY_MODE + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +var require_omitRetryHeadersMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getOmitRetryHeadersPlugin = exports2.omitRetryHeadersMiddlewareOptions = exports2.omitRetryHeadersMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants3(); + var omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + delete request.headers[constants_1.INVOCATION_ID_HEADER]; + delete request.headers[constants_1.REQUEST_HEADER]; + } + return next(args); + }; + exports2.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; + exports2.omitRetryHeadersMiddlewareOptions = { + name: \\"omitRetryHeadersMiddleware\\", + tags: [\\"RETRY\\", \\"HEADERS\\", \\"OMIT_RETRY_HEADERS\\"], + relation: \\"before\\", + toMiddleware: \\"awsAuthMiddleware\\", + override: true + }; + var getOmitRetryHeadersPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports2.omitRetryHeadersMiddleware)(), exports2.omitRetryHeadersMiddlewareOptions); + } + }); + exports2.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js +var require_retryMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRetryPlugin = exports2.retryMiddlewareOptions = exports2.retryMiddleware = void 0; + var retryMiddleware = (options) => (next, context) => async (args) => { + const retryStrategy = await options.retryStrategy(); + if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + context.userAgent = [...context.userAgent || [], [\\"cfg/retry-mode\\", retryStrategy.mode]]; + return retryStrategy.retry(next, args); + }; + exports2.retryMiddleware = retryMiddleware; + exports2.retryMiddlewareOptions = { + name: \\"retryMiddleware\\", + tags: [\\"RETRY\\"], + step: \\"finalizeRequest\\", + priority: \\"high\\", + override: true + }; + var getRetryPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.retryMiddleware)(options), exports2.retryMiddlewareOptions); + } + }); + exports2.getRetryPlugin = getRetryPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js +var require_types = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js +var require_dist_cjs15 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports2); + tslib_1.__exportStar(require_DefaultRateLimiter(), exports2); + tslib_1.__exportStar(require_StandardRetryStrategy(), exports2); + tslib_1.__exportStar(require_config2(), exports2); + tslib_1.__exportStar(require_configurations2(), exports2); + tslib_1.__exportStar(require_delayDecider(), exports2); + tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports2); + tslib_1.__exportStar(require_retryDecider(), exports2); + tslib_1.__exportStar(require_retryMiddleware(), exports2); + tslib_1.__exportStar(require_types(), exports2); + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js +var require_ProviderError = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ProviderError = void 0; + var ProviderError = class extends Error { + constructor(message, tryNextLink = true) { + super(message); + this.tryNextLink = tryNextLink; + this.name = \\"ProviderError\\"; + Object.setPrototypeOf(this, ProviderError.prototype); + } + static from(error, tryNextLink = true) { + return Object.assign(new this(error.message, tryNextLink), error); + } + }; + exports2.ProviderError = ProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js +var require_CredentialsProviderError = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CredentialsProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var CredentialsProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = \\"CredentialsProviderError\\"; + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } + }; + exports2.CredentialsProviderError = CredentialsProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/chain.js +var require_chain = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/chain.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.chain = void 0; + var ProviderError_1 = require_ProviderError(); + function chain(...providers) { + return () => { + let promise = Promise.reject(new ProviderError_1.ProviderError(\\"No providers in chain\\")); + for (const provider of providers) { + promise = promise.catch((err) => { + if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + return provider(); + } + throw err; + }); + } + return promise; + }; + } + exports2.chain = chain; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js +var require_fromStatic = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromStatic = void 0; + var fromStatic = (staticValue) => () => Promise.resolve(staticValue); + exports2.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js +var require_memoize = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.memoize = void 0; + var memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } finally { + pending = void 0; + } + return resolved; + }; + if (isExpired === void 0) { + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; + }; + exports2.memoize = memoize; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/index.js +var require_dist_cjs16 = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_CredentialsProviderError(), exports2); + tslib_1.__exportStar(require_ProviderError(), exports2); + tslib_1.__exportStar(require_chain(), exports2); + tslib_1.__exportStar(require_fromStatic(), exports2); + tslib_1.__exportStar(require_memoize(), exports2); + } +}); + +// node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js +var require_dist_cjs17 = __commonJS({ + \\"node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toHex = exports2.fromHex = void 0; + var SHORT_TO_HEX = {}; + var HEX_TO_SHORT = {}; + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = \`0\${encodedByte}\`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; + } + function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error(\\"Hex encoded strings must have an even number length\\"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } else { + throw new Error(\`Cannot decode unrecognized sequence \${encodedByte} as hexadecimal\`); + } + } + return out; + } + exports2.fromHex = fromHex; + function toHex(bytes) { + let out = \\"\\"; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; + } + exports2.toHex = toHex; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js +var require_constants4 = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.MAX_PRESIGNED_TTL = exports2.KEY_TYPE_IDENTIFIER = exports2.MAX_CACHE_SIZE = exports2.UNSIGNED_PAYLOAD = exports2.EVENT_ALGORITHM_IDENTIFIER = exports2.ALGORITHM_IDENTIFIER_V4A = exports2.ALGORITHM_IDENTIFIER = exports2.UNSIGNABLE_PATTERNS = exports2.SEC_HEADER_PATTERN = exports2.PROXY_HEADER_PATTERN = exports2.ALWAYS_UNSIGNABLE_HEADERS = exports2.HOST_HEADER = exports2.TOKEN_HEADER = exports2.SHA256_HEADER = exports2.SIGNATURE_HEADER = exports2.GENERATED_HEADERS = exports2.DATE_HEADER = exports2.AMZ_DATE_HEADER = exports2.AUTH_HEADER = exports2.REGION_SET_PARAM = exports2.TOKEN_QUERY_PARAM = exports2.SIGNATURE_QUERY_PARAM = exports2.EXPIRES_QUERY_PARAM = exports2.SIGNED_HEADERS_QUERY_PARAM = exports2.AMZ_DATE_QUERY_PARAM = exports2.CREDENTIAL_QUERY_PARAM = exports2.ALGORITHM_QUERY_PARAM = void 0; + exports2.ALGORITHM_QUERY_PARAM = \\"X-Amz-Algorithm\\"; + exports2.CREDENTIAL_QUERY_PARAM = \\"X-Amz-Credential\\"; + exports2.AMZ_DATE_QUERY_PARAM = \\"X-Amz-Date\\"; + exports2.SIGNED_HEADERS_QUERY_PARAM = \\"X-Amz-SignedHeaders\\"; + exports2.EXPIRES_QUERY_PARAM = \\"X-Amz-Expires\\"; + exports2.SIGNATURE_QUERY_PARAM = \\"X-Amz-Signature\\"; + exports2.TOKEN_QUERY_PARAM = \\"X-Amz-Security-Token\\"; + exports2.REGION_SET_PARAM = \\"X-Amz-Region-Set\\"; + exports2.AUTH_HEADER = \\"authorization\\"; + exports2.AMZ_DATE_HEADER = exports2.AMZ_DATE_QUERY_PARAM.toLowerCase(); + exports2.DATE_HEADER = \\"date\\"; + exports2.GENERATED_HEADERS = [exports2.AUTH_HEADER, exports2.AMZ_DATE_HEADER, exports2.DATE_HEADER]; + exports2.SIGNATURE_HEADER = exports2.SIGNATURE_QUERY_PARAM.toLowerCase(); + exports2.SHA256_HEADER = \\"x-amz-content-sha256\\"; + exports2.TOKEN_HEADER = exports2.TOKEN_QUERY_PARAM.toLowerCase(); + exports2.HOST_HEADER = \\"host\\"; + exports2.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + \\"cache-control\\": true, + connection: true, + expect: true, + from: true, + \\"keep-alive\\": true, + \\"max-forwards\\": true, + pragma: true, + referer: true, + te: true, + trailer: true, + \\"transfer-encoding\\": true, + upgrade: true, + \\"user-agent\\": true, + \\"x-amzn-trace-id\\": true + }; + exports2.PROXY_HEADER_PATTERN = /^proxy-/; + exports2.SEC_HEADER_PATTERN = /^sec-/; + exports2.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; + exports2.ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256\\"; + exports2.ALGORITHM_IDENTIFIER_V4A = \\"AWS4-ECDSA-P256-SHA256\\"; + exports2.EVENT_ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256-PAYLOAD\\"; + exports2.UNSIGNED_PAYLOAD = \\"UNSIGNED-PAYLOAD\\"; + exports2.MAX_CACHE_SIZE = 50; + exports2.KEY_TYPE_IDENTIFIER = \\"aws4_request\\"; + exports2.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js +var require_credentialDerivation = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.clearCredentialCache = exports2.getSigningKey = exports2.createScope = void 0; + var util_hex_encoding_1 = require_dist_cjs17(); + var constants_1 = require_constants4(); + var signingKeyCache = {}; + var cacheQueue = []; + var createScope = (shortDate, region, service) => \`\${shortDate}/\${region}/\${service}/\${constants_1.KEY_TYPE_IDENTIFIER}\`; + exports2.createScope = createScope; + var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = \`\${shortDate}:\${region}:\${service}:\${(0, util_hex_encoding_1.toHex)(credsHash)}:\${credentials.sessionToken}\`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = \`AWS4\${credentials.secretAccessKey}\`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return signingKeyCache[cacheKey] = key; + }; + exports2.getSigningKey = getSigningKey; + var clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); + }; + exports2.clearCredentialCache = clearCredentialCache; + var hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); + }; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js +var require_getCanonicalHeaders = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCanonicalHeaders = void 0; + var constants_1 = require_constants4(); + var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == void 0) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\\\\s+/g, \\" \\"); + } + return canonical; + }; + exports2.getCanonicalHeaders = getCanonicalHeaders; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js +var require_escape_uri = __commonJS({ + \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.escapeUri = void 0; + var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); + exports2.escapeUri = escapeUri; + var hexEncode = (c) => \`%\${c.charCodeAt(0).toString(16).toUpperCase()}\`; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js +var require_escape_uri_path = __commonJS({ + \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.escapeUriPath = void 0; + var escape_uri_1 = require_escape_uri(); + var escapeUriPath = (uri) => uri.split(\\"/\\").map(escape_uri_1.escapeUri).join(\\"/\\"); + exports2.escapeUriPath = escapeUriPath; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js +var require_dist_cjs18 = __commonJS({ + \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_escape_uri(), exports2); + tslib_1.__exportStar(require_escape_uri_path(), exports2); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js +var require_getCanonicalQuery = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCanonicalQuery = void 0; + var util_uri_escape_1 = require_dist_cjs18(); + var constants_1 = require_constants4(); + var getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + continue; + } + keys.push(key); + const value = query[key]; + if (typeof value === \\"string\\") { + serialized[key] = \`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value)}\`; + } else if (Array.isArray(value)) { + serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([\`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value2)}\`]), []).join(\\"&\\"); + } + } + return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join(\\"&\\"); + }; + exports2.getCanonicalQuery = getCanonicalQuery; + } +}); + +// node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js +var require_dist_cjs19 = __commonJS({ + \\"node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isArrayBuffer = void 0; + var isArrayBuffer = (arg) => typeof ArrayBuffer === \\"function\\" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === \\"[object ArrayBuffer]\\"; + exports2.isArrayBuffer = isArrayBuffer; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js +var require_getPayloadHash = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getPayloadHash = void 0; + var is_array_buffer_1 = require_dist_cjs19(); + var util_hex_encoding_1 = require_dist_cjs17(); + var constants_1 = require_constants4(); + var getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == void 0) { + return \\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\"; + } else if (typeof body === \\"string\\" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; + }; + exports2.getPayloadHash = getPayloadHash; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js +var require_headerUtil = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.deleteHeader = exports2.getHeaderValue = exports2.hasHeader = void 0; + var hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; + }; + exports2.hasHeader = hasHeader; + var getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return void 0; + }; + exports2.getHeaderValue = getHeaderValue; + var deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } + }; + exports2.deleteHeader = deleteHeader; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js +var require_cloneRequest = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.cloneQuery = exports2.cloneRequest = void 0; + var cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports2.cloneQuery)(query) : void 0 + }); + exports2.cloneRequest = cloneRequest; + var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + exports2.cloneQuery = cloneQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js +var require_moveHeadersToQuery = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.moveHeadersToQuery = void 0; + var cloneRequest_1 = require_cloneRequest(); + var moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if (lname.slice(0, 6) === \\"x-amz-\\" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query + }; + }; + exports2.moveHeadersToQuery = moveHeadersToQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +var require_prepareRequest = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.prepareRequest = void 0; + var cloneRequest_1 = require_cloneRequest(); + var constants_1 = require_constants4(); + var prepareRequest = (request) => { + request = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; + }; + exports2.prepareRequest = prepareRequest; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js +var require_utilDate = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toDate = exports2.iso8601 = void 0; + var iso8601 = (time) => (0, exports2.toDate)(time).toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); + exports2.iso8601 = iso8601; + var toDate = (time) => { + if (typeof time === \\"number\\") { + return new Date(time * 1e3); + } + if (typeof time === \\"string\\") { + if (Number(time)) { + return new Date(Number(time) * 1e3); + } + return new Date(time); + } + return time; + }; + exports2.toDate = toDate; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js +var require_SignatureV4 = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SignatureV4 = void 0; + var util_hex_encoding_1 = require_dist_cjs17(); + var util_middleware_1 = require_dist_cjs6(); + var constants_1 = require_constants4(); + var credentialDerivation_1 = require_credentialDerivation(); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + var getPayloadHash_1 = require_getPayloadHash(); + var headerUtil_1 = require_headerUtil(); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + var prepareRequest_1 = require_prepareRequest(); + var utilDate_1 = require_utilDate(); + var SignatureV4 = class { + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === \\"boolean\\" ? applyChecksum : true; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + } + async presign(originalRequest, options = {}) { + const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { longDate, shortDate } = formatDate(signingDate); + if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject(\\"Signature version 4 presigned URLs must have an expiration date less than one week in the future\\"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = \`\${credentials.accessKeyId}/\${scope}\`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; + } + async sign(toSign, options) { + if (typeof toSign === \\"string\\") { + return this.signString(toSign, options); + } else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate, longDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload + ].join(\\"\\\\n\\"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = \`\${constants_1.ALGORITHM_IDENTIFIER} Credential=\${credentials.accessKeyId}/\${scope}, SignedHeaders=\${getCanonicalHeaderList(canonicalHeaders)}, Signature=\${signature}\`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return \`\${request.method} +\${this.getCanonicalPath(request)} +\${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +\${sortedHeaders.map((name) => \`\${name}:\${canonicalHeaders[name]}\`).join(\\"\\\\n\\")} + +\${sortedHeaders.join(\\";\\")} +\${payloadHash}\`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return \`\${constants_1.ALGORITHM_IDENTIFIER} +\${longDate} +\${credentialScope} +\${(0, util_hex_encoding_1.toHex)(hashedRequest)}\`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split(\\"/\\")) { + if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + continue; + if (pathSegment === \\".\\") + continue; + if (pathSegment === \\"..\\") { + normalizedPathSegments.pop(); + } else { + normalizedPathSegments.push(pathSegment); + } + } + const normalizedPath = \`\${(path === null || path === void 0 ? void 0 : path.startsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\${normalizedPathSegments.join(\\"/\\")}\${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\`; + const doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, \\"/\\"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + }; + exports2.SignatureV4 = SignatureV4; + var formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\\\\-:]/g, \\"\\"); + return { + longDate, + shortDate: longDate.slice(0, 8) + }; + }; + var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(\\";\\"); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/index.js +var require_dist_cjs20 = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.prepareRequest = exports2.moveHeadersToQuery = exports2.getPayloadHash = exports2.getCanonicalQuery = exports2.getCanonicalHeaders = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SignatureV4(), exports2); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + Object.defineProperty(exports2, \\"getCanonicalHeaders\\", { enumerable: true, get: function() { + return getCanonicalHeaders_1.getCanonicalHeaders; + } }); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + Object.defineProperty(exports2, \\"getCanonicalQuery\\", { enumerable: true, get: function() { + return getCanonicalQuery_1.getCanonicalQuery; + } }); + var getPayloadHash_1 = require_getPayloadHash(); + Object.defineProperty(exports2, \\"getPayloadHash\\", { enumerable: true, get: function() { + return getPayloadHash_1.getPayloadHash; + } }); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + Object.defineProperty(exports2, \\"moveHeadersToQuery\\", { enumerable: true, get: function() { + return moveHeadersToQuery_1.moveHeadersToQuery; + } }); + var prepareRequest_1 = require_prepareRequest(); + Object.defineProperty(exports2, \\"prepareRequest\\", { enumerable: true, get: function() { + return prepareRequest_1.prepareRequest; + } }); + tslib_1.__exportStar(require_credentialDerivation(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js +var require_configurations3 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveSigV4AuthConfig = exports2.resolveAwsAuthConfig = void 0; + var property_provider_1 = require_dist_cjs16(); + var signature_v4_1 = require_dist_cjs20(); + var CREDENTIAL_EXPIRE_WINDOW = 3e5; + var resolveAwsAuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = normalizeProvider(input.signer); + } else { + signer = () => normalizeProvider(input.region)().then(async (region) => [ + await input.regionInfoProvider(region, { + useFipsEndpoint: await input.useFipsEndpoint(), + useDualstackEndpoint: await input.useDualstackEndpoint() + }) || {}, + region + ]).then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + input.signingRegion = input.signingRegion || signingRegion || region; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; + return new signerConstructor(params); + }); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports2.resolveAwsAuthConfig = resolveAwsAuthConfig; + var resolveSigV4AuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = normalizeProvider(input.signer); + } else { + signer = normalizeProvider(new signature_v4_1.SignatureV4({ + credentials: normalizedCreds, + region: input.region, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + })); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports2.resolveSigV4AuthConfig = resolveSigV4AuthConfig; + var normalizeProvider = (input) => { + if (typeof input === \\"object\\") { + const promisified = Promise.resolve(input); + return () => promisified; + } + return input; + }; + var normalizeCredentialProvider = (credentials) => { + if (typeof credentials === \\"function\\") { + return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); + } + return normalizeProvider(credentials); + }; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +var require_getSkewCorrectedDate = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSkewCorrectedDate = void 0; + var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); + exports2.getSkewCorrectedDate = getSkewCorrectedDate; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +var require_isClockSkewed = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isClockSkewed = void 0; + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; + exports2.isClockSkewed = isClockSkewed; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +var require_getUpdatedSystemClockOffset = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getUpdatedSystemClockOffset = void 0; + var isClockSkewed_1 = require_isClockSkewed(); + var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; + }; + exports2.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js +var require_middleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin = exports2.awsAuthMiddlewareOptions = exports2.awsAuthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); + var awsAuthMiddleware = (options) => (next, context) => async function(args) { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const signer = await options.signer(); + const output = await next({ + ...args, + request: await signer.sign(args.request, { + signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), + signingRegion: context[\\"signing_region\\"], + signingService: context[\\"signing_service\\"] + }) + }).catch((error) => { + var _a; + const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); + if (serverTime) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); + } + throw error; + }); + const dateHeader = getDateHeader(output.response); + if (dateHeader) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); + } + return output; + }; + exports2.awsAuthMiddleware = awsAuthMiddleware; + var getDateHeader = (response) => { + var _a, _b, _c; + return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; + }; + exports2.awsAuthMiddlewareOptions = { + name: \\"awsAuthMiddleware\\", + tags: [\\"SIGNATURE\\", \\"AWSAUTH\\"], + relation: \\"after\\", + toMiddleware: \\"retryMiddleware\\", + override: true + }; + var getAwsAuthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports2.awsAuthMiddleware)(options), exports2.awsAuthMiddlewareOptions); + } + }); + exports2.getAwsAuthPlugin = getAwsAuthPlugin; + exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +var require_dist_cjs21 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations3(), exports2); + tslib_1.__exportStar(require_middleware(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +var require_configurations4 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveUserAgentConfig = void 0; + function resolveUserAgentConfig(input) { + return { + ...input, + customUserAgent: typeof input.customUserAgent === \\"string\\" ? [[input.customUserAgent]] : input.customUserAgent + }; + } + exports2.resolveUserAgentConfig = resolveUserAgentConfig; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +var require_constants5 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UA_ESCAPE_REGEX = exports2.SPACE = exports2.X_AMZ_USER_AGENT = exports2.USER_AGENT = void 0; + exports2.USER_AGENT = \\"user-agent\\"; + exports2.X_AMZ_USER_AGENT = \\"x-amz-user-agent\\"; + exports2.SPACE = \\" \\"; + exports2.UA_ESCAPE_REGEX = /[^\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\.\\\\^\\\\_\\\\\`\\\\|\\\\~\\\\d\\\\w]/g; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +var require_user_agent_middleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getUserAgentPlugin = exports2.getUserAgentMiddlewareOptions = exports2.userAgentMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants5(); + var userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith(\\"aws-sdk-\\")), + ...customUserAgent + ].join(constants_1.SPACE); + if (options.runtime !== \\"browser\\") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? \`\${headers[constants_1.USER_AGENT]} \${normalUAValue}\` : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request + }); + }; + exports2.userAgentMiddleware = userAgentMiddleware; + var escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf(\\"/\\"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === \\"api\\") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version].filter((item) => item && item.length > 0).map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, \\"_\\")).join(\\"/\\"); + }; + exports2.getUserAgentMiddlewareOptions = { + name: \\"getUserAgentMiddleware\\", + step: \\"build\\", + priority: \\"low\\", + tags: [\\"SET_USER_AGENT\\", \\"USER_AGENT\\"], + override: true + }; + var getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.userAgentMiddleware)(config), exports2.getUserAgentMiddlewareOptions); + } + }); + exports2.getUserAgentPlugin = getUserAgentPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +var require_dist_cjs22 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations4(), exports2); + tslib_1.__exportStar(require_user_agent_middleware(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/package.json +var require_package = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/package.json\\"(exports2, module2) { + module2.exports = { + name: \\"@aws-sdk/client-dynamodb\\", + description: \\"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native\\", + version: \\"3.145.0\\", + scripts: { + build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", + \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", + \\"build:docs\\": \\"typedoc\\", + \\"build:es\\": \\"tsc -p tsconfig.es.json\\", + \\"build:types\\": \\"tsc -p tsconfig.types.json\\", + \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", + clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" + }, + main: \\"./dist-cjs/index.js\\", + types: \\"./dist-types/index.d.ts\\", + module: \\"./dist-es/index.js\\", + sideEffects: false, + dependencies: { + \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", + \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", + \\"@aws-sdk/client-sts\\": \\"3.145.0\\", + \\"@aws-sdk/config-resolver\\": \\"3.130.0\\", + \\"@aws-sdk/credential-provider-node\\": \\"3.145.0\\", + \\"@aws-sdk/fetch-http-handler\\": \\"3.131.0\\", + \\"@aws-sdk/hash-node\\": \\"3.127.0\\", + \\"@aws-sdk/invalid-dependency\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-content-length\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-endpoint-discovery\\": \\"3.130.0\\", + \\"@aws-sdk/middleware-host-header\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-logger\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-recursion-detection\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-retry\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-serde\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-signing\\": \\"3.130.0\\", + \\"@aws-sdk/middleware-stack\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-user-agent\\": \\"3.127.0\\", + \\"@aws-sdk/node-config-provider\\": \\"3.127.0\\", + \\"@aws-sdk/node-http-handler\\": \\"3.127.0\\", + \\"@aws-sdk/protocol-http\\": \\"3.127.0\\", + \\"@aws-sdk/smithy-client\\": \\"3.142.0\\", + \\"@aws-sdk/types\\": \\"3.127.0\\", + \\"@aws-sdk/url-parser\\": \\"3.127.0\\", + \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-browser\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.142.0\\", + \\"@aws-sdk/util-defaults-mode-node\\": \\"3.142.0\\", + \\"@aws-sdk/util-user-agent-browser\\": \\"3.127.0\\", + \\"@aws-sdk/util-user-agent-node\\": \\"3.127.0\\", + \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", + \\"@aws-sdk/util-waiter\\": \\"3.127.0\\", + tslib: \\"^2.3.1\\", + uuid: \\"^8.3.2\\" + }, + devDependencies: { + \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", + \\"@tsconfig/recommended\\": \\"1.0.1\\", + \\"@types/node\\": \\"^12.7.5\\", + \\"@types/uuid\\": \\"^8.3.0\\", + concurrently: \\"7.0.0\\", + \\"downlevel-dts\\": \\"0.7.0\\", + rimraf: \\"3.0.2\\", + typedoc: \\"0.19.2\\", + typescript: \\"~4.6.2\\" + }, + overrides: { + typedoc: { + typescript: \\"~4.6.2\\" + } + }, + engines: { + node: \\">=12.0.0\\" + }, + typesVersions: { + \\"<4.0\\": { + \\"dist-types/*\\": [ + \\"dist-types/ts3.4/*\\" + ] + } + }, + files: [ + \\"dist-*\\" + ], + author: { + name: \\"AWS SDK for JavaScript Team\\", + url: \\"https://aws.amazon.com/javascript/\\" + }, + license: \\"Apache-2.0\\", + browser: { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" + }, + \\"react-native\\": { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" + }, + homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb\\", + repository: { + type: \\"git\\", + url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", + directory: \\"clients/client-dynamodb\\" + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +var require_STSServiceException = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STSServiceException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var STSServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); + } + }; + exports2.STSServiceException = STSServiceException; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +var require_models_02 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetSessionTokenResponseFilterSensitiveLog = exports2.GetSessionTokenRequestFilterSensitiveLog = exports2.GetFederationTokenResponseFilterSensitiveLog = exports2.FederatedUserFilterSensitiveLog = exports2.GetFederationTokenRequestFilterSensitiveLog = exports2.GetCallerIdentityResponseFilterSensitiveLog = exports2.GetCallerIdentityRequestFilterSensitiveLog = exports2.GetAccessKeyInfoResponseFilterSensitiveLog = exports2.GetAccessKeyInfoRequestFilterSensitiveLog = exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports2.AssumeRoleResponseFilterSensitiveLog = exports2.CredentialsFilterSensitiveLog = exports2.AssumeRoleRequestFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.PolicyDescriptorTypeFilterSensitiveLog = exports2.AssumedRoleUserFilterSensitiveLog = exports2.InvalidAuthorizationMessageException = exports2.IDPCommunicationErrorException = exports2.InvalidIdentityTokenException = exports2.IDPRejectedClaimException = exports2.RegionDisabledException = exports2.PackedPolicyTooLargeException = exports2.MalformedPolicyDocumentException = exports2.ExpiredTokenException = void 0; + var STSServiceException_1 = require_STSServiceException(); + var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"ExpiredTokenException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ExpiredTokenException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + } + }; + exports2.ExpiredTokenException = ExpiredTokenException; + var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"MalformedPolicyDocumentException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"MalformedPolicyDocumentException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + } + }; + exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException; + var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"PackedPolicyTooLargeException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"PackedPolicyTooLargeException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } + }; + exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException; + var RegionDisabledException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"RegionDisabledException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"RegionDisabledException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, RegionDisabledException.prototype); + } + }; + exports2.RegionDisabledException = RegionDisabledException; + var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"IDPRejectedClaimException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IDPRejectedClaimException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + } + }; + exports2.IDPRejectedClaimException = IDPRejectedClaimException; + var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"InvalidIdentityTokenException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidIdentityTokenException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); + } + }; + exports2.InvalidIdentityTokenException = InvalidIdentityTokenException; + var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"IDPCommunicationErrorException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IDPCommunicationErrorException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + } + }; + exports2.IDPCommunicationErrorException = IDPCommunicationErrorException; + var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"InvalidAuthorizationMessageException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidAuthorizationMessageException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); + } + }; + exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; + var AssumedRoleUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; + var PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; + var AssumeRoleRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; + var CredentialsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; + var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; + var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; + var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; + var DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; + var DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; + var GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; + var GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; + var GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; + var GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; + var GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; + var FederatedUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; + var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; + var GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; + var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + } +}); + +// node_modules/entities/lib/maps/entities.json +var require_entities = __commonJS({ + \\"node_modules/entities/lib/maps/entities.json\\"(exports2, module2) { + module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Abreve: \\"\\\\u0102\\", abreve: \\"\\\\u0103\\", ac: \\"\\\\u223E\\", acd: \\"\\\\u223F\\", acE: \\"\\\\u223E\\\\u0333\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", Acy: \\"\\\\u0410\\", acy: \\"\\\\u0430\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", af: \\"\\\\u2061\\", Afr: \\"\\\\u{1D504}\\", afr: \\"\\\\u{1D51E}\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", alefsym: \\"\\\\u2135\\", aleph: \\"\\\\u2135\\", Alpha: \\"\\\\u0391\\", alpha: \\"\\\\u03B1\\", Amacr: \\"\\\\u0100\\", amacr: \\"\\\\u0101\\", amalg: \\"\\\\u2A3F\\", amp: \\"&\\", AMP: \\"&\\", andand: \\"\\\\u2A55\\", And: \\"\\\\u2A53\\", and: \\"\\\\u2227\\", andd: \\"\\\\u2A5C\\", andslope: \\"\\\\u2A58\\", andv: \\"\\\\u2A5A\\", ang: \\"\\\\u2220\\", ange: \\"\\\\u29A4\\", angle: \\"\\\\u2220\\", angmsdaa: \\"\\\\u29A8\\", angmsdab: \\"\\\\u29A9\\", angmsdac: \\"\\\\u29AA\\", angmsdad: \\"\\\\u29AB\\", angmsdae: \\"\\\\u29AC\\", angmsdaf: \\"\\\\u29AD\\", angmsdag: \\"\\\\u29AE\\", angmsdah: \\"\\\\u29AF\\", angmsd: \\"\\\\u2221\\", angrt: \\"\\\\u221F\\", angrtvb: \\"\\\\u22BE\\", angrtvbd: \\"\\\\u299D\\", angsph: \\"\\\\u2222\\", angst: \\"\\\\xC5\\", angzarr: \\"\\\\u237C\\", Aogon: \\"\\\\u0104\\", aogon: \\"\\\\u0105\\", Aopf: \\"\\\\u{1D538}\\", aopf: \\"\\\\u{1D552}\\", apacir: \\"\\\\u2A6F\\", ap: \\"\\\\u2248\\", apE: \\"\\\\u2A70\\", ape: \\"\\\\u224A\\", apid: \\"\\\\u224B\\", apos: \\"'\\", ApplyFunction: \\"\\\\u2061\\", approx: \\"\\\\u2248\\", approxeq: \\"\\\\u224A\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Ascr: \\"\\\\u{1D49C}\\", ascr: \\"\\\\u{1D4B6}\\", Assign: \\"\\\\u2254\\", ast: \\"*\\", asymp: \\"\\\\u2248\\", asympeq: \\"\\\\u224D\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", awconint: \\"\\\\u2233\\", awint: \\"\\\\u2A11\\", backcong: \\"\\\\u224C\\", backepsilon: \\"\\\\u03F6\\", backprime: \\"\\\\u2035\\", backsim: \\"\\\\u223D\\", backsimeq: \\"\\\\u22CD\\", Backslash: \\"\\\\u2216\\", Barv: \\"\\\\u2AE7\\", barvee: \\"\\\\u22BD\\", barwed: \\"\\\\u2305\\", Barwed: \\"\\\\u2306\\", barwedge: \\"\\\\u2305\\", bbrk: \\"\\\\u23B5\\", bbrktbrk: \\"\\\\u23B6\\", bcong: \\"\\\\u224C\\", Bcy: \\"\\\\u0411\\", bcy: \\"\\\\u0431\\", bdquo: \\"\\\\u201E\\", becaus: \\"\\\\u2235\\", because: \\"\\\\u2235\\", Because: \\"\\\\u2235\\", bemptyv: \\"\\\\u29B0\\", bepsi: \\"\\\\u03F6\\", bernou: \\"\\\\u212C\\", Bernoullis: \\"\\\\u212C\\", Beta: \\"\\\\u0392\\", beta: \\"\\\\u03B2\\", beth: \\"\\\\u2136\\", between: \\"\\\\u226C\\", Bfr: \\"\\\\u{1D505}\\", bfr: \\"\\\\u{1D51F}\\", bigcap: \\"\\\\u22C2\\", bigcirc: \\"\\\\u25EF\\", bigcup: \\"\\\\u22C3\\", bigodot: \\"\\\\u2A00\\", bigoplus: \\"\\\\u2A01\\", bigotimes: \\"\\\\u2A02\\", bigsqcup: \\"\\\\u2A06\\", bigstar: \\"\\\\u2605\\", bigtriangledown: \\"\\\\u25BD\\", bigtriangleup: \\"\\\\u25B3\\", biguplus: \\"\\\\u2A04\\", bigvee: \\"\\\\u22C1\\", bigwedge: \\"\\\\u22C0\\", bkarow: \\"\\\\u290D\\", blacklozenge: \\"\\\\u29EB\\", blacksquare: \\"\\\\u25AA\\", blacktriangle: \\"\\\\u25B4\\", blacktriangledown: \\"\\\\u25BE\\", blacktriangleleft: \\"\\\\u25C2\\", blacktriangleright: \\"\\\\u25B8\\", blank: \\"\\\\u2423\\", blk12: \\"\\\\u2592\\", blk14: \\"\\\\u2591\\", blk34: \\"\\\\u2593\\", block: \\"\\\\u2588\\", bne: \\"=\\\\u20E5\\", bnequiv: \\"\\\\u2261\\\\u20E5\\", bNot: \\"\\\\u2AED\\", bnot: \\"\\\\u2310\\", Bopf: \\"\\\\u{1D539}\\", bopf: \\"\\\\u{1D553}\\", bot: \\"\\\\u22A5\\", bottom: \\"\\\\u22A5\\", bowtie: \\"\\\\u22C8\\", boxbox: \\"\\\\u29C9\\", boxdl: \\"\\\\u2510\\", boxdL: \\"\\\\u2555\\", boxDl: \\"\\\\u2556\\", boxDL: \\"\\\\u2557\\", boxdr: \\"\\\\u250C\\", boxdR: \\"\\\\u2552\\", boxDr: \\"\\\\u2553\\", boxDR: \\"\\\\u2554\\", boxh: \\"\\\\u2500\\", boxH: \\"\\\\u2550\\", boxhd: \\"\\\\u252C\\", boxHd: \\"\\\\u2564\\", boxhD: \\"\\\\u2565\\", boxHD: \\"\\\\u2566\\", boxhu: \\"\\\\u2534\\", boxHu: \\"\\\\u2567\\", boxhU: \\"\\\\u2568\\", boxHU: \\"\\\\u2569\\", boxminus: \\"\\\\u229F\\", boxplus: \\"\\\\u229E\\", boxtimes: \\"\\\\u22A0\\", boxul: \\"\\\\u2518\\", boxuL: \\"\\\\u255B\\", boxUl: \\"\\\\u255C\\", boxUL: \\"\\\\u255D\\", boxur: \\"\\\\u2514\\", boxuR: \\"\\\\u2558\\", boxUr: \\"\\\\u2559\\", boxUR: \\"\\\\u255A\\", boxv: \\"\\\\u2502\\", boxV: \\"\\\\u2551\\", boxvh: \\"\\\\u253C\\", boxvH: \\"\\\\u256A\\", boxVh: \\"\\\\u256B\\", boxVH: \\"\\\\u256C\\", boxvl: \\"\\\\u2524\\", boxvL: \\"\\\\u2561\\", boxVl: \\"\\\\u2562\\", boxVL: \\"\\\\u2563\\", boxvr: \\"\\\\u251C\\", boxvR: \\"\\\\u255E\\", boxVr: \\"\\\\u255F\\", boxVR: \\"\\\\u2560\\", bprime: \\"\\\\u2035\\", breve: \\"\\\\u02D8\\", Breve: \\"\\\\u02D8\\", brvbar: \\"\\\\xA6\\", bscr: \\"\\\\u{1D4B7}\\", Bscr: \\"\\\\u212C\\", bsemi: \\"\\\\u204F\\", bsim: \\"\\\\u223D\\", bsime: \\"\\\\u22CD\\", bsolb: \\"\\\\u29C5\\", bsol: \\"\\\\\\\\\\", bsolhsub: \\"\\\\u27C8\\", bull: \\"\\\\u2022\\", bullet: \\"\\\\u2022\\", bump: \\"\\\\u224E\\", bumpE: \\"\\\\u2AAE\\", bumpe: \\"\\\\u224F\\", Bumpeq: \\"\\\\u224E\\", bumpeq: \\"\\\\u224F\\", Cacute: \\"\\\\u0106\\", cacute: \\"\\\\u0107\\", capand: \\"\\\\u2A44\\", capbrcup: \\"\\\\u2A49\\", capcap: \\"\\\\u2A4B\\", cap: \\"\\\\u2229\\", Cap: \\"\\\\u22D2\\", capcup: \\"\\\\u2A47\\", capdot: \\"\\\\u2A40\\", CapitalDifferentialD: \\"\\\\u2145\\", caps: \\"\\\\u2229\\\\uFE00\\", caret: \\"\\\\u2041\\", caron: \\"\\\\u02C7\\", Cayleys: \\"\\\\u212D\\", ccaps: \\"\\\\u2A4D\\", Ccaron: \\"\\\\u010C\\", ccaron: \\"\\\\u010D\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", Ccirc: \\"\\\\u0108\\", ccirc: \\"\\\\u0109\\", Cconint: \\"\\\\u2230\\", ccups: \\"\\\\u2A4C\\", ccupssm: \\"\\\\u2A50\\", Cdot: \\"\\\\u010A\\", cdot: \\"\\\\u010B\\", cedil: \\"\\\\xB8\\", Cedilla: \\"\\\\xB8\\", cemptyv: \\"\\\\u29B2\\", cent: \\"\\\\xA2\\", centerdot: \\"\\\\xB7\\", CenterDot: \\"\\\\xB7\\", cfr: \\"\\\\u{1D520}\\", Cfr: \\"\\\\u212D\\", CHcy: \\"\\\\u0427\\", chcy: \\"\\\\u0447\\", check: \\"\\\\u2713\\", checkmark: \\"\\\\u2713\\", Chi: \\"\\\\u03A7\\", chi: \\"\\\\u03C7\\", circ: \\"\\\\u02C6\\", circeq: \\"\\\\u2257\\", circlearrowleft: \\"\\\\u21BA\\", circlearrowright: \\"\\\\u21BB\\", circledast: \\"\\\\u229B\\", circledcirc: \\"\\\\u229A\\", circleddash: \\"\\\\u229D\\", CircleDot: \\"\\\\u2299\\", circledR: \\"\\\\xAE\\", circledS: \\"\\\\u24C8\\", CircleMinus: \\"\\\\u2296\\", CirclePlus: \\"\\\\u2295\\", CircleTimes: \\"\\\\u2297\\", cir: \\"\\\\u25CB\\", cirE: \\"\\\\u29C3\\", cire: \\"\\\\u2257\\", cirfnint: \\"\\\\u2A10\\", cirmid: \\"\\\\u2AEF\\", cirscir: \\"\\\\u29C2\\", ClockwiseContourIntegral: \\"\\\\u2232\\", CloseCurlyDoubleQuote: \\"\\\\u201D\\", CloseCurlyQuote: \\"\\\\u2019\\", clubs: \\"\\\\u2663\\", clubsuit: \\"\\\\u2663\\", colon: \\":\\", Colon: \\"\\\\u2237\\", Colone: \\"\\\\u2A74\\", colone: \\"\\\\u2254\\", coloneq: \\"\\\\u2254\\", comma: \\",\\", commat: \\"@\\", comp: \\"\\\\u2201\\", compfn: \\"\\\\u2218\\", complement: \\"\\\\u2201\\", complexes: \\"\\\\u2102\\", cong: \\"\\\\u2245\\", congdot: \\"\\\\u2A6D\\", Congruent: \\"\\\\u2261\\", conint: \\"\\\\u222E\\", Conint: \\"\\\\u222F\\", ContourIntegral: \\"\\\\u222E\\", copf: \\"\\\\u{1D554}\\", Copf: \\"\\\\u2102\\", coprod: \\"\\\\u2210\\", Coproduct: \\"\\\\u2210\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", copysr: \\"\\\\u2117\\", CounterClockwiseContourIntegral: \\"\\\\u2233\\", crarr: \\"\\\\u21B5\\", cross: \\"\\\\u2717\\", Cross: \\"\\\\u2A2F\\", Cscr: \\"\\\\u{1D49E}\\", cscr: \\"\\\\u{1D4B8}\\", csub: \\"\\\\u2ACF\\", csube: \\"\\\\u2AD1\\", csup: \\"\\\\u2AD0\\", csupe: \\"\\\\u2AD2\\", ctdot: \\"\\\\u22EF\\", cudarrl: \\"\\\\u2938\\", cudarrr: \\"\\\\u2935\\", cuepr: \\"\\\\u22DE\\", cuesc: \\"\\\\u22DF\\", cularr: \\"\\\\u21B6\\", cularrp: \\"\\\\u293D\\", cupbrcap: \\"\\\\u2A48\\", cupcap: \\"\\\\u2A46\\", CupCap: \\"\\\\u224D\\", cup: \\"\\\\u222A\\", Cup: \\"\\\\u22D3\\", cupcup: \\"\\\\u2A4A\\", cupdot: \\"\\\\u228D\\", cupor: \\"\\\\u2A45\\", cups: \\"\\\\u222A\\\\uFE00\\", curarr: \\"\\\\u21B7\\", curarrm: \\"\\\\u293C\\", curlyeqprec: \\"\\\\u22DE\\", curlyeqsucc: \\"\\\\u22DF\\", curlyvee: \\"\\\\u22CE\\", curlywedge: \\"\\\\u22CF\\", curren: \\"\\\\xA4\\", curvearrowleft: \\"\\\\u21B6\\", curvearrowright: \\"\\\\u21B7\\", cuvee: \\"\\\\u22CE\\", cuwed: \\"\\\\u22CF\\", cwconint: \\"\\\\u2232\\", cwint: \\"\\\\u2231\\", cylcty: \\"\\\\u232D\\", dagger: \\"\\\\u2020\\", Dagger: \\"\\\\u2021\\", daleth: \\"\\\\u2138\\", darr: \\"\\\\u2193\\", Darr: \\"\\\\u21A1\\", dArr: \\"\\\\u21D3\\", dash: \\"\\\\u2010\\", Dashv: \\"\\\\u2AE4\\", dashv: \\"\\\\u22A3\\", dbkarow: \\"\\\\u290F\\", dblac: \\"\\\\u02DD\\", Dcaron: \\"\\\\u010E\\", dcaron: \\"\\\\u010F\\", Dcy: \\"\\\\u0414\\", dcy: \\"\\\\u0434\\", ddagger: \\"\\\\u2021\\", ddarr: \\"\\\\u21CA\\", DD: \\"\\\\u2145\\", dd: \\"\\\\u2146\\", DDotrahd: \\"\\\\u2911\\", ddotseq: \\"\\\\u2A77\\", deg: \\"\\\\xB0\\", Del: \\"\\\\u2207\\", Delta: \\"\\\\u0394\\", delta: \\"\\\\u03B4\\", demptyv: \\"\\\\u29B1\\", dfisht: \\"\\\\u297F\\", Dfr: \\"\\\\u{1D507}\\", dfr: \\"\\\\u{1D521}\\", dHar: \\"\\\\u2965\\", dharl: \\"\\\\u21C3\\", dharr: \\"\\\\u21C2\\", DiacriticalAcute: \\"\\\\xB4\\", DiacriticalDot: \\"\\\\u02D9\\", DiacriticalDoubleAcute: \\"\\\\u02DD\\", DiacriticalGrave: \\"\`\\", DiacriticalTilde: \\"\\\\u02DC\\", diam: \\"\\\\u22C4\\", diamond: \\"\\\\u22C4\\", Diamond: \\"\\\\u22C4\\", diamondsuit: \\"\\\\u2666\\", diams: \\"\\\\u2666\\", die: \\"\\\\xA8\\", DifferentialD: \\"\\\\u2146\\", digamma: \\"\\\\u03DD\\", disin: \\"\\\\u22F2\\", div: \\"\\\\xF7\\", divide: \\"\\\\xF7\\", divideontimes: \\"\\\\u22C7\\", divonx: \\"\\\\u22C7\\", DJcy: \\"\\\\u0402\\", djcy: \\"\\\\u0452\\", dlcorn: \\"\\\\u231E\\", dlcrop: \\"\\\\u230D\\", dollar: \\"$\\", Dopf: \\"\\\\u{1D53B}\\", dopf: \\"\\\\u{1D555}\\", Dot: \\"\\\\xA8\\", dot: \\"\\\\u02D9\\", DotDot: \\"\\\\u20DC\\", doteq: \\"\\\\u2250\\", doteqdot: \\"\\\\u2251\\", DotEqual: \\"\\\\u2250\\", dotminus: \\"\\\\u2238\\", dotplus: \\"\\\\u2214\\", dotsquare: \\"\\\\u22A1\\", doublebarwedge: \\"\\\\u2306\\", DoubleContourIntegral: \\"\\\\u222F\\", DoubleDot: \\"\\\\xA8\\", DoubleDownArrow: \\"\\\\u21D3\\", DoubleLeftArrow: \\"\\\\u21D0\\", DoubleLeftRightArrow: \\"\\\\u21D4\\", DoubleLeftTee: \\"\\\\u2AE4\\", DoubleLongLeftArrow: \\"\\\\u27F8\\", DoubleLongLeftRightArrow: \\"\\\\u27FA\\", DoubleLongRightArrow: \\"\\\\u27F9\\", DoubleRightArrow: \\"\\\\u21D2\\", DoubleRightTee: \\"\\\\u22A8\\", DoubleUpArrow: \\"\\\\u21D1\\", DoubleUpDownArrow: \\"\\\\u21D5\\", DoubleVerticalBar: \\"\\\\u2225\\", DownArrowBar: \\"\\\\u2913\\", downarrow: \\"\\\\u2193\\", DownArrow: \\"\\\\u2193\\", Downarrow: \\"\\\\u21D3\\", DownArrowUpArrow: \\"\\\\u21F5\\", DownBreve: \\"\\\\u0311\\", downdownarrows: \\"\\\\u21CA\\", downharpoonleft: \\"\\\\u21C3\\", downharpoonright: \\"\\\\u21C2\\", DownLeftRightVector: \\"\\\\u2950\\", DownLeftTeeVector: \\"\\\\u295E\\", DownLeftVectorBar: \\"\\\\u2956\\", DownLeftVector: \\"\\\\u21BD\\", DownRightTeeVector: \\"\\\\u295F\\", DownRightVectorBar: \\"\\\\u2957\\", DownRightVector: \\"\\\\u21C1\\", DownTeeArrow: \\"\\\\u21A7\\", DownTee: \\"\\\\u22A4\\", drbkarow: \\"\\\\u2910\\", drcorn: \\"\\\\u231F\\", drcrop: \\"\\\\u230C\\", Dscr: \\"\\\\u{1D49F}\\", dscr: \\"\\\\u{1D4B9}\\", DScy: \\"\\\\u0405\\", dscy: \\"\\\\u0455\\", dsol: \\"\\\\u29F6\\", Dstrok: \\"\\\\u0110\\", dstrok: \\"\\\\u0111\\", dtdot: \\"\\\\u22F1\\", dtri: \\"\\\\u25BF\\", dtrif: \\"\\\\u25BE\\", duarr: \\"\\\\u21F5\\", duhar: \\"\\\\u296F\\", dwangle: \\"\\\\u29A6\\", DZcy: \\"\\\\u040F\\", dzcy: \\"\\\\u045F\\", dzigrarr: \\"\\\\u27FF\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", easter: \\"\\\\u2A6E\\", Ecaron: \\"\\\\u011A\\", ecaron: \\"\\\\u011B\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", ecir: \\"\\\\u2256\\", ecolon: \\"\\\\u2255\\", Ecy: \\"\\\\u042D\\", ecy: \\"\\\\u044D\\", eDDot: \\"\\\\u2A77\\", Edot: \\"\\\\u0116\\", edot: \\"\\\\u0117\\", eDot: \\"\\\\u2251\\", ee: \\"\\\\u2147\\", efDot: \\"\\\\u2252\\", Efr: \\"\\\\u{1D508}\\", efr: \\"\\\\u{1D522}\\", eg: \\"\\\\u2A9A\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", egs: \\"\\\\u2A96\\", egsdot: \\"\\\\u2A98\\", el: \\"\\\\u2A99\\", Element: \\"\\\\u2208\\", elinters: \\"\\\\u23E7\\", ell: \\"\\\\u2113\\", els: \\"\\\\u2A95\\", elsdot: \\"\\\\u2A97\\", Emacr: \\"\\\\u0112\\", emacr: \\"\\\\u0113\\", empty: \\"\\\\u2205\\", emptyset: \\"\\\\u2205\\", EmptySmallSquare: \\"\\\\u25FB\\", emptyv: \\"\\\\u2205\\", EmptyVerySmallSquare: \\"\\\\u25AB\\", emsp13: \\"\\\\u2004\\", emsp14: \\"\\\\u2005\\", emsp: \\"\\\\u2003\\", ENG: \\"\\\\u014A\\", eng: \\"\\\\u014B\\", ensp: \\"\\\\u2002\\", Eogon: \\"\\\\u0118\\", eogon: \\"\\\\u0119\\", Eopf: \\"\\\\u{1D53C}\\", eopf: \\"\\\\u{1D556}\\", epar: \\"\\\\u22D5\\", eparsl: \\"\\\\u29E3\\", eplus: \\"\\\\u2A71\\", epsi: \\"\\\\u03B5\\", Epsilon: \\"\\\\u0395\\", epsilon: \\"\\\\u03B5\\", epsiv: \\"\\\\u03F5\\", eqcirc: \\"\\\\u2256\\", eqcolon: \\"\\\\u2255\\", eqsim: \\"\\\\u2242\\", eqslantgtr: \\"\\\\u2A96\\", eqslantless: \\"\\\\u2A95\\", Equal: \\"\\\\u2A75\\", equals: \\"=\\", EqualTilde: \\"\\\\u2242\\", equest: \\"\\\\u225F\\", Equilibrium: \\"\\\\u21CC\\", equiv: \\"\\\\u2261\\", equivDD: \\"\\\\u2A78\\", eqvparsl: \\"\\\\u29E5\\", erarr: \\"\\\\u2971\\", erDot: \\"\\\\u2253\\", escr: \\"\\\\u212F\\", Escr: \\"\\\\u2130\\", esdot: \\"\\\\u2250\\", Esim: \\"\\\\u2A73\\", esim: \\"\\\\u2242\\", Eta: \\"\\\\u0397\\", eta: \\"\\\\u03B7\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", euro: \\"\\\\u20AC\\", excl: \\"!\\", exist: \\"\\\\u2203\\", Exists: \\"\\\\u2203\\", expectation: \\"\\\\u2130\\", exponentiale: \\"\\\\u2147\\", ExponentialE: \\"\\\\u2147\\", fallingdotseq: \\"\\\\u2252\\", Fcy: \\"\\\\u0424\\", fcy: \\"\\\\u0444\\", female: \\"\\\\u2640\\", ffilig: \\"\\\\uFB03\\", fflig: \\"\\\\uFB00\\", ffllig: \\"\\\\uFB04\\", Ffr: \\"\\\\u{1D509}\\", ffr: \\"\\\\u{1D523}\\", filig: \\"\\\\uFB01\\", FilledSmallSquare: \\"\\\\u25FC\\", FilledVerySmallSquare: \\"\\\\u25AA\\", fjlig: \\"fj\\", flat: \\"\\\\u266D\\", fllig: \\"\\\\uFB02\\", fltns: \\"\\\\u25B1\\", fnof: \\"\\\\u0192\\", Fopf: \\"\\\\u{1D53D}\\", fopf: \\"\\\\u{1D557}\\", forall: \\"\\\\u2200\\", ForAll: \\"\\\\u2200\\", fork: \\"\\\\u22D4\\", forkv: \\"\\\\u2AD9\\", Fouriertrf: \\"\\\\u2131\\", fpartint: \\"\\\\u2A0D\\", frac12: \\"\\\\xBD\\", frac13: \\"\\\\u2153\\", frac14: \\"\\\\xBC\\", frac15: \\"\\\\u2155\\", frac16: \\"\\\\u2159\\", frac18: \\"\\\\u215B\\", frac23: \\"\\\\u2154\\", frac25: \\"\\\\u2156\\", frac34: \\"\\\\xBE\\", frac35: \\"\\\\u2157\\", frac38: \\"\\\\u215C\\", frac45: \\"\\\\u2158\\", frac56: \\"\\\\u215A\\", frac58: \\"\\\\u215D\\", frac78: \\"\\\\u215E\\", frasl: \\"\\\\u2044\\", frown: \\"\\\\u2322\\", fscr: \\"\\\\u{1D4BB}\\", Fscr: \\"\\\\u2131\\", gacute: \\"\\\\u01F5\\", Gamma: \\"\\\\u0393\\", gamma: \\"\\\\u03B3\\", Gammad: \\"\\\\u03DC\\", gammad: \\"\\\\u03DD\\", gap: \\"\\\\u2A86\\", Gbreve: \\"\\\\u011E\\", gbreve: \\"\\\\u011F\\", Gcedil: \\"\\\\u0122\\", Gcirc: \\"\\\\u011C\\", gcirc: \\"\\\\u011D\\", Gcy: \\"\\\\u0413\\", gcy: \\"\\\\u0433\\", Gdot: \\"\\\\u0120\\", gdot: \\"\\\\u0121\\", ge: \\"\\\\u2265\\", gE: \\"\\\\u2267\\", gEl: \\"\\\\u2A8C\\", gel: \\"\\\\u22DB\\", geq: \\"\\\\u2265\\", geqq: \\"\\\\u2267\\", geqslant: \\"\\\\u2A7E\\", gescc: \\"\\\\u2AA9\\", ges: \\"\\\\u2A7E\\", gesdot: \\"\\\\u2A80\\", gesdoto: \\"\\\\u2A82\\", gesdotol: \\"\\\\u2A84\\", gesl: \\"\\\\u22DB\\\\uFE00\\", gesles: \\"\\\\u2A94\\", Gfr: \\"\\\\u{1D50A}\\", gfr: \\"\\\\u{1D524}\\", gg: \\"\\\\u226B\\", Gg: \\"\\\\u22D9\\", ggg: \\"\\\\u22D9\\", gimel: \\"\\\\u2137\\", GJcy: \\"\\\\u0403\\", gjcy: \\"\\\\u0453\\", gla: \\"\\\\u2AA5\\", gl: \\"\\\\u2277\\", glE: \\"\\\\u2A92\\", glj: \\"\\\\u2AA4\\", gnap: \\"\\\\u2A8A\\", gnapprox: \\"\\\\u2A8A\\", gne: \\"\\\\u2A88\\", gnE: \\"\\\\u2269\\", gneq: \\"\\\\u2A88\\", gneqq: \\"\\\\u2269\\", gnsim: \\"\\\\u22E7\\", Gopf: \\"\\\\u{1D53E}\\", gopf: \\"\\\\u{1D558}\\", grave: \\"\`\\", GreaterEqual: \\"\\\\u2265\\", GreaterEqualLess: \\"\\\\u22DB\\", GreaterFullEqual: \\"\\\\u2267\\", GreaterGreater: \\"\\\\u2AA2\\", GreaterLess: \\"\\\\u2277\\", GreaterSlantEqual: \\"\\\\u2A7E\\", GreaterTilde: \\"\\\\u2273\\", Gscr: \\"\\\\u{1D4A2}\\", gscr: \\"\\\\u210A\\", gsim: \\"\\\\u2273\\", gsime: \\"\\\\u2A8E\\", gsiml: \\"\\\\u2A90\\", gtcc: \\"\\\\u2AA7\\", gtcir: \\"\\\\u2A7A\\", gt: \\">\\", GT: \\">\\", Gt: \\"\\\\u226B\\", gtdot: \\"\\\\u22D7\\", gtlPar: \\"\\\\u2995\\", gtquest: \\"\\\\u2A7C\\", gtrapprox: \\"\\\\u2A86\\", gtrarr: \\"\\\\u2978\\", gtrdot: \\"\\\\u22D7\\", gtreqless: \\"\\\\u22DB\\", gtreqqless: \\"\\\\u2A8C\\", gtrless: \\"\\\\u2277\\", gtrsim: \\"\\\\u2273\\", gvertneqq: \\"\\\\u2269\\\\uFE00\\", gvnE: \\"\\\\u2269\\\\uFE00\\", Hacek: \\"\\\\u02C7\\", hairsp: \\"\\\\u200A\\", half: \\"\\\\xBD\\", hamilt: \\"\\\\u210B\\", HARDcy: \\"\\\\u042A\\", hardcy: \\"\\\\u044A\\", harrcir: \\"\\\\u2948\\", harr: \\"\\\\u2194\\", hArr: \\"\\\\u21D4\\", harrw: \\"\\\\u21AD\\", Hat: \\"^\\", hbar: \\"\\\\u210F\\", Hcirc: \\"\\\\u0124\\", hcirc: \\"\\\\u0125\\", hearts: \\"\\\\u2665\\", heartsuit: \\"\\\\u2665\\", hellip: \\"\\\\u2026\\", hercon: \\"\\\\u22B9\\", hfr: \\"\\\\u{1D525}\\", Hfr: \\"\\\\u210C\\", HilbertSpace: \\"\\\\u210B\\", hksearow: \\"\\\\u2925\\", hkswarow: \\"\\\\u2926\\", hoarr: \\"\\\\u21FF\\", homtht: \\"\\\\u223B\\", hookleftarrow: \\"\\\\u21A9\\", hookrightarrow: \\"\\\\u21AA\\", hopf: \\"\\\\u{1D559}\\", Hopf: \\"\\\\u210D\\", horbar: \\"\\\\u2015\\", HorizontalLine: \\"\\\\u2500\\", hscr: \\"\\\\u{1D4BD}\\", Hscr: \\"\\\\u210B\\", hslash: \\"\\\\u210F\\", Hstrok: \\"\\\\u0126\\", hstrok: \\"\\\\u0127\\", HumpDownHump: \\"\\\\u224E\\", HumpEqual: \\"\\\\u224F\\", hybull: \\"\\\\u2043\\", hyphen: \\"\\\\u2010\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", ic: \\"\\\\u2063\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", Icy: \\"\\\\u0418\\", icy: \\"\\\\u0438\\", Idot: \\"\\\\u0130\\", IEcy: \\"\\\\u0415\\", iecy: \\"\\\\u0435\\", iexcl: \\"\\\\xA1\\", iff: \\"\\\\u21D4\\", ifr: \\"\\\\u{1D526}\\", Ifr: \\"\\\\u2111\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", ii: \\"\\\\u2148\\", iiiint: \\"\\\\u2A0C\\", iiint: \\"\\\\u222D\\", iinfin: \\"\\\\u29DC\\", iiota: \\"\\\\u2129\\", IJlig: \\"\\\\u0132\\", ijlig: \\"\\\\u0133\\", Imacr: \\"\\\\u012A\\", imacr: \\"\\\\u012B\\", image: \\"\\\\u2111\\", ImaginaryI: \\"\\\\u2148\\", imagline: \\"\\\\u2110\\", imagpart: \\"\\\\u2111\\", imath: \\"\\\\u0131\\", Im: \\"\\\\u2111\\", imof: \\"\\\\u22B7\\", imped: \\"\\\\u01B5\\", Implies: \\"\\\\u21D2\\", incare: \\"\\\\u2105\\", in: \\"\\\\u2208\\", infin: \\"\\\\u221E\\", infintie: \\"\\\\u29DD\\", inodot: \\"\\\\u0131\\", intcal: \\"\\\\u22BA\\", int: \\"\\\\u222B\\", Int: \\"\\\\u222C\\", integers: \\"\\\\u2124\\", Integral: \\"\\\\u222B\\", intercal: \\"\\\\u22BA\\", Intersection: \\"\\\\u22C2\\", intlarhk: \\"\\\\u2A17\\", intprod: \\"\\\\u2A3C\\", InvisibleComma: \\"\\\\u2063\\", InvisibleTimes: \\"\\\\u2062\\", IOcy: \\"\\\\u0401\\", iocy: \\"\\\\u0451\\", Iogon: \\"\\\\u012E\\", iogon: \\"\\\\u012F\\", Iopf: \\"\\\\u{1D540}\\", iopf: \\"\\\\u{1D55A}\\", Iota: \\"\\\\u0399\\", iota: \\"\\\\u03B9\\", iprod: \\"\\\\u2A3C\\", iquest: \\"\\\\xBF\\", iscr: \\"\\\\u{1D4BE}\\", Iscr: \\"\\\\u2110\\", isin: \\"\\\\u2208\\", isindot: \\"\\\\u22F5\\", isinE: \\"\\\\u22F9\\", isins: \\"\\\\u22F4\\", isinsv: \\"\\\\u22F3\\", isinv: \\"\\\\u2208\\", it: \\"\\\\u2062\\", Itilde: \\"\\\\u0128\\", itilde: \\"\\\\u0129\\", Iukcy: \\"\\\\u0406\\", iukcy: \\"\\\\u0456\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", Jcirc: \\"\\\\u0134\\", jcirc: \\"\\\\u0135\\", Jcy: \\"\\\\u0419\\", jcy: \\"\\\\u0439\\", Jfr: \\"\\\\u{1D50D}\\", jfr: \\"\\\\u{1D527}\\", jmath: \\"\\\\u0237\\", Jopf: \\"\\\\u{1D541}\\", jopf: \\"\\\\u{1D55B}\\", Jscr: \\"\\\\u{1D4A5}\\", jscr: \\"\\\\u{1D4BF}\\", Jsercy: \\"\\\\u0408\\", jsercy: \\"\\\\u0458\\", Jukcy: \\"\\\\u0404\\", jukcy: \\"\\\\u0454\\", Kappa: \\"\\\\u039A\\", kappa: \\"\\\\u03BA\\", kappav: \\"\\\\u03F0\\", Kcedil: \\"\\\\u0136\\", kcedil: \\"\\\\u0137\\", Kcy: \\"\\\\u041A\\", kcy: \\"\\\\u043A\\", Kfr: \\"\\\\u{1D50E}\\", kfr: \\"\\\\u{1D528}\\", kgreen: \\"\\\\u0138\\", KHcy: \\"\\\\u0425\\", khcy: \\"\\\\u0445\\", KJcy: \\"\\\\u040C\\", kjcy: \\"\\\\u045C\\", Kopf: \\"\\\\u{1D542}\\", kopf: \\"\\\\u{1D55C}\\", Kscr: \\"\\\\u{1D4A6}\\", kscr: \\"\\\\u{1D4C0}\\", lAarr: \\"\\\\u21DA\\", Lacute: \\"\\\\u0139\\", lacute: \\"\\\\u013A\\", laemptyv: \\"\\\\u29B4\\", lagran: \\"\\\\u2112\\", Lambda: \\"\\\\u039B\\", lambda: \\"\\\\u03BB\\", lang: \\"\\\\u27E8\\", Lang: \\"\\\\u27EA\\", langd: \\"\\\\u2991\\", langle: \\"\\\\u27E8\\", lap: \\"\\\\u2A85\\", Laplacetrf: \\"\\\\u2112\\", laquo: \\"\\\\xAB\\", larrb: \\"\\\\u21E4\\", larrbfs: \\"\\\\u291F\\", larr: \\"\\\\u2190\\", Larr: \\"\\\\u219E\\", lArr: \\"\\\\u21D0\\", larrfs: \\"\\\\u291D\\", larrhk: \\"\\\\u21A9\\", larrlp: \\"\\\\u21AB\\", larrpl: \\"\\\\u2939\\", larrsim: \\"\\\\u2973\\", larrtl: \\"\\\\u21A2\\", latail: \\"\\\\u2919\\", lAtail: \\"\\\\u291B\\", lat: \\"\\\\u2AAB\\", late: \\"\\\\u2AAD\\", lates: \\"\\\\u2AAD\\\\uFE00\\", lbarr: \\"\\\\u290C\\", lBarr: \\"\\\\u290E\\", lbbrk: \\"\\\\u2772\\", lbrace: \\"{\\", lbrack: \\"[\\", lbrke: \\"\\\\u298B\\", lbrksld: \\"\\\\u298F\\", lbrkslu: \\"\\\\u298D\\", Lcaron: \\"\\\\u013D\\", lcaron: \\"\\\\u013E\\", Lcedil: \\"\\\\u013B\\", lcedil: \\"\\\\u013C\\", lceil: \\"\\\\u2308\\", lcub: \\"{\\", Lcy: \\"\\\\u041B\\", lcy: \\"\\\\u043B\\", ldca: \\"\\\\u2936\\", ldquo: \\"\\\\u201C\\", ldquor: \\"\\\\u201E\\", ldrdhar: \\"\\\\u2967\\", ldrushar: \\"\\\\u294B\\", ldsh: \\"\\\\u21B2\\", le: \\"\\\\u2264\\", lE: \\"\\\\u2266\\", LeftAngleBracket: \\"\\\\u27E8\\", LeftArrowBar: \\"\\\\u21E4\\", leftarrow: \\"\\\\u2190\\", LeftArrow: \\"\\\\u2190\\", Leftarrow: \\"\\\\u21D0\\", LeftArrowRightArrow: \\"\\\\u21C6\\", leftarrowtail: \\"\\\\u21A2\\", LeftCeiling: \\"\\\\u2308\\", LeftDoubleBracket: \\"\\\\u27E6\\", LeftDownTeeVector: \\"\\\\u2961\\", LeftDownVectorBar: \\"\\\\u2959\\", LeftDownVector: \\"\\\\u21C3\\", LeftFloor: \\"\\\\u230A\\", leftharpoondown: \\"\\\\u21BD\\", leftharpoonup: \\"\\\\u21BC\\", leftleftarrows: \\"\\\\u21C7\\", leftrightarrow: \\"\\\\u2194\\", LeftRightArrow: \\"\\\\u2194\\", Leftrightarrow: \\"\\\\u21D4\\", leftrightarrows: \\"\\\\u21C6\\", leftrightharpoons: \\"\\\\u21CB\\", leftrightsquigarrow: \\"\\\\u21AD\\", LeftRightVector: \\"\\\\u294E\\", LeftTeeArrow: \\"\\\\u21A4\\", LeftTee: \\"\\\\u22A3\\", LeftTeeVector: \\"\\\\u295A\\", leftthreetimes: \\"\\\\u22CB\\", LeftTriangleBar: \\"\\\\u29CF\\", LeftTriangle: \\"\\\\u22B2\\", LeftTriangleEqual: \\"\\\\u22B4\\", LeftUpDownVector: \\"\\\\u2951\\", LeftUpTeeVector: \\"\\\\u2960\\", LeftUpVectorBar: \\"\\\\u2958\\", LeftUpVector: \\"\\\\u21BF\\", LeftVectorBar: \\"\\\\u2952\\", LeftVector: \\"\\\\u21BC\\", lEg: \\"\\\\u2A8B\\", leg: \\"\\\\u22DA\\", leq: \\"\\\\u2264\\", leqq: \\"\\\\u2266\\", leqslant: \\"\\\\u2A7D\\", lescc: \\"\\\\u2AA8\\", les: \\"\\\\u2A7D\\", lesdot: \\"\\\\u2A7F\\", lesdoto: \\"\\\\u2A81\\", lesdotor: \\"\\\\u2A83\\", lesg: \\"\\\\u22DA\\\\uFE00\\", lesges: \\"\\\\u2A93\\", lessapprox: \\"\\\\u2A85\\", lessdot: \\"\\\\u22D6\\", lesseqgtr: \\"\\\\u22DA\\", lesseqqgtr: \\"\\\\u2A8B\\", LessEqualGreater: \\"\\\\u22DA\\", LessFullEqual: \\"\\\\u2266\\", LessGreater: \\"\\\\u2276\\", lessgtr: \\"\\\\u2276\\", LessLess: \\"\\\\u2AA1\\", lesssim: \\"\\\\u2272\\", LessSlantEqual: \\"\\\\u2A7D\\", LessTilde: \\"\\\\u2272\\", lfisht: \\"\\\\u297C\\", lfloor: \\"\\\\u230A\\", Lfr: \\"\\\\u{1D50F}\\", lfr: \\"\\\\u{1D529}\\", lg: \\"\\\\u2276\\", lgE: \\"\\\\u2A91\\", lHar: \\"\\\\u2962\\", lhard: \\"\\\\u21BD\\", lharu: \\"\\\\u21BC\\", lharul: \\"\\\\u296A\\", lhblk: \\"\\\\u2584\\", LJcy: \\"\\\\u0409\\", ljcy: \\"\\\\u0459\\", llarr: \\"\\\\u21C7\\", ll: \\"\\\\u226A\\", Ll: \\"\\\\u22D8\\", llcorner: \\"\\\\u231E\\", Lleftarrow: \\"\\\\u21DA\\", llhard: \\"\\\\u296B\\", lltri: \\"\\\\u25FA\\", Lmidot: \\"\\\\u013F\\", lmidot: \\"\\\\u0140\\", lmoustache: \\"\\\\u23B0\\", lmoust: \\"\\\\u23B0\\", lnap: \\"\\\\u2A89\\", lnapprox: \\"\\\\u2A89\\", lne: \\"\\\\u2A87\\", lnE: \\"\\\\u2268\\", lneq: \\"\\\\u2A87\\", lneqq: \\"\\\\u2268\\", lnsim: \\"\\\\u22E6\\", loang: \\"\\\\u27EC\\", loarr: \\"\\\\u21FD\\", lobrk: \\"\\\\u27E6\\", longleftarrow: \\"\\\\u27F5\\", LongLeftArrow: \\"\\\\u27F5\\", Longleftarrow: \\"\\\\u27F8\\", longleftrightarrow: \\"\\\\u27F7\\", LongLeftRightArrow: \\"\\\\u27F7\\", Longleftrightarrow: \\"\\\\u27FA\\", longmapsto: \\"\\\\u27FC\\", longrightarrow: \\"\\\\u27F6\\", LongRightArrow: \\"\\\\u27F6\\", Longrightarrow: \\"\\\\u27F9\\", looparrowleft: \\"\\\\u21AB\\", looparrowright: \\"\\\\u21AC\\", lopar: \\"\\\\u2985\\", Lopf: \\"\\\\u{1D543}\\", lopf: \\"\\\\u{1D55D}\\", loplus: \\"\\\\u2A2D\\", lotimes: \\"\\\\u2A34\\", lowast: \\"\\\\u2217\\", lowbar: \\"_\\", LowerLeftArrow: \\"\\\\u2199\\", LowerRightArrow: \\"\\\\u2198\\", loz: \\"\\\\u25CA\\", lozenge: \\"\\\\u25CA\\", lozf: \\"\\\\u29EB\\", lpar: \\"(\\", lparlt: \\"\\\\u2993\\", lrarr: \\"\\\\u21C6\\", lrcorner: \\"\\\\u231F\\", lrhar: \\"\\\\u21CB\\", lrhard: \\"\\\\u296D\\", lrm: \\"\\\\u200E\\", lrtri: \\"\\\\u22BF\\", lsaquo: \\"\\\\u2039\\", lscr: \\"\\\\u{1D4C1}\\", Lscr: \\"\\\\u2112\\", lsh: \\"\\\\u21B0\\", Lsh: \\"\\\\u21B0\\", lsim: \\"\\\\u2272\\", lsime: \\"\\\\u2A8D\\", lsimg: \\"\\\\u2A8F\\", lsqb: \\"[\\", lsquo: \\"\\\\u2018\\", lsquor: \\"\\\\u201A\\", Lstrok: \\"\\\\u0141\\", lstrok: \\"\\\\u0142\\", ltcc: \\"\\\\u2AA6\\", ltcir: \\"\\\\u2A79\\", lt: \\"<\\", LT: \\"<\\", Lt: \\"\\\\u226A\\", ltdot: \\"\\\\u22D6\\", lthree: \\"\\\\u22CB\\", ltimes: \\"\\\\u22C9\\", ltlarr: \\"\\\\u2976\\", ltquest: \\"\\\\u2A7B\\", ltri: \\"\\\\u25C3\\", ltrie: \\"\\\\u22B4\\", ltrif: \\"\\\\u25C2\\", ltrPar: \\"\\\\u2996\\", lurdshar: \\"\\\\u294A\\", luruhar: \\"\\\\u2966\\", lvertneqq: \\"\\\\u2268\\\\uFE00\\", lvnE: \\"\\\\u2268\\\\uFE00\\", macr: \\"\\\\xAF\\", male: \\"\\\\u2642\\", malt: \\"\\\\u2720\\", maltese: \\"\\\\u2720\\", Map: \\"\\\\u2905\\", map: \\"\\\\u21A6\\", mapsto: \\"\\\\u21A6\\", mapstodown: \\"\\\\u21A7\\", mapstoleft: \\"\\\\u21A4\\", mapstoup: \\"\\\\u21A5\\", marker: \\"\\\\u25AE\\", mcomma: \\"\\\\u2A29\\", Mcy: \\"\\\\u041C\\", mcy: \\"\\\\u043C\\", mdash: \\"\\\\u2014\\", mDDot: \\"\\\\u223A\\", measuredangle: \\"\\\\u2221\\", MediumSpace: \\"\\\\u205F\\", Mellintrf: \\"\\\\u2133\\", Mfr: \\"\\\\u{1D510}\\", mfr: \\"\\\\u{1D52A}\\", mho: \\"\\\\u2127\\", micro: \\"\\\\xB5\\", midast: \\"*\\", midcir: \\"\\\\u2AF0\\", mid: \\"\\\\u2223\\", middot: \\"\\\\xB7\\", minusb: \\"\\\\u229F\\", minus: \\"\\\\u2212\\", minusd: \\"\\\\u2238\\", minusdu: \\"\\\\u2A2A\\", MinusPlus: \\"\\\\u2213\\", mlcp: \\"\\\\u2ADB\\", mldr: \\"\\\\u2026\\", mnplus: \\"\\\\u2213\\", models: \\"\\\\u22A7\\", Mopf: \\"\\\\u{1D544}\\", mopf: \\"\\\\u{1D55E}\\", mp: \\"\\\\u2213\\", mscr: \\"\\\\u{1D4C2}\\", Mscr: \\"\\\\u2133\\", mstpos: \\"\\\\u223E\\", Mu: \\"\\\\u039C\\", mu: \\"\\\\u03BC\\", multimap: \\"\\\\u22B8\\", mumap: \\"\\\\u22B8\\", nabla: \\"\\\\u2207\\", Nacute: \\"\\\\u0143\\", nacute: \\"\\\\u0144\\", nang: \\"\\\\u2220\\\\u20D2\\", nap: \\"\\\\u2249\\", napE: \\"\\\\u2A70\\\\u0338\\", napid: \\"\\\\u224B\\\\u0338\\", napos: \\"\\\\u0149\\", napprox: \\"\\\\u2249\\", natural: \\"\\\\u266E\\", naturals: \\"\\\\u2115\\", natur: \\"\\\\u266E\\", nbsp: \\"\\\\xA0\\", nbump: \\"\\\\u224E\\\\u0338\\", nbumpe: \\"\\\\u224F\\\\u0338\\", ncap: \\"\\\\u2A43\\", Ncaron: \\"\\\\u0147\\", ncaron: \\"\\\\u0148\\", Ncedil: \\"\\\\u0145\\", ncedil: \\"\\\\u0146\\", ncong: \\"\\\\u2247\\", ncongdot: \\"\\\\u2A6D\\\\u0338\\", ncup: \\"\\\\u2A42\\", Ncy: \\"\\\\u041D\\", ncy: \\"\\\\u043D\\", ndash: \\"\\\\u2013\\", nearhk: \\"\\\\u2924\\", nearr: \\"\\\\u2197\\", neArr: \\"\\\\u21D7\\", nearrow: \\"\\\\u2197\\", ne: \\"\\\\u2260\\", nedot: \\"\\\\u2250\\\\u0338\\", NegativeMediumSpace: \\"\\\\u200B\\", NegativeThickSpace: \\"\\\\u200B\\", NegativeThinSpace: \\"\\\\u200B\\", NegativeVeryThinSpace: \\"\\\\u200B\\", nequiv: \\"\\\\u2262\\", nesear: \\"\\\\u2928\\", nesim: \\"\\\\u2242\\\\u0338\\", NestedGreaterGreater: \\"\\\\u226B\\", NestedLessLess: \\"\\\\u226A\\", NewLine: \\"\\\\n\\", nexist: \\"\\\\u2204\\", nexists: \\"\\\\u2204\\", Nfr: \\"\\\\u{1D511}\\", nfr: \\"\\\\u{1D52B}\\", ngE: \\"\\\\u2267\\\\u0338\\", nge: \\"\\\\u2271\\", ngeq: \\"\\\\u2271\\", ngeqq: \\"\\\\u2267\\\\u0338\\", ngeqslant: \\"\\\\u2A7E\\\\u0338\\", nges: \\"\\\\u2A7E\\\\u0338\\", nGg: \\"\\\\u22D9\\\\u0338\\", ngsim: \\"\\\\u2275\\", nGt: \\"\\\\u226B\\\\u20D2\\", ngt: \\"\\\\u226F\\", ngtr: \\"\\\\u226F\\", nGtv: \\"\\\\u226B\\\\u0338\\", nharr: \\"\\\\u21AE\\", nhArr: \\"\\\\u21CE\\", nhpar: \\"\\\\u2AF2\\", ni: \\"\\\\u220B\\", nis: \\"\\\\u22FC\\", nisd: \\"\\\\u22FA\\", niv: \\"\\\\u220B\\", NJcy: \\"\\\\u040A\\", njcy: \\"\\\\u045A\\", nlarr: \\"\\\\u219A\\", nlArr: \\"\\\\u21CD\\", nldr: \\"\\\\u2025\\", nlE: \\"\\\\u2266\\\\u0338\\", nle: \\"\\\\u2270\\", nleftarrow: \\"\\\\u219A\\", nLeftarrow: \\"\\\\u21CD\\", nleftrightarrow: \\"\\\\u21AE\\", nLeftrightarrow: \\"\\\\u21CE\\", nleq: \\"\\\\u2270\\", nleqq: \\"\\\\u2266\\\\u0338\\", nleqslant: \\"\\\\u2A7D\\\\u0338\\", nles: \\"\\\\u2A7D\\\\u0338\\", nless: \\"\\\\u226E\\", nLl: \\"\\\\u22D8\\\\u0338\\", nlsim: \\"\\\\u2274\\", nLt: \\"\\\\u226A\\\\u20D2\\", nlt: \\"\\\\u226E\\", nltri: \\"\\\\u22EA\\", nltrie: \\"\\\\u22EC\\", nLtv: \\"\\\\u226A\\\\u0338\\", nmid: \\"\\\\u2224\\", NoBreak: \\"\\\\u2060\\", NonBreakingSpace: \\"\\\\xA0\\", nopf: \\"\\\\u{1D55F}\\", Nopf: \\"\\\\u2115\\", Not: \\"\\\\u2AEC\\", not: \\"\\\\xAC\\", NotCongruent: \\"\\\\u2262\\", NotCupCap: \\"\\\\u226D\\", NotDoubleVerticalBar: \\"\\\\u2226\\", NotElement: \\"\\\\u2209\\", NotEqual: \\"\\\\u2260\\", NotEqualTilde: \\"\\\\u2242\\\\u0338\\", NotExists: \\"\\\\u2204\\", NotGreater: \\"\\\\u226F\\", NotGreaterEqual: \\"\\\\u2271\\", NotGreaterFullEqual: \\"\\\\u2267\\\\u0338\\", NotGreaterGreater: \\"\\\\u226B\\\\u0338\\", NotGreaterLess: \\"\\\\u2279\\", NotGreaterSlantEqual: \\"\\\\u2A7E\\\\u0338\\", NotGreaterTilde: \\"\\\\u2275\\", NotHumpDownHump: \\"\\\\u224E\\\\u0338\\", NotHumpEqual: \\"\\\\u224F\\\\u0338\\", notin: \\"\\\\u2209\\", notindot: \\"\\\\u22F5\\\\u0338\\", notinE: \\"\\\\u22F9\\\\u0338\\", notinva: \\"\\\\u2209\\", notinvb: \\"\\\\u22F7\\", notinvc: \\"\\\\u22F6\\", NotLeftTriangleBar: \\"\\\\u29CF\\\\u0338\\", NotLeftTriangle: \\"\\\\u22EA\\", NotLeftTriangleEqual: \\"\\\\u22EC\\", NotLess: \\"\\\\u226E\\", NotLessEqual: \\"\\\\u2270\\", NotLessGreater: \\"\\\\u2278\\", NotLessLess: \\"\\\\u226A\\\\u0338\\", NotLessSlantEqual: \\"\\\\u2A7D\\\\u0338\\", NotLessTilde: \\"\\\\u2274\\", NotNestedGreaterGreater: \\"\\\\u2AA2\\\\u0338\\", NotNestedLessLess: \\"\\\\u2AA1\\\\u0338\\", notni: \\"\\\\u220C\\", notniva: \\"\\\\u220C\\", notnivb: \\"\\\\u22FE\\", notnivc: \\"\\\\u22FD\\", NotPrecedes: \\"\\\\u2280\\", NotPrecedesEqual: \\"\\\\u2AAF\\\\u0338\\", NotPrecedesSlantEqual: \\"\\\\u22E0\\", NotReverseElement: \\"\\\\u220C\\", NotRightTriangleBar: \\"\\\\u29D0\\\\u0338\\", NotRightTriangle: \\"\\\\u22EB\\", NotRightTriangleEqual: \\"\\\\u22ED\\", NotSquareSubset: \\"\\\\u228F\\\\u0338\\", NotSquareSubsetEqual: \\"\\\\u22E2\\", NotSquareSuperset: \\"\\\\u2290\\\\u0338\\", NotSquareSupersetEqual: \\"\\\\u22E3\\", NotSubset: \\"\\\\u2282\\\\u20D2\\", NotSubsetEqual: \\"\\\\u2288\\", NotSucceeds: \\"\\\\u2281\\", NotSucceedsEqual: \\"\\\\u2AB0\\\\u0338\\", NotSucceedsSlantEqual: \\"\\\\u22E1\\", NotSucceedsTilde: \\"\\\\u227F\\\\u0338\\", NotSuperset: \\"\\\\u2283\\\\u20D2\\", NotSupersetEqual: \\"\\\\u2289\\", NotTilde: \\"\\\\u2241\\", NotTildeEqual: \\"\\\\u2244\\", NotTildeFullEqual: \\"\\\\u2247\\", NotTildeTilde: \\"\\\\u2249\\", NotVerticalBar: \\"\\\\u2224\\", nparallel: \\"\\\\u2226\\", npar: \\"\\\\u2226\\", nparsl: \\"\\\\u2AFD\\\\u20E5\\", npart: \\"\\\\u2202\\\\u0338\\", npolint: \\"\\\\u2A14\\", npr: \\"\\\\u2280\\", nprcue: \\"\\\\u22E0\\", nprec: \\"\\\\u2280\\", npreceq: \\"\\\\u2AAF\\\\u0338\\", npre: \\"\\\\u2AAF\\\\u0338\\", nrarrc: \\"\\\\u2933\\\\u0338\\", nrarr: \\"\\\\u219B\\", nrArr: \\"\\\\u21CF\\", nrarrw: \\"\\\\u219D\\\\u0338\\", nrightarrow: \\"\\\\u219B\\", nRightarrow: \\"\\\\u21CF\\", nrtri: \\"\\\\u22EB\\", nrtrie: \\"\\\\u22ED\\", nsc: \\"\\\\u2281\\", nsccue: \\"\\\\u22E1\\", nsce: \\"\\\\u2AB0\\\\u0338\\", Nscr: \\"\\\\u{1D4A9}\\", nscr: \\"\\\\u{1D4C3}\\", nshortmid: \\"\\\\u2224\\", nshortparallel: \\"\\\\u2226\\", nsim: \\"\\\\u2241\\", nsime: \\"\\\\u2244\\", nsimeq: \\"\\\\u2244\\", nsmid: \\"\\\\u2224\\", nspar: \\"\\\\u2226\\", nsqsube: \\"\\\\u22E2\\", nsqsupe: \\"\\\\u22E3\\", nsub: \\"\\\\u2284\\", nsubE: \\"\\\\u2AC5\\\\u0338\\", nsube: \\"\\\\u2288\\", nsubset: \\"\\\\u2282\\\\u20D2\\", nsubseteq: \\"\\\\u2288\\", nsubseteqq: \\"\\\\u2AC5\\\\u0338\\", nsucc: \\"\\\\u2281\\", nsucceq: \\"\\\\u2AB0\\\\u0338\\", nsup: \\"\\\\u2285\\", nsupE: \\"\\\\u2AC6\\\\u0338\\", nsupe: \\"\\\\u2289\\", nsupset: \\"\\\\u2283\\\\u20D2\\", nsupseteq: \\"\\\\u2289\\", nsupseteqq: \\"\\\\u2AC6\\\\u0338\\", ntgl: \\"\\\\u2279\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", ntlg: \\"\\\\u2278\\", ntriangleleft: \\"\\\\u22EA\\", ntrianglelefteq: \\"\\\\u22EC\\", ntriangleright: \\"\\\\u22EB\\", ntrianglerighteq: \\"\\\\u22ED\\", Nu: \\"\\\\u039D\\", nu: \\"\\\\u03BD\\", num: \\"#\\", numero: \\"\\\\u2116\\", numsp: \\"\\\\u2007\\", nvap: \\"\\\\u224D\\\\u20D2\\", nvdash: \\"\\\\u22AC\\", nvDash: \\"\\\\u22AD\\", nVdash: \\"\\\\u22AE\\", nVDash: \\"\\\\u22AF\\", nvge: \\"\\\\u2265\\\\u20D2\\", nvgt: \\">\\\\u20D2\\", nvHarr: \\"\\\\u2904\\", nvinfin: \\"\\\\u29DE\\", nvlArr: \\"\\\\u2902\\", nvle: \\"\\\\u2264\\\\u20D2\\", nvlt: \\"<\\\\u20D2\\", nvltrie: \\"\\\\u22B4\\\\u20D2\\", nvrArr: \\"\\\\u2903\\", nvrtrie: \\"\\\\u22B5\\\\u20D2\\", nvsim: \\"\\\\u223C\\\\u20D2\\", nwarhk: \\"\\\\u2923\\", nwarr: \\"\\\\u2196\\", nwArr: \\"\\\\u21D6\\", nwarrow: \\"\\\\u2196\\", nwnear: \\"\\\\u2927\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", oast: \\"\\\\u229B\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", ocir: \\"\\\\u229A\\", Ocy: \\"\\\\u041E\\", ocy: \\"\\\\u043E\\", odash: \\"\\\\u229D\\", Odblac: \\"\\\\u0150\\", odblac: \\"\\\\u0151\\", odiv: \\"\\\\u2A38\\", odot: \\"\\\\u2299\\", odsold: \\"\\\\u29BC\\", OElig: \\"\\\\u0152\\", oelig: \\"\\\\u0153\\", ofcir: \\"\\\\u29BF\\", Ofr: \\"\\\\u{1D512}\\", ofr: \\"\\\\u{1D52C}\\", ogon: \\"\\\\u02DB\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ogt: \\"\\\\u29C1\\", ohbar: \\"\\\\u29B5\\", ohm: \\"\\\\u03A9\\", oint: \\"\\\\u222E\\", olarr: \\"\\\\u21BA\\", olcir: \\"\\\\u29BE\\", olcross: \\"\\\\u29BB\\", oline: \\"\\\\u203E\\", olt: \\"\\\\u29C0\\", Omacr: \\"\\\\u014C\\", omacr: \\"\\\\u014D\\", Omega: \\"\\\\u03A9\\", omega: \\"\\\\u03C9\\", Omicron: \\"\\\\u039F\\", omicron: \\"\\\\u03BF\\", omid: \\"\\\\u29B6\\", ominus: \\"\\\\u2296\\", Oopf: \\"\\\\u{1D546}\\", oopf: \\"\\\\u{1D560}\\", opar: \\"\\\\u29B7\\", OpenCurlyDoubleQuote: \\"\\\\u201C\\", OpenCurlyQuote: \\"\\\\u2018\\", operp: \\"\\\\u29B9\\", oplus: \\"\\\\u2295\\", orarr: \\"\\\\u21BB\\", Or: \\"\\\\u2A54\\", or: \\"\\\\u2228\\", ord: \\"\\\\u2A5D\\", order: \\"\\\\u2134\\", orderof: \\"\\\\u2134\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", origof: \\"\\\\u22B6\\", oror: \\"\\\\u2A56\\", orslope: \\"\\\\u2A57\\", orv: \\"\\\\u2A5B\\", oS: \\"\\\\u24C8\\", Oscr: \\"\\\\u{1D4AA}\\", oscr: \\"\\\\u2134\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", osol: \\"\\\\u2298\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", otimesas: \\"\\\\u2A36\\", Otimes: \\"\\\\u2A37\\", otimes: \\"\\\\u2297\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", ovbar: \\"\\\\u233D\\", OverBar: \\"\\\\u203E\\", OverBrace: \\"\\\\u23DE\\", OverBracket: \\"\\\\u23B4\\", OverParenthesis: \\"\\\\u23DC\\", para: \\"\\\\xB6\\", parallel: \\"\\\\u2225\\", par: \\"\\\\u2225\\", parsim: \\"\\\\u2AF3\\", parsl: \\"\\\\u2AFD\\", part: \\"\\\\u2202\\", PartialD: \\"\\\\u2202\\", Pcy: \\"\\\\u041F\\", pcy: \\"\\\\u043F\\", percnt: \\"%\\", period: \\".\\", permil: \\"\\\\u2030\\", perp: \\"\\\\u22A5\\", pertenk: \\"\\\\u2031\\", Pfr: \\"\\\\u{1D513}\\", pfr: \\"\\\\u{1D52D}\\", Phi: \\"\\\\u03A6\\", phi: \\"\\\\u03C6\\", phiv: \\"\\\\u03D5\\", phmmat: \\"\\\\u2133\\", phone: \\"\\\\u260E\\", Pi: \\"\\\\u03A0\\", pi: \\"\\\\u03C0\\", pitchfork: \\"\\\\u22D4\\", piv: \\"\\\\u03D6\\", planck: \\"\\\\u210F\\", planckh: \\"\\\\u210E\\", plankv: \\"\\\\u210F\\", plusacir: \\"\\\\u2A23\\", plusb: \\"\\\\u229E\\", pluscir: \\"\\\\u2A22\\", plus: \\"+\\", plusdo: \\"\\\\u2214\\", plusdu: \\"\\\\u2A25\\", pluse: \\"\\\\u2A72\\", PlusMinus: \\"\\\\xB1\\", plusmn: \\"\\\\xB1\\", plussim: \\"\\\\u2A26\\", plustwo: \\"\\\\u2A27\\", pm: \\"\\\\xB1\\", Poincareplane: \\"\\\\u210C\\", pointint: \\"\\\\u2A15\\", popf: \\"\\\\u{1D561}\\", Popf: \\"\\\\u2119\\", pound: \\"\\\\xA3\\", prap: \\"\\\\u2AB7\\", Pr: \\"\\\\u2ABB\\", pr: \\"\\\\u227A\\", prcue: \\"\\\\u227C\\", precapprox: \\"\\\\u2AB7\\", prec: \\"\\\\u227A\\", preccurlyeq: \\"\\\\u227C\\", Precedes: \\"\\\\u227A\\", PrecedesEqual: \\"\\\\u2AAF\\", PrecedesSlantEqual: \\"\\\\u227C\\", PrecedesTilde: \\"\\\\u227E\\", preceq: \\"\\\\u2AAF\\", precnapprox: \\"\\\\u2AB9\\", precneqq: \\"\\\\u2AB5\\", precnsim: \\"\\\\u22E8\\", pre: \\"\\\\u2AAF\\", prE: \\"\\\\u2AB3\\", precsim: \\"\\\\u227E\\", prime: \\"\\\\u2032\\", Prime: \\"\\\\u2033\\", primes: \\"\\\\u2119\\", prnap: \\"\\\\u2AB9\\", prnE: \\"\\\\u2AB5\\", prnsim: \\"\\\\u22E8\\", prod: \\"\\\\u220F\\", Product: \\"\\\\u220F\\", profalar: \\"\\\\u232E\\", profline: \\"\\\\u2312\\", profsurf: \\"\\\\u2313\\", prop: \\"\\\\u221D\\", Proportional: \\"\\\\u221D\\", Proportion: \\"\\\\u2237\\", propto: \\"\\\\u221D\\", prsim: \\"\\\\u227E\\", prurel: \\"\\\\u22B0\\", Pscr: \\"\\\\u{1D4AB}\\", pscr: \\"\\\\u{1D4C5}\\", Psi: \\"\\\\u03A8\\", psi: \\"\\\\u03C8\\", puncsp: \\"\\\\u2008\\", Qfr: \\"\\\\u{1D514}\\", qfr: \\"\\\\u{1D52E}\\", qint: \\"\\\\u2A0C\\", qopf: \\"\\\\u{1D562}\\", Qopf: \\"\\\\u211A\\", qprime: \\"\\\\u2057\\", Qscr: \\"\\\\u{1D4AC}\\", qscr: \\"\\\\u{1D4C6}\\", quaternions: \\"\\\\u210D\\", quatint: \\"\\\\u2A16\\", quest: \\"?\\", questeq: \\"\\\\u225F\\", quot: '\\"', QUOT: '\\"', rAarr: \\"\\\\u21DB\\", race: \\"\\\\u223D\\\\u0331\\", Racute: \\"\\\\u0154\\", racute: \\"\\\\u0155\\", radic: \\"\\\\u221A\\", raemptyv: \\"\\\\u29B3\\", rang: \\"\\\\u27E9\\", Rang: \\"\\\\u27EB\\", rangd: \\"\\\\u2992\\", range: \\"\\\\u29A5\\", rangle: \\"\\\\u27E9\\", raquo: \\"\\\\xBB\\", rarrap: \\"\\\\u2975\\", rarrb: \\"\\\\u21E5\\", rarrbfs: \\"\\\\u2920\\", rarrc: \\"\\\\u2933\\", rarr: \\"\\\\u2192\\", Rarr: \\"\\\\u21A0\\", rArr: \\"\\\\u21D2\\", rarrfs: \\"\\\\u291E\\", rarrhk: \\"\\\\u21AA\\", rarrlp: \\"\\\\u21AC\\", rarrpl: \\"\\\\u2945\\", rarrsim: \\"\\\\u2974\\", Rarrtl: \\"\\\\u2916\\", rarrtl: \\"\\\\u21A3\\", rarrw: \\"\\\\u219D\\", ratail: \\"\\\\u291A\\", rAtail: \\"\\\\u291C\\", ratio: \\"\\\\u2236\\", rationals: \\"\\\\u211A\\", rbarr: \\"\\\\u290D\\", rBarr: \\"\\\\u290F\\", RBarr: \\"\\\\u2910\\", rbbrk: \\"\\\\u2773\\", rbrace: \\"}\\", rbrack: \\"]\\", rbrke: \\"\\\\u298C\\", rbrksld: \\"\\\\u298E\\", rbrkslu: \\"\\\\u2990\\", Rcaron: \\"\\\\u0158\\", rcaron: \\"\\\\u0159\\", Rcedil: \\"\\\\u0156\\", rcedil: \\"\\\\u0157\\", rceil: \\"\\\\u2309\\", rcub: \\"}\\", Rcy: \\"\\\\u0420\\", rcy: \\"\\\\u0440\\", rdca: \\"\\\\u2937\\", rdldhar: \\"\\\\u2969\\", rdquo: \\"\\\\u201D\\", rdquor: \\"\\\\u201D\\", rdsh: \\"\\\\u21B3\\", real: \\"\\\\u211C\\", realine: \\"\\\\u211B\\", realpart: \\"\\\\u211C\\", reals: \\"\\\\u211D\\", Re: \\"\\\\u211C\\", rect: \\"\\\\u25AD\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", ReverseElement: \\"\\\\u220B\\", ReverseEquilibrium: \\"\\\\u21CB\\", ReverseUpEquilibrium: \\"\\\\u296F\\", rfisht: \\"\\\\u297D\\", rfloor: \\"\\\\u230B\\", rfr: \\"\\\\u{1D52F}\\", Rfr: \\"\\\\u211C\\", rHar: \\"\\\\u2964\\", rhard: \\"\\\\u21C1\\", rharu: \\"\\\\u21C0\\", rharul: \\"\\\\u296C\\", Rho: \\"\\\\u03A1\\", rho: \\"\\\\u03C1\\", rhov: \\"\\\\u03F1\\", RightAngleBracket: \\"\\\\u27E9\\", RightArrowBar: \\"\\\\u21E5\\", rightarrow: \\"\\\\u2192\\", RightArrow: \\"\\\\u2192\\", Rightarrow: \\"\\\\u21D2\\", RightArrowLeftArrow: \\"\\\\u21C4\\", rightarrowtail: \\"\\\\u21A3\\", RightCeiling: \\"\\\\u2309\\", RightDoubleBracket: \\"\\\\u27E7\\", RightDownTeeVector: \\"\\\\u295D\\", RightDownVectorBar: \\"\\\\u2955\\", RightDownVector: \\"\\\\u21C2\\", RightFloor: \\"\\\\u230B\\", rightharpoondown: \\"\\\\u21C1\\", rightharpoonup: \\"\\\\u21C0\\", rightleftarrows: \\"\\\\u21C4\\", rightleftharpoons: \\"\\\\u21CC\\", rightrightarrows: \\"\\\\u21C9\\", rightsquigarrow: \\"\\\\u219D\\", RightTeeArrow: \\"\\\\u21A6\\", RightTee: \\"\\\\u22A2\\", RightTeeVector: \\"\\\\u295B\\", rightthreetimes: \\"\\\\u22CC\\", RightTriangleBar: \\"\\\\u29D0\\", RightTriangle: \\"\\\\u22B3\\", RightTriangleEqual: \\"\\\\u22B5\\", RightUpDownVector: \\"\\\\u294F\\", RightUpTeeVector: \\"\\\\u295C\\", RightUpVectorBar: \\"\\\\u2954\\", RightUpVector: \\"\\\\u21BE\\", RightVectorBar: \\"\\\\u2953\\", RightVector: \\"\\\\u21C0\\", ring: \\"\\\\u02DA\\", risingdotseq: \\"\\\\u2253\\", rlarr: \\"\\\\u21C4\\", rlhar: \\"\\\\u21CC\\", rlm: \\"\\\\u200F\\", rmoustache: \\"\\\\u23B1\\", rmoust: \\"\\\\u23B1\\", rnmid: \\"\\\\u2AEE\\", roang: \\"\\\\u27ED\\", roarr: \\"\\\\u21FE\\", robrk: \\"\\\\u27E7\\", ropar: \\"\\\\u2986\\", ropf: \\"\\\\u{1D563}\\", Ropf: \\"\\\\u211D\\", roplus: \\"\\\\u2A2E\\", rotimes: \\"\\\\u2A35\\", RoundImplies: \\"\\\\u2970\\", rpar: \\")\\", rpargt: \\"\\\\u2994\\", rppolint: \\"\\\\u2A12\\", rrarr: \\"\\\\u21C9\\", Rrightarrow: \\"\\\\u21DB\\", rsaquo: \\"\\\\u203A\\", rscr: \\"\\\\u{1D4C7}\\", Rscr: \\"\\\\u211B\\", rsh: \\"\\\\u21B1\\", Rsh: \\"\\\\u21B1\\", rsqb: \\"]\\", rsquo: \\"\\\\u2019\\", rsquor: \\"\\\\u2019\\", rthree: \\"\\\\u22CC\\", rtimes: \\"\\\\u22CA\\", rtri: \\"\\\\u25B9\\", rtrie: \\"\\\\u22B5\\", rtrif: \\"\\\\u25B8\\", rtriltri: \\"\\\\u29CE\\", RuleDelayed: \\"\\\\u29F4\\", ruluhar: \\"\\\\u2968\\", rx: \\"\\\\u211E\\", Sacute: \\"\\\\u015A\\", sacute: \\"\\\\u015B\\", sbquo: \\"\\\\u201A\\", scap: \\"\\\\u2AB8\\", Scaron: \\"\\\\u0160\\", scaron: \\"\\\\u0161\\", Sc: \\"\\\\u2ABC\\", sc: \\"\\\\u227B\\", sccue: \\"\\\\u227D\\", sce: \\"\\\\u2AB0\\", scE: \\"\\\\u2AB4\\", Scedil: \\"\\\\u015E\\", scedil: \\"\\\\u015F\\", Scirc: \\"\\\\u015C\\", scirc: \\"\\\\u015D\\", scnap: \\"\\\\u2ABA\\", scnE: \\"\\\\u2AB6\\", scnsim: \\"\\\\u22E9\\", scpolint: \\"\\\\u2A13\\", scsim: \\"\\\\u227F\\", Scy: \\"\\\\u0421\\", scy: \\"\\\\u0441\\", sdotb: \\"\\\\u22A1\\", sdot: \\"\\\\u22C5\\", sdote: \\"\\\\u2A66\\", searhk: \\"\\\\u2925\\", searr: \\"\\\\u2198\\", seArr: \\"\\\\u21D8\\", searrow: \\"\\\\u2198\\", sect: \\"\\\\xA7\\", semi: \\";\\", seswar: \\"\\\\u2929\\", setminus: \\"\\\\u2216\\", setmn: \\"\\\\u2216\\", sext: \\"\\\\u2736\\", Sfr: \\"\\\\u{1D516}\\", sfr: \\"\\\\u{1D530}\\", sfrown: \\"\\\\u2322\\", sharp: \\"\\\\u266F\\", SHCHcy: \\"\\\\u0429\\", shchcy: \\"\\\\u0449\\", SHcy: \\"\\\\u0428\\", shcy: \\"\\\\u0448\\", ShortDownArrow: \\"\\\\u2193\\", ShortLeftArrow: \\"\\\\u2190\\", shortmid: \\"\\\\u2223\\", shortparallel: \\"\\\\u2225\\", ShortRightArrow: \\"\\\\u2192\\", ShortUpArrow: \\"\\\\u2191\\", shy: \\"\\\\xAD\\", Sigma: \\"\\\\u03A3\\", sigma: \\"\\\\u03C3\\", sigmaf: \\"\\\\u03C2\\", sigmav: \\"\\\\u03C2\\", sim: \\"\\\\u223C\\", simdot: \\"\\\\u2A6A\\", sime: \\"\\\\u2243\\", simeq: \\"\\\\u2243\\", simg: \\"\\\\u2A9E\\", simgE: \\"\\\\u2AA0\\", siml: \\"\\\\u2A9D\\", simlE: \\"\\\\u2A9F\\", simne: \\"\\\\u2246\\", simplus: \\"\\\\u2A24\\", simrarr: \\"\\\\u2972\\", slarr: \\"\\\\u2190\\", SmallCircle: \\"\\\\u2218\\", smallsetminus: \\"\\\\u2216\\", smashp: \\"\\\\u2A33\\", smeparsl: \\"\\\\u29E4\\", smid: \\"\\\\u2223\\", smile: \\"\\\\u2323\\", smt: \\"\\\\u2AAA\\", smte: \\"\\\\u2AAC\\", smtes: \\"\\\\u2AAC\\\\uFE00\\", SOFTcy: \\"\\\\u042C\\", softcy: \\"\\\\u044C\\", solbar: \\"\\\\u233F\\", solb: \\"\\\\u29C4\\", sol: \\"/\\", Sopf: \\"\\\\u{1D54A}\\", sopf: \\"\\\\u{1D564}\\", spades: \\"\\\\u2660\\", spadesuit: \\"\\\\u2660\\", spar: \\"\\\\u2225\\", sqcap: \\"\\\\u2293\\", sqcaps: \\"\\\\u2293\\\\uFE00\\", sqcup: \\"\\\\u2294\\", sqcups: \\"\\\\u2294\\\\uFE00\\", Sqrt: \\"\\\\u221A\\", sqsub: \\"\\\\u228F\\", sqsube: \\"\\\\u2291\\", sqsubset: \\"\\\\u228F\\", sqsubseteq: \\"\\\\u2291\\", sqsup: \\"\\\\u2290\\", sqsupe: \\"\\\\u2292\\", sqsupset: \\"\\\\u2290\\", sqsupseteq: \\"\\\\u2292\\", square: \\"\\\\u25A1\\", Square: \\"\\\\u25A1\\", SquareIntersection: \\"\\\\u2293\\", SquareSubset: \\"\\\\u228F\\", SquareSubsetEqual: \\"\\\\u2291\\", SquareSuperset: \\"\\\\u2290\\", SquareSupersetEqual: \\"\\\\u2292\\", SquareUnion: \\"\\\\u2294\\", squarf: \\"\\\\u25AA\\", squ: \\"\\\\u25A1\\", squf: \\"\\\\u25AA\\", srarr: \\"\\\\u2192\\", Sscr: \\"\\\\u{1D4AE}\\", sscr: \\"\\\\u{1D4C8}\\", ssetmn: \\"\\\\u2216\\", ssmile: \\"\\\\u2323\\", sstarf: \\"\\\\u22C6\\", Star: \\"\\\\u22C6\\", star: \\"\\\\u2606\\", starf: \\"\\\\u2605\\", straightepsilon: \\"\\\\u03F5\\", straightphi: \\"\\\\u03D5\\", strns: \\"\\\\xAF\\", sub: \\"\\\\u2282\\", Sub: \\"\\\\u22D0\\", subdot: \\"\\\\u2ABD\\", subE: \\"\\\\u2AC5\\", sube: \\"\\\\u2286\\", subedot: \\"\\\\u2AC3\\", submult: \\"\\\\u2AC1\\", subnE: \\"\\\\u2ACB\\", subne: \\"\\\\u228A\\", subplus: \\"\\\\u2ABF\\", subrarr: \\"\\\\u2979\\", subset: \\"\\\\u2282\\", Subset: \\"\\\\u22D0\\", subseteq: \\"\\\\u2286\\", subseteqq: \\"\\\\u2AC5\\", SubsetEqual: \\"\\\\u2286\\", subsetneq: \\"\\\\u228A\\", subsetneqq: \\"\\\\u2ACB\\", subsim: \\"\\\\u2AC7\\", subsub: \\"\\\\u2AD5\\", subsup: \\"\\\\u2AD3\\", succapprox: \\"\\\\u2AB8\\", succ: \\"\\\\u227B\\", succcurlyeq: \\"\\\\u227D\\", Succeeds: \\"\\\\u227B\\", SucceedsEqual: \\"\\\\u2AB0\\", SucceedsSlantEqual: \\"\\\\u227D\\", SucceedsTilde: \\"\\\\u227F\\", succeq: \\"\\\\u2AB0\\", succnapprox: \\"\\\\u2ABA\\", succneqq: \\"\\\\u2AB6\\", succnsim: \\"\\\\u22E9\\", succsim: \\"\\\\u227F\\", SuchThat: \\"\\\\u220B\\", sum: \\"\\\\u2211\\", Sum: \\"\\\\u2211\\", sung: \\"\\\\u266A\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", sup: \\"\\\\u2283\\", Sup: \\"\\\\u22D1\\", supdot: \\"\\\\u2ABE\\", supdsub: \\"\\\\u2AD8\\", supE: \\"\\\\u2AC6\\", supe: \\"\\\\u2287\\", supedot: \\"\\\\u2AC4\\", Superset: \\"\\\\u2283\\", SupersetEqual: \\"\\\\u2287\\", suphsol: \\"\\\\u27C9\\", suphsub: \\"\\\\u2AD7\\", suplarr: \\"\\\\u297B\\", supmult: \\"\\\\u2AC2\\", supnE: \\"\\\\u2ACC\\", supne: \\"\\\\u228B\\", supplus: \\"\\\\u2AC0\\", supset: \\"\\\\u2283\\", Supset: \\"\\\\u22D1\\", supseteq: \\"\\\\u2287\\", supseteqq: \\"\\\\u2AC6\\", supsetneq: \\"\\\\u228B\\", supsetneqq: \\"\\\\u2ACC\\", supsim: \\"\\\\u2AC8\\", supsub: \\"\\\\u2AD4\\", supsup: \\"\\\\u2AD6\\", swarhk: \\"\\\\u2926\\", swarr: \\"\\\\u2199\\", swArr: \\"\\\\u21D9\\", swarrow: \\"\\\\u2199\\", swnwar: \\"\\\\u292A\\", szlig: \\"\\\\xDF\\", Tab: \\" \\", target: \\"\\\\u2316\\", Tau: \\"\\\\u03A4\\", tau: \\"\\\\u03C4\\", tbrk: \\"\\\\u23B4\\", Tcaron: \\"\\\\u0164\\", tcaron: \\"\\\\u0165\\", Tcedil: \\"\\\\u0162\\", tcedil: \\"\\\\u0163\\", Tcy: \\"\\\\u0422\\", tcy: \\"\\\\u0442\\", tdot: \\"\\\\u20DB\\", telrec: \\"\\\\u2315\\", Tfr: \\"\\\\u{1D517}\\", tfr: \\"\\\\u{1D531}\\", there4: \\"\\\\u2234\\", therefore: \\"\\\\u2234\\", Therefore: \\"\\\\u2234\\", Theta: \\"\\\\u0398\\", theta: \\"\\\\u03B8\\", thetasym: \\"\\\\u03D1\\", thetav: \\"\\\\u03D1\\", thickapprox: \\"\\\\u2248\\", thicksim: \\"\\\\u223C\\", ThickSpace: \\"\\\\u205F\\\\u200A\\", ThinSpace: \\"\\\\u2009\\", thinsp: \\"\\\\u2009\\", thkap: \\"\\\\u2248\\", thksim: \\"\\\\u223C\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", tilde: \\"\\\\u02DC\\", Tilde: \\"\\\\u223C\\", TildeEqual: \\"\\\\u2243\\", TildeFullEqual: \\"\\\\u2245\\", TildeTilde: \\"\\\\u2248\\", timesbar: \\"\\\\u2A31\\", timesb: \\"\\\\u22A0\\", times: \\"\\\\xD7\\", timesd: \\"\\\\u2A30\\", tint: \\"\\\\u222D\\", toea: \\"\\\\u2928\\", topbot: \\"\\\\u2336\\", topcir: \\"\\\\u2AF1\\", top: \\"\\\\u22A4\\", Topf: \\"\\\\u{1D54B}\\", topf: \\"\\\\u{1D565}\\", topfork: \\"\\\\u2ADA\\", tosa: \\"\\\\u2929\\", tprime: \\"\\\\u2034\\", trade: \\"\\\\u2122\\", TRADE: \\"\\\\u2122\\", triangle: \\"\\\\u25B5\\", triangledown: \\"\\\\u25BF\\", triangleleft: \\"\\\\u25C3\\", trianglelefteq: \\"\\\\u22B4\\", triangleq: \\"\\\\u225C\\", triangleright: \\"\\\\u25B9\\", trianglerighteq: \\"\\\\u22B5\\", tridot: \\"\\\\u25EC\\", trie: \\"\\\\u225C\\", triminus: \\"\\\\u2A3A\\", TripleDot: \\"\\\\u20DB\\", triplus: \\"\\\\u2A39\\", trisb: \\"\\\\u29CD\\", tritime: \\"\\\\u2A3B\\", trpezium: \\"\\\\u23E2\\", Tscr: \\"\\\\u{1D4AF}\\", tscr: \\"\\\\u{1D4C9}\\", TScy: \\"\\\\u0426\\", tscy: \\"\\\\u0446\\", TSHcy: \\"\\\\u040B\\", tshcy: \\"\\\\u045B\\", Tstrok: \\"\\\\u0166\\", tstrok: \\"\\\\u0167\\", twixt: \\"\\\\u226C\\", twoheadleftarrow: \\"\\\\u219E\\", twoheadrightarrow: \\"\\\\u21A0\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", uarr: \\"\\\\u2191\\", Uarr: \\"\\\\u219F\\", uArr: \\"\\\\u21D1\\", Uarrocir: \\"\\\\u2949\\", Ubrcy: \\"\\\\u040E\\", ubrcy: \\"\\\\u045E\\", Ubreve: \\"\\\\u016C\\", ubreve: \\"\\\\u016D\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ucy: \\"\\\\u0423\\", ucy: \\"\\\\u0443\\", udarr: \\"\\\\u21C5\\", Udblac: \\"\\\\u0170\\", udblac: \\"\\\\u0171\\", udhar: \\"\\\\u296E\\", ufisht: \\"\\\\u297E\\", Ufr: \\"\\\\u{1D518}\\", ufr: \\"\\\\u{1D532}\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uHar: \\"\\\\u2963\\", uharl: \\"\\\\u21BF\\", uharr: \\"\\\\u21BE\\", uhblk: \\"\\\\u2580\\", ulcorn: \\"\\\\u231C\\", ulcorner: \\"\\\\u231C\\", ulcrop: \\"\\\\u230F\\", ultri: \\"\\\\u25F8\\", Umacr: \\"\\\\u016A\\", umacr: \\"\\\\u016B\\", uml: \\"\\\\xA8\\", UnderBar: \\"_\\", UnderBrace: \\"\\\\u23DF\\", UnderBracket: \\"\\\\u23B5\\", UnderParenthesis: \\"\\\\u23DD\\", Union: \\"\\\\u22C3\\", UnionPlus: \\"\\\\u228E\\", Uogon: \\"\\\\u0172\\", uogon: \\"\\\\u0173\\", Uopf: \\"\\\\u{1D54C}\\", uopf: \\"\\\\u{1D566}\\", UpArrowBar: \\"\\\\u2912\\", uparrow: \\"\\\\u2191\\", UpArrow: \\"\\\\u2191\\", Uparrow: \\"\\\\u21D1\\", UpArrowDownArrow: \\"\\\\u21C5\\", updownarrow: \\"\\\\u2195\\", UpDownArrow: \\"\\\\u2195\\", Updownarrow: \\"\\\\u21D5\\", UpEquilibrium: \\"\\\\u296E\\", upharpoonleft: \\"\\\\u21BF\\", upharpoonright: \\"\\\\u21BE\\", uplus: \\"\\\\u228E\\", UpperLeftArrow: \\"\\\\u2196\\", UpperRightArrow: \\"\\\\u2197\\", upsi: \\"\\\\u03C5\\", Upsi: \\"\\\\u03D2\\", upsih: \\"\\\\u03D2\\", Upsilon: \\"\\\\u03A5\\", upsilon: \\"\\\\u03C5\\", UpTeeArrow: \\"\\\\u21A5\\", UpTee: \\"\\\\u22A5\\", upuparrows: \\"\\\\u21C8\\", urcorn: \\"\\\\u231D\\", urcorner: \\"\\\\u231D\\", urcrop: \\"\\\\u230E\\", Uring: \\"\\\\u016E\\", uring: \\"\\\\u016F\\", urtri: \\"\\\\u25F9\\", Uscr: \\"\\\\u{1D4B0}\\", uscr: \\"\\\\u{1D4CA}\\", utdot: \\"\\\\u22F0\\", Utilde: \\"\\\\u0168\\", utilde: \\"\\\\u0169\\", utri: \\"\\\\u25B5\\", utrif: \\"\\\\u25B4\\", uuarr: \\"\\\\u21C8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", uwangle: \\"\\\\u29A7\\", vangrt: \\"\\\\u299C\\", varepsilon: \\"\\\\u03F5\\", varkappa: \\"\\\\u03F0\\", varnothing: \\"\\\\u2205\\", varphi: \\"\\\\u03D5\\", varpi: \\"\\\\u03D6\\", varpropto: \\"\\\\u221D\\", varr: \\"\\\\u2195\\", vArr: \\"\\\\u21D5\\", varrho: \\"\\\\u03F1\\", varsigma: \\"\\\\u03C2\\", varsubsetneq: \\"\\\\u228A\\\\uFE00\\", varsubsetneqq: \\"\\\\u2ACB\\\\uFE00\\", varsupsetneq: \\"\\\\u228B\\\\uFE00\\", varsupsetneqq: \\"\\\\u2ACC\\\\uFE00\\", vartheta: \\"\\\\u03D1\\", vartriangleleft: \\"\\\\u22B2\\", vartriangleright: \\"\\\\u22B3\\", vBar: \\"\\\\u2AE8\\", Vbar: \\"\\\\u2AEB\\", vBarv: \\"\\\\u2AE9\\", Vcy: \\"\\\\u0412\\", vcy: \\"\\\\u0432\\", vdash: \\"\\\\u22A2\\", vDash: \\"\\\\u22A8\\", Vdash: \\"\\\\u22A9\\", VDash: \\"\\\\u22AB\\", Vdashl: \\"\\\\u2AE6\\", veebar: \\"\\\\u22BB\\", vee: \\"\\\\u2228\\", Vee: \\"\\\\u22C1\\", veeeq: \\"\\\\u225A\\", vellip: \\"\\\\u22EE\\", verbar: \\"|\\", Verbar: \\"\\\\u2016\\", vert: \\"|\\", Vert: \\"\\\\u2016\\", VerticalBar: \\"\\\\u2223\\", VerticalLine: \\"|\\", VerticalSeparator: \\"\\\\u2758\\", VerticalTilde: \\"\\\\u2240\\", VeryThinSpace: \\"\\\\u200A\\", Vfr: \\"\\\\u{1D519}\\", vfr: \\"\\\\u{1D533}\\", vltri: \\"\\\\u22B2\\", vnsub: \\"\\\\u2282\\\\u20D2\\", vnsup: \\"\\\\u2283\\\\u20D2\\", Vopf: \\"\\\\u{1D54D}\\", vopf: \\"\\\\u{1D567}\\", vprop: \\"\\\\u221D\\", vrtri: \\"\\\\u22B3\\", Vscr: \\"\\\\u{1D4B1}\\", vscr: \\"\\\\u{1D4CB}\\", vsubnE: \\"\\\\u2ACB\\\\uFE00\\", vsubne: \\"\\\\u228A\\\\uFE00\\", vsupnE: \\"\\\\u2ACC\\\\uFE00\\", vsupne: \\"\\\\u228B\\\\uFE00\\", Vvdash: \\"\\\\u22AA\\", vzigzag: \\"\\\\u299A\\", Wcirc: \\"\\\\u0174\\", wcirc: \\"\\\\u0175\\", wedbar: \\"\\\\u2A5F\\", wedge: \\"\\\\u2227\\", Wedge: \\"\\\\u22C0\\", wedgeq: \\"\\\\u2259\\", weierp: \\"\\\\u2118\\", Wfr: \\"\\\\u{1D51A}\\", wfr: \\"\\\\u{1D534}\\", Wopf: \\"\\\\u{1D54E}\\", wopf: \\"\\\\u{1D568}\\", wp: \\"\\\\u2118\\", wr: \\"\\\\u2240\\", wreath: \\"\\\\u2240\\", Wscr: \\"\\\\u{1D4B2}\\", wscr: \\"\\\\u{1D4CC}\\", xcap: \\"\\\\u22C2\\", xcirc: \\"\\\\u25EF\\", xcup: \\"\\\\u22C3\\", xdtri: \\"\\\\u25BD\\", Xfr: \\"\\\\u{1D51B}\\", xfr: \\"\\\\u{1D535}\\", xharr: \\"\\\\u27F7\\", xhArr: \\"\\\\u27FA\\", Xi: \\"\\\\u039E\\", xi: \\"\\\\u03BE\\", xlarr: \\"\\\\u27F5\\", xlArr: \\"\\\\u27F8\\", xmap: \\"\\\\u27FC\\", xnis: \\"\\\\u22FB\\", xodot: \\"\\\\u2A00\\", Xopf: \\"\\\\u{1D54F}\\", xopf: \\"\\\\u{1D569}\\", xoplus: \\"\\\\u2A01\\", xotime: \\"\\\\u2A02\\", xrarr: \\"\\\\u27F6\\", xrArr: \\"\\\\u27F9\\", Xscr: \\"\\\\u{1D4B3}\\", xscr: \\"\\\\u{1D4CD}\\", xsqcup: \\"\\\\u2A06\\", xuplus: \\"\\\\u2A04\\", xutri: \\"\\\\u25B3\\", xvee: \\"\\\\u22C1\\", xwedge: \\"\\\\u22C0\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", YAcy: \\"\\\\u042F\\", yacy: \\"\\\\u044F\\", Ycirc: \\"\\\\u0176\\", ycirc: \\"\\\\u0177\\", Ycy: \\"\\\\u042B\\", ycy: \\"\\\\u044B\\", yen: \\"\\\\xA5\\", Yfr: \\"\\\\u{1D51C}\\", yfr: \\"\\\\u{1D536}\\", YIcy: \\"\\\\u0407\\", yicy: \\"\\\\u0457\\", Yopf: \\"\\\\u{1D550}\\", yopf: \\"\\\\u{1D56A}\\", Yscr: \\"\\\\u{1D4B4}\\", yscr: \\"\\\\u{1D4CE}\\", YUcy: \\"\\\\u042E\\", yucy: \\"\\\\u044E\\", yuml: \\"\\\\xFF\\", Yuml: \\"\\\\u0178\\", Zacute: \\"\\\\u0179\\", zacute: \\"\\\\u017A\\", Zcaron: \\"\\\\u017D\\", zcaron: \\"\\\\u017E\\", Zcy: \\"\\\\u0417\\", zcy: \\"\\\\u0437\\", Zdot: \\"\\\\u017B\\", zdot: \\"\\\\u017C\\", zeetrf: \\"\\\\u2128\\", ZeroWidthSpace: \\"\\\\u200B\\", Zeta: \\"\\\\u0396\\", zeta: \\"\\\\u03B6\\", zfr: \\"\\\\u{1D537}\\", Zfr: \\"\\\\u2128\\", ZHcy: \\"\\\\u0416\\", zhcy: \\"\\\\u0436\\", zigrarr: \\"\\\\u21DD\\", zopf: \\"\\\\u{1D56B}\\", Zopf: \\"\\\\u2124\\", Zscr: \\"\\\\u{1D4B5}\\", zscr: \\"\\\\u{1D4CF}\\", zwj: \\"\\\\u200D\\", zwnj: \\"\\\\u200C\\" }; + } +}); + +// node_modules/entities/lib/maps/legacy.json +var require_legacy = __commonJS({ + \\"node_modules/entities/lib/maps/legacy.json\\"(exports2, module2) { + module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", amp: \\"&\\", AMP: \\"&\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", brvbar: \\"\\\\xA6\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", cedil: \\"\\\\xB8\\", cent: \\"\\\\xA2\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", curren: \\"\\\\xA4\\", deg: \\"\\\\xB0\\", divide: \\"\\\\xF7\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", frac12: \\"\\\\xBD\\", frac14: \\"\\\\xBC\\", frac34: \\"\\\\xBE\\", gt: \\">\\", GT: \\">\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", iexcl: \\"\\\\xA1\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", iquest: \\"\\\\xBF\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", laquo: \\"\\\\xAB\\", lt: \\"<\\", LT: \\"<\\", macr: \\"\\\\xAF\\", micro: \\"\\\\xB5\\", middot: \\"\\\\xB7\\", nbsp: \\"\\\\xA0\\", not: \\"\\\\xAC\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", para: \\"\\\\xB6\\", plusmn: \\"\\\\xB1\\", pound: \\"\\\\xA3\\", quot: '\\"', QUOT: '\\"', raquo: \\"\\\\xBB\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", sect: \\"\\\\xA7\\", shy: \\"\\\\xAD\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", szlig: \\"\\\\xDF\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", times: \\"\\\\xD7\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uml: \\"\\\\xA8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", yen: \\"\\\\xA5\\", yuml: \\"\\\\xFF\\" }; + } +}); + +// node_modules/entities/lib/maps/xml.json +var require_xml = __commonJS({ + \\"node_modules/entities/lib/maps/xml.json\\"(exports2, module2) { + module2.exports = { amp: \\"&\\", apos: \\"'\\", gt: \\">\\", lt: \\"<\\", quot: '\\"' }; + } +}); + +// node_modules/entities/lib/maps/decode.json +var require_decode = __commonJS({ + \\"node_modules/entities/lib/maps/decode.json\\"(exports2, module2) { + module2.exports = { \\"0\\": 65533, \\"128\\": 8364, \\"130\\": 8218, \\"131\\": 402, \\"132\\": 8222, \\"133\\": 8230, \\"134\\": 8224, \\"135\\": 8225, \\"136\\": 710, \\"137\\": 8240, \\"138\\": 352, \\"139\\": 8249, \\"140\\": 338, \\"142\\": 381, \\"145\\": 8216, \\"146\\": 8217, \\"147\\": 8220, \\"148\\": 8221, \\"149\\": 8226, \\"150\\": 8211, \\"151\\": 8212, \\"152\\": 732, \\"153\\": 8482, \\"154\\": 353, \\"155\\": 8250, \\"156\\": 339, \\"158\\": 382, \\"159\\": 376 }; + } +}); + +// node_modules/entities/lib/decode_codepoint.js +var require_decode_codepoint = __commonJS({ + \\"node_modules/entities/lib/decode_codepoint.js\\"(exports2) { + \\"use strict\\"; + var __importDefault = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var decode_json_1 = __importDefault(require_decode()); + var fromCodePoint = String.fromCodePoint || function(codePoint) { + var output = \\"\\"; + if (codePoint > 65535) { + codePoint -= 65536; + output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296); + codePoint = 56320 | codePoint & 1023; + } + output += String.fromCharCode(codePoint); + return output; + }; + function decodeCodePoint(codePoint) { + if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) { + return \\"\\\\uFFFD\\"; + } + if (codePoint in decode_json_1.default) { + codePoint = decode_json_1.default[codePoint]; + } + return fromCodePoint(codePoint); + } + exports2.default = decodeCodePoint; + } +}); + +// node_modules/entities/lib/decode.js +var require_decode2 = __commonJS({ + \\"node_modules/entities/lib/decode.js\\"(exports2) { + \\"use strict\\"; + var __importDefault = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decodeHTML = exports2.decodeHTMLStrict = exports2.decodeXML = void 0; + var entities_json_1 = __importDefault(require_entities()); + var legacy_json_1 = __importDefault(require_legacy()); + var xml_json_1 = __importDefault(require_xml()); + var decode_codepoint_1 = __importDefault(require_decode_codepoint()); + var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\\\\da-fA-F]+|#\\\\d+);/g; + exports2.decodeXML = getStrictDecoder(xml_json_1.default); + exports2.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); + function getStrictDecoder(map) { + var replace = getReplacer(map); + return function(str) { + return String(str).replace(strictEntityRe, replace); + }; + } + var sorter = function(a, b) { + return a < b ? 1 : -1; + }; + exports2.decodeHTML = function() { + var legacy = Object.keys(legacy_json_1.default).sort(sorter); + var keys = Object.keys(entities_json_1.default).sort(sorter); + for (var i = 0, j = 0; i < keys.length; i++) { + if (legacy[j] === keys[i]) { + keys[i] += \\";?\\"; + j++; + } else { + keys[i] += \\";\\"; + } + } + var re = new RegExp(\\"&(?:\\" + keys.join(\\"|\\") + \\"|#[xX][\\\\\\\\da-fA-F]+;?|#\\\\\\\\d+;?)\\", \\"g\\"); + var replace = getReplacer(entities_json_1.default); + function replacer(str) { + if (str.substr(-1) !== \\";\\") + str += \\";\\"; + return replace(str); + } + return function(str) { + return String(str).replace(re, replacer); + }; + }(); + function getReplacer(map) { + return function replace(str) { + if (str.charAt(1) === \\"#\\") { + var secondChar = str.charAt(2); + if (secondChar === \\"X\\" || secondChar === \\"x\\") { + return decode_codepoint_1.default(parseInt(str.substr(3), 16)); + } + return decode_codepoint_1.default(parseInt(str.substr(2), 10)); + } + return map[str.slice(1, -1)] || str; + }; + } + } +}); + +// node_modules/entities/lib/encode.js +var require_encode = __commonJS({ + \\"node_modules/entities/lib/encode.js\\"(exports2) { + \\"use strict\\"; + var __importDefault = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = void 0; + var xml_json_1 = __importDefault(require_xml()); + var inverseXML = getInverseObj(xml_json_1.default); + var xmlReplacer = getInverseReplacer(inverseXML); + exports2.encodeXML = getASCIIEncoder(inverseXML); + var entities_json_1 = __importDefault(require_entities()); + var inverseHTML = getInverseObj(entities_json_1.default); + var htmlReplacer = getInverseReplacer(inverseHTML); + exports2.encodeHTML = getInverse(inverseHTML, htmlReplacer); + exports2.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); + function getInverseObj(obj) { + return Object.keys(obj).sort().reduce(function(inverse, name) { + inverse[obj[name]] = \\"&\\" + name + \\";\\"; + return inverse; + }, {}); + } + function getInverseReplacer(inverse) { + var single = []; + var multiple = []; + for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { + var k = _a[_i]; + if (k.length === 1) { + single.push(\\"\\\\\\\\\\" + k); + } else { + multiple.push(k); + } + } + single.sort(); + for (var start = 0; start < single.length - 1; start++) { + var end = start; + while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { + end += 1; + } + var count = 1 + end - start; + if (count < 3) + continue; + single.splice(start, count, single[start] + \\"-\\" + single[end]); + } + multiple.unshift(\\"[\\" + single.join(\\"\\") + \\"]\\"); + return new RegExp(multiple.join(\\"|\\"), \\"g\\"); + } + var reNonASCII = /(?:[\\\\x80-\\\\uD7FF\\\\uE000-\\\\uFFFF]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF])/g; + var getCodePoint = String.prototype.codePointAt != null ? function(str) { + return str.codePointAt(0); + } : function(c) { + return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; + }; + function singleCharReplacer(c) { + return \\"&#x\\" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + \\";\\"; + } + function getInverse(inverse, re) { + return function(data) { + return data.replace(re, function(name) { + return inverse[name]; + }).replace(reNonASCII, singleCharReplacer); + }; + } + var reEscapeChars = new RegExp(xmlReplacer.source + \\"|\\" + reNonASCII.source, \\"g\\"); + function escape(data) { + return data.replace(reEscapeChars, singleCharReplacer); + } + exports2.escape = escape; + function escapeUTF8(data) { + return data.replace(xmlReplacer, singleCharReplacer); + } + exports2.escapeUTF8 = escapeUTF8; + function getASCIIEncoder(obj) { + return function(data) { + return data.replace(reEscapeChars, function(c) { + return obj[c] || singleCharReplacer(c); + }); + }; + } + } +}); + +// node_modules/entities/lib/index.js +var require_lib = __commonJS({ + \\"node_modules/entities/lib/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decodeXMLStrict = exports2.decodeHTML5Strict = exports2.decodeHTML4Strict = exports2.decodeHTML5 = exports2.decodeHTML4 = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.decodeXML = exports2.encodeHTML5 = exports2.encodeHTML4 = exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = exports2.encode = exports2.decodeStrict = exports2.decode = void 0; + var decode_1 = require_decode2(); + var encode_1 = require_encode(); + function decode(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); + } + exports2.decode = decode; + function decodeStrict(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); + } + exports2.decodeStrict = decodeStrict; + function encode(data, level) { + return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); + } + exports2.encode = encode; + var encode_2 = require_encode(); + Object.defineProperty(exports2, \\"encodeXML\\", { enumerable: true, get: function() { + return encode_2.encodeXML; + } }); + Object.defineProperty(exports2, \\"encodeHTML\\", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports2, \\"encodeNonAsciiHTML\\", { enumerable: true, get: function() { + return encode_2.encodeNonAsciiHTML; + } }); + Object.defineProperty(exports2, \\"escape\\", { enumerable: true, get: function() { + return encode_2.escape; + } }); + Object.defineProperty(exports2, \\"escapeUTF8\\", { enumerable: true, get: function() { + return encode_2.escapeUTF8; + } }); + Object.defineProperty(exports2, \\"encodeHTML4\\", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports2, \\"encodeHTML5\\", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + var decode_2 = require_decode2(); + Object.defineProperty(exports2, \\"decodeXML\\", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + Object.defineProperty(exports2, \\"decodeHTML\\", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports2, \\"decodeHTMLStrict\\", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports2, \\"decodeHTML4\\", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports2, \\"decodeHTML5\\", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports2, \\"decodeHTML4Strict\\", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports2, \\"decodeHTML5Strict\\", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports2, \\"decodeXMLStrict\\", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + } +}); + +// node_modules/fast-xml-parser/src/util.js +var require_util = __commonJS({ + \\"node_modules/fast-xml-parser/src/util.js\\"(exports2) { + \\"use strict\\"; + var nameStartChar = \\":A-Za-z_\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\"; + var nameChar = nameStartChar + \\"\\\\\\\\-.\\\\\\\\d\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040\\"; + var nameRegexp = \\"[\\" + nameStartChar + \\"][\\" + nameChar + \\"]*\\"; + var regexName = new RegExp(\\"^\\" + nameRegexp + \\"$\\"); + var getAllMatches = function(string, regex) { + const matches = []; + let match = regex.exec(string); + while (match) { + const allmatches = []; + const len = match.length; + for (let index = 0; index < len; index++) { + allmatches.push(match[index]); + } + matches.push(allmatches); + match = regex.exec(string); + } + return matches; + }; + var isName = function(string) { + const match = regexName.exec(string); + return !(match === null || typeof match === \\"undefined\\"); + }; + exports2.isExist = function(v) { + return typeof v !== \\"undefined\\"; + }; + exports2.isEmptyObject = function(obj) { + return Object.keys(obj).length === 0; + }; + exports2.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); + const len = keys.length; + for (let i = 0; i < len; i++) { + if (arrayMode === \\"strict\\") { + target[keys[i]] = [a[keys[i]]]; + } else { + target[keys[i]] = a[keys[i]]; + } + } + } + }; + exports2.getValue = function(v) { + if (exports2.isExist(v)) { + return v; + } else { + return \\"\\"; + } + }; + exports2.buildOptions = function(options, defaultOptions, props) { + var newOptions = {}; + if (!options) { + return defaultOptions; + } + for (let i = 0; i < props.length; i++) { + if (options[props[i]] !== void 0) { + newOptions[props[i]] = options[props[i]]; + } else { + newOptions[props[i]] = defaultOptions[props[i]]; + } + } + return newOptions; + }; + exports2.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) { + if (arrayMode === false) { + return false; + } else if (arrayMode instanceof RegExp) { + return arrayMode.test(tagName); + } else if (typeof arrayMode === \\"function\\") { + return !!arrayMode(tagName, parentTagName); + } + return arrayMode === \\"strict\\"; + }; + exports2.isName = isName; + exports2.getAllMatches = getAllMatches; + exports2.nameRegexp = nameRegexp; + } +}); + +// node_modules/fast-xml-parser/src/node2json.js +var require_node2json = __commonJS({ + \\"node_modules/fast-xml-parser/src/node2json.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var convertToJson = function(node, options, parentTagName) { + const jObj = {}; + if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { + return util.isExist(node.val) ? node.val : \\"\\"; + } + if (util.isExist(node.val) && !(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { + const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName); + jObj[options.textNodeName] = asArray ? [node.val] : node.val; + } + util.merge(jObj, node.attrsMap, options.arrayMode); + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + const tagName = keys[index]; + if (node.child[tagName] && node.child[tagName].length > 1) { + jObj[tagName] = []; + for (let tag in node.child[tagName]) { + if (node.child[tagName].hasOwnProperty(tag)) { + jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); + } + } + } else { + const result = convertToJson(node.child[tagName][0], options, tagName); + const asArray = options.arrayMode === true && typeof result === \\"object\\" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); + jObj[tagName] = asArray ? [result] : result; + } + } + return jObj; + }; + exports2.convertToJson = convertToJson; + } +}); + +// node_modules/fast-xml-parser/src/xmlNode.js +var require_xmlNode = __commonJS({ + \\"node_modules/fast-xml-parser/src/xmlNode.js\\"(exports2, module2) { + \\"use strict\\"; + module2.exports = function(tagname, parent, val) { + this.tagname = tagname; + this.parent = parent; + this.child = {}; + this.attrsMap = {}; + this.val = val; + this.addChild = function(child) { + if (Array.isArray(this.child[child.tagname])) { + this.child[child.tagname].push(child); + } else { + this.child[child.tagname] = [child]; + } + }; + }; + } +}); + +// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js +var require_xmlstr2xmlnode = __commonJS({ + \\"node_modules/fast-xml-parser/src/xmlstr2xmlnode.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var xmlNode = require_xmlNode(); + var regx = \\"<((!\\\\\\\\[CDATA\\\\\\\\[([\\\\\\\\s\\\\\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\\\\\/)(NAME)\\\\\\\\s*>))([^<]*)\\".replace(/NAME/g, util.nameRegexp); + if (!Number.parseInt && window.parseInt) { + Number.parseInt = window.parseInt; + } + if (!Number.parseFloat && window.parseFloat) { + Number.parseFloat = window.parseFloat; + } + var defaultOptions = { + attributeNamePrefix: \\"@_\\", + attrNodeName: false, + textNodeName: \\"#text\\", + ignoreAttributes: true, + ignoreNameSpace: false, + allowBooleanAttributes: false, + parseNodeValue: true, + parseAttributeValue: false, + arrayMode: false, + trimValues: true, + cdataTagName: false, + cdataPositionChar: \\"\\\\\\\\c\\", + tagValueProcessor: function(a, tagName) { + return a; + }, + attrValueProcessor: function(a, attrName) { + return a; + }, + stopNodes: [] + }; + exports2.defaultOptions = defaultOptions; + var props = [ + \\"attributeNamePrefix\\", + \\"attrNodeName\\", + \\"textNodeName\\", + \\"ignoreAttributes\\", + \\"ignoreNameSpace\\", + \\"allowBooleanAttributes\\", + \\"parseNodeValue\\", + \\"parseAttributeValue\\", + \\"arrayMode\\", + \\"trimValues\\", + \\"cdataTagName\\", + \\"cdataPositionChar\\", + \\"tagValueProcessor\\", + \\"attrValueProcessor\\", + \\"parseTrueNumberOnly\\", + \\"stopNodes\\" + ]; + exports2.props = props; + function processTagValue(tagName, val, options) { + if (val) { + if (options.trimValues) { + val = val.trim(); + } + val = options.tagValueProcessor(val, tagName); + val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); + } + return val; + } + function resolveNameSpace(tagname, options) { + if (options.ignoreNameSpace) { + const tags = tagname.split(\\":\\"); + const prefix = tagname.charAt(0) === \\"/\\" ? \\"/\\" : \\"\\"; + if (tags[0] === \\"xmlns\\") { + return \\"\\"; + } + if (tags.length === 2) { + tagname = prefix + tags[1]; + } + } + return tagname; + } + function parseValue(val, shouldParse, parseTrueNumberOnly) { + if (shouldParse && typeof val === \\"string\\") { + let parsed; + if (val.trim() === \\"\\" || isNaN(val)) { + parsed = val === \\"true\\" ? true : val === \\"false\\" ? false : val; + } else { + if (val.indexOf(\\"0x\\") !== -1) { + parsed = Number.parseInt(val, 16); + } else if (val.indexOf(\\".\\") !== -1) { + parsed = Number.parseFloat(val); + val = val.replace(/\\\\.?0+$/, \\"\\"); + } else { + parsed = Number.parseInt(val, 10); + } + if (parseTrueNumberOnly) { + parsed = String(parsed) === val ? parsed : val; + } + } + return parsed; + } else { + if (util.isExist(val)) { + return val; + } else { + return \\"\\"; + } + } + } + var attrsRegx = new RegExp(\`([^\\\\\\\\s=]+)\\\\\\\\s*(=\\\\\\\\s*(['\\"])(.*?)\\\\\\\\3)?\`, \\"g\\"); + function buildAttributesMap(attrStr, options) { + if (!options.ignoreAttributes && typeof attrStr === \\"string\\") { + attrStr = attrStr.replace(/\\\\r?\\\\n/g, \\" \\"); + const matches = util.getAllMatches(attrStr, attrsRegx); + const len = matches.length; + const attrs = {}; + for (let i = 0; i < len; i++) { + const attrName = resolveNameSpace(matches[i][1], options); + if (attrName.length) { + if (matches[i][4] !== void 0) { + if (options.trimValues) { + matches[i][4] = matches[i][4].trim(); + } + matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); + attrs[options.attributeNamePrefix + attrName] = parseValue( + matches[i][4], + options.parseAttributeValue, + options.parseTrueNumberOnly + ); + } else if (options.allowBooleanAttributes) { + attrs[options.attributeNamePrefix + attrName] = true; + } + } + } + if (!Object.keys(attrs).length) { + return; + } + if (options.attrNodeName) { + const attrCollection = {}; + attrCollection[options.attrNodeName] = attrs; + return attrCollection; + } + return attrs; + } + } + var getTraversalObj = function(xmlData, options) { + xmlData = xmlData.replace(/\\\\r\\\\n?/g, \\"\\\\n\\"); + options = buildOptions(options, defaultOptions, props); + const xmlObj = new xmlNode(\\"!xml\\"); + let currentNode = xmlObj; + let textData = \\"\\"; + for (let i = 0; i < xmlData.length; i++) { + const ch = xmlData[i]; + if (ch === \\"<\\") { + if (xmlData[i + 1] === \\"/\\") { + const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"Closing Tag is not closed.\\"); + let tagName = xmlData.substring(i + 2, closeIndex).trim(); + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(\\":\\"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + } + } + if (currentNode) { + if (currentNode.val) { + currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(tagName, textData, options); + } else { + currentNode.val = processTagValue(tagName, textData, options); + } + } + if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { + currentNode.child = []; + if (currentNode.attrsMap == void 0) { + currentNode.attrsMap = {}; + } + currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1); + } + currentNode = currentNode.parent; + textData = \\"\\"; + i = closeIndex; + } else if (xmlData[i + 1] === \\"?\\") { + i = findClosingIndex(xmlData, \\"?>\\", i, \\"Pi Tag is not closed.\\"); + } else if (xmlData.substr(i + 1, 3) === \\"!--\\") { + i = findClosingIndex(xmlData, \\"-->\\", i, \\"Comment is not closed.\\"); + } else if (xmlData.substr(i + 1, 2) === \\"!D\\") { + const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"DOCTYPE is not closed.\\"); + const tagExp = xmlData.substring(i, closeIndex); + if (tagExp.indexOf(\\"[\\") >= 0) { + i = xmlData.indexOf(\\"]>\\", i) + 1; + } else { + i = closeIndex; + } + } else if (xmlData.substr(i + 1, 2) === \\"![\\") { + const closeIndex = findClosingIndex(xmlData, \\"]]>\\", i, \\"CDATA is not closed.\\") - 2; + const tagExp = xmlData.substring(i + 9, closeIndex); + if (textData) { + currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); + textData = \\"\\"; + } + if (options.cdataTagName) { + const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); + currentNode.addChild(childNode); + currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; + if (tagExp) { + childNode.val = tagExp; + } + } else { + currentNode.val = (currentNode.val || \\"\\") + (tagExp || \\"\\"); + } + i = closeIndex + 2; + } else { + const result = closingIndexForOpeningTag(xmlData, i + 1); + let tagExp = result.data; + const closeIndex = result.index; + const separatorIndex = tagExp.indexOf(\\" \\"); + let tagName = tagExp; + let shouldBuildAttributesMap = true; + if (separatorIndex !== -1) { + tagName = tagExp.substr(0, separatorIndex).replace(/\\\\s\\\\s*$/, \\"\\"); + tagExp = tagExp.substr(separatorIndex + 1); + } + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(\\":\\"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); + } + } + if (currentNode && textData) { + if (currentNode.tagname !== \\"!xml\\") { + currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); + } + } + if (tagExp.length > 0 && tagExp.lastIndexOf(\\"/\\") === tagExp.length - 1) { + if (tagName[tagName.length - 1] === \\"/\\") { + tagName = tagName.substr(0, tagName.length - 1); + tagExp = tagName; + } else { + tagExp = tagExp.substr(0, tagExp.length - 1); + } + const childNode = new xmlNode(tagName, currentNode, \\"\\"); + if (tagName !== tagExp) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + } else { + const childNode = new xmlNode(tagName, currentNode); + if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { + childNode.startIndex = closeIndex; + } + if (tagName !== tagExp && shouldBuildAttributesMap) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + currentNode = childNode; + } + textData = \\"\\"; + i = closeIndex; + } + } else { + textData += xmlData[i]; + } + } + return xmlObj; + }; + function closingIndexForOpeningTag(data, i) { + let attrBoundary; + let tagExp = \\"\\"; + for (let index = i; index < data.length; index++) { + let ch = data[index]; + if (attrBoundary) { + if (ch === attrBoundary) + attrBoundary = \\"\\"; + } else if (ch === '\\"' || ch === \\"'\\") { + attrBoundary = ch; + } else if (ch === \\">\\") { + return { + data: tagExp, + index + }; + } else if (ch === \\" \\") { + ch = \\" \\"; + } + tagExp += ch; + } + } + function findClosingIndex(xmlData, str, i, errMsg) { + const closingIndex = xmlData.indexOf(str, i); + if (closingIndex === -1) { + throw new Error(errMsg); + } else { + return closingIndex + str.length - 1; + } + } + exports2.getTraversalObj = getTraversalObj; + } +}); + +// node_modules/fast-xml-parser/src/validator.js +var require_validator = __commonJS({ + \\"node_modules/fast-xml-parser/src/validator.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var defaultOptions = { + allowBooleanAttributes: false + }; + var props = [\\"allowBooleanAttributes\\"]; + exports2.validate = function(xmlData, options) { + options = util.buildOptions(options, defaultOptions, props); + const tags = []; + let tagFound = false; + let reachedRoot = false; + if (xmlData[0] === \\"\\\\uFEFF\\") { + xmlData = xmlData.substr(1); + } + for (let i = 0; i < xmlData.length; i++) { + if (xmlData[i] === \\"<\\" && xmlData[i + 1] === \\"?\\") { + i += 2; + i = readPI(xmlData, i); + if (i.err) + return i; + } else if (xmlData[i] === \\"<\\") { + i++; + if (xmlData[i] === \\"!\\") { + i = readCommentAndCDATA(xmlData, i); + continue; + } else { + let closingTag = false; + if (xmlData[i] === \\"/\\") { + closingTag = true; + i++; + } + let tagName = \\"\\"; + for (; i < xmlData.length && xmlData[i] !== \\">\\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\"\\\\n\\" && xmlData[i] !== \\"\\\\r\\"; i++) { + tagName += xmlData[i]; + } + tagName = tagName.trim(); + if (tagName[tagName.length - 1] === \\"/\\") { + tagName = tagName.substring(0, tagName.length - 1); + i--; + } + if (!validateTagName(tagName)) { + let msg; + if (tagName.trim().length === 0) { + msg = \\"There is an unnecessary space between tag name and backward slash ' 0) { + return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + tagName + \\"' can't have attributes or invalid starting.\\", getLineNumberForPosition(xmlData, i)); + } else { + const otg = tags.pop(); + if (tagName !== otg) { + return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + otg + \\"' is expected inplace of '\\" + tagName + \\"'.\\", getLineNumberForPosition(xmlData, i)); + } + if (tags.length == 0) { + reachedRoot = true; + } + } + } else { + const isValid = validateAttributeString(attrStr, options); + if (isValid !== true) { + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); + } + if (reachedRoot === true) { + return getErrorObject(\\"InvalidXml\\", \\"Multiple possible root nodes found.\\", getLineNumberForPosition(xmlData, i)); + } else { + tags.push(tagName); + } + tagFound = true; + } + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === \\"<\\") { + if (xmlData[i + 1] === \\"!\\") { + i++; + i = readCommentAndCDATA(xmlData, i); + continue; + } else if (xmlData[i + 1] === \\"?\\") { + i = readPI(xmlData, ++i); + if (i.err) + return i; + } else { + break; + } + } else if (xmlData[i] === \\"&\\") { + const afterAmp = validateAmpersand(xmlData, i); + if (afterAmp == -1) + return getErrorObject(\\"InvalidChar\\", \\"char '&' is not expected.\\", getLineNumberForPosition(xmlData, i)); + i = afterAmp; + } + } + if (xmlData[i] === \\"<\\") { + i--; + } + } + } else { + if (xmlData[i] === \\" \\" || xmlData[i] === \\" \\" || xmlData[i] === \\"\\\\n\\" || xmlData[i] === \\"\\\\r\\") { + continue; + } + return getErrorObject(\\"InvalidChar\\", \\"char '\\" + xmlData[i] + \\"' is not expected.\\", getLineNumberForPosition(xmlData, i)); + } + } + if (!tagFound) { + return getErrorObject(\\"InvalidXml\\", \\"Start tag expected.\\", 1); + } else if (tags.length > 0) { + return getErrorObject(\\"InvalidXml\\", \\"Invalid '\\" + JSON.stringify(tags, null, 4).replace(/\\\\r?\\\\n/g, \\"\\") + \\"' found.\\", 1); + } + return true; + }; + function readPI(xmlData, i) { + var start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == \\"?\\" || xmlData[i] == \\" \\") { + var tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === \\"xml\\") { + return getErrorObject(\\"InvalidXml\\", \\"XML declaration allowed only at the start of the document.\\", getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == \\"?\\" && xmlData[i + 1] == \\">\\") { + i++; + break; + } else { + continue; + } + } + } + return i; + } + function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\"-\\") { + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === \\"-\\" && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\">\\") { + i += 2; + break; + } + } + } else if (xmlData.length > i + 8 && xmlData[i + 1] === \\"D\\" && xmlData[i + 2] === \\"O\\" && xmlData[i + 3] === \\"C\\" && xmlData[i + 4] === \\"T\\" && xmlData[i + 5] === \\"Y\\" && xmlData[i + 6] === \\"P\\" && xmlData[i + 7] === \\"E\\") { + let angleBracketsCount = 1; + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === \\"<\\") { + angleBracketsCount++; + } else if (xmlData[i] === \\">\\") { + angleBracketsCount--; + if (angleBracketsCount === 0) { + break; + } + } + } + } else if (xmlData.length > i + 9 && xmlData[i + 1] === \\"[\\" && xmlData[i + 2] === \\"C\\" && xmlData[i + 3] === \\"D\\" && xmlData[i + 4] === \\"A\\" && xmlData[i + 5] === \\"T\\" && xmlData[i + 6] === \\"A\\" && xmlData[i + 7] === \\"[\\") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === \\"]\\" && xmlData[i + 1] === \\"]\\" && xmlData[i + 2] === \\">\\") { + i += 2; + break; + } + } + } + return i; + } + var doubleQuote = '\\"'; + var singleQuote = \\"'\\"; + function readAttributeStr(xmlData, i) { + let attrStr = \\"\\"; + let startChar = \\"\\"; + let tagClosed = false; + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { + if (startChar === \\"\\") { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { + continue; + } else { + startChar = \\"\\"; + } + } else if (xmlData[i] === \\">\\") { + if (startChar === \\"\\") { + tagClosed = true; + break; + } + } + attrStr += xmlData[i]; + } + if (startChar !== \\"\\") { + return false; + } + return { + value: attrStr, + index: i, + tagClosed + }; + } + var validAttrStrRegxp = new RegExp(\`(\\\\\\\\s*)([^\\\\\\\\s=]+)(\\\\\\\\s*=)?(\\\\\\\\s*(['\\"])(([\\\\\\\\s\\\\\\\\S])*?)\\\\\\\\5)?\`, \\"g\\"); + function validateAttributeString(attrStr, options) { + const matches = util.getAllMatches(attrStr, validAttrStrRegxp); + const attrNames = {}; + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + matches[i][2] + \\"' has no space in starting.\\", getPositionFromMatch(attrStr, matches[i][0])); + } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { + return getErrorObject(\\"InvalidAttr\\", \\"boolean attribute '\\" + matches[i][2] + \\"' is not allowed.\\", getPositionFromMatch(attrStr, matches[i][0])); + } + const attrName = matches[i][2]; + if (!validateAttrName(attrName)) { + return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is an invalid name.\\", getPositionFromMatch(attrStr, matches[i][0])); + } + if (!attrNames.hasOwnProperty(attrName)) { + attrNames[attrName] = 1; + } else { + return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is repeated.\\", getPositionFromMatch(attrStr, matches[i][0])); + } + } + return true; + } + function validateNumberAmpersand(xmlData, i) { + let re = /\\\\d/; + if (xmlData[i] === \\"x\\") { + i++; + re = /[\\\\da-fA-F]/; + } + for (; i < xmlData.length; i++) { + if (xmlData[i] === \\";\\") + return i; + if (!xmlData[i].match(re)) + break; + } + return -1; + } + function validateAmpersand(xmlData, i) { + i++; + if (xmlData[i] === \\";\\") + return -1; + if (xmlData[i] === \\"#\\") { + i++; + return validateNumberAmpersand(xmlData, i); + } + let count = 0; + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\\\\w/) && count < 20) + continue; + if (xmlData[i] === \\";\\") + break; + return -1; + } + return i; + } + function getErrorObject(code, message, lineNumber) { + return { + err: { + code, + msg: message, + line: lineNumber + } + }; + } + function validateAttrName(attrName) { + return util.isName(attrName); + } + function validateTagName(tagname) { + return util.isName(tagname); + } + function getLineNumberForPosition(xmlData, index) { + var lines = xmlData.substring(0, index).split(/\\\\r?\\\\n/); + return lines.length; + } + function getPositionFromMatch(attrStr, match) { + return attrStr.indexOf(match) + match.length; + } + } +}); + +// node_modules/fast-xml-parser/src/nimndata.js +var require_nimndata = __commonJS({ + \\"node_modules/fast-xml-parser/src/nimndata.js\\"(exports2) { + \\"use strict\\"; + var char = function(a) { + return String.fromCharCode(a); + }; + var chars = { + nilChar: char(176), + missingChar: char(201), + nilPremitive: char(175), + missingPremitive: char(200), + emptyChar: char(178), + emptyValue: char(177), + boundryChar: char(179), + objStart: char(198), + arrStart: char(204), + arrayEnd: char(185) + }; + var charsArr = [ + chars.nilChar, + chars.nilPremitive, + chars.missingChar, + chars.missingPremitive, + chars.boundryChar, + chars.emptyChar, + chars.emptyValue, + chars.arrayEnd, + chars.objStart, + chars.arrStart + ]; + var _e = function(node, e_schema, options) { + if (typeof e_schema === \\"string\\") { + if (node && node[0] && node[0].val !== void 0) { + return getValue(node[0].val, e_schema); + } else { + return getValue(node, e_schema); + } + } else { + const hasValidData = hasData(node); + if (hasValidData === true) { + let str = \\"\\"; + if (Array.isArray(e_schema)) { + str += chars.arrStart; + const itemSchema = e_schema[0]; + const arr_len = node.length; + if (typeof itemSchema === \\"string\\") { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = getValue(node[arr_i].val, itemSchema); + str = processValue(str, r); + } + } else { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = _e(node[arr_i], itemSchema, options); + str = processValue(str, r); + } + } + str += chars.arrayEnd; + } else { + str += chars.objStart; + const keys = Object.keys(e_schema); + if (Array.isArray(node)) { + node = node[0]; + } + for (let i in keys) { + const key = keys[i]; + let r; + if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { + r = _e(node.attrsMap[key], e_schema[key], options); + } else if (key === options.textNodeName) { + r = _e(node.val, e_schema[key], options); + } else { + r = _e(node.child[key], e_schema[key], options); + } + str = processValue(str, r); + } + } + return str; + } else { + return hasValidData; + } + } + }; + var getValue = function(a) { + switch (a) { + case void 0: + return chars.missingPremitive; + case null: + return chars.nilPremitive; + case \\"\\": + return chars.emptyValue; + default: + return a; + } + }; + var processValue = function(str, r) { + if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { + str += chars.boundryChar; + } + return str + r; + }; + var isAppChar = function(ch) { + return charsArr.indexOf(ch) !== -1; + }; + function hasData(jObj) { + if (jObj === void 0) { + return chars.missingChar; + } else if (jObj === null) { + return chars.nilChar; + } else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) { + return chars.emptyChar; + } else { + return true; + } + } + var x2j = require_xmlstr2xmlnode(); + var buildOptions = require_util().buildOptions; + var convert2nimn = function(node, e_schema, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + return _e(node, e_schema, options); + }; + exports2.convert2nimn = convert2nimn; + } +}); + +// node_modules/fast-xml-parser/src/node2json_str.js +var require_node2json_str = __commonJS({ + \\"node_modules/fast-xml-parser/src/node2json_str.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var x2j = require_xmlstr2xmlnode(); + var convertToJsonString = function(node, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + options.indentBy = options.indentBy || \\"\\"; + return _cToJsonStr(node, options, 0); + }; + var _cToJsonStr = function(node, options, level) { + let jObj = \\"{\\"; + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + var tagname = keys[index]; + if (node.child[tagname] && node.child[tagname].length > 1) { + jObj += '\\"' + tagname + '\\" : [ '; + for (var tag in node.child[tagname]) { + jObj += _cToJsonStr(node.child[tagname][tag], options) + \\" , \\"; + } + jObj = jObj.substr(0, jObj.length - 1) + \\" ] \\"; + } else { + jObj += '\\"' + tagname + '\\" : ' + _cToJsonStr(node.child[tagname][0], options) + \\" ,\\"; + } + } + util.merge(jObj, node.attrsMap); + if (util.isEmptyObject(jObj)) { + return util.isExist(node.val) ? node.val : \\"\\"; + } else { + if (util.isExist(node.val)) { + if (!(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { + jObj += '\\"' + options.textNodeName + '\\" : ' + stringval(node.val); + } + } + } + if (jObj[jObj.length - 1] === \\",\\") { + jObj = jObj.substr(0, jObj.length - 2); + } + return jObj + \\"}\\"; + }; + function stringval(v) { + if (v === true || v === false || !isNaN(v)) { + return v; + } else { + return '\\"' + v + '\\"'; + } + } + exports2.convertToJsonString = convertToJsonString; + } +}); + +// node_modules/fast-xml-parser/src/json2xml.js +var require_json2xml = __commonJS({ + \\"node_modules/fast-xml-parser/src/json2xml.js\\"(exports2, module2) { + \\"use strict\\"; + var buildOptions = require_util().buildOptions; + var defaultOptions = { + attributeNamePrefix: \\"@_\\", + attrNodeName: false, + textNodeName: \\"#text\\", + ignoreAttributes: true, + cdataTagName: false, + cdataPositionChar: \\"\\\\\\\\c\\", + format: false, + indentBy: \\" \\", + supressEmptyNode: false, + tagValueProcessor: function(a) { + return a; + }, + attrValueProcessor: function(a) { + return a; + } + }; + var props = [ + \\"attributeNamePrefix\\", + \\"attrNodeName\\", + \\"textNodeName\\", + \\"ignoreAttributes\\", + \\"cdataTagName\\", + \\"cdataPositionChar\\", + \\"format\\", + \\"indentBy\\", + \\"supressEmptyNode\\", + \\"tagValueProcessor\\", + \\"attrValueProcessor\\" + ]; + function Parser(options) { + this.options = buildOptions(options, defaultOptions, props); + if (this.options.ignoreAttributes || this.options.attrNodeName) { + this.isAttribute = function() { + return false; + }; + } else { + this.attrPrefixLen = this.options.attributeNamePrefix.length; + this.isAttribute = isAttribute; + } + if (this.options.cdataTagName) { + this.isCDATA = isCDATA; + } else { + this.isCDATA = function() { + return false; + }; + } + this.replaceCDATAstr = replaceCDATAstr; + this.replaceCDATAarr = replaceCDATAarr; + if (this.options.format) { + this.indentate = indentate; + this.tagEndChar = \\">\\\\n\\"; + this.newLine = \\"\\\\n\\"; + } else { + this.indentate = function() { + return \\"\\"; + }; + this.tagEndChar = \\">\\"; + this.newLine = \\"\\"; + } + if (this.options.supressEmptyNode) { + this.buildTextNode = buildEmptyTextNode; + this.buildObjNode = buildEmptyObjNode; + } else { + this.buildTextNode = buildTextValNode; + this.buildObjNode = buildObjectNode; + } + this.buildTextValNode = buildTextValNode; + this.buildObjectNode = buildObjectNode; + } + Parser.prototype.parse = function(jObj) { + return this.j2x(jObj, 0).val; + }; + Parser.prototype.j2x = function(jObj, level) { + let attrStr = \\"\\"; + let val = \\"\\"; + const keys = Object.keys(jObj); + const len = keys.length; + for (let i = 0; i < len; i++) { + const key = keys[i]; + if (typeof jObj[key] === \\"undefined\\") { + } else if (jObj[key] === null) { + val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; + } else if (jObj[key] instanceof Date) { + val += this.buildTextNode(jObj[key], key, \\"\\", level); + } else if (typeof jObj[key] !== \\"object\\") { + const attr = this.isAttribute(key); + if (attr) { + attrStr += \\" \\" + attr + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key]) + '\\"'; + } else if (this.isCDATA(key)) { + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAstr(\\"\\", jObj[key]); + } + } else { + if (key === this.options.textNodeName) { + if (jObj[this.options.cdataTagName]) { + } else { + val += this.options.tagValueProcessor(\\"\\" + jObj[key]); + } + } else { + val += this.buildTextNode(jObj[key], key, \\"\\", level); + } + } + } else if (Array.isArray(jObj[key])) { + if (this.isCDATA(key)) { + val += this.indentate(level); + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAarr(\\"\\", jObj[key]); + } + } else { + const arrLen = jObj[key].length; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; + if (typeof item === \\"undefined\\") { + } else if (item === null) { + val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; + } else if (typeof item === \\"object\\") { + const result = this.j2x(item, level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } else { + val += this.buildTextNode(item, key, \\"\\", level); + } + } + } + } else { + if (this.options.attrNodeName && key === this.options.attrNodeName) { + const Ks = Object.keys(jObj[key]); + const L = Ks.length; + for (let j = 0; j < L; j++) { + attrStr += \\" \\" + Ks[j] + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key][Ks[j]]) + '\\"'; + } + } else { + const result = this.j2x(jObj[key], level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } + } + } + return { attrStr, val }; + }; + function replaceCDATAstr(str, cdata) { + str = this.options.tagValueProcessor(\\"\\" + str); + if (this.options.cdataPositionChar === \\"\\" || str === \\"\\") { + return str + \\"\\"); + } + return str + this.newLine; + } + } + function buildObjectNode(val, key, attrStr, level) { + if (attrStr && !val.includes(\\"<\\")) { + return this.indentate(level) + \\"<\\" + key + attrStr + \\">\\" + val + \\"\\" + this.options.tagValueProcessor(val) + \\" { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleRequest(input, context), + Action: \\"AssumeRole\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; + var serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), + Action: \\"AssumeRoleWithSAML\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; + var serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), + Action: \\"AssumeRoleWithWebIdentity\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; + var serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), + Action: \\"DecodeAuthorizationMessage\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; + var serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetAccessKeyInfoRequest(input, context), + Action: \\"GetAccessKeyInfo\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; + var serializeAws_queryGetCallerIdentityCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetCallerIdentityRequest(input, context), + Action: \\"GetCallerIdentity\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; + var serializeAws_queryGetFederationTokenCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetFederationTokenRequest(input, context), + Action: \\"GetFederationToken\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; + var serializeAws_queryGetSessionTokenCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetSessionTokenRequest(input, context), + Action: \\"GetSessionToken\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryAssumeRoleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; + var deserializeAws_queryAssumeRoleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExpiredTokenException\\": + case \\"com.amazonaws.sts#ExpiredTokenException\\": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; + var deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExpiredTokenException\\": + case \\"com.amazonaws.sts#ExpiredTokenException\\": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case \\"IDPRejectedClaimException\\": + case \\"com.amazonaws.sts#IDPRejectedClaimException\\": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case \\"InvalidIdentityTokenException\\": + case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; + var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExpiredTokenException\\": + case \\"com.amazonaws.sts#ExpiredTokenException\\": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case \\"IDPCommunicationErrorException\\": + case \\"com.amazonaws.sts#IDPCommunicationErrorException\\": + throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); + case \\"IDPRejectedClaimException\\": + case \\"com.amazonaws.sts#IDPRejectedClaimException\\": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case \\"InvalidIdentityTokenException\\": + case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; + var deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidAuthorizationMessageException\\": + case \\"com.amazonaws.sts#InvalidAuthorizationMessageException\\": + throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; + var deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetCallerIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; + var deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetFederationTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetFederationTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; + var deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetSessionTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetSessionTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); + const exception = new models_0_1.ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); + const exception = new models_0_1.IDPCommunicationErrorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); + const exception = new models_0_1.IDPRejectedClaimException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); + const exception = new models_0_1.InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); + const exception = new models_0_1.InvalidIdentityTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); + const exception = new models_0_1.MalformedPolicyDocumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); + const exception = new models_0_1.PackedPolicyTooLargeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); + const exception = new models_0_1.RegionDisabledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_queryAssumeRoleRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries[\\"RoleArn\\"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries[\\"RoleSessionName\\"] = input.RoleSessionName; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`Tags.\${key}\`; + entries[loc] = value; + }); + } + if (input.TransitiveTagKeys != null) { + const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`TransitiveTagKeys.\${key}\`; + entries[loc] = value; + }); + } + if (input.ExternalId != null) { + entries[\\"ExternalId\\"] = input.ExternalId; + } + if (input.SerialNumber != null) { + entries[\\"SerialNumber\\"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries[\\"TokenCode\\"] = input.TokenCode; + } + if (input.SourceIdentity != null) { + entries[\\"SourceIdentity\\"] = input.SourceIdentity; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries[\\"RoleArn\\"] = input.RoleArn; + } + if (input.PrincipalArn != null) { + entries[\\"PrincipalArn\\"] = input.PrincipalArn; + } + if (input.SAMLAssertion != null) { + entries[\\"SAMLAssertion\\"] = input.SAMLAssertion; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries[\\"RoleArn\\"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries[\\"RoleSessionName\\"] = input.RoleSessionName; + } + if (input.WebIdentityToken != null) { + entries[\\"WebIdentityToken\\"] = input.WebIdentityToken; + } + if (input.ProviderId != null) { + entries[\\"ProviderId\\"] = input.ProviderId; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { + const entries = {}; + if (input.EncodedMessage != null) { + entries[\\"EncodedMessage\\"] = input.EncodedMessage; + } + return entries; + }; + var serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { + const entries = {}; + if (input.AccessKeyId != null) { + entries[\\"AccessKeyId\\"] = input.AccessKeyId; + } + return entries; + }; + var serializeAws_queryGetCallerIdentityRequest = (input, context) => { + const entries = {}; + return entries; + }; + var serializeAws_queryGetFederationTokenRequest = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries[\\"Name\\"] = input.Name; + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`Tags.\${key}\`; + entries[loc] = value; + }); + } + return entries; + }; + var serializeAws_queryGetSessionTokenRequest = (input, context) => { + const entries = {}; + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + if (input.SerialNumber != null) { + entries[\\"SerialNumber\\"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries[\\"TokenCode\\"] = input.TokenCode; + } + return entries; + }; + var serializeAws_querypolicyDescriptorListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[\`member.\${counter}.\${key}\`] = value; + }); + counter++; + } + return entries; + }; + var serializeAws_queryPolicyDescriptorType = (input, context) => { + const entries = {}; + if (input.arn != null) { + entries[\\"arn\\"] = input.arn; + } + return entries; + }; + var serializeAws_queryTag = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries[\\"Key\\"] = input.Key; + } + if (input.Value != null) { + entries[\\"Value\\"] = input.Value; + } + return entries; + }; + var serializeAws_querytagKeyListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[\`member.\${counter}\`] = entry; + counter++; + } + return entries; + }; + var serializeAws_querytagListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryTag(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[\`member.\${counter}.\${key}\`] = value; + }); + counter++; + } + return entries; + }; + var deserializeAws_queryAssumedRoleUser = (output, context) => { + const contents = { + AssumedRoleId: void 0, + Arn: void 0 + }; + if (output[\\"AssumedRoleId\\"] !== void 0) { + contents.AssumedRoleId = (0, smithy_client_1.expectString)(output[\\"AssumedRoleId\\"]); + } + if (output[\\"Arn\\"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + SourceIdentity: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"AssumedRoleUser\\"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + if (output[\\"SourceIdentity\\"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Subject: void 0, + SubjectType: void 0, + Issuer: void 0, + Audience: void 0, + NameQualifier: void 0, + SourceIdentity: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"AssumedRoleUser\\"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + if (output[\\"Subject\\"] !== void 0) { + contents.Subject = (0, smithy_client_1.expectString)(output[\\"Subject\\"]); + } + if (output[\\"SubjectType\\"] !== void 0) { + contents.SubjectType = (0, smithy_client_1.expectString)(output[\\"SubjectType\\"]); + } + if (output[\\"Issuer\\"] !== void 0) { + contents.Issuer = (0, smithy_client_1.expectString)(output[\\"Issuer\\"]); + } + if (output[\\"Audience\\"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); + } + if (output[\\"NameQualifier\\"] !== void 0) { + contents.NameQualifier = (0, smithy_client_1.expectString)(output[\\"NameQualifier\\"]); + } + if (output[\\"SourceIdentity\\"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { + const contents = { + Credentials: void 0, + SubjectFromWebIdentityToken: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Provider: void 0, + Audience: void 0, + SourceIdentity: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"SubjectFromWebIdentityToken\\"] !== void 0) { + contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output[\\"SubjectFromWebIdentityToken\\"]); + } + if (output[\\"AssumedRoleUser\\"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + if (output[\\"Provider\\"] !== void 0) { + contents.Provider = (0, smithy_client_1.expectString)(output[\\"Provider\\"]); + } + if (output[\\"Audience\\"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); + } + if (output[\\"SourceIdentity\\"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); + } + return contents; + }; + var deserializeAws_queryCredentials = (output, context) => { + const contents = { + AccessKeyId: void 0, + SecretAccessKey: void 0, + SessionToken: void 0, + Expiration: void 0 + }; + if (output[\\"AccessKeyId\\"] !== void 0) { + contents.AccessKeyId = (0, smithy_client_1.expectString)(output[\\"AccessKeyId\\"]); + } + if (output[\\"SecretAccessKey\\"] !== void 0) { + contents.SecretAccessKey = (0, smithy_client_1.expectString)(output[\\"SecretAccessKey\\"]); + } + if (output[\\"SessionToken\\"] !== void 0) { + contents.SessionToken = (0, smithy_client_1.expectString)(output[\\"SessionToken\\"]); + } + if (output[\\"Expiration\\"] !== void 0) { + contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output[\\"Expiration\\"])); + } + return contents; + }; + var deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { + const contents = { + DecodedMessage: void 0 + }; + if (output[\\"DecodedMessage\\"] !== void 0) { + contents.DecodedMessage = (0, smithy_client_1.expectString)(output[\\"DecodedMessage\\"]); + } + return contents; + }; + var deserializeAws_queryExpiredTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryFederatedUser = (output, context) => { + const contents = { + FederatedUserId: void 0, + Arn: void 0 + }; + if (output[\\"FederatedUserId\\"] !== void 0) { + contents.FederatedUserId = (0, smithy_client_1.expectString)(output[\\"FederatedUserId\\"]); + } + if (output[\\"Arn\\"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); + } + return contents; + }; + var deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { + const contents = { + Account: void 0 + }; + if (output[\\"Account\\"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); + } + return contents; + }; + var deserializeAws_queryGetCallerIdentityResponse = (output, context) => { + const contents = { + UserId: void 0, + Account: void 0, + Arn: void 0 + }; + if (output[\\"UserId\\"] !== void 0) { + contents.UserId = (0, smithy_client_1.expectString)(output[\\"UserId\\"]); + } + if (output[\\"Account\\"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); + } + if (output[\\"Arn\\"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); + } + return contents; + }; + var deserializeAws_queryGetFederationTokenResponse = (output, context) => { + const contents = { + Credentials: void 0, + FederatedUser: void 0, + PackedPolicySize: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"FederatedUser\\"] !== void 0) { + contents.FederatedUser = deserializeAws_queryFederatedUser(output[\\"FederatedUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + return contents; + }; + var deserializeAws_queryGetSessionTokenResponse = (output, context) => { + const contents = { + Credentials: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + return contents; + }; + var deserializeAws_queryIDPCommunicationErrorException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryIDPRejectedClaimException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryInvalidIdentityTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryRegionDisabledException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: \\"POST\\", + path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { + attributeNamePrefix: \\"\\", + ignoreAttributes: false, + parseNodeValue: false, + trimValues: false, + tagValueProcessor: (val) => val.trim() === \\"\\" && val.includes(\\"\\\\n\\") ? \\"\\" : (0, entities_1.decodeHTML)(val) + }); + const textNodeName = \\"#text\\"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; + }); + var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + \\"=\\" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join(\\"&\\"); + var loadQueryErrorCode = (output, data) => { + if (data.Error.Code !== void 0) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return \\"NotFound\\"; + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +var require_AssumeRoleCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AssumeRoleCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"AssumeRoleCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); + } + }; + exports2.AssumeRoleCommand = AssumeRoleCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +var require_AssumeRoleWithSAMLCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AssumeRoleWithSAMLCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithSAMLCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"AssumeRoleWithSAMLCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); + } + }; + exports2.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +var require_AssumeRoleWithWebIdentityCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AssumeRoleWithWebIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"AssumeRoleWithWebIdentityCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); + } + }; + exports2.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +var require_DecodeAuthorizationMessageCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DecodeAuthorizationMessageCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var DecodeAuthorizationMessageCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"DecodeAuthorizationMessageCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); + } + }; + exports2.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +var require_GetAccessKeyInfoCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetAccessKeyInfoCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetAccessKeyInfoCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetAccessKeyInfoCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); + } + }; + exports2.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +var require_GetCallerIdentityCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetCallerIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetCallerIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetCallerIdentityCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); + } + }; + exports2.GetCallerIdentityCommand = GetCallerIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +var require_GetFederationTokenCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetFederationTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetFederationTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetFederationTokenCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); + } + }; + exports2.GetFederationTokenCommand = GetFederationTokenCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +var require_GetSessionTokenCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetSessionTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetSessionTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetSessionTokenCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); + } + }; + exports2.GetSessionTokenCommand = GetSessionTokenCommand; + } +}); + +// node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +var require_dist_cjs23 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveStsAuthConfig = void 0; + var middleware_signing_1 = require_dist_cjs21(); + var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ + ...input, + stsClientCtor + }); + exports2.resolveStsAuthConfig = resolveStsAuthConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/package.json +var require_package2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/package.json\\"(exports2, module2) { + module2.exports = { + name: \\"@aws-sdk/client-sts\\", + description: \\"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native\\", + version: \\"3.145.0\\", + scripts: { + build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", + \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", + \\"build:docs\\": \\"typedoc\\", + \\"build:es\\": \\"tsc -p tsconfig.es.json\\", + \\"build:types\\": \\"tsc -p tsconfig.types.json\\", + \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", + clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" + }, + main: \\"./dist-cjs/index.js\\", + types: \\"./dist-types/index.d.ts\\", + module: \\"./dist-es/index.js\\", + sideEffects: false, + dependencies: { + \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", + \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", + \\"@aws-sdk/config-resolver\\": \\"3.130.0\\", + \\"@aws-sdk/credential-provider-node\\": \\"3.145.0\\", + \\"@aws-sdk/fetch-http-handler\\": \\"3.131.0\\", + \\"@aws-sdk/hash-node\\": \\"3.127.0\\", + \\"@aws-sdk/invalid-dependency\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-content-length\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-host-header\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-logger\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-recursion-detection\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-retry\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-sdk-sts\\": \\"3.130.0\\", + \\"@aws-sdk/middleware-serde\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-signing\\": \\"3.130.0\\", + \\"@aws-sdk/middleware-stack\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-user-agent\\": \\"3.127.0\\", + \\"@aws-sdk/node-config-provider\\": \\"3.127.0\\", + \\"@aws-sdk/node-http-handler\\": \\"3.127.0\\", + \\"@aws-sdk/protocol-http\\": \\"3.127.0\\", + \\"@aws-sdk/smithy-client\\": \\"3.142.0\\", + \\"@aws-sdk/types\\": \\"3.127.0\\", + \\"@aws-sdk/url-parser\\": \\"3.127.0\\", + \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-browser\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.142.0\\", + \\"@aws-sdk/util-defaults-mode-node\\": \\"3.142.0\\", + \\"@aws-sdk/util-user-agent-browser\\": \\"3.127.0\\", + \\"@aws-sdk/util-user-agent-node\\": \\"3.127.0\\", + \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", + entities: \\"2.2.0\\", + \\"fast-xml-parser\\": \\"3.19.0\\", + tslib: \\"^2.3.1\\" + }, + devDependencies: { + \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", + \\"@tsconfig/recommended\\": \\"1.0.1\\", + \\"@types/node\\": \\"^12.7.5\\", + concurrently: \\"7.0.0\\", + \\"downlevel-dts\\": \\"0.7.0\\", + rimraf: \\"3.0.2\\", + typedoc: \\"0.19.2\\", + typescript: \\"~4.6.2\\" + }, + overrides: { + typedoc: { + typescript: \\"~4.6.2\\" + } + }, + engines: { + node: \\">=12.0.0\\" + }, + typesVersions: { + \\"<4.0\\": { + \\"dist-types/*\\": [ + \\"dist-types/ts3.4/*\\" + ] + } + }, + files: [ + \\"dist-*\\" + ], + author: { + name: \\"AWS SDK for JavaScript Team\\", + url: \\"https://aws.amazon.com/javascript/\\" + }, + license: \\"Apache-2.0\\", + browser: { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" + }, + \\"react-native\\": { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" + }, + homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts\\", + repository: { + type: \\"git\\", + url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", + directory: \\"clients/client-sts\\" + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +var require_defaultStsRoleAssumers = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var ASSUME_ROLE_DEFAULT_REGION = \\"us-east-1\\"; + var decorateDefaultRegion = (region) => { + if (typeof region !== \\"function\\") { + return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; + } + return async () => { + try { + return await region(); + } catch (e) { + return ASSUME_ROLE_DEFAULT_REGION; + } + }; + }; + var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(\`Invalid response from STS.assumeRole call with role \${params.RoleArn}\`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(\`Invalid response from STS.assumeRoleWithWebIdentity call with role \${params.RoleArn}\`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports2.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + ...input + }); + exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +var require_fromEnv = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromEnv = exports2.ENV_EXPIRATION = exports2.ENV_SESSION = exports2.ENV_SECRET = exports2.ENV_KEY = void 0; + var property_provider_1 = require_dist_cjs16(); + exports2.ENV_KEY = \\"AWS_ACCESS_KEY_ID\\"; + exports2.ENV_SECRET = \\"AWS_SECRET_ACCESS_KEY\\"; + exports2.ENV_SESSION = \\"AWS_SESSION_TOKEN\\"; + exports2.ENV_EXPIRATION = \\"AWS_CREDENTIAL_EXPIRATION\\"; + var fromEnv = () => async () => { + const accessKeyId = process.env[exports2.ENV_KEY]; + const secretAccessKey = process.env[exports2.ENV_SECRET]; + const sessionToken = process.env[exports2.ENV_SESSION]; + const expiry = process.env[exports2.ENV_EXPIRATION]; + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...sessionToken && { sessionToken }, + ...expiry && { expiration: new Date(expiry) } + }; + } + throw new property_provider_1.CredentialsProviderError(\\"Unable to find environment variable credentials.\\"); + }; + exports2.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +var require_dist_cjs24 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromEnv(), exports2); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js +var require_getHomeDir = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getHomeDir = void 0; + var os_1 = require(\\"os\\"); + var path_1 = require(\\"path\\"); + var getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = \`C:\${path_1.sep}\` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return \`\${HOMEDRIVE}\${HOMEPATH}\`; + return (0, os_1.homedir)(); + }; + exports2.getHomeDir = getHomeDir; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js +var require_getProfileName = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getProfileName = exports2.DEFAULT_PROFILE = exports2.ENV_PROFILE = void 0; + exports2.ENV_PROFILE = \\"AWS_PROFILE\\"; + exports2.DEFAULT_PROFILE = \\"default\\"; + var getProfileName = (init) => init.profile || process.env[exports2.ENV_PROFILE] || exports2.DEFAULT_PROFILE; + exports2.getProfileName = getProfileName; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +var require_getSSOTokenFilepath = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSSOTokenFilepath = void 0; + var crypto_1 = require(\\"crypto\\"); + var path_1 = require(\\"path\\"); + var getHomeDir_1 = require_getHomeDir(); + var getSSOTokenFilepath = (ssoStartUrl) => { + const hasher = (0, crypto_1.createHash)(\\"sha1\\"); + const cacheName = hasher.update(ssoStartUrl).digest(\\"hex\\"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"sso\\", \\"cache\\", \`\${cacheName}.json\`); + }; + exports2.getSSOTokenFilepath = getSSOTokenFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +var require_getSSOTokenFromFile = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSSOTokenFromFile = void 0; + var fs_1 = require(\\"fs\\"); + var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); + var { readFile } = fs_1.promises; + var getSSOTokenFromFile = async (ssoStartUrl) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); + const ssoTokenText = await readFile(ssoTokenFilepath, \\"utf8\\"); + return JSON.parse(ssoTokenText); + }; + exports2.getSSOTokenFromFile = getSSOTokenFromFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +var require_getConfigFilepath = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getConfigFilepath = exports2.ENV_CONFIG_PATH = void 0; + var path_1 = require(\\"path\\"); + var getHomeDir_1 = require_getHomeDir(); + exports2.ENV_CONFIG_PATH = \\"AWS_CONFIG_FILE\\"; + var getConfigFilepath = () => process.env[exports2.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"config\\"); + exports2.getConfigFilepath = getConfigFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +var require_getCredentialsFilepath = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCredentialsFilepath = exports2.ENV_CREDENTIALS_PATH = void 0; + var path_1 = require(\\"path\\"); + var getHomeDir_1 = require_getHomeDir(); + exports2.ENV_CREDENTIALS_PATH = \\"AWS_SHARED_CREDENTIALS_FILE\\"; + var getCredentialsFilepath = () => process.env[exports2.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"credentials\\"); + exports2.getCredentialsFilepath = getCredentialsFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js +var require_getProfileData = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getProfileData = void 0; + var profileKeyRegex = /^profile\\\\s([\\"'])?([^\\\\1]+)\\\\1$/; + var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { + ...data.default && { default: data.default } + }); + exports2.getProfileData = getProfileData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js +var require_parseIni = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseIni = void 0; + var profileNameBlockList = [\\"__proto__\\", \\"profile __proto__\\"]; + var parseIni = (iniData) => { + const map = {}; + let currentSection; + for (let line of iniData.split(/\\\\r?\\\\n/)) { + line = line.split(/(^|\\\\s)[;#]/)[0].trim(); + const isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (profileNameBlockList.includes(currentSection)) { + throw new Error(\`Found invalid profile name \\"\${currentSection}\\"\`); + } + } else if (currentSection) { + const indexOfEqualsSign = line.indexOf(\\"=\\"); + const start = 0; + const end = line.length - 1; + const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + const [name, value] = [ + line.substring(0, indexOfEqualsSign).trim(), + line.substring(indexOfEqualsSign + 1).trim() + ]; + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + } + return map; + }; + exports2.parseIni = parseIni; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js +var require_slurpFile = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.slurpFile = void 0; + var fs_1 = require(\\"fs\\"); + var { readFile } = fs_1.promises; + var filePromisesHash = {}; + var slurpFile = (path) => { + if (!filePromisesHash[path]) { + filePromisesHash[path] = readFile(path, \\"utf8\\"); + } + return filePromisesHash[path]; + }; + exports2.slurpFile = slurpFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +var require_loadSharedConfigFiles = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadSharedConfigFiles = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getCredentialsFilepath_1 = require_getCredentialsFilepath(); + var getProfileData_1 = require_getProfileData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSharedConfigFiles = async (init = {}) => { + const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + const parsedFiles = await Promise.all([ + (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), + (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError) + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1] + }; + }; + exports2.loadSharedConfigFiles = loadSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +var require_parseKnownFiles = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseKnownFiles = void 0; + var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); + var parseKnownFiles = async (init) => { + const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); + return { + ...parsedFiles.configFile, + ...parsedFiles.credentialsFile + }; + }; + exports2.parseKnownFiles = parseKnownFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js +var require_types2 = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js +var require_dist_cjs25 = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_getHomeDir(), exports2); + tslib_1.__exportStar(require_getProfileName(), exports2); + tslib_1.__exportStar(require_getSSOTokenFilepath(), exports2); + tslib_1.__exportStar(require_getSSOTokenFromFile(), exports2); + tslib_1.__exportStar(require_loadSharedConfigFiles(), exports2); + tslib_1.__exportStar(require_parseKnownFiles(), exports2); + tslib_1.__exportStar(require_types2(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +var require_httpRequest2 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.httpRequest = void 0; + var property_provider_1 = require_dist_cjs16(); + var buffer_1 = require(\\"buffer\\"); + var http_1 = require(\\"http\\"); + function httpRequest(options) { + return new Promise((resolve, reject) => { + var _a; + const req = (0, http_1.request)({ + method: \\"GET\\", + ...options, + hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\\\\[(.+)\\\\]$/, \\"$1\\") + }); + req.on(\\"error\\", (err) => { + reject(Object.assign(new property_provider_1.ProviderError(\\"Unable to connect to instance metadata service\\"), err)); + req.destroy(); + }); + req.on(\\"timeout\\", () => { + reject(new property_provider_1.ProviderError(\\"TimeoutError from instance metadata service\\")); + req.destroy(); + }); + req.on(\\"response\\", (res) => { + const { statusCode = 400 } = res; + if (statusCode < 200 || 300 <= statusCode) { + reject(Object.assign(new property_provider_1.ProviderError(\\"Error response received from instance metadata service\\"), { statusCode })); + req.destroy(); + } + const chunks = []; + res.on(\\"data\\", (chunk) => { + chunks.push(chunk); + }); + res.on(\\"end\\", () => { + resolve(buffer_1.Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); + } + exports2.httpRequest = httpRequest; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +var require_ImdsCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromImdsCredentials = exports2.isImdsCredentials = void 0; + var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.AccessKeyId === \\"string\\" && typeof arg.SecretAccessKey === \\"string\\" && typeof arg.Token === \\"string\\" && typeof arg.Expiration === \\"string\\"; + exports2.isImdsCredentials = isImdsCredentials; + var fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration) + }); + exports2.fromImdsCredentials = fromImdsCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +var require_RemoteProviderInit = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.providerConfigFromInit = exports2.DEFAULT_MAX_RETRIES = exports2.DEFAULT_TIMEOUT = void 0; + exports2.DEFAULT_TIMEOUT = 1e3; + exports2.DEFAULT_MAX_RETRIES = 0; + var providerConfigFromInit = ({ maxRetries = exports2.DEFAULT_MAX_RETRIES, timeout = exports2.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); + exports2.providerConfigFromInit = providerConfigFromInit; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js +var require_retry = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.retry = void 0; + var retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); + } + return promise; + }; + exports2.retry = retry; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js +var require_fromContainerMetadata = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromContainerMetadata = exports2.ENV_CMDS_AUTH_TOKEN = exports2.ENV_CMDS_RELATIVE_URI = exports2.ENV_CMDS_FULL_URI = void 0; + var property_provider_1 = require_dist_cjs16(); + var url_1 = require(\\"url\\"); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + exports2.ENV_CMDS_FULL_URI = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; + exports2.ENV_CMDS_RELATIVE_URI = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; + exports2.ENV_CMDS_AUTH_TOKEN = \\"AWS_CONTAINER_AUTHORIZATION_TOKEN\\"; + var fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + return () => (0, retry_1.retry)(async () => { + const requestOptions = await getCmdsUri(); + const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }, maxRetries); + }; + exports2.fromContainerMetadata = fromContainerMetadata; + var requestFromEcsImds = async (timeout, options) => { + if (process.env[exports2.ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[exports2.ENV_CMDS_AUTH_TOKEN] + }; + } + const buffer = await (0, httpRequest_1.httpRequest)({ + ...options, + timeout + }); + return buffer.toString(); + }; + var CMDS_IP = \\"169.254.170.2\\"; + var GREENGRASS_HOSTS = { + localhost: true, + \\"127.0.0.1\\": true + }; + var GREENGRASS_PROTOCOLS = { + \\"http:\\": true, + \\"https:\\": true + }; + var getCmdsUri = async () => { + if (process.env[exports2.ENV_CMDS_RELATIVE_URI]) { + return { + hostname: CMDS_IP, + path: process.env[exports2.ENV_CMDS_RELATIVE_URI] + }; + } + if (process.env[exports2.ENV_CMDS_FULL_URI]) { + const parsed = (0, url_1.parse)(process.env[exports2.ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new property_provider_1.CredentialsProviderError(\`\${parsed.hostname} is not a valid container metadata service hostname\`, false); + } + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new property_provider_1.CredentialsProviderError(\`\${parsed.protocol} is not a valid container metadata service protocol\`, false); + } + return { + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : void 0 + }; + } + throw new property_provider_1.CredentialsProviderError(\`The container metadata credential provider cannot be used unless the \${exports2.ENV_CMDS_RELATIVE_URI} or \${exports2.ENV_CMDS_FULL_URI} environment variable is set\`, false); + }; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js +var require_fromEnv2 = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromEnv = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromEnv = (envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === void 0) { + throw new Error(); + } + return config; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config from environment variables with getter: \${envVarSelector}\`); + } + }; + exports2.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js +var require_fromSharedConfigFiles = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromSharedConfigFiles = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var fromSharedConfigFiles = (configSelector, { preferredFile = \\"config\\", ...init } = {}) => async () => { + const profile = (0, shared_ini_file_loader_1.getProfileName)(init); + const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); + const profileFromCredentials = credentialsFile[profile] || {}; + const profileFromConfig = configFile[profile] || {}; + const mergedProfile = preferredFile === \\"config\\" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; + try { + const configValue = configSelector(mergedProfile); + if (configValue === void 0) { + throw new Error(); + } + return configValue; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config for profile \${profile} in SDK configuration files with getter: \${configSelector}\`); + } + }; + exports2.fromSharedConfigFiles = fromSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js +var require_fromStatic2 = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromStatic = void 0; + var property_provider_1 = require_dist_cjs16(); + var isFunction = (func) => typeof func === \\"function\\"; + var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); + exports2.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js +var require_configLoader = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadConfig = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromEnv_1 = require_fromEnv2(); + var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); + var fromStatic_1 = require_fromStatic2(); + var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); + exports2.loadConfig = loadConfig; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js +var require_dist_cjs26 = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configLoader(), exports2); + } +}); + +// node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js +var require_dist_cjs27 = __commonJS({ + \\"node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseQueryString = void 0; + function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\\\\?/, \\"\\"); + if (querystring) { + for (const pair of querystring.split(\\"&\\")) { + let [key, value = null] = pair.split(\\"=\\"); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } else if (Array.isArray(query[key])) { + query[key].push(value); + } else { + query[key] = [query[key], value]; + } + } + } + return query; + } + exports2.parseQueryString = parseQueryString; + } +}); + +// node_modules/@aws-sdk/url-parser/dist-cjs/index.js +var require_dist_cjs28 = __commonJS({ + \\"node_modules/@aws-sdk/url-parser/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseUrl = void 0; + var querystring_parser_1 = require_dist_cjs27(); + var parseUrl = (url) => { + const { hostname, pathname, port, protocol, search } = new URL(url); + let query; + if (search) { + query = (0, querystring_parser_1.parseQueryString)(search); + } + return { + hostname, + port: port ? parseInt(port) : void 0, + protocol, + path: pathname, + query + }; + }; + exports2.parseUrl = parseUrl; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js +var require_Endpoint2 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Endpoint = void 0; + var Endpoint; + (function(Endpoint2) { + Endpoint2[\\"IPv4\\"] = \\"http://169.254.169.254\\"; + Endpoint2[\\"IPv6\\"] = \\"http://[fd00:ec2::254]\\"; + })(Endpoint = exports2.Endpoint || (exports2.Endpoint = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +var require_EndpointConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ENDPOINT_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_NAME = exports2.ENV_ENDPOINT_NAME = void 0; + exports2.ENV_ENDPOINT_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT\\"; + exports2.CONFIG_ENDPOINT_NAME = \\"ec2_metadata_service_endpoint\\"; + exports2.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_NAME], + default: void 0 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js +var require_EndpointMode = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.EndpointMode = void 0; + var EndpointMode; + (function(EndpointMode2) { + EndpointMode2[\\"IPv4\\"] = \\"IPv4\\"; + EndpointMode2[\\"IPv6\\"] = \\"IPv6\\"; + })(EndpointMode = exports2.EndpointMode || (exports2.EndpointMode = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +var require_EndpointModeConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ENDPOINT_MODE_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_MODE_NAME = exports2.ENV_ENDPOINT_MODE_NAME = void 0; + var EndpointMode_1 = require_EndpointMode(); + exports2.ENV_ENDPOINT_MODE_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE\\"; + exports2.CONFIG_ENDPOINT_MODE_NAME = \\"ec2_metadata_service_endpoint_mode\\"; + exports2.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +var require_getInstanceMetadataEndpoint = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getInstanceMetadataEndpoint = void 0; + var node_config_provider_1 = require_dist_cjs26(); + var url_parser_1 = require_dist_cjs28(); + var Endpoint_1 = require_Endpoint2(); + var EndpointConfigOptions_1 = require_EndpointConfigOptions(); + var EndpointMode_1 = require_EndpointMode(); + var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); + var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); + exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; + var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); + var getFromEndpointModeConfig = async () => { + const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode_1.EndpointMode.IPv4: + return Endpoint_1.Endpoint.IPv4; + case EndpointMode_1.EndpointMode.IPv6: + return Endpoint_1.Endpoint.IPv6; + default: + throw new Error(\`Unsupported endpoint mode: \${endpointMode}. Select from \${Object.values(EndpointMode_1.EndpointMode)}\`); + } + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +var require_getExtendedInstanceMetadataCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getExtendedInstanceMetadataCredentials = void 0; + var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; + var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; + var STATIC_STABILITY_DOC_URL = \\"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\\"; + var getExtendedInstanceMetadataCredentials = (credentials, logger) => { + var _a; + const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); + const newExpiration = new Date(Date.now() + refreshInterval * 1e3); + logger.warn(\\"Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after \${new Date(newExpiration)}.\\\\nFor more information, please visit: \\" + STATIC_STABILITY_DOC_URL); + const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; + return { + ...credentials, + ...originalExpiration ? { originalExpiration } : {}, + expiration: newExpiration + }; + }; + exports2.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +var require_staticStabilityProvider = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.staticStabilityProvider = void 0; + var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); + var staticStabilityProvider = (provider, options = {}) => { + const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; + let pastCredentials; + return async () => { + let credentials; + try { + credentials = await provider(); + if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); + } + } catch (e) { + if (pastCredentials) { + logger.warn(\\"Credential renew failed: \\", e); + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); + } else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; + }; + exports2.staticStabilityProvider = staticStabilityProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +var require_fromInstanceMetadata = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromInstanceMetadata = void 0; + var property_provider_1 = require_dist_cjs16(); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + var staticStabilityProvider_1 = require_staticStabilityProvider(); + var IMDS_PATH = \\"/latest/meta-data/iam/security-credentials/\\"; + var IMDS_TOKEN_PATH = \\"/latest/api/token\\"; + var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); + exports2.fromInstanceMetadata = fromInstanceMetadata; + var getInstanceImdsProvider = (init) => { + let disableFetchToken = false; + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + const getCredentials = async (maxRetries2, options) => { + const profile = (await (0, retry_1.retry)(async () => { + let profile2; + try { + profile2 = await getProfile(options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return profile2; + }, maxRetries2)).trim(); + return (0, retry_1.retry)(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(profile, options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries2); + }; + return async () => { + const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + if (disableFetchToken) { + return getCredentials(maxRetries, { ...endpoint, timeout }); + } else { + let token; + try { + token = (await getMetadataToken({ ...endpoint, timeout })).toString(); + } catch (error) { + if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { + throw Object.assign(error, { + message: \\"EC2 Metadata token request returned error\\" + }); + } else if (error.message === \\"TimeoutError\\" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + \\"x-aws-ec2-metadata-token\\": token + }, + timeout + }); + } + }; + }; + var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_TOKEN_PATH, + method: \\"PUT\\", + headers: { + \\"x-aws-ec2-metadata-token-ttl-seconds\\": \\"21600\\" + } + }); + var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); + var getCredentialsFromProfile = async (profile, options) => { + const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_PATH + profile + })).toString()); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js +var require_types3 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js +var require_dist_cjs29 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getInstanceMetadataEndpoint = exports2.httpRequest = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromContainerMetadata(), exports2); + tslib_1.__exportStar(require_fromInstanceMetadata(), exports2); + tslib_1.__exportStar(require_RemoteProviderInit(), exports2); + tslib_1.__exportStar(require_types3(), exports2); + var httpRequest_1 = require_httpRequest2(); + Object.defineProperty(exports2, \\"httpRequest\\", { enumerable: true, get: function() { + return httpRequest_1.httpRequest; + } }); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + Object.defineProperty(exports2, \\"getInstanceMetadataEndpoint\\", { enumerable: true, get: function() { + return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +var require_resolveCredentialSource = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveCredentialSource = void 0; + var credential_provider_env_1 = require_dist_cjs24(); + var credential_provider_imds_1 = require_dist_cjs29(); + var property_provider_1 = require_dist_cjs16(); + var resolveCredentialSource = (credentialSource, profileName) => { + const sourceProvidersMap = { + EcsContainer: credential_provider_imds_1.fromContainerMetadata, + Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, + Environment: credential_provider_env_1.fromEnv + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource](); + } else { + throw new property_provider_1.CredentialsProviderError(\`Unsupported credential source in profile \${profileName}. Got \${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.\`); + } + }; + exports2.resolveCredentialSource = resolveCredentialSource; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +var require_resolveAssumeRoleCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveAssumeRoleCredentials = exports2.isAssumeRoleProfile = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var resolveCredentialSource_1 = require_resolveCredentialSource(); + var resolveProfileData_1 = require_resolveProfileData(); + var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.external_id) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); + exports2.isAssumeRoleProfile = isAssumeRoleProfile; + var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === \\"string\\" && typeof arg.credential_source === \\"undefined\\"; + var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === \\"string\\" && typeof arg.source_profile === \\"undefined\\"; + var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (!options.roleAssumer) { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires a role to be assumed, but no role assumption callback was provided.\`, false); + } + const { source_profile } = data; + if (source_profile && source_profile in visitedProfiles) { + throw new property_provider_1.CredentialsProviderError(\`Detected a cycle attempting to resolve credentials for profile \${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: \` + Object.keys(visitedProfiles).join(\\", \\"), false); + } + const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { + ...visitedProfiles, + [source_profile]: true + }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); + const params = { + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || \`aws-sdk-js-\${Date.now()}\`, + ExternalId: data.external_id + }; + const { mfa_serial } = data; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires multi-factor authentication, but no MFA code callback was provided.\`, false); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params); + }; + exports2.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +var require_isSsoProfile = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isSsoProfile = void 0; + var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === \\"string\\" || typeof arg.sso_account_id === \\"string\\" || typeof arg.sso_region === \\"string\\" || typeof arg.sso_role_name === \\"string\\"); + exports2.isSsoProfile = isSsoProfile; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +var require_SSOServiceException = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSOServiceException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var SSOServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOServiceException.prototype); + } + }; + exports2.SSOServiceException = SSOServiceException; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +var require_models_03 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.LogoutRequestFilterSensitiveLog = exports2.ListAccountsResponseFilterSensitiveLog = exports2.ListAccountsRequestFilterSensitiveLog = exports2.ListAccountRolesResponseFilterSensitiveLog = exports2.RoleInfoFilterSensitiveLog = exports2.ListAccountRolesRequestFilterSensitiveLog = exports2.GetRoleCredentialsResponseFilterSensitiveLog = exports2.RoleCredentialsFilterSensitiveLog = exports2.GetRoleCredentialsRequestFilterSensitiveLog = exports2.AccountInfoFilterSensitiveLog = exports2.UnauthorizedException = exports2.TooManyRequestsException = exports2.ResourceNotFoundException = exports2.InvalidRequestException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var SSOServiceException_1 = require_SSOServiceException(); + var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"InvalidRequestException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidRequestException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidRequestException.prototype); + } + }; + exports2.InvalidRequestException = InvalidRequestException; + var ResourceNotFoundException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"ResourceNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ResourceNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } + }; + exports2.ResourceNotFoundException = ResourceNotFoundException; + var TooManyRequestsException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"TooManyRequestsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TooManyRequestsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } + }; + exports2.TooManyRequestsException = TooManyRequestsException; + var UnauthorizedException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"UnauthorizedException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"UnauthorizedException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, UnauthorizedException.prototype); + } + }; + exports2.UnauthorizedException = UnauthorizedException; + var AccountInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; + var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; + var RoleCredentialsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, + ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; + var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.roleCredentials && { roleCredentials: (0, exports2.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } + }); + exports2.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; + var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; + var RoleInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; + var ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; + var ListAccountsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; + var ListAccountsResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; + var LogoutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +var require_Aws_restJson1 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.deserializeAws_restJson1LogoutCommand = exports2.deserializeAws_restJson1ListAccountsCommand = exports2.deserializeAws_restJson1ListAccountRolesCommand = exports2.deserializeAws_restJson1GetRoleCredentialsCommand = exports2.serializeAws_restJson1LogoutCommand = exports2.serializeAws_restJson1ListAccountsCommand = exports2.serializeAws_restJson1ListAccountRolesCommand = exports2.serializeAws_restJson1GetRoleCredentialsCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var SSOServiceException_1 = require_SSOServiceException(); + var serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/federation/credentials\`; + const query = map({ + role_name: [, input.roleName], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"GET\\", + headers, + path: resolvedPath, + query, + body + }); + }; + exports2.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; + var serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/roles\`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"GET\\", + headers, + path: resolvedPath, + query, + body + }); + }; + exports2.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; + var serializeAws_restJson1ListAccountsCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/accounts\`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"GET\\", + headers, + path: resolvedPath, + query, + body + }); + }; + exports2.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; + var serializeAws_restJson1LogoutCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/logout\`; + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"POST\\", + headers, + path: resolvedPath, + body + }); + }; + exports2.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); + if (data.roleCredentials != null) { + contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); + } + return contents; + }; + exports2.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; + var deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.sso#ResourceNotFoundException\\": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountRolesCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + if (data.roleList != null) { + contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); + } + return contents; + }; + exports2.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; + var deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.sso#ResourceNotFoundException\\": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); + if (data.accountList != null) { + contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); + } + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + return contents; + }; + exports2.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; + var deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.sso#ResourceNotFoundException\\": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1LogoutCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1LogoutCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + await collectBody(output.body, context); + return contents; + }; + exports2.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1LogoutCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var map = smithy_client_1.map; + var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.TooManyRequestsException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.UnauthorizedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1AccountInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + accountName: (0, smithy_client_1.expectString)(output.accountName), + emailAddress: (0, smithy_client_1.expectString)(output.emailAddress) + }; + }; + var deserializeAws_restJson1AccountListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1AccountInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_restJson1RoleCredentials = (output, context) => { + return { + accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), + expiration: (0, smithy_client_1.expectLong)(output.expiration), + secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), + sessionToken: (0, smithy_client_1.expectString)(output.sessionToken) + }; + }; + var deserializeAws_restJson1RoleInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + roleName: (0, smithy_client_1.expectString)(output.roleName) + }; + }; + var deserializeAws_restJson1RoleListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1RoleInfo(entry, context); + }); + return retVal; + }; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== \\"\\" && (!Object.getOwnPropertyNames(value).includes(\\"length\\") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes(\\"size\\") || value.size != 0); + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === \\"number\\") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(\\":\\") >= 0) { + cleanValue = cleanValue.split(\\":\\")[0]; + } + if (cleanValue.indexOf(\\"#\\") >= 0) { + cleanValue = cleanValue.split(\\"#\\")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data[\\"__type\\"] !== void 0) { + return sanitizeErrorCode(data[\\"__type\\"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +var require_GetRoleCredentialsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetRoleCredentialsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var GetRoleCredentialsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"GetRoleCredentialsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); + } + }; + exports2.GetRoleCredentialsCommand = GetRoleCredentialsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +var require_ListAccountRolesCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListAccountRolesCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountRolesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"ListAccountRolesCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); + } + }; + exports2.ListAccountRolesCommand = ListAccountRolesCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +var require_ListAccountsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListAccountsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"ListAccountsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); + } + }; + exports2.ListAccountsCommand = ListAccountsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +var require_LogoutCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.LogoutCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var LogoutCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"LogoutCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); + } + }; + exports2.LogoutCommand = LogoutCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/package.json +var require_package3 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/package.json\\"(exports2, module2) { + module2.exports = { + name: \\"@aws-sdk/client-sso\\", + description: \\"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native\\", + version: \\"3.145.0\\", + scripts: { + build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", + \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", + \\"build:docs\\": \\"typedoc\\", + \\"build:es\\": \\"tsc -p tsconfig.es.json\\", + \\"build:types\\": \\"tsc -p tsconfig.types.json\\", + \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", + clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" + }, + main: \\"./dist-cjs/index.js\\", + types: \\"./dist-types/index.d.ts\\", + module: \\"./dist-es/index.js\\", + sideEffects: false, + dependencies: { + \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", + \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", + \\"@aws-sdk/config-resolver\\": \\"3.130.0\\", + \\"@aws-sdk/fetch-http-handler\\": \\"3.131.0\\", + \\"@aws-sdk/hash-node\\": \\"3.127.0\\", + \\"@aws-sdk/invalid-dependency\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-content-length\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-host-header\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-logger\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-recursion-detection\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-retry\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-serde\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-stack\\": \\"3.127.0\\", + \\"@aws-sdk/middleware-user-agent\\": \\"3.127.0\\", + \\"@aws-sdk/node-config-provider\\": \\"3.127.0\\", + \\"@aws-sdk/node-http-handler\\": \\"3.127.0\\", + \\"@aws-sdk/protocol-http\\": \\"3.127.0\\", + \\"@aws-sdk/smithy-client\\": \\"3.142.0\\", + \\"@aws-sdk/types\\": \\"3.127.0\\", + \\"@aws-sdk/url-parser\\": \\"3.127.0\\", + \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-browser\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.142.0\\", + \\"@aws-sdk/util-defaults-mode-node\\": \\"3.142.0\\", + \\"@aws-sdk/util-user-agent-browser\\": \\"3.127.0\\", + \\"@aws-sdk/util-user-agent-node\\": \\"3.127.0\\", + \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", + tslib: \\"^2.3.1\\" + }, + devDependencies: { + \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", + \\"@tsconfig/recommended\\": \\"1.0.1\\", + \\"@types/node\\": \\"^12.7.5\\", + concurrently: \\"7.0.0\\", + \\"downlevel-dts\\": \\"0.7.0\\", + rimraf: \\"3.0.2\\", + typedoc: \\"0.19.2\\", + typescript: \\"~4.6.2\\" + }, + overrides: { + typedoc: { + typescript: \\"~4.6.2\\" + } + }, + engines: { + node: \\">=12.0.0\\" + }, + typesVersions: { + \\"<4.0\\": { + \\"dist-types/*\\": [ + \\"dist-types/ts3.4/*\\" + ] + } + }, + files: [ + \\"dist-*\\" + ], + author: { + name: \\"AWS SDK for JavaScript Team\\", + url: \\"https://aws.amazon.com/javascript/\\" + }, + license: \\"Apache-2.0\\", + browser: { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" + }, + \\"react-native\\": { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" + }, + homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso\\", + repository: { + type: \\"git\\", + url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", + directory: \\"clients/client-sso\\" + } + }; + } +}); + +// node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js +var require_dist_cjs30 = __commonJS({ + \\"node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromString = exports2.fromArrayBuffer = void 0; + var is_array_buffer_1 = require_dist_cjs19(); + var buffer_1 = require(\\"buffer\\"); + var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + throw new TypeError(\`The \\"input\\" argument must be ArrayBuffer. Received type \${typeof input} (\${input})\`); + } + return buffer_1.Buffer.from(input, offset, length); + }; + exports2.fromArrayBuffer = fromArrayBuffer; + var fromString = (input, encoding) => { + if (typeof input !== \\"string\\") { + throw new TypeError(\`The \\"input\\" argument must be of type string. Received type \${typeof input} (\${input})\`); + } + return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); + }; + exports2.fromString = fromString; + } +}); + +// node_modules/@aws-sdk/hash-node/dist-cjs/index.js +var require_dist_cjs31 = __commonJS({ + \\"node_modules/@aws-sdk/hash-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Hash = void 0; + var util_buffer_from_1 = require_dist_cjs30(); + var buffer_1 = require(\\"buffer\\"); + var crypto_1 = require(\\"crypto\\"); + var Hash = class { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); + } + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); + } + digest() { + return Promise.resolve(this.hash.digest()); + } + }; + exports2.Hash = Hash; + function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === \\"string\\") { + return (0, util_buffer_from_1.fromString)(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return (0, util_buffer_from_1.fromArrayBuffer)(toCast); + } + } +}); + +// node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js +var require_dist_cjs32 = __commonJS({ + \\"node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.buildQueryString = void 0; + var util_uri_escape_1 = require_dist_cjs18(); + function buildQueryString(query) { + const parts = []; + for (let key of Object.keys(query).sort()) { + const value = query[key]; + key = (0, util_uri_escape_1.escapeUri)(key); + if (Array.isArray(value)) { + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(\`\${key}=\${(0, util_uri_escape_1.escapeUri)(value[i])}\`); + } + } else { + let qsEntry = key; + if (value || typeof value === \\"string\\") { + qsEntry += \`=\${(0, util_uri_escape_1.escapeUri)(value)}\`; + } + parts.push(qsEntry); + } + } + return parts.join(\\"&\\"); + } + exports2.buildQueryString = buildQueryString; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js +var require_constants6 = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODEJS_TIMEOUT_ERROR_CODES = void 0; + exports2.NODEJS_TIMEOUT_ERROR_CODES = [\\"ECONNRESET\\", \\"EPIPE\\", \\"ETIMEDOUT\\"]; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js +var require_get_transformed_headers = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getTransformedHeaders = void 0; + var getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name of Object.keys(headers)) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(\\",\\") : headerValues; + } + return transformedHeaders; + }; + exports2.getTransformedHeaders = getTransformedHeaders; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js +var require_set_connection_timeout = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.setConnectionTimeout = void 0; + var setConnectionTimeout = (request, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return; + } + request.on(\\"socket\\", (socket) => { + if (socket.connecting) { + const timeoutId = setTimeout(() => { + request.destroy(); + reject(Object.assign(new Error(\`Socket timed out without establishing a connection within \${timeoutInMs} ms\`), { + name: \\"TimeoutError\\" + })); + }, timeoutInMs); + socket.on(\\"connect\\", () => { + clearTimeout(timeoutId); + }); + } + }); + }; + exports2.setConnectionTimeout = setConnectionTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js +var require_set_socket_timeout = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.setSocketTimeout = void 0; + var setSocketTimeout = (request, reject, timeoutInMs = 0) => { + request.setTimeout(timeoutInMs, () => { + request.destroy(); + reject(Object.assign(new Error(\`Connection timed out after \${timeoutInMs} ms\`), { name: \\"TimeoutError\\" })); + }); + }; + exports2.setSocketTimeout = setSocketTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +var require_write_request_body = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.writeRequestBody = void 0; + var stream_1 = require(\\"stream\\"); + function writeRequestBody(httpRequest, request) { + const expect = request.headers[\\"Expect\\"] || request.headers[\\"expect\\"]; + if (expect === \\"100-continue\\") { + httpRequest.on(\\"continue\\", () => { + writeBody(httpRequest, request.body); + }); + } else { + writeBody(httpRequest, request.body); + } + } + exports2.writeRequestBody = writeRequestBody; + function writeBody(httpRequest, body) { + if (body instanceof stream_1.Readable) { + body.pipe(httpRequest); + } else if (body) { + httpRequest.end(Buffer.from(body)); + } else { + httpRequest.end(); + } + } + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +var require_node_http_handler = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NodeHttpHandler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs32(); + var http_1 = require(\\"http\\"); + var https_1 = require(\\"https\\"); + var constants_1 = require_constants6(); + var get_transformed_headers_1 = require_get_transformed_headers(); + var set_connection_timeout_1 = require_set_connection_timeout(); + var set_socket_timeout_1 = require_set_socket_timeout(); + var write_request_body_1 = require_write_request_body(); + var NodeHttpHandler = class { + constructor(options) { + this.metadata = { handlerProtocol: \\"http/1.1\\" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === \\"function\\") { + options().then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }).catch(reject); + } else { + resolve(this.resolveDefaultConfig(options)); + } + }); + } + resolveDefaultConfig(options) { + const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + socketTimeout, + httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) + }; + } + destroy() { + var _a, _b, _c, _d; + (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); + (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + return new Promise((resolve, reject) => { + if (!this.config) { + throw new Error(\\"Node HTTP request handler config is not resolved\\"); + } + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + reject(abortError); + return; + } + const isSSL = request.protocol === \\"https:\\"; + const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); + const nodeHttpsOptions = { + headers: request.headers, + host: request.hostname, + method: request.method, + path: queryString ? \`\${request.path}?\${queryString}\` : request.path, + port: request.port, + agent: isSSL ? this.config.httpsAgent : this.config.httpAgent + }; + const requestFunc = isSSL ? https_1.request : http_1.request; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: res.statusCode || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + body: res + }); + resolve({ response: httpResponse }); + }); + req.on(\\"error\\", (err) => { + if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { + reject(Object.assign(err, { name: \\"TimeoutError\\" })); + } else { + reject(err); + } + }); + (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); + (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout); + if (abortSignal) { + abortSignal.onabort = () => { + req.abort(); + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + reject(abortError); + }; + } + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + }; + exports2.NodeHttpHandler = NodeHttpHandler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +var require_node_http2_handler = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NodeHttp2Handler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs32(); + var http2_1 = require(\\"http2\\"); + var get_transformed_headers_1 = require_get_transformed_headers(); + var write_request_body_1 = require_write_request_body(); + var NodeHttp2Handler = class { + constructor(options) { + this.metadata = { handlerProtocol: \\"h2\\" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === \\"function\\") { + options().then((opts) => { + resolve(opts || {}); + }).catch(reject); + } else { + resolve(options || {}); + } + }); + this.sessionCache = /* @__PURE__ */ new Map(); + } + destroy() { + for (const sessions of this.sessionCache.values()) { + sessions.forEach((session) => this.destroySession(session)); + } + this.sessionCache.clear(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + const { requestTimeout, disableConcurrentStreams } = this.config; + return new Promise((resolve, rejectOriginal) => { + let fulfilled = false; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + fulfilled = true; + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + rejectOriginal(abortError); + return; + } + const { hostname, method, port, protocol, path, query } = request; + const authority = \`\${protocol}//\${hostname}\${port ? \`:\${port}\` : \\"\\"}\`; + const session = this.getSession(authority, disableConcurrentStreams || false); + const reject = (err) => { + if (disableConcurrentStreams) { + this.destroySession(session); + } + fulfilled = true; + rejectOriginal(err); + }; + const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + const req = session.request({ + ...request.headers, + [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? \`\${path}?\${queryString}\` : path, + [http2_1.constants.HTTP2_HEADER_METHOD]: method + }); + session.ref(); + req.on(\\"response\\", (headers) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: headers[\\":status\\"] || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + body: req + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (disableConcurrentStreams) { + session.close(); + this.deleteSessionFromCache(authority, session); + } + }); + if (requestTimeout) { + req.setTimeout(requestTimeout, () => { + req.close(); + const timeoutError = new Error(\`Stream timed out because of no activity for \${requestTimeout} ms\`); + timeoutError.name = \\"TimeoutError\\"; + reject(timeoutError); + }); + } + if (abortSignal) { + abortSignal.onabort = () => { + req.close(); + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + reject(abortError); + }; + } + req.on(\\"frameError\\", (type, code, id) => { + reject(new Error(\`Frame type id \${type} in stream id \${id} has failed with code \${code}.\`)); + }); + req.on(\\"error\\", reject); + req.on(\\"aborted\\", () => { + reject(new Error(\`HTTP/2 stream is abnormally aborted in mid-communication with result code \${req.rstCode}.\`)); + }); + req.on(\\"close\\", () => { + session.unref(); + if (disableConcurrentStreams) { + session.destroy(); + } + if (!fulfilled) { + reject(new Error(\\"Unexpected error: http2 request did not get a response\\")); + } + }); + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + getSession(authority, disableConcurrentStreams) { + var _a; + const sessionCache = this.sessionCache; + const existingSessions = sessionCache.get(authority) || []; + if (existingSessions.length > 0 && !disableConcurrentStreams) + return existingSessions[0]; + const newSession = (0, http2_1.connect)(authority); + newSession.unref(); + const destroySessionCb = () => { + this.destroySession(newSession); + this.deleteSessionFromCache(authority, newSession); + }; + newSession.on(\\"goaway\\", destroySessionCb); + newSession.on(\\"error\\", destroySessionCb); + newSession.on(\\"frameError\\", destroySessionCb); + newSession.on(\\"close\\", () => this.deleteSessionFromCache(authority, newSession)); + if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { + newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); + } + existingSessions.push(newSession); + sessionCache.set(authority, existingSessions); + return newSession; + } + destroySession(session) { + if (!session.destroyed) { + session.destroy(); + } + } + deleteSessionFromCache(authority, session) { + const existingSessions = this.sessionCache.get(authority) || []; + if (!existingSessions.includes(session)) { + return; + } + this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); + } + }; + exports2.NodeHttp2Handler = NodeHttp2Handler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js +var require_collector = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Collector = void 0; + var stream_1 = require(\\"stream\\"); + var Collector = class extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; + } + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } + }; + exports2.Collector = Collector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js +var require_stream_collector = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.streamCollector = void 0; + var collector_1 = require_collector(); + var streamCollector = (stream) => new Promise((resolve, reject) => { + const collector = new collector_1.Collector(); + stream.pipe(collector); + stream.on(\\"error\\", (err) => { + collector.end(); + reject(err); + }); + collector.on(\\"error\\", reject); + collector.on(\\"finish\\", function() { + const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); + resolve(bytes); + }); + }); + exports2.streamCollector = streamCollector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js +var require_dist_cjs33 = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_node_http_handler(), exports2); + tslib_1.__exportStar(require_node_http2_handler(), exports2); + tslib_1.__exportStar(require_stream_collector(), exports2); + } +}); + +// node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js +var require_dist_cjs34 = __commonJS({ + \\"node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toBase64 = exports2.fromBase64 = void 0; + var util_buffer_from_1 = require_dist_cjs30(); + var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; + function fromBase64(input) { + if (input.length * 3 % 4 !== 0) { + throw new TypeError(\`Incorrect padding on base64 string.\`); + } + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(\`Invalid base64 string.\`); + } + const buffer = (0, util_buffer_from_1.fromString)(input, \\"base64\\"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); + } + exports2.fromBase64 = fromBase64; + function toBase64(input) { + return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"base64\\"); + } + exports2.toBase64 = toBase64; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js +var require_calculateBodyLength = __commonJS({ + \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.calculateBodyLength = void 0; + var fs_1 = require(\\"fs\\"); + var calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === \\"string\\") { + return Buffer.from(body).length; + } else if (typeof body.byteLength === \\"number\\") { + return body.byteLength; + } else if (typeof body.size === \\"number\\") { + return body.size; + } else if (typeof body.path === \\"string\\" || Buffer.isBuffer(body.path)) { + return (0, fs_1.lstatSync)(body.path).size; + } else if (typeof body.fd === \\"number\\") { + return (0, fs_1.fstatSync)(body.fd).size; + } + throw new Error(\`Body Length computation failed for \${body}\`); + }; + exports2.calculateBodyLength = calculateBodyLength; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js +var require_dist_cjs35 = __commonJS({ + \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_calculateBodyLength(), exports2); + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +var require_is_crt_available = __commonJS({ + \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js\\"(exports2, module2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isCrtAvailable = void 0; + var isCrtAvailable = () => { + try { + if (typeof require === \\"function\\" && typeof module2 !== \\"undefined\\" && module2.require && require(\\"aws-crt\\")) { + return [\\"md/crt-avail\\"]; + } + return null; + } catch (e) { + return null; + } + }; + exports2.isCrtAvailable = isCrtAvailable; + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +var require_dist_cjs36 = __commonJS({ + \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultUserAgent = exports2.UA_APP_ID_INI_NAME = exports2.UA_APP_ID_ENV_NAME = void 0; + var node_config_provider_1 = require_dist_cjs26(); + var os_1 = require(\\"os\\"); + var process_1 = require(\\"process\\"); + var is_crt_available_1 = require_is_crt_available(); + exports2.UA_APP_ID_ENV_NAME = \\"AWS_SDK_UA_APP_ID\\"; + exports2.UA_APP_ID_INI_NAME = \\"sdk-ua-app-id\\"; + var defaultUserAgent = ({ serviceId, clientVersion }) => { + const sections = [ + [\\"aws-sdk-js\\", clientVersion], + [\`os/\${(0, os_1.platform)()}\`, (0, os_1.release)()], + [\\"lang/js\\"], + [\\"md/nodejs\\", \`\${process_1.versions.node}\`] + ]; + const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); + if (crtAvailable) { + sections.push(crtAvailable); + } + if (serviceId) { + sections.push([\`api/\${serviceId}\`, clientVersion]); + } + if (process_1.env.AWS_EXECUTION_ENV) { + sections.push([\`exec-env/\${process_1.env.AWS_EXECUTION_ENV}\`]); + } + const appIdPromise = (0, node_config_provider_1.loadConfig)({ + environmentVariableSelector: (env) => env[exports2.UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[exports2.UA_APP_ID_INI_NAME], + default: void 0 + })(); + let resolvedUserAgent = void 0; + return async () => { + if (!resolvedUserAgent) { + const appId = await appIdPromise; + resolvedUserAgent = appId ? [...sections, [\`app/\${appId}\`]] : [...sections]; + } + return resolvedUserAgent; + }; + }; + exports2.defaultUserAgent = defaultUserAgent; + } +}); + +// node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js +var require_dist_cjs37 = __commonJS({ + \\"node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toUtf8 = exports2.fromUtf8 = void 0; + var util_buffer_from_1 = require_dist_cjs30(); + var fromUtf8 = (input) => { + const buf = (0, util_buffer_from_1.fromString)(input, \\"utf8\\"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); + }; + exports2.fromUtf8 = fromUtf8; + var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"utf8\\"); + exports2.toUtf8 = toUtf8; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js +var require_endpoints = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs7(); + var regionHash = { + \\"ap-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-east-1\\" + }, + \\"ap-northeast-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-northeast-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-northeast-1\\" + }, + \\"ap-northeast-2\\": { + variants: [ + { + hostname: \\"portal.sso.ap-northeast-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-northeast-2\\" + }, + \\"ap-northeast-3\\": { + variants: [ + { + hostname: \\"portal.sso.ap-northeast-3.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-northeast-3\\" + }, + \\"ap-south-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-south-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-south-1\\" + }, + \\"ap-southeast-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-southeast-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-southeast-1\\" + }, + \\"ap-southeast-2\\": { + variants: [ + { + hostname: \\"portal.sso.ap-southeast-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-southeast-2\\" + }, + \\"ca-central-1\\": { + variants: [ + { + hostname: \\"portal.sso.ca-central-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ca-central-1\\" + }, + \\"eu-central-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-central-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-central-1\\" + }, + \\"eu-north-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-north-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-north-1\\" + }, + \\"eu-south-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-south-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-south-1\\" + }, + \\"eu-west-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-west-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-west-1\\" + }, + \\"eu-west-2\\": { + variants: [ + { + hostname: \\"portal.sso.eu-west-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-west-2\\" + }, + \\"eu-west-3\\": { + variants: [ + { + hostname: \\"portal.sso.eu-west-3.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-west-3\\" + }, + \\"me-south-1\\": { + variants: [ + { + hostname: \\"portal.sso.me-south-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"me-south-1\\" + }, + \\"sa-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.sa-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"sa-east-1\\" + }, + \\"us-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.us-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-east-1\\" + }, + \\"us-east-2\\": { + variants: [ + { + hostname: \\"portal.sso.us-east-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-east-2\\" + }, + \\"us-gov-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.us-gov-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-gov-east-1\\" + }, + \\"us-gov-west-1\\": { + variants: [ + { + hostname: \\"portal.sso.us-gov-west-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-gov-west-1\\" + }, + \\"us-west-2\\": { + variants: [ + { + hostname: \\"portal.sso.us-west-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-west-2\\" + } + }; + var partitionHash = { + aws: { + regions: [ + \\"af-south-1\\", + \\"ap-east-1\\", + \\"ap-northeast-1\\", + \\"ap-northeast-2\\", + \\"ap-northeast-3\\", + \\"ap-south-1\\", + \\"ap-southeast-1\\", + \\"ap-southeast-2\\", + \\"ap-southeast-3\\", + \\"ca-central-1\\", + \\"eu-central-1\\", + \\"eu-north-1\\", + \\"eu-south-1\\", + \\"eu-west-1\\", + \\"eu-west-2\\", + \\"eu-west-3\\", + \\"me-south-1\\", + \\"sa-east-1\\", + \\"us-east-1\\", + \\"us-east-2\\", + \\"us-west-1\\", + \\"us-west-2\\" + ], + regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"portal.sso-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"portal.sso.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-cn\\": { + regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], + regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.amazonaws.com.cn\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.amazonaws.com.cn\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"portal.sso-fips.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"portal.sso.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-iso\\": { + regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], + regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.c2s.ic.gov\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.c2s.ic.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-iso-b\\": { + regions: [\\"us-isob-east-1\\"], + regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.sc2s.sgov.gov\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.sc2s.sgov.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-us-gov\\": { + regions: [\\"us-gov-east-1\\", \\"us-gov-west-1\\"], + regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"portal.sso-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"portal.sso.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: \\"awsssoportal\\", + regionHash, + partitionHash + }); + exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs28(); + var endpoints_1 = require_endpoints(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: \\"2019-06-10\\", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"SSO\\", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js +var require_constants7 = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.IMDS_REGION_PATH = exports2.DEFAULTS_MODE_OPTIONS = exports2.ENV_IMDS_DISABLED = exports2.AWS_DEFAULT_REGION_ENV = exports2.AWS_REGION_ENV = exports2.AWS_EXECUTION_ENV = void 0; + exports2.AWS_EXECUTION_ENV = \\"AWS_EXECUTION_ENV\\"; + exports2.AWS_REGION_ENV = \\"AWS_REGION\\"; + exports2.AWS_DEFAULT_REGION_ENV = \\"AWS_DEFAULT_REGION\\"; + exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; + exports2.DEFAULTS_MODE_OPTIONS = [\\"in-region\\", \\"cross-region\\", \\"mobile\\", \\"standard\\", \\"legacy\\"]; + exports2.IMDS_REGION_PATH = \\"/latest/meta-data/placement/region\\"; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +var require_defaultsModeConfig = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; + var AWS_DEFAULTS_MODE_ENV = \\"AWS_DEFAULTS_MODE\\"; + var AWS_DEFAULTS_MODE_CONFIG = \\"defaults_mode\\"; + exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: \\"legacy\\" + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +var require_resolveDefaultsModeConfig = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveDefaultsModeConfig = void 0; + var config_resolver_1 = require_dist_cjs7(); + var credential_provider_imds_1 = require_dist_cjs29(); + var node_config_provider_1 = require_dist_cjs26(); + var property_provider_1 = require_dist_cjs16(); + var constants_1 = require_constants7(); + var defaultsModeConfig_1 = require_defaultsModeConfig(); + var resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, property_provider_1.memoize)(async () => { + const mode = typeof defaultsMode === \\"function\\" ? await defaultsMode() : defaultsMode; + switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { + case \\"auto\\": + return resolveNodeDefaultsModeAuto(region); + case \\"in-region\\": + case \\"cross-region\\": + case \\"mobile\\": + case \\"standard\\": + case \\"legacy\\": + return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); + case void 0: + return Promise.resolve(\\"legacy\\"); + default: + throw new Error(\`Invalid parameter for \\"defaultsMode\\", expect \${constants_1.DEFAULTS_MODE_OPTIONS.join(\\", \\")}, got \${mode}\`); + } + }); + exports2.resolveDefaultsModeConfig = resolveDefaultsModeConfig; + var resolveNodeDefaultsModeAuto = async (clientRegion) => { + if (clientRegion) { + const resolvedRegion = typeof clientRegion === \\"function\\" ? await clientRegion() : clientRegion; + const inferredRegion = await inferPhysicalRegion(); + if (!inferredRegion) { + return \\"standard\\"; + } + if (resolvedRegion === inferredRegion) { + return \\"in-region\\"; + } else { + return \\"cross-region\\"; + } + } + return \\"standard\\"; + }; + var inferPhysicalRegion = async () => { + var _a; + if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { + return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; + } + if (!process.env[constants_1.ENV_IMDS_DISABLED]) { + try { + const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); + return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); + } catch (e) { + } + } + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js +var require_dist_cjs38 = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +var require_runtimeConfig = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package3()); + var config_resolver_1 = require_dist_cjs7(); + var hash_node_1 = require_dist_cjs31(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs26(); + var node_http_handler_1 = require_dist_cjs33(); + var util_base64_node_1 = require_dist_cjs34(); + var util_body_length_node_1 = require_dist_cjs35(); + var util_user_agent_node_1 = require_dist_cjs36(); + var util_utf8_node_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared(); + var smithy_client_1 = require_dist_cjs3(); + var util_defaults_mode_node_1 = require_dist_cjs38(); + var smithy_client_2 = require_dist_cjs3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: \\"node\\", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, \\"sha256\\"), + streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, + utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8 + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +var require_SSOClient = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSOClient = void 0; + var config_resolver_1 = require_dist_cjs7(); + var middleware_content_length_1 = require_dist_cjs8(); + var middleware_host_header_1 = require_dist_cjs11(); + var middleware_logger_1 = require_dist_cjs12(); + var middleware_recursion_detection_1 = require_dist_cjs13(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_user_agent_1 = require_dist_cjs22(); + var smithy_client_1 = require_dist_cjs3(); + var runtimeConfig_1 = require_runtimeConfig(); + var SSOClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); + super(_config_5); + this.config = _config_5; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports2.SSOClient = SSOClient; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +var require_SSO = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSO = void 0; + var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var LogoutCommand_1 = require_LogoutCommand(); + var SSOClient_1 = require_SSOClient(); + var SSO = class extends SSOClient_1.SSOClient { + getRoleCredentials(args, optionsOrCb, cb) { + const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccountRoles(args, optionsOrCb, cb) { + const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccounts(args, optionsOrCb, cb) { + const command = new ListAccountsCommand_1.ListAccountsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + logout(args, optionsOrCb, cb) { + const command = new LogoutCommand_1.LogoutCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports2.SSO = SSO; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +var require_commands = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports2); + tslib_1.__exportStar(require_ListAccountRolesCommand(), exports2); + tslib_1.__exportStar(require_ListAccountsCommand(), exports2); + tslib_1.__exportStar(require_LogoutCommand(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +var require_models = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_03(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +var require_Interfaces = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +var require_ListAccountRolesPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListAccountRoles = void 0; + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccountRoles(input, ...args); + }; + async function* paginateListAccountRoles(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input[\\"maxResults\\"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListAccountRoles = paginateListAccountRoles; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +var require_ListAccountsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListAccounts = void 0; + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccounts(input, ...args); + }; + async function* paginateListAccounts(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input[\\"maxResults\\"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListAccounts = paginateListAccounts; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +var require_pagination = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces(), exports2); + tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports2); + tslib_1.__exportStar(require_ListAccountsPaginator(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/index.js +var require_dist_cjs39 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSOServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SSO(), exports2); + tslib_1.__exportStar(require_SSOClient(), exports2); + tslib_1.__exportStar(require_commands(), exports2); + tslib_1.__exportStar(require_models(), exports2); + tslib_1.__exportStar(require_pagination(), exports2); + var SSOServiceException_1 = require_SSOServiceException(); + Object.defineProperty(exports2, \\"SSOServiceException\\", { enumerable: true, get: function() { + return SSOServiceException_1.SSOServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +var require_resolveSSOCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveSSOCredentials = void 0; + var client_sso_1 = require_dist_cjs39(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; + var SHOULD_FAIL_CREDENTIAL_CHAIN = false; + var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => { + let token; + const refreshMessage = \`To refresh this SSO session run aws sso login with the corresponding profile.\`; + try { + token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); + } catch (e) { + throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile is invalid. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { + throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile has expired. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { accessToken } = token; + const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); + let ssoResp; + try { + ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ + accountId: ssoAccountId, + roleName: ssoRoleName, + accessToken + })); + } catch (e) { + throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; + if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { + throw new property_provider_1.CredentialsProviderError(\\"SSO returns an invalid temporary credential.\\", SHOULD_FAIL_CREDENTIAL_CHAIN); + } + return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; + }; + exports2.resolveSSOCredentials = resolveSSOCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +var require_validateSsoProfile = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.validateSsoProfile = void 0; + var property_provider_1 = require_dist_cjs16(); + var validateSsoProfile = (profile) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; + if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { + throw new property_provider_1.CredentialsProviderError(\`Profile is configured with invalid SSO credentials. Required parameters \\"sso_account_id\\", \\"sso_region\\", \\"sso_role_name\\", \\"sso_start_url\\". Got \${Object.keys(profile).join(\\", \\")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html\`, false); + } + return profile; + }; + exports2.validateSsoProfile = validateSsoProfile; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +var require_fromSSO = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromSSO = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var isSsoProfile_1 = require_isSsoProfile(); + var resolveSSOCredentials_1 = require_resolveSSOCredentials(); + var validateSsoProfile_1 = require_validateSsoProfile(); + var fromSSO = (init = {}) => async () => { + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); + const profile = profiles[profileName]; + if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} is not configured with SSO credentials.\`); + } + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + ssoClient + }); + } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include \\"ssoStartUrl\\", \\"ssoAccountId\\", \\"ssoRegion\\", \\"ssoRoleName\\"'); + } else { + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); + } + }; + exports2.fromSSO = fromSSO; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +var require_types4 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +var require_dist_cjs40 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromSSO(), exports2); + tslib_1.__exportStar(require_isSsoProfile(), exports2); + tslib_1.__exportStar(require_types4(), exports2); + tslib_1.__exportStar(require_validateSsoProfile(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +var require_resolveSsoCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveSsoCredentials = exports2.isSsoProfile = void 0; + var credential_provider_sso_1 = require_dist_cjs40(); + var credential_provider_sso_2 = require_dist_cjs40(); + Object.defineProperty(exports2, \\"isSsoProfile\\", { enumerable: true, get: function() { + return credential_provider_sso_2.isSsoProfile; + } }); + var resolveSsoCredentials = (data) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); + return (0, credential_provider_sso_1.fromSSO)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name + })(); + }; + exports2.resolveSsoCredentials = resolveSsoCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +var require_resolveStaticCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveStaticCredentials = exports2.isStaticCredsProfile = void 0; + var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.aws_access_key_id === \\"string\\" && typeof arg.aws_secret_access_key === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.aws_session_token) > -1; + exports2.isStaticCredsProfile = isStaticCredsProfile; + var resolveStaticCredentials = (profile) => Promise.resolve({ + accessKeyId: profile.aws_access_key_id, + secretAccessKey: profile.aws_secret_access_key, + sessionToken: profile.aws_session_token + }); + exports2.resolveStaticCredentials = resolveStaticCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +var require_fromWebToken = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromWebToken = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromWebToken = (init) => () => { + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; + if (!roleAssumerWithWebIdentity) { + throw new property_provider_1.CredentialsProviderError(\`Role Arn '\${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.\`, false); + } + return roleAssumerWithWebIdentity({ + RoleArn: roleArn, + RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : \`aws-sdk-js-session-\${Date.now()}\`, + WebIdentityToken: webIdentityToken, + ProviderId: providerId, + PolicyArns: policyArns, + Policy: policy, + DurationSeconds: durationSeconds + }); + }; + exports2.fromWebToken = fromWebToken; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +var require_fromTokenFile = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromTokenFile = void 0; + var property_provider_1 = require_dist_cjs16(); + var fs_1 = require(\\"fs\\"); + var fromWebToken_1 = require_fromWebToken(); + var ENV_TOKEN_FILE = \\"AWS_WEB_IDENTITY_TOKEN_FILE\\"; + var ENV_ROLE_ARN = \\"AWS_ROLE_ARN\\"; + var ENV_ROLE_SESSION_NAME = \\"AWS_ROLE_SESSION_NAME\\"; + var fromTokenFile = (init = {}) => async () => { + return resolveTokenFile(init); + }; + exports2.fromTokenFile = fromTokenFile; + var resolveTokenFile = (init) => { + var _a, _b, _c; + const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; + const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; + const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; + if (!webIdentityTokenFile || !roleArn) { + throw new property_provider_1.CredentialsProviderError(\\"Web identity configuration not specified\\"); + } + return (0, fromWebToken_1.fromWebToken)({ + ...init, + webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: \\"ascii\\" }), + roleArn, + roleSessionName + })(); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +var require_dist_cjs41 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromTokenFile(), exports2); + tslib_1.__exportStar(require_fromWebToken(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +var require_resolveWebIdentityCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveWebIdentityCredentials = exports2.isWebIdentityProfile = void 0; + var credential_provider_web_identity_1 = require_dist_cjs41(); + var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.web_identity_token_file === \\"string\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1; + exports2.isWebIdentityProfile = isWebIdentityProfile; + var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity + })(); + exports2.resolveWebIdentityCredentials = resolveWebIdentityCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +var require_resolveProfileData = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveProfileData = void 0; + var property_provider_1 = require_dist_cjs16(); + var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); + var resolveSsoCredentials_1 = require_resolveSsoCredentials(); + var resolveStaticCredentials_1 = require_resolveStaticCredentials(); + var resolveWebIdentityCredentials_1 = require_resolveWebIdentityCredentials(); + var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { + return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); + } + if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { + return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); + } + if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { + return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); + } + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found or parsed in shared credentials file.\`); + }; + exports2.resolveProfileData = resolveProfileData; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +var require_fromIni = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromIni = void 0; + var shared_ini_file_loader_1 = require_dist_cjs25(); + var resolveProfileData_1 = require_resolveProfileData(); + var fromIni = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); + }; + exports2.fromIni = fromIni; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +var require_dist_cjs42 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromIni(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +var require_getValidatedProcessCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getValidatedProcessCredentials = void 0; + var getValidatedProcessCredentials = (profileName, data) => { + if (data.Version !== 1) { + throw Error(\`Profile \${profileName} credential_process did not return Version 1.\`); + } + if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { + throw Error(\`Profile \${profileName} credential_process returned invalid credentials.\`); + } + if (data.Expiration) { + const currentTime = new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(\`Profile \${profileName} credential_process returned expired credentials.\`); + } + } + return { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...data.SessionToken && { sessionToken: data.SessionToken }, + ...data.Expiration && { expiration: new Date(data.Expiration) } + }; + }; + exports2.getValidatedProcessCredentials = getValidatedProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +var require_resolveProcessCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveProcessCredentials = void 0; + var property_provider_1 = require_dist_cjs16(); + var child_process_1 = require(\\"child_process\\"); + var util_1 = require(\\"util\\"); + var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); + var resolveProcessCredentials = async (profileName, profiles) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile[\\"credential_process\\"]; + if (credentialProcess !== void 0) { + const execPromise = (0, util_1.promisify)(child_process_1.exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } catch (_a) { + throw Error(\`Profile \${profileName} credential_process returned invalid JSON.\`); + } + return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); + } catch (error) { + throw new property_provider_1.CredentialsProviderError(error.message); + } + } else { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} did not contain credential_process.\`); + } + } else { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found in shared credentials file.\`); + } + }; + exports2.resolveProcessCredentials = resolveProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +var require_fromProcess = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromProcess = void 0; + var shared_ini_file_loader_1 = require_dist_cjs25(); + var resolveProcessCredentials_1 = require_resolveProcessCredentials(); + var fromProcess = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); + }; + exports2.fromProcess = fromProcess; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +var require_dist_cjs43 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromProcess(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +var require_remoteProvider = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.remoteProvider = exports2.ENV_IMDS_DISABLED = void 0; + var credential_provider_imds_1 = require_dist_cjs29(); + var property_provider_1 = require_dist_cjs16(); + exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; + var remoteProvider = (init) => { + if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { + return (0, credential_provider_imds_1.fromContainerMetadata)(init); + } + if (process.env[exports2.ENV_IMDS_DISABLED]) { + return async () => { + throw new property_provider_1.CredentialsProviderError(\\"EC2 Instance Metadata Service access disabled\\"); + }; + } + return (0, credential_provider_imds_1.fromInstanceMetadata)(init); + }; + exports2.remoteProvider = remoteProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +var require_defaultProvider = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultProvider = void 0; + var credential_provider_env_1 = require_dist_cjs24(); + var credential_provider_ini_1 = require_dist_cjs42(); + var credential_provider_process_1 = require_dist_cjs43(); + var credential_provider_sso_1 = require_dist_cjs40(); + var credential_provider_web_identity_1 = require_dist_cjs41(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var remoteProvider_1 = require_remoteProvider(); + var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { + throw new property_provider_1.CredentialsProviderError(\\"Could not load credentials from any providers\\", false); + }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); + exports2.defaultProvider = defaultProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +var require_dist_cjs44 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_defaultProvider(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js +var require_endpoints2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs7(); + var regionHash = { + \\"aws-global\\": { + variants: [ + { + hostname: \\"sts.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-east-1\\" + }, + \\"us-east-1\\": { + variants: [ + { + hostname: \\"sts-fips.us-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-east-2\\": { + variants: [ + { + hostname: \\"sts-fips.us-east-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-east-1\\": { + variants: [ + { + hostname: \\"sts.us-gov-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-west-1\\": { + variants: [ + { + hostname: \\"sts.us-gov-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-1\\": { + variants: [ + { + hostname: \\"sts-fips.us-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-2\\": { + variants: [ + { + hostname: \\"sts-fips.us-west-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + \\"af-south-1\\", + \\"ap-east-1\\", + \\"ap-northeast-1\\", + \\"ap-northeast-2\\", + \\"ap-northeast-3\\", + \\"ap-south-1\\", + \\"ap-southeast-1\\", + \\"ap-southeast-2\\", + \\"ap-southeast-3\\", + \\"aws-global\\", + \\"ca-central-1\\", + \\"eu-central-1\\", + \\"eu-north-1\\", + \\"eu-south-1\\", + \\"eu-west-1\\", + \\"eu-west-2\\", + \\"eu-west-3\\", + \\"me-south-1\\", + \\"sa-east-1\\", + \\"us-east-1\\", + \\"us-east-1-fips\\", + \\"us-east-2\\", + \\"us-east-2-fips\\", + \\"us-west-1\\", + \\"us-west-1-fips\\", + \\"us-west-2\\", + \\"us-west-2-fips\\" + ], + regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"sts-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"sts.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-cn\\": { + regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], + regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.amazonaws.com.cn\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.amazonaws.com.cn\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"sts-fips.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"sts.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-iso\\": { + regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], + regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.c2s.ic.gov\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.c2s.ic.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-iso-b\\": { + regions: [\\"us-isob-east-1\\"], + regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.sc2s.sgov.gov\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.sc2s.sgov.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-us-gov\\": { + regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], + regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"sts.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"sts-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"sts.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: \\"sts\\", + regionHash, + partitionHash + }); + exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs28(); + var endpoints_1 = require_endpoints2(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: \\"2011-06-15\\", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"STS\\", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +var require_runtimeConfig2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package2()); + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var config_resolver_1 = require_dist_cjs7(); + var credential_provider_node_1 = require_dist_cjs44(); + var hash_node_1 = require_dist_cjs31(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs26(); + var node_http_handler_1 = require_dist_cjs33(); + var util_base64_node_1 = require_dist_cjs34(); + var util_body_length_node_1 = require_dist_cjs35(); + var util_user_agent_node_1 = require_dist_cjs36(); + var util_utf8_node_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var smithy_client_1 = require_dist_cjs3(); + var util_defaults_mode_node_1 = require_dist_cjs38(); + var smithy_client_2 = require_dist_cjs3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: \\"node\\", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, \\"sha256\\"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +var require_STSClient = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STSClient = void 0; + var config_resolver_1 = require_dist_cjs7(); + var middleware_content_length_1 = require_dist_cjs8(); + var middleware_host_header_1 = require_dist_cjs11(); + var middleware_logger_1 = require_dist_cjs12(); + var middleware_recursion_detection_1 = require_dist_cjs13(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_sdk_sts_1 = require_dist_cjs23(); + var middleware_user_agent_1 = require_dist_cjs22(); + var smithy_client_1 = require_dist_cjs3(); + var runtimeConfig_1 = require_runtimeConfig2(); + var STSClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports2.STSClient = STSClient; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +var require_STS = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/STS.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STS = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var DecodeAuthorizationMessageCommand_1 = require_DecodeAuthorizationMessageCommand(); + var GetAccessKeyInfoCommand_1 = require_GetAccessKeyInfoCommand(); + var GetCallerIdentityCommand_1 = require_GetCallerIdentityCommand(); + var GetFederationTokenCommand_1 = require_GetFederationTokenCommand(); + var GetSessionTokenCommand_1 = require_GetSessionTokenCommand(); + var STSClient_1 = require_STSClient(); + var STS = class extends STSClient_1.STSClient { + assumeRole(args, optionsOrCb, cb) { + const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithSAML(args, optionsOrCb, cb) { + const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithWebIdentity(args, optionsOrCb, cb) { + const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + decodeAuthorizationMessage(args, optionsOrCb, cb) { + const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getAccessKeyInfo(args, optionsOrCb, cb) { + const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getCallerIdentity(args, optionsOrCb, cb) { + const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getFederationToken(args, optionsOrCb, cb) { + const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getSessionToken(args, optionsOrCb, cb) { + const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports2.STS = STS; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +var require_commands2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AssumeRoleCommand(), exports2); + tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports2); + tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports2); + tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports2); + tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports2); + tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports2); + tslib_1.__exportStar(require_GetFederationTokenCommand(), exports2); + tslib_1.__exportStar(require_GetSessionTokenCommand(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +var require_defaultRoleAssumers = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var STSClient_1 = require_STSClient(); + var getDefaultRoleAssumer = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, STSClient_1.STSClient); + exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, STSClient_1.STSClient); + exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports2.getDefaultRoleAssumer)(input), + roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input), + ...input + }); + exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +var require_models2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_02(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/index.js +var require_dist_cjs45 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STSServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_STS(), exports2); + tslib_1.__exportStar(require_STSClient(), exports2); + tslib_1.__exportStar(require_commands2(), exports2); + tslib_1.__exportStar(require_defaultRoleAssumers(), exports2); + tslib_1.__exportStar(require_models2(), exports2); + var STSServiceException_1 = require_STSServiceException(); + Object.defineProperty(exports2, \\"STSServiceException\\", { enumerable: true, get: function() { + return STSServiceException_1.STSServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js +var require_endpoints3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs7(); + var regionHash = { + \\"ca-central-1\\": { + variants: [ + { + hostname: \\"dynamodb-fips.ca-central-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + local: { + variants: [ + { + hostname: \\"localhost:8000\\", + tags: [] + } + ], + signingRegion: \\"us-east-1\\" + }, + \\"us-east-1\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-east-2\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-east-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-east-1\\": { + variants: [ + { + hostname: \\"dynamodb.us-gov-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-west-1\\": { + variants: [ + { + hostname: \\"dynamodb.us-gov-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-1\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-2\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-west-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + \\"af-south-1\\", + \\"ap-east-1\\", + \\"ap-northeast-1\\", + \\"ap-northeast-2\\", + \\"ap-northeast-3\\", + \\"ap-south-1\\", + \\"ap-southeast-1\\", + \\"ap-southeast-2\\", + \\"ap-southeast-3\\", + \\"ca-central-1\\", + \\"ca-central-1-fips\\", + \\"eu-central-1\\", + \\"eu-north-1\\", + \\"eu-south-1\\", + \\"eu-west-1\\", + \\"eu-west-2\\", + \\"eu-west-3\\", + \\"local\\", + \\"me-south-1\\", + \\"sa-east-1\\", + \\"us-east-1\\", + \\"us-east-1-fips\\", + \\"us-east-2\\", + \\"us-east-2-fips\\", + \\"us-west-1\\", + \\"us-west-1-fips\\", + \\"us-west-2\\", + \\"us-west-2-fips\\" + ], + regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"dynamodb-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"dynamodb.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-cn\\": { + regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], + regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.amazonaws.com.cn\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.amazonaws.com.cn\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"dynamodb-fips.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"dynamodb.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-iso\\": { + regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], + regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.c2s.ic.gov\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.c2s.ic.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-iso-b\\": { + regions: [\\"us-isob-east-1\\"], + regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.sc2s.sgov.gov\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.sc2s.sgov.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-us-gov\\": { + regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], + regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"dynamodb.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"dynamodb-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"dynamodb.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: \\"dynamodb\\", + regionHash, + partitionHash + }); + exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs28(); + var endpoints_1 = require_endpoints3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: \\"2012-08-10\\", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"DynamoDB\\", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js +var require_runtimeConfig3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package()); + var client_sts_1 = require_dist_cjs45(); + var config_resolver_1 = require_dist_cjs7(); + var credential_provider_node_1 = require_dist_cjs44(); + var hash_node_1 = require_dist_cjs31(); + var middleware_endpoint_discovery_1 = require_dist_cjs10(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs26(); + var node_http_handler_1 = require_dist_cjs33(); + var util_base64_node_1 = require_dist_cjs34(); + var util_body_length_node_1 = require_dist_cjs35(); + var util_user_agent_node_1 = require_dist_cjs36(); + var util_utf8_node_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); + var smithy_client_1 = require_dist_cjs3(); + var util_defaults_mode_node_1 = require_dist_cjs38(); + var smithy_client_2 = require_dist_cjs3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: \\"node\\", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), + maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, \\"sha256\\"), + streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8, + utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8 + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js +var require_DynamoDBClient = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDBClient = void 0; + var config_resolver_1 = require_dist_cjs7(); + var middleware_content_length_1 = require_dist_cjs8(); + var middleware_endpoint_discovery_1 = require_dist_cjs10(); + var middleware_host_header_1 = require_dist_cjs11(); + var middleware_logger_1 = require_dist_cjs12(); + var middleware_recursion_detection_1 = require_dist_cjs13(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_signing_1 = require_dist_cjs21(); + var middleware_user_agent_1 = require_dist_cjs22(); + var smithy_client_1 = require_dist_cjs3(); + var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); + var runtimeConfig_1 = require_runtimeConfig3(); + var DynamoDBClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + const _config_7 = (0, middleware_endpoint_discovery_1.resolveEndpointDiscoveryConfig)(_config_6, { + endpointDiscoveryCommandCtor: DescribeEndpointsCommand_1.DescribeEndpointsCommand + }); + super(_config_7); + this.config = _config_7; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports2.DynamoDBClient = DynamoDBClient; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js +var require_DynamoDB = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDB = void 0; + var BatchExecuteStatementCommand_1 = require_BatchExecuteStatementCommand(); + var BatchGetItemCommand_1 = require_BatchGetItemCommand(); + var BatchWriteItemCommand_1 = require_BatchWriteItemCommand(); + var CreateBackupCommand_1 = require_CreateBackupCommand(); + var CreateGlobalTableCommand_1 = require_CreateGlobalTableCommand(); + var CreateTableCommand_1 = require_CreateTableCommand(); + var DeleteBackupCommand_1 = require_DeleteBackupCommand(); + var DeleteItemCommand_1 = require_DeleteItemCommand(); + var DeleteTableCommand_1 = require_DeleteTableCommand(); + var DescribeBackupCommand_1 = require_DescribeBackupCommand(); + var DescribeContinuousBackupsCommand_1 = require_DescribeContinuousBackupsCommand(); + var DescribeContributorInsightsCommand_1 = require_DescribeContributorInsightsCommand(); + var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); + var DescribeExportCommand_1 = require_DescribeExportCommand(); + var DescribeGlobalTableCommand_1 = require_DescribeGlobalTableCommand(); + var DescribeGlobalTableSettingsCommand_1 = require_DescribeGlobalTableSettingsCommand(); + var DescribeKinesisStreamingDestinationCommand_1 = require_DescribeKinesisStreamingDestinationCommand(); + var DescribeLimitsCommand_1 = require_DescribeLimitsCommand(); + var DescribeTableCommand_1 = require_DescribeTableCommand(); + var DescribeTableReplicaAutoScalingCommand_1 = require_DescribeTableReplicaAutoScalingCommand(); + var DescribeTimeToLiveCommand_1 = require_DescribeTimeToLiveCommand(); + var DisableKinesisStreamingDestinationCommand_1 = require_DisableKinesisStreamingDestinationCommand(); + var EnableKinesisStreamingDestinationCommand_1 = require_EnableKinesisStreamingDestinationCommand(); + var ExecuteStatementCommand_1 = require_ExecuteStatementCommand(); + var ExecuteTransactionCommand_1 = require_ExecuteTransactionCommand(); + var ExportTableToPointInTimeCommand_1 = require_ExportTableToPointInTimeCommand(); + var GetItemCommand_1 = require_GetItemCommand(); + var ListBackupsCommand_1 = require_ListBackupsCommand(); + var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); + var ListExportsCommand_1 = require_ListExportsCommand(); + var ListGlobalTablesCommand_1 = require_ListGlobalTablesCommand(); + var ListTablesCommand_1 = require_ListTablesCommand(); + var ListTagsOfResourceCommand_1 = require_ListTagsOfResourceCommand(); + var PutItemCommand_1 = require_PutItemCommand(); + var QueryCommand_1 = require_QueryCommand(); + var RestoreTableFromBackupCommand_1 = require_RestoreTableFromBackupCommand(); + var RestoreTableToPointInTimeCommand_1 = require_RestoreTableToPointInTimeCommand(); + var ScanCommand_1 = require_ScanCommand(); + var TagResourceCommand_1 = require_TagResourceCommand(); + var TransactGetItemsCommand_1 = require_TransactGetItemsCommand(); + var TransactWriteItemsCommand_1 = require_TransactWriteItemsCommand(); + var UntagResourceCommand_1 = require_UntagResourceCommand(); + var UpdateContinuousBackupsCommand_1 = require_UpdateContinuousBackupsCommand(); + var UpdateContributorInsightsCommand_1 = require_UpdateContributorInsightsCommand(); + var UpdateGlobalTableCommand_1 = require_UpdateGlobalTableCommand(); + var UpdateGlobalTableSettingsCommand_1 = require_UpdateGlobalTableSettingsCommand(); + var UpdateItemCommand_1 = require_UpdateItemCommand(); + var UpdateTableCommand_1 = require_UpdateTableCommand(); + var UpdateTableReplicaAutoScalingCommand_1 = require_UpdateTableReplicaAutoScalingCommand(); + var UpdateTimeToLiveCommand_1 = require_UpdateTimeToLiveCommand(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var DynamoDB = class extends DynamoDBClient_1.DynamoDBClient { + batchExecuteStatement(args, optionsOrCb, cb) { + const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetItem(args, optionsOrCb, cb) { + const command = new BatchGetItemCommand_1.BatchGetItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchWriteItem(args, optionsOrCb, cb) { + const command = new BatchWriteItemCommand_1.BatchWriteItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createBackup(args, optionsOrCb, cb) { + const command = new CreateBackupCommand_1.CreateBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createGlobalTable(args, optionsOrCb, cb) { + const command = new CreateGlobalTableCommand_1.CreateGlobalTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createTable(args, optionsOrCb, cb) { + const command = new CreateTableCommand_1.CreateTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteBackup(args, optionsOrCb, cb) { + const command = new DeleteBackupCommand_1.DeleteBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteItem(args, optionsOrCb, cb) { + const command = new DeleteItemCommand_1.DeleteItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteTable(args, optionsOrCb, cb) { + const command = new DeleteTableCommand_1.DeleteTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeBackup(args, optionsOrCb, cb) { + const command = new DescribeBackupCommand_1.DescribeBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeContinuousBackups(args, optionsOrCb, cb) { + const command = new DescribeContinuousBackupsCommand_1.DescribeContinuousBackupsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeContributorInsights(args, optionsOrCb, cb) { + const command = new DescribeContributorInsightsCommand_1.DescribeContributorInsightsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeEndpoints(args, optionsOrCb, cb) { + const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeExport(args, optionsOrCb, cb) { + const command = new DescribeExportCommand_1.DescribeExportCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeGlobalTable(args, optionsOrCb, cb) { + const command = new DescribeGlobalTableCommand_1.DescribeGlobalTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeGlobalTableSettings(args, optionsOrCb, cb) { + const command = new DescribeGlobalTableSettingsCommand_1.DescribeGlobalTableSettingsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeKinesisStreamingDestination(args, optionsOrCb, cb) { + const command = new DescribeKinesisStreamingDestinationCommand_1.DescribeKinesisStreamingDestinationCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeLimits(args, optionsOrCb, cb) { + const command = new DescribeLimitsCommand_1.DescribeLimitsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeTable(args, optionsOrCb, cb) { + const command = new DescribeTableCommand_1.DescribeTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeTableReplicaAutoScaling(args, optionsOrCb, cb) { + const command = new DescribeTableReplicaAutoScalingCommand_1.DescribeTableReplicaAutoScalingCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeTimeToLive(args, optionsOrCb, cb) { + const command = new DescribeTimeToLiveCommand_1.DescribeTimeToLiveCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + disableKinesisStreamingDestination(args, optionsOrCb, cb) { + const command = new DisableKinesisStreamingDestinationCommand_1.DisableKinesisStreamingDestinationCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + enableKinesisStreamingDestination(args, optionsOrCb, cb) { + const command = new EnableKinesisStreamingDestinationCommand_1.EnableKinesisStreamingDestinationCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + executeStatement(args, optionsOrCb, cb) { + const command = new ExecuteStatementCommand_1.ExecuteStatementCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + executeTransaction(args, optionsOrCb, cb) { + const command = new ExecuteTransactionCommand_1.ExecuteTransactionCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + exportTableToPointInTime(args, optionsOrCb, cb) { + const command = new ExportTableToPointInTimeCommand_1.ExportTableToPointInTimeCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getItem(args, optionsOrCb, cb) { + const command = new GetItemCommand_1.GetItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listBackups(args, optionsOrCb, cb) { + const command = new ListBackupsCommand_1.ListBackupsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listContributorInsights(args, optionsOrCb, cb) { + const command = new ListContributorInsightsCommand_1.ListContributorInsightsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listExports(args, optionsOrCb, cb) { + const command = new ListExportsCommand_1.ListExportsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listGlobalTables(args, optionsOrCb, cb) { + const command = new ListGlobalTablesCommand_1.ListGlobalTablesCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listTables(args, optionsOrCb, cb) { + const command = new ListTablesCommand_1.ListTablesCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listTagsOfResource(args, optionsOrCb, cb) { + const command = new ListTagsOfResourceCommand_1.ListTagsOfResourceCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + putItem(args, optionsOrCb, cb) { + const command = new PutItemCommand_1.PutItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + query(args, optionsOrCb, cb) { + const command = new QueryCommand_1.QueryCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + restoreTableFromBackup(args, optionsOrCb, cb) { + const command = new RestoreTableFromBackupCommand_1.RestoreTableFromBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + restoreTableToPointInTime(args, optionsOrCb, cb) { + const command = new RestoreTableToPointInTimeCommand_1.RestoreTableToPointInTimeCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + scan(args, optionsOrCb, cb) { + const command = new ScanCommand_1.ScanCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + tagResource(args, optionsOrCb, cb) { + const command = new TagResourceCommand_1.TagResourceCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + transactGetItems(args, optionsOrCb, cb) { + const command = new TransactGetItemsCommand_1.TransactGetItemsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + transactWriteItems(args, optionsOrCb, cb) { + const command = new TransactWriteItemsCommand_1.TransactWriteItemsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + untagResource(args, optionsOrCb, cb) { + const command = new UntagResourceCommand_1.UntagResourceCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateContinuousBackups(args, optionsOrCb, cb) { + const command = new UpdateContinuousBackupsCommand_1.UpdateContinuousBackupsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateContributorInsights(args, optionsOrCb, cb) { + const command = new UpdateContributorInsightsCommand_1.UpdateContributorInsightsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateGlobalTable(args, optionsOrCb, cb) { + const command = new UpdateGlobalTableCommand_1.UpdateGlobalTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateGlobalTableSettings(args, optionsOrCb, cb) { + const command = new UpdateGlobalTableSettingsCommand_1.UpdateGlobalTableSettingsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateItem(args, optionsOrCb, cb) { + const command = new UpdateItemCommand_1.UpdateItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateTable(args, optionsOrCb, cb) { + const command = new UpdateTableCommand_1.UpdateTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateTableReplicaAutoScaling(args, optionsOrCb, cb) { + const command = new UpdateTableReplicaAutoScalingCommand_1.UpdateTableReplicaAutoScalingCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateTimeToLive(args, optionsOrCb, cb) { + const command = new UpdateTimeToLiveCommand_1.UpdateTimeToLiveCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports2.DynamoDB = DynamoDB; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js +var require_commands3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_BatchExecuteStatementCommand(), exports2); + tslib_1.__exportStar(require_BatchGetItemCommand(), exports2); + tslib_1.__exportStar(require_BatchWriteItemCommand(), exports2); + tslib_1.__exportStar(require_CreateBackupCommand(), exports2); + tslib_1.__exportStar(require_CreateGlobalTableCommand(), exports2); + tslib_1.__exportStar(require_CreateTableCommand(), exports2); + tslib_1.__exportStar(require_DeleteBackupCommand(), exports2); + tslib_1.__exportStar(require_DeleteItemCommand(), exports2); + tslib_1.__exportStar(require_DeleteTableCommand(), exports2); + tslib_1.__exportStar(require_DescribeBackupCommand(), exports2); + tslib_1.__exportStar(require_DescribeContinuousBackupsCommand(), exports2); + tslib_1.__exportStar(require_DescribeContributorInsightsCommand(), exports2); + tslib_1.__exportStar(require_DescribeEndpointsCommand(), exports2); + tslib_1.__exportStar(require_DescribeExportCommand(), exports2); + tslib_1.__exportStar(require_DescribeGlobalTableCommand(), exports2); + tslib_1.__exportStar(require_DescribeGlobalTableSettingsCommand(), exports2); + tslib_1.__exportStar(require_DescribeKinesisStreamingDestinationCommand(), exports2); + tslib_1.__exportStar(require_DescribeLimitsCommand(), exports2); + tslib_1.__exportStar(require_DescribeTableCommand(), exports2); + tslib_1.__exportStar(require_DescribeTableReplicaAutoScalingCommand(), exports2); + tslib_1.__exportStar(require_DescribeTimeToLiveCommand(), exports2); + tslib_1.__exportStar(require_DisableKinesisStreamingDestinationCommand(), exports2); + tslib_1.__exportStar(require_EnableKinesisStreamingDestinationCommand(), exports2); + tslib_1.__exportStar(require_ExecuteStatementCommand(), exports2); + tslib_1.__exportStar(require_ExecuteTransactionCommand(), exports2); + tslib_1.__exportStar(require_ExportTableToPointInTimeCommand(), exports2); + tslib_1.__exportStar(require_GetItemCommand(), exports2); + tslib_1.__exportStar(require_ListBackupsCommand(), exports2); + tslib_1.__exportStar(require_ListContributorInsightsCommand(), exports2); + tslib_1.__exportStar(require_ListExportsCommand(), exports2); + tslib_1.__exportStar(require_ListGlobalTablesCommand(), exports2); + tslib_1.__exportStar(require_ListTablesCommand(), exports2); + tslib_1.__exportStar(require_ListTagsOfResourceCommand(), exports2); + tslib_1.__exportStar(require_PutItemCommand(), exports2); + tslib_1.__exportStar(require_QueryCommand(), exports2); + tslib_1.__exportStar(require_RestoreTableFromBackupCommand(), exports2); + tslib_1.__exportStar(require_RestoreTableToPointInTimeCommand(), exports2); + tslib_1.__exportStar(require_ScanCommand(), exports2); + tslib_1.__exportStar(require_TagResourceCommand(), exports2); + tslib_1.__exportStar(require_TransactGetItemsCommand(), exports2); + tslib_1.__exportStar(require_TransactWriteItemsCommand(), exports2); + tslib_1.__exportStar(require_UntagResourceCommand(), exports2); + tslib_1.__exportStar(require_UpdateContinuousBackupsCommand(), exports2); + tslib_1.__exportStar(require_UpdateContributorInsightsCommand(), exports2); + tslib_1.__exportStar(require_UpdateGlobalTableCommand(), exports2); + tslib_1.__exportStar(require_UpdateGlobalTableSettingsCommand(), exports2); + tslib_1.__exportStar(require_UpdateItemCommand(), exports2); + tslib_1.__exportStar(require_UpdateTableCommand(), exports2); + tslib_1.__exportStar(require_UpdateTableReplicaAutoScalingCommand(), exports2); + tslib_1.__exportStar(require_UpdateTimeToLiveCommand(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js +var require_models3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_0(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js +var require_Interfaces2 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js +var require_ListContributorInsightsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListContributorInsights = void 0; + var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListContributorInsightsCommand_1.ListContributorInsightsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listContributorInsights(input, ...args); + }; + async function* paginateListContributorInsights(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input[\\"MaxResults\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListContributorInsights = paginateListContributorInsights; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js +var require_ListExportsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListExports = void 0; + var ListExportsCommand_1 = require_ListExportsCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listExports(input, ...args); + }; + async function* paginateListExports(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input[\\"MaxResults\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListExports = paginateListExports; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js +var require_ListTablesPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListTables = void 0; + var ListTablesCommand_1 = require_ListTablesCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listTables(input, ...args); + }; + async function* paginateListTables(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.ExclusiveStartTableName = token; + input[\\"Limit\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.LastEvaluatedTableName; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListTables = paginateListTables; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js +var require_QueryPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateQuery = void 0; + var QueryCommand_1 = require_QueryCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new QueryCommand_1.QueryCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.query(input, ...args); + }; + async function* paginateQuery(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.ExclusiveStartKey = token; + input[\\"Limit\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.LastEvaluatedKey; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateQuery = paginateQuery; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js +var require_ScanPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateScan = void 0; + var ScanCommand_1 = require_ScanCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ScanCommand_1.ScanCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.scan(input, ...args); + }; + async function* paginateScan(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.ExclusiveStartKey = token; + input[\\"Limit\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.LastEvaluatedKey; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateScan = paginateScan; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js +var require_pagination2 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces2(), exports2); + tslib_1.__exportStar(require_ListContributorInsightsPaginator(), exports2); + tslib_1.__exportStar(require_ListExportsPaginator(), exports2); + tslib_1.__exportStar(require_ListTablesPaginator(), exports2); + tslib_1.__exportStar(require_QueryPaginator(), exports2); + tslib_1.__exportStar(require_ScanPaginator(), exports2); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js +var require_sleep = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.sleep = void 0; + var sleep = (seconds) => { + return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); + }; + exports2.sleep = sleep; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js +var require_waiter = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.checkExceptions = exports2.WaiterState = exports2.waiterServiceDefaults = void 0; + exports2.waiterServiceDefaults = { + minDelay: 2, + maxDelay: 120 + }; + var WaiterState; + (function(WaiterState2) { + WaiterState2[\\"ABORTED\\"] = \\"ABORTED\\"; + WaiterState2[\\"FAILURE\\"] = \\"FAILURE\\"; + WaiterState2[\\"SUCCESS\\"] = \\"SUCCESS\\"; + WaiterState2[\\"RETRY\\"] = \\"RETRY\\"; + WaiterState2[\\"TIMEOUT\\"] = \\"TIMEOUT\\"; + })(WaiterState = exports2.WaiterState || (exports2.WaiterState = {})); + var checkExceptions = (result) => { + if (result.state === WaiterState.ABORTED) { + const abortError = new Error(\`\${JSON.stringify({ + ...result, + reason: \\"Request was aborted\\" + })}\`); + abortError.name = \\"AbortError\\"; + throw abortError; + } else if (result.state === WaiterState.TIMEOUT) { + const timeoutError = new Error(\`\${JSON.stringify({ + ...result, + reason: \\"Waiter has timed out\\" + })}\`); + timeoutError.name = \\"TimeoutError\\"; + throw timeoutError; + } else if (result.state !== WaiterState.SUCCESS) { + throw new Error(\`\${JSON.stringify({ result })}\`); + } + return result; + }; + exports2.checkExceptions = checkExceptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js +var require_poller = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.runPolling = void 0; + var sleep_1 = require_sleep(); + var waiter_1 = require_waiter(); + var exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { + if (attempt > attemptCeiling) + return maxDelay; + const delay = minDelay * 2 ** (attempt - 1); + return randomInRange(minDelay, delay); + }; + var randomInRange = (min, max) => min + Math.random() * (max - min); + var runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; + const { state } = await acceptorChecks(client, input); + if (state !== waiter_1.WaiterState.RETRY) { + return { state }; + } + let currentAttempt = 1; + const waitUntil = Date.now() + maxWaitTime * 1e3; + const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; + while (true) { + if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { + return { state: waiter_1.WaiterState.ABORTED }; + } + const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); + if (Date.now() + delay * 1e3 > waitUntil) { + return { state: waiter_1.WaiterState.TIMEOUT }; + } + await (0, sleep_1.sleep)(delay); + const { state: state2 } = await acceptorChecks(client, input); + if (state2 !== waiter_1.WaiterState.RETRY) { + return { state: state2 }; + } + currentAttempt += 1; + } + }; + exports2.runPolling = runPolling; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js +var require_validate2 = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.validateWaiterOptions = void 0; + var validateWaiterOptions = (options) => { + if (options.maxWaitTime < 1) { + throw new Error(\`WaiterConfiguration.maxWaitTime must be greater than 0\`); + } else if (options.minDelay < 1) { + throw new Error(\`WaiterConfiguration.minDelay must be greater than 0\`); + } else if (options.maxDelay < 1) { + throw new Error(\`WaiterConfiguration.maxDelay must be greater than 0\`); + } else if (options.maxWaitTime <= options.minDelay) { + throw new Error(\`WaiterConfiguration.maxWaitTime [\${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); + } else if (options.maxDelay < options.minDelay) { + throw new Error(\`WaiterConfiguration.maxDelay [\${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); + } + }; + exports2.validateWaiterOptions = validateWaiterOptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js +var require_utils = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_sleep(), exports2); + tslib_1.__exportStar(require_validate2(), exports2); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js +var require_createWaiter = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.createWaiter = void 0; + var poller_1 = require_poller(); + var utils_1 = require_utils(); + var waiter_1 = require_waiter(); + var abortTimeout = async (abortSignal) => { + return new Promise((resolve) => { + abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); + }); + }; + var createWaiter = async (options, input, acceptorChecks) => { + const params = { + ...waiter_1.waiterServiceDefaults, + ...options + }; + (0, utils_1.validateWaiterOptions)(params); + const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; + if (options.abortController) { + exitConditions.push(abortTimeout(options.abortController.signal)); + } + if (options.abortSignal) { + exitConditions.push(abortTimeout(options.abortSignal)); + } + return Promise.race(exitConditions); + }; + exports2.createWaiter = createWaiter; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/index.js +var require_dist_cjs46 = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_createWaiter(), exports2); + tslib_1.__exportStar(require_waiter(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js +var require_waitForTableExists = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.waitUntilTableExists = exports2.waitForTableExists = void 0; + var util_waiter_1 = require_dist_cjs46(); + var DescribeTableCommand_1 = require_DescribeTableCommand(); + var checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.Table.TableStatus; + }; + if (returnComparator() === \\"ACTIVE\\") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } catch (e) { + } + } catch (exception) { + reason = exception; + if (exception.name && exception.name == \\"ResourceNotFoundException\\") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; + }; + var waitForTableExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + }; + exports2.waitForTableExists = waitForTableExists; + var waitUntilTableExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); + }; + exports2.waitUntilTableExists = waitUntilTableExists; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js +var require_waitForTableNotExists = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.waitUntilTableNotExists = exports2.waitForTableNotExists = void 0; + var util_waiter_1 = require_dist_cjs46(); + var DescribeTableCommand_1 = require_DescribeTableCommand(); + var checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); + reason = result; + } catch (exception) { + reason = exception; + if (exception.name && exception.name == \\"ResourceNotFoundException\\") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; + }; + var waitForTableNotExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + }; + exports2.waitForTableNotExists = waitForTableNotExists; + var waitUntilTableNotExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); + }; + exports2.waitUntilTableNotExists = waitUntilTableNotExists; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js +var require_waiters = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_waitForTableExists(), exports2); + tslib_1.__exportStar(require_waitForTableNotExists(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js +var require_dist_cjs47 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDBServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_DynamoDB(), exports2); + tslib_1.__exportStar(require_DynamoDBClient(), exports2); + tslib_1.__exportStar(require_commands3(), exports2); + tslib_1.__exportStar(require_models3(), exports2); + tslib_1.__exportStar(require_pagination2(), exports2); + tslib_1.__exportStar(require_waiters(), exports2); + var DynamoDBServiceException_1 = require_DynamoDBServiceException(); + Object.defineProperty(exports2, \\"DynamoDBServiceException\\", { enumerable: true, get: function() { + return DynamoDBServiceException_1.DynamoDBServiceException; + } }); + } +}); + +// +var v1 = require_dist_cjs47(); +var v2 = v1.DynamoDBClient; +var v0 = v2; +exports.handler = () => { + const client = new v0({}); + return client.config.serviceId; +}; +" +`; + exports[`serialize a class declaration 1`] = ` "// var v2 = 0; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index f1648dd6..8ac957d8 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1,6 +1,7 @@ import "jest"; import fs from "fs"; import path from "path"; +import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; import AWS from "aws-sdk"; import { v4 } from "uuid"; import { AnyFunction } from "../src"; @@ -420,3 +421,13 @@ test("instantiating the AWS SDK", async () => { expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); }); + +test("instantiating the AWS SDK v3", async () => { + const closure = await expectClosure(() => { + const client = new DynamoDBClient({}); + + return client.config.serviceId; + }); + + expect(closure()).toEqual("DynamoDB"); +}); diff --git a/yarn.lock b/yarn.lock index fc57c2c4..cbfe4efa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -115,7 +115,7 @@ "@aws-sdk/types" "3.127.0" tslib "^2.3.1" -"@aws-sdk/client-dynamodb@^3.50.0": +"@aws-sdk/client-dynamodb@^3.145.0", "@aws-sdk/client-dynamodb@^3.50.0": version "3.145.0" resolved "https://registry.yarnpkg.com/@aws-sdk/client-dynamodb/-/client-dynamodb-3.145.0.tgz#2a358e9cbb1176370488cc229d319934a6003d93" integrity sha512-dvy1kRTKVBiHPVrZU8aYFaHMjfoJCQ71FrhWfk5lHhLylSkRSuiffVx026Dh18b3Ob6L8N17HRAYzGV3ogAZfA== From 2210da1367a94a0ce0ba3c8722c1a2b1831c5b4e Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 11 Aug 2022 20:00:06 -0700 Subject: [PATCH 065/107] feat: allow serializer to be chosen. Support more cases --- src/function.ts | 422 +++++++++++++++++++++------------------ src/reflect.ts | 4 +- src/serialize-closure.ts | 194 +++++++++++++++--- 3 files changed, 402 insertions(+), 218 deletions(-) diff --git a/src/function.ts b/src/function.ts index 3a9c0358..69c7bb0f 100644 --- a/src/function.ts +++ b/src/function.ts @@ -57,6 +57,7 @@ import { isIntegration, } from "./integration"; import { ReflectionSymbols, validateFunctionLike } from "./reflect"; +import { serializeClosure } from "./serialize-closure"; import { isStepFunction } from "./step-function"; import { isTable } from "./table"; import { AnyAsyncFunction, AnyFunction } from "./util"; @@ -505,6 +506,11 @@ interface FunctionBase { >; } +export enum SerializerImpl { + ASYNC, + SYNC, +} + const PromisesSymbol = Symbol.for("functionless.Function.promises"); export interface FunctionProps @@ -512,6 +518,7 @@ export interface FunctionProps aws_lambda.FunctionProps, "code" | "handler" | "runtime" | "onSuccess" | "onFailure" > { + serializer?: SerializerImpl; /** * Method which allows runtime computation of AWS client configuration. * ```ts @@ -702,7 +709,11 @@ export class Function< Function.promises.push( (async () => { try { - await callbackLambdaCode.generate(nativeIntegrationsPrewarm); + await callbackLambdaCode.generate( + nativeIntegrationsPrewarm, + // TODO: make default ASYNC until we are happy + props?.serializer ?? SerializerImpl.SYNC + ); } catch (e) { if (e instanceof SynthError) { throw new SynthError( @@ -779,7 +790,8 @@ export class CallbackLambdaCode extends aws_lambda.Code { * https://twitter.com/samgoodwin89/status/1516887131108438016?s=20&t=7GRGOQ1Bp0h_cPsJgFk3Ww */ public async generate( - integrationPrewarms: NativeIntegration["preWarm"][] + integrationPrewarms: NativeIntegration["preWarm"][], + serializerImpl: SerializerImpl ) { if (!this.scope) { throw new SynthError( @@ -800,6 +812,7 @@ export class CallbackLambdaCode extends aws_lambda.Code { const [serialized, tokens] = await serialize( this.func, integrationPrewarms, + serializerImpl, this.props ); const bundled = await bundle(serialized); @@ -822,7 +835,9 @@ export class CallbackLambdaCode extends aws_lambda.Code { }, }); - tokens.forEach((t) => scope.addEnvironment(t.env, t.token)); + tokens.forEach((t) => { + scope.addEnvironment(t.env, t.token); + }); const funcResource = scope.node.findChild( "Resource" @@ -894,212 +909,239 @@ interface TokenContext { export async function serialize( func: AnyAsyncFunction, integrationPrewarms: NativeIntegration["preWarm"][], + serializerImpl: SerializerImpl, props?: PrewarmProps ): Promise<[string, TokenContext[]]> { let tokens: string[] = []; const preWarmContext = new NativePreWarmContext(props); - const result = await serializeFunction( - // factory function allows us to prewarm the clients and other context. - integrationPrewarms.length > 0 - ? () => { - integrationPrewarms.forEach((i) => i?.(preWarmContext)); - return func; - } - : func, - { - isFactoryFunction: integrationPrewarms.length > 0, - transformers: [ - (ctx) => - /** - * TS Transformer for erasing calls to the generated `register` and `bind` functions - * from all emitted closures. - */ - function eraseBindAndRegister(node: ts.Node): ts.Node { - if (ts.isCallExpression(node) && ts.isIdentifier(node.expression)) { - if (node.expression.text === RegisterFunctionName) { - // register(func, ast) - // => func - return ts.visitEachChild( - node.arguments[0]!, - eraseBindAndRegister, - ctx - ); - } else if (node.expression.text === BindFunctionName) { - // bind(func, self, ...args) - // => func.bind(self, ...args) - return ts.factory.createCallExpression( - eraseBindAndRegister(node.arguments[0]!) as ts.Expression, - undefined, - node.arguments.map( - (arg) => eraseBindAndRegister(arg) as ts.Expression - ) - ); - } - } - return ts.visitEachChild(node, eraseBindAndRegister, ctx); - }, - ], - shouldCaptureProp: (_, propName) => { - // do not serialize the AST property on functions - return propName !== ReflectionSymbols.AST; - }, - serialize: (obj) => { - if (typeof obj === "string") { - const reversed = - Tokenization.reverse(obj, { failConcat: false }) ?? - Tokenization.reverseString(obj).tokens; - if (!Array.isArray(reversed) || reversed.length > 0) { - if (Array.isArray(reversed)) { - tokens = [ - ...tokens, - ...reversed.map((s) => validateResolvable(s).toString()), - ]; - } else { - tokens = [...tokens, validateResolvable(reversed).toString()]; - } - } - } else if (typeof obj === "object") { - return obj - ? transformIntegration(transformResource(transformCfnResource(obj))) - : obj; - - /** - * Remove unnecessary fields from {@link CfnResource} that bloat or fail the closure serialization. - */ - function transformCfnResource(o: unknown) { - if (Resource.isResource(o as any)) { - const { node, stack, env, ...rest } = o as unknown as Resource; - return rest; - } else if (CfnResource.isCfnResource(o as any)) { - const { - stack, - node, - creationStack, - // don't need to serialize at runtime - _toCloudFormation, - // @ts-ignore - private - adds the tag manager, which we don't need - cfnProperties, - ...rest - } = transformTable(o as CfnResource); - return transformTaggableResource(rest); - } else if (Token.isUnresolved(o)) { - const reversed = validateResolvable(Tokenization.reverse(o)!); - - if (Reference.isReference(reversed)) { - tokens.push(reversed.toString()); - return reversed.toString(); - } else if (SecretValue.isSecretValue(reversed)) { - throw new SynthError( - ErrorCodes.Unsafe_use_of_secrets, - "Found unsafe use of SecretValue token in a Function." - ); - } else if ("value" in reversed) { - return (reversed as unknown as { value: any }).value; - } - // TODO: fail at runtime and warn at compiler time when a token cannot be serialized - return {}; - } - return o; - } + const f = func; - /** - * When the StreamArn attribute is used in a Cfn template, but streamSpecification is - * undefined, then the deployment fails. Lets make sure that doesn't happen. - */ - function transformTable(o: CfnResource): CfnResource { - if ( - o.cfnResourceType === aws_dynamodb.CfnTable.CFN_RESOURCE_TYPE_NAME - ) { - const table = o as aws_dynamodb.CfnTable; - if (!table.streamSpecification) { - const { attrStreamArn, ...rest } = table; - - return rest as unknown as CfnResource; + const preWarms = integrationPrewarms; + const result = + serializerImpl === SerializerImpl.SYNC + ? serializeClosure( + integrationPrewarms.length > 0 + ? () => { + preWarms.forEach((i) => i?.(preWarmContext)); + return f; } + : f, + { + serialize: serializeHook, + isFactoryFunction: integrationPrewarms.length > 0, + } + ) + : ( + await serializeFunction( + // factory function allows us to prewarm the clients and other context. + integrationPrewarms.length > 0 + ? () => { + integrationPrewarms.forEach((i) => i?.(preWarmContext)); + return func; + } + : func, + { + isFactoryFunction: integrationPrewarms.length > 0, + transformers: [ + (ctx) => + /** + * TS Transformer for erasing calls to the generated `register` and `bind` functions + * from all emitted closures. + */ + function eraseBindAndRegister(node: ts.Node): ts.Node { + if ( + ts.isCallExpression(node) && + ts.isIdentifier(node.expression) + ) { + if (node.expression.text === RegisterFunctionName) { + // register(func, ast) + // => func + return ts.visitEachChild( + node.arguments[0]!, + eraseBindAndRegister, + ctx + ); + } else if (node.expression.text === BindFunctionName) { + // bind(func, self, ...args) + // => func.bind(self, ...args) + return ts.factory.createCallExpression( + eraseBindAndRegister( + node.arguments[0]! + ) as ts.Expression, + undefined, + node.arguments.map( + (arg) => eraseBindAndRegister(arg) as ts.Expression + ) + ); + } + } + return ts.visitEachChild(node, eraseBindAndRegister, ctx); + }, + ], + shouldCaptureProp: (_, propName) => { + // do not serialize the AST property on functions + return propName !== ReflectionSymbols.AST; + }, + serialize: serializeHook, } + ) + ).text; + + function serializeHook(obj: any): any { + if (typeof obj === "string") { + const reversed = + Tokenization.reverse(obj, { failConcat: false }) ?? + Tokenization.reverseString(obj).tokens; + if (!Array.isArray(reversed) || reversed.length > 0) { + if (Array.isArray(reversed)) { + tokens = [ + ...tokens, + ...reversed.map((s) => validateResolvable(s).toString()), + ]; + } else { + tokens = [...tokens, validateResolvable(reversed).toString()]; + } + } + } else if (typeof obj === "object") { + return obj + ? transformIntegration(transformResource(transformCfnResource(obj))) + : obj; - return o; + /** + * Remove unnecessary fields from {@link CfnResource} that bloat or fail the closure serialization. + */ + function transformCfnResource(o: unknown) { + if (Resource.isResource(o as any)) { + const { node, stack, env, ...rest } = o as unknown as Resource; + return rest; + } else if (CfnResource.isCfnResource(o as any)) { + const { + stack, + node, + creationStack, + // don't need to serialize at runtime + _toCloudFormation, + // @ts-ignore - private - adds the tag manager, which we don't need + cfnProperties, + ...rest + } = transformTable(o as CfnResource); + return transformTaggableResource(rest); + } else if (Token.isUnresolved(o)) { + const reversed = validateResolvable(Tokenization.reverse(o)!); + + if (Reference.isReference(reversed)) { + tokens.push(reversed.toString()); + return reversed.toString(); + } else if (SecretValue.isSecretValue(reversed)) { + throw new SynthError( + ErrorCodes.Unsafe_use_of_secrets, + "Found unsafe use of SecretValue token in a Function." + ); + } else if ("value" in reversed) { + return (reversed as unknown as { value: any }).value; } + // TODO: fail at runtime and warn at compiler time when a token cannot be serialized + return {}; + } + return o; + } - /** - * CDK Tag manager bundles in ~200kb of junk we don't need at runtime, - */ - function transformTaggableResource(o: any) { - if (TagManager.isTaggable(o)) { - const { tags, ...rest } = o; - return rest; - } - return o; + /** + * When the StreamArn attribute is used in a Cfn template, but streamSpecification is + * undefined, then the deployment fails. Lets make sure that doesn't happen. + */ + function transformTable(o: CfnResource): CfnResource { + if ( + o.cfnResourceType === aws_dynamodb.CfnTable.CFN_RESOURCE_TYPE_NAME + ) { + const table = o as aws_dynamodb.CfnTable; + if (!table.streamSpecification) { + const { attrStreamArn, ...rest } = table; + + return rest as unknown as CfnResource; } + } - /** - * Remove unnecessary fields from {@link CfnTable} that bloat or fail the closure serialization. - */ - function transformIntegration(integ: unknown): any { - if (integ && isIntegration(integ)) { - const c = integ.native?.call; - const call = - typeof c !== "undefined" - ? function (...args: any[]) { - return c(args, preWarmContext); - } - : integ.unhandledContext - ? function () { - integ.unhandledContext!(integ.kind, "Function"); - } - : function () { - throw new Error(); - }; - - for (const prop in integ) { - if (!INTEGRATION_TYPE_KEYS.includes(prop as any)) { - // @ts-ignore - call[prop] = integ[prop]; - } - } + return o; + } - return call; - } - return integ; - } + /** + * CDK Tag manager bundles in ~200kb of junk we don't need at runtime, + */ + function transformTaggableResource(o: any) { + if (TagManager.isTaggable(o)) { + const { tags, ...rest } = o; + return rest; + } + return o; + } - /** - * TODO, make this configuration based. - * https://github.com/functionless/functionless/issues/239 - */ - function transformResource(integ: unknown): any { - if ( - integ && - (isFunction(integ) || - isTable(integ) || - isStepFunction(integ) || - isEventBus(integ)) - ) { - const { resource, ...rest } = integ; - - return rest; + /** + * Remove unnecessary fields from {@link CfnTable} that bloat or fail the closure serialization. + */ + function transformIntegration(integ: unknown): any { + if (integ && isIntegration(integ)) { + const c = integ.native?.call; + const call = + typeof c !== "undefined" + ? function (...args: any[]) { + return c(args, preWarmContext); + } + : integ.unhandledContext + ? function () { + integ.unhandledContext!(integ.kind, "Function"); + } + : function () { + throw new Error(); + }; + + for (const prop in integ) { + if (!INTEGRATION_TYPE_KEYS.includes(prop as any)) { + // @ts-ignore + call[prop] = integ[prop]; } - return integ; } + + return call; } - return true; - - function validateResolvable(resolvable: IResolvable) { - if (Token.isUnresolved(resolvable)) { - const tokenSource = Tokenization.reverse(resolvable)!; - if (SecretValue.isSecretValue(tokenSource)) { - throw new SynthError( - ErrorCodes.Unsafe_use_of_secrets, - "Found unsafe use of SecretValue token in a Function." - ); - } - } - return resolvable; + return integ; + } + + /** + * TODO, make this configuration based. + * https://github.com/functionless/functionless/issues/239 + */ + function transformResource(integ: unknown): any { + if ( + integ && + (isFunction(integ) || + isTable(integ) || + isStepFunction(integ) || + isEventBus(integ)) + ) { + const { resource, ...rest } = integ; + + return rest; } - }, + return integ; + } } - ); + return true; + + function validateResolvable(resolvable: IResolvable) { + if (Token.isUnresolved(resolvable)) { + const tokenSource = Tokenization.reverse(resolvable)!; + if (SecretValue.isSecretValue(tokenSource)) { + throw new SynthError( + ErrorCodes.Unsafe_use_of_secrets, + "Found unsafe use of SecretValue token in a Function." + ); + } + } + return resolvable; + } + } /** * A map of token id to unique index. @@ -1130,7 +1172,7 @@ export async function serialize( const resultText = tokenContext.reduce( // TODO: support templated strings (r, t) => r.split(`"${t.token}"`).join(`process.env.${t.env}`), - result.text + result ); return [resultText, tokenContext]; diff --git a/src/reflect.ts b/src/reflect.ts index 6fedc139..7f704c21 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -48,7 +48,9 @@ export function reflect( | SetAccessorDecl | Err | undefined { - if (func.name.startsWith("bound ")) { + if (func.name === "bound requireModuleOrMock") { + return undefined; + } else if (func.name.startsWith("bound ")) { // native bound function const targetFunc = (func)[ReflectionSymbols.TargetFunction]; if (targetFunc) { diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index af965d90..c9d80e45 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -109,8 +109,46 @@ export interface SerializeClosureProps extends esbuild.BuildOptions { * @default true */ useESBuild?: boolean; + + /** + * A function to prevent serialization of certain objects captured during the serialization. Primarily used to + * prevent potential cycles. + */ + serialize: (o: any) => boolean | any; + /** + * A function to prevent serialization of a {@link property} on an {@link obj} + * + * @param obj the object containing the property + * @param property the value of the property name + */ + shouldCaptureProp?: (obj: any, property: string | number | symbol) => boolean; + /** + * If this is a function which, when invoked, will produce the actual entrypoint function. + * Useful for when serializing a function that has high startup cost that only wants to be + * run once. The signature of this function should be: () => (provider_handler_args...) => provider_result + * + * This will then be emitted as: `exports.[exportName] = serialized_func_name();` + * + * In other words, the function will be invoked (once) and the resulting inner function will + * be what is exported. + */ + isFactoryFunction?: boolean; } +const globals = new Map ts.Expression>([ + [process, () => id("process")], + [Object, () => id("Object")], + [Object.prototype, () => prop(id("Object"), "prototype")], + [Function, () => id("Function")], + [Function.prototype, () => prop(id("Function"), "prototype")], + [Date, () => id("Date")], + [Date.prototype, () => prop(id("Date"), "prototype")], + [RegExp, () => id("RegExp")], + [RegExp.prototype, () => prop(id("RegExp"), "prototype")], + [Error, () => id("Error")], + [Error.prototype, () => prop(id("Error"), "prototype")], +]); + /** * Serialize a closure to a bundle that can be remotely executed. * @param func @@ -129,28 +167,42 @@ export function serializeClosure( } const requireCache = new Map( - Object.entries(require.cache).flatMap(([path, module]) => [ - [ - module?.exports as any, - { - path: module?.path, - exportName: undefined, - exportValue: module?.exports, - module, - }, - ], - ...(Object.entries(module?.exports ?? {}).map( - ([exportName, exportValue]) => [ - exportValue as any, - { - path, - exportName, - exportValue, - module, - }, - ] - ) as [any, RequiredModule][]), - ]) + Object.entries(Object.getOwnPropertyDescriptors(require.cache)).flatMap( + ([path, module]) => { + try { + return [ + [ + module.value?.exports as any, + { + path: module.value?.path, + exportName: undefined, + exportValue: module.value?.exports, + module, + }, + ], + ...(Object.entries( + Object.getOwnPropertyDescriptors(module.value?.exports ?? {}) + ).map(([exportName, exportValue]) => { + try { + return [ + exportValue.value, + { + path, + exportName, + exportValue: exportValue.value, + module: module.value, + }, + ]; + } catch (err) { + throw err; + } + }) as [any, RequiredModule][]), + ]; + } catch (err) { + throw err; + } + } + ) ); let i = 0; @@ -171,7 +223,15 @@ export function serializeClosure( // stores a map of a `` to a ts.Identifier pointing to the unique location of that variable const referenceIds = new Map(); - emit(expr(assign(prop(id("exports"), "handler"), serialize(func)))); + const f = serialize(func); + emit( + expr( + assign( + prop(id("exports"), "handler"), + options?.isFactoryFunction ? call(f, []) : f + ) + ) + ); const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed, @@ -300,6 +360,16 @@ export function serializeClosure( } else if (typeof value === "bigint") { return ts.factory.createBigIntLiteral(value.toString(10)); } else if (typeof value === "string") { + if (options?.serialize) { + const result = options.serialize(value); + if (result === false) { + return undefined_expr(); + } else if (result === true) { + return string(value); + } else { + return serialize(result); + } + } return string(value); } else if (value instanceof RegExp) { return ts.factory.createRegularExpressionLiteral(value.source); @@ -327,6 +397,22 @@ export function serializeClosure( return arr; } else if (typeof value === "object") { + if (globals.has(value)) { + return emitVarDecl("const", uniqueName(), globals.get(value)!()); + } + + if (options?.serialize) { + const result = options.serialize(value); + if (!result) { + // do not serialize + return emitVarDecl("const", uniqueName(), undefined_expr()); + } else if (value === true || typeof result === "object") { + value = result; + } else { + return serialize(result); + } + } + const mod = requireCache.get(value); if (mod) { @@ -356,12 +442,28 @@ export function serializeClosure( // for each of the object's own properties, emit a statement that assigns the value of that property // vObj.propName = vValue - Object.getOwnPropertyNames(value).forEach((propName) => - emit(expr(assign(prop(obj, propName), serialize(value[propName])))) - ); + Object.getOwnPropertyNames(value).forEach((propName) => { + return emit( + expr(assign(prop(obj, propName), serialize(value[propName]))) + ); + }); return obj; } else if (typeof value === "function") { + if (globals.has(value)) { + return emitVarDecl("const", uniqueName(), globals.get(value)!()); + } + + if (options?.serialize) { + const result = options.serialize(value); + if (result === false) { + // do not serialize + return emitVarDecl("const", uniqueName(), undefined_expr()); + } else if (result !== true) { + value = result; + } + } + // if this is not compiled by functionless, we can only serialize it if it is exported by a module const mod = requireCache.get(value); @@ -374,6 +476,19 @@ export function serializeClosure( if (ast === undefined) { // TODO: check if this is an intrinsic, such as Object, Function, Array, Date, etc. if (mod === undefined) { + if (value.name === "bound requireModuleOrMock") { + return id("require"); + } else if (value.name === "Object") { + return serialize(Object.prototype); + } else { + const parsed = ts.createSourceFile( + "", + `(${value.toString()})`, + ts.ScriptTarget.Latest + ).statements[0]; + + return (parsed as ts.ExpressionStatement).expression; + } throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); @@ -381,7 +496,32 @@ export function serializeClosure( return emitRequire(mod); } else if (isFunctionLike(ast)) { - return toTS(ast) as ts.Expression; + const func = emitVarDecl( + "const", + uniqueName(), + toTS(ast) as ts.Expression + ); + + // for each of the object's own properties, emit a statement that assigns the value of that property + // vObj.propName = vValue + Object.getOwnPropertyNames(value).forEach((propName) => { + const propDescriptor = Object.getOwnPropertyDescriptor( + value, + propName + ); + if (propDescriptor?.writable) { + if (propDescriptor.get || propDescriptor.set) { + } else { + emit( + expr( + assign(prop(func, propName), serialize(propDescriptor.value)) + ) + ); + } + } + }); + + return func; } else if (isClassDecl(ast) || isClassExpr(ast)) { return serializeClass(value, ast); } else if (isMethodDecl(ast)) { From 6fd5475f26177c6bd65f485f3d551ec6237c3efe Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 12 Aug 2022 19:46:46 -0700 Subject: [PATCH 066/107] chore: cleanup --- src/api.ts | 2 +- src/appsync.ts | 2 +- src/expression.ts | 4 +- src/function.ts | 112 +- src/integration.ts | 5 +- src/serialize-closure.ts | 225 +- src/statement.ts | 6 +- .../serialize-closure.test.ts.snap | 6436 +++++++++++++++-- test/serialize-closure.test.ts | 2 +- 9 files changed, 5912 insertions(+), 882 deletions(-) diff --git a/src/api.ts b/src/api.ts index 3c9b2667..635a77a6 100644 --- a/src/api.ts +++ b/src/api.ts @@ -748,7 +748,7 @@ export class APIGatewayVTL extends VTL { const serviceCall = new IntegrationImpl(integration); return this.integrate(serviceCall, expr); } else if (isReferenceExpr(expr.expr) || isThisExpr(expr.expr)) { - const ref = expr.expr.ref(); + const ref = expr.expr.ref?.(); if (ref === Number) { // Number() = 0 return expr.args[0] ? this.exprToJson(expr.args[0]) : "0"; diff --git a/src/appsync.ts b/src/appsync.ts index fb67a984..09e0d31f 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -150,7 +150,7 @@ export class AppsyncVTL extends VTL { protected dereference(id: Identifier | ReferenceExpr | ThisExpr): string { if (isReferenceExpr(id) || isThisExpr(id)) { - const ref = id.ref(); + const ref = id.ref?.(); if (ref === $util) { return "$util"; } diff --git a/src/expression.ts b/src/expression.ts index e84c3745..840c40eb 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -898,10 +898,10 @@ export class ThisExpr extends BaseExpr { /** * Produce the value of `this` */ - readonly ref: () => T + readonly ref?: () => T ) { super(NodeKind.ThisExpr, span, arguments); - this.ensure(ref, "ref", ["function"]); + this.ensure(ref, "ref", ["undefined", "function"]); } } diff --git a/src/function.ts b/src/function.ts index 69c7bb0f..55770057 100644 --- a/src/function.ts +++ b/src/function.ts @@ -507,8 +507,24 @@ interface FunctionBase { } export enum SerializerImpl { - ASYNC, - SYNC, + /** + * The default serializer, uses the v8 inspector API to introspect closures. + * + * It is slow and has caveats such as not properly serializing stable references to variables. + * + * @see https://github.com/functionless/nodejs-closure-serializer + */ + STABLE_DEBUGGER, + /** + * A new experimental serializer that makes use of Functionless's SWC AST + * reflection library that decorates syntax for use at runtime. + * + * It has not been as well tested, but is fast, synchronous and has support for + * stable references and other features. + * + * @see https://www.npmjs.com/package/@functionless/ast-reflection + */ + EXPERIMENTAL_SWC, } const PromisesSymbol = Symbol.for("functionless.Function.promises"); @@ -712,17 +728,17 @@ export class Function< await callbackLambdaCode.generate( nativeIntegrationsPrewarm, // TODO: make default ASYNC until we are happy - props?.serializer ?? SerializerImpl.SYNC + props?.serializer ?? SerializerImpl.EXPERIMENTAL_SWC ); } catch (e) { if (e instanceof SynthError) { throw new SynthError( e.code, - `While serializing ${_resource.node.path}:\n\n${e.message}` + `While serializing ${_resource.node.path}:\n\n${e.message}\n${e.stack}` ); } else if (e instanceof Error) { throw Error( - `While serializing ${_resource.node.path}:\n\n${e.message}` + `While serializing ${_resource.node.path}:\n\n${e.message}\n${e.stack}` ); } } @@ -919,7 +935,7 @@ export async function serialize( const preWarms = integrationPrewarms; const result = - serializerImpl === SerializerImpl.SYNC + serializerImpl === SerializerImpl.EXPERIMENTAL_SWC ? serializeClosure( integrationPrewarms.length > 0 ? () => { @@ -928,6 +944,7 @@ export async function serialize( } : f, { + shouldCaptureProp, serialize: serializeHook, isFactoryFunction: integrationPrewarms.length > 0, } @@ -979,15 +996,55 @@ export async function serialize( return ts.visitEachChild(node, eraseBindAndRegister, ctx); }, ], - shouldCaptureProp: (_, propName) => { - // do not serialize the AST property on functions - return propName !== ReflectionSymbols.AST; - }, + serialize: serializeHook, + shouldCaptureProp, } ) ).text; + /** + * A map of token id to unique index. + * Keeps the serialized function rom changing when the token IDs change. + */ + const tokenIdLookup = new Map(); + + const tokenContext: TokenContext[] = tokens.map((t, i) => { + const id = /\${Token\[.*\.([0-9]*)\]}/g.exec(t)?.[1]; + if (!id) { + throw Error("Unrecognized token format, no id found: " + t); + } + + const envId = + id in tokenIdLookup + ? tokenIdLookup.get(id) + : tokenIdLookup.set(id, i).get(id); + + return { + token: t, + // env variables must start with a alpha character + env: `env__functionless${envId}`, + }; + }); + + // replace all tokens in the form "${Token[{anything}.{id}]}" -> process.env.env__functionless{id} + // this doesn't solve for tokens like "arn:${Token[{anything}.{id}]}:something" -> "arn:" + process.env.env__functionless{id} + ":something" + const resultText = tokenContext.reduce( + // TODO: support templated strings + (r, t) => r.split(`"${t.token}"`).join(`process.env.${t.env}`), + result + ); + + return [resultText, tokenContext]; + + function shouldCaptureProp( + _: any, + propName: string | symbol | number + ): boolean { + // do not serialize the AST property on functions + return propName !== ReflectionSymbols.AST; + } + function serializeHook(obj: any): any { if (typeof obj === "string") { const reversed = @@ -1142,46 +1199,13 @@ export async function serialize( return resolvable; } } - - /** - * A map of token id to unique index. - * Keeps the serialized function rom changing when the token IDs change. - */ - const tokenIdLookup = new Map(); - - const tokenContext: TokenContext[] = tokens.map((t, i) => { - const id = /\${Token\[.*\.([0-9]*)\]}/g.exec(t)?.[1]; - if (!id) { - throw Error("Unrecognized token format, no id found: " + t); - } - - const envId = - id in tokenIdLookup - ? tokenIdLookup.get(id) - : tokenIdLookup.set(id, i).get(id); - - return { - token: t, - // env variables must start with a alpha character - env: `env__functionless${envId}`, - }; - }); - - // replace all tokens in the form "${Token[{anything}.{id}]}" -> process.env.env__functionless{id} - // this doesn't solve for tokens like "arn:${Token[{anything}.{id}]}:something" -> "arn:" + process.env.env__functionless{id} + ":something" - const resultText = tokenContext.reduce( - // TODO: support templated strings - (r, t) => r.split(`"${t.token}"`).join(`process.env.${t.env}`), - result - ); - - return [resultText, tokenContext]; } /** * Bundles a serialized function with esbuild. */ export async function bundle(text: string): Promise { + fs.writeFileSync("a.js", text); const bundle = await esbuild.build({ stdin: { contents: text, diff --git a/src/integration.ts b/src/integration.ts index 590ca7c9..d98e6c91 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -400,7 +400,10 @@ export function tryResolveReferences( return tryResolveReferences(defaultValue, undefined); } } else if (isReferenceExpr(node) || isThisExpr(node)) { - return [node.ref()]; + const ref = node.ref?.(); + if (ref) { + return [ref]; + } } else if (isIdentifier(node)) { return tryResolveReferences(node.lookup(), defaultValue); } else if (isBindingElem(node)) { diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index c9d80e45..26931efb 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -114,7 +114,7 @@ export interface SerializeClosureProps extends esbuild.BuildOptions { * A function to prevent serialization of certain objects captured during the serialization. Primarily used to * prevent potential cycles. */ - serialize: (o: any) => boolean | any; + serialize?: (o: any) => boolean | any; /** * A function to prevent serialization of a {@link property} on an {@link obj} * @@ -147,6 +147,8 @@ const globals = new Map ts.Expression>([ [RegExp.prototype, () => prop(id("RegExp"), "prototype")], [Error, () => id("Error")], [Error.prototype, () => prop(id("Error"), "prototype")], + [JSON, () => id("JSON")], + [Promise, () => id("Promise")], ]); /** @@ -167,42 +169,40 @@ export function serializeClosure( } const requireCache = new Map( - Object.entries(Object.getOwnPropertyDescriptors(require.cache)).flatMap( - ([path, module]) => { - try { - return [ - [ - module.value?.exports as any, - { - path: module.value?.path, - exportName: undefined, - exportValue: module.value?.exports, - module, - }, - ], - ...(Object.entries( - Object.getOwnPropertyDescriptors(module.value?.exports ?? {}) - ).map(([exportName, exportValue]) => { - try { - return [ - exportValue.value, - { - path, - exportName, - exportValue: exportValue.value, - module: module.value, - }, - ]; - } catch (err) { - throw err; - } - }) as [any, RequiredModule][]), - ]; - } catch (err) { - throw err; - } + Object.entries(require.cache).flatMap(([path, module]) => { + try { + return [ + [ + module?.exports as any, + { + path: module?.path, + exportName: undefined, + exportValue: module?.exports, + module, + }, + ], + ...(Object.entries( + Object.getOwnPropertyDescriptors(module?.exports ?? {}) + ).map(([exportName, exportValue]) => { + try { + return [ + exportValue.value, + { + path, + exportName, + exportValue: exportValue.value, + module: module, + }, + ]; + } catch (err) { + throw err; + } + }) as [any, RequiredModule][]), + ]; + } catch (err) { + throw err; } - ) + }) ); let i = 0; @@ -250,29 +250,33 @@ export function serializeClosure( if (options?.useESBuild === false) { return script; } else { - const bundle = esbuild.buildSync({ - stdin: { - contents: script, - resolveDir: process.cwd(), - }, - bundle: true, - write: false, - metafile: true, - platform: "node", - target: "node14", - external: [ - "aws-sdk", - "aws-cdk-lib", - "esbuild", - ...(options?.external ?? []), - ], - }); + try { + const bundle = esbuild.buildSync({ + stdin: { + contents: script, + resolveDir: process.cwd(), + }, + bundle: true, + write: false, + metafile: true, + platform: "node", + target: "node14", + external: [ + "aws-sdk", + "aws-cdk-lib", + "esbuild", + ...(options?.external ?? []), + ], + }); - if (bundle.outputFiles[0] === undefined) { - throw new Error("No output files after bundling with ES Build"); - } + if (bundle.outputFiles[0] === undefined) { + throw new Error("No output files after bundling with ES Build"); + } - return bundle.outputFiles[0].text; + return bundle.outputFiles[0].text; + } catch (err) { + throw err; + } } function emit(...stmts: ts.Statement[]) { @@ -415,7 +419,7 @@ export function serializeClosure( const mod = requireCache.get(value); - if (mod) { + if (mod && options?.useESBuild !== false) { return importMod(mod, value); } @@ -442,11 +446,21 @@ export function serializeClosure( // for each of the object's own properties, emit a statement that assigns the value of that property // vObj.propName = vValue - Object.getOwnPropertyNames(value).forEach((propName) => { - return emit( - expr(assign(prop(obj, propName), serialize(value[propName]))) - ); - }); + Object.getOwnPropertyNames(value) + .filter((propName) => propName !== "constructor") + .filter( + (propName) => options?.shouldCaptureProp?.(value, propName) ?? true + ) + .forEach((propName) => { + const propDescriptor = Object.getOwnPropertyDescriptor( + value, + propName + ); + if (propDescriptor?.get || propDescriptor?.set) { + } else if (propDescriptor?.writable) { + emit(expr(assign(prop(obj, propName), serialize(value[propName])))); + } + }); return obj; } else if (typeof value === "function") { @@ -467,7 +481,7 @@ export function serializeClosure( // if this is not compiled by functionless, we can only serialize it if it is exported by a module const mod = requireCache.get(value); - if (mod) { + if (mod && options?.useESBuild !== false) { return importMod(mod, value); } @@ -480,21 +494,13 @@ export function serializeClosure( return id("require"); } else if (value.name === "Object") { return serialize(Object.prototype); - } else { - const parsed = ts.createSourceFile( - "", - `(${value.toString()})`, - ts.ScriptTarget.Latest - ).statements[0]; - - return (parsed as ts.ExpressionStatement).expression; } throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); } - return emitRequire(mod); + return importMod(mod, value); } else if (isFunctionLike(ast)) { const func = emitVarDecl( "const", @@ -504,22 +510,29 @@ export function serializeClosure( // for each of the object's own properties, emit a statement that assigns the value of that property // vObj.propName = vValue - Object.getOwnPropertyNames(value).forEach((propName) => { - const propDescriptor = Object.getOwnPropertyDescriptor( - value, - propName - ); - if (propDescriptor?.writable) { - if (propDescriptor.get || propDescriptor.set) { - } else { - emit( - expr( - assign(prop(func, propName), serialize(propDescriptor.value)) - ) - ); + Object.getOwnPropertyNames(value) + .filter( + (propName) => options?.shouldCaptureProp?.(value, propName) ?? true + ) + .forEach((propName) => { + const propDescriptor = Object.getOwnPropertyDescriptor( + value, + propName + ); + if (propDescriptor?.writable) { + if (propDescriptor.get || propDescriptor.set) { + } else { + emit( + expr( + assign( + prop(func, propName), + serialize(propDescriptor.value) + ) + ) + ); + } } - } - }); + }); return func; } else if (isClassDecl(ast) || isClassExpr(ast)) { @@ -541,7 +554,8 @@ export function serializeClosure( throw new Error(`undefined exports`); } if (!valueIds.has(exports)) { - valueIds.set(exports, emitRequire(getModuleId(mod.path))); + const moduleId = getModuleId(mod.path); + valueIds.set(exports, emitRequire(moduleId)); } const requireMod = valueIds.get(exports)!; const requireModExport = emitVarDecl( @@ -857,6 +871,13 @@ export function serializeClosure( } else if (isPrivateIdentifier(node)) { return ts.factory.createPrivateIdentifier(node.name); } else if (isPropAccessExpr(node)) { + if (isRef(node)) { + const value = deRef(node); + if (typeof value !== "function") { + return serialize(value); + } + } + return ts.factory.createPropertyAccessChain( toTS(node.expr) as ts.Expression, node.isOptional @@ -864,6 +885,24 @@ export function serializeClosure( : undefined, toTS(node.name) as ts.MemberName ); + + function deRef(expr: FunctionlessNode): any { + if (isReferenceExpr(expr)) { + return expr.ref(); + } else if (isPropAccessExpr(expr)) { + return deRef(expr.expr)?.[expr.name.name]; + } + throw new Error(`was not rooted`); + } + + function isRef(expr: FunctionlessNode): boolean { + if (isReferenceExpr(expr)) { + return true; + } else if (isPropAccessExpr(expr)) { + return isRef(expr.expr); + } + return false; + } } else if (isElementAccessExpr(node)) { return ts.factory.createElementAccessChain( toTS(node.expr) as ts.Expression, @@ -1375,8 +1414,14 @@ function object(obj: Record) { ); } +const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; + function prop(expr: ts.Expression, name: string) { - return ts.factory.createPropertyAccessExpression(expr, name); + if (name.match(propNameRegex)) { + return ts.factory.createPropertyAccessExpression(expr, name); + } else { + return ts.factory.createElementAccessExpression(expr, string(name)); + } } function assign(left: ts.Expression, right: ts.Expression) { diff --git a/src/statement.ts b/src/statement.ts index cf5520a0..cdf8e6f7 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -99,7 +99,11 @@ export class BlockStmt extends BaseStmt { readonly statements: Stmt[] ) { super(NodeKind.BlockStmt, span, arguments); - this.ensureArrayOf(statements, "statements", ["Stmt"]); + this.ensureArrayOf(statements, "statements", [ + "Stmt", + NodeKind.FunctionDecl, + NodeKind.ClassDecl, + ]); statements.forEach((stmt, i) => { stmt.prev = i > 0 ? statements[i - 1] : undefined; stmt.next = i + 1 < statements.length ? statements[i + 1] : undefined; diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 2be7213c..569de716 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -2,49 +2,58 @@ exports[`all observers of a free variable share the same reference 1`] = ` "// -var v1 = 0; -var v0 = function up() { - v1 += 2; +var v3 = 0; +var v2 = function up() { + v3 += 2; }; -var v2 = function down() { - v1 -= 1; +var v4 = {}; +v2.prototype = v4; +var v1 = v2; +var v6 = function down() { + v3 -= 1; }; -exports.handler = () => { - v0(); - v2(); - return v1; +var v7 = {}; +v6.prototype = v7; +var v5 = v6; +var v0 = () => { + v1(); + v5(); + return v3; }; +exports.handler = v0; " `; exports[`avoid name collision with a closure's lexical scope 1`] = ` "// -var v5 = 0; -var v4 = class v1 { +var v6 = 0; +var v5 = class v1 { foo() { - return v5 += 1; + return v6 += 1; } }; -var v3 = v4; -var v12 = class v2 extends v3 { +var v4 = v5; +var v3 = class v2 extends v4 { }; -var v0 = v12; -exports.handler = () => { - const v32 = new v0(); +var v12 = v3; +var v0 = () => { + const v32 = new v12(); return v32.foo(); }; +exports.handler = v0; " `; exports[`instantiating the AWS SDK 1`] = ` "// -var v1 = require(\\"aws-sdk\\"); -var v2 = v1; -var v0 = v2; -exports.handler = () => { - const client = new v0.DynamoDB(); +var v2 = require(\\"aws-sdk\\"); +var v3 = v2; +var v1 = v3; +var v0 = () => { + const client = new v1.DynamoDB(); return client.config.endpoint; }; +exports.handler = v0; " `; @@ -411,8 +420,8 @@ var require_tslib = __commonJS({ }; } function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v3) { - resolve({ value: v3, done: d }); + Promise.resolve(v).then(function(v4) { + resolve({ value: v4, done: d }); }, reject); } }; @@ -3657,8 +3666,8 @@ var require_v3 = __commonJS({ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var v3 = (0, _v.default)(\\"v3\\", 48, _md.default); - var _default = v3; + var v32 = (0, _v.default)(\\"v3\\", 48, _md.default); + var _default = v32; exports2.default = _default; } }); @@ -23719,727 +23728,5672 @@ var require_dist_cjs47 = __commonJS({ }); // -var v1 = require_dist_cjs47(); -var v2 = v1.DynamoDBClient; -var v0 = v2; -exports.handler = () => { - const client = new v0({}); +var v2 = require_dist_cjs47(); +var v3 = v2.DynamoDBClient; +var v1 = v3; +var v0 = () => { + const client = new v1({}); return client.config.serviceId; }; +exports.handler = v0; " `; -exports[`serialize a class declaration 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2++; - return v2; - } -}; -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method(); - foo.method(); - return v2; -}; -" -`; - -exports[`serialize a class declaration with constructor 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - constructor() { - v2 += 1; - } - method() { - v2++; - return v2; - } -}; -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method(); - foo.method(); - return v2; -}; -" -`; - -exports[`serialize a class hierarchy 1`] = ` -"// -var v4 = 0; -var v3 = class Foo { - method() { - return v4 += 1; - } -}; -var v2 = v3; -var v1 = class Bar extends v2 { - method() { - return super.method() + 1; - } -}; -var v0 = v1; -exports.handler = () => { - const bar = new v0(); - return [bar.method(), v4]; -}; -" -`; - -exports[`serialize a class mix-in 1`] = ` -"// -var v3 = 0; -var v2 = () => { - return class Foo { - method() { - return v3 += 1; +exports[`instantiating the AWS SDK without esbuild 1`] = ` +"const v2 = {}; +const v3 = {}; +v3.environment = \\"nodejs\\"; +const v4 = v3.engine; +v3.engine = v4; +const v5 = v3.userAgent; +v3.userAgent = v5; +const v6 = v3.uriEscape; +v3.uriEscape = v6; +const v7 = v3.uriEscapePath; +v3.uriEscapePath = v7; +const v8 = v3.urlParse; +v3.urlParse = v8; +const v9 = v3.urlFormat; +v3.urlFormat = v9; +const v10 = v3.queryStringParse; +v3.queryStringParse = v10; +const v11 = v3.queryParamsToString; +v3.queryParamsToString = v11; +const v12 = v3.readFileSync; +v3.readFileSync = v12; +const v13 = {}; +v13.encode = (function encode64(string) { + if (typeof string === \\"number\\") { + throw util.error(new Error(\\"Cannot base64 encode number \\" + string)); } - }; -}; -var v1 = class Bar extends v2() { - method() { - return super.method() + 1; - } -}; -var v0 = v1; -exports.handler = () => { - const bar = new v0(); - return [bar.method(), v3]; -}; -" -`; - -exports[`serialize a monkey-patched class getter 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - get method() { - return v2 += 1; - } -}; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { - return v2 += 2; -} }); -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method; - foo.method; - return v2; -}; -" -`; - -exports[`serialize a monkey-patched class getter and setter 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - set method(val) { - v2 += val; - } - get method() { - return v2; - } -}; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { - return v2 + 1; -}, set: function set(val) { - v2 += val + 1; -} }); -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; -" -`; - -exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - set method(val) { - v2 += val; - } - get method() { - return v2; - } -}; -Object.defineProperty(v1.prototype, \\"method\\", { get: function get() { - return v2 + 1; -}, set: Object.getOwnPropertyDescriptor(v1.prototype, \\"method\\").set }); -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; -" -`; - -exports[`serialize a monkey-patched class method 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2 += 1; - } -}; -v1.prototype.method = function() { - v2 += 2; -}; -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method(); - foo.method(); - return v2; -}; -" -`; - -exports[`serialize a monkey-patched class method that has been re-set 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2 += 1; - } -}; -v1.prototype.method = function() { - v2 += 2; -}; -var v0 = v1; -var v3 = function method() { - v2 += 1; -}; -exports.handler = () => { - const foo = new v0(); - foo.method(); - v0.prototype.method = v3; - foo.method(); - return v2; -}; -" -`; - -exports[`serialize a monkey-patched class setter 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - set method(val) { - v2 += val; - } -}; -Object.defineProperty(v1.prototype, \\"method\\", { set: function set(val) { - v2 += val + 1; -} }); -var v0 = v1; -exports.handler = () => { - const foo = new v0(); - foo.method = 1; - foo.method = 1; - return v2; -}; -" -`; - -exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; -}; - -// -var v2 = 0; -var _a; -var v1 = (_a = class { -}, __publicField(_a, \\"method\\", () => { - v2 += 1; -}), _a); -v1.method = function() { - v2 += 2; -}; -var v0 = v1; -exports.handler = () => { - v0.method(); - v0.method(); - return v2; -}; -" -`; - -exports[`serialize a monkey-patched static class method 1`] = ` -"// -var v2 = 0; -var v1 = class Foo { - method() { - v2 += 1; - } -}; -v1.method = function() { - v2 += 2; -}; -var v0 = v1; -exports.handler = () => { - v0.method(); - v0.method(); - return v2; -}; -" -`; - -exports[`serialize a monkey-patched static class property 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; -}; - -// -var _a; -var v1 = (_a = class { -}, __publicField(_a, \\"prop\\", 1), _a); -v1.prop = 2; -var v0 = v1; -exports.handler = () => { - return v0.prop; -}; -" -`; - -exports[`serialize an imported module 1`] = ` -"var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __esm = (fn, res) => function __init() { - return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; -}; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === \\"object\\" || typeof from === \\"function\\") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toCommonJS = (mod) => __copyProps(__defProp({}, \\"__esModule\\", { value: true }), mod); - -// src/node-kind.ts -var NodeKind, NodeKindNames; -var init_node_kind = __esm({ - \\"src/node-kind.ts\\"() { - \\"use strict\\"; - NodeKind = /* @__PURE__ */ ((NodeKind2) => { - NodeKind2[NodeKind2[\\"Argument\\"] = 0] = \\"Argument\\"; - NodeKind2[NodeKind2[\\"ArrayBinding\\"] = 1] = \\"ArrayBinding\\"; - NodeKind2[NodeKind2[\\"ArrayLiteralExpr\\"] = 2] = \\"ArrayLiteralExpr\\"; - NodeKind2[NodeKind2[\\"ArrowFunctionExpr\\"] = 3] = \\"ArrowFunctionExpr\\"; - NodeKind2[NodeKind2[\\"AwaitExpr\\"] = 4] = \\"AwaitExpr\\"; - NodeKind2[NodeKind2[\\"BigIntExpr\\"] = 5] = \\"BigIntExpr\\"; - NodeKind2[NodeKind2[\\"BinaryExpr\\"] = 6] = \\"BinaryExpr\\"; - NodeKind2[NodeKind2[\\"BindingElem\\"] = 7] = \\"BindingElem\\"; - NodeKind2[NodeKind2[\\"BlockStmt\\"] = 8] = \\"BlockStmt\\"; - NodeKind2[NodeKind2[\\"BooleanLiteralExpr\\"] = 9] = \\"BooleanLiteralExpr\\"; - NodeKind2[NodeKind2[\\"BreakStmt\\"] = 10] = \\"BreakStmt\\"; - NodeKind2[NodeKind2[\\"CallExpr\\"] = 11] = \\"CallExpr\\"; - NodeKind2[NodeKind2[\\"CaseClause\\"] = 12] = \\"CaseClause\\"; - NodeKind2[NodeKind2[\\"CatchClause\\"] = 13] = \\"CatchClause\\"; - NodeKind2[NodeKind2[\\"ClassDecl\\"] = 14] = \\"ClassDecl\\"; - NodeKind2[NodeKind2[\\"ClassExpr\\"] = 15] = \\"ClassExpr\\"; - NodeKind2[NodeKind2[\\"ClassStaticBlockDecl\\"] = 16] = \\"ClassStaticBlockDecl\\"; - NodeKind2[NodeKind2[\\"ComputedPropertyNameExpr\\"] = 17] = \\"ComputedPropertyNameExpr\\"; - NodeKind2[NodeKind2[\\"ConditionExpr\\"] = 18] = \\"ConditionExpr\\"; - NodeKind2[NodeKind2[\\"ConstructorDecl\\"] = 19] = \\"ConstructorDecl\\"; - NodeKind2[NodeKind2[\\"ContinueStmt\\"] = 20] = \\"ContinueStmt\\"; - NodeKind2[NodeKind2[\\"DebuggerStmt\\"] = 21] = \\"DebuggerStmt\\"; - NodeKind2[NodeKind2[\\"DefaultClause\\"] = 22] = \\"DefaultClause\\"; - NodeKind2[NodeKind2[\\"DeleteExpr\\"] = 23] = \\"DeleteExpr\\"; - NodeKind2[NodeKind2[\\"DoStmt\\"] = 24] = \\"DoStmt\\"; - NodeKind2[NodeKind2[\\"ElementAccessExpr\\"] = 25] = \\"ElementAccessExpr\\"; - NodeKind2[NodeKind2[\\"EmptyStmt\\"] = 26] = \\"EmptyStmt\\"; - NodeKind2[NodeKind2[\\"Err\\"] = 27] = \\"Err\\"; - NodeKind2[NodeKind2[\\"ExprStmt\\"] = 28] = \\"ExprStmt\\"; - NodeKind2[NodeKind2[\\"ForInStmt\\"] = 29] = \\"ForInStmt\\"; - NodeKind2[NodeKind2[\\"ForOfStmt\\"] = 30] = \\"ForOfStmt\\"; - NodeKind2[NodeKind2[\\"ForStmt\\"] = 31] = \\"ForStmt\\"; - NodeKind2[NodeKind2[\\"FunctionDecl\\"] = 32] = \\"FunctionDecl\\"; - NodeKind2[NodeKind2[\\"FunctionExpr\\"] = 33] = \\"FunctionExpr\\"; - NodeKind2[NodeKind2[\\"GetAccessorDecl\\"] = 34] = \\"GetAccessorDecl\\"; - NodeKind2[NodeKind2[\\"Identifier\\"] = 35] = \\"Identifier\\"; - NodeKind2[NodeKind2[\\"IfStmt\\"] = 36] = \\"IfStmt\\"; - NodeKind2[NodeKind2[\\"ImportKeyword\\"] = 37] = \\"ImportKeyword\\"; - NodeKind2[NodeKind2[\\"LabelledStmt\\"] = 38] = \\"LabelledStmt\\"; - NodeKind2[NodeKind2[\\"MethodDecl\\"] = 39] = \\"MethodDecl\\"; - NodeKind2[NodeKind2[\\"NewExpr\\"] = 40] = \\"NewExpr\\"; - NodeKind2[NodeKind2[\\"NullLiteralExpr\\"] = 41] = \\"NullLiteralExpr\\"; - NodeKind2[NodeKind2[\\"NumberLiteralExpr\\"] = 42] = \\"NumberLiteralExpr\\"; - NodeKind2[NodeKind2[\\"ObjectBinding\\"] = 43] = \\"ObjectBinding\\"; - NodeKind2[NodeKind2[\\"ObjectLiteralExpr\\"] = 44] = \\"ObjectLiteralExpr\\"; - NodeKind2[NodeKind2[\\"OmittedExpr\\"] = 45] = \\"OmittedExpr\\"; - NodeKind2[NodeKind2[\\"ParameterDecl\\"] = 46] = \\"ParameterDecl\\"; - NodeKind2[NodeKind2[\\"ParenthesizedExpr\\"] = 47] = \\"ParenthesizedExpr\\"; - NodeKind2[NodeKind2[\\"PostfixUnaryExpr\\"] = 48] = \\"PostfixUnaryExpr\\"; - NodeKind2[NodeKind2[\\"PrivateIdentifier\\"] = 49] = \\"PrivateIdentifier\\"; - NodeKind2[NodeKind2[\\"PropAccessExpr\\"] = 52] = \\"PropAccessExpr\\"; - NodeKind2[NodeKind2[\\"PropAssignExpr\\"] = 53] = \\"PropAssignExpr\\"; - NodeKind2[NodeKind2[\\"PropDecl\\"] = 54] = \\"PropDecl\\"; - NodeKind2[NodeKind2[\\"ReferenceExpr\\"] = 55] = \\"ReferenceExpr\\"; - NodeKind2[NodeKind2[\\"RegexExpr\\"] = 56] = \\"RegexExpr\\"; - NodeKind2[NodeKind2[\\"ReturnStmt\\"] = 57] = \\"ReturnStmt\\"; - NodeKind2[NodeKind2[\\"SetAccessorDecl\\"] = 58] = \\"SetAccessorDecl\\"; - NodeKind2[NodeKind2[\\"SpreadAssignExpr\\"] = 59] = \\"SpreadAssignExpr\\"; - NodeKind2[NodeKind2[\\"SpreadElementExpr\\"] = 60] = \\"SpreadElementExpr\\"; - NodeKind2[NodeKind2[\\"StringLiteralExpr\\"] = 61] = \\"StringLiteralExpr\\"; - NodeKind2[NodeKind2[\\"SuperKeyword\\"] = 62] = \\"SuperKeyword\\"; - NodeKind2[NodeKind2[\\"SwitchStmt\\"] = 63] = \\"SwitchStmt\\"; - NodeKind2[NodeKind2[\\"TaggedTemplateExpr\\"] = 64] = \\"TaggedTemplateExpr\\"; - NodeKind2[NodeKind2[\\"TemplateExpr\\"] = 65] = \\"TemplateExpr\\"; - NodeKind2[NodeKind2[\\"ThisExpr\\"] = 66] = \\"ThisExpr\\"; - NodeKind2[NodeKind2[\\"ThrowStmt\\"] = 67] = \\"ThrowStmt\\"; - NodeKind2[NodeKind2[\\"TryStmt\\"] = 68] = \\"TryStmt\\"; - NodeKind2[NodeKind2[\\"TypeOfExpr\\"] = 69] = \\"TypeOfExpr\\"; - NodeKind2[NodeKind2[\\"UnaryExpr\\"] = 70] = \\"UnaryExpr\\"; - NodeKind2[NodeKind2[\\"UndefinedLiteralExpr\\"] = 71] = \\"UndefinedLiteralExpr\\"; - NodeKind2[NodeKind2[\\"VariableDecl\\"] = 72] = \\"VariableDecl\\"; - NodeKind2[NodeKind2[\\"VariableDeclList\\"] = 73] = \\"VariableDeclList\\"; - NodeKind2[NodeKind2[\\"VariableStmt\\"] = 74] = \\"VariableStmt\\"; - NodeKind2[NodeKind2[\\"VoidExpr\\"] = 75] = \\"VoidExpr\\"; - NodeKind2[NodeKind2[\\"WhileStmt\\"] = 76] = \\"WhileStmt\\"; - NodeKind2[NodeKind2[\\"WithStmt\\"] = 77] = \\"WithStmt\\"; - NodeKind2[NodeKind2[\\"YieldExpr\\"] = 78] = \\"YieldExpr\\"; - NodeKind2[NodeKind2[\\"TemplateHead\\"] = 79] = \\"TemplateHead\\"; - NodeKind2[NodeKind2[\\"TemplateSpan\\"] = 80] = \\"TemplateSpan\\"; - NodeKind2[NodeKind2[\\"TemplateMiddle\\"] = 81] = \\"TemplateMiddle\\"; - NodeKind2[NodeKind2[\\"TemplateTail\\"] = 82] = \\"TemplateTail\\"; - NodeKind2[NodeKind2[\\"NoSubstitutionTemplateLiteral\\"] = 83] = \\"NoSubstitutionTemplateLiteral\\"; - return NodeKind2; - })(NodeKind || {}); - ((NodeKind2) => { - NodeKind2.BindingPattern = [ - 43 /* ObjectBinding */, - 1 /* ArrayBinding */ - ]; - NodeKind2.BindingNames = [ - 35 /* Identifier */, - 55 /* ReferenceExpr */, - ...NodeKind2.BindingPattern - ]; - NodeKind2.ClassMember = [ - 16 /* ClassStaticBlockDecl */, - 19 /* ConstructorDecl */, - 34 /* GetAccessorDecl */, - 39 /* MethodDecl */, - 54 /* PropDecl */, - 58 /* SetAccessorDecl */ - ]; - NodeKind2.ObjectElementExpr = [ - 34 /* GetAccessorDecl */, - 39 /* MethodDecl */, - 53 /* PropAssignExpr */, - 58 /* SetAccessorDecl */, - 59 /* SpreadAssignExpr */ - ]; - NodeKind2.PropName = [ - 35 /* Identifier */, - 49 /* PrivateIdentifier */, - 17 /* ComputedPropertyNameExpr */, - 61 /* StringLiteralExpr */, - 42 /* NumberLiteralExpr */ - ]; - NodeKind2.SwitchClause = [ - 12 /* CaseClause */, - 22 /* DefaultClause */ - ]; - NodeKind2.FunctionLike = [ - 32 /* FunctionDecl */, - 33 /* FunctionExpr */, - 3 /* ArrowFunctionExpr */ - ]; - })(NodeKind || (NodeKind = {})); - NodeKindNames = Object.fromEntries( - Object.entries(NodeKind).flatMap( - ([name, kind]) => typeof kind === \\"number\\" ? [[kind, name]] : [] - ) - ); - } -}); - -// src/guards.ts -var guards_exports = {}; -__export(guards_exports, { - isArgument: () => isArgument, - isArrayBinding: () => isArrayBinding, - isArrayLiteralExpr: () => isArrayLiteralExpr, - isArrowFunctionExpr: () => isArrowFunctionExpr, - isAwaitExpr: () => isAwaitExpr, - isBigIntExpr: () => isBigIntExpr, - isBinaryExpr: () => isBinaryExpr, - isBindingElem: () => isBindingElem, - isBindingPattern: () => isBindingPattern, - isBlockStmt: () => isBlockStmt, - isBooleanLiteralExpr: () => isBooleanLiteralExpr, - isBreakStmt: () => isBreakStmt, - isCallExpr: () => isCallExpr, - isCaseClause: () => isCaseClause, - isCatchClause: () => isCatchClause, - isClassDecl: () => isClassDecl, - isClassExpr: () => isClassExpr, - isClassLike: () => isClassLike, - isClassMember: () => isClassMember, - isClassStaticBlockDecl: () => isClassStaticBlockDecl, - isComputedPropertyNameExpr: () => isComputedPropertyNameExpr, - isConditionExpr: () => isConditionExpr, - isConstructorDecl: () => isConstructorDecl, - isContinueStmt: () => isContinueStmt, - isDebuggerStmt: () => isDebuggerStmt, - isDecl: () => isDecl, - isDefaultClause: () => isDefaultClause, - isDeleteExpr: () => isDeleteExpr, - isDoStmt: () => isDoStmt, - isElementAccessExpr: () => isElementAccessExpr, - isEmptyStmt: () => isEmptyStmt, - isErr: () => isErr, - isExpr: () => isExpr, - isExprStmt: () => isExprStmt, - isForInStmt: () => isForInStmt, - isForOfStmt: () => isForOfStmt, - isForStmt: () => isForStmt, - isFunctionDecl: () => isFunctionDecl, - isFunctionExpr: () => isFunctionExpr, - isFunctionLike: () => isFunctionLike, - isGetAccessorDecl: () => isGetAccessorDecl, - isIdentifier: () => isIdentifier, - isIfStmt: () => isIfStmt, - isImportKeyword: () => isImportKeyword, - isLabelledStmt: () => isLabelledStmt, - isLiteralExpr: () => isLiteralExpr, - isLiteralPrimitiveExpr: () => isLiteralPrimitiveExpr, - isMethodDecl: () => isMethodDecl, - isNewExpr: () => isNewExpr, - isNoSubstitutionTemplateLiteral: () => isNoSubstitutionTemplateLiteral, - isNode: () => isNode, - isNullLiteralExpr: () => isNullLiteralExpr, - isNumberLiteralExpr: () => isNumberLiteralExpr, - isObjectBinding: () => isObjectBinding, - isObjectElementExpr: () => isObjectElementExpr, - isObjectLiteralExpr: () => isObjectLiteralExpr, - isOmittedExpr: () => isOmittedExpr, - isParameterDecl: () => isParameterDecl, - isParenthesizedExpr: () => isParenthesizedExpr, - isPostfixUnaryExpr: () => isPostfixUnaryExpr, - isPrivateIdentifier: () => isPrivateIdentifier, - isPropAccessExpr: () => isPropAccessExpr, - isPropAssignExpr: () => isPropAssignExpr, - isPropDecl: () => isPropDecl, - isPropName: () => isPropName, - isReferenceExpr: () => isReferenceExpr, - isRegexExpr: () => isRegexExpr, - isReturnStmt: () => isReturnStmt, - isSetAccessorDecl: () => isSetAccessorDecl, - isSpreadAssignExpr: () => isSpreadAssignExpr, - isSpreadElementExpr: () => isSpreadElementExpr, - isStmt: () => isStmt, - isStringLiteralExpr: () => isStringLiteralExpr, - isSuperKeyword: () => isSuperKeyword, - isSwitchClause: () => isSwitchClause, - isSwitchStmt: () => isSwitchStmt, - isTaggedTemplateExpr: () => isTaggedTemplateExpr, - isTemplateExpr: () => isTemplateExpr, - isTemplateHead: () => isTemplateHead, - isTemplateMiddle: () => isTemplateMiddle, - isTemplateSpan: () => isTemplateSpan, - isTemplateTail: () => isTemplateTail, - isThisExpr: () => isThisExpr, - isThrowStmt: () => isThrowStmt, - isTryStmt: () => isTryStmt, - isTypeOfExpr: () => isTypeOfExpr, - isUnaryExpr: () => isUnaryExpr, - isUndefinedLiteralExpr: () => isUndefinedLiteralExpr, - isVariableDecl: () => isVariableDecl, - isVariableDeclList: () => isVariableDeclList, - isVariableReference: () => isVariableReference, - isVariableStmt: () => isVariableStmt, - isVoidExpr: () => isVoidExpr, - isWhileStmt: () => isWhileStmt, - isWithStmt: () => isWithStmt, - isYieldExpr: () => isYieldExpr, - typeGuard: () => typeGuard -}); -function isNode(a) { - return typeof (a == null ? void 0 : a.kind) === \\"number\\"; -} -function isExpr(a) { - return isNode(a) && a.nodeKind === \\"Expr\\"; -} -function isStmt(a) { - return isNode(a) && a.nodeKind === \\"Stmt\\"; -} -function isDecl(a) { - return isNode(a) && a.nodeKind === \\"Decl\\"; -} -function typeGuard(...kinds) { - return (a) => kinds.find((kind) => (a == null ? void 0 : a.kind) === kind) !== void 0; -} -function isVariableReference(expr) { - return isIdentifier(expr) || isPropAccessExpr(expr) || isElementAccessExpr(expr); -} -var isErr, isArgument, isArrayLiteralExpr, isArrowFunctionExpr, isAwaitExpr, isBigIntExpr, isBinaryExpr, isBooleanLiteralExpr, isCallExpr, isClassExpr, isComputedPropertyNameExpr, isConditionExpr, isDeleteExpr, isElementAccessExpr, isFunctionExpr, isIdentifier, isImportKeyword, isNewExpr, isNoSubstitutionTemplateLiteral, isNullLiteralExpr, isNumberLiteralExpr, isObjectLiteralExpr, isOmittedExpr, isParenthesizedExpr, isPostfixUnaryExpr, isPrivateIdentifier, isPropAccessExpr, isPropAssignExpr, isReferenceExpr, isRegexExpr, isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, isSuperKeyword, isTemplateExpr, isThisExpr, isTypeOfExpr, isUnaryExpr, isUndefinedLiteralExpr, isVoidExpr, isYieldExpr, isObjectElementExpr, isLiteralExpr, isLiteralPrimitiveExpr, isTemplateHead, isTemplateSpan, isTemplateMiddle, isTemplateTail, isBlockStmt, isBreakStmt, isCaseClause, isCatchClause, isContinueStmt, isDebuggerStmt, isDefaultClause, isDoStmt, isEmptyStmt, isExprStmt, isForInStmt, isForOfStmt, isForStmt, isIfStmt, isLabelledStmt, isReturnStmt, isSwitchStmt, isTaggedTemplateExpr, isThrowStmt, isTryStmt, isVariableStmt, isWhileStmt, isWithStmt, isSwitchClause, isFunctionLike, isClassLike, isClassDecl, isClassStaticBlockDecl, isConstructorDecl, isFunctionDecl, isGetAccessorDecl, isMethodDecl, isParameterDecl, isPropDecl, isSetAccessorDecl, isClassMember, isVariableDecl, isArrayBinding, isBindingElem, isObjectBinding, isPropName, isBindingPattern, isVariableDeclList; -var init_guards = __esm({ - \\"src/guards.ts\\"() { - \\"use strict\\"; - init_node_kind(); - isErr = typeGuard(27 /* Err */); - isArgument = typeGuard(0 /* Argument */); - isArrayLiteralExpr = typeGuard(2 /* ArrayLiteralExpr */); - isArrowFunctionExpr = typeGuard(3 /* ArrowFunctionExpr */); - isAwaitExpr = typeGuard(4 /* AwaitExpr */); - isBigIntExpr = typeGuard(5 /* BigIntExpr */); - isBinaryExpr = typeGuard(6 /* BinaryExpr */); - isBooleanLiteralExpr = typeGuard(9 /* BooleanLiteralExpr */); - isCallExpr = typeGuard(11 /* CallExpr */); - isClassExpr = typeGuard(15 /* ClassExpr */); - isComputedPropertyNameExpr = typeGuard( - 17 /* ComputedPropertyNameExpr */ - ); - isConditionExpr = typeGuard(18 /* ConditionExpr */); - isDeleteExpr = typeGuard(23 /* DeleteExpr */); - isElementAccessExpr = typeGuard(25 /* ElementAccessExpr */); - isFunctionExpr = typeGuard(33 /* FunctionExpr */); - isIdentifier = typeGuard(35 /* Identifier */); - isImportKeyword = typeGuard(37 /* ImportKeyword */); - isNewExpr = typeGuard(40 /* NewExpr */); - isNoSubstitutionTemplateLiteral = typeGuard( - 83 /* NoSubstitutionTemplateLiteral */ - ); - isNullLiteralExpr = typeGuard(41 /* NullLiteralExpr */); - isNumberLiteralExpr = typeGuard(42 /* NumberLiteralExpr */); - isObjectLiteralExpr = typeGuard(44 /* ObjectLiteralExpr */); - isOmittedExpr = typeGuard(45 /* OmittedExpr */); - isParenthesizedExpr = typeGuard(47 /* ParenthesizedExpr */); - isPostfixUnaryExpr = typeGuard(48 /* PostfixUnaryExpr */); - isPrivateIdentifier = typeGuard(49 /* PrivateIdentifier */); - isPropAccessExpr = typeGuard(52 /* PropAccessExpr */); - isPropAssignExpr = typeGuard(53 /* PropAssignExpr */); - isReferenceExpr = typeGuard(55 /* ReferenceExpr */); - isRegexExpr = typeGuard(56 /* RegexExpr */); - isSpreadAssignExpr = typeGuard(59 /* SpreadAssignExpr */); - isSpreadElementExpr = typeGuard(60 /* SpreadElementExpr */); - isStringLiteralExpr = typeGuard(61 /* StringLiteralExpr */); - isSuperKeyword = typeGuard(62 /* SuperKeyword */); - isTemplateExpr = typeGuard(65 /* TemplateExpr */); - isThisExpr = typeGuard(66 /* ThisExpr */); - isTypeOfExpr = typeGuard(69 /* TypeOfExpr */); - isUnaryExpr = typeGuard(70 /* UnaryExpr */); - isUndefinedLiteralExpr = typeGuard(71 /* UndefinedLiteralExpr */); - isVoidExpr = typeGuard(75 /* VoidExpr */); - isYieldExpr = typeGuard(78 /* YieldExpr */); - isObjectElementExpr = typeGuard( - 53 /* PropAssignExpr */, - 59 /* SpreadAssignExpr */ - ); - isLiteralExpr = typeGuard( - 2 /* ArrayLiteralExpr */, - 9 /* BooleanLiteralExpr */, - 71 /* UndefinedLiteralExpr */, - 41 /* NullLiteralExpr */, - 42 /* NumberLiteralExpr */, - 44 /* ObjectLiteralExpr */, - 61 /* StringLiteralExpr */ - ); - isLiteralPrimitiveExpr = typeGuard( - 9 /* BooleanLiteralExpr */, - 41 /* NullLiteralExpr */, - 42 /* NumberLiteralExpr */, - 61 /* StringLiteralExpr */ - ); - isTemplateHead = typeGuard(79 /* TemplateHead */); - isTemplateSpan = typeGuard(80 /* TemplateSpan */); - isTemplateMiddle = typeGuard(81 /* TemplateMiddle */); - isTemplateTail = typeGuard(82 /* TemplateTail */); - isBlockStmt = typeGuard(8 /* BlockStmt */); - isBreakStmt = typeGuard(10 /* BreakStmt */); - isCaseClause = typeGuard(12 /* CaseClause */); - isCatchClause = typeGuard(13 /* CatchClause */); - isContinueStmt = typeGuard(20 /* ContinueStmt */); - isDebuggerStmt = typeGuard(21 /* DebuggerStmt */); - isDefaultClause = typeGuard(22 /* DefaultClause */); - isDoStmt = typeGuard(24 /* DoStmt */); - isEmptyStmt = typeGuard(26 /* EmptyStmt */); - isExprStmt = typeGuard(28 /* ExprStmt */); - isForInStmt = typeGuard(29 /* ForInStmt */); - isForOfStmt = typeGuard(30 /* ForOfStmt */); - isForStmt = typeGuard(31 /* ForStmt */); - isIfStmt = typeGuard(36 /* IfStmt */); - isLabelledStmt = typeGuard(38 /* LabelledStmt */); - isReturnStmt = typeGuard(57 /* ReturnStmt */); - isSwitchStmt = typeGuard(63 /* SwitchStmt */); - isTaggedTemplateExpr = typeGuard(64 /* TaggedTemplateExpr */); - isThrowStmt = typeGuard(67 /* ThrowStmt */); - isTryStmt = typeGuard(68 /* TryStmt */); - isVariableStmt = typeGuard(74 /* VariableStmt */); - isWhileStmt = typeGuard(76 /* WhileStmt */); - isWithStmt = typeGuard(77 /* WithStmt */); - isSwitchClause = typeGuard( - 12 /* CaseClause */, - 22 /* DefaultClause */ - ); - isFunctionLike = typeGuard( - 32 /* FunctionDecl */, - 33 /* FunctionExpr */, - 3 /* ArrowFunctionExpr */ - ); - isClassLike = typeGuard(14 /* ClassDecl */, 15 /* ClassExpr */); - isClassDecl = typeGuard(14 /* ClassDecl */); - isClassStaticBlockDecl = typeGuard(16 /* ClassStaticBlockDecl */); - isConstructorDecl = typeGuard(19 /* ConstructorDecl */); - isFunctionDecl = typeGuard(32 /* FunctionDecl */); - isGetAccessorDecl = typeGuard(34 /* GetAccessorDecl */); - isMethodDecl = typeGuard(39 /* MethodDecl */); - isParameterDecl = typeGuard(46 /* ParameterDecl */); - isPropDecl = typeGuard(54 /* PropDecl */); - isSetAccessorDecl = typeGuard(58 /* SetAccessorDecl */); - isClassMember = typeGuard( - 16 /* ClassStaticBlockDecl */, - 19 /* ConstructorDecl */, - 39 /* MethodDecl */, - 54 /* PropDecl */ - ); - isVariableDecl = typeGuard(72 /* VariableDecl */); - isArrayBinding = typeGuard(1 /* ArrayBinding */); - isBindingElem = typeGuard(7 /* BindingElem */); - isObjectBinding = typeGuard(43 /* ObjectBinding */); - isPropName = typeGuard( - 17 /* ComputedPropertyNameExpr */, - 35 /* Identifier */, - 42 /* NumberLiteralExpr */, - 61 /* StringLiteralExpr */ - ); - isBindingPattern = (a) => isNode(a) && (isObjectBinding(a) || isArrayBinding(a)); - isVariableDeclList = typeGuard(73 /* VariableDeclList */); - } + if (string === null || typeof string === \\"undefined\\") { + return string; + } + var buf = util.buffer.toBuffer(string); + return buf.toString(\\"base64\\"); }); - -// -var v0 = (init_guards(), __toCommonJS(guards_exports)); -var v1 = v0.isNode; -exports.handler = v1; +v13.decode = (function decode64(string) { + if (typeof string === \\"number\\") { + throw util.error(new Error(\\"Cannot base64 decode number \\" + string)); + } + if (string === null || typeof string === \\"undefined\\") { + return string; + } + return util.buffer.toBuffer(string, \\"base64\\"); +}); +v3.base64 = v13; +const v14 = {}; +v14.toBuffer = (function (data, encoding) { + return (typeof util.Buffer.from === \\"function\\" && util.Buffer.from !== Uint8Array.from) ? util.Buffer.from(data, encoding) : new util.Buffer(data, encoding); +}); +v14.alloc = (function (size, fill, encoding) { + if (typeof size !== \\"number\\") { + throw new Error(\\"size passed to alloc must be a number.\\"); + } + if (typeof util.Buffer.alloc === \\"function\\") { + return util.Buffer.alloc(size, fill, encoding); + } + else { + var buf = new util.Buffer(size); + if (fill !== undefined && typeof buf.fill === \\"function\\") { + buf.fill(fill, undefined, undefined, encoding); + } + return buf; + } +}); +v14.toStream = (function toStream(buffer) { + if (!util.Buffer.isBuffer(buffer)) + buffer = util.buffer.toBuffer(buffer); + var readable = new (util.stream.Readable)(); + var pos = 0; + readable._read = function (size) { + if (pos >= buffer.length) + return readable.push(null); + var end = pos + size; + if (end > buffer.length) + end = buffer.length; + readable.push(buffer.slice(pos, end)); + pos = end; + }; + return readable; +}); +v14.concat = (function (buffers) { + var length = 0, offset = 0, buffer = null, i; + for (i = 0; i < buffers.length; i++) { + length += buffers[i].length; + } + buffer = util.buffer.alloc(length); + for (i = 0; i < buffers.length; i++) { + buffers[i].copy(buffer, offset); + offset += buffers[i].length; + } + return buffer; +}); +v3.buffer = v14; +const v15 = {}; +v15.byteLength = (function byteLength(string) { + if (string === null || string === undefined) + return 0; + if (typeof string === \\"string\\") + string = util.buffer.toBuffer(string); + if (typeof string.byteLength === \\"number\\") { + return string.byteLength; + } + else if (typeof string.length === \\"number\\") { + return string.length; + } + else if (typeof string.size === \\"number\\") { + return string.size; + } + else if (typeof string.path === \\"string\\") { + return require(\\"fs\\").lstatSync(string.path).size; + } + else { + throw util.error(new Error(\\"Cannot determine length of \\" + string), { object: string }); + } +}); +v15.upperFirst = (function upperFirst(string) { + return string[0].toUpperCase() + string.substr(1); +}); +v15.lowerFirst = (function lowerFirst(string) { + return string[0].toLowerCase() + string.substr(1); +}); +v3.string = v15; +const v16 = {}; +v16.parse = (function string(ini) { + var currentSection, map = {}; + util.arrayEach(ini.split(/\\\\r?\\\\n/), function (line) { + line = line.split(/(^|\\\\s)[;#]/)[0].trim(); + var isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (currentSection === \\"__proto__\\" || currentSection.split(/\\\\s/)[1] === \\"__proto__\\") { + throw util.error(new Error(\\"Cannot load profile name '\\" + currentSection + \\"' from shared ini file.\\")); + } + } + else if (currentSection) { + var indexOfEqualsSign = line.indexOf(\\"=\\"); + var start = 0; + var end = line.length - 1; + var isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + var name = line.substring(0, indexOfEqualsSign).trim(); + var value = line.substring(indexOfEqualsSign + 1).trim(); + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + }); + return map; +}); +v3.ini = v16; +const v17 = {}; +v17.noop = (function () { }); +v17.callback = (function (err) { if (err) + throw err; }); +v17.makeAsync = (function makeAsync(fn, expectedArgs) { + if (expectedArgs && expectedArgs <= fn.length) { + return fn; + } + return function () { + var args = Array.prototype.slice.call(arguments, 0); + var callback = args.pop(); + var result = fn.apply(null, args); + callback(result); + }; +}); +v3.fn = v17; +const v18 = {}; +v18.getDate = (function getDate() { + if (!AWS) + AWS = require(\\"./core\\"); + if (AWS.config.systemClockOffset) { + return new Date(new Date().getTime() + AWS.config.systemClockOffset); + } + else { + return new Date(); + } +}); +v18.iso8601 = (function iso8601(date) { + if (date === undefined) { + date = util.date.getDate(); + } + return date.toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); +}); +v18.rfc822 = (function rfc822(date) { + if (date === undefined) { + date = util.date.getDate(); + } + return date.toUTCString(); +}); +v18.unixTimestamp = (function unixTimestamp(date) { + if (date === undefined) { + date = util.date.getDate(); + } + return date.getTime() / 1000; +}); +v18.from = (function format(date) { + if (typeof date === \\"number\\") { + return new Date(date * 1000); + } + else { + return new Date(date); + } +}); +v18.format = (function format(date, formatter) { + if (!formatter) + formatter = \\"iso8601\\"; + return util.date[formatter](util.date.from(date)); +}); +v18.parseTimestamp = (function parseTimestamp(value) { + if (typeof value === \\"number\\") { + return new Date(value * 1000); + } + else if (value.match(/^\\\\d+$/)) { + return new Date(value * 1000); + } + else if (value.match(/^\\\\d{4}/)) { + return new Date(value); + } + else if (value.match(/^\\\\w{3},/)) { + return new Date(value); + } + else { + throw util.error(new Error(\\"unhandled timestamp format: \\" + value), { code: \\"TimestampParserError\\" }); + } +}); +v3.date = v18; +const v19 = {}; +const v20 = []; +v20.push(0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117); +v19.crc32Table = v20; +v19.crc32 = (function crc32(data) { + var tbl = util.crypto.crc32Table; + var crc = 0 ^ -1; + if (typeof data === \\"string\\") { + data = util.buffer.toBuffer(data); + } + for (var i = 0; i < data.length; i++) { + var code = data.readUInt8(i); + crc = (crc >>> 8) ^ tbl[(crc ^ code) & 255]; + } + return (crc ^ -1) >>> 0; +}); +v19.hmac = (function hmac(key, string, digest, fn) { + if (!digest) + digest = \\"binary\\"; + if (digest === \\"buffer\\") { + digest = undefined; + } + if (!fn) + fn = \\"sha256\\"; + if (typeof string === \\"string\\") + string = util.buffer.toBuffer(string); + return util.crypto.lib.createHmac(fn, key).update(string).digest(digest); +}); +v19.md5 = (function md5(data, digest, callback) { + return util.crypto.hash(\\"md5\\", data, digest, callback); +}); +v19.sha256 = (function sha256(data, digest, callback) { + return util.crypto.hash(\\"sha256\\", data, digest, callback); +}); +v19.hash = (function (algorithm, data, digest, callback) { + var hash = util.crypto.createHash(algorithm); + if (!digest) { + digest = \\"binary\\"; + } + if (digest === \\"buffer\\") { + digest = undefined; + } + if (typeof data === \\"string\\") + data = util.buffer.toBuffer(data); + var sliceFn = util.arraySliceFn(data); + var isBuffer = util.Buffer.isBuffer(data); + if (util.isBrowser() && typeof ArrayBuffer !== \\"undefined\\" && data && data.buffer instanceof ArrayBuffer) + isBuffer = true; + if (callback && typeof data === \\"object\\" && typeof data.on === \\"function\\" && !isBuffer) { + data.on(\\"data\\", function (chunk) { hash.update(chunk); }); + data.on(\\"error\\", function (err) { callback(err); }); + data.on(\\"end\\", function () { callback(null, hash.digest(digest)); }); + } + else if (callback && sliceFn && !isBuffer && typeof FileReader !== \\"undefined\\") { + var index = 0, size = 1024 * 512; + var reader = new FileReader(); + reader.onerror = function () { + callback(new Error(\\"Failed to read data.\\")); + }; + reader.onload = function () { + var buf = new util.Buffer(new Uint8Array(reader.result)); + hash.update(buf); + index += buf.length; + reader._continueReading(); + }; + reader._continueReading = function () { + if (index >= data.size) { + callback(null, hash.digest(digest)); + return; + } + var back = index + size; + if (back > data.size) + back = data.size; + reader.readAsArrayBuffer(sliceFn.call(data, index, back)); + }; + reader._continueReading(); + } + else { + if (util.isBrowser() && typeof data === \\"object\\" && !isBuffer) { + data = new util.Buffer(new Uint8Array(data)); + } + var out = hash.update(data).digest(digest); + if (callback) + callback(null, out); + return out; + } +}); +v19.toHex = (function toHex(data) { + var out = []; + for (var i = 0; i < data.length; i++) { + out.push((\\"0\\" + data.charCodeAt(i).toString(16)).substr(-2, 2)); + } + return out.join(\\"\\"); +}); +v19.createHash = (function createHash(algorithm) { + return util.crypto.lib.createHash(algorithm); +}); +const v21 = Object.create(null); +v21.__defineGetter__ = (function __defineGetter__() { [native, code]; }); +v21.__defineSetter__ = (function __defineSetter__() { [native, code]; }); +v21.hasOwnProperty = (function hasOwnProperty() { [native, code]; }); +v21.__lookupGetter__ = (function __lookupGetter__() { [native, code]; }); +v21.__lookupSetter__ = (function __lookupSetter__() { [native, code]; }); +v21.isPrototypeOf = (function isPrototypeOf() { [native, code]; }); +v21.propertyIsEnumerable = (function propertyIsEnumerable() { [native, code]; }); +v21.toString = (function toString() { [native, code]; }); +v21.valueOf = (function valueOf() { [native, code]; }); +v21.toLocaleString = (function toLocaleString() { [native, code]; }); +const v22 = Object.create(v21); +v22.checkPrime = (function checkPrime(candidate, options = {}, callback) { + if (typeof candidate === \\"bigint\\") + candidate = unsignedBigIntToBuffer(candidate, \\"candidate\\"); + if (!isAnyArrayBuffer(candidate) && !isArrayBufferView(candidate)) { + throw new ERR_INVALID_ARG_TYPE(\\"candidate\\", [ + \\"ArrayBuffer\\", + \\"TypedArray\\", + \\"Buffer\\", + \\"DataView\\", + \\"bigint\\", + ], candidate); + } + if (typeof options === \\"function\\") { + callback = options; + options = {}; + } + validateCallback(callback); + validateObject(options, \\"options\\"); + const { checks = 0, } = options; + validateUint32(checks, \\"options.checks\\"); + const job = new CheckPrimeJob(kCryptoJobAsync, candidate, checks); + job.ondone = callback; + job.run(); +}); +v22.checkPrimeSync = (function checkPrimeSync(candidate, options = {}) { + if (typeof candidate === \\"bigint\\") + candidate = unsignedBigIntToBuffer(candidate, \\"candidate\\"); + if (!isAnyArrayBuffer(candidate) && !isArrayBufferView(candidate)) { + throw new ERR_INVALID_ARG_TYPE(\\"candidate\\", [ + \\"ArrayBuffer\\", + \\"TypedArray\\", + \\"Buffer\\", + \\"DataView\\", + \\"bigint\\", + ], candidate); + } + validateObject(options, \\"options\\"); + const { checks = 0, } = options; + validateUint32(checks, \\"options.checks\\"); + const job = new CheckPrimeJob(kCryptoJobSync, candidate, checks); + const { 0: err, 1: result } = job.run(); + if (err) + throw err; + return result; +}); +v22.createCipheriv = (function createCipheriv(cipher, key, iv, options) { + return new Cipheriv(cipher, key, iv, options); +}); +v22.createDecipheriv = (function createDecipheriv(cipher, key, iv, options) { + return new Decipheriv(cipher, key, iv, options); +}); +v22.createDiffieHellman = (function createDiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) { + return new DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding); +}); +v22.createDiffieHellmanGroup = (function createDiffieHellmanGroup(name) { + return new DiffieHellmanGroup(name); +}); +v22.createECDH = (function createECDH(curve) { + return new ECDH(curve); +}); +v22.createHash = (function createHash(algorithm, options) { + return new Hash(algorithm, options); +}); +v22.createHmac = (function createHmac(hmac, key, options) { + return new Hmac(hmac, key, options); +}); +v22.createPrivateKey = (function createPrivateKey(key) { + const { format, type, data, passphrase } = prepareAsymmetricKey(key, kCreatePrivate); + let handle; + if (format === \\"jwk\\") { + handle = data; + } + else { + handle = new KeyObjectHandle(); + handle.init(kKeyTypePrivate, data, format, type, passphrase); + } + return new PrivateKeyObject(handle); +}); +v22.createPublicKey = (function createPublicKey(key) { + const { format, type, data, passphrase } = prepareAsymmetricKey(key, kCreatePublic); + let handle; + if (format === \\"jwk\\") { + handle = data; + } + else { + handle = new KeyObjectHandle(); + handle.init(kKeyTypePublic, data, format, type, passphrase); + } + return new PublicKeyObject(handle); +}); +v22.createSecretKey = (function createSecretKey(key, encoding) { + key = prepareSecretKey(key, encoding, true); + if (key.byteLength === 0) + throw new ERR_OUT_OF_RANGE(\\"key.byteLength\\", \\"> 0\\", key.byteLength); + const handle = new KeyObjectHandle(); + handle.init(kKeyTypeSecret, key); + return new SecretKeyObject(handle); +}); +v22.createSign = (function createSign(algorithm, options) { + return new Sign(algorithm, options); +}); +v22.createVerify = (function createVerify(algorithm, options) { + return new Verify(algorithm, options); +}); +v22.diffieHellman = (function diffieHellman(options) { + validateObject(options, \\"options\\"); + const { privateKey, publicKey } = options; + if (!(privateKey instanceof KeyObject)) + throw new ERR_INVALID_ARG_VALUE(\\"options.privateKey\\", privateKey); + if (!(publicKey instanceof KeyObject)) + throw new ERR_INVALID_ARG_VALUE(\\"options.publicKey\\", publicKey); + if (privateKey.type !== \\"private\\") + throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(privateKey.type, \\"private\\"); + if (publicKey.type !== \\"public\\" && publicKey.type !== \\"private\\") { + throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(publicKey.type, \\"private or public\\"); + } + const privateType = privateKey.asymmetricKeyType; + const publicType = publicKey.asymmetricKeyType; + if (privateType !== publicType || !dhEnabledKeyTypes.has(privateType)) { + throw new ERR_CRYPTO_INCOMPATIBLE_KEY(\\"key types for Diffie-Hellman\\", \`\${privateType} and \${publicType}\`); + } + return statelessDH(privateKey[kHandle], publicKey[kHandle]); +}); +v22.generatePrime = (function generatePrime(size, options, callback) { + validateUint32(size, \\"size\\", true); + if (typeof options === \\"function\\") { + callback = options; + options = {}; + } + validateCallback(callback); + const job = createRandomPrimeJob(kCryptoJobAsync, size, options); + job.ondone = (err, prime) => { + if (err) { + callback(err); + return; + } + callback(undefined, job.result(prime)); + }; + job.run(); +}); +v22.generatePrimeSync = (function generatePrimeSync(size, options = {}) { + validateUint32(size, \\"size\\", true); + const job = createRandomPrimeJob(kCryptoJobSync, size, options); + const { 0: err, 1: prime } = job.run(); + if (err) + throw err; + return job.result(prime); +}); +v22.getCiphers = (() => { + if (result === undefined) + result = fn(); + return ArrayPrototypeSlice(result); +}); +v22.getCipherInfo = (function getCipherInfo(nameOrNid, options) { + if (typeof nameOrNid !== \\"string\\" && typeof nameOrNid !== \\"number\\") { + throw new ERR_INVALID_ARG_TYPE(\\"nameOrNid\\", [\\"string\\", \\"number\\"], nameOrNid); + } + if (typeof nameOrNid === \\"number\\") + validateInt32(nameOrNid, \\"nameOrNid\\"); + let keyLength, ivLength; + if (options !== undefined) { + validateObject(options, \\"options\\"); + ({ keyLength, ivLength } = options); + if (keyLength !== undefined) + validateInt32(keyLength, \\"options.keyLength\\"); + if (ivLength !== undefined) + validateInt32(ivLength, \\"options.ivLength\\"); + } + const ret = _getCipherInfo({}, nameOrNid, keyLength, ivLength); + if (ret !== undefined) { + if (ret.name) + ret.name = StringPrototypeToLowerCase(ret.name); + if (ret.type) + ret.type = StringPrototypeToLowerCase(ret.type); + } + return ret; +}); +v22.getCurves = (() => { + if (result === undefined) + result = fn(); + return ArrayPrototypeSlice(result); +}); +v22.getDiffieHellman = (function createDiffieHellmanGroup(name) { + return new DiffieHellmanGroup(name); +}); +v22.getHashes = (() => { + if (result === undefined) + result = fn(); + return ArrayPrototypeSlice(result); +}); +v22.hkdf = (function hkdf(hash, key, salt, info, length, callback) { + ({ + hash, + key, + salt, + info, + length + } = validateParameters(hash, key, salt, info, length)); + validateCallback(callback); + const job = new HKDFJob(kCryptoJobAsync, hash, key, salt, info, length); + job.ondone = (error, bits) => { + if (error) + return FunctionPrototypeCall(callback, job, error); + FunctionPrototypeCall(callback, job, null, bits); + }; + job.run(); +}); +v22.hkdfSync = (function hkdfSync(hash, key, salt, info, length) { + ({ + hash, + key, + salt, + info, + length + } = validateParameters(hash, key, salt, info, length)); + const job = new HKDFJob(kCryptoJobSync, hash, key, salt, info, length); + const { 0: err, 1: bits } = job.run(); + if (err !== undefined) + throw err; + return bits; +}); +v22.pbkdf2 = (function pbkdf2(password, salt, iterations, keylen, digest, callback) { + if (typeof digest === \\"function\\") { + callback = digest; + digest = undefined; + } + ({ password, salt, iterations, keylen, digest } = check(password, salt, iterations, keylen, digest)); + validateCallback(callback); + const job = new PBKDF2Job(kCryptoJobAsync, password, salt, iterations, keylen, digest); + const encoding = getDefaultEncoding(); + job.ondone = (err, result) => { + if (err !== undefined) + return FunctionPrototypeCall(callback, job, err); + const buf = Buffer.from(result); + if (encoding === \\"buffer\\") + return FunctionPrototypeCall(callback, job, null, buf); + FunctionPrototypeCall(callback, job, null, buf.toString(encoding)); + }; + job.run(); +}); +v22.pbkdf2Sync = (function pbkdf2Sync(password, salt, iterations, keylen, digest) { + ({ password, salt, iterations, keylen, digest } = check(password, salt, iterations, keylen, digest)); + const job = new PBKDF2Job(kCryptoJobSync, password, salt, iterations, keylen, digest); + const { 0: err, 1: result } = job.run(); + if (err !== undefined) + throw err; + const buf = Buffer.from(result); + const encoding = getDefaultEncoding(); + return encoding === \\"buffer\\" ? buf : buf.toString(encoding); +}); +v22.generateKeyPair = (function generateKeyPair(type, options, callback) { + if (typeof options === \\"function\\") { + callback = options; + options = undefined; + } + validateCallback(callback); + const job = createJob(kCryptoJobAsync, type, options); + job.ondone = (error, result) => { + if (error) + return FunctionPrototypeCall(callback, job, error); + let { 0: pubkey, 1: privkey } = result; + pubkey = wrapKey(pubkey, PublicKeyObject); + privkey = wrapKey(privkey, PrivateKeyObject); + FunctionPrototypeCall(callback, job, null, pubkey, privkey); + }; + job.run(); +}); +v22.generateKeyPairSync = (function generateKeyPairSync(type, options) { + return handleError(createJob(kCryptoJobSync, type, options).run()); +}); +v22.generateKey = (function generateKey(type, options, callback) { + if (typeof options === \\"function\\") { + callback = options; + options = undefined; + } + validateCallback(callback); + const job = generateKeyJob(kCryptoJobAsync, type, options); + job.ondone = (error, key) => { + if (error) + return FunctionPrototypeCall(callback, job, error); + FunctionPrototypeCall(callback, job, null, wrapKey(key, SecretKeyObject)); + }; + handleGenerateKeyError(job.run()); +}); +v22.generateKeySync = (function generateKeySync(type, options) { + return handleGenerateKeyError(generateKeyJob(kCryptoJobSync, type, options).run()); +}); +v22.privateDecrypt = ((options, buffer) => { + const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); + const padding = options.padding || defaultPadding; + const { oaepHash, encoding } = options; + let { oaepLabel } = options; + if (oaepHash !== undefined) + validateString(oaepHash, \\"key.oaepHash\\"); + if (oaepLabel !== undefined) + oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); + buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); + return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); +}); +v22.privateEncrypt = ((options, buffer) => { + const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); + const padding = options.padding || defaultPadding; + const { oaepHash, encoding } = options; + let { oaepLabel } = options; + if (oaepHash !== undefined) + validateString(oaepHash, \\"key.oaepHash\\"); + if (oaepLabel !== undefined) + oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); + buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); + return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); +}); +v22.publicDecrypt = ((options, buffer) => { + const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); + const padding = options.padding || defaultPadding; + const { oaepHash, encoding } = options; + let { oaepLabel } = options; + if (oaepHash !== undefined) + validateString(oaepHash, \\"key.oaepHash\\"); + if (oaepLabel !== undefined) + oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); + buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); + return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); +}); +v22.publicEncrypt = ((options, buffer) => { + const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); + const padding = options.padding || defaultPadding; + const { oaepHash, encoding } = options; + let { oaepLabel } = options; + if (oaepHash !== undefined) + validateString(oaepHash, \\"key.oaepHash\\"); + if (oaepLabel !== undefined) + oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); + buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); + return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); +}); +v22.randomBytes = (function randomBytes(size, callback) { + size = assertSize(size, 1, 0, Infinity); + if (callback !== undefined) { + validateCallback(callback); + } + const buf = new FastBuffer(size); + if (callback === undefined) { + randomFillSync(buf.buffer, 0, size); + return buf; + } + randomFill(buf.buffer, 0, size, function (error) { + if (error) + return FunctionPrototypeCall(callback, this, error); + FunctionPrototypeCall(callback, this, null, buf); + }); +}); +v22.randomFill = (function randomFill(buf, offset, size, callback) { + if (!isAnyArrayBuffer(buf) && !isArrayBufferView(buf)) { + throw new ERR_INVALID_ARG_TYPE(\\"buf\\", [\\"ArrayBuffer\\", \\"ArrayBufferView\\"], buf); + } + const elementSize = buf.BYTES_PER_ELEMENT || 1; + if (typeof offset === \\"function\\") { + callback = offset; + offset = 0; + size = buf.length; + } + else if (typeof size === \\"function\\") { + callback = size; + size = buf.length - offset; + } + else { + validateCallback(callback); + } + offset = assertOffset(offset, elementSize, buf.byteLength); + if (size === undefined) { + size = buf.byteLength - offset; + } + else { + size = assertSize(size, elementSize, offset, buf.byteLength); + } + if (size === 0) { + callback(null, buf); + return; + } + const job = new RandomBytesJob(kCryptoJobAsync, buf, offset, size); + job.ondone = FunctionPrototypeBind(onJobDone, job, buf, callback); + job.run(); +}); +v22.randomFillSync = (function randomFillSync(buf, offset = 0, size) { + if (!isAnyArrayBuffer(buf) && !isArrayBufferView(buf)) { + throw new ERR_INVALID_ARG_TYPE(\\"buf\\", [\\"ArrayBuffer\\", \\"ArrayBufferView\\"], buf); + } + const elementSize = buf.BYTES_PER_ELEMENT || 1; + offset = assertOffset(offset, elementSize, buf.byteLength); + if (size === undefined) { + size = buf.byteLength - offset; + } + else { + size = assertSize(size, elementSize, offset, buf.byteLength); + } + if (size === 0) + return buf; + const job = new RandomBytesJob(kCryptoJobSync, buf, offset, size); + const err = job.run()[0]; + if (err) + throw err; + return buf; +}); +v22.randomInt = (function randomInt(min, max, callback) { + const minNotSpecified = typeof max === \\"undefined\\" || typeof max === \\"function\\"; + if (minNotSpecified) { + callback = max; + max = min; + min = 0; + } + const isSync = typeof callback === \\"undefined\\"; + if (!isSync) { + validateCallback(callback); + } + if (!NumberIsSafeInteger(min)) { + throw new ERR_INVALID_ARG_TYPE(\\"min\\", \\"a safe integer\\", min); + } + if (!NumberIsSafeInteger(max)) { + throw new ERR_INVALID_ARG_TYPE(\\"max\\", \\"a safe integer\\", max); + } + if (max <= min) { + throw new ERR_OUT_OF_RANGE(\\"max\\", \`greater than the value of \\"min\\" (\${min})\`, max); + } + const range = max - min; + if (!(range <= RAND_MAX)) { + throw new ERR_OUT_OF_RANGE(\`max\${minNotSpecified ? \\"\\" : \\" - min\\"}\`, \`<= \${RAND_MAX}\`, range); + } + const randLimit = RAND_MAX - (RAND_MAX % range); + while (isSync || (randomCacheOffset < randomCache.length)) { + if (randomCacheOffset === randomCache.length) { + randomFillSync(randomCache); + randomCacheOffset = 0; + } + const x = randomCache.readUIntBE(randomCacheOffset, 6); + randomCacheOffset += 6; + if (x < randLimit) { + const n = (x % range) + min; + if (isSync) + return n; + process.nextTick(callback, undefined, n); + return; + } + } + ArrayPrototypePush(asyncCachePendingTasks, { min, max, callback }); + asyncRefillRandomIntCache(); +}); +v22.randomUUID = (function randomUUID(options) { + if (options !== undefined) + validateObject(options, \\"options\\"); + const { disableEntropyCache = false, } = options || {}; + validateBoolean(disableEntropyCache, \\"options.disableEntropyCache\\"); + return disableEntropyCache ? getUnbufferedUUID() : getBufferedUUID(); +}); +v22.scrypt = (function scrypt(password, salt, keylen, options, callback = defaults) { + if (callback === defaults) { + callback = options; + options = defaults; + } + options = check(password, salt, keylen, options); + const { N, r, p, maxmem } = options; + ({ password, salt, keylen } = options); + validateCallback(callback); + const job = new ScryptJob(kCryptoJobAsync, password, salt, N, r, p, maxmem, keylen); + const encoding = getDefaultEncoding(); + job.ondone = (error, result) => { + if (error !== undefined) + return FunctionPrototypeCall(callback, job, error); + const buf = Buffer.from(result); + if (encoding === \\"buffer\\") + return FunctionPrototypeCall(callback, job, null, buf); + FunctionPrototypeCall(callback, job, null, buf.toString(encoding)); + }; + job.run(); +}); +v22.scryptSync = (function scryptSync(password, salt, keylen, options = defaults) { + options = check(password, salt, keylen, options); + const { N, r, p, maxmem } = options; + ({ password, salt, keylen } = options); + const job = new ScryptJob(kCryptoJobSync, password, salt, N, r, p, maxmem, keylen); + const { 0: err, 1: result } = job.run(); + if (err !== undefined) + throw err; + const buf = Buffer.from(result); + const encoding = getDefaultEncoding(); + return encoding === \\"buffer\\" ? buf : buf.toString(encoding); +}); +v22.sign = (function signOneShot(algorithm, data, key, callback) { + if (algorithm != null) + validateString(algorithm, \\"algorithm\\"); + if (callback !== undefined) + validateCallback(callback); + data = getArrayBufferOrView(data, \\"data\\"); + if (!key) + throw new ERR_CRYPTO_SIGN_KEY_REQUIRED(); + const rsaPadding = getPadding(key); + const pssSaltLength = getSaltLength(key); + const dsaSigEnc = getDSASignatureEncoding(key); + const { data: keyData, format: keyFormat, type: keyType, passphrase: keyPassphrase } = preparePrivateKey(key); + const job = new SignJob(callback ? kCryptoJobAsync : kCryptoJobSync, kSignJobModeSign, keyData, keyFormat, keyType, keyPassphrase, data, algorithm, pssSaltLength, rsaPadding, dsaSigEnc); + if (!callback) { + const { 0: err, 1: signature } = job.run(); + if (err !== undefined) + throw err; + return Buffer.from(signature); + } + job.ondone = (error, signature) => { + if (error) + return FunctionPrototypeCall(callback, job, error); + FunctionPrototypeCall(callback, job, null, Buffer.from(signature)); + }; + job.run(); +}); +v22.setEngine = (function setEngine(id, flags) { + validateString(id, \\"id\\"); + if (flags) + validateNumber(flags, \\"flags\\"); + flags = flags >>> 0; + if (flags === 0) + flags = ENGINE_METHOD_ALL; + if (!_setEngine(id, flags)) + throw new ERR_CRYPTO_ENGINE_UNKNOWN(id); +}); +v22.timingSafeEqual = (function timingSafeEqual() { [native, code]; }); +v22.getFips = (function getFipsCrypto() { [native, code]; }); +v22.setFips = (function setFipsCrypto() { [native, code]; }); +v22.verify = (function verifyOneShot(algorithm, data, key, signature, callback) { + if (algorithm != null) + validateString(algorithm, \\"algorithm\\"); + if (callback !== undefined) + validateCallback(callback); + data = getArrayBufferOrView(data, \\"data\\"); + if (!isArrayBufferView(data)) { + throw new ERR_INVALID_ARG_TYPE(\\"data\\", [\\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], data); + } + const rsaPadding = getPadding(key); + const pssSaltLength = getSaltLength(key); + const dsaSigEnc = getDSASignatureEncoding(key); + if (!isArrayBufferView(signature)) { + throw new ERR_INVALID_ARG_TYPE(\\"signature\\", [\\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], signature); + } + const { data: keyData, format: keyFormat, type: keyType, passphrase: keyPassphrase } = preparePublicOrPrivateKey(key); + const job = new SignJob(callback ? kCryptoJobAsync : kCryptoJobSync, kSignJobModeVerify, keyData, keyFormat, keyType, keyPassphrase, data, algorithm, pssSaltLength, rsaPadding, dsaSigEnc, signature); + if (!callback) { + const { 0: err, 1: result } = job.run(); + if (err !== undefined) + throw err; + return result; + } + job.ondone = (error, result) => { + if (error) + return FunctionPrototypeCall(callback, job, error); + FunctionPrototypeCall(callback, job, null, result); + }; + job.run(); +}); +v22.Certificate = (function Certificate() { + if (!(this instanceof Certificate)) + return new Certificate(); +}); +v22.Cipher = (function Cipher(cipher, password, options) { + if (!(this instanceof Cipher)) + return new Cipher(cipher, password, options); + ReflectApply(createCipher, this, [cipher, password, options, true]); +}); +v22.Cipheriv = (function Cipheriv(cipher, key, iv, options) { + if (!(this instanceof Cipheriv)) + return new Cipheriv(cipher, key, iv, options); + ReflectApply(createCipherWithIV, this, [cipher, key, options, true, iv]); +}); +v22.Decipher = (function Decipher(cipher, password, options) { + if (!(this instanceof Decipher)) + return new Decipher(cipher, password, options); + ReflectApply(createCipher, this, [cipher, password, options, false]); +}); +v22.Decipheriv = (function Decipheriv(cipher, key, iv, options) { + if (!(this instanceof Decipheriv)) + return new Decipheriv(cipher, key, iv, options); + ReflectApply(createCipherWithIV, this, [cipher, key, options, false, iv]); +}); +v22.DiffieHellman = (function DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) { + if (!(this instanceof DiffieHellman)) + return new DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding); + if (typeof sizeOrKey !== \\"number\\" && typeof sizeOrKey !== \\"string\\" && !isArrayBufferView(sizeOrKey) && !isAnyArrayBuffer(sizeOrKey)) { + throw new ERR_INVALID_ARG_TYPE(\\"sizeOrKey\\", [\\"number\\", \\"string\\", \\"ArrayBuffer\\", \\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], sizeOrKey); + } + if (typeof sizeOrKey === \\"number\\") + validateInt32(sizeOrKey, \\"sizeOrKey\\"); + if (keyEncoding && !Buffer.isEncoding(keyEncoding) && keyEncoding !== \\"buffer\\") { + genEncoding = generator; + generator = keyEncoding; + keyEncoding = false; + } + const encoding = getDefaultEncoding(); + keyEncoding = keyEncoding || encoding; + genEncoding = genEncoding || encoding; + if (typeof sizeOrKey !== \\"number\\") + sizeOrKey = toBuf(sizeOrKey, keyEncoding); + if (!generator) { + generator = DH_GENERATOR; + } + else if (typeof generator === \\"number\\") { + validateInt32(generator, \\"generator\\"); + } + else if (typeof generator === \\"string\\") { + generator = toBuf(generator, genEncoding); + } + else if (!isArrayBufferView(generator) && !isAnyArrayBuffer(generator)) { + throw new ERR_INVALID_ARG_TYPE(\\"generator\\", [\\"number\\", \\"string\\", \\"ArrayBuffer\\", \\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], generator); + } + this[kHandle] = new _DiffieHellman(sizeOrKey, generator); + ObjectDefineProperty(this, \\"verifyError\\", { + enumerable: true, + value: this[kHandle].verifyError, + writable: false + }); +}); +v22.DiffieHellmanGroup = (function DiffieHellmanGroup(name) { + if (!(this instanceof DiffieHellmanGroup)) + return new DiffieHellmanGroup(name); + this[kHandle] = new _DiffieHellmanGroup(name); + ObjectDefineProperty(this, \\"verifyError\\", { + enumerable: true, + value: this[kHandle].verifyError, + writable: false + }); +}); +v22.ECDH = (function ECDH(curve) { + if (!(this instanceof ECDH)) + return new ECDH(curve); + validateString(curve, \\"curve\\"); + this[kHandle] = new _ECDH(curve); +}); +v22.Hash = (function Hash(algorithm, options) { + if (!(this instanceof Hash)) + return new Hash(algorithm, options); + if (!(algorithm instanceof _Hash)) + validateString(algorithm, \\"algorithm\\"); + const xofLen = typeof options === \\"object\\" && options !== null ? options.outputLength : undefined; + if (xofLen !== undefined) + validateUint32(xofLen, \\"options.outputLength\\"); + this[kHandle] = new _Hash(algorithm, xofLen); + this[kState] = { + [kFinalized]: false + }; + ReflectApply(LazyTransform, this, [options]); +}); +v22.Hmac = (function Hmac(hmac, key, options) { + if (!(this instanceof Hmac)) + return new Hmac(hmac, key, options); + validateString(hmac, \\"hmac\\"); + const encoding = getStringOption(options, \\"encoding\\"); + key = prepareSecretKey(key, encoding); + this[kHandle] = new _Hmac(); + this[kHandle].init(hmac, key); + this[kState] = { + [kFinalized]: false + }; + ReflectApply(LazyTransform, this, [options]); +}); +v22.KeyObject = (class KeyObject extends NativeKeyObject { + constructor(type, handle) { + if (type !== \\"secret\\" && type !== \\"public\\" && type !== \\"private\\") + throw new ERR_INVALID_ARG_VALUE(\\"type\\", type); + if (typeof handle !== \\"object\\" || !(handle instanceof KeyObjectHandle)) + throw new ERR_INVALID_ARG_TYPE(\\"handle\\", \\"object\\", handle); + super(handle); + this[kKeyType] = type; + ObjectDefineProperty(this, kHandle, { + value: handle, + enumerable: false, + configurable: false, + writable: false + }); + } + get type() { + return this[kKeyType]; + } + static from(key) { + if (!isCryptoKey(key)) + throw new ERR_INVALID_ARG_TYPE(\\"key\\", \\"CryptoKey\\", key); + return key[kKeyObject]; + } +}); +v22.Sign = (function Sign(algorithm, options) { + if (!(this instanceof Sign)) + return new Sign(algorithm, options); + validateString(algorithm, \\"algorithm\\"); + this[kHandle] = new _Sign(); + this[kHandle].init(algorithm); + ReflectApply(Writable, this, [options]); +}); +v22.Verify = (function Verify(algorithm, options) { + if (!(this instanceof Verify)) + return new Verify(algorithm, options); + validateString(algorithm, \\"algorithm\\"); + this[kHandle] = new _Verify(); + this[kHandle].init(algorithm); + ReflectApply(Writable, this, [options]); +}); +v22.X509Certificate = (class X509Certificate extends JSTransferable { + [kInternalState] = new SafeMap(); + constructor(buffer) { + if (typeof buffer === \\"string\\") + buffer = Buffer.from(buffer); + if (!isArrayBufferView(buffer)) { + throw new ERR_INVALID_ARG_TYPE(\\"buffer\\", [\\"string\\", \\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], buffer); + } + super(); + this[kHandle] = parseX509(buffer); + } + [kInspect](depth, options) { + if (depth < 0) + return this; + const opts = { + ...options, + depth: options.depth == null ? null : options.depth - 1 + }; + return \`X509Certificate \${inspect({ + subject: this.subject, + subjectAltName: this.subjectAltName, + issuer: this.issuer, + infoAccess: this.infoAccess, + validFrom: this.validFrom, + validTo: this.validTo, + fingerprint: this.fingerprint, + fingerprint256: this.fingerprint256, + fingerprint512: this.fingerprint512, + keyUsage: this.keyUsage, + serialNumber: this.serialNumber + }, opts)}\`; + } + [kClone]() { + const handle = this[kHandle]; + return { + data: { handle }, + deserializeInfo: \\"internal/crypto/x509:InternalX509Certificate\\" + }; + } + [kDeserialize]({ handle }) { + this[kHandle] = handle; + } + get subject() { + let value = this[kInternalState].get(\\"subject\\"); + if (value === undefined) { + value = this[kHandle].subject(); + this[kInternalState].set(\\"subject\\", value); + } + return value; + } + get subjectAltName() { + let value = this[kInternalState].get(\\"subjectAltName\\"); + if (value === undefined) { + value = this[kHandle].subjectAltName(); + this[kInternalState].set(\\"subjectAltName\\", value); + } + return value; + } + get issuer() { + let value = this[kInternalState].get(\\"issuer\\"); + if (value === undefined) { + value = this[kHandle].issuer(); + this[kInternalState].set(\\"issuer\\", value); + } + return value; + } + get issuerCertificate() { + let value = this[kInternalState].get(\\"issuerCertificate\\"); + if (value === undefined) { + const cert = this[kHandle].getIssuerCert(); + if (cert) + value = new InternalX509Certificate(this[kHandle].getIssuerCert()); + this[kInternalState].set(\\"issuerCertificate\\", value); + } + return value; + } + get infoAccess() { + let value = this[kInternalState].get(\\"infoAccess\\"); + if (value === undefined) { + value = this[kHandle].infoAccess(); + this[kInternalState].set(\\"infoAccess\\", value); + } + return value; + } + get validFrom() { + let value = this[kInternalState].get(\\"validFrom\\"); + if (value === undefined) { + value = this[kHandle].validFrom(); + this[kInternalState].set(\\"validFrom\\", value); + } + return value; + } + get validTo() { + let value = this[kInternalState].get(\\"validTo\\"); + if (value === undefined) { + value = this[kHandle].validTo(); + this[kInternalState].set(\\"validTo\\", value); + } + return value; + } + get fingerprint() { + let value = this[kInternalState].get(\\"fingerprint\\"); + if (value === undefined) { + value = this[kHandle].fingerprint(); + this[kInternalState].set(\\"fingerprint\\", value); + } + return value; + } + get fingerprint256() { + let value = this[kInternalState].get(\\"fingerprint256\\"); + if (value === undefined) { + value = this[kHandle].fingerprint256(); + this[kInternalState].set(\\"fingerprint256\\", value); + } + return value; + } + get fingerprint512() { + let value = this[kInternalState].get(\\"fingerprint512\\"); + if (value === undefined) { + value = this[kHandle].fingerprint512(); + this[kInternalState].set(\\"fingerprint512\\", value); + } + return value; + } + get keyUsage() { + let value = this[kInternalState].get(\\"keyUsage\\"); + if (value === undefined) { + value = this[kHandle].keyUsage(); + this[kInternalState].set(\\"keyUsage\\", value); + } + return value; + } + get serialNumber() { + let value = this[kInternalState].get(\\"serialNumber\\"); + if (value === undefined) { + value = this[kHandle].serialNumber(); + this[kInternalState].set(\\"serialNumber\\", value); + } + return value; + } + get raw() { + let value = this[kInternalState].get(\\"raw\\"); + if (value === undefined) { + value = this[kHandle].raw(); + this[kInternalState].set(\\"raw\\", value); + } + return value; + } + get publicKey() { + let value = this[kInternalState].get(\\"publicKey\\"); + if (value === undefined) { + value = new PublicKeyObject(this[kHandle].publicKey()); + this[kInternalState].set(\\"publicKey\\", value); + } + return value; + } + toString() { + let value = this[kInternalState].get(\\"pem\\"); + if (value === undefined) { + value = this[kHandle].pem(); + this[kInternalState].set(\\"pem\\", value); + } + return value; + } + toJSON() { return this.toString(); } + get ca() { + let value = this[kInternalState].get(\\"ca\\"); + if (value === undefined) { + value = this[kHandle].checkCA(); + this[kInternalState].set(\\"ca\\", value); + } + return value; + } + checkHost(name, options) { + validateString(name, \\"name\\"); + return this[kHandle].checkHost(name, getFlags(options)); + } + checkEmail(email, options) { + validateString(email, \\"email\\"); + return this[kHandle].checkEmail(email, getFlags(options)); + } + checkIP(ip, options) { + validateString(ip, \\"ip\\"); + return this[kHandle].checkIP(ip, getFlags(options)); + } + checkIssued(otherCert) { + if (!isX509Certificate(otherCert)) + throw new ERR_INVALID_ARG_TYPE(\\"otherCert\\", \\"X509Certificate\\", otherCert); + return this[kHandle].checkIssued(otherCert[kHandle]); + } + checkPrivateKey(pkey) { + if (!isKeyObject(pkey)) + throw new ERR_INVALID_ARG_TYPE(\\"pkey\\", \\"KeyObject\\", pkey); + if (pkey.type !== \\"private\\") + throw new ERR_INVALID_ARG_VALUE(\\"pkey\\", pkey); + return this[kHandle].checkPrivateKey(pkey[kHandle]); + } + verify(pkey) { + if (!isKeyObject(pkey)) + throw new ERR_INVALID_ARG_TYPE(\\"pkey\\", \\"KeyObject\\", pkey); + if (pkey.type !== \\"public\\") + throw new ERR_INVALID_ARG_VALUE(\\"pkey\\", pkey); + return this[kHandle].verify(pkey[kHandle]); + } + toLegacyObject() { + return this[kHandle].toLegacy(); + } +}); +v22.secureHeapUsed = (function secureHeapUsed() { + const val = _secureHeapUsed(); + if (val === undefined) + return { total: 0, used: 0, utilization: 0, min: 0 }; + const used = Number(_secureHeapUsed()); + const total = Number(getOptionValue(\\"--secure-heap\\")); + const min = Number(getOptionValue(\\"--secure-heap-min\\")); + const utilization = used / total; + return { total, used, utilization, min }; +}); +v22.prng = (function randomBytes(size, callback) { + size = assertSize(size, 1, 0, Infinity); + if (callback !== undefined) { + validateCallback(callback); + } + const buf = new FastBuffer(size); + if (callback === undefined) { + randomFillSync(buf.buffer, 0, size); + return buf; + } + randomFill(buf.buffer, 0, size, function (error) { + if (error) + return FunctionPrototypeCall(callback, this, error); + FunctionPrototypeCall(callback, this, null, buf); + }); +}); +v22.pseudoRandomBytes = (function randomBytes(size, callback) { + size = assertSize(size, 1, 0, Infinity); + if (callback !== undefined) { + validateCallback(callback); + } + const buf = new FastBuffer(size); + if (callback === undefined) { + randomFillSync(buf.buffer, 0, size); + return buf; + } + randomFill(buf.buffer, 0, size, function (error) { + if (error) + return FunctionPrototypeCall(callback, this, error); + FunctionPrototypeCall(callback, this, null, buf); + }); +}); +v22.rng = (function randomBytes(size, callback) { + size = assertSize(size, 1, 0, Infinity); + if (callback !== undefined) { + validateCallback(callback); + } + const buf = new FastBuffer(size); + if (callback === undefined) { + randomFillSync(buf.buffer, 0, size); + return buf; + } + randomFill(buf.buffer, 0, size, function (error) { + if (error) + return FunctionPrototypeCall(callback, this, error); + FunctionPrototypeCall(callback, this, null, buf); + }); +}); +v19.lib = v22; +v3.crypto = v19; +const v23 = {}; +v3.abort = v23; +const v24 = v3.each; +v3.each = v24; +const v25 = v3.arrayEach; +v3.arrayEach = v25; +const v26 = v3.update; +v3.update = v26; +const v27 = v3.merge; +v3.merge = v27; +const v28 = v3.copy; +v3.copy = v28; +const v29 = v3.isEmpty; +v3.isEmpty = v29; +const v30 = v3.arraySliceFn; +v3.arraySliceFn = v30; +const v31 = v3.isType; +v3.isType = v31; +const v32 = v3.typeName; +v3.typeName = v32; +const v33 = v3.error; +v3.error = v33; +const v34 = v3.inherit; +v3.inherit = v34; +const v35 = v3.mixin; +v3.mixin = v35; +const v36 = v3.hideProperties; +v3.hideProperties = v36; +const v37 = v3.property; +v3.property = v37; +const v38 = v3.memoizedProperty; +v3.memoizedProperty = v38; +const v39 = v3.hoistPayloadMember; +v3.hoistPayloadMember = v39; +const v40 = v3.computeSha256; +v3.computeSha256 = v40; +const v41 = v3.isClockSkewed; +v3.isClockSkewed = v41; +const v42 = v3.applyClockOffset; +v3.applyClockOffset = v42; +const v43 = v3.extractRequestId; +v3.extractRequestId = v43; +const v44 = v3.addPromises; +v3.addPromises = v44; +const v45 = v3.promisifyMethod; +v3.promisifyMethod = v45; +const v46 = v3.isDualstackAvailable; +v3.isDualstackAvailable = v46; +const v47 = v3.calculateRetryDelay; +v3.calculateRetryDelay = v47; +const v48 = v3.handleRequestWithRetries; +v3.handleRequestWithRetries = v48; +const v49 = {}; +v49.v4 = (function uuidV4() { + return require(\\"uuid\\").v4(); +}); +v3.uuid = v49; +const v50 = v3.convertPayloadToString; +v3.convertPayloadToString = v50; +const v51 = v3.defer; +v3.defer = v51; +const v52 = v3.getRequestPayloadShape; +v3.getRequestPayloadShape = v52; +const v53 = v3.getProfilesFromSharedConfig; +v3.getProfilesFromSharedConfig = v53; +const v54 = {}; +v54.validate = (function validateARN(str) { + return str && str.indexOf(\\"arn:\\") === 0 && str.split(\\":\\").length >= 6; +}); +v54.parse = (function parseARN(arn) { + var matched = arn.split(\\":\\"); + return { + partition: matched[1], + service: matched[2], + region: matched[3], + accountId: matched[4], + resource: matched.slice(5).join(\\":\\") + }; +}); +v54.build = (function buildARN(arnObject) { + if (arnObject.service === undefined || arnObject.region === undefined || arnObject.accountId === undefined || arnObject.resource === undefined) + throw util.error(new Error(\\"Input ARN object is invalid\\")); + return \\"arn:\\" + (arnObject.partition || \\"aws\\") + \\":\\" + arnObject.service + \\":\\" + arnObject.region + \\":\\" + arnObject.accountId + \\":\\" + arnObject.resource; +}); +v3.ARN = v54; +v3.defaultProfile = \\"default\\"; +v3.configOptInEnv = \\"AWS_SDK_LOAD_CONFIG\\"; +v3.sharedCredentialsFileEnv = \\"AWS_SHARED_CREDENTIALS_FILE\\"; +v3.sharedConfigFileEnv = \\"AWS_CONFIG_FILE\\"; +v3.imdsDisabledEnv = \\"AWS_EC2_METADATA_DISABLED\\"; +const v55 = v3.isBrowser; +v3.isBrowser = v55; +const v56 = v3.isNode; +v3.isNode = v56; +const v57 = v3.Buffer; +v3.Buffer = v57; +const v58 = Object.create(v21); +const v59 = []; +v59.push(); +v58._stack = v59; +v58.Domain = (class Domain extends EventEmitter { + constructor() { + super(); + this.members = []; + this[kWeak] = new WeakReference(this); + asyncHook.enable(); + this.on(\\"removeListener\\", updateExceptionCapture); + this.on(\\"newListener\\", updateExceptionCapture); + } +}); +v58.createDomain = (function createDomain() { + return new Domain(); +}); +v58.create = (function createDomain() { + return new Domain(); +}); +v58.active = null; +v3.domain = v58; +const v60 = v3.stream; +v3.stream = v60; +const v61 = Object.create(v21); +v61.Url = (function Url() { + this.protocol = null; + this.slashes = null; + this.auth = null; + this.host = null; + this.port = null; + this.hostname = null; + this.hash = null; + this.search = null; + this.query = null; + this.pathname = null; + this.path = null; + this.href = null; +}); +v61.parse = (function urlParse(url, parseQueryString, slashesDenoteHost) { + if (url instanceof Url) + return url; + const urlObject = new Url(); + urlObject.parse(url, parseQueryString, slashesDenoteHost); + return urlObject; +}); +v61.resolve = (function urlResolve(source, relative) { + return urlParse(source, false, true).resolve(relative); +}); +v61.resolveObject = (function urlResolveObject(source, relative) { + if (!source) + return relative; + return urlParse(source, false, true).resolveObject(relative); +}); +v61.format = (function urlFormat(urlObject, options) { + if (typeof urlObject === \\"string\\") { + urlObject = urlParse(urlObject); + } + else if (typeof urlObject !== \\"object\\" || urlObject === null) { + throw new ERR_INVALID_ARG_TYPE(\\"urlObject\\", [\\"Object\\", \\"string\\"], urlObject); + } + else if (!(urlObject instanceof Url)) { + const format = urlObject[formatSymbol]; + return format ? format.call(urlObject, options) : Url.prototype.format.call(urlObject); + } + return urlObject.format(); +}); +v61.URL = (class URL { + constructor(input, base = undefined) { + input = \`\${input}\`; + let base_context; + if (base !== undefined) { + base_context = new URL(base)[context]; + } + this[context] = new URLContext(); + parse(input, -1, base_context, undefined, FunctionPrototypeBind(onParseComplete, this), onParseError); + } + get [special]() { + return (this[context].flags & URL_FLAGS_SPECIAL) !== 0; + } + get [cannotBeBase]() { + return (this[context].flags & URL_FLAGS_CANNOT_BE_BASE) !== 0; + } + get [cannotHaveUsernamePasswordPort]() { + const { host, scheme } = this[context]; + return ((host == null || host === \\"\\") || this[cannotBeBase] || scheme === \\"file:\\"); + } + [inspect.custom](depth, opts) { + if (this == null || ObjectGetPrototypeOf(this[context]) !== URLContext.prototype) { + throw new ERR_INVALID_THIS(\\"URL\\"); + } + if (typeof depth === \\"number\\" && depth < 0) + return this; + const constructor = getConstructorOf(this) || URL; + const obj = ObjectCreate({ constructor }); + obj.href = this.href; + obj.origin = this.origin; + obj.protocol = this.protocol; + obj.username = this.username; + obj.password = this.password; + obj.host = this.host; + obj.hostname = this.hostname; + obj.port = this.port; + obj.pathname = this.pathname; + obj.search = this.search; + obj.searchParams = this.searchParams; + obj.hash = this.hash; + if (opts.showHidden) { + obj.cannotBeBase = this[cannotBeBase]; + obj.special = this[special]; + obj[context] = this[context]; + } + return \`\${constructor.name} \${inspect(obj, opts)}\`; + } + [kFormat](options) { + if (options) + validateObject(options, \\"options\\"); + options = { + fragment: true, + unicode: false, + search: true, + auth: true, + ...options + }; + const ctx = this[context]; + let ret = ctx.scheme; + if (ctx.host !== null) { + ret += \\"//\\"; + const has_username = ctx.username !== \\"\\"; + const has_password = ctx.password !== \\"\\"; + if (options.auth && (has_username || has_password)) { + if (has_username) + ret += ctx.username; + if (has_password) + ret += \`:\${ctx.password}\`; + ret += \\"@\\"; + } + ret += options.unicode ? domainToUnicode(ctx.host) : ctx.host; + if (ctx.port !== null) + ret += \`:\${ctx.port}\`; + } + if (this[cannotBeBase]) { + ret += ctx.path[0]; + } + else { + if (ctx.host === null && ctx.path.length > 1 && ctx.path[0] === \\"\\") { + ret += \\"/.\\"; + } + if (ctx.path.length) { + ret += \\"/\\" + ArrayPrototypeJoin(ctx.path, \\"/\\"); + } + } + if (options.search && ctx.query !== null) + ret += \`?\${ctx.query}\`; + if (options.fragment && ctx.fragment !== null) + ret += \`#\${ctx.fragment}\`; + return ret; + } + toString() { + return this[kFormat]({}); + } + get href() { + return this[kFormat]({}); + } + set href(input) { + input = \`\${input}\`; + parse(input, -1, undefined, undefined, FunctionPrototypeBind(onParseComplete, this), onParseError); + } + get origin() { + const ctx = this[context]; + switch (ctx.scheme) { + case \\"blob:\\": + if (ctx.path.length > 0) { + try { + return (new URL(ctx.path[0])).origin; + } + catch { + } + } + return kOpaqueOrigin; + case \\"ftp:\\": + case \\"http:\\": + case \\"https:\\": + case \\"ws:\\": + case \\"wss:\\": return serializeTupleOrigin(ctx.scheme, ctx.host, ctx.port); + } + return kOpaqueOrigin; + } + get protocol() { + return this[context].scheme; + } + set protocol(scheme) { + scheme = \`\${scheme}\`; + if (scheme.length === 0) + return; + const ctx = this[context]; + parse(scheme, kSchemeStart, null, ctx, FunctionPrototypeBind(onParseProtocolComplete, this)); + } + get username() { + return this[context].username; + } + set username(username) { + username = \`\${username}\`; + if (this[cannotHaveUsernamePasswordPort]) + return; + const ctx = this[context]; + if (username === \\"\\") { + ctx.username = \\"\\"; + ctx.flags &= ~URL_FLAGS_HAS_USERNAME; + return; + } + ctx.username = encodeAuth(username); + ctx.flags |= URL_FLAGS_HAS_USERNAME; + } + get password() { + return this[context].password; + } + set password(password) { + password = \`\${password}\`; + if (this[cannotHaveUsernamePasswordPort]) + return; + const ctx = this[context]; + if (password === \\"\\") { + ctx.password = \\"\\"; + ctx.flags &= ~URL_FLAGS_HAS_PASSWORD; + return; + } + ctx.password = encodeAuth(password); + ctx.flags |= URL_FLAGS_HAS_PASSWORD; + } + get host() { + const ctx = this[context]; + let ret = ctx.host || \\"\\"; + if (ctx.port !== null) + ret += \`:\${ctx.port}\`; + return ret; + } + set host(host) { + const ctx = this[context]; + host = \`\${host}\`; + if (this[cannotBeBase]) { + return; + } + parse(host, kHost, null, ctx, FunctionPrototypeBind(onParseHostComplete, this)); + } + get hostname() { + return this[context].host || \\"\\"; + } + set hostname(host) { + const ctx = this[context]; + host = \`\${host}\`; + if (this[cannotBeBase]) { + return; + } + parse(host, kHostname, null, ctx, onParseHostnameComplete.bind(this)); + } + get port() { + const port = this[context].port; + return port === null ? \\"\\" : String(port); + } + set port(port) { + port = \`\${port}\`; + if (this[cannotHaveUsernamePasswordPort]) + return; + const ctx = this[context]; + if (port === \\"\\") { + ctx.port = null; + return; + } + parse(port, kPort, null, ctx, FunctionPrototypeBind(onParsePortComplete, this)); + } + get pathname() { + const ctx = this[context]; + if (this[cannotBeBase]) + return ctx.path[0]; + if (ctx.path.length === 0) + return \\"\\"; + return \`/\${ArrayPrototypeJoin(ctx.path, \\"/\\")}\`; + } + set pathname(path) { + path = \`\${path}\`; + if (this[cannotBeBase]) + return; + parse(path, kPathStart, null, this[context], onParsePathComplete.bind(this)); + } + get search() { + const { query } = this[context]; + if (query === null || query === \\"\\") + return \\"\\"; + return \`?\${query}\`; + } + set search(search) { + const ctx = this[context]; + search = toUSVString(search); + if (search === \\"\\") { + ctx.query = null; + ctx.flags &= ~URL_FLAGS_HAS_QUERY; + } + else { + if (search[0] === \\"?\\") + search = StringPrototypeSlice(search, 1); + ctx.query = \\"\\"; + ctx.flags |= URL_FLAGS_HAS_QUERY; + if (search) { + parse(search, kQuery, null, ctx, FunctionPrototypeBind(onParseSearchComplete, this)); + } + } + initSearchParams(this[searchParams], search); + } + get searchParams() { + return this[searchParams]; + } + get hash() { + const { fragment } = this[context]; + if (fragment === null || fragment === \\"\\") + return \\"\\"; + return \`#\${fragment}\`; + } + set hash(hash) { + const ctx = this[context]; + hash = \`\${hash}\`; + if (!hash) { + ctx.fragment = null; + ctx.flags &= ~URL_FLAGS_HAS_FRAGMENT; + return; + } + if (hash[0] === \\"#\\") + hash = StringPrototypeSlice(hash, 1); + ctx.fragment = \\"\\"; + ctx.flags |= URL_FLAGS_HAS_FRAGMENT; + parse(hash, kFragment, null, ctx, FunctionPrototypeBind(onParseHashComplete, this)); + } + toJSON() { + return this[kFormat]({}); + } + static createObjectURL(obj) { + const cryptoRandom = lazyCryptoRandom(); + if (cryptoRandom === undefined) + throw new ERR_NO_CRYPTO(); + const blob = lazyBlob(); + if (!blob.isBlob(obj)) + throw new ERR_INVALID_ARG_TYPE(\\"obj\\", \\"Blob\\", obj); + const id = cryptoRandom.randomUUID(); + storeDataObject(id, obj[blob.kHandle], obj.size, obj.type); + return \`blob:nodedata:\${id}\`; + } + static revokeObjectURL(url) { + url = \`\${url}\`; + try { + const parsed = new URL(url); + const split = StringPrototypeSplit(parsed.pathname, \\":\\"); + if (split.length === 2) + revokeDataObject(split[1]); + } + catch { + } + } +}); +v61.URLSearchParams = (class URLSearchParams { + constructor(init = undefined) { + if (init === null || init === undefined) { + this[searchParams] = []; + } + else if (typeof init === \\"object\\" || typeof init === \\"function\\") { + const method = init[SymbolIterator]; + if (method === this[SymbolIterator]) { + const childParams = init[searchParams]; + this[searchParams] = childParams.slice(); + } + else if (method !== null && method !== undefined) { + if (typeof method !== \\"function\\") { + throw new ERR_ARG_NOT_ITERABLE(\\"Query pairs\\"); + } + const pairs = []; + for (const pair of init) { + if ((typeof pair !== \\"object\\" && typeof pair !== \\"function\\") || pair === null || typeof pair[SymbolIterator] !== \\"function\\") { + throw new ERR_INVALID_TUPLE(\\"Each query pair\\", \\"[name, value]\\"); + } + const convertedPair = []; + for (const element of pair) + ArrayPrototypePush(convertedPair, toUSVString(element)); + ArrayPrototypePush(pairs, convertedPair); + } + this[searchParams] = []; + for (const pair of pairs) { + if (pair.length !== 2) { + throw new ERR_INVALID_TUPLE(\\"Each query pair\\", \\"[name, value]\\"); + } + ArrayPrototypePush(this[searchParams], pair[0], pair[1]); + } + } + else { + this[searchParams] = []; + const keys = ReflectOwnKeys(init); + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const desc = ReflectGetOwnPropertyDescriptor(init, key); + if (desc !== undefined && desc.enumerable) { + const typedKey = toUSVString(key); + const typedValue = toUSVString(init[key]); + this[searchParams].push(typedKey, typedValue); + } + } + } + } + else { + init = toUSVString(init); + if (init[0] === \\"?\\") + init = init.slice(1); + initSearchParams(this, init); + } + this[context] = null; + } + [inspect.custom](recurseTimes, ctx) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (typeof recurseTimes === \\"number\\" && recurseTimes < 0) + return ctx.stylize(\\"[Object]\\", \\"special\\"); + const separator = \\", \\"; + const innerOpts = { ...ctx }; + if (recurseTimes !== null) { + innerOpts.depth = recurseTimes - 1; + } + const innerInspect = (v) => inspect(v, innerOpts); + const list = this[searchParams]; + const output = []; + for (let i = 0; i < list.length; i += 2) + ArrayPrototypePush(output, \`\${innerInspect(list[i])} => \${innerInspect(list[i + 1])}\`); + const length = ArrayPrototypeReduce(output, (prev, cur) => prev + removeColors(cur).length + separator.length, -separator.length); + if (length > ctx.breakLength) { + return \`\${this.constructor.name} {\\\\n\` + \` \${ArrayPrototypeJoin(output, \\",\\\\n \\")} }\`; + } + else if (output.length) { + return \`\${this.constructor.name} { \` + \`\${ArrayPrototypeJoin(output, separator)} }\`; + } + return \`\${this.constructor.name} {}\`; + } + append(name, value) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (arguments.length < 2) { + throw new ERR_MISSING_ARGS(\\"name\\", \\"value\\"); + } + name = toUSVString(name); + value = toUSVString(value); + ArrayPrototypePush(this[searchParams], name, value); + update(this[context], this); + } + delete(name) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (arguments.length < 1) { + throw new ERR_MISSING_ARGS(\\"name\\"); + } + const list = this[searchParams]; + name = toUSVString(name); + for (let i = 0; i < list.length;) { + const cur = list[i]; + if (cur === name) { + list.splice(i, 2); + } + else { + i += 2; + } + } + update(this[context], this); + } + get(name) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (arguments.length < 1) { + throw new ERR_MISSING_ARGS(\\"name\\"); + } + const list = this[searchParams]; + name = toUSVString(name); + for (let i = 0; i < list.length; i += 2) { + if (list[i] === name) { + return list[i + 1]; + } + } + return null; + } + getAll(name) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (arguments.length < 1) { + throw new ERR_MISSING_ARGS(\\"name\\"); + } + const list = this[searchParams]; + const values = []; + name = toUSVString(name); + for (let i = 0; i < list.length; i += 2) { + if (list[i] === name) { + values.push(list[i + 1]); + } + } + return values; + } + has(name) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (arguments.length < 1) { + throw new ERR_MISSING_ARGS(\\"name\\"); + } + const list = this[searchParams]; + name = toUSVString(name); + for (let i = 0; i < list.length; i += 2) { + if (list[i] === name) { + return true; + } + } + return false; + } + set(name, value) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + if (arguments.length < 2) { + throw new ERR_MISSING_ARGS(\\"name\\", \\"value\\"); + } + const list = this[searchParams]; + name = toUSVString(name); + value = toUSVString(value); + let found = false; + for (let i = 0; i < list.length;) { + const cur = list[i]; + if (cur === name) { + if (!found) { + list[i + 1] = value; + found = true; + i += 2; + } + else { + list.splice(i, 2); + } + } + else { + i += 2; + } + } + if (!found) { + ArrayPrototypePush(list, name, value); + } + update(this[context], this); + } + sort() { + const a = this[searchParams]; + const len = a.length; + if (len <= 2) { + } + else if (len < 100) { + for (let i = 2; i < len; i += 2) { + const curKey = a[i]; + const curVal = a[i + 1]; + let j; + for (j = i - 2; j >= 0; j -= 2) { + if (a[j] > curKey) { + a[j + 2] = a[j]; + a[j + 3] = a[j + 1]; + } + else { + break; + } + } + a[j + 2] = curKey; + a[j + 3] = curVal; + } + } + else { + const lBuffer = new Array(len); + const rBuffer = new Array(len); + for (let step = 2; step < len; step *= 2) { + for (let start = 0; start < len - 2; start += 2 * step) { + const mid = start + step; + let end = mid + step; + end = end < len ? end : len; + if (mid > end) + continue; + merge(a, start, mid, end, lBuffer, rBuffer); + } + } + } + update(this[context], this); + } + entries() { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + return createSearchParamsIterator(this, \\"key+value\\"); + } + forEach(callback, thisArg = undefined) { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + validateCallback(callback); + let list = this[searchParams]; + let i = 0; + while (i < list.length) { + const key = list[i]; + const value = list[i + 1]; + callback.call(thisArg, value, key, this); + list = this[searchParams]; + i += 2; + } + } + keys() { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + return createSearchParamsIterator(this, \\"key\\"); + } + values() { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + return createSearchParamsIterator(this, \\"value\\"); + } + toString() { + if (!isURLSearchParams(this)) + throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); + return serializeParams(this[searchParams]); + } +}); +v61.domainToASCII = (function domainToASCII(domain) { + if (arguments.length < 1) + throw new ERR_MISSING_ARGS(\\"domain\\"); + return _domainToASCII(\`\${domain}\`); +}); +v61.domainToUnicode = (function domainToUnicode(domain) { + if (arguments.length < 1) + throw new ERR_MISSING_ARGS(\\"domain\\"); + return _domainToUnicode(\`\${domain}\`); +}); +v61.pathToFileURL = (function pathToFileURL(filepath) { + const outURL = new URL(\\"file://\\"); + if (isWindows && StringPrototypeStartsWith(filepath, \\"\\\\\\\\\\\\\\\\\\")) { + const paths = StringPrototypeSplit(filepath, \\"\\\\\\\\\\"); + if (paths.length <= 3) { + throw new ERR_INVALID_ARG_VALUE(\\"filepath\\", filepath, \\"Missing UNC resource path\\"); + } + const hostname = paths[2]; + if (hostname.length === 0) { + throw new ERR_INVALID_ARG_VALUE(\\"filepath\\", filepath, \\"Empty UNC servername\\"); + } + outURL.hostname = domainToASCII(hostname); + outURL.pathname = encodePathChars(ArrayPrototypeJoin(ArrayPrototypeSlice(paths, 3), \\"/\\")); + } + else { + let resolved = path.resolve(filepath); + const filePathLast = StringPrototypeCharCodeAt(filepath, filepath.length - 1); + if ((filePathLast === CHAR_FORWARD_SLASH || (isWindows && filePathLast === CHAR_BACKWARD_SLASH)) && resolved[resolved.length - 1] !== path.sep) + resolved += \\"/\\"; + outURL.pathname = encodePathChars(resolved); + } + return outURL; +}); +v61.fileURLToPath = (function fileURLToPath(path) { + if (typeof path === \\"string\\") + path = new URL(path); + else if (!isURLInstance(path)) + throw new ERR_INVALID_ARG_TYPE(\\"path\\", [\\"string\\", \\"URL\\"], path); + if (path.protocol !== \\"file:\\") + throw new ERR_INVALID_URL_SCHEME(\\"file\\"); + return isWindows ? getPathFromURLWin32(path) : getPathFromURLPosix(path); +}); +v61.urlToHttpOptions = (function urlToHttpOptions(url) { + const options = { + protocol: url.protocol, + hostname: typeof url.hostname === \\"string\\" && StringPrototypeStartsWith(url.hostname, \\"[\\") ? StringPrototypeSlice(url.hostname, 1, -1) : url.hostname, + hash: url.hash, + search: url.search, + pathname: url.pathname, + path: \`\${url.pathname || \\"\\"}\${url.search || \\"\\"}\`, + href: url.href + }; + if (url.port !== \\"\\") { + options.port = Number(url.port); + } + if (url.username || url.password) { + options.auth = \`\${decodeURIComponent(url.username)}:\${decodeURIComponent(url.password)}\`; + } + return options; +}); +v3.url = v61; +const v62 = Object.create(v21); +v62.unescapeBuffer = (function unescapeBuffer(s, decodeSpaces) { + const out = Buffer.allocUnsafe(s.length); + let index = 0; + let outIndex = 0; + let currentChar; + let nextChar; + let hexHigh; + let hexLow; + const maxLength = s.length - 2; + let hasHex = false; + while (index < s.length) { + currentChar = StringPrototypeCharCodeAt(s, index); + if (currentChar === 43 && decodeSpaces) { + out[outIndex++] = 32; + index++; + continue; + } + if (currentChar === 37 && index < maxLength) { + currentChar = StringPrototypeCharCodeAt(s, ++index); + hexHigh = unhexTable[currentChar]; + if (!(hexHigh >= 0)) { + out[outIndex++] = 37; + continue; + } + else { + nextChar = StringPrototypeCharCodeAt(s, ++index); + hexLow = unhexTable[nextChar]; + if (!(hexLow >= 0)) { + out[outIndex++] = 37; + index--; + } + else { + hasHex = true; + currentChar = hexHigh * 16 + hexLow; + } + } + } + out[outIndex++] = currentChar; + index++; + } + return hasHex ? out.slice(0, outIndex) : out; +}); +v62.unescape = (function qsUnescape(s, decodeSpaces) { + try { + return decodeURIComponent(s); + } + catch { + return QueryString.unescapeBuffer(s, decodeSpaces).toString(); + } +}); +v62.escape = (function qsEscape(str) { + if (typeof str !== \\"string\\") { + if (typeof str === \\"object\\") + str = String(str); + else + str += \\"\\"; + } + return encodeStr(str, noEscape, hexTable); +}); +v62.stringify = (function stringify(obj, sep, eq, options) { + sep = sep || \\"&\\"; + eq = eq || \\"=\\"; + let encode = QueryString.escape; + if (options && typeof options.encodeURIComponent === \\"function\\") { + encode = options.encodeURIComponent; + } + const convert = (encode === qsEscape ? encodeStringified : encodeStringifiedCustom); + if (obj !== null && typeof obj === \\"object\\") { + const keys = ObjectKeys(obj); + const len = keys.length; + let fields = \\"\\"; + for (let i = 0; i < len; ++i) { + const k = keys[i]; + const v = obj[k]; + let ks = convert(k, encode); + ks += eq; + if (ArrayIsArray(v)) { + const vlen = v.length; + if (vlen === 0) + continue; + if (fields) + fields += sep; + for (let j = 0; j < vlen; ++j) { + if (j) + fields += sep; + fields += ks; + fields += convert(v[j], encode); + } + } + else { + if (fields) + fields += sep; + fields += ks; + fields += convert(v, encode); + } + } + return fields; + } + return \\"\\"; +}); +v62.encode = (function stringify(obj, sep, eq, options) { + sep = sep || \\"&\\"; + eq = eq || \\"=\\"; + let encode = QueryString.escape; + if (options && typeof options.encodeURIComponent === \\"function\\") { + encode = options.encodeURIComponent; + } + const convert = (encode === qsEscape ? encodeStringified : encodeStringifiedCustom); + if (obj !== null && typeof obj === \\"object\\") { + const keys = ObjectKeys(obj); + const len = keys.length; + let fields = \\"\\"; + for (let i = 0; i < len; ++i) { + const k = keys[i]; + const v = obj[k]; + let ks = convert(k, encode); + ks += eq; + if (ArrayIsArray(v)) { + const vlen = v.length; + if (vlen === 0) + continue; + if (fields) + fields += sep; + for (let j = 0; j < vlen; ++j) { + if (j) + fields += sep; + fields += ks; + fields += convert(v[j], encode); + } + } + else { + if (fields) + fields += sep; + fields += ks; + fields += convert(v, encode); + } + } + return fields; + } + return \\"\\"; +}); +v62.parse = (function parse(qs, sep, eq, options) { + const obj = ObjectCreate(null); + if (typeof qs !== \\"string\\" || qs.length === 0) { + return obj; + } + const sepCodes = (!sep ? defSepCodes : charCodes(String(sep))); + const eqCodes = (!eq ? defEqCodes : charCodes(String(eq))); + const sepLen = sepCodes.length; + const eqLen = eqCodes.length; + let pairs = 1000; + if (options && typeof options.maxKeys === \\"number\\") { + pairs = (options.maxKeys > 0 ? options.maxKeys : -1); + } + let decode = QueryString.unescape; + if (options && typeof options.decodeURIComponent === \\"function\\") { + decode = options.decodeURIComponent; + } + const customDecode = (decode !== qsUnescape); + let lastPos = 0; + let sepIdx = 0; + let eqIdx = 0; + let key = \\"\\"; + let value = \\"\\"; + let keyEncoded = customDecode; + let valEncoded = customDecode; + const plusChar = (customDecode ? \\"%20\\" : \\" \\"); + let encodeCheck = 0; + for (let i = 0; i < qs.length; ++i) { + const code = StringPrototypeCharCodeAt(qs, i); + if (code === sepCodes[sepIdx]) { + if (++sepIdx === sepLen) { + const end = i - sepIdx + 1; + if (eqIdx < eqLen) { + if (lastPos < end) { + key += StringPrototypeSlice(qs, lastPos, end); + } + else if (key.length === 0) { + if (--pairs === 0) + return obj; + lastPos = i + 1; + sepIdx = eqIdx = 0; + continue; + } + } + else if (lastPos < end) { + value += StringPrototypeSlice(qs, lastPos, end); + } + addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); + if (--pairs === 0) + return obj; + keyEncoded = valEncoded = customDecode; + key = value = \\"\\"; + encodeCheck = 0; + lastPos = i + 1; + sepIdx = eqIdx = 0; + } + } + else { + sepIdx = 0; + if (eqIdx < eqLen) { + if (code === eqCodes[eqIdx]) { + if (++eqIdx === eqLen) { + const end = i - eqIdx + 1; + if (lastPos < end) + key += StringPrototypeSlice(qs, lastPos, end); + encodeCheck = 0; + lastPos = i + 1; + } + continue; + } + else { + eqIdx = 0; + if (!keyEncoded) { + if (code === 37) { + encodeCheck = 1; + continue; + } + else if (encodeCheck > 0) { + if (isHexTable[code] === 1) { + if (++encodeCheck === 3) + keyEncoded = true; + continue; + } + else { + encodeCheck = 0; + } + } + } + } + if (code === 43) { + if (lastPos < i) + key += StringPrototypeSlice(qs, lastPos, i); + key += plusChar; + lastPos = i + 1; + continue; + } + } + if (code === 43) { + if (lastPos < i) + value += StringPrototypeSlice(qs, lastPos, i); + value += plusChar; + lastPos = i + 1; + } + else if (!valEncoded) { + if (code === 37) { + encodeCheck = 1; + } + else if (encodeCheck > 0) { + if (isHexTable[code] === 1) { + if (++encodeCheck === 3) + valEncoded = true; + } + else { + encodeCheck = 0; + } + } + } + } + } + if (lastPos < qs.length) { + if (eqIdx < eqLen) + key += StringPrototypeSlice(qs, lastPos); + else if (sepIdx < sepLen) + value += StringPrototypeSlice(qs, lastPos); + } + else if (eqIdx === 0 && key.length === 0) { + return obj; + } + addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); + return obj; +}); +v62.decode = (function parse(qs, sep, eq, options) { + const obj = ObjectCreate(null); + if (typeof qs !== \\"string\\" || qs.length === 0) { + return obj; + } + const sepCodes = (!sep ? defSepCodes : charCodes(String(sep))); + const eqCodes = (!eq ? defEqCodes : charCodes(String(eq))); + const sepLen = sepCodes.length; + const eqLen = eqCodes.length; + let pairs = 1000; + if (options && typeof options.maxKeys === \\"number\\") { + pairs = (options.maxKeys > 0 ? options.maxKeys : -1); + } + let decode = QueryString.unescape; + if (options && typeof options.decodeURIComponent === \\"function\\") { + decode = options.decodeURIComponent; + } + const customDecode = (decode !== qsUnescape); + let lastPos = 0; + let sepIdx = 0; + let eqIdx = 0; + let key = \\"\\"; + let value = \\"\\"; + let keyEncoded = customDecode; + let valEncoded = customDecode; + const plusChar = (customDecode ? \\"%20\\" : \\" \\"); + let encodeCheck = 0; + for (let i = 0; i < qs.length; ++i) { + const code = StringPrototypeCharCodeAt(qs, i); + if (code === sepCodes[sepIdx]) { + if (++sepIdx === sepLen) { + const end = i - sepIdx + 1; + if (eqIdx < eqLen) { + if (lastPos < end) { + key += StringPrototypeSlice(qs, lastPos, end); + } + else if (key.length === 0) { + if (--pairs === 0) + return obj; + lastPos = i + 1; + sepIdx = eqIdx = 0; + continue; + } + } + else if (lastPos < end) { + value += StringPrototypeSlice(qs, lastPos, end); + } + addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); + if (--pairs === 0) + return obj; + keyEncoded = valEncoded = customDecode; + key = value = \\"\\"; + encodeCheck = 0; + lastPos = i + 1; + sepIdx = eqIdx = 0; + } + } + else { + sepIdx = 0; + if (eqIdx < eqLen) { + if (code === eqCodes[eqIdx]) { + if (++eqIdx === eqLen) { + const end = i - eqIdx + 1; + if (lastPos < end) + key += StringPrototypeSlice(qs, lastPos, end); + encodeCheck = 0; + lastPos = i + 1; + } + continue; + } + else { + eqIdx = 0; + if (!keyEncoded) { + if (code === 37) { + encodeCheck = 1; + continue; + } + else if (encodeCheck > 0) { + if (isHexTable[code] === 1) { + if (++encodeCheck === 3) + keyEncoded = true; + continue; + } + else { + encodeCheck = 0; + } + } + } + } + if (code === 43) { + if (lastPos < i) + key += StringPrototypeSlice(qs, lastPos, i); + key += plusChar; + lastPos = i + 1; + continue; + } + } + if (code === 43) { + if (lastPos < i) + value += StringPrototypeSlice(qs, lastPos, i); + value += plusChar; + lastPos = i + 1; + } + else if (!valEncoded) { + if (code === 37) { + encodeCheck = 1; + } + else if (encodeCheck > 0) { + if (isHexTable[code] === 1) { + if (++encodeCheck === 3) + valEncoded = true; + } + else { + encodeCheck = 0; + } + } + } + } + } + if (lastPos < qs.length) { + if (eqIdx < eqLen) + key += StringPrototypeSlice(qs, lastPos); + else if (sepIdx < sepLen) + value += StringPrototypeSlice(qs, lastPos); + } + else if (eqIdx === 0 && key.length === 0) { + return obj; + } + addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); + return obj; +}); +v3.querystring = v62; +const v63 = require(\\"aws-sdk\\"); +const v64 = v63.createEventStream; +v3.createEventStream = v64; +const v65 = {}; +const v66 = v65.now; +v65.now = v66; +v3.realClock = v65; +const v67 = {}; +const v68 = require(\\"aws-sdk\\"); +const v69 = v68.Publisher; +v67.Publisher = v69; +const v70 = require(\\"aws-sdk\\"); +const v71 = v70; +v67.configProvider = v71; +v3.clientSideMonitoring = v67; +const v72 = {}; +v72.clearCachedFiles = (function clearCachedFiles() { + this.resolvedProfiles = {}; +}); +v72.loadFrom = (function loadFrom(options) { + options = options || {}; + var isConfig = options.isConfig === true; + var filename = options.filename || this.getDefaultFilePath(isConfig); + if (!this.resolvedProfiles[filename]) { + var fileContent = this.parseFile(filename, isConfig); + Object.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); + } + return this.resolvedProfiles[filename]; +}); +const v73 = require(\\"aws-sdk\\"); +const v74 = v73.parseFile; +v72.parseFile = v74; +v72.getDefaultFilePath = (function getDefaultFilePath(isConfig) { + return path.join(this.getHomeDir(), \\".aws\\", isConfig ? \\"config\\" : \\"credentials\\"); +}); +v72.getHomeDir = (function getHomeDir() { + var env = process.env; + var home = env.HOME || env.USERPROFILE || (env.HOMEPATH ? ((env.HOMEDRIVE || \\"C:/\\") + env.HOMEPATH) : null); + if (home) { + return home; + } + if (typeof os.homedir === \\"function\\") { + return os.homedir(); + } + throw AWS.util.error(new Error(\\"Cannot load credentials, HOME path not set\\")); +}); +const v75 = Object.create(v72); +const v76 = {}; +v75.resolvedProfiles = v76; +v3.iniLoader = v75; +const v77 = v3.getSystemErrorName; +v3.getSystemErrorName = v77; +const v78 = v3.loadConfig; +v3.loadConfig = v78; +v2.util = v3; +v2.VERSION = \\"2.1193.0\\"; +const v79 = {}; +const v80 = require(\\"aws-sdk\\"); +const v81 = v80.__super__; +v79.RequestSigner = v81; +const v82 = require(\\"aws-sdk\\"); +const v83 = v82; +v79.V2 = v83; +const v84 = require(\\"aws-sdk\\"); +const v85 = v84.__super__; +v79.V3 = v85; +v79.V3Https = v84; +const v86 = require(\\"aws-sdk\\"); +const v87 = v86; +v79.V4 = v87; +v79.S3 = v80; +const v88 = require(\\"aws-sdk\\"); +const v89 = v88; +v79.Presign = v89; +v2.Signers = v79; +const v90 = {}; +const v91 = {}; +const v92 = v91.buildRequest; +v91.buildRequest = v92; +const v93 = v91.extractError; +v91.extractError = v93; +const v94 = v91.extractData; +v91.extractData = v94; +v90.Json = v91; +const v95 = {}; +const v96 = v95.buildRequest; +v95.buildRequest = v96; +const v97 = v95.extractError; +v95.extractError = v97; +const v98 = v95.extractData; +v95.extractData = v98; +v90.Query = v95; +const v99 = {}; +const v100 = v99.buildRequest; +v99.buildRequest = v100; +const v101 = v99.extractError; +v99.extractError = v101; +const v102 = v99.extractData; +v99.extractData = v102; +const v103 = v99.generateURI; +v99.generateURI = v103; +v90.Rest = v99; +const v104 = {}; +const v105 = v104.buildRequest; +v104.buildRequest = v105; +const v106 = v104.extractError; +v104.extractError = v106; +const v107 = v104.extractData; +v104.extractData = v107; +v90.RestJson = v104; +const v108 = {}; +const v109 = v108.buildRequest; +v108.buildRequest = v109; +const v110 = v108.extractError; +v108.extractError = v110; +const v111 = v108.extractData; +v108.extractData = v111; +v90.RestXml = v108; +v2.Protocol = v90; +const v112 = {}; +const v113 = require(\\"aws-sdk\\"); +const v114 = v113; +v112.Builder = v114; +const v115 = require(\\"aws-sdk\\"); +const v116 = v115; +v112.Parser = v116; +v2.XML = v112; +const v117 = {}; +const v118 = require(\\"aws-sdk\\"); +const v119 = v118; +v117.Builder = v119; +const v120 = require(\\"aws-sdk\\"); +const v121 = v120; +v117.Parser = v121; +v2.JSON = v117; +const v122 = {}; +const v123 = require(\\"aws-sdk\\"); +const v124 = v123; +v122.Api = v124; +const v125 = require(\\"aws-sdk\\"); +const v126 = v125; +v122.Operation = v126; +const v127 = require(\\"aws-sdk\\"); +const v128 = v127; +v122.Shape = v128; +const v129 = require(\\"aws-sdk\\"); +const v130 = v129; +v122.Paginator = v130; +const v131 = require(\\"aws-sdk\\"); +const v132 = v131; +v122.ResourceWaiter = v132; +v2.Model = v122; +const v133 = require(\\"aws-sdk\\"); +const v134 = v133; +v2.apiLoader = v134; +const v135 = require(\\"aws-sdk\\"); +const v136 = v135.EndpointCache; +v2.EndpointCache = v136; +const v137 = require(\\"aws-sdk\\"); +const v138 = v137; +v2.SequentialExecutor = v138; +const v139 = require(\\"aws-sdk\\"); +const v140 = v139.__super__; +v2.Service = v140; +const v141 = v2.Credentials; +v2.Credentials = v141; +const v142 = v2.CredentialProviderChain; +v2.CredentialProviderChain = v142; +const v143 = v2.Config; +v2.Config = v143; +const v144 = {}; +v144.getCredentials = (function getCredentials(callback) { + var self = this; + function finish(err) { + callback(err, err ? null : self.credentials); + } + function credError(msg, err) { + return new AWS.util.error(err || new Error(), { + code: \\"CredentialsError\\", + message: msg, + name: \\"CredentialsError\\" + }); + } + function getAsyncCredentials() { + self.credentials.get(function (err) { + if (err) { + var msg = \\"Could not load credentials from \\" + self.credentials.constructor.name; + err = credError(msg, err); + } + finish(err); + }); + } + function getStaticCredentials() { + var err = null; + if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { + err = credError(\\"Missing credentials\\"); + } + finish(err); + } + if (self.credentials) { + if (typeof self.credentials.get === \\"function\\") { + getAsyncCredentials(); + } + else { + getStaticCredentials(); + } + } + else if (self.credentialProvider) { + self.credentialProvider.resolve(function (err, creds) { + if (err) { + err = credError(\\"Could not load credentials from any providers\\", err); + } + self.credentials = creds; + finish(err); + }); + } + else { + finish(credError(\\"No credentials to load\\")); + } +}); +v144.update = (function update(options, allowUnknownKeys) { + allowUnknownKeys = allowUnknownKeys || false; + options = this.extractCredentials(options); + AWS.util.each.call(this, options, function (key, value) { + if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) || AWS.Service.hasService(key)) { + this.set(key, value); + } + }); +}); +v144.loadFromPath = (function loadFromPath(path) { + this.clear(); + var options = JSON.parse(AWS.util.readFileSync(path)); + var fileSystemCreds = new AWS.FileSystemCredentials(path); + var chain = new AWS.CredentialProviderChain(); + chain.providers.unshift(fileSystemCreds); + chain.resolve(function (err, creds) { + if (err) + throw err; + else + options.credentials = creds; + }); + this.constructor(options); + return this; +}); +v144.clear = (function clear() { + AWS.util.each.call(this, this.keys, function (key) { + delete this[key]; + }); + this.set(\\"credentials\\", undefined); + this.set(\\"credentialProvider\\", undefined); +}); +v144.set = (function set(property, value, defaultValue) { + if (value === undefined) { + if (defaultValue === undefined) { + defaultValue = this.keys[property]; + } + if (typeof defaultValue === \\"function\\") { + this[property] = defaultValue.call(this); + } + else { + this[property] = defaultValue; + } + } + else if (property === \\"httpOptions\\" && this[property]) { + this[property] = AWS.util.merge(this[property], value); + } + else { + this[property] = value; + } +}); +const v145 = {}; +v145.credentials = (function () { + var credentials = null; + new AWS.CredentialProviderChain([ + function () { return new AWS.EnvironmentCredentials(\\"AWS\\"); }, + function () { return new AWS.EnvironmentCredentials(\\"AMAZON\\"); }, + function () { return new AWS.SharedIniFileCredentials({ disableAssumeRole: true }); } + ]).resolve(function (err, creds) { + if (!err) + credentials = creds; + }); + return credentials; +}); +v145.credentialProvider = (function () { + return new AWS.CredentialProviderChain(); +}); +v145.region = (function () { + var region = getRegion(); + return region ? getRealRegion(region) : undefined; +}); +v145.logger = (function () { + return process.env.AWSJS_DEBUG ? console : null; +}); +const v146 = {}; +v145.apiVersions = v146; +v145.apiVersion = null; +v145.endpoint = undefined; +const v147 = {}; +v147.timeout = 120000; +v145.httpOptions = v147; +v145.maxRetries = undefined; +v145.maxRedirects = 10; +v145.paramValidation = true; +v145.sslEnabled = true; +v145.s3ForcePathStyle = false; +v145.s3BucketEndpoint = false; +v145.s3DisableBodySigning = true; +v145.s3UsEast1RegionalEndpoint = \\"legacy\\"; +v145.s3UseArnRegion = undefined; +v145.computeChecksums = true; +v145.convertResponseTypes = true; +v145.correctClockSkew = false; +v145.customUserAgent = null; +v145.dynamoDbCrc32 = true; +v145.systemClockOffset = 0; +v145.signatureVersion = null; +v145.signatureCache = true; +const v148 = {}; +v145.retryDelayOptions = v148; +v145.useAccelerateEndpoint = false; +v145.clientSideMonitoring = false; +v145.endpointDiscoveryEnabled = undefined; +v145.endpointCacheSize = 1000; +v145.hostPrefixEnabled = true; +v145.stsRegionalEndpoints = \\"legacy\\"; +v145.useFipsEndpoint = (function () { + var region = getRegion(); + return isFipsRegion(region) ? true : util.loadConfig(USE_FIPS_ENDPOINT_CONFIG_OPTIONS); +}); +v145.useDualstackEndpoint = (function () { + return util.loadConfig(USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS); +}); +v144.keys = v145; +v144.extractCredentials = (function extractCredentials(options) { + if (options.accessKeyId && options.secretAccessKey) { + options = AWS.util.copy(options); + options.credentials = new AWS.Credentials(options); + } + return options; +}); +v144.setPromisesDependency = (function setPromisesDependency(dep) { + PromisesDependency = dep; + if (dep === null && typeof Promise === \\"function\\") { + PromisesDependency = Promise; + } + var constructors = [AWS.Request, AWS.Credentials, AWS.CredentialProviderChain]; + if (AWS.S3) { + constructors.push(AWS.S3); + if (AWS.S3.ManagedUpload) { + constructors.push(AWS.S3.ManagedUpload); + } + } + AWS.util.addPromises(constructors, PromisesDependency); +}); +v144.getPromisesDependency = (function getPromisesDependency() { + return PromisesDependency; +}); +const v149 = Object.create(v144); +const v150 = {}; +v150.expiryWindow = 15; +v150.needsRefresh = (function needsRefresh() { + var currentTime = AWS.util.date.getDate().getTime(); + var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); + if (this.expireTime && adjustedTime > this.expireTime) { + return true; + } + else { + return this.expired || !this.accessKeyId || !this.secretAccessKey; + } +}); +v150.get = (function get(callback) { + var self = this; + if (this.needsRefresh()) { + this.refresh(function (err) { + if (!err) + self.expired = false; + if (callback) + callback(err); + }); + } + else if (callback) { + callback(); + } +}); +v150.refresh = (function refresh(callback) { + this.expired = false; + callback(); +}); +v150.coalesceRefresh = (function coalesceRefresh(callback, sync) { + var self = this; + if (self.refreshCallbacks.push(callback) === 1) { + self.load(function onLoad(err) { + AWS.util.arrayEach(self.refreshCallbacks, function (callback) { + if (sync) { + callback(err); + } + else { + AWS.util.defer(function () { + callback(err); + }); + } + }); + self.refreshCallbacks.length = 0; + }); + } +}); +v150.load = (function load(callback) { + callback(); +}); +v150.getPromise = (function promise() { + var self = this; + var args = Array.prototype.slice.call(arguments); + return new PromiseDependency(function (resolve, reject) { + args.push(function (err, data) { + if (err) { + reject(err); + } + else { + resolve(data); + } + }); + self[methodName].apply(self, args); + }); +}); +v150.refreshPromise = (function promise() { + var self = this; + var args = Array.prototype.slice.call(arguments); + return new PromiseDependency(function (resolve, reject) { + args.push(function (err, data) { + if (err) { + reject(err); + } + else { + resolve(data); + } + }); + self[methodName].apply(self, args); + }); +}); +const v151 = Object.create(v150); +v151.load = (function load(callback) { + var self = this; + try { + var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); + var profile = profiles[this.profile] || {}; + if (Object.keys(profile).length === 0) { + throw AWS.util.error(new Error(\\"Profile \\" + this.profile + \\" not found\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + var preferStaticCredentialsToRoleArn = Boolean(this.preferStaticCredentials && profile[\\"aws_access_key_id\\"] && profile[\\"aws_secret_access_key\\"]); + if (profile[\\"role_arn\\"] && !preferStaticCredentialsToRoleArn) { + this.loadRoleProfile(profiles, profile, function (err, data) { + if (err) { + callback(err); + } + else { + self.expired = false; + self.accessKeyId = data.Credentials.AccessKeyId; + self.secretAccessKey = data.Credentials.SecretAccessKey; + self.sessionToken = data.Credentials.SessionToken; + self.expireTime = data.Credentials.Expiration; + callback(null); + } + }); + return; + } + this.accessKeyId = profile[\\"aws_access_key_id\\"]; + this.secretAccessKey = profile[\\"aws_secret_access_key\\"]; + this.sessionToken = profile[\\"aws_session_token\\"]; + if (!this.accessKeyId || !this.secretAccessKey) { + throw AWS.util.error(new Error(\\"Credentials not set for profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + this.expired = false; + callback(null); + } + catch (err) { + callback(err); + } +}); +v151.refresh = (function refresh(callback) { + iniLoader.clearCachedFiles(); + this.coalesceRefresh(callback || AWS.util.fn.callback, this.disableAssumeRole); +}); +v151.loadRoleProfile = (function loadRoleProfile(creds, roleProfile, callback) { + if (this.disableAssumeRole) { + throw AWS.util.error(new Error(\\"Role assumption profiles are disabled. \\" + \\"Failed to load profile \\" + this.profile + \\" from \\" + creds.filename), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + var self = this; + var roleArn = roleProfile[\\"role_arn\\"]; + var roleSessionName = roleProfile[\\"role_session_name\\"]; + var externalId = roleProfile[\\"external_id\\"]; + var mfaSerial = roleProfile[\\"mfa_serial\\"]; + var sourceProfileName = roleProfile[\\"source_profile\\"]; + var profileRegion = roleProfile[\\"region\\"] || ASSUME_ROLE_DEFAULT_REGION; + if (!sourceProfileName) { + throw AWS.util.error(new Error(\\"source_profile is not set using profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + var sourceProfileExistanceTest = creds[sourceProfileName]; + if (typeof sourceProfileExistanceTest !== \\"object\\") { + throw AWS.util.error(new Error(\\"source_profile \\" + sourceProfileName + \\" using profile \\" + this.profile + \\" does not exist\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + var sourceCredentials = new AWS.SharedIniFileCredentials(AWS.util.merge(this.options || {}, { + profile: sourceProfileName, + preferStaticCredentials: true + })); + this.roleArn = roleArn; + var sts = new STS({ + credentials: sourceCredentials, + region: profileRegion, + httpOptions: this.httpOptions + }); + var roleParams = { + RoleArn: roleArn, + RoleSessionName: roleSessionName || \\"aws-sdk-js-\\" + Date.now() + }; + if (externalId) { + roleParams.ExternalId = externalId; + } + if (mfaSerial && self.tokenCodeFn) { + roleParams.SerialNumber = mfaSerial; + self.tokenCodeFn(mfaSerial, function (err, token) { + if (err) { + var message; + if (err instanceof Error) { + message = err.message; + } + else { + message = err; + } + callback(AWS.util.error(new Error(\\"Error fetching MFA token: \\" + message), { code: \\"SharedIniFileCredentialsProviderFailure\\" })); + return; + } + roleParams.TokenCode = token; + sts.assumeRole(roleParams, callback); + }); + return; + } + sts.assumeRole(roleParams, callback); +}); +const v152 = Object.create(v151); +v152.secretAccessKey = \\"hFtbgbtjmEVRnPRGHIeunft+g7PBUUYISFrP5ksw\\"; +v152.expired = false; +v152.expireTime = null; +const v153 = []; +v153.push(); +v152.refreshCallbacks = v153; +v152.accessKeyId = \\"AKIA2PTXRDHQCY72R4HM\\"; +v152.sessionToken = undefined; +v152.filename = undefined; +v152.profile = \\"default\\"; +v152.disableAssumeRole = true; +v152.preferStaticCredentials = false; +v152.tokenCodeFn = null; +v152.httpOptions = null; +v149.credentials = v152; +const v154 = Object.create(v150); +v154.resolve = (function resolve(callback) { + var self = this; + if (self.providers.length === 0) { + callback(new Error(\\"No providers\\")); + return self; + } + if (self.resolveCallbacks.push(callback) === 1) { + var index = 0; + var providers = self.providers.slice(0); + function resolveNext(err, creds) { + if ((!err && creds) || index === providers.length) { + AWS.util.arrayEach(self.resolveCallbacks, function (callback) { + callback(err, creds); + }); + self.resolveCallbacks.length = 0; + return; + } + var provider = providers[index++]; + if (typeof provider === \\"function\\") { + creds = provider.call(); + } + else { + creds = provider; + } + if (creds.get) { + creds.get(function (getErr) { + resolveNext(getErr, getErr ? null : creds); + }); + } + else { + resolveNext(null, creds); + } + } + resolveNext(); + } + return self; +}); +v154.resolvePromise = (function promise() { + var self = this; + var args = Array.prototype.slice.call(arguments); + return new PromiseDependency(function (resolve, reject) { + args.push(function (err, data) { + if (err) { + reject(err); + } + else { + resolve(data); + } + }); + self[methodName].apply(self, args); + }); +}); +const v155 = Object.create(v154); +const v156 = []; +v156.push((function () { return new AWS.EnvironmentCredentials(\\"AWS\\"); }), (function () { return new AWS.EnvironmentCredentials(\\"AMAZON\\"); }), (function () { return new AWS.SsoCredentials(); }), (function () { return new AWS.SharedIniFileCredentials(); }), (function () { return new AWS.ECSCredentials(); }), (function () { return new AWS.ProcessCredentials(); }), (function () { return new AWS.TokenFileWebIdentityCredentials(); }), (function () { return new AWS.EC2MetadataCredentials(); })); +v155.providers = v156; +const v157 = []; +v157.push(); +v155.resolveCallbacks = v157; +v149.credentialProvider = v155; +v149.region = undefined; +v149.logger = null; +v149.apiVersions = v146; +v149.apiVersion = null; +v149.endpoint = undefined; +v149.httpOptions = v147; +v149.maxRetries = undefined; +v149.maxRedirects = 10; +v149.paramValidation = true; +v149.sslEnabled = true; +v149.s3ForcePathStyle = false; +v149.s3BucketEndpoint = false; +v149.s3DisableBodySigning = true; +v149.s3UsEast1RegionalEndpoint = \\"legacy\\"; +v149.s3UseArnRegion = undefined; +v149.computeChecksums = true; +v149.convertResponseTypes = true; +v149.correctClockSkew = false; +v149.customUserAgent = null; +v149.dynamoDbCrc32 = true; +v149.systemClockOffset = 0; +v149.signatureVersion = null; +v149.signatureCache = true; +v149.retryDelayOptions = v148; +v149.useAccelerateEndpoint = false; +v149.clientSideMonitoring = false; +v149.endpointDiscoveryEnabled = undefined; +v149.endpointCacheSize = 1000; +v149.hostPrefixEnabled = true; +v149.stsRegionalEndpoints = \\"legacy\\"; +v149.useFipsEndpoint = false; +v149.useDualstackEndpoint = false; +v2.config = v149; +const v158 = v2.Endpoint; +v2.Endpoint = v158; +const v159 = v2.HttpRequest; +v2.HttpRequest = v159; +const v160 = v2.HttpResponse; +v2.HttpResponse = v160; +const v161 = v2.HttpClient; +v2.HttpClient = v161; +const v162 = {}; +const v163 = {}; +v163.listeners = (function listeners(eventName) { + return this._events[eventName] ? this._events[eventName].slice(0) : []; +}); +v163.on = (function on(eventName, listener, toHead) { + if (this._events[eventName]) { + toHead ? this._events[eventName].unshift(listener) : this._events[eventName].push(listener); + } + else { + this._events[eventName] = [listener]; + } + return this; +}); +v163.onAsync = (function onAsync(eventName, listener, toHead) { + listener._isAsync = true; + return this.on(eventName, listener, toHead); +}); +v163.removeListener = (function removeListener(eventName, listener) { + var listeners = this._events[eventName]; + if (listeners) { + var length = listeners.length; + var position = -1; + for (var i = 0; i < length; ++i) { + if (listeners[i] === listener) { + position = i; + } + } + if (position > -1) { + listeners.splice(position, 1); + } + } + return this; +}); +v163.removeAllListeners = (function removeAllListeners(eventName) { + if (eventName) { + delete this._events[eventName]; + } + else { + this._events = {}; + } + return this; +}); +v163.emit = (function emit(eventName, eventArgs, doneCallback) { + if (!doneCallback) + doneCallback = function () { }; + var listeners = this.listeners(eventName); + var count = listeners.length; + this.callListeners(listeners, eventArgs, doneCallback); + return count > 0; +}); +v163.callListeners = (function callListeners(listeners, args, doneCallback, prevError) { + var self = this; + var error = prevError || null; + function callNextListener(err) { + if (err) { + error = AWS.util.error(error || new Error(), err); + if (self._haltHandlersOnError) { + return doneCallback.call(self, error); + } + } + self.callListeners(listeners, args, doneCallback, error); + } + while (listeners.length > 0) { + var listener = listeners.shift(); + if (listener._isAsync) { + listener.apply(self, args.concat([callNextListener])); + return; + } + else { + try { + listener.apply(self, args); + } + catch (err) { + error = AWS.util.error(error || new Error(), err); + } + if (error && self._haltHandlersOnError) { + doneCallback.call(self, error); + return; + } + } + } + doneCallback.call(self, error); +}); +v163.addListeners = (function addListeners(listeners) { + var self = this; + if (listeners._events) + listeners = listeners._events; + AWS.util.each(listeners, function (event, callbacks) { + if (typeof callbacks === \\"function\\") + callbacks = [callbacks]; + AWS.util.arrayEach(callbacks, function (callback) { + self.on(event, callback); + }); + }); + return self; +}); +v163.addNamedListener = (function addNamedListener(name, eventName, callback, toHead) { + this[name] = callback; + this.addListener(eventName, callback, toHead); + return this; +}); +v163.addNamedAsyncListener = (function addNamedAsyncListener(name, eventName, callback, toHead) { + callback._isAsync = true; + return this.addNamedListener(name, eventName, callback, toHead); +}); +v163.addNamedListeners = (function addNamedListeners(callback) { + var self = this; + callback(function () { + self.addNamedListener.apply(self, arguments); + }, function () { + self.addNamedAsyncListener.apply(self, arguments); + }); + return this; +}); +v163.addListener = (function on(eventName, listener, toHead) { + if (this._events[eventName]) { + toHead ? this._events[eventName].unshift(listener) : this._events[eventName].push(listener); + } + else { + this._events[eventName] = [listener]; + } + return this; +}); +const v164 = Object.create(v163); +const v165 = {}; +const v166 = []; +v166.push((function VALIDATE_CREDENTIALS(req, done) { + if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) + return done(); + req.service.config.getCredentials(function (err) { + if (err) { + req.response.error = AWS.util.error(err, { code: \\"CredentialsError\\", message: \\"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1\\" }); + } + done(); + }); +}), (function VALIDATE_REGION(req) { + if (!req.service.isGlobalEndpoint) { + var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!req.service.config.region) { + req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); + } + else if (!dnsHostRegex.test(req.service.config.region)) { + req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Invalid region in config\\" }); + } + } +}), (function BUILD_IDEMPOTENCY_TOKENS(req) { + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + if (!operation) { + return; + } + var idempotentMembers = operation.idempotentMembers; + if (!idempotentMembers.length) { + return; + } + var params = AWS.util.copy(req.params); + for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { + if (!params[idempotentMembers[i]]) { + params[idempotentMembers[i]] = AWS.util.uuid.v4(); + } + } + req.params = params; +}), (function VALIDATE_PARAMETERS(req) { + if (!req.service.api.operations) { + return; + } + var rules = req.service.api.operations[req.operation].input; + var validation = req.service.config.paramValidation; + new AWS.ParamValidator(validation).validate(rules, req.params); +})); +v165.validate = v166; +const v167 = []; +v167.push((function COMPUTE_CHECKSUM(req) { + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + if (!operation) { + return; + } + var body = req.httpRequest.body; + var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === \\"string\\"); + var headers = req.httpRequest.headers; + if (operation.httpChecksumRequired && req.service.config.computeChecksums && isNonStreamingPayload && !headers[\\"Content-MD5\\"]) { + var md5 = AWS.util.crypto.md5(body, \\"base64\\"); + headers[\\"Content-MD5\\"] = md5; + } +}), (function COMPUTE_SHA256(req, done) { + req.haltHandlersOnError(); + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + var authtype = operation ? operation.authtype : \\"\\"; + if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) + return done(); + if (req.service.getSignerClass(req) === AWS.Signers.V4) { + var body = req.httpRequest.body || \\"\\"; + if (authtype.indexOf(\\"unsigned-body\\") >= 0) { + req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; + return done(); + } + AWS.util.computeSha256(body, function (err, sha) { + if (err) { + done(err); + } + else { + req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = sha; + done(); + } + }); + } + else { + done(); + } +}), (function SET_CONTENT_LENGTH(req) { + var authtype = getOperationAuthtype(req); + var payloadMember = AWS.util.getRequestPayloadShape(req); + if (req.httpRequest.headers[\\"Content-Length\\"] === undefined) { + try { + var length = AWS.util.string.byteLength(req.httpRequest.body); + req.httpRequest.headers[\\"Content-Length\\"] = length; + } + catch (err) { + if (payloadMember && payloadMember.isStreaming) { + if (payloadMember.requiresLength) { + throw err; + } + else if (authtype.indexOf(\\"unsigned-body\\") >= 0) { + req.httpRequest.headers[\\"Transfer-Encoding\\"] = \\"chunked\\"; + return; + } + else { + throw err; + } + } + throw err; + } + } +}), (function SET_HTTP_HOST(req) { + req.httpRequest.headers[\\"Host\\"] = req.httpRequest.endpoint.host; +}), (function SET_TRACE_ID(req) { + var traceIdHeaderName = \\"X-Amzn-Trace-Id\\"; + if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { + var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; + var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; + var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + var traceId = process.env[ENV_TRACE_ID]; + if (typeof functionName === \\"string\\" && functionName.length > 0 && typeof traceId === \\"string\\" && traceId.length > 0) { + req.httpRequest.headers[traceIdHeaderName] = traceId; + } + } +})); +v165.afterBuild = v167; +const v168 = []; +v168.push((function RESTART() { + var err = this.response.error; + if (!err || !err.retryable) + return; + this.httpRequest = new AWS.HttpRequest(this.service.endpoint, this.service.region); + if (this.response.retryCount < this.service.config.maxRetries) { + this.response.retryCount++; + } + else { + this.response.error = null; + } +})); +v165.restart = v168; +const v169 = []; +const v170 = require(\\"aws-sdk\\"); +const v171 = v170.discoverEndpoint; +v169.push(v171, (function SIGN(req, done) { + var service = req.service; + var operations = req.service.api.operations || {}; + var operation = operations[req.operation]; + var authtype = operation ? operation.authtype : \\"\\"; + if (!service.api.signatureVersion && !authtype && !service.config.signatureVersion) + return done(); + service.config.getCredentials(function (err, credentials) { + if (err) { + req.response.error = err; + return done(); + } + try { + var date = service.getSkewCorrectedDate(); + var SignerClass = service.getSignerClass(req); + var signer = new SignerClass(req.httpRequest, service.getSigningName(req), { + signatureCache: service.config.signatureCache, + operation: operation, + signatureVersion: service.api.signatureVersion + }); + signer.setServiceClientId(service._clientId); + delete req.httpRequest.headers[\\"Authorization\\"]; + delete req.httpRequest.headers[\\"Date\\"]; + delete req.httpRequest.headers[\\"X-Amz-Date\\"]; + signer.addAuthorization(credentials, date); + req.signedAt = date; + } + catch (e) { + req.response.error = e; + } + done(); + }); +})); +v165.sign = v169; +const v172 = []; +v172.push((function VALIDATE_RESPONSE(resp) { + if (this.service.successfulResponse(resp, this)) { + resp.data = {}; + resp.error = null; + } + else { + resp.data = null; + resp.error = AWS.util.error(new Error(), { code: \\"UnknownError\\", message: \\"An unknown error occurred.\\" }); + } +})); +v165.validateResponse = v172; +const v173 = []; +v173.push((function ERROR(err, resp) { + var errorCodeMapping = resp.request.service.api.errorCodeMapping; + if (errorCodeMapping && err && err.code) { + var mapping = errorCodeMapping[err.code]; + if (mapping) { + resp.error.code = mapping.code; + } + } +})); +v165.error = v173; +const v174 = []; +v174.push((function SEND(resp, done) { + resp.httpResponse._abortCallback = done; + resp.error = null; + resp.data = null; + function callback(httpResp) { + resp.httpResponse.stream = httpResp; + var stream = resp.request.httpRequest.stream; + var service = resp.request.service; + var api = service.api; + var operationName = resp.request.operation; + var operation = api.operations[operationName] || {}; + httpResp.on(\\"headers\\", function onHeaders(statusCode, headers, statusMessage) { + resp.request.emit(\\"httpHeaders\\", [statusCode, headers, resp, statusMessage]); + if (!resp.httpResponse.streaming) { + if (AWS.HttpClient.streamsApiVersion === 2) { + if (operation.hasEventOutput && service.successfulResponse(resp)) { + resp.request.emit(\\"httpDone\\"); + done(); + return; + } + httpResp.on(\\"readable\\", function onReadable() { + var data = httpResp.read(); + if (data !== null) { + resp.request.emit(\\"httpData\\", [data, resp]); + } + }); + } + else { + httpResp.on(\\"data\\", function onData(data) { + resp.request.emit(\\"httpData\\", [data, resp]); + }); + } + } + }); + httpResp.on(\\"end\\", function onEnd() { + if (!stream || !stream.didCallback) { + if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { + return; + } + resp.request.emit(\\"httpDone\\"); + done(); + } + }); + } + function progress(httpResp) { + httpResp.on(\\"sendProgress\\", function onSendProgress(value) { + resp.request.emit(\\"httpUploadProgress\\", [value, resp]); + }); + httpResp.on(\\"receiveProgress\\", function onReceiveProgress(value) { + resp.request.emit(\\"httpDownloadProgress\\", [value, resp]); + }); + } + function error(err) { + if (err.code !== \\"RequestAbortedError\\") { + var errCode = err.code === \\"TimeoutError\\" ? err.code : \\"NetworkingError\\"; + err = AWS.util.error(err, { + code: errCode, + region: resp.request.httpRequest.region, + hostname: resp.request.httpRequest.endpoint.hostname, + retryable: true + }); + } + resp.error = err; + resp.request.emit(\\"httpError\\", [resp.error, resp], function () { + done(); + }); + } + function executeSend() { + var http = AWS.HttpClient.getInstance(); + var httpOptions = resp.request.service.config.httpOptions || {}; + try { + var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); + progress(stream); + } + catch (err) { + error(err); + } + } + var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; + if (timeDiff >= 60 * 10) { + this.emit(\\"sign\\", [this], function (err) { + if (err) + done(err); + else + executeSend(); + }); + } + else { + executeSend(); + } +})); +v165.send = v174; +const v175 = []; +v175.push((function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { + resp.httpResponse.statusCode = statusCode; + resp.httpResponse.statusMessage = statusMessage; + resp.httpResponse.headers = headers; + resp.httpResponse.body = AWS.util.buffer.toBuffer(\\"\\"); + resp.httpResponse.buffers = []; + resp.httpResponse.numBytes = 0; + var dateHeader = headers.date || headers.Date; + var service = resp.request.service; + if (dateHeader) { + var serverTime = Date.parse(dateHeader); + if (service.config.correctClockSkew && service.isClockSkewed(serverTime)) { + service.applyClockOffset(serverTime); + } + } +})); +v165.httpHeaders = v175; +const v176 = []; +v176.push((function HTTP_DATA(chunk, resp) { + if (chunk) { + if (AWS.util.isNode()) { + resp.httpResponse.numBytes += chunk.length; + var total = resp.httpResponse.headers[\\"content-length\\"]; + var progress = { loaded: resp.httpResponse.numBytes, total: total }; + resp.request.emit(\\"httpDownloadProgress\\", [progress, resp]); + } + resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); + } +})); +v165.httpData = v176; +const v177 = []; +v177.push((function HTTP_DONE(resp) { + if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { + var body = AWS.util.buffer.concat(resp.httpResponse.buffers); + resp.httpResponse.body = body; + } + delete resp.httpResponse.numBytes; + delete resp.httpResponse.buffers; +})); +v165.httpDone = v177; +const v178 = []; +v178.push((function FINALIZE_ERROR(resp) { + if (resp.httpResponse.statusCode) { + resp.error.statusCode = resp.httpResponse.statusCode; + if (resp.error.retryable === undefined) { + resp.error.retryable = this.service.retryableError(resp.error, this); + } + } +}), (function INVALIDATE_CREDENTIALS(resp) { + if (!resp.error) + return; + switch (resp.error.code) { + case \\"RequestExpired\\": + case \\"ExpiredTokenException\\": + case \\"ExpiredToken\\": + resp.error.retryable = true; + resp.request.service.config.credentials.expired = true; + } +}), (function EXPIRED_SIGNATURE(resp) { + var err = resp.error; + if (!err) + return; + if (typeof err.code === \\"string\\" && typeof err.message === \\"string\\") { + if (err.code.match(/Signature/) && err.message.match(/expired/)) { + resp.error.retryable = true; + } + } +}), (function CLOCK_SKEWED(resp) { + if (!resp.error) + return; + if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew) { + resp.error.retryable = true; + } +}), (function REDIRECT(resp) { + if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers[\\"location\\"]) { + this.httpRequest.endpoint = new AWS.Endpoint(resp.httpResponse.headers[\\"location\\"]); + this.httpRequest.headers[\\"Host\\"] = this.httpRequest.endpoint.host; + resp.error.redirect = true; + resp.error.retryable = true; + } +}), (function RETRY_CHECK(resp) { + if (resp.error) { + if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.error.retryDelay = 0; + } + else if (resp.retryCount < resp.maxRetries) { + resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; + } + } +})); +v165.retry = v178; +const v179 = []; +v179.push((function RESET_RETRY_STATE(resp, done) { + var delay, willRetry = false; + if (resp.error) { + delay = resp.error.retryDelay || 0; + if (resp.error.retryable && resp.retryCount < resp.maxRetries) { + resp.retryCount++; + willRetry = true; + } + else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.redirectCount++; + willRetry = true; + } + } + if (willRetry && delay >= 0) { + resp.error = null; + setTimeout(done, delay); + } + else { + done(); + } +})); +v165.afterRetry = v179; +v164._events = v165; +v164.VALIDATE_CREDENTIALS = (function VALIDATE_CREDENTIALS(req, done) { + if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) + return done(); + req.service.config.getCredentials(function (err) { + if (err) { + req.response.error = AWS.util.error(err, { code: \\"CredentialsError\\", message: \\"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1\\" }); + } + done(); + }); +}); +v164.VALIDATE_REGION = (function VALIDATE_REGION(req) { + if (!req.service.isGlobalEndpoint) { + var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!req.service.config.region) { + req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); + } + else if (!dnsHostRegex.test(req.service.config.region)) { + req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Invalid region in config\\" }); + } + } +}); +v164.BUILD_IDEMPOTENCY_TOKENS = (function BUILD_IDEMPOTENCY_TOKENS(req) { + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + if (!operation) { + return; + } + var idempotentMembers = operation.idempotentMembers; + if (!idempotentMembers.length) { + return; + } + var params = AWS.util.copy(req.params); + for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { + if (!params[idempotentMembers[i]]) { + params[idempotentMembers[i]] = AWS.util.uuid.v4(); + } + } + req.params = params; +}); +v164.VALIDATE_PARAMETERS = (function VALIDATE_PARAMETERS(req) { + if (!req.service.api.operations) { + return; + } + var rules = req.service.api.operations[req.operation].input; + var validation = req.service.config.paramValidation; + new AWS.ParamValidator(validation).validate(rules, req.params); +}); +v164.COMPUTE_CHECKSUM = (function COMPUTE_CHECKSUM(req) { + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + if (!operation) { + return; + } + var body = req.httpRequest.body; + var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === \\"string\\"); + var headers = req.httpRequest.headers; + if (operation.httpChecksumRequired && req.service.config.computeChecksums && isNonStreamingPayload && !headers[\\"Content-MD5\\"]) { + var md5 = AWS.util.crypto.md5(body, \\"base64\\"); + headers[\\"Content-MD5\\"] = md5; + } +}); +v164.COMPUTE_SHA256 = (function COMPUTE_SHA256(req, done) { + req.haltHandlersOnError(); + if (!req.service.api.operations) { + return; + } + var operation = req.service.api.operations[req.operation]; + var authtype = operation ? operation.authtype : \\"\\"; + if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) + return done(); + if (req.service.getSignerClass(req) === AWS.Signers.V4) { + var body = req.httpRequest.body || \\"\\"; + if (authtype.indexOf(\\"unsigned-body\\") >= 0) { + req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; + return done(); + } + AWS.util.computeSha256(body, function (err, sha) { + if (err) { + done(err); + } + else { + req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = sha; + done(); + } + }); + } + else { + done(); + } +}); +v164.SET_CONTENT_LENGTH = (function SET_CONTENT_LENGTH(req) { + var authtype = getOperationAuthtype(req); + var payloadMember = AWS.util.getRequestPayloadShape(req); + if (req.httpRequest.headers[\\"Content-Length\\"] === undefined) { + try { + var length = AWS.util.string.byteLength(req.httpRequest.body); + req.httpRequest.headers[\\"Content-Length\\"] = length; + } + catch (err) { + if (payloadMember && payloadMember.isStreaming) { + if (payloadMember.requiresLength) { + throw err; + } + else if (authtype.indexOf(\\"unsigned-body\\") >= 0) { + req.httpRequest.headers[\\"Transfer-Encoding\\"] = \\"chunked\\"; + return; + } + else { + throw err; + } + } + throw err; + } + } +}); +v164.SET_HTTP_HOST = (function SET_HTTP_HOST(req) { + req.httpRequest.headers[\\"Host\\"] = req.httpRequest.endpoint.host; +}); +v164.SET_TRACE_ID = (function SET_TRACE_ID(req) { + var traceIdHeaderName = \\"X-Amzn-Trace-Id\\"; + if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { + var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; + var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; + var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + var traceId = process.env[ENV_TRACE_ID]; + if (typeof functionName === \\"string\\" && functionName.length > 0 && typeof traceId === \\"string\\" && traceId.length > 0) { + req.httpRequest.headers[traceIdHeaderName] = traceId; + } + } +}); +v164.RESTART = (function RESTART() { + var err = this.response.error; + if (!err || !err.retryable) + return; + this.httpRequest = new AWS.HttpRequest(this.service.endpoint, this.service.region); + if (this.response.retryCount < this.service.config.maxRetries) { + this.response.retryCount++; + } + else { + this.response.error = null; + } +}); +v164.DISCOVER_ENDPOINT = v171; +v164.SIGN = (function SIGN(req, done) { + var service = req.service; + var operations = req.service.api.operations || {}; + var operation = operations[req.operation]; + var authtype = operation ? operation.authtype : \\"\\"; + if (!service.api.signatureVersion && !authtype && !service.config.signatureVersion) + return done(); + service.config.getCredentials(function (err, credentials) { + if (err) { + req.response.error = err; + return done(); + } + try { + var date = service.getSkewCorrectedDate(); + var SignerClass = service.getSignerClass(req); + var signer = new SignerClass(req.httpRequest, service.getSigningName(req), { + signatureCache: service.config.signatureCache, + operation: operation, + signatureVersion: service.api.signatureVersion + }); + signer.setServiceClientId(service._clientId); + delete req.httpRequest.headers[\\"Authorization\\"]; + delete req.httpRequest.headers[\\"Date\\"]; + delete req.httpRequest.headers[\\"X-Amz-Date\\"]; + signer.addAuthorization(credentials, date); + req.signedAt = date; + } + catch (e) { + req.response.error = e; + } + done(); + }); +}); +v164.VALIDATE_RESPONSE = (function VALIDATE_RESPONSE(resp) { + if (this.service.successfulResponse(resp, this)) { + resp.data = {}; + resp.error = null; + } + else { + resp.data = null; + resp.error = AWS.util.error(new Error(), { code: \\"UnknownError\\", message: \\"An unknown error occurred.\\" }); + } +}); +v164.ERROR = (function ERROR(err, resp) { + var errorCodeMapping = resp.request.service.api.errorCodeMapping; + if (errorCodeMapping && err && err.code) { + var mapping = errorCodeMapping[err.code]; + if (mapping) { + resp.error.code = mapping.code; + } + } +}); +v164.SEND = (function SEND(resp, done) { + resp.httpResponse._abortCallback = done; + resp.error = null; + resp.data = null; + function callback(httpResp) { + resp.httpResponse.stream = httpResp; + var stream = resp.request.httpRequest.stream; + var service = resp.request.service; + var api = service.api; + var operationName = resp.request.operation; + var operation = api.operations[operationName] || {}; + httpResp.on(\\"headers\\", function onHeaders(statusCode, headers, statusMessage) { + resp.request.emit(\\"httpHeaders\\", [statusCode, headers, resp, statusMessage]); + if (!resp.httpResponse.streaming) { + if (AWS.HttpClient.streamsApiVersion === 2) { + if (operation.hasEventOutput && service.successfulResponse(resp)) { + resp.request.emit(\\"httpDone\\"); + done(); + return; + } + httpResp.on(\\"readable\\", function onReadable() { + var data = httpResp.read(); + if (data !== null) { + resp.request.emit(\\"httpData\\", [data, resp]); + } + }); + } + else { + httpResp.on(\\"data\\", function onData(data) { + resp.request.emit(\\"httpData\\", [data, resp]); + }); + } + } + }); + httpResp.on(\\"end\\", function onEnd() { + if (!stream || !stream.didCallback) { + if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { + return; + } + resp.request.emit(\\"httpDone\\"); + done(); + } + }); + } + function progress(httpResp) { + httpResp.on(\\"sendProgress\\", function onSendProgress(value) { + resp.request.emit(\\"httpUploadProgress\\", [value, resp]); + }); + httpResp.on(\\"receiveProgress\\", function onReceiveProgress(value) { + resp.request.emit(\\"httpDownloadProgress\\", [value, resp]); + }); + } + function error(err) { + if (err.code !== \\"RequestAbortedError\\") { + var errCode = err.code === \\"TimeoutError\\" ? err.code : \\"NetworkingError\\"; + err = AWS.util.error(err, { + code: errCode, + region: resp.request.httpRequest.region, + hostname: resp.request.httpRequest.endpoint.hostname, + retryable: true + }); + } + resp.error = err; + resp.request.emit(\\"httpError\\", [resp.error, resp], function () { + done(); + }); + } + function executeSend() { + var http = AWS.HttpClient.getInstance(); + var httpOptions = resp.request.service.config.httpOptions || {}; + try { + var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); + progress(stream); + } + catch (err) { + error(err); + } + } + var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; + if (timeDiff >= 60 * 10) { + this.emit(\\"sign\\", [this], function (err) { + if (err) + done(err); + else + executeSend(); + }); + } + else { + executeSend(); + } +}); +v164.HTTP_HEADERS = (function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { + resp.httpResponse.statusCode = statusCode; + resp.httpResponse.statusMessage = statusMessage; + resp.httpResponse.headers = headers; + resp.httpResponse.body = AWS.util.buffer.toBuffer(\\"\\"); + resp.httpResponse.buffers = []; + resp.httpResponse.numBytes = 0; + var dateHeader = headers.date || headers.Date; + var service = resp.request.service; + if (dateHeader) { + var serverTime = Date.parse(dateHeader); + if (service.config.correctClockSkew && service.isClockSkewed(serverTime)) { + service.applyClockOffset(serverTime); + } + } +}); +v164.HTTP_DATA = (function HTTP_DATA(chunk, resp) { + if (chunk) { + if (AWS.util.isNode()) { + resp.httpResponse.numBytes += chunk.length; + var total = resp.httpResponse.headers[\\"content-length\\"]; + var progress = { loaded: resp.httpResponse.numBytes, total: total }; + resp.request.emit(\\"httpDownloadProgress\\", [progress, resp]); + } + resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); + } +}); +v164.HTTP_DONE = (function HTTP_DONE(resp) { + if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { + var body = AWS.util.buffer.concat(resp.httpResponse.buffers); + resp.httpResponse.body = body; + } + delete resp.httpResponse.numBytes; + delete resp.httpResponse.buffers; +}); +v164.FINALIZE_ERROR = (function FINALIZE_ERROR(resp) { + if (resp.httpResponse.statusCode) { + resp.error.statusCode = resp.httpResponse.statusCode; + if (resp.error.retryable === undefined) { + resp.error.retryable = this.service.retryableError(resp.error, this); + } + } +}); +v164.INVALIDATE_CREDENTIALS = (function INVALIDATE_CREDENTIALS(resp) { + if (!resp.error) + return; + switch (resp.error.code) { + case \\"RequestExpired\\": + case \\"ExpiredTokenException\\": + case \\"ExpiredToken\\": + resp.error.retryable = true; + resp.request.service.config.credentials.expired = true; + } +}); +v164.EXPIRED_SIGNATURE = (function EXPIRED_SIGNATURE(resp) { + var err = resp.error; + if (!err) + return; + if (typeof err.code === \\"string\\" && typeof err.message === \\"string\\") { + if (err.code.match(/Signature/) && err.message.match(/expired/)) { + resp.error.retryable = true; + } + } +}); +v164.CLOCK_SKEWED = (function CLOCK_SKEWED(resp) { + if (!resp.error) + return; + if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew) { + resp.error.retryable = true; + } +}); +v164.REDIRECT = (function REDIRECT(resp) { + if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers[\\"location\\"]) { + this.httpRequest.endpoint = new AWS.Endpoint(resp.httpResponse.headers[\\"location\\"]); + this.httpRequest.headers[\\"Host\\"] = this.httpRequest.endpoint.host; + resp.error.redirect = true; + resp.error.retryable = true; + } +}); +v164.RETRY_CHECK = (function RETRY_CHECK(resp) { + if (resp.error) { + if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.error.retryDelay = 0; + } + else if (resp.retryCount < resp.maxRetries) { + resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; + } + } +}); +v164.RESET_RETRY_STATE = (function RESET_RETRY_STATE(resp, done) { + var delay, willRetry = false; + if (resp.error) { + delay = resp.error.retryDelay || 0; + if (resp.error.retryable && resp.retryCount < resp.maxRetries) { + resp.retryCount++; + willRetry = true; + } + else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.redirectCount++; + willRetry = true; + } + } + if (willRetry && delay >= 0) { + resp.error = null; + setTimeout(done, delay); + } + else { + done(); + } +}); +v162.Core = v164; +const v180 = Object.create(v163); +const v181 = {}; +const v182 = []; +v182.push(v43); +v181.extractData = v182; +const v183 = []; +v183.push(v43); +v181.extractError = v183; +const v184 = []; +v184.push((function ENOTFOUND_ERROR(err) { + function isDNSError(err) { + return err.errno === \\"ENOTFOUND\\" || typeof err.errno === \\"number\\" && typeof AWS.util.getSystemErrorName === \\"function\\" && [\\"EAI_NONAME\\", \\"EAI_NODATA\\"].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); + } + if (err.code === \\"NetworkingError\\" && isDNSError(err)) { + var message = \\"Inaccessible host: \`\\" + err.hostname + \\"' at port \`\\" + err.port + \\"'. This service may not be available in the \`\\" + err.region + \\"' region.\\"; + this.response.error = AWS.util.error(new Error(message), { + code: \\"UnknownEndpoint\\", + region: err.region, + hostname: err.hostname, + retryable: true, + originalError: err + }); + } +})); +v181.httpError = v184; +v180._events = v181; +v180.EXTRACT_REQUEST_ID = v43; +v180.ENOTFOUND_ERROR = (function ENOTFOUND_ERROR(err) { + function isDNSError(err) { + return err.errno === \\"ENOTFOUND\\" || typeof err.errno === \\"number\\" && typeof AWS.util.getSystemErrorName === \\"function\\" && [\\"EAI_NONAME\\", \\"EAI_NODATA\\"].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); + } + if (err.code === \\"NetworkingError\\" && isDNSError(err)) { + var message = \\"Inaccessible host: \`\\" + err.hostname + \\"' at port \`\\" + err.port + \\"'. This service may not be available in the \`\\" + err.region + \\"' region.\\"; + this.response.error = AWS.util.error(new Error(message), { + code: \\"UnknownEndpoint\\", + region: err.region, + hostname: err.hostname, + retryable: true, + originalError: err + }); + } +}); +v162.CorePost = v180; +const v185 = Object.create(v163); +const v186 = {}; +const v187 = []; +v187.push((function LOG_REQUEST(resp) { + var req = resp.request; + var logger = req.service.config.logger; + if (!logger) + return; + function filterSensitiveLog(inputShape, shape) { + if (!shape) { + return shape; + } + if (inputShape.isSensitive) { + return \\"***SensitiveInformation***\\"; + } + switch (inputShape.type) { + case \\"structure\\": + var struct = {}; + AWS.util.each(shape, function (subShapeName, subShape) { + if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { + struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); + } + else { + struct[subShapeName] = subShape; + } + }); + return struct; + case \\"list\\": + var list = []; + AWS.util.arrayEach(shape, function (subShape, index) { + list.push(filterSensitiveLog(inputShape.member, subShape)); + }); + return list; + case \\"map\\": + var map = {}; + AWS.util.each(shape, function (key, value) { + map[key] = filterSensitiveLog(inputShape.value, value); + }); + return map; + default: return shape; + } + } + function buildMessage() { + var time = resp.request.service.getSkewCorrectedDate().getTime(); + var delta = (time - req.startTime.getTime()) / 1000; + var ansi = logger.isTTY ? true : false; + var status = resp.httpResponse.statusCode; + var censoredParams = req.params; + if (req.service.api.operations && req.service.api.operations[req.operation] && req.service.api.operations[req.operation].input) { + var inputShape = req.service.api.operations[req.operation].input; + censoredParams = filterSensitiveLog(inputShape, req.params); + } + var params = require(\\"util\\").inspect(censoredParams, true, null); + var message = \\"\\"; + if (ansi) + message += \\"\\\\u001B[33m\\"; + message += \\"[AWS \\" + req.service.serviceIdentifier + \\" \\" + status; + message += \\" \\" + delta.toString() + \\"s \\" + resp.retryCount + \\" retries]\\"; + if (ansi) + message += \\"\\\\u001B[0;1m\\"; + message += \\" \\" + AWS.util.string.lowerFirst(req.operation); + message += \\"(\\" + params + \\")\\"; + if (ansi) + message += \\"\\\\u001B[0m\\"; + return message; + } + var line = buildMessage(); + if (typeof logger.log === \\"function\\") { + logger.log(line); + } + else if (typeof logger.write === \\"function\\") { + logger.write(line + \\"\\\\n\\"); + } +})); +v186.complete = v187; +v185._events = v186; +v185.LOG_REQUEST = (function LOG_REQUEST(resp) { + var req = resp.request; + var logger = req.service.config.logger; + if (!logger) + return; + function filterSensitiveLog(inputShape, shape) { + if (!shape) { + return shape; + } + if (inputShape.isSensitive) { + return \\"***SensitiveInformation***\\"; + } + switch (inputShape.type) { + case \\"structure\\": + var struct = {}; + AWS.util.each(shape, function (subShapeName, subShape) { + if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { + struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); + } + else { + struct[subShapeName] = subShape; + } + }); + return struct; + case \\"list\\": + var list = []; + AWS.util.arrayEach(shape, function (subShape, index) { + list.push(filterSensitiveLog(inputShape.member, subShape)); + }); + return list; + case \\"map\\": + var map = {}; + AWS.util.each(shape, function (key, value) { + map[key] = filterSensitiveLog(inputShape.value, value); + }); + return map; + default: return shape; + } + } + function buildMessage() { + var time = resp.request.service.getSkewCorrectedDate().getTime(); + var delta = (time - req.startTime.getTime()) / 1000; + var ansi = logger.isTTY ? true : false; + var status = resp.httpResponse.statusCode; + var censoredParams = req.params; + if (req.service.api.operations && req.service.api.operations[req.operation] && req.service.api.operations[req.operation].input) { + var inputShape = req.service.api.operations[req.operation].input; + censoredParams = filterSensitiveLog(inputShape, req.params); + } + var params = require(\\"util\\").inspect(censoredParams, true, null); + var message = \\"\\"; + if (ansi) + message += \\"\\\\u001B[33m\\"; + message += \\"[AWS \\" + req.service.serviceIdentifier + \\" \\" + status; + message += \\" \\" + delta.toString() + \\"s \\" + resp.retryCount + \\" retries]\\"; + if (ansi) + message += \\"\\\\u001B[0;1m\\"; + message += \\" \\" + AWS.util.string.lowerFirst(req.operation); + message += \\"(\\" + params + \\")\\"; + if (ansi) + message += \\"\\\\u001B[0m\\"; + return message; + } + var line = buildMessage(); + if (typeof logger.log === \\"function\\") { + logger.log(line); + } + else if (typeof logger.write === \\"function\\") { + logger.write(line + \\"\\\\n\\"); + } +}); +v162.Logger = v185; +const v188 = Object.create(v163); +const v189 = {}; +const v190 = []; +v190.push(v92); +v189.build = v190; +const v191 = []; +v191.push(v94); +v189.extractData = v191; +const v192 = []; +v192.push(v93); +v189.extractError = v192; +v188._events = v189; +v188.BUILD = v92; +v188.EXTRACT_DATA = v94; +v188.EXTRACT_ERROR = v93; +v162.Json = v188; +const v193 = Object.create(v163); +const v194 = {}; +const v195 = []; +v195.push(v100); +v194.build = v195; +const v196 = []; +v196.push(v102); +v194.extractData = v196; +const v197 = []; +v197.push(v101); +v194.extractError = v197; +v193._events = v194; +v193.BUILD = v100; +v193.EXTRACT_DATA = v102; +v193.EXTRACT_ERROR = v101; +v162.Rest = v193; +const v198 = Object.create(v163); +const v199 = {}; +const v200 = []; +v200.push(v105); +v199.build = v200; +const v201 = []; +v201.push(v107); +v199.extractData = v201; +const v202 = []; +v202.push(v106); +v199.extractError = v202; +v198._events = v199; +v198.BUILD = v105; +v198.EXTRACT_DATA = v107; +v198.EXTRACT_ERROR = v106; +v162.RestJson = v198; +const v203 = Object.create(v163); +const v204 = {}; +const v205 = []; +v205.push(v109); +v204.build = v205; +const v206 = []; +v206.push(v111); +v204.extractData = v206; +const v207 = []; +v207.push(v110); +v204.extractError = v207; +v203._events = v204; +v203.BUILD = v109; +v203.EXTRACT_DATA = v111; +v203.EXTRACT_ERROR = v110; +v162.RestXml = v203; +const v208 = Object.create(v163); +const v209 = {}; +const v210 = []; +v210.push(v96); +v209.build = v210; +const v211 = []; +v211.push(v98); +v209.extractData = v211; +const v212 = []; +v212.push(v97); +v209.extractError = v212; +v208._events = v209; +v208.BUILD = v96; +v208.EXTRACT_DATA = v98; +v208.EXTRACT_ERROR = v97; +v162.Query = v208; +v2.EventListeners = v162; +const v213 = v2.Request; +v2.Request = v213; +const v214 = v2.Response; +v2.Response = v214; +const v215 = v2.ResourceWaiter; +v2.ResourceWaiter = v215; +const v216 = v2.ParamValidator; +v2.ParamValidator = v216; +const v217 = Object.create(v163); +const v218 = {}; +v217._events = v218; +v2.events = v217; +const v219 = v73.IniLoader; +v2.IniLoader = v219; +const v220 = require(\\"aws-sdk\\"); +const v221 = v220.STS; +v2.STS = v221; +const v222 = v2.TemporaryCredentials; +v2.TemporaryCredentials = v222; +const v223 = v2.ChainableTemporaryCredentials; +v2.ChainableTemporaryCredentials = v223; +const v224 = v2.WebIdentityCredentials; +v2.WebIdentityCredentials = v224; +const v225 = v220.CognitoIdentity; +v2.CognitoIdentity = v225; +const v226 = v2.CognitoIdentityCredentials; +v2.CognitoIdentityCredentials = v226; +const v227 = v2.SAMLCredentials; +v2.SAMLCredentials = v227; +const v228 = v2.ProcessCredentials; +v2.ProcessCredentials = v228; +const v229 = v2.NodeHttpClient; +v2.NodeHttpClient = v229; +const v230 = v2.TokenFileWebIdentityCredentials; +v2.TokenFileWebIdentityCredentials = v230; +const v231 = require(\\"aws-sdk\\"); +const v232 = v231; +v2.MetadataService = v232; +const v233 = v2.EC2MetadataCredentials; +v2.EC2MetadataCredentials = v233; +const v234 = v2.ECSCredentials; +v2.RemoteCredentials = v234; +v2.ECSCredentials = v234; +const v235 = v2.EnvironmentCredentials; +v2.EnvironmentCredentials = v235; +const v236 = v2.FileSystemCredentials; +v2.FileSystemCredentials = v236; +const v237 = v2.SharedIniFileCredentials; +v2.SharedIniFileCredentials = v237; +const v238 = v2.SsoCredentials; +v2.SsoCredentials = v238; +const v239 = require(\\"aws-sdk\\"); +const v240 = v239; +v2.ACM = v240; +const v241 = require(\\"aws-sdk\\"); +const v242 = v241; +v2.APIGateway = v242; +const v243 = require(\\"aws-sdk\\"); +const v244 = v243; +v2.ApplicationAutoScaling = v244; +const v245 = require(\\"aws-sdk\\"); +const v246 = v245; +v2.AppStream = v246; +const v247 = require(\\"aws-sdk\\"); +const v248 = v247; +v2.AutoScaling = v248; +const v249 = require(\\"aws-sdk\\"); +const v250 = v249; +v2.Batch = v250; +const v251 = require(\\"aws-sdk\\"); +const v252 = v251; +v2.Budgets = v252; +const v253 = require(\\"aws-sdk\\"); +const v254 = v253; +v2.CloudDirectory = v254; +const v255 = require(\\"aws-sdk\\"); +const v256 = v255; +v2.CloudFormation = v256; +const v257 = require(\\"aws-sdk\\"); +const v258 = v257; +v2.CloudFront = v258; +const v259 = require(\\"aws-sdk\\"); +const v260 = v259; +v2.CloudHSM = v260; +const v261 = require(\\"aws-sdk\\"); +const v262 = v261; +v2.CloudSearch = v262; +const v263 = require(\\"aws-sdk\\"); +const v264 = v263; +v2.CloudSearchDomain = v264; +const v265 = require(\\"aws-sdk\\"); +const v266 = v265; +v2.CloudTrail = v266; +const v267 = require(\\"aws-sdk\\"); +const v268 = v267; +v2.CloudWatch = v268; +const v269 = require(\\"aws-sdk\\"); +const v270 = v269; +v2.CloudWatchEvents = v270; +const v271 = require(\\"aws-sdk\\"); +const v272 = v271; +v2.CloudWatchLogs = v272; +const v273 = require(\\"aws-sdk\\"); +const v274 = v273; +v2.CodeBuild = v274; +const v275 = require(\\"aws-sdk\\"); +const v276 = v275; +v2.CodeCommit = v276; +const v277 = require(\\"aws-sdk\\"); +const v278 = v277; +v2.CodeDeploy = v278; +const v279 = require(\\"aws-sdk\\"); +const v280 = v279; +v2.CodePipeline = v280; +const v281 = require(\\"aws-sdk\\"); +const v282 = v281; +v2.CognitoIdentityServiceProvider = v282; +const v283 = require(\\"aws-sdk\\"); +const v284 = v283; +v2.CognitoSync = v284; +const v285 = require(\\"aws-sdk\\"); +const v286 = v285; +v2.ConfigService = v286; +const v287 = require(\\"aws-sdk\\"); +const v288 = v287; +v2.CUR = v288; +const v289 = require(\\"aws-sdk\\"); +const v290 = v289; +v2.DataPipeline = v290; +const v291 = require(\\"aws-sdk\\"); +const v292 = v291; +v2.DeviceFarm = v292; +const v293 = require(\\"aws-sdk\\"); +const v294 = v293; +v2.DirectConnect = v294; +const v295 = require(\\"aws-sdk\\"); +const v296 = v295; +v2.DirectoryService = v296; +const v297 = require(\\"aws-sdk\\"); +const v298 = v297; +v2.Discovery = v298; +const v299 = require(\\"aws-sdk\\"); +const v300 = v299; +v2.DMS = v300; +const v301 = require(\\"aws-sdk\\"); +const v302 = v301; +v2.DynamoDB = v302; +const v303 = require(\\"aws-sdk\\"); +const v304 = v303; +v2.DynamoDBStreams = v304; +const v305 = require(\\"aws-sdk\\"); +const v306 = v305; +v2.EC2 = v306; +const v307 = require(\\"aws-sdk\\"); +const v308 = v307; +v2.ECR = v308; +const v309 = require(\\"aws-sdk\\"); +const v310 = v309; +v2.ECS = v310; +const v311 = require(\\"aws-sdk\\"); +const v312 = v311; +v2.EFS = v312; +const v313 = require(\\"aws-sdk\\"); +const v314 = v313; +v2.ElastiCache = v314; +const v315 = require(\\"aws-sdk\\"); +const v316 = v315; +v2.ElasticBeanstalk = v316; +const v317 = require(\\"aws-sdk\\"); +const v318 = v317; +v2.ELB = v318; +const v319 = require(\\"aws-sdk\\"); +const v320 = v319; +v2.ELBv2 = v320; +const v321 = require(\\"aws-sdk\\"); +const v322 = v321; +v2.EMR = v322; +const v323 = require(\\"aws-sdk\\"); +const v324 = v323; +v2.ES = v324; +const v325 = require(\\"aws-sdk\\"); +const v326 = v325; +v2.ElasticTranscoder = v326; +const v327 = require(\\"aws-sdk\\"); +const v328 = v327; +v2.Firehose = v328; +const v329 = require(\\"aws-sdk\\"); +const v330 = v329; +v2.GameLift = v330; +const v331 = require(\\"aws-sdk\\"); +const v332 = v331; +v2.Glacier = v332; +const v333 = require(\\"aws-sdk\\"); +const v334 = v333; +v2.Health = v334; +const v335 = require(\\"aws-sdk\\"); +const v336 = v335; +v2.IAM = v336; +const v337 = require(\\"aws-sdk\\"); +const v338 = v337; +v2.ImportExport = v338; +const v339 = require(\\"aws-sdk\\"); +const v340 = v339; +v2.Inspector = v340; +const v341 = require(\\"aws-sdk\\"); +const v342 = v341; +v2.Iot = v342; +const v343 = require(\\"aws-sdk\\"); +const v344 = v343; +v2.IotData = v344; +const v345 = require(\\"aws-sdk\\"); +const v346 = v345; +v2.Kinesis = v346; +const v347 = require(\\"aws-sdk\\"); +const v348 = v347; +v2.KinesisAnalytics = v348; +const v349 = require(\\"aws-sdk\\"); +const v350 = v349; +v2.KMS = v350; +const v351 = require(\\"aws-sdk\\"); +const v352 = v351; +v2.Lambda = v352; +const v353 = require(\\"aws-sdk\\"); +const v354 = v353; +v2.LexRuntime = v354; +const v355 = require(\\"aws-sdk\\"); +const v356 = v355; +v2.Lightsail = v356; +const v357 = require(\\"aws-sdk\\"); +const v358 = v357; +v2.MachineLearning = v358; +const v359 = require(\\"aws-sdk\\"); +const v360 = v359; +v2.MarketplaceCommerceAnalytics = v360; +const v361 = require(\\"aws-sdk\\"); +const v362 = v361; +v2.MarketplaceMetering = v362; +const v363 = require(\\"aws-sdk\\"); +const v364 = v363; +v2.MTurk = v364; +const v365 = require(\\"aws-sdk\\"); +const v366 = v365; +v2.MobileAnalytics = v366; +const v367 = require(\\"aws-sdk\\"); +const v368 = v367; +v2.OpsWorks = v368; +const v369 = require(\\"aws-sdk\\"); +const v370 = v369; +v2.OpsWorksCM = v370; +const v371 = require(\\"aws-sdk\\"); +const v372 = v371; +v2.Organizations = v372; +const v373 = require(\\"aws-sdk\\"); +const v374 = v373; +v2.Pinpoint = v374; +const v375 = require(\\"aws-sdk\\"); +const v376 = v375; +v2.Polly = v376; +const v377 = require(\\"aws-sdk\\"); +const v378 = v377; +v2.RDS = v378; +const v379 = require(\\"aws-sdk\\"); +const v380 = v379; +v2.Redshift = v380; +const v381 = require(\\"aws-sdk\\"); +const v382 = v381; +v2.Rekognition = v382; +const v383 = require(\\"aws-sdk\\"); +const v384 = v383; +v2.ResourceGroupsTaggingAPI = v384; +const v385 = require(\\"aws-sdk\\"); +const v386 = v385; +v2.Route53 = v386; +const v387 = require(\\"aws-sdk\\"); +const v388 = v387; +v2.Route53Domains = v388; +const v389 = require(\\"aws-sdk\\"); +const v390 = v389; +v2.S3 = v390; +const v391 = require(\\"aws-sdk\\"); +const v392 = v391; +v2.S3Control = v392; +const v393 = require(\\"aws-sdk\\"); +const v394 = v393; +v2.ServiceCatalog = v394; +const v395 = require(\\"aws-sdk\\"); +const v396 = v395; +v2.SES = v396; +const v397 = require(\\"aws-sdk\\"); +const v398 = v397; +v2.Shield = v398; +const v399 = require(\\"aws-sdk\\"); +const v400 = v399; +v2.SimpleDB = v400; +const v401 = require(\\"aws-sdk\\"); +const v402 = v401; +v2.SMS = v402; +const v403 = require(\\"aws-sdk\\"); +const v404 = v403; +v2.Snowball = v404; +const v405 = require(\\"aws-sdk\\"); +const v406 = v405; +v2.SNS = v406; +const v407 = require(\\"aws-sdk\\"); +const v408 = v407; +v2.SQS = v408; +const v409 = require(\\"aws-sdk\\"); +const v410 = v409; +v2.SSM = v410; +const v411 = require(\\"aws-sdk\\"); +const v412 = v411; +v2.StorageGateway = v412; +const v413 = require(\\"aws-sdk\\"); +const v414 = v413; +v2.StepFunctions = v414; +const v415 = require(\\"aws-sdk\\"); +const v416 = v415; +v2.Support = v416; +const v417 = require(\\"aws-sdk\\"); +const v418 = v417; +v2.SWF = v418; +v2.SimpleWorkflow = v418; +const v419 = require(\\"aws-sdk\\"); +const v420 = v419; +v2.XRay = v420; +const v421 = require(\\"aws-sdk\\"); +const v422 = v421; +v2.WAF = v422; +const v423 = require(\\"aws-sdk\\"); +const v424 = v423; +v2.WAFRegional = v424; +const v425 = require(\\"aws-sdk\\"); +const v426 = v425; +v2.WorkDocs = v426; +const v427 = require(\\"aws-sdk\\"); +const v428 = v427; +v2.WorkSpaces = v428; +const v429 = require(\\"aws-sdk\\"); +const v430 = v429; +v2.CodeStar = v430; +const v431 = require(\\"aws-sdk\\"); +const v432 = v431; +v2.LexModelBuildingService = v432; +const v433 = require(\\"aws-sdk\\"); +const v434 = v433; +v2.MarketplaceEntitlementService = v434; +const v435 = require(\\"aws-sdk\\"); +const v436 = v435; +v2.Athena = v436; +const v437 = require(\\"aws-sdk\\"); +const v438 = v437; +v2.Greengrass = v438; +const v439 = require(\\"aws-sdk\\"); +const v440 = v439; +v2.DAX = v440; +const v441 = require(\\"aws-sdk\\"); +const v442 = v441; +v2.MigrationHub = v442; +const v443 = require(\\"aws-sdk\\"); +const v444 = v443; +v2.CloudHSMV2 = v444; +const v445 = require(\\"aws-sdk\\"); +const v446 = v445; +v2.Glue = v446; +const v447 = require(\\"aws-sdk\\"); +const v448 = v447; +v2.Mobile = v448; +const v449 = require(\\"aws-sdk\\"); +const v450 = v449; +v2.Pricing = v450; +const v451 = require(\\"aws-sdk\\"); +const v452 = v451; +v2.CostExplorer = v452; +const v453 = require(\\"aws-sdk\\"); +const v454 = v453; +v2.MediaConvert = v454; +const v455 = require(\\"aws-sdk\\"); +const v456 = v455; +v2.MediaLive = v456; +const v457 = require(\\"aws-sdk\\"); +const v458 = v457; +v2.MediaPackage = v458; +const v459 = require(\\"aws-sdk\\"); +const v460 = v459; +v2.MediaStore = v460; +const v461 = require(\\"aws-sdk\\"); +const v462 = v461; +v2.MediaStoreData = v462; +const v463 = require(\\"aws-sdk\\"); +const v464 = v463; +v2.AppSync = v464; +const v465 = require(\\"aws-sdk\\"); +const v466 = v465; +v2.GuardDuty = v466; +const v467 = require(\\"aws-sdk\\"); +const v468 = v467; +v2.MQ = v468; +const v469 = require(\\"aws-sdk\\"); +const v470 = v469; +v2.Comprehend = v470; +const v471 = require(\\"aws-sdk\\"); +const v472 = v471; +v2.IoTJobsDataPlane = v472; +const v473 = require(\\"aws-sdk\\"); +const v474 = v473; +v2.KinesisVideoArchivedMedia = v474; +const v475 = require(\\"aws-sdk\\"); +const v476 = v475; +v2.KinesisVideoMedia = v476; +const v477 = require(\\"aws-sdk\\"); +const v478 = v477; +v2.KinesisVideo = v478; +const v479 = require(\\"aws-sdk\\"); +const v480 = v479; +v2.SageMakerRuntime = v480; +const v481 = require(\\"aws-sdk\\"); +const v482 = v481; +v2.SageMaker = v482; +const v483 = require(\\"aws-sdk\\"); +const v484 = v483; +v2.Translate = v484; +const v485 = require(\\"aws-sdk\\"); +const v486 = v485; +v2.ResourceGroups = v486; +const v487 = require(\\"aws-sdk\\"); +const v488 = v487; +v2.AlexaForBusiness = v488; +const v489 = require(\\"aws-sdk\\"); +const v490 = v489; +v2.Cloud9 = v490; +const v491 = require(\\"aws-sdk\\"); +const v492 = v491; +v2.ServerlessApplicationRepository = v492; +const v493 = require(\\"aws-sdk\\"); +const v494 = v493; +v2.ServiceDiscovery = v494; +const v495 = require(\\"aws-sdk\\"); +const v496 = v495; +v2.WorkMail = v496; +const v497 = require(\\"aws-sdk\\"); +const v498 = v497; +v2.AutoScalingPlans = v498; +const v499 = require(\\"aws-sdk\\"); +const v500 = v499; +v2.TranscribeService = v500; +const v501 = require(\\"aws-sdk\\"); +const v502 = v501; +v2.Connect = v502; +const v503 = require(\\"aws-sdk\\"); +const v504 = v503; +v2.ACMPCA = v504; +const v505 = require(\\"aws-sdk\\"); +const v506 = v505; +v2.FMS = v506; +const v507 = require(\\"aws-sdk\\"); +const v508 = v507; +v2.SecretsManager = v508; +const v509 = require(\\"aws-sdk\\"); +const v510 = v509; +v2.IoTAnalytics = v510; +const v511 = require(\\"aws-sdk\\"); +const v512 = v511; +v2.IoT1ClickDevicesService = v512; +const v513 = require(\\"aws-sdk\\"); +const v514 = v513; +v2.IoT1ClickProjects = v514; +const v515 = require(\\"aws-sdk\\"); +const v516 = v515; +v2.PI = v516; +const v517 = require(\\"aws-sdk\\"); +const v518 = v517; +v2.Neptune = v518; +const v519 = require(\\"aws-sdk\\"); +const v520 = v519; +v2.MediaTailor = v520; +const v521 = require(\\"aws-sdk\\"); +const v522 = v521; +v2.EKS = v522; +const v523 = require(\\"aws-sdk\\"); +const v524 = v523; +v2.Macie = v524; +const v525 = require(\\"aws-sdk\\"); +const v526 = v525; +v2.DLM = v526; +const v527 = require(\\"aws-sdk\\"); +const v528 = v527; +v2.Signer = v528; +const v529 = require(\\"aws-sdk\\"); +const v530 = v529; +v2.Chime = v530; +const v531 = require(\\"aws-sdk\\"); +const v532 = v531; +v2.PinpointEmail = v532; +const v533 = require(\\"aws-sdk\\"); +const v534 = v533; +v2.RAM = v534; +const v535 = require(\\"aws-sdk\\"); +const v536 = v535; +v2.Route53Resolver = v536; +const v537 = require(\\"aws-sdk\\"); +const v538 = v537; +v2.PinpointSMSVoice = v538; +const v539 = require(\\"aws-sdk\\"); +const v540 = v539; +v2.QuickSight = v540; +const v541 = require(\\"aws-sdk\\"); +const v542 = v541; +v2.RDSDataService = v542; +const v543 = require(\\"aws-sdk\\"); +const v544 = v543; +v2.Amplify = v544; +const v545 = require(\\"aws-sdk\\"); +const v546 = v545; +v2.DataSync = v546; +const v547 = require(\\"aws-sdk\\"); +const v548 = v547; +v2.RoboMaker = v548; +const v549 = require(\\"aws-sdk\\"); +const v550 = v549; +v2.Transfer = v550; +const v551 = require(\\"aws-sdk\\"); +const v552 = v551; +v2.GlobalAccelerator = v552; +const v553 = require(\\"aws-sdk\\"); +const v554 = v553; +v2.ComprehendMedical = v554; +const v555 = require(\\"aws-sdk\\"); +const v556 = v555; +v2.KinesisAnalyticsV2 = v556; +const v557 = require(\\"aws-sdk\\"); +const v558 = v557; +v2.MediaConnect = v558; +const v559 = require(\\"aws-sdk\\"); +const v560 = v559; +v2.FSx = v560; +const v561 = require(\\"aws-sdk\\"); +const v562 = v561; +v2.SecurityHub = v562; +const v563 = require(\\"aws-sdk\\"); +const v564 = v563; +v2.AppMesh = v564; +const v565 = require(\\"aws-sdk\\"); +const v566 = v565; +v2.LicenseManager = v566; +const v567 = require(\\"aws-sdk\\"); +const v568 = v567; +v2.Kafka = v568; +const v569 = require(\\"aws-sdk\\"); +const v570 = v569; +v2.ApiGatewayManagementApi = v570; +const v571 = require(\\"aws-sdk\\"); +const v572 = v571; +v2.ApiGatewayV2 = v572; +const v573 = require(\\"aws-sdk\\"); +const v574 = v573; +v2.DocDB = v574; +const v575 = require(\\"aws-sdk\\"); +const v576 = v575; +v2.Backup = v576; +const v577 = require(\\"aws-sdk\\"); +const v578 = v577; +v2.WorkLink = v578; +const v579 = require(\\"aws-sdk\\"); +const v580 = v579; +v2.Textract = v580; +const v581 = require(\\"aws-sdk\\"); +const v582 = v581; +v2.ManagedBlockchain = v582; +const v583 = require(\\"aws-sdk\\"); +const v584 = v583; +v2.MediaPackageVod = v584; +const v585 = require(\\"aws-sdk\\"); +const v586 = v585; +v2.GroundStation = v586; +const v587 = require(\\"aws-sdk\\"); +const v588 = v587; +v2.IoTThingsGraph = v588; +const v589 = require(\\"aws-sdk\\"); +const v590 = v589; +v2.IoTEvents = v590; +const v591 = require(\\"aws-sdk\\"); +const v592 = v591; +v2.IoTEventsData = v592; +const v593 = require(\\"aws-sdk\\"); +const v594 = v593; +v2.Personalize = v594; +const v595 = require(\\"aws-sdk\\"); +const v596 = v595; +v2.PersonalizeEvents = v596; +const v597 = require(\\"aws-sdk\\"); +const v598 = v597; +v2.PersonalizeRuntime = v598; +const v599 = require(\\"aws-sdk\\"); +const v600 = v599; +v2.ApplicationInsights = v600; +const v601 = require(\\"aws-sdk\\"); +const v602 = v601; +v2.ServiceQuotas = v602; +const v603 = require(\\"aws-sdk\\"); +const v604 = v603; +v2.EC2InstanceConnect = v604; +const v605 = require(\\"aws-sdk\\"); +const v606 = v605; +v2.EventBridge = v606; +const v607 = require(\\"aws-sdk\\"); +const v608 = v607; +v2.LakeFormation = v608; +const v609 = require(\\"aws-sdk\\"); +const v610 = v609; +v2.ForecastService = v610; +const v611 = require(\\"aws-sdk\\"); +const v612 = v611; +v2.ForecastQueryService = v612; +const v613 = require(\\"aws-sdk\\"); +const v614 = v613; +v2.QLDB = v614; +const v615 = require(\\"aws-sdk\\"); +const v616 = v615; +v2.QLDBSession = v616; +const v617 = require(\\"aws-sdk\\"); +const v618 = v617; +v2.WorkMailMessageFlow = v618; +const v619 = require(\\"aws-sdk\\"); +const v620 = v619; +v2.CodeStarNotifications = v620; +const v621 = require(\\"aws-sdk\\"); +const v622 = v621; +v2.SavingsPlans = v622; +const v623 = require(\\"aws-sdk\\"); +const v624 = v623; +v2.SSO = v624; +const v625 = require(\\"aws-sdk\\"); +const v626 = v625; +v2.SSOOIDC = v626; +const v627 = require(\\"aws-sdk\\"); +const v628 = v627; +v2.MarketplaceCatalog = v628; +const v629 = require(\\"aws-sdk\\"); +const v630 = v629; +v2.DataExchange = v630; +const v631 = require(\\"aws-sdk\\"); +const v632 = v631; +v2.SESV2 = v632; +const v633 = require(\\"aws-sdk\\"); +const v634 = v633; +v2.MigrationHubConfig = v634; +const v635 = require(\\"aws-sdk\\"); +const v636 = v635; +v2.ConnectParticipant = v636; +const v637 = require(\\"aws-sdk\\"); +const v638 = v637; +v2.AppConfig = v638; +const v639 = require(\\"aws-sdk\\"); +const v640 = v639; +v2.IoTSecureTunneling = v640; +const v641 = require(\\"aws-sdk\\"); +const v642 = v641; +v2.WAFV2 = v642; +const v643 = require(\\"aws-sdk\\"); +const v644 = v643; +v2.ElasticInference = v644; +const v645 = require(\\"aws-sdk\\"); +const v646 = v645; +v2.Imagebuilder = v646; +const v647 = require(\\"aws-sdk\\"); +const v648 = v647; +v2.Schemas = v648; +const v649 = require(\\"aws-sdk\\"); +const v650 = v649; +v2.AccessAnalyzer = v650; +const v651 = require(\\"aws-sdk\\"); +const v652 = v651; +v2.CodeGuruReviewer = v652; +const v653 = require(\\"aws-sdk\\"); +const v654 = v653; +v2.CodeGuruProfiler = v654; +const v655 = require(\\"aws-sdk\\"); +const v656 = v655; +v2.ComputeOptimizer = v656; +const v657 = require(\\"aws-sdk\\"); +const v658 = v657; +v2.FraudDetector = v658; +const v659 = require(\\"aws-sdk\\"); +const v660 = v659; +v2.Kendra = v660; +const v661 = require(\\"aws-sdk\\"); +const v662 = v661; +v2.NetworkManager = v662; +const v663 = require(\\"aws-sdk\\"); +const v664 = v663; +v2.Outposts = v664; +const v665 = require(\\"aws-sdk\\"); +const v666 = v665; +v2.AugmentedAIRuntime = v666; +const v667 = require(\\"aws-sdk\\"); +const v668 = v667; +v2.EBS = v668; +const v669 = require(\\"aws-sdk\\"); +const v670 = v669; +v2.KinesisVideoSignalingChannels = v670; +const v671 = require(\\"aws-sdk\\"); +const v672 = v671; +v2.Detective = v672; +const v673 = require(\\"aws-sdk\\"); +const v674 = v673; +v2.CodeStarconnections = v674; +const v675 = require(\\"aws-sdk\\"); +const v676 = v675; +v2.Synthetics = v676; +const v677 = require(\\"aws-sdk\\"); +const v678 = v677; +v2.IoTSiteWise = v678; +const v679 = require(\\"aws-sdk\\"); +const v680 = v679; +v2.Macie2 = v680; +const v681 = require(\\"aws-sdk\\"); +const v682 = v681; +v2.CodeArtifact = v682; +const v683 = require(\\"aws-sdk\\"); +const v684 = v683; +v2.Honeycode = v684; +const v685 = require(\\"aws-sdk\\"); +const v686 = v685; +v2.IVS = v686; +const v687 = require(\\"aws-sdk\\"); +const v688 = v687; +v2.Braket = v688; +const v689 = require(\\"aws-sdk\\"); +const v690 = v689; +v2.IdentityStore = v690; +const v691 = require(\\"aws-sdk\\"); +const v692 = v691; +v2.Appflow = v692; +const v693 = require(\\"aws-sdk\\"); +const v694 = v693; +v2.RedshiftData = v694; +const v695 = require(\\"aws-sdk\\"); +const v696 = v695; +v2.SSOAdmin = v696; +const v697 = require(\\"aws-sdk\\"); +const v698 = v697; +v2.TimestreamQuery = v698; +const v699 = require(\\"aws-sdk\\"); +const v700 = v699; +v2.TimestreamWrite = v700; +const v701 = require(\\"aws-sdk\\"); +const v702 = v701; +v2.S3Outposts = v702; +const v703 = require(\\"aws-sdk\\"); +const v704 = v703; +v2.DataBrew = v704; +const v705 = require(\\"aws-sdk\\"); +const v706 = v705; +v2.ServiceCatalogAppRegistry = v706; +const v707 = require(\\"aws-sdk\\"); +const v708 = v707; +v2.NetworkFirewall = v708; +const v709 = require(\\"aws-sdk\\"); +const v710 = v709; +v2.MWAA = v710; +const v711 = require(\\"aws-sdk\\"); +const v712 = v711; +v2.AmplifyBackend = v712; +const v713 = require(\\"aws-sdk\\"); +const v714 = v713; +v2.AppIntegrations = v714; +const v715 = require(\\"aws-sdk\\"); +const v716 = v715; +v2.ConnectContactLens = v716; +const v717 = require(\\"aws-sdk\\"); +const v718 = v717; +v2.DevOpsGuru = v718; +const v719 = require(\\"aws-sdk\\"); +const v720 = v719; +v2.ECRPUBLIC = v720; +const v721 = require(\\"aws-sdk\\"); +const v722 = v721; +v2.LookoutVision = v722; +const v723 = require(\\"aws-sdk\\"); +const v724 = v723; +v2.SageMakerFeatureStoreRuntime = v724; +const v725 = require(\\"aws-sdk\\"); +const v726 = v725; +v2.CustomerProfiles = v726; +const v727 = require(\\"aws-sdk\\"); +const v728 = v727; +v2.AuditManager = v728; +const v729 = require(\\"aws-sdk\\"); +const v730 = v729; +v2.EMRcontainers = v730; +const v731 = require(\\"aws-sdk\\"); +const v732 = v731; +v2.HealthLake = v732; +const v733 = require(\\"aws-sdk\\"); +const v734 = v733; +v2.SagemakerEdge = v734; +const v735 = require(\\"aws-sdk\\"); +const v736 = v735; +v2.Amp = v736; +const v737 = require(\\"aws-sdk\\"); +const v738 = v737; +v2.GreengrassV2 = v738; +const v739 = require(\\"aws-sdk\\"); +const v740 = v739; +v2.IotDeviceAdvisor = v740; +const v741 = require(\\"aws-sdk\\"); +const v742 = v741; +v2.IoTFleetHub = v742; +const v743 = require(\\"aws-sdk\\"); +const v744 = v743; +v2.IoTWireless = v744; +const v745 = require(\\"aws-sdk\\"); +const v746 = v745; +v2.Location = v746; +const v747 = require(\\"aws-sdk\\"); +const v748 = v747; +v2.WellArchitected = v748; +const v749 = require(\\"aws-sdk\\"); +const v750 = v749; +v2.LexModelsV2 = v750; +const v751 = require(\\"aws-sdk\\"); +const v752 = v751; +v2.LexRuntimeV2 = v752; +const v753 = require(\\"aws-sdk\\"); +const v754 = v753; +v2.Fis = v754; +const v755 = require(\\"aws-sdk\\"); +const v756 = v755; +v2.LookoutMetrics = v756; +const v757 = require(\\"aws-sdk\\"); +const v758 = v757; +v2.Mgn = v758; +const v759 = require(\\"aws-sdk\\"); +const v760 = v759; +v2.LookoutEquipment = v760; +const v761 = require(\\"aws-sdk\\"); +const v762 = v761; +v2.Nimble = v762; +const v763 = require(\\"aws-sdk\\"); +const v764 = v763; +v2.Finspace = v764; +const v765 = require(\\"aws-sdk\\"); +const v766 = v765; +v2.Finspacedata = v766; +const v767 = require(\\"aws-sdk\\"); +const v768 = v767; +v2.SSMContacts = v768; +const v769 = require(\\"aws-sdk\\"); +const v770 = v769; +v2.SSMIncidents = v770; +const v771 = require(\\"aws-sdk\\"); +const v772 = v771; +v2.ApplicationCostProfiler = v772; +const v773 = require(\\"aws-sdk\\"); +const v774 = v773; +v2.AppRunner = v774; +const v775 = require(\\"aws-sdk\\"); +const v776 = v775; +v2.Proton = v776; +const v777 = require(\\"aws-sdk\\"); +const v778 = v777; +v2.Route53RecoveryCluster = v778; +const v779 = require(\\"aws-sdk\\"); +const v780 = v779; +v2.Route53RecoveryControlConfig = v780; +const v781 = require(\\"aws-sdk\\"); +const v782 = v781; +v2.Route53RecoveryReadiness = v782; +const v783 = require(\\"aws-sdk\\"); +const v784 = v783; +v2.ChimeSDKIdentity = v784; +const v785 = require(\\"aws-sdk\\"); +const v786 = v785; +v2.ChimeSDKMessaging = v786; +const v787 = require(\\"aws-sdk\\"); +const v788 = v787; +v2.SnowDeviceManagement = v788; +const v789 = require(\\"aws-sdk\\"); +const v790 = v789; +v2.MemoryDB = v790; +const v791 = require(\\"aws-sdk\\"); +const v792 = v791; +v2.OpenSearch = v792; +const v793 = require(\\"aws-sdk\\"); +const v794 = v793; +v2.KafkaConnect = v794; +const v795 = require(\\"aws-sdk\\"); +const v796 = v795; +v2.VoiceID = v796; +const v797 = require(\\"aws-sdk\\"); +const v798 = v797; +v2.Wisdom = v798; +const v799 = require(\\"aws-sdk\\"); +const v800 = v799; +v2.Account = v800; +const v801 = require(\\"aws-sdk\\"); +const v802 = v801; +v2.CloudControl = v802; +const v803 = require(\\"aws-sdk\\"); +const v804 = v803; +v2.Grafana = v804; +const v805 = require(\\"aws-sdk\\"); +const v806 = v805; +v2.Panorama = v806; +const v807 = require(\\"aws-sdk\\"); +const v808 = v807; +v2.ChimeSDKMeetings = v808; +const v809 = require(\\"aws-sdk\\"); +const v810 = v809; +v2.Resiliencehub = v810; +const v811 = require(\\"aws-sdk\\"); +const v812 = v811; +v2.MigrationHubStrategy = v812; +const v813 = require(\\"aws-sdk\\"); +const v814 = v813; +v2.AppConfigData = v814; +const v815 = require(\\"aws-sdk\\"); +const v816 = v815; +v2.Drs = v816; +const v817 = require(\\"aws-sdk\\"); +const v818 = v817; +v2.MigrationHubRefactorSpaces = v818; +const v819 = require(\\"aws-sdk\\"); +const v820 = v819; +v2.Evidently = v820; +const v821 = require(\\"aws-sdk\\"); +const v822 = v821; +v2.Inspector2 = v822; +const v823 = require(\\"aws-sdk\\"); +const v824 = v823; +v2.Rbin = v824; +const v825 = require(\\"aws-sdk\\"); +const v826 = v825; +v2.RUM = v826; +const v827 = require(\\"aws-sdk\\"); +const v828 = v827; +v2.BackupGateway = v828; +const v829 = require(\\"aws-sdk\\"); +const v830 = v829; +v2.IoTTwinMaker = v830; +const v831 = require(\\"aws-sdk\\"); +const v832 = v831; +v2.WorkSpacesWeb = v832; +const v833 = require(\\"aws-sdk\\"); +const v834 = v833; +v2.AmplifyUIBuilder = v834; +const v835 = require(\\"aws-sdk\\"); +const v836 = v835; +v2.Keyspaces = v836; +const v837 = require(\\"aws-sdk\\"); +const v838 = v837; +v2.Billingconductor = v838; +const v839 = require(\\"aws-sdk\\"); +const v840 = v839; +v2.GameSparks = v840; +const v841 = require(\\"aws-sdk\\"); +const v842 = v841; +v2.PinpointSMSVoiceV2 = v842; +const v843 = require(\\"aws-sdk\\"); +const v844 = v843; +v2.Ivschat = v844; +const v845 = require(\\"aws-sdk\\"); +const v846 = v845; +v2.ChimeSDKMediaPipelines = v846; +const v847 = require(\\"aws-sdk\\"); +const v848 = v847; +v2.EMRServerless = v848; +const v849 = require(\\"aws-sdk\\"); +const v850 = v849; +v2.M2 = v850; +const v851 = require(\\"aws-sdk\\"); +const v852 = v851; +v2.ConnectCampaigns = v852; +const v853 = require(\\"aws-sdk\\"); +const v854 = v853; +v2.RedshiftServerless = v854; +const v855 = require(\\"aws-sdk\\"); +const v856 = v855; +v2.RolesAnywhere = v856; +const v857 = require(\\"aws-sdk\\"); +const v858 = v857; +v2.LicenseManagerUserSubscriptions = v858; +const v859 = require(\\"aws-sdk\\"); +const v860 = v859; +v2.BackupStorage = v860; +v2.PrivateNetworks = v139; +var v1 = v2; +const v0 = () => { const client = new v1.DynamoDB(); return client.config.endpoint; }; +exports.handler = v0; +" +`; + +exports[`serialize a class declaration 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + method() { + v3++; + return v3; + } +}; +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method(); + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a class declaration with constructor 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + constructor() { + v3 += 1; + } + method() { + v3++; + return v3; + } +}; +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method(); + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a class hierarchy 1`] = ` +"// +var v5 = 0; +var v4 = class Foo { + method() { + return v5 += 1; + } +}; +var v3 = v4; +var v2 = class Bar extends v3 { + method() { + return super.method() + 1; + } +}; +var v1 = v2; +var v0 = () => { + const bar = new v1(); + return [bar.method(), v5]; +}; +exports.handler = v0; +" +`; + +exports[`serialize a class mix-in 1`] = ` +"// +var v5 = 0; +var v4 = () => { + return class Foo { + method() { + return v5 += 1; + } + }; +}; +var v3 = v4; +var v2 = class Bar extends v3() { + method() { + return super.method() + 1; + } +}; +var v1 = v2; +var v0 = () => { + const bar = new v1(); + return [bar.method(), v5]; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + get method() { + return v3 += 1; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { + return v3 += 2; +} }); +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method; + foo.method; + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter and setter 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + set method(val) { + v3 += val; + } + get method() { + return v3; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { + return v3 + 1; +}, set: function set(val) { + v3 += val + 1; +} }); +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + set method(val) { + v3 += val; + } + get method() { + return v3; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { + return v3 + 1; +}, set: Object.getOwnPropertyDescriptor(v2.prototype, \\"method\\").set }); +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class method 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + method() { + v3 += 1; + } +}; +var v4 = function() { + v3 += 2; +}; +var v5 = {}; +v4.prototype = v5; +v2.prototype.method = v4; +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method(); + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class method that has been re-set 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + method() { + v3 += 1; + } +}; +var v4 = function() { + v3 += 2; +}; +var v5 = {}; +v4.prototype = v5; +v2.prototype.method = v4; +var v1 = v2; +var v6 = {}; +v6.method = v4; +var v7 = function method() { + v3 += 1; +}; +var v0 = () => { + const foo = new v1(); + foo.method(); + v6.method = v7; + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class setter 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + set method(val) { + v3 += val; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { set: function set(val) { + v3 += val + 1; +} }); +var v1 = v2; +var v0 = () => { + const foo = new v1(); + foo.method = 1; + foo.method = 1; + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class arrow function 1`] = ` +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; +}; + +// +var v3 = 0; +var _a; +var v2 = (_a = class { +}, __publicField(_a, \\"method\\", () => { + v3 += 1; +}), _a); +var v4 = function() { + v3 += 2; +}; +var v5 = {}; +v4.prototype = v5; +v2.method = v4; +var v1 = v2; +var v0 = () => { + v1.method(); + v1.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class method 1`] = ` +"// +var v3 = 0; +var v2 = class Foo { + method() { + v3 += 1; + } +}; +var v4 = function() { + v3 += 2; +}; +var v5 = {}; +v4.prototype = v5; +v2.method = v4; +var v1 = v2; +var v0 = () => { + v1.method(); + v1.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class property 1`] = ` +"// +var v0 = () => { + return 2; +}; +exports.handler = v0; +" +`; + +exports[`serialize an imported module 1`] = ` +"// +var v0 = function isNode(a) { + return typeof (a == null ? void 0 : a.kind) === \\"number\\"; +}; +var v1 = {}; +v0.prototype = v1; +exports.handler = v0; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 8ac957d8..d1f1932d 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -234,8 +234,8 @@ test("serialize a monkey-patched class method that has been re-set", async () => const serialized = await expectClosure(closure); - expect(serialized()).toEqual(3); expect(closure()).toEqual(3); + expect(serialized()).toEqual(3); }); test("serialize a monkey-patched class getter", async () => { From 5c856385d0d8ef1165c74ae87c982467f3280c74 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 12 Aug 2022 21:39:46 -0700 Subject: [PATCH 067/107] fix: all function.localstack tests passing --- jest.config.ts | 6 ++- src/expression.ts | 4 +- src/function.ts | 1 - src/serialize-closure.ts | 23 ++++++++- .../serialize-closure.test.ts.snap | 50 +++++++++++++++++++ test/isolated.test.ts | 23 --------- test/serialize-closure.test.ts | 41 +++++++++++++++ 7 files changed, 121 insertions(+), 27 deletions(-) delete mode 100644 test/isolated.test.ts diff --git a/jest.config.ts b/jest.config.ts index 410b947e..db61c4e4 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,5 +1,9 @@ // ensure the SWC require-hook is installed before anything else runs -import "@swc/register"; +import register from "@swc/register/lib/node"; + +register({ + ignore: [], +}); import fs from "fs"; import path from "path"; diff --git a/src/expression.ts b/src/expression.ts index 840c40eb..f8ffeb34 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -214,7 +214,9 @@ export class ReferenceExpr< * This is used to ensure that two ReferenceExpr's pointing to the same variable still point * to the same variable after transformation. */ - readonly id: number + readonly id: number, + + readonly thisId: number ) { super(NodeKind.ReferenceExpr, span, arguments); this.ensure(name, "name", ["undefined", "string"]); diff --git a/src/function.ts b/src/function.ts index 55770057..0aed0d7d 100644 --- a/src/function.ts +++ b/src/function.ts @@ -1205,7 +1205,6 @@ export async function serialize( * Bundles a serialized function with esbuild. */ export async function bundle(text: string): Promise { - fs.writeFileSync("a.js", text); const bundle = await esbuild.build({ stdin: { contents: text, diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 26931efb..6007e723 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -149,6 +149,8 @@ const globals = new Map ts.Expression>([ [Error.prototype, () => prop(id("Error"), "prototype")], [JSON, () => id("JSON")], [Promise, () => id("Promise")], + [console, () => id("console")], + [setTimeout, () => id("setTimeout")], ]); /** @@ -222,6 +224,7 @@ export function serializeClosure( // stores a map of a `` to a ts.Identifier pointing to the unique location of that variable const referenceIds = new Map(); + const referenceExprToIds = new Map(); const f = serialize(func); emit( @@ -457,6 +460,9 @@ export function serializeClosure( propName ); if (propDescriptor?.get || propDescriptor?.set) { + // TODO; + // eslint-disable-next-line no-debugger + debugger; } else if (propDescriptor?.writable) { emit(expr(assign(prop(obj, propName), serialize(value[propName])))); } @@ -521,6 +527,9 @@ export function serializeClosure( ); if (propDescriptor?.writable) { if (propDescriptor.get || propDescriptor.set) { + // TODO: + // eslint-disable-next-line no-debugger + debugger; } else { emit( expr( @@ -767,8 +776,13 @@ export function serializeClosure( */ function _toTS(node: FunctionlessNode): ts.Node { if (isReferenceExpr(node)) { + // get the set of ReferenceExpr instances for thisId + let thisId = referenceExprToIds.get(node.thisId); + thisId = thisId === undefined ? 0 : thisId + 1; + referenceExprToIds.set(node.thisId, thisId); + // a key that uniquely identifies the variable pointed to by this reference - const varKey = `${node.getFileName()} ${node.name} ${node.id}`; + const varKey = `${node.getFileName()} ${node.name} ${node.id} ${thisId}`; // a ts.Identifier that uniquely references the memory location of this variable in the serialized closure let varId: ts.Identifier | undefined = referenceIds.get(varKey); @@ -899,6 +913,13 @@ export function serializeClosure( if (isReferenceExpr(expr)) { return true; } else if (isPropAccessExpr(expr)) { + if (isReferenceExpr(expr.expr)) { + const ref = expr.expr.ref(); + if (ref === process && expr.name.name === "env") { + // process.env, we should never serialize these values literally + return false; + } + } return isRef(expr.expr); } return false; diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 569de716..f13eed4b 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -24,6 +24,56 @@ exports.handler = v0; " `; +exports[`all observers of a free variable share the same reference even when two instances 1`] = ` +"// +var v2 = []; +var v6 = 0; +var v5 = function up() { + v6 += 2; +}; +var v7 = {}; +v5.prototype = v7; +var v4 = v5; +var v9 = function down() { + v6 -= 1; +}; +var v10 = {}; +v9.prototype = v10; +var v8 = v9; +var v3 = () => { + v4(); + v8(); + return v6; +}; +var v14 = 0; +var v13 = function up2() { + v14 += 2; +}; +var v15 = {}; +v13.prototype = v15; +var v12 = v13; +var v17 = function down2() { + v14 -= 1; +}; +var v18 = {}; +v17.prototype = v18; +var v16 = v17; +var v11 = () => { + v12(); + v16(); + return v14; +}; +v2.push(v3, v11); +var v1 = v2; +var v0 = () => { + return v1.map((closure) => { + return closure(); + }); +}; +exports.handler = v0; +" +`; + exports[`avoid name collision with a closure's lexical scope 1`] = ` "// var v6 = 0; diff --git a/test/isolated.test.ts b/test/isolated.test.ts deleted file mode 100644 index 6f93464e..00000000 --- a/test/isolated.test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import "jest"; -import { aws_events, Duration, Stack } from "aws-cdk-lib"; -import { Function } from "../src"; - -test("should not create new resources in lambda", async () => { - await expect(async () => { - const stack = new Stack(); - new Function( - stack, - "function", - { - timeout: Duration.seconds(20), - }, - async () => { - const bus = new aws_events.EventBus(stack, "busbus"); - return bus.eventBusArn; - } - ); - await Promise.all(Function.promises); - }).rejects.toThrow( - `Cannot initialize new CDK resources in a runtime function.` - ); -}); diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index d1f1932d..8adbc3ec 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -78,6 +78,32 @@ test("all observers of a free variable share the same reference", async () => { expect(closure()).toEqual(1); }); +test("all observers of a free variable share the same reference even when two instances", async () => { + const closures = [0, 0].map(() => { + let i = 0; + + function up() { + i += 2; + } + + function down() { + i -= 1; + } + + return () => { + up(); + down(); + return i; + }; + }); + + const closure = await expectClosure(() => { + return closures.map((closure) => closure()); + }); + + expect(closure()).toEqual([1, 1]); +}); + test("serialize an imported module", async () => { const closure = await expectClosure(isNode); @@ -422,6 +448,21 @@ test("instantiating the AWS SDK", async () => { expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); }); +test("instantiating the AWS SDK without esbuild", async () => { + const closure = await expectClosure( + () => { + const client = new AWS.DynamoDB(); + + return client.config.endpoint; + }, + { + useESBuild: false, + } + ); + + expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); +}); + test("instantiating the AWS SDK v3", async () => { const closure = await expectClosure(() => { const client = new DynamoDBClient({}); From 6fef6d0329d07066f7ef91fa27f3554e553f5a65 Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 13 Aug 2022 00:34:45 -0700 Subject: [PATCH 068/107] feat: register all known globals and internal modules --- .projenrc.ts | 3 +- .vscode/launch.json | 14 ++ jest.config.ts | 10 +- src/serialize-closure.ts | 123 ++++-------------- src/serialize-globals.json | 255 +++++++++++++++++++++++++++++++++++++ src/serialize-globals.ts | 59 +++++++++ src/serialize-util.ts | 78 ++++++++++++ src/step-function.ts | 1 + tsconfig.dev.json | 2 +- tsconfig.json | 2 +- 10 files changed, 445 insertions(+), 102 deletions(-) create mode 100644 src/serialize-globals.json create mode 100644 src/serialize-globals.ts create mode 100644 src/serialize-util.ts diff --git a/.projenrc.ts b/.projenrc.ts index 86a5b109..013ba471 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -153,7 +153,8 @@ const project = new CustomTypescriptProject({ // @ts-ignore declarationMap: true, noUncheckedIndexedAccess: true, - lib: ["dom", "ES2019"], + lib: ["dom", "ES2022"], + resolveJsonModule: true, }, }, tsconfigDev: { diff --git a/.vscode/launch.json b/.vscode/launch.json index 113e23d8..41a2493c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -121,6 +121,20 @@ "env": { "TS_NODE_PROJECT": "${workspaceRoot}/test-app/tsconfig.json" } + }, + { + "name": "generate-globals", + "type": "node", + "request": "launch", + "runtimeExecutable": "node", + "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], + "args": ["./src/serialize-globals.ts"], + "cwd": "${workspaceRoot}", + "internalConsoleOptions": "openOnSessionStart", + "skipFiles": ["/**", "node_modules/**"], + "env": { + "TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json" + } } ] } diff --git a/jest.config.ts b/jest.config.ts index db61c4e4..1abb7311 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -2,7 +2,14 @@ import register from "@swc/register/lib/node"; register({ - ignore: [], + ignore: [ + (file) => { + if (file.includes("aws-sdk")) { + console.log(file); + } + return false; + }, + ], }); import fs from "fs"; @@ -22,5 +29,6 @@ export default async (): Promise => { return { // override defaults programmatically if needed ...defaults, + transformIgnorePatterns: ["node_modules/typescript/.*"], }; }; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 6007e723..b83d68c0 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -99,6 +99,23 @@ import { } from "./guards"; import { FunctionlessNode } from "./node"; import { reflect } from "./reflect"; +import { Globals } from "./serialize-globals"; +import { + expr, + assign, + prop, + id, + string, + undefined_expr, + null_expr, + true_expr, + false_expr, + number, + object, + defineProperty, + getOwnPropertyDescriptor, + call, +} from "./serialize-util"; import { AnyClass, AnyFunction } from "./util"; export interface SerializeClosureProps extends esbuild.BuildOptions { @@ -135,24 +152,6 @@ export interface SerializeClosureProps extends esbuild.BuildOptions { isFactoryFunction?: boolean; } -const globals = new Map ts.Expression>([ - [process, () => id("process")], - [Object, () => id("Object")], - [Object.prototype, () => prop(id("Object"), "prototype")], - [Function, () => id("Function")], - [Function.prototype, () => prop(id("Function"), "prototype")], - [Date, () => id("Date")], - [Date.prototype, () => prop(id("Date"), "prototype")], - [RegExp, () => id("RegExp")], - [RegExp.prototype, () => prop(id("RegExp"), "prototype")], - [Error, () => id("Error")], - [Error.prototype, () => prop(id("Error"), "prototype")], - [JSON, () => id("JSON")], - [Promise, () => id("Promise")], - [console, () => id("console")], - [setTimeout, () => id("setTimeout")], -]); - /** * Serialize a closure to a bundle that can be remotely executed. * @param func @@ -363,7 +362,7 @@ export function serializeClosure( } else if (value === false) { return false_expr(); } else if (typeof value === "number") { - return number_expr(value); + return number(value); } else if (typeof value === "bigint") { return ts.factory.createBigIntLiteral(value.toString(10)); } else if (typeof value === "string") { @@ -382,7 +381,7 @@ export function serializeClosure( return ts.factory.createRegularExpressionLiteral(value.source); } else if (value instanceof Date) { return ts.factory.createNewExpression(id("Date"), undefined, [ - number_expr(value.getTime()), + number(value.getTime()), ]); } else if (Array.isArray(value)) { // TODO: should we check the array's prototype? @@ -404,8 +403,8 @@ export function serializeClosure( return arr; } else if (typeof value === "object") { - if (globals.has(value)) { - return emitVarDecl("const", uniqueName(), globals.get(value)!()); + if (Globals.has(value)) { + return emitVarDecl("const", uniqueName(), Globals.get(value)!()); } if (options?.serialize) { @@ -470,8 +469,8 @@ export function serializeClosure( return obj; } else if (typeof value === "function") { - if (globals.has(value)) { - return emitVarDecl("const", uniqueName(), globals.get(value)!()); + if (Globals.has(value)) { + return emitVarDecl("const", uniqueName(), Globals.get(value)!()); } if (options?.serialize) { @@ -501,6 +500,8 @@ export function serializeClosure( } else if (value.name === "Object") { return serialize(Object.prototype); } + // eslint-disable-next-line no-debugger + debugger; throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); @@ -1398,77 +1399,3 @@ export function serializeClosure( } } } - -function undefined_expr() { - return ts.factory.createIdentifier("undefined"); -} - -function null_expr() { - return ts.factory.createNull(); -} - -function true_expr() { - return ts.factory.createTrue(); -} - -function false_expr() { - return ts.factory.createFalse(); -} - -function id(name: string) { - return ts.factory.createIdentifier(name); -} - -function string(name: string) { - return ts.factory.createStringLiteral(name); -} - -function number_expr(num: number) { - return ts.factory.createNumericLiteral(num); -} - -function object(obj: Record) { - return ts.factory.createObjectLiteralExpression( - Object.entries(obj).map(([name, val]) => - ts.factory.createPropertyAssignment(name, val) - ) - ); -} - -const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; - -function prop(expr: ts.Expression, name: string) { - if (name.match(propNameRegex)) { - return ts.factory.createPropertyAccessExpression(expr, name); - } else { - return ts.factory.createElementAccessExpression(expr, string(name)); - } -} - -function assign(left: ts.Expression, right: ts.Expression) { - return ts.factory.createBinaryExpression( - left, - ts.factory.createToken(ts.SyntaxKind.EqualsToken), - right - ); -} - -function call(expr: ts.Expression, args: ts.Expression[]) { - return ts.factory.createCallExpression(expr, undefined, args); -} - -function expr(expr: ts.Expression): ts.Statement { - return ts.factory.createExpressionStatement(expr); -} - -function defineProperty( - on: ts.Expression, - name: ts.Expression, - value: ts.Expression -) { - return call(prop(id("Object"), "defineProperty"), [on, name, value]); -} - -function getOwnPropertyDescriptor(obj: ts.Expression, key: ts.Expression) { - return call(prop(id("Object"), "getOwnPropertyDescriptor"), [obj, key]); -} diff --git a/src/serialize-globals.json b/src/serialize-globals.json new file mode 100644 index 00000000..60c5bf82 --- /dev/null +++ b/src/serialize-globals.json @@ -0,0 +1,255 @@ +{ + "modules": [ + "assert", + "buffer", + "child_process", + "cluster", + "crypto", + "dgram", + "dns", + "domain", + "events", + "fs", + "http", + "https", + "net", + "os", + "path", + "punycode", + "querystring", + "readline", + "stream", + "string_decoder", + "timers", + "tls", + "tty", + "url", + "util", + "v8", + "vm", + "zlib" + ], + "globals": [ + "AbortController", + "AbortSignal", + "AggregateError", + "Array", + "ArrayBuffer", + "Atomics", + "BigInt", + "BigInt64Array", + "BigUint64Array", + "Blob", + "Boolean", + "BroadcastChannel", + "Buffer", + "ByteLengthQueuingStrategy", + "Cache", + "caches", + "CacheStorage", + "CanvasGradient", + "CanvasPattern", + "Client", + "Clients", + "CloseEvent", + "console", + "CountQueuingStrategy", + "crossOriginIsolated", + "crypto", + "Crypto", + "CryptoKey", + "CustomEvent", + "DataView", + "Date", + "decodeURI", + "decodeURIComponent", + "DedicatedWorkerGlobalScope", + "DOMException", + "DOMMatrix", + "DOMMatrixReadOnly", + "DOMPoint", + "DOMPointReadOnly", + "DOMQuad", + "DOMRect", + "DOMRectReadOnly", + "DOMStringList", + "encodeURI", + "encodeURIComponent", + "Error", + "ErrorEvent", + "escape", + "eval", + "EvalError", + "Event", + "EventSource", + "EventTarget", + "ExtendableEvent", + "ExtendableMessageEvent", + "FetchEvent", + "File", + "FileList", + "FileReader", + "FileReaderSync", + "FileSystemDirectoryHandle", + "FileSystemFileHandle", + "FileSystemHandle", + "FinalizationRegistry", + "Float32Array", + "Float64Array", + "FontFace", + "FontFaceSet", + "FontFaceSetLoadEvent", + "fonts", + "FormData", + "Function", + "Headers", + "IDBCursor", + "IDBCursorWithValue", + "IDBDatabase", + "IDBFactory", + "IDBIndex", + "IDBKeyRange", + "IDBObjectStore", + "IDBOpenDBRequest", + "IDBRequest", + "IDBTransaction", + "IDBVersionChangeEvent", + "ImageBitmap", + "ImageBitmapRenderingContext", + "ImageData", + "indexedDB", + "Infinity", + "Int16Array", + "Int32Array", + "Int8Array", + "isFinite", + "isNaN", + "isSecureContext", + "JSON", + "location", + "Lock", + "LockManager", + "Map", + "MediaCapabilities", + "MessageChannel", + "MessageEvent", + "MessagePort", + "name", + "NaN", + "NavigationPreloadManager", + "navigator", + "NetworkInformation", + "Notification", + "NotificationEvent", + "Number", + "Object", + "onerror", + "onlanguagechange", + "onmessage", + "onmessageerror", + "onoffline", + "ononline", + "onrejectionhandled", + "onunhandledrejection", + "origin", + "parseFloat", + "parseInt", + "Path2D", + "performance", + "Performance", + "PerformanceEntry", + "PerformanceMark", + "PerformanceMeasure", + "PerformanceObserver", + "PerformanceObserverEntryList", + "PerformanceResourceTiming", + "PerformanceServerTiming", + "Permissions", + "PermissionStatus", + "process", + "ProgressEvent", + "Promise", + "PromiseRejectionEvent", + "Proxy", + "PushEvent", + "PushManager", + "PushMessageData", + "PushSubscription", + "PushSubscriptionOptions", + "RangeError", + "ReadableStream", + "ReadableStreamDefaultController", + "ReadableStreamDefaultReader", + "ReferenceError", + "Reflect", + "RegExp", + "Request", + "Response", + "RTCEncodedAudioFrame", + "RTCEncodedVideoFrame", + "SecurityPolicyViolationEvent", + "self", + "ServiceWorker", + "ServiceWorkerContainer", + "ServiceWorkerGlobalScope", + "ServiceWorkerRegistration", + "Set", + "SharedArrayBuffer", + "SharedWorkerGlobalScope", + "StorageManager", + "String", + "SubtleCrypto", + "Symbol", + "Symbol", + "SyntaxError", + "TextDecoder", + "TextDecoderStream", + "TextEncoder", + "TextEncoderStream", + "TextMetrics", + "TransformStream", + "TransformStreamDefaultController", + "TypeError", + "Uint16Array", + "Uint32Array", + "Uint8Array", + "Uint8ClampedArray", + "unescape", + "URIError", + "URL", + "URLSearchParams", + "VideoColorSpace", + "WeakMap", + "WeakRef", + "WeakSet", + "WebGL2RenderingContext", + "WebGLActiveInfo", + "WebGLBuffer", + "WebGLContextEvent", + "WebGLFramebuffer", + "WebGLProgram", + "WebGLQuery", + "WebGLRenderbuffer", + "WebGLRenderingContext", + "WebGLSampler", + "WebGLShader", + "WebGLShaderPrecisionFormat", + "WebGLSync", + "WebGLTexture", + "WebGLTransformFeedback", + "WebGLUniformLocation", + "WebGLVertexArrayObject", + "WebSocket", + "WindowClient", + "Worker", + "WorkerGlobalScope", + "WorkerLocation", + "WorkerNavigator", + "WritableStream", + "WritableStreamDefaultController", + "WritableStreamDefaultWriter", + "XMLHttpRequest", + "XMLHttpRequestEventTarget", + "XMLHttpRequestUpload" + ] +} diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts new file mode 100644 index 00000000..89af4326 --- /dev/null +++ b/src/serialize-globals.ts @@ -0,0 +1,59 @@ +// sourced from the lib.*.d.ts files +import { globals, modules } from "./serialize-globals.json"; +import { call, id, prop, string } from "./serialize-util"; + +export const Globals = new Map ts.Expression>(); + +const G: any = globalThis; + +for (const moduleName of modules) { + // eslint-disable-next-line @typescript-eslint/no-require-imports + const module: any = require(moduleName); + + Globals.set(module, () => call(id("require"), [string(moduleName)])); + + for (const [exportName, exportValue] of Object.entries(module)) { + Globals.set(exportValue, () => + prop(call(id("require"), [string(moduleName)]), exportName) + ); + + if (typeof exportValue === "function") { + Globals.set(exportValue.prototype, () => + prop( + prop(call(id("require"), [string(moduleName)]), exportName), + "prototype" + ) + ); + } + } +} + +for (const valueName of globals) { + // these are references to functions or namespaces + + if (valueName in G) { + const value = G[valueName]; + + console.debug(`[${valueName}, id(${valueName})]`); + Globals.set(value, () => id(valueName)); + if (typeof value === "function") { + console.debug( + `[${valueName}.prototype, prop(id(${valueName}), prototype)]` + ); + Globals.set(value.prototype, () => prop(id(valueName), "prototype")); + } + + // go through each of its properties + for (const [propName, propValue] of Object.entries(value)) { + if (value === process && propName === "env") { + continue; + } + if (typeof propValue === "function") { + console.debug( + `[${valueName}.${propName}, prop(id(${valueName}), ${propName})]` + ); + Globals.set(propValue, () => prop(id(valueName), propName)); + } + } + } +} diff --git a/src/serialize-util.ts b/src/serialize-util.ts new file mode 100644 index 00000000..88ef3c1f --- /dev/null +++ b/src/serialize-util.ts @@ -0,0 +1,78 @@ +import ts from "typescript"; + +export function undefined_expr() { + return ts.factory.createIdentifier("undefined"); +} + +export function null_expr() { + return ts.factory.createNull(); +} + +export function true_expr() { + return ts.factory.createTrue(); +} + +export function false_expr() { + return ts.factory.createFalse(); +} + +export function id(name: string) { + return ts.factory.createIdentifier(name); +} + +export function string(name: string) { + return ts.factory.createStringLiteral(name); +} + +export function number(num: number) { + return ts.factory.createNumericLiteral(num); +} + +export function object(obj: Record) { + return ts.factory.createObjectLiteralExpression( + Object.entries(obj).map(([name, val]) => + ts.factory.createPropertyAssignment(name, val) + ) + ); +} + +const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; + +export function prop(expr: ts.Expression, name: string) { + if (name.match(propNameRegex)) { + return ts.factory.createPropertyAccessExpression(expr, name); + } else { + return ts.factory.createElementAccessExpression(expr, string(name)); + } +} + +export function assign(left: ts.Expression, right: ts.Expression) { + return ts.factory.createBinaryExpression( + left, + ts.factory.createToken(ts.SyntaxKind.EqualsToken), + right + ); +} + +export function call(expr: ts.Expression, args: ts.Expression[]) { + return ts.factory.createCallExpression(expr, undefined, args); +} + +export function expr(expr: ts.Expression): ts.Statement { + return ts.factory.createExpressionStatement(expr); +} + +export function defineProperty( + on: ts.Expression, + name: ts.Expression, + value: ts.Expression +) { + return call(prop(id("Object"), "defineProperty"), [on, name, value]); +} + +export function getOwnPropertyDescriptor( + obj: ts.Expression, + key: ts.Expression +) { + return call(prop(id("Object"), "getOwnPropertyDescriptor"), [obj, key]); +} diff --git a/src/step-function.ts b/src/step-function.ts index 283afbe9..f81c3f4b 100644 --- a/src/step-function.ts +++ b/src/step-function.ts @@ -507,6 +507,7 @@ export type StepFunctionCause = * } * ``` */ +// @ts-ignore - TODO: rename error and cause export class StepFunctionError extends Error { static readonly kind = "StepFunctionError"; diff --git a/tsconfig.dev.json b/tsconfig.dev.json index b88eec20..d67ef6df 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -8,7 +8,7 @@ "inlineSources": true, "lib": [ "dom", - "ES2019" + "ES2022" ], "module": "CommonJS", "noEmitOnError": false, diff --git a/tsconfig.json b/tsconfig.json index 89bafd37..7bd39a2e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "inlineSources": true, "lib": [ "dom", - "ES2019" + "ES2022" ], "module": "CommonJS", "noEmitOnError": false, From d9fddba2523eff0ee545d59fc3902b5e9719540b Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 13 Aug 2022 04:23:56 -0700 Subject: [PATCH 069/107] fix: more cases and refactor --- src/serialize-closure.ts | 381 +- src/serialize-globals.json | 1 + src/serialize-globals.ts | 77 +- src/serialize-util.ts | 57 +- .../serialize-closure.test.ts.snap | 5452 +---------------- test/serialize-closure.test.ts | 16 +- 6 files changed, 370 insertions(+), 5614 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index b83d68c0..e1ed6f62 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -6,6 +6,7 @@ import ts from "typescript"; import { assertNever } from "./assert"; import { ClassDecl, + FunctionLike, GetAccessorDecl, MethodDecl, SetAccessorDecl, @@ -101,20 +102,21 @@ import { FunctionlessNode } from "./node"; import { reflect } from "./reflect"; import { Globals } from "./serialize-globals"; import { - expr, - assign, - prop, - id, - string, - undefined_expr, - null_expr, - true_expr, - false_expr, - number, - object, - defineProperty, - getOwnPropertyDescriptor, - call, + exprStmt, + assignExpr, + propAccessExpr, + idExpr, + stringExpr, + undefinedExpr, + nullExpr, + trueExpr, + falseExpr, + numberExpr, + objectExpr, + definePropertyExpr, + getOwnPropertyDescriptorExpr, + callExpr, + setPropertyStmt, } from "./serialize-util"; import { AnyClass, AnyFunction } from "./util"; @@ -218,19 +220,32 @@ export function serializeClosure( const statements: ts.Statement[] = []; - // stores a map of value to a ts.Expression producing that value - const valueIds = new Map(); + const singleton = (() => { + // stores a map of value to a ts.Expression producing that value + const valueIds = new Map(); + + return function (value: any, produce: () => T): T { + // optimize for number of map get/set operations as this is hot code + let expr = valueIds.get(value); + if (expr === undefined) { + expr = produce(); + valueIds.set(value, expr); + } + return expr as T; + }; + })(); // stores a map of a `` to a ts.Identifier pointing to the unique location of that variable const referenceIds = new Map(); - const referenceExprToIds = new Map(); + // map ReferenceExpr (syntactically) to the Closure Instance ID + const referenceInstanceIDs = new Map(); const f = serialize(func); emit( - expr( - assign( - prop(id("exports"), "handler"), - options?.isFactoryFunction ? call(f, []) : f + exprStmt( + assignExpr( + propAccessExpr(idExpr("exports"), "handler"), + options?.isFactoryFunction ? callExpr(f, []) : f ) ) ); @@ -288,7 +303,7 @@ export function serializeClosure( function emitVarDecl( varKind: "const" | "let" | "var", varName: string, - expr: ts.Expression + expr?: ts.Expression | undefined ): ts.Identifier { emit( ts.factory.createVariableStatement( @@ -318,7 +333,7 @@ export function serializeClosure( return emitVarDecl( "const", uniqueName(), - call(id("require"), [string(mod)]) + callExpr(idExpr("require"), [stringExpr(mod)]) ); } @@ -343,63 +358,58 @@ export function serializeClosure( } function serialize(value: any): ts.Expression { - let id = valueIds.get(value); - if (id) { - return id; - } - id = serializeValue(value); - valueIds.set(value, id); - return id; + return singleton(value, () => serializeValue(value)); } function serializeValue(value: any): ts.Expression { if (value === undefined) { - return undefined_expr(); + return undefinedExpr(); } else if (value === null) { - return null_expr(); + return nullExpr(); } else if (value === true) { - return true_expr(); + return trueExpr(); } else if (value === false) { - return false_expr(); + return falseExpr(); } else if (typeof value === "number") { - return number(value); + return numberExpr(value); } else if (typeof value === "bigint") { return ts.factory.createBigIntLiteral(value.toString(10)); } else if (typeof value === "string") { if (options?.serialize) { const result = options.serialize(value); if (result === false) { - return undefined_expr(); + return undefinedExpr(); } else if (result === true) { - return string(value); + return stringExpr(value); } else { return serialize(result); } } - return string(value); + return stringExpr(value); } else if (value instanceof RegExp) { return ts.factory.createRegularExpressionLiteral(value.source); } else if (value instanceof Date) { - return ts.factory.createNewExpression(id("Date"), undefined, [ - number(value.getTime()), + return ts.factory.createNewExpression(idExpr("Date"), undefined, [ + numberExpr(value.getTime()), ]); } else if (Array.isArray(value)) { // TODO: should we check the array's prototype? // emit an empty array // var vArr = [] - const arr = emitVarDecl( - "const", - uniqueName(), - ts.factory.createArrayLiteralExpression([]) + const arr = singleton(value, () => + emitVarDecl( + "const", + uniqueName(), + ts.factory.createArrayLiteralExpression([]) + ) ); - // cache the empty array now in case any of the items in the array circularly reference the array - valueIds.set(value, arr); - // for each item in the array, serialize the value and push it into the array // vArr.push(vItem1, vItem2) - emit(expr(call(prop(arr, "push"), value.map(serialize)))); + emit( + exprStmt(callExpr(propAccessExpr(arr, "push"), value.map(serialize))) + ); return arr; } else if (typeof value === "object") { @@ -411,7 +421,7 @@ export function serializeClosure( const result = options.serialize(value); if (!result) { // do not serialize - return emitVarDecl("const", uniqueName(), undefined_expr()); + return emitVarDecl("const", uniqueName(), undefinedExpr()); } else if (value === true || typeof result === "object") { value = result; } else { @@ -422,10 +432,21 @@ export function serializeClosure( const mod = requireCache.get(value); if (mod && options?.useESBuild !== false) { - return importMod(mod, value); + return serializeModule(value, mod); + } + + if ( + Object.hasOwn(value, "__defineGetter__") && + value !== Object.prototype + ) { + // heuristic to detect an Object that looks like the Object.prototype but isn't + // we replace it with the actual Object.prototype since we don't know what to do + // with its native functions. + return serialize(Object.prototype); } const prototype = Object.getPrototypeOf(value); + // serialize the prototype first // there should be no circular references between an object instance and its prototype // if we need to handle circular references between an instance and prototype, then we can @@ -435,116 +456,53 @@ export function serializeClosure( // emit an empty object with the correct prototype // e.g. `var vObj = Object.create(vPrototype);` - const obj = emitVarDecl( - "const", - uniqueName(), - serializedPrototype - ? call(prop(id("Object"), "create"), [serializedPrototype]) - : object({}) + const obj = singleton(value, () => + emitVarDecl( + "const", + uniqueName(), + serializedPrototype + ? callExpr(propAccessExpr(idExpr("Object"), "create"), [ + serializedPrototype, + ]) + : objectExpr({}) + ) ); - // cache the empty object nwo in case any of the properties in teh array circular reference the object - valueIds.set(value, obj); - - // for each of the object's own properties, emit a statement that assigns the value of that property - // vObj.propName = vValue - Object.getOwnPropertyNames(value) - .filter((propName) => propName !== "constructor") - .filter( - (propName) => options?.shouldCaptureProp?.(value, propName) ?? true - ) - .forEach((propName) => { - const propDescriptor = Object.getOwnPropertyDescriptor( - value, - propName - ); - if (propDescriptor?.get || propDescriptor?.set) { - // TODO; - // eslint-disable-next-line no-debugger - debugger; - } else if (propDescriptor?.writable) { - emit(expr(assign(prop(obj, propName), serialize(value[propName])))); - } - }); + defineProperties(value, obj); return obj; } else if (typeof value === "function") { - if (Globals.has(value)) { - return emitVarDecl("const", uniqueName(), Globals.get(value)!()); - } - if (options?.serialize) { const result = options.serialize(value); if (result === false) { // do not serialize - return emitVarDecl("const", uniqueName(), undefined_expr()); + return undefinedExpr(); } else if (result !== true) { value = result; } } + if (Globals.has(value)) { + return emitVarDecl("const", uniqueName(), Globals.get(value)!()); + } + // if this is not compiled by functionless, we can only serialize it if it is exported by a module const mod = requireCache.get(value); if (mod && options?.useESBuild !== false) { - return importMod(mod, value); + return serializeModule(value, mod); } const ast = reflect(value); if (ast === undefined) { - // TODO: check if this is an intrinsic, such as Object, Function, Array, Date, etc. - if (mod === undefined) { - if (value.name === "bound requireModuleOrMock") { - return id("require"); - } else if (value.name === "Object") { - return serialize(Object.prototype); - } - // eslint-disable-next-line no-debugger - debugger; - throw new Error( - `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` - ); + if (mod) { + return serializeModule(value, mod); + } else { + return serializeUnknownFunction(value); } - - return importMod(mod, value); } else if (isFunctionLike(ast)) { - const func = emitVarDecl( - "const", - uniqueName(), - toTS(ast) as ts.Expression - ); - - // for each of the object's own properties, emit a statement that assigns the value of that property - // vObj.propName = vValue - Object.getOwnPropertyNames(value) - .filter( - (propName) => options?.shouldCaptureProp?.(value, propName) ?? true - ) - .forEach((propName) => { - const propDescriptor = Object.getOwnPropertyDescriptor( - value, - propName - ); - if (propDescriptor?.writable) { - if (propDescriptor.get || propDescriptor.set) { - // TODO: - // eslint-disable-next-line no-debugger - debugger; - } else { - emit( - expr( - assign( - prop(func, propName), - serialize(propDescriptor.value) - ) - ) - ); - } - } - }); - - return func; + return serializeFunction(value, ast); } else if (isClassDecl(ast) || isClassExpr(ast)) { return serializeClass(value, ast); } else if (isMethodDecl(ast)) { @@ -555,26 +513,58 @@ export function serializeClosure( throw new Error("not implemented"); } + // eslint-disable-next-line no-debugger + debugger; throw new Error("not implemented"); } - function importMod(mod: RequiredModule, value: any) { + function serializeModule(value: unknown, mod: RequiredModule) { const exports = mod.module?.exports; if (exports === undefined) { throw new Error(`undefined exports`); } - if (!valueIds.has(exports)) { - const moduleId = getModuleId(mod.path); - valueIds.set(exports, emitRequire(moduleId)); + const requireMod = singleton(exports, () => + emitRequire(getModuleId(mod.path)) + ); + return singleton(value, () => + emitVarDecl( + "const", + uniqueName(), + mod.exportName ? propAccessExpr(requireMod, mod.exportName) : requireMod + ) + ); + } + + function serializeFunction(value: AnyFunction, ast: FunctionLike) { + // declare an empty var for this function + const func = singleton(value, () => emitVarDecl("var", uniqueName())); + + emit(exprStmt(assignExpr(func, toTS(ast) as ts.Expression))); + + defineProperties(value, func); + + return func; + } + + function serializeUnknownFunction(value: AnyFunction) { + if (value.name === "bound requireModuleOrMock") { + // heuristic to catch Jest's hacked-up require + return idExpr("require"); + } else if (value.name === "Object") { + // + return serialize(Object); + } else if ( + value.toString() === `function ${value.name}() { [native code] }` + ) { + // eslint-disable-next-line no-debugger + debugger; } - const requireMod = valueIds.get(exports)!; - const requireModExport = emitVarDecl( - "const", - uniqueName(), - mod.exportName ? prop(requireMod, mod.exportName) : requireMod + + // eslint-disable-next-line no-debugger + debugger; + throw new Error( + `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); - valueIds.set(value, requireModExport); - return requireModExport; } function serializeClass( @@ -582,22 +572,74 @@ export function serializeClosure( classAST: ClassExpr | ClassDecl ): ts.Expression { // emit the class to the closure - const classDecl = emitVarDecl( - "const", - uniqueName(classAST), - toTS(classAST) as ts.Expression + const classDecl = singleton(classVal, () => + emitVarDecl( + "const", + uniqueName(classAST), + toTS(classAST) as ts.Expression + ) ); - valueIds.set(classVal, classDecl); - monkeyPatch(classDecl, classVal, classVal, ["prototype"]); - monkeyPatch(prop(classDecl, "prototype"), classVal.prototype, classVal, [ - "constructor", - ]); + monkeyPatch( + propAccessExpr(classDecl, "prototype"), + classVal.prototype, + classVal, + ["constructor"] + ); return classDecl; } + function defineProperties( + value: unknown, + expr: ts.Expression, + ignore?: string[] + ) { + const ignoreSet = new Set(ignore); + // for each of the object's own properties, emit a statement that assigns the value of that property + // vObj.propName = vValue + Object.getOwnPropertyNames(value) + .filter( + (propName) => + !ignoreSet.has(propName) && + (options?.shouldCaptureProp?.(value, propName) ?? true) + ) + .forEach((propName) => { + const propDescriptor = Object.getOwnPropertyDescriptor(value, propName); + if (propDescriptor?.writable) { + if ( + propDescriptor.get === undefined && + propDescriptor.set === undefined + ) { + emit( + setPropertyStmt(expr, propName, serialize(propDescriptor.value)) + ); + } else { + const getter = propDescriptor.get + ? serialize(propDescriptor.get) + : undefinedExpr(); + const setter = propDescriptor.set + ? serialize(propDescriptor.set) + : undefinedExpr(); + + emit( + exprStmt( + definePropertyExpr( + expr, + stringExpr(propName), + objectExpr({ + get: getter, + set: setter, + }) + ) + ) + ); + } + } + }); + } + /** * Detect properties that have been patched on the original class and * emit statements to re-apply the patched values. @@ -631,11 +673,11 @@ export function serializeClosure( if (get?.patched || set?.patched) { emit( - expr( - defineProperty( + exprStmt( + definePropertyExpr( varName, - string(propName), - object({ + stringExpr(propName), + objectExpr({ ...(get ? { get: get.patched ?? get.original, @@ -689,8 +731,8 @@ export function serializeClosure( ).ownedBy!.ref(); if (owner === ownedBy) { return { - original: prop( - getOwnPropertyDescriptor(varName, string(propName)), + original: propAccessExpr( + getOwnPropertyDescriptorExpr(varName, stringExpr(propName)), kind ), }; @@ -713,17 +755,16 @@ export function serializeClosure( const methodAST = reflect(method); if (methodAST === undefined) { throw new Error(`method ${method.toString()} cannot be reflected`); - } - if (isMethodDecl(methodAST)) { + } else if (isMethodDecl(methodAST)) { if (methodAST.ownedBy!.ref() !== ownedBy) { // this is a monkey-patched method, overwrite the value - emit(expr(assign(prop(varName, propName), serialize(method)))); + emit(setPropertyStmt(varName, propName, serialize(method))); } else { // this is the same method as declared in the class, so do nothing } } else if (isFunctionLike(methodAST)) { // a method that has been patched with a function decl/expr or arrow expr. - emit(expr(assign(prop(varName, propName), serialize(method)))); + emit(setPropertyStmt(varName, propName, serialize(method))); } else { throw new Error( `Cannot monkey-patch a method with a ${methodAST.kindName}` @@ -731,9 +772,7 @@ export function serializeClosure( } } else if (propDescriptor.writable) { // this is a literal value, like an object, so let's serialize it and set - emit( - expr(assign(prop(varName, propName), serialize(propDescriptor.value))) - ); + emit(setPropertyStmt(varName, propName, propDescriptor.value)); } } } @@ -778,9 +817,9 @@ export function serializeClosure( function _toTS(node: FunctionlessNode): ts.Node { if (isReferenceExpr(node)) { // get the set of ReferenceExpr instances for thisId - let thisId = referenceExprToIds.get(node.thisId); + let thisId = referenceInstanceIDs.get(node.thisId); thisId = thisId === undefined ? 0 : thisId + 1; - referenceExprToIds.set(node.thisId, thisId); + referenceInstanceIDs.set(node.thisId, thisId); // a key that uniquely identifies the variable pointed to by this reference const varKey = `${node.getFileName()} ${node.name} ${node.id} ${thisId}`; @@ -958,7 +997,7 @@ export function serializeClosure( } else if (isBigIntExpr(node)) { return ts.factory.createBigIntLiteral(node.value.toString(10)); } else if (isStringLiteralExpr(node)) { - return string(node.value); + return stringExpr(node.value); } else if (isArrayLiteralExpr(node)) { return ts.factory.createArrayLiteralExpression( node.items.map((item) => toTS(item) as ts.Expression), diff --git a/src/serialize-globals.json b/src/serialize-globals.json index 60c5bf82..82afe4e6 100644 --- a/src/serialize-globals.json +++ b/src/serialize-globals.json @@ -129,6 +129,7 @@ "location", "Lock", "LockManager", + "Math", "Map", "MediaCapabilities", "MessageChannel", diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts index 89af4326..70f3002f 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-globals.ts @@ -1,58 +1,51 @@ // sourced from the lib.*.d.ts files import { globals, modules } from "./serialize-globals.json"; -import { call, id, prop, string } from "./serialize-util"; +import { callExpr, idExpr, propAccessExpr, stringExpr } from "./serialize-util"; export const Globals = new Map ts.Expression>(); -const G: any = globalThis; +for (const valueName of globals) { + if (valueName in global) { + registerValue(global[valueName as keyof typeof global], idExpr(valueName)); + } +} for (const moduleName of modules) { - // eslint-disable-next-line @typescript-eslint/no-require-imports - const module: any = require(moduleName); - - Globals.set(module, () => call(id("require"), [string(moduleName)])); - - for (const [exportName, exportValue] of Object.entries(module)) { - Globals.set(exportValue, () => - prop(call(id("require"), [string(moduleName)]), exportName) - ); + registerValue( + // eslint-disable-next-line @typescript-eslint/no-require-imports + require(moduleName), + callExpr(idExpr("require"), [stringExpr(moduleName)]) + ); +} - if (typeof exportValue === "function") { - Globals.set(exportValue.prototype, () => - prop( - prop(call(id("require"), [string(moduleName)]), exportName), - "prototype" - ) - ); - } +function registerValue(value: any, expr: ts.Expression) { + Globals.set(value, () => expr); + if (typeof value === "function") { + Globals.set(value.prototype, () => propAccessExpr(expr, "prototype")); } + registerOwnProperties(value, expr); } -for (const valueName of globals) { - // these are references to functions or namespaces - - if (valueName in G) { - const value = G[valueName]; - - console.debug(`[${valueName}, id(${valueName})]`); - Globals.set(value, () => id(valueName)); - if (typeof value === "function") { - console.debug( - `[${valueName}.prototype, prop(id(${valueName}), prototype)]` - ); - Globals.set(value.prototype, () => prop(id(valueName), "prototype")); +function registerOwnProperties(value: any, expr: ts.Expression) { + // go through each of its properties + for (const propName of Object.getOwnPropertyNames(value)) { + if (value === process && propName === "env") { + // never serialize environment variables + continue; } - - // go through each of its properties - for (const [propName, propValue] of Object.entries(value)) { - if (value === process && propName === "env") { - continue; - } + const propDesc = Object.getOwnPropertyDescriptor(value, propName); + if (!propDesc?.writable || propDesc?.get || propDesc.set) { + continue; + } + const propValue = propDesc.value; + if ( + propValue && + !Globals.has(propValue) && + (typeof propValue === "function" || typeof propValue === "object") + ) { + Globals.set(propValue, () => propAccessExpr(expr, propName)); if (typeof propValue === "function") { - console.debug( - `[${valueName}.${propName}, prop(id(${valueName}), ${propName})]` - ); - Globals.set(propValue, () => prop(id(valueName), propName)); + registerOwnProperties(propValue, propAccessExpr(expr, propName)); } } } diff --git a/src/serialize-util.ts b/src/serialize-util.ts index 88ef3c1f..221aed0d 100644 --- a/src/serialize-util.ts +++ b/src/serialize-util.ts @@ -1,34 +1,34 @@ import ts from "typescript"; -export function undefined_expr() { +export function undefinedExpr() { return ts.factory.createIdentifier("undefined"); } -export function null_expr() { +export function nullExpr() { return ts.factory.createNull(); } -export function true_expr() { +export function trueExpr() { return ts.factory.createTrue(); } -export function false_expr() { +export function falseExpr() { return ts.factory.createFalse(); } -export function id(name: string) { +export function idExpr(name: string) { return ts.factory.createIdentifier(name); } -export function string(name: string) { +export function stringExpr(name: string) { return ts.factory.createStringLiteral(name); } -export function number(num: number) { +export function numberExpr(num: number) { return ts.factory.createNumericLiteral(num); } -export function object(obj: Record) { +export function objectExpr(obj: Record) { return ts.factory.createObjectLiteralExpression( Object.entries(obj).map(([name, val]) => ts.factory.createPropertyAssignment(name, val) @@ -38,15 +38,15 @@ export function object(obj: Record) { const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; -export function prop(expr: ts.Expression, name: string) { +export function propAccessExpr(expr: ts.Expression, name: string) { if (name.match(propNameRegex)) { return ts.factory.createPropertyAccessExpression(expr, name); } else { - return ts.factory.createElementAccessExpression(expr, string(name)); + return ts.factory.createElementAccessExpression(expr, stringExpr(name)); } } -export function assign(left: ts.Expression, right: ts.Expression) { +export function assignExpr(left: ts.Expression, right: ts.Expression) { return ts.factory.createBinaryExpression( left, ts.factory.createToken(ts.SyntaxKind.EqualsToken), @@ -54,25 +54,48 @@ export function assign(left: ts.Expression, right: ts.Expression) { ); } -export function call(expr: ts.Expression, args: ts.Expression[]) { +export function callExpr(expr: ts.Expression, args: ts.Expression[]) { return ts.factory.createCallExpression(expr, undefined, args); } -export function expr(expr: ts.Expression): ts.Statement { +export function exprStmt(expr: ts.Expression): ts.Statement { return ts.factory.createExpressionStatement(expr); } -export function defineProperty( +export function setPropertyStmt( + on: ts.Expression, + key: string, + value: ts.Expression +) { + return exprStmt(setPropertyExpr(on, key, value)); +} + +export function setPropertyExpr( + on: ts.Expression, + key: string, + value: ts.Expression +) { + return assignExpr(propAccessExpr(on, key), value); +} + +export function definePropertyExpr( on: ts.Expression, name: ts.Expression, value: ts.Expression ) { - return call(prop(id("Object"), "defineProperty"), [on, name, value]); + return callExpr(propAccessExpr(idExpr("Object"), "defineProperty"), [ + on, + name, + value, + ]); } -export function getOwnPropertyDescriptor( +export function getOwnPropertyDescriptorExpr( obj: ts.Expression, key: ts.Expression ) { - return call(prop(id("Object"), "getOwnPropertyDescriptor"), [obj, key]); + return callExpr( + propAccessExpr(idExpr("Object"), "getOwnPropertyDescriptor"), + [obj, key] + ); } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index f13eed4b..5a24ef66 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -2,20 +2,25 @@ exports[`all observers of a free variable share the same reference 1`] = ` "// +var v0; +var v2; var v3 = 0; -var v2 = function up() { +v2 = function up() { v3 += 2; }; var v4 = {}; +v4.constructor = v2; v2.prototype = v4; var v1 = v2; -var v6 = function down() { +var v6; +v6 = function down() { v3 -= 1; }; var v7 = {}; +v7.constructor = v6; v6.prototype = v7; var v5 = v6; -var v0 = () => { +v0 = () => { v1(); v5(); return v3; @@ -26,46 +31,57 @@ exports.handler = v0; exports[`all observers of a free variable share the same reference even when two instances 1`] = ` "// +var v0; var v2 = []; +var v3; +var v5; var v6 = 0; -var v5 = function up() { +v5 = function up() { v6 += 2; }; var v7 = {}; +v7.constructor = v5; v5.prototype = v7; var v4 = v5; -var v9 = function down() { +var v9; +v9 = function down() { v6 -= 1; }; var v10 = {}; +v10.constructor = v9; v9.prototype = v10; var v8 = v9; -var v3 = () => { +v3 = () => { v4(); v8(); return v6; }; +var v11; +var v13; var v14 = 0; -var v13 = function up2() { +v13 = function up2() { v14 += 2; }; var v15 = {}; +v15.constructor = v13; v13.prototype = v15; var v12 = v13; -var v17 = function down2() { +var v17; +v17 = function down2() { v14 -= 1; }; var v18 = {}; +v18.constructor = v17; v17.prototype = v18; var v16 = v17; -var v11 = () => { +v11 = () => { v12(); v16(); return v14; }; v2.push(v3, v11); var v1 = v2; -var v0 = () => { +v0 = () => { return v1.map((closure) => { return closure(); }); @@ -76,6 +92,7 @@ exports.handler = v0; exports[`avoid name collision with a closure's lexical scope 1`] = ` "// +var v0; var v6 = 0; var v5 = class v1 { foo() { @@ -86,7 +103,7 @@ var v4 = v5; var v3 = class v2 extends v4 { }; var v12 = v3; -var v0 = () => { +v0 = () => { const v32 = new v12(); return v32.foo(); }; @@ -96,10 +113,10 @@ exports.handler = v0; exports[`instantiating the AWS SDK 1`] = ` "// +var v0; var v2 = require(\\"aws-sdk\\"); -var v3 = v2; -var v1 = v3; -var v0 = () => { +var v1 = v2; +v0 = () => { const client = new v1.DynamoDB(); return client.config.endpoint; }; @@ -23778,10 +23795,11 @@ var require_dist_cjs47 = __commonJS({ }); // +var v0; var v2 = require_dist_cjs47(); var v3 = v2.DynamoDBClient; var v1 = v3; -var v0 = () => { +v0 = () => { const client = new v1({}); return client.config.serviceId; }; @@ -23789,5349 +23807,9 @@ exports.handler = v0; " `; -exports[`instantiating the AWS SDK without esbuild 1`] = ` -"const v2 = {}; -const v3 = {}; -v3.environment = \\"nodejs\\"; -const v4 = v3.engine; -v3.engine = v4; -const v5 = v3.userAgent; -v3.userAgent = v5; -const v6 = v3.uriEscape; -v3.uriEscape = v6; -const v7 = v3.uriEscapePath; -v3.uriEscapePath = v7; -const v8 = v3.urlParse; -v3.urlParse = v8; -const v9 = v3.urlFormat; -v3.urlFormat = v9; -const v10 = v3.queryStringParse; -v3.queryStringParse = v10; -const v11 = v3.queryParamsToString; -v3.queryParamsToString = v11; -const v12 = v3.readFileSync; -v3.readFileSync = v12; -const v13 = {}; -v13.encode = (function encode64(string) { - if (typeof string === \\"number\\") { - throw util.error(new Error(\\"Cannot base64 encode number \\" + string)); - } - if (string === null || typeof string === \\"undefined\\") { - return string; - } - var buf = util.buffer.toBuffer(string); - return buf.toString(\\"base64\\"); -}); -v13.decode = (function decode64(string) { - if (typeof string === \\"number\\") { - throw util.error(new Error(\\"Cannot base64 decode number \\" + string)); - } - if (string === null || typeof string === \\"undefined\\") { - return string; - } - return util.buffer.toBuffer(string, \\"base64\\"); -}); -v3.base64 = v13; -const v14 = {}; -v14.toBuffer = (function (data, encoding) { - return (typeof util.Buffer.from === \\"function\\" && util.Buffer.from !== Uint8Array.from) ? util.Buffer.from(data, encoding) : new util.Buffer(data, encoding); -}); -v14.alloc = (function (size, fill, encoding) { - if (typeof size !== \\"number\\") { - throw new Error(\\"size passed to alloc must be a number.\\"); - } - if (typeof util.Buffer.alloc === \\"function\\") { - return util.Buffer.alloc(size, fill, encoding); - } - else { - var buf = new util.Buffer(size); - if (fill !== undefined && typeof buf.fill === \\"function\\") { - buf.fill(fill, undefined, undefined, encoding); - } - return buf; - } -}); -v14.toStream = (function toStream(buffer) { - if (!util.Buffer.isBuffer(buffer)) - buffer = util.buffer.toBuffer(buffer); - var readable = new (util.stream.Readable)(); - var pos = 0; - readable._read = function (size) { - if (pos >= buffer.length) - return readable.push(null); - var end = pos + size; - if (end > buffer.length) - end = buffer.length; - readable.push(buffer.slice(pos, end)); - pos = end; - }; - return readable; -}); -v14.concat = (function (buffers) { - var length = 0, offset = 0, buffer = null, i; - for (i = 0; i < buffers.length; i++) { - length += buffers[i].length; - } - buffer = util.buffer.alloc(length); - for (i = 0; i < buffers.length; i++) { - buffers[i].copy(buffer, offset); - offset += buffers[i].length; - } - return buffer; -}); -v3.buffer = v14; -const v15 = {}; -v15.byteLength = (function byteLength(string) { - if (string === null || string === undefined) - return 0; - if (typeof string === \\"string\\") - string = util.buffer.toBuffer(string); - if (typeof string.byteLength === \\"number\\") { - return string.byteLength; - } - else if (typeof string.length === \\"number\\") { - return string.length; - } - else if (typeof string.size === \\"number\\") { - return string.size; - } - else if (typeof string.path === \\"string\\") { - return require(\\"fs\\").lstatSync(string.path).size; - } - else { - throw util.error(new Error(\\"Cannot determine length of \\" + string), { object: string }); - } -}); -v15.upperFirst = (function upperFirst(string) { - return string[0].toUpperCase() + string.substr(1); -}); -v15.lowerFirst = (function lowerFirst(string) { - return string[0].toLowerCase() + string.substr(1); -}); -v3.string = v15; -const v16 = {}; -v16.parse = (function string(ini) { - var currentSection, map = {}; - util.arrayEach(ini.split(/\\\\r?\\\\n/), function (line) { - line = line.split(/(^|\\\\s)[;#]/)[0].trim(); - var isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (currentSection === \\"__proto__\\" || currentSection.split(/\\\\s/)[1] === \\"__proto__\\") { - throw util.error(new Error(\\"Cannot load profile name '\\" + currentSection + \\"' from shared ini file.\\")); - } - } - else if (currentSection) { - var indexOfEqualsSign = line.indexOf(\\"=\\"); - var start = 0; - var end = line.length - 1; - var isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - var name = line.substring(0, indexOfEqualsSign).trim(); - var value = line.substring(indexOfEqualsSign + 1).trim(); - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - }); - return map; -}); -v3.ini = v16; -const v17 = {}; -v17.noop = (function () { }); -v17.callback = (function (err) { if (err) - throw err; }); -v17.makeAsync = (function makeAsync(fn, expectedArgs) { - if (expectedArgs && expectedArgs <= fn.length) { - return fn; - } - return function () { - var args = Array.prototype.slice.call(arguments, 0); - var callback = args.pop(); - var result = fn.apply(null, args); - callback(result); - }; -}); -v3.fn = v17; -const v18 = {}; -v18.getDate = (function getDate() { - if (!AWS) - AWS = require(\\"./core\\"); - if (AWS.config.systemClockOffset) { - return new Date(new Date().getTime() + AWS.config.systemClockOffset); - } - else { - return new Date(); - } -}); -v18.iso8601 = (function iso8601(date) { - if (date === undefined) { - date = util.date.getDate(); - } - return date.toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); -}); -v18.rfc822 = (function rfc822(date) { - if (date === undefined) { - date = util.date.getDate(); - } - return date.toUTCString(); -}); -v18.unixTimestamp = (function unixTimestamp(date) { - if (date === undefined) { - date = util.date.getDate(); - } - return date.getTime() / 1000; -}); -v18.from = (function format(date) { - if (typeof date === \\"number\\") { - return new Date(date * 1000); - } - else { - return new Date(date); - } -}); -v18.format = (function format(date, formatter) { - if (!formatter) - formatter = \\"iso8601\\"; - return util.date[formatter](util.date.from(date)); -}); -v18.parseTimestamp = (function parseTimestamp(value) { - if (typeof value === \\"number\\") { - return new Date(value * 1000); - } - else if (value.match(/^\\\\d+$/)) { - return new Date(value * 1000); - } - else if (value.match(/^\\\\d{4}/)) { - return new Date(value); - } - else if (value.match(/^\\\\w{3},/)) { - return new Date(value); - } - else { - throw util.error(new Error(\\"unhandled timestamp format: \\" + value), { code: \\"TimestampParserError\\" }); - } -}); -v3.date = v18; -const v19 = {}; -const v20 = []; -v20.push(0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117); -v19.crc32Table = v20; -v19.crc32 = (function crc32(data) { - var tbl = util.crypto.crc32Table; - var crc = 0 ^ -1; - if (typeof data === \\"string\\") { - data = util.buffer.toBuffer(data); - } - for (var i = 0; i < data.length; i++) { - var code = data.readUInt8(i); - crc = (crc >>> 8) ^ tbl[(crc ^ code) & 255]; - } - return (crc ^ -1) >>> 0; -}); -v19.hmac = (function hmac(key, string, digest, fn) { - if (!digest) - digest = \\"binary\\"; - if (digest === \\"buffer\\") { - digest = undefined; - } - if (!fn) - fn = \\"sha256\\"; - if (typeof string === \\"string\\") - string = util.buffer.toBuffer(string); - return util.crypto.lib.createHmac(fn, key).update(string).digest(digest); -}); -v19.md5 = (function md5(data, digest, callback) { - return util.crypto.hash(\\"md5\\", data, digest, callback); -}); -v19.sha256 = (function sha256(data, digest, callback) { - return util.crypto.hash(\\"sha256\\", data, digest, callback); -}); -v19.hash = (function (algorithm, data, digest, callback) { - var hash = util.crypto.createHash(algorithm); - if (!digest) { - digest = \\"binary\\"; - } - if (digest === \\"buffer\\") { - digest = undefined; - } - if (typeof data === \\"string\\") - data = util.buffer.toBuffer(data); - var sliceFn = util.arraySliceFn(data); - var isBuffer = util.Buffer.isBuffer(data); - if (util.isBrowser() && typeof ArrayBuffer !== \\"undefined\\" && data && data.buffer instanceof ArrayBuffer) - isBuffer = true; - if (callback && typeof data === \\"object\\" && typeof data.on === \\"function\\" && !isBuffer) { - data.on(\\"data\\", function (chunk) { hash.update(chunk); }); - data.on(\\"error\\", function (err) { callback(err); }); - data.on(\\"end\\", function () { callback(null, hash.digest(digest)); }); - } - else if (callback && sliceFn && !isBuffer && typeof FileReader !== \\"undefined\\") { - var index = 0, size = 1024 * 512; - var reader = new FileReader(); - reader.onerror = function () { - callback(new Error(\\"Failed to read data.\\")); - }; - reader.onload = function () { - var buf = new util.Buffer(new Uint8Array(reader.result)); - hash.update(buf); - index += buf.length; - reader._continueReading(); - }; - reader._continueReading = function () { - if (index >= data.size) { - callback(null, hash.digest(digest)); - return; - } - var back = index + size; - if (back > data.size) - back = data.size; - reader.readAsArrayBuffer(sliceFn.call(data, index, back)); - }; - reader._continueReading(); - } - else { - if (util.isBrowser() && typeof data === \\"object\\" && !isBuffer) { - data = new util.Buffer(new Uint8Array(data)); - } - var out = hash.update(data).digest(digest); - if (callback) - callback(null, out); - return out; - } -}); -v19.toHex = (function toHex(data) { - var out = []; - for (var i = 0; i < data.length; i++) { - out.push((\\"0\\" + data.charCodeAt(i).toString(16)).substr(-2, 2)); - } - return out.join(\\"\\"); -}); -v19.createHash = (function createHash(algorithm) { - return util.crypto.lib.createHash(algorithm); -}); -const v21 = Object.create(null); -v21.__defineGetter__ = (function __defineGetter__() { [native, code]; }); -v21.__defineSetter__ = (function __defineSetter__() { [native, code]; }); -v21.hasOwnProperty = (function hasOwnProperty() { [native, code]; }); -v21.__lookupGetter__ = (function __lookupGetter__() { [native, code]; }); -v21.__lookupSetter__ = (function __lookupSetter__() { [native, code]; }); -v21.isPrototypeOf = (function isPrototypeOf() { [native, code]; }); -v21.propertyIsEnumerable = (function propertyIsEnumerable() { [native, code]; }); -v21.toString = (function toString() { [native, code]; }); -v21.valueOf = (function valueOf() { [native, code]; }); -v21.toLocaleString = (function toLocaleString() { [native, code]; }); -const v22 = Object.create(v21); -v22.checkPrime = (function checkPrime(candidate, options = {}, callback) { - if (typeof candidate === \\"bigint\\") - candidate = unsignedBigIntToBuffer(candidate, \\"candidate\\"); - if (!isAnyArrayBuffer(candidate) && !isArrayBufferView(candidate)) { - throw new ERR_INVALID_ARG_TYPE(\\"candidate\\", [ - \\"ArrayBuffer\\", - \\"TypedArray\\", - \\"Buffer\\", - \\"DataView\\", - \\"bigint\\", - ], candidate); - } - if (typeof options === \\"function\\") { - callback = options; - options = {}; - } - validateCallback(callback); - validateObject(options, \\"options\\"); - const { checks = 0, } = options; - validateUint32(checks, \\"options.checks\\"); - const job = new CheckPrimeJob(kCryptoJobAsync, candidate, checks); - job.ondone = callback; - job.run(); -}); -v22.checkPrimeSync = (function checkPrimeSync(candidate, options = {}) { - if (typeof candidate === \\"bigint\\") - candidate = unsignedBigIntToBuffer(candidate, \\"candidate\\"); - if (!isAnyArrayBuffer(candidate) && !isArrayBufferView(candidate)) { - throw new ERR_INVALID_ARG_TYPE(\\"candidate\\", [ - \\"ArrayBuffer\\", - \\"TypedArray\\", - \\"Buffer\\", - \\"DataView\\", - \\"bigint\\", - ], candidate); - } - validateObject(options, \\"options\\"); - const { checks = 0, } = options; - validateUint32(checks, \\"options.checks\\"); - const job = new CheckPrimeJob(kCryptoJobSync, candidate, checks); - const { 0: err, 1: result } = job.run(); - if (err) - throw err; - return result; -}); -v22.createCipheriv = (function createCipheriv(cipher, key, iv, options) { - return new Cipheriv(cipher, key, iv, options); -}); -v22.createDecipheriv = (function createDecipheriv(cipher, key, iv, options) { - return new Decipheriv(cipher, key, iv, options); -}); -v22.createDiffieHellman = (function createDiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) { - return new DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding); -}); -v22.createDiffieHellmanGroup = (function createDiffieHellmanGroup(name) { - return new DiffieHellmanGroup(name); -}); -v22.createECDH = (function createECDH(curve) { - return new ECDH(curve); -}); -v22.createHash = (function createHash(algorithm, options) { - return new Hash(algorithm, options); -}); -v22.createHmac = (function createHmac(hmac, key, options) { - return new Hmac(hmac, key, options); -}); -v22.createPrivateKey = (function createPrivateKey(key) { - const { format, type, data, passphrase } = prepareAsymmetricKey(key, kCreatePrivate); - let handle; - if (format === \\"jwk\\") { - handle = data; - } - else { - handle = new KeyObjectHandle(); - handle.init(kKeyTypePrivate, data, format, type, passphrase); - } - return new PrivateKeyObject(handle); -}); -v22.createPublicKey = (function createPublicKey(key) { - const { format, type, data, passphrase } = prepareAsymmetricKey(key, kCreatePublic); - let handle; - if (format === \\"jwk\\") { - handle = data; - } - else { - handle = new KeyObjectHandle(); - handle.init(kKeyTypePublic, data, format, type, passphrase); - } - return new PublicKeyObject(handle); -}); -v22.createSecretKey = (function createSecretKey(key, encoding) { - key = prepareSecretKey(key, encoding, true); - if (key.byteLength === 0) - throw new ERR_OUT_OF_RANGE(\\"key.byteLength\\", \\"> 0\\", key.byteLength); - const handle = new KeyObjectHandle(); - handle.init(kKeyTypeSecret, key); - return new SecretKeyObject(handle); -}); -v22.createSign = (function createSign(algorithm, options) { - return new Sign(algorithm, options); -}); -v22.createVerify = (function createVerify(algorithm, options) { - return new Verify(algorithm, options); -}); -v22.diffieHellman = (function diffieHellman(options) { - validateObject(options, \\"options\\"); - const { privateKey, publicKey } = options; - if (!(privateKey instanceof KeyObject)) - throw new ERR_INVALID_ARG_VALUE(\\"options.privateKey\\", privateKey); - if (!(publicKey instanceof KeyObject)) - throw new ERR_INVALID_ARG_VALUE(\\"options.publicKey\\", publicKey); - if (privateKey.type !== \\"private\\") - throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(privateKey.type, \\"private\\"); - if (publicKey.type !== \\"public\\" && publicKey.type !== \\"private\\") { - throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(publicKey.type, \\"private or public\\"); - } - const privateType = privateKey.asymmetricKeyType; - const publicType = publicKey.asymmetricKeyType; - if (privateType !== publicType || !dhEnabledKeyTypes.has(privateType)) { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY(\\"key types for Diffie-Hellman\\", \`\${privateType} and \${publicType}\`); - } - return statelessDH(privateKey[kHandle], publicKey[kHandle]); -}); -v22.generatePrime = (function generatePrime(size, options, callback) { - validateUint32(size, \\"size\\", true); - if (typeof options === \\"function\\") { - callback = options; - options = {}; - } - validateCallback(callback); - const job = createRandomPrimeJob(kCryptoJobAsync, size, options); - job.ondone = (err, prime) => { - if (err) { - callback(err); - return; - } - callback(undefined, job.result(prime)); - }; - job.run(); -}); -v22.generatePrimeSync = (function generatePrimeSync(size, options = {}) { - validateUint32(size, \\"size\\", true); - const job = createRandomPrimeJob(kCryptoJobSync, size, options); - const { 0: err, 1: prime } = job.run(); - if (err) - throw err; - return job.result(prime); -}); -v22.getCiphers = (() => { - if (result === undefined) - result = fn(); - return ArrayPrototypeSlice(result); -}); -v22.getCipherInfo = (function getCipherInfo(nameOrNid, options) { - if (typeof nameOrNid !== \\"string\\" && typeof nameOrNid !== \\"number\\") { - throw new ERR_INVALID_ARG_TYPE(\\"nameOrNid\\", [\\"string\\", \\"number\\"], nameOrNid); - } - if (typeof nameOrNid === \\"number\\") - validateInt32(nameOrNid, \\"nameOrNid\\"); - let keyLength, ivLength; - if (options !== undefined) { - validateObject(options, \\"options\\"); - ({ keyLength, ivLength } = options); - if (keyLength !== undefined) - validateInt32(keyLength, \\"options.keyLength\\"); - if (ivLength !== undefined) - validateInt32(ivLength, \\"options.ivLength\\"); - } - const ret = _getCipherInfo({}, nameOrNid, keyLength, ivLength); - if (ret !== undefined) { - if (ret.name) - ret.name = StringPrototypeToLowerCase(ret.name); - if (ret.type) - ret.type = StringPrototypeToLowerCase(ret.type); - } - return ret; -}); -v22.getCurves = (() => { - if (result === undefined) - result = fn(); - return ArrayPrototypeSlice(result); -}); -v22.getDiffieHellman = (function createDiffieHellmanGroup(name) { - return new DiffieHellmanGroup(name); -}); -v22.getHashes = (() => { - if (result === undefined) - result = fn(); - return ArrayPrototypeSlice(result); -}); -v22.hkdf = (function hkdf(hash, key, salt, info, length, callback) { - ({ - hash, - key, - salt, - info, - length - } = validateParameters(hash, key, salt, info, length)); - validateCallback(callback); - const job = new HKDFJob(kCryptoJobAsync, hash, key, salt, info, length); - job.ondone = (error, bits) => { - if (error) - return FunctionPrototypeCall(callback, job, error); - FunctionPrototypeCall(callback, job, null, bits); - }; - job.run(); -}); -v22.hkdfSync = (function hkdfSync(hash, key, salt, info, length) { - ({ - hash, - key, - salt, - info, - length - } = validateParameters(hash, key, salt, info, length)); - const job = new HKDFJob(kCryptoJobSync, hash, key, salt, info, length); - const { 0: err, 1: bits } = job.run(); - if (err !== undefined) - throw err; - return bits; -}); -v22.pbkdf2 = (function pbkdf2(password, salt, iterations, keylen, digest, callback) { - if (typeof digest === \\"function\\") { - callback = digest; - digest = undefined; - } - ({ password, salt, iterations, keylen, digest } = check(password, salt, iterations, keylen, digest)); - validateCallback(callback); - const job = new PBKDF2Job(kCryptoJobAsync, password, salt, iterations, keylen, digest); - const encoding = getDefaultEncoding(); - job.ondone = (err, result) => { - if (err !== undefined) - return FunctionPrototypeCall(callback, job, err); - const buf = Buffer.from(result); - if (encoding === \\"buffer\\") - return FunctionPrototypeCall(callback, job, null, buf); - FunctionPrototypeCall(callback, job, null, buf.toString(encoding)); - }; - job.run(); -}); -v22.pbkdf2Sync = (function pbkdf2Sync(password, salt, iterations, keylen, digest) { - ({ password, salt, iterations, keylen, digest } = check(password, salt, iterations, keylen, digest)); - const job = new PBKDF2Job(kCryptoJobSync, password, salt, iterations, keylen, digest); - const { 0: err, 1: result } = job.run(); - if (err !== undefined) - throw err; - const buf = Buffer.from(result); - const encoding = getDefaultEncoding(); - return encoding === \\"buffer\\" ? buf : buf.toString(encoding); -}); -v22.generateKeyPair = (function generateKeyPair(type, options, callback) { - if (typeof options === \\"function\\") { - callback = options; - options = undefined; - } - validateCallback(callback); - const job = createJob(kCryptoJobAsync, type, options); - job.ondone = (error, result) => { - if (error) - return FunctionPrototypeCall(callback, job, error); - let { 0: pubkey, 1: privkey } = result; - pubkey = wrapKey(pubkey, PublicKeyObject); - privkey = wrapKey(privkey, PrivateKeyObject); - FunctionPrototypeCall(callback, job, null, pubkey, privkey); - }; - job.run(); -}); -v22.generateKeyPairSync = (function generateKeyPairSync(type, options) { - return handleError(createJob(kCryptoJobSync, type, options).run()); -}); -v22.generateKey = (function generateKey(type, options, callback) { - if (typeof options === \\"function\\") { - callback = options; - options = undefined; - } - validateCallback(callback); - const job = generateKeyJob(kCryptoJobAsync, type, options); - job.ondone = (error, key) => { - if (error) - return FunctionPrototypeCall(callback, job, error); - FunctionPrototypeCall(callback, job, null, wrapKey(key, SecretKeyObject)); - }; - handleGenerateKeyError(job.run()); -}); -v22.generateKeySync = (function generateKeySync(type, options) { - return handleGenerateKeyError(generateKeyJob(kCryptoJobSync, type, options).run()); -}); -v22.privateDecrypt = ((options, buffer) => { - const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); - const padding = options.padding || defaultPadding; - const { oaepHash, encoding } = options; - let { oaepLabel } = options; - if (oaepHash !== undefined) - validateString(oaepHash, \\"key.oaepHash\\"); - if (oaepLabel !== undefined) - oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); - buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); - return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); -}); -v22.privateEncrypt = ((options, buffer) => { - const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); - const padding = options.padding || defaultPadding; - const { oaepHash, encoding } = options; - let { oaepLabel } = options; - if (oaepHash !== undefined) - validateString(oaepHash, \\"key.oaepHash\\"); - if (oaepLabel !== undefined) - oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); - buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); - return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); -}); -v22.publicDecrypt = ((options, buffer) => { - const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); - const padding = options.padding || defaultPadding; - const { oaepHash, encoding } = options; - let { oaepLabel } = options; - if (oaepHash !== undefined) - validateString(oaepHash, \\"key.oaepHash\\"); - if (oaepLabel !== undefined) - oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); - buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); - return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); -}); -v22.publicEncrypt = ((options, buffer) => { - const { format, type, data, passphrase } = keyType === \\"private\\" ? preparePrivateKey(options) : preparePublicOrPrivateKey(options); - const padding = options.padding || defaultPadding; - const { oaepHash, encoding } = options; - let { oaepLabel } = options; - if (oaepHash !== undefined) - validateString(oaepHash, \\"key.oaepHash\\"); - if (oaepLabel !== undefined) - oaepLabel = getArrayBufferOrView(oaepLabel, \\"key.oaepLabel\\", encoding); - buffer = getArrayBufferOrView(buffer, \\"buffer\\", encoding); - return method(data, format, type, passphrase, buffer, padding, oaepHash, oaepLabel); -}); -v22.randomBytes = (function randomBytes(size, callback) { - size = assertSize(size, 1, 0, Infinity); - if (callback !== undefined) { - validateCallback(callback); - } - const buf = new FastBuffer(size); - if (callback === undefined) { - randomFillSync(buf.buffer, 0, size); - return buf; - } - randomFill(buf.buffer, 0, size, function (error) { - if (error) - return FunctionPrototypeCall(callback, this, error); - FunctionPrototypeCall(callback, this, null, buf); - }); -}); -v22.randomFill = (function randomFill(buf, offset, size, callback) { - if (!isAnyArrayBuffer(buf) && !isArrayBufferView(buf)) { - throw new ERR_INVALID_ARG_TYPE(\\"buf\\", [\\"ArrayBuffer\\", \\"ArrayBufferView\\"], buf); - } - const elementSize = buf.BYTES_PER_ELEMENT || 1; - if (typeof offset === \\"function\\") { - callback = offset; - offset = 0; - size = buf.length; - } - else if (typeof size === \\"function\\") { - callback = size; - size = buf.length - offset; - } - else { - validateCallback(callback); - } - offset = assertOffset(offset, elementSize, buf.byteLength); - if (size === undefined) { - size = buf.byteLength - offset; - } - else { - size = assertSize(size, elementSize, offset, buf.byteLength); - } - if (size === 0) { - callback(null, buf); - return; - } - const job = new RandomBytesJob(kCryptoJobAsync, buf, offset, size); - job.ondone = FunctionPrototypeBind(onJobDone, job, buf, callback); - job.run(); -}); -v22.randomFillSync = (function randomFillSync(buf, offset = 0, size) { - if (!isAnyArrayBuffer(buf) && !isArrayBufferView(buf)) { - throw new ERR_INVALID_ARG_TYPE(\\"buf\\", [\\"ArrayBuffer\\", \\"ArrayBufferView\\"], buf); - } - const elementSize = buf.BYTES_PER_ELEMENT || 1; - offset = assertOffset(offset, elementSize, buf.byteLength); - if (size === undefined) { - size = buf.byteLength - offset; - } - else { - size = assertSize(size, elementSize, offset, buf.byteLength); - } - if (size === 0) - return buf; - const job = new RandomBytesJob(kCryptoJobSync, buf, offset, size); - const err = job.run()[0]; - if (err) - throw err; - return buf; -}); -v22.randomInt = (function randomInt(min, max, callback) { - const minNotSpecified = typeof max === \\"undefined\\" || typeof max === \\"function\\"; - if (minNotSpecified) { - callback = max; - max = min; - min = 0; - } - const isSync = typeof callback === \\"undefined\\"; - if (!isSync) { - validateCallback(callback); - } - if (!NumberIsSafeInteger(min)) { - throw new ERR_INVALID_ARG_TYPE(\\"min\\", \\"a safe integer\\", min); - } - if (!NumberIsSafeInteger(max)) { - throw new ERR_INVALID_ARG_TYPE(\\"max\\", \\"a safe integer\\", max); - } - if (max <= min) { - throw new ERR_OUT_OF_RANGE(\\"max\\", \`greater than the value of \\"min\\" (\${min})\`, max); - } - const range = max - min; - if (!(range <= RAND_MAX)) { - throw new ERR_OUT_OF_RANGE(\`max\${minNotSpecified ? \\"\\" : \\" - min\\"}\`, \`<= \${RAND_MAX}\`, range); - } - const randLimit = RAND_MAX - (RAND_MAX % range); - while (isSync || (randomCacheOffset < randomCache.length)) { - if (randomCacheOffset === randomCache.length) { - randomFillSync(randomCache); - randomCacheOffset = 0; - } - const x = randomCache.readUIntBE(randomCacheOffset, 6); - randomCacheOffset += 6; - if (x < randLimit) { - const n = (x % range) + min; - if (isSync) - return n; - process.nextTick(callback, undefined, n); - return; - } - } - ArrayPrototypePush(asyncCachePendingTasks, { min, max, callback }); - asyncRefillRandomIntCache(); -}); -v22.randomUUID = (function randomUUID(options) { - if (options !== undefined) - validateObject(options, \\"options\\"); - const { disableEntropyCache = false, } = options || {}; - validateBoolean(disableEntropyCache, \\"options.disableEntropyCache\\"); - return disableEntropyCache ? getUnbufferedUUID() : getBufferedUUID(); -}); -v22.scrypt = (function scrypt(password, salt, keylen, options, callback = defaults) { - if (callback === defaults) { - callback = options; - options = defaults; - } - options = check(password, salt, keylen, options); - const { N, r, p, maxmem } = options; - ({ password, salt, keylen } = options); - validateCallback(callback); - const job = new ScryptJob(kCryptoJobAsync, password, salt, N, r, p, maxmem, keylen); - const encoding = getDefaultEncoding(); - job.ondone = (error, result) => { - if (error !== undefined) - return FunctionPrototypeCall(callback, job, error); - const buf = Buffer.from(result); - if (encoding === \\"buffer\\") - return FunctionPrototypeCall(callback, job, null, buf); - FunctionPrototypeCall(callback, job, null, buf.toString(encoding)); - }; - job.run(); -}); -v22.scryptSync = (function scryptSync(password, salt, keylen, options = defaults) { - options = check(password, salt, keylen, options); - const { N, r, p, maxmem } = options; - ({ password, salt, keylen } = options); - const job = new ScryptJob(kCryptoJobSync, password, salt, N, r, p, maxmem, keylen); - const { 0: err, 1: result } = job.run(); - if (err !== undefined) - throw err; - const buf = Buffer.from(result); - const encoding = getDefaultEncoding(); - return encoding === \\"buffer\\" ? buf : buf.toString(encoding); -}); -v22.sign = (function signOneShot(algorithm, data, key, callback) { - if (algorithm != null) - validateString(algorithm, \\"algorithm\\"); - if (callback !== undefined) - validateCallback(callback); - data = getArrayBufferOrView(data, \\"data\\"); - if (!key) - throw new ERR_CRYPTO_SIGN_KEY_REQUIRED(); - const rsaPadding = getPadding(key); - const pssSaltLength = getSaltLength(key); - const dsaSigEnc = getDSASignatureEncoding(key); - const { data: keyData, format: keyFormat, type: keyType, passphrase: keyPassphrase } = preparePrivateKey(key); - const job = new SignJob(callback ? kCryptoJobAsync : kCryptoJobSync, kSignJobModeSign, keyData, keyFormat, keyType, keyPassphrase, data, algorithm, pssSaltLength, rsaPadding, dsaSigEnc); - if (!callback) { - const { 0: err, 1: signature } = job.run(); - if (err !== undefined) - throw err; - return Buffer.from(signature); - } - job.ondone = (error, signature) => { - if (error) - return FunctionPrototypeCall(callback, job, error); - FunctionPrototypeCall(callback, job, null, Buffer.from(signature)); - }; - job.run(); -}); -v22.setEngine = (function setEngine(id, flags) { - validateString(id, \\"id\\"); - if (flags) - validateNumber(flags, \\"flags\\"); - flags = flags >>> 0; - if (flags === 0) - flags = ENGINE_METHOD_ALL; - if (!_setEngine(id, flags)) - throw new ERR_CRYPTO_ENGINE_UNKNOWN(id); -}); -v22.timingSafeEqual = (function timingSafeEqual() { [native, code]; }); -v22.getFips = (function getFipsCrypto() { [native, code]; }); -v22.setFips = (function setFipsCrypto() { [native, code]; }); -v22.verify = (function verifyOneShot(algorithm, data, key, signature, callback) { - if (algorithm != null) - validateString(algorithm, \\"algorithm\\"); - if (callback !== undefined) - validateCallback(callback); - data = getArrayBufferOrView(data, \\"data\\"); - if (!isArrayBufferView(data)) { - throw new ERR_INVALID_ARG_TYPE(\\"data\\", [\\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], data); - } - const rsaPadding = getPadding(key); - const pssSaltLength = getSaltLength(key); - const dsaSigEnc = getDSASignatureEncoding(key); - if (!isArrayBufferView(signature)) { - throw new ERR_INVALID_ARG_TYPE(\\"signature\\", [\\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], signature); - } - const { data: keyData, format: keyFormat, type: keyType, passphrase: keyPassphrase } = preparePublicOrPrivateKey(key); - const job = new SignJob(callback ? kCryptoJobAsync : kCryptoJobSync, kSignJobModeVerify, keyData, keyFormat, keyType, keyPassphrase, data, algorithm, pssSaltLength, rsaPadding, dsaSigEnc, signature); - if (!callback) { - const { 0: err, 1: result } = job.run(); - if (err !== undefined) - throw err; - return result; - } - job.ondone = (error, result) => { - if (error) - return FunctionPrototypeCall(callback, job, error); - FunctionPrototypeCall(callback, job, null, result); - }; - job.run(); -}); -v22.Certificate = (function Certificate() { - if (!(this instanceof Certificate)) - return new Certificate(); -}); -v22.Cipher = (function Cipher(cipher, password, options) { - if (!(this instanceof Cipher)) - return new Cipher(cipher, password, options); - ReflectApply(createCipher, this, [cipher, password, options, true]); -}); -v22.Cipheriv = (function Cipheriv(cipher, key, iv, options) { - if (!(this instanceof Cipheriv)) - return new Cipheriv(cipher, key, iv, options); - ReflectApply(createCipherWithIV, this, [cipher, key, options, true, iv]); -}); -v22.Decipher = (function Decipher(cipher, password, options) { - if (!(this instanceof Decipher)) - return new Decipher(cipher, password, options); - ReflectApply(createCipher, this, [cipher, password, options, false]); -}); -v22.Decipheriv = (function Decipheriv(cipher, key, iv, options) { - if (!(this instanceof Decipheriv)) - return new Decipheriv(cipher, key, iv, options); - ReflectApply(createCipherWithIV, this, [cipher, key, options, false, iv]); -}); -v22.DiffieHellman = (function DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding) { - if (!(this instanceof DiffieHellman)) - return new DiffieHellman(sizeOrKey, keyEncoding, generator, genEncoding); - if (typeof sizeOrKey !== \\"number\\" && typeof sizeOrKey !== \\"string\\" && !isArrayBufferView(sizeOrKey) && !isAnyArrayBuffer(sizeOrKey)) { - throw new ERR_INVALID_ARG_TYPE(\\"sizeOrKey\\", [\\"number\\", \\"string\\", \\"ArrayBuffer\\", \\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], sizeOrKey); - } - if (typeof sizeOrKey === \\"number\\") - validateInt32(sizeOrKey, \\"sizeOrKey\\"); - if (keyEncoding && !Buffer.isEncoding(keyEncoding) && keyEncoding !== \\"buffer\\") { - genEncoding = generator; - generator = keyEncoding; - keyEncoding = false; - } - const encoding = getDefaultEncoding(); - keyEncoding = keyEncoding || encoding; - genEncoding = genEncoding || encoding; - if (typeof sizeOrKey !== \\"number\\") - sizeOrKey = toBuf(sizeOrKey, keyEncoding); - if (!generator) { - generator = DH_GENERATOR; - } - else if (typeof generator === \\"number\\") { - validateInt32(generator, \\"generator\\"); - } - else if (typeof generator === \\"string\\") { - generator = toBuf(generator, genEncoding); - } - else if (!isArrayBufferView(generator) && !isAnyArrayBuffer(generator)) { - throw new ERR_INVALID_ARG_TYPE(\\"generator\\", [\\"number\\", \\"string\\", \\"ArrayBuffer\\", \\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], generator); - } - this[kHandle] = new _DiffieHellman(sizeOrKey, generator); - ObjectDefineProperty(this, \\"verifyError\\", { - enumerable: true, - value: this[kHandle].verifyError, - writable: false - }); -}); -v22.DiffieHellmanGroup = (function DiffieHellmanGroup(name) { - if (!(this instanceof DiffieHellmanGroup)) - return new DiffieHellmanGroup(name); - this[kHandle] = new _DiffieHellmanGroup(name); - ObjectDefineProperty(this, \\"verifyError\\", { - enumerable: true, - value: this[kHandle].verifyError, - writable: false - }); -}); -v22.ECDH = (function ECDH(curve) { - if (!(this instanceof ECDH)) - return new ECDH(curve); - validateString(curve, \\"curve\\"); - this[kHandle] = new _ECDH(curve); -}); -v22.Hash = (function Hash(algorithm, options) { - if (!(this instanceof Hash)) - return new Hash(algorithm, options); - if (!(algorithm instanceof _Hash)) - validateString(algorithm, \\"algorithm\\"); - const xofLen = typeof options === \\"object\\" && options !== null ? options.outputLength : undefined; - if (xofLen !== undefined) - validateUint32(xofLen, \\"options.outputLength\\"); - this[kHandle] = new _Hash(algorithm, xofLen); - this[kState] = { - [kFinalized]: false - }; - ReflectApply(LazyTransform, this, [options]); -}); -v22.Hmac = (function Hmac(hmac, key, options) { - if (!(this instanceof Hmac)) - return new Hmac(hmac, key, options); - validateString(hmac, \\"hmac\\"); - const encoding = getStringOption(options, \\"encoding\\"); - key = prepareSecretKey(key, encoding); - this[kHandle] = new _Hmac(); - this[kHandle].init(hmac, key); - this[kState] = { - [kFinalized]: false - }; - ReflectApply(LazyTransform, this, [options]); -}); -v22.KeyObject = (class KeyObject extends NativeKeyObject { - constructor(type, handle) { - if (type !== \\"secret\\" && type !== \\"public\\" && type !== \\"private\\") - throw new ERR_INVALID_ARG_VALUE(\\"type\\", type); - if (typeof handle !== \\"object\\" || !(handle instanceof KeyObjectHandle)) - throw new ERR_INVALID_ARG_TYPE(\\"handle\\", \\"object\\", handle); - super(handle); - this[kKeyType] = type; - ObjectDefineProperty(this, kHandle, { - value: handle, - enumerable: false, - configurable: false, - writable: false - }); - } - get type() { - return this[kKeyType]; - } - static from(key) { - if (!isCryptoKey(key)) - throw new ERR_INVALID_ARG_TYPE(\\"key\\", \\"CryptoKey\\", key); - return key[kKeyObject]; - } -}); -v22.Sign = (function Sign(algorithm, options) { - if (!(this instanceof Sign)) - return new Sign(algorithm, options); - validateString(algorithm, \\"algorithm\\"); - this[kHandle] = new _Sign(); - this[kHandle].init(algorithm); - ReflectApply(Writable, this, [options]); -}); -v22.Verify = (function Verify(algorithm, options) { - if (!(this instanceof Verify)) - return new Verify(algorithm, options); - validateString(algorithm, \\"algorithm\\"); - this[kHandle] = new _Verify(); - this[kHandle].init(algorithm); - ReflectApply(Writable, this, [options]); -}); -v22.X509Certificate = (class X509Certificate extends JSTransferable { - [kInternalState] = new SafeMap(); - constructor(buffer) { - if (typeof buffer === \\"string\\") - buffer = Buffer.from(buffer); - if (!isArrayBufferView(buffer)) { - throw new ERR_INVALID_ARG_TYPE(\\"buffer\\", [\\"string\\", \\"Buffer\\", \\"TypedArray\\", \\"DataView\\"], buffer); - } - super(); - this[kHandle] = parseX509(buffer); - } - [kInspect](depth, options) { - if (depth < 0) - return this; - const opts = { - ...options, - depth: options.depth == null ? null : options.depth - 1 - }; - return \`X509Certificate \${inspect({ - subject: this.subject, - subjectAltName: this.subjectAltName, - issuer: this.issuer, - infoAccess: this.infoAccess, - validFrom: this.validFrom, - validTo: this.validTo, - fingerprint: this.fingerprint, - fingerprint256: this.fingerprint256, - fingerprint512: this.fingerprint512, - keyUsage: this.keyUsage, - serialNumber: this.serialNumber - }, opts)}\`; - } - [kClone]() { - const handle = this[kHandle]; - return { - data: { handle }, - deserializeInfo: \\"internal/crypto/x509:InternalX509Certificate\\" - }; - } - [kDeserialize]({ handle }) { - this[kHandle] = handle; - } - get subject() { - let value = this[kInternalState].get(\\"subject\\"); - if (value === undefined) { - value = this[kHandle].subject(); - this[kInternalState].set(\\"subject\\", value); - } - return value; - } - get subjectAltName() { - let value = this[kInternalState].get(\\"subjectAltName\\"); - if (value === undefined) { - value = this[kHandle].subjectAltName(); - this[kInternalState].set(\\"subjectAltName\\", value); - } - return value; - } - get issuer() { - let value = this[kInternalState].get(\\"issuer\\"); - if (value === undefined) { - value = this[kHandle].issuer(); - this[kInternalState].set(\\"issuer\\", value); - } - return value; - } - get issuerCertificate() { - let value = this[kInternalState].get(\\"issuerCertificate\\"); - if (value === undefined) { - const cert = this[kHandle].getIssuerCert(); - if (cert) - value = new InternalX509Certificate(this[kHandle].getIssuerCert()); - this[kInternalState].set(\\"issuerCertificate\\", value); - } - return value; - } - get infoAccess() { - let value = this[kInternalState].get(\\"infoAccess\\"); - if (value === undefined) { - value = this[kHandle].infoAccess(); - this[kInternalState].set(\\"infoAccess\\", value); - } - return value; - } - get validFrom() { - let value = this[kInternalState].get(\\"validFrom\\"); - if (value === undefined) { - value = this[kHandle].validFrom(); - this[kInternalState].set(\\"validFrom\\", value); - } - return value; - } - get validTo() { - let value = this[kInternalState].get(\\"validTo\\"); - if (value === undefined) { - value = this[kHandle].validTo(); - this[kInternalState].set(\\"validTo\\", value); - } - return value; - } - get fingerprint() { - let value = this[kInternalState].get(\\"fingerprint\\"); - if (value === undefined) { - value = this[kHandle].fingerprint(); - this[kInternalState].set(\\"fingerprint\\", value); - } - return value; - } - get fingerprint256() { - let value = this[kInternalState].get(\\"fingerprint256\\"); - if (value === undefined) { - value = this[kHandle].fingerprint256(); - this[kInternalState].set(\\"fingerprint256\\", value); - } - return value; - } - get fingerprint512() { - let value = this[kInternalState].get(\\"fingerprint512\\"); - if (value === undefined) { - value = this[kHandle].fingerprint512(); - this[kInternalState].set(\\"fingerprint512\\", value); - } - return value; - } - get keyUsage() { - let value = this[kInternalState].get(\\"keyUsage\\"); - if (value === undefined) { - value = this[kHandle].keyUsage(); - this[kInternalState].set(\\"keyUsage\\", value); - } - return value; - } - get serialNumber() { - let value = this[kInternalState].get(\\"serialNumber\\"); - if (value === undefined) { - value = this[kHandle].serialNumber(); - this[kInternalState].set(\\"serialNumber\\", value); - } - return value; - } - get raw() { - let value = this[kInternalState].get(\\"raw\\"); - if (value === undefined) { - value = this[kHandle].raw(); - this[kInternalState].set(\\"raw\\", value); - } - return value; - } - get publicKey() { - let value = this[kInternalState].get(\\"publicKey\\"); - if (value === undefined) { - value = new PublicKeyObject(this[kHandle].publicKey()); - this[kInternalState].set(\\"publicKey\\", value); - } - return value; - } - toString() { - let value = this[kInternalState].get(\\"pem\\"); - if (value === undefined) { - value = this[kHandle].pem(); - this[kInternalState].set(\\"pem\\", value); - } - return value; - } - toJSON() { return this.toString(); } - get ca() { - let value = this[kInternalState].get(\\"ca\\"); - if (value === undefined) { - value = this[kHandle].checkCA(); - this[kInternalState].set(\\"ca\\", value); - } - return value; - } - checkHost(name, options) { - validateString(name, \\"name\\"); - return this[kHandle].checkHost(name, getFlags(options)); - } - checkEmail(email, options) { - validateString(email, \\"email\\"); - return this[kHandle].checkEmail(email, getFlags(options)); - } - checkIP(ip, options) { - validateString(ip, \\"ip\\"); - return this[kHandle].checkIP(ip, getFlags(options)); - } - checkIssued(otherCert) { - if (!isX509Certificate(otherCert)) - throw new ERR_INVALID_ARG_TYPE(\\"otherCert\\", \\"X509Certificate\\", otherCert); - return this[kHandle].checkIssued(otherCert[kHandle]); - } - checkPrivateKey(pkey) { - if (!isKeyObject(pkey)) - throw new ERR_INVALID_ARG_TYPE(\\"pkey\\", \\"KeyObject\\", pkey); - if (pkey.type !== \\"private\\") - throw new ERR_INVALID_ARG_VALUE(\\"pkey\\", pkey); - return this[kHandle].checkPrivateKey(pkey[kHandle]); - } - verify(pkey) { - if (!isKeyObject(pkey)) - throw new ERR_INVALID_ARG_TYPE(\\"pkey\\", \\"KeyObject\\", pkey); - if (pkey.type !== \\"public\\") - throw new ERR_INVALID_ARG_VALUE(\\"pkey\\", pkey); - return this[kHandle].verify(pkey[kHandle]); - } - toLegacyObject() { - return this[kHandle].toLegacy(); - } -}); -v22.secureHeapUsed = (function secureHeapUsed() { - const val = _secureHeapUsed(); - if (val === undefined) - return { total: 0, used: 0, utilization: 0, min: 0 }; - const used = Number(_secureHeapUsed()); - const total = Number(getOptionValue(\\"--secure-heap\\")); - const min = Number(getOptionValue(\\"--secure-heap-min\\")); - const utilization = used / total; - return { total, used, utilization, min }; -}); -v22.prng = (function randomBytes(size, callback) { - size = assertSize(size, 1, 0, Infinity); - if (callback !== undefined) { - validateCallback(callback); - } - const buf = new FastBuffer(size); - if (callback === undefined) { - randomFillSync(buf.buffer, 0, size); - return buf; - } - randomFill(buf.buffer, 0, size, function (error) { - if (error) - return FunctionPrototypeCall(callback, this, error); - FunctionPrototypeCall(callback, this, null, buf); - }); -}); -v22.pseudoRandomBytes = (function randomBytes(size, callback) { - size = assertSize(size, 1, 0, Infinity); - if (callback !== undefined) { - validateCallback(callback); - } - const buf = new FastBuffer(size); - if (callback === undefined) { - randomFillSync(buf.buffer, 0, size); - return buf; - } - randomFill(buf.buffer, 0, size, function (error) { - if (error) - return FunctionPrototypeCall(callback, this, error); - FunctionPrototypeCall(callback, this, null, buf); - }); -}); -v22.rng = (function randomBytes(size, callback) { - size = assertSize(size, 1, 0, Infinity); - if (callback !== undefined) { - validateCallback(callback); - } - const buf = new FastBuffer(size); - if (callback === undefined) { - randomFillSync(buf.buffer, 0, size); - return buf; - } - randomFill(buf.buffer, 0, size, function (error) { - if (error) - return FunctionPrototypeCall(callback, this, error); - FunctionPrototypeCall(callback, this, null, buf); - }); -}); -v19.lib = v22; -v3.crypto = v19; -const v23 = {}; -v3.abort = v23; -const v24 = v3.each; -v3.each = v24; -const v25 = v3.arrayEach; -v3.arrayEach = v25; -const v26 = v3.update; -v3.update = v26; -const v27 = v3.merge; -v3.merge = v27; -const v28 = v3.copy; -v3.copy = v28; -const v29 = v3.isEmpty; -v3.isEmpty = v29; -const v30 = v3.arraySliceFn; -v3.arraySliceFn = v30; -const v31 = v3.isType; -v3.isType = v31; -const v32 = v3.typeName; -v3.typeName = v32; -const v33 = v3.error; -v3.error = v33; -const v34 = v3.inherit; -v3.inherit = v34; -const v35 = v3.mixin; -v3.mixin = v35; -const v36 = v3.hideProperties; -v3.hideProperties = v36; -const v37 = v3.property; -v3.property = v37; -const v38 = v3.memoizedProperty; -v3.memoizedProperty = v38; -const v39 = v3.hoistPayloadMember; -v3.hoistPayloadMember = v39; -const v40 = v3.computeSha256; -v3.computeSha256 = v40; -const v41 = v3.isClockSkewed; -v3.isClockSkewed = v41; -const v42 = v3.applyClockOffset; -v3.applyClockOffset = v42; -const v43 = v3.extractRequestId; -v3.extractRequestId = v43; -const v44 = v3.addPromises; -v3.addPromises = v44; -const v45 = v3.promisifyMethod; -v3.promisifyMethod = v45; -const v46 = v3.isDualstackAvailable; -v3.isDualstackAvailable = v46; -const v47 = v3.calculateRetryDelay; -v3.calculateRetryDelay = v47; -const v48 = v3.handleRequestWithRetries; -v3.handleRequestWithRetries = v48; -const v49 = {}; -v49.v4 = (function uuidV4() { - return require(\\"uuid\\").v4(); -}); -v3.uuid = v49; -const v50 = v3.convertPayloadToString; -v3.convertPayloadToString = v50; -const v51 = v3.defer; -v3.defer = v51; -const v52 = v3.getRequestPayloadShape; -v3.getRequestPayloadShape = v52; -const v53 = v3.getProfilesFromSharedConfig; -v3.getProfilesFromSharedConfig = v53; -const v54 = {}; -v54.validate = (function validateARN(str) { - return str && str.indexOf(\\"arn:\\") === 0 && str.split(\\":\\").length >= 6; -}); -v54.parse = (function parseARN(arn) { - var matched = arn.split(\\":\\"); - return { - partition: matched[1], - service: matched[2], - region: matched[3], - accountId: matched[4], - resource: matched.slice(5).join(\\":\\") - }; -}); -v54.build = (function buildARN(arnObject) { - if (arnObject.service === undefined || arnObject.region === undefined || arnObject.accountId === undefined || arnObject.resource === undefined) - throw util.error(new Error(\\"Input ARN object is invalid\\")); - return \\"arn:\\" + (arnObject.partition || \\"aws\\") + \\":\\" + arnObject.service + \\":\\" + arnObject.region + \\":\\" + arnObject.accountId + \\":\\" + arnObject.resource; -}); -v3.ARN = v54; -v3.defaultProfile = \\"default\\"; -v3.configOptInEnv = \\"AWS_SDK_LOAD_CONFIG\\"; -v3.sharedCredentialsFileEnv = \\"AWS_SHARED_CREDENTIALS_FILE\\"; -v3.sharedConfigFileEnv = \\"AWS_CONFIG_FILE\\"; -v3.imdsDisabledEnv = \\"AWS_EC2_METADATA_DISABLED\\"; -const v55 = v3.isBrowser; -v3.isBrowser = v55; -const v56 = v3.isNode; -v3.isNode = v56; -const v57 = v3.Buffer; -v3.Buffer = v57; -const v58 = Object.create(v21); -const v59 = []; -v59.push(); -v58._stack = v59; -v58.Domain = (class Domain extends EventEmitter { - constructor() { - super(); - this.members = []; - this[kWeak] = new WeakReference(this); - asyncHook.enable(); - this.on(\\"removeListener\\", updateExceptionCapture); - this.on(\\"newListener\\", updateExceptionCapture); - } -}); -v58.createDomain = (function createDomain() { - return new Domain(); -}); -v58.create = (function createDomain() { - return new Domain(); -}); -v58.active = null; -v3.domain = v58; -const v60 = v3.stream; -v3.stream = v60; -const v61 = Object.create(v21); -v61.Url = (function Url() { - this.protocol = null; - this.slashes = null; - this.auth = null; - this.host = null; - this.port = null; - this.hostname = null; - this.hash = null; - this.search = null; - this.query = null; - this.pathname = null; - this.path = null; - this.href = null; -}); -v61.parse = (function urlParse(url, parseQueryString, slashesDenoteHost) { - if (url instanceof Url) - return url; - const urlObject = new Url(); - urlObject.parse(url, parseQueryString, slashesDenoteHost); - return urlObject; -}); -v61.resolve = (function urlResolve(source, relative) { - return urlParse(source, false, true).resolve(relative); -}); -v61.resolveObject = (function urlResolveObject(source, relative) { - if (!source) - return relative; - return urlParse(source, false, true).resolveObject(relative); -}); -v61.format = (function urlFormat(urlObject, options) { - if (typeof urlObject === \\"string\\") { - urlObject = urlParse(urlObject); - } - else if (typeof urlObject !== \\"object\\" || urlObject === null) { - throw new ERR_INVALID_ARG_TYPE(\\"urlObject\\", [\\"Object\\", \\"string\\"], urlObject); - } - else if (!(urlObject instanceof Url)) { - const format = urlObject[formatSymbol]; - return format ? format.call(urlObject, options) : Url.prototype.format.call(urlObject); - } - return urlObject.format(); -}); -v61.URL = (class URL { - constructor(input, base = undefined) { - input = \`\${input}\`; - let base_context; - if (base !== undefined) { - base_context = new URL(base)[context]; - } - this[context] = new URLContext(); - parse(input, -1, base_context, undefined, FunctionPrototypeBind(onParseComplete, this), onParseError); - } - get [special]() { - return (this[context].flags & URL_FLAGS_SPECIAL) !== 0; - } - get [cannotBeBase]() { - return (this[context].flags & URL_FLAGS_CANNOT_BE_BASE) !== 0; - } - get [cannotHaveUsernamePasswordPort]() { - const { host, scheme } = this[context]; - return ((host == null || host === \\"\\") || this[cannotBeBase] || scheme === \\"file:\\"); - } - [inspect.custom](depth, opts) { - if (this == null || ObjectGetPrototypeOf(this[context]) !== URLContext.prototype) { - throw new ERR_INVALID_THIS(\\"URL\\"); - } - if (typeof depth === \\"number\\" && depth < 0) - return this; - const constructor = getConstructorOf(this) || URL; - const obj = ObjectCreate({ constructor }); - obj.href = this.href; - obj.origin = this.origin; - obj.protocol = this.protocol; - obj.username = this.username; - obj.password = this.password; - obj.host = this.host; - obj.hostname = this.hostname; - obj.port = this.port; - obj.pathname = this.pathname; - obj.search = this.search; - obj.searchParams = this.searchParams; - obj.hash = this.hash; - if (opts.showHidden) { - obj.cannotBeBase = this[cannotBeBase]; - obj.special = this[special]; - obj[context] = this[context]; - } - return \`\${constructor.name} \${inspect(obj, opts)}\`; - } - [kFormat](options) { - if (options) - validateObject(options, \\"options\\"); - options = { - fragment: true, - unicode: false, - search: true, - auth: true, - ...options - }; - const ctx = this[context]; - let ret = ctx.scheme; - if (ctx.host !== null) { - ret += \\"//\\"; - const has_username = ctx.username !== \\"\\"; - const has_password = ctx.password !== \\"\\"; - if (options.auth && (has_username || has_password)) { - if (has_username) - ret += ctx.username; - if (has_password) - ret += \`:\${ctx.password}\`; - ret += \\"@\\"; - } - ret += options.unicode ? domainToUnicode(ctx.host) : ctx.host; - if (ctx.port !== null) - ret += \`:\${ctx.port}\`; - } - if (this[cannotBeBase]) { - ret += ctx.path[0]; - } - else { - if (ctx.host === null && ctx.path.length > 1 && ctx.path[0] === \\"\\") { - ret += \\"/.\\"; - } - if (ctx.path.length) { - ret += \\"/\\" + ArrayPrototypeJoin(ctx.path, \\"/\\"); - } - } - if (options.search && ctx.query !== null) - ret += \`?\${ctx.query}\`; - if (options.fragment && ctx.fragment !== null) - ret += \`#\${ctx.fragment}\`; - return ret; - } - toString() { - return this[kFormat]({}); - } - get href() { - return this[kFormat]({}); - } - set href(input) { - input = \`\${input}\`; - parse(input, -1, undefined, undefined, FunctionPrototypeBind(onParseComplete, this), onParseError); - } - get origin() { - const ctx = this[context]; - switch (ctx.scheme) { - case \\"blob:\\": - if (ctx.path.length > 0) { - try { - return (new URL(ctx.path[0])).origin; - } - catch { - } - } - return kOpaqueOrigin; - case \\"ftp:\\": - case \\"http:\\": - case \\"https:\\": - case \\"ws:\\": - case \\"wss:\\": return serializeTupleOrigin(ctx.scheme, ctx.host, ctx.port); - } - return kOpaqueOrigin; - } - get protocol() { - return this[context].scheme; - } - set protocol(scheme) { - scheme = \`\${scheme}\`; - if (scheme.length === 0) - return; - const ctx = this[context]; - parse(scheme, kSchemeStart, null, ctx, FunctionPrototypeBind(onParseProtocolComplete, this)); - } - get username() { - return this[context].username; - } - set username(username) { - username = \`\${username}\`; - if (this[cannotHaveUsernamePasswordPort]) - return; - const ctx = this[context]; - if (username === \\"\\") { - ctx.username = \\"\\"; - ctx.flags &= ~URL_FLAGS_HAS_USERNAME; - return; - } - ctx.username = encodeAuth(username); - ctx.flags |= URL_FLAGS_HAS_USERNAME; - } - get password() { - return this[context].password; - } - set password(password) { - password = \`\${password}\`; - if (this[cannotHaveUsernamePasswordPort]) - return; - const ctx = this[context]; - if (password === \\"\\") { - ctx.password = \\"\\"; - ctx.flags &= ~URL_FLAGS_HAS_PASSWORD; - return; - } - ctx.password = encodeAuth(password); - ctx.flags |= URL_FLAGS_HAS_PASSWORD; - } - get host() { - const ctx = this[context]; - let ret = ctx.host || \\"\\"; - if (ctx.port !== null) - ret += \`:\${ctx.port}\`; - return ret; - } - set host(host) { - const ctx = this[context]; - host = \`\${host}\`; - if (this[cannotBeBase]) { - return; - } - parse(host, kHost, null, ctx, FunctionPrototypeBind(onParseHostComplete, this)); - } - get hostname() { - return this[context].host || \\"\\"; - } - set hostname(host) { - const ctx = this[context]; - host = \`\${host}\`; - if (this[cannotBeBase]) { - return; - } - parse(host, kHostname, null, ctx, onParseHostnameComplete.bind(this)); - } - get port() { - const port = this[context].port; - return port === null ? \\"\\" : String(port); - } - set port(port) { - port = \`\${port}\`; - if (this[cannotHaveUsernamePasswordPort]) - return; - const ctx = this[context]; - if (port === \\"\\") { - ctx.port = null; - return; - } - parse(port, kPort, null, ctx, FunctionPrototypeBind(onParsePortComplete, this)); - } - get pathname() { - const ctx = this[context]; - if (this[cannotBeBase]) - return ctx.path[0]; - if (ctx.path.length === 0) - return \\"\\"; - return \`/\${ArrayPrototypeJoin(ctx.path, \\"/\\")}\`; - } - set pathname(path) { - path = \`\${path}\`; - if (this[cannotBeBase]) - return; - parse(path, kPathStart, null, this[context], onParsePathComplete.bind(this)); - } - get search() { - const { query } = this[context]; - if (query === null || query === \\"\\") - return \\"\\"; - return \`?\${query}\`; - } - set search(search) { - const ctx = this[context]; - search = toUSVString(search); - if (search === \\"\\") { - ctx.query = null; - ctx.flags &= ~URL_FLAGS_HAS_QUERY; - } - else { - if (search[0] === \\"?\\") - search = StringPrototypeSlice(search, 1); - ctx.query = \\"\\"; - ctx.flags |= URL_FLAGS_HAS_QUERY; - if (search) { - parse(search, kQuery, null, ctx, FunctionPrototypeBind(onParseSearchComplete, this)); - } - } - initSearchParams(this[searchParams], search); - } - get searchParams() { - return this[searchParams]; - } - get hash() { - const { fragment } = this[context]; - if (fragment === null || fragment === \\"\\") - return \\"\\"; - return \`#\${fragment}\`; - } - set hash(hash) { - const ctx = this[context]; - hash = \`\${hash}\`; - if (!hash) { - ctx.fragment = null; - ctx.flags &= ~URL_FLAGS_HAS_FRAGMENT; - return; - } - if (hash[0] === \\"#\\") - hash = StringPrototypeSlice(hash, 1); - ctx.fragment = \\"\\"; - ctx.flags |= URL_FLAGS_HAS_FRAGMENT; - parse(hash, kFragment, null, ctx, FunctionPrototypeBind(onParseHashComplete, this)); - } - toJSON() { - return this[kFormat]({}); - } - static createObjectURL(obj) { - const cryptoRandom = lazyCryptoRandom(); - if (cryptoRandom === undefined) - throw new ERR_NO_CRYPTO(); - const blob = lazyBlob(); - if (!blob.isBlob(obj)) - throw new ERR_INVALID_ARG_TYPE(\\"obj\\", \\"Blob\\", obj); - const id = cryptoRandom.randomUUID(); - storeDataObject(id, obj[blob.kHandle], obj.size, obj.type); - return \`blob:nodedata:\${id}\`; - } - static revokeObjectURL(url) { - url = \`\${url}\`; - try { - const parsed = new URL(url); - const split = StringPrototypeSplit(parsed.pathname, \\":\\"); - if (split.length === 2) - revokeDataObject(split[1]); - } - catch { - } - } -}); -v61.URLSearchParams = (class URLSearchParams { - constructor(init = undefined) { - if (init === null || init === undefined) { - this[searchParams] = []; - } - else if (typeof init === \\"object\\" || typeof init === \\"function\\") { - const method = init[SymbolIterator]; - if (method === this[SymbolIterator]) { - const childParams = init[searchParams]; - this[searchParams] = childParams.slice(); - } - else if (method !== null && method !== undefined) { - if (typeof method !== \\"function\\") { - throw new ERR_ARG_NOT_ITERABLE(\\"Query pairs\\"); - } - const pairs = []; - for (const pair of init) { - if ((typeof pair !== \\"object\\" && typeof pair !== \\"function\\") || pair === null || typeof pair[SymbolIterator] !== \\"function\\") { - throw new ERR_INVALID_TUPLE(\\"Each query pair\\", \\"[name, value]\\"); - } - const convertedPair = []; - for (const element of pair) - ArrayPrototypePush(convertedPair, toUSVString(element)); - ArrayPrototypePush(pairs, convertedPair); - } - this[searchParams] = []; - for (const pair of pairs) { - if (pair.length !== 2) { - throw new ERR_INVALID_TUPLE(\\"Each query pair\\", \\"[name, value]\\"); - } - ArrayPrototypePush(this[searchParams], pair[0], pair[1]); - } - } - else { - this[searchParams] = []; - const keys = ReflectOwnKeys(init); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const desc = ReflectGetOwnPropertyDescriptor(init, key); - if (desc !== undefined && desc.enumerable) { - const typedKey = toUSVString(key); - const typedValue = toUSVString(init[key]); - this[searchParams].push(typedKey, typedValue); - } - } - } - } - else { - init = toUSVString(init); - if (init[0] === \\"?\\") - init = init.slice(1); - initSearchParams(this, init); - } - this[context] = null; - } - [inspect.custom](recurseTimes, ctx) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (typeof recurseTimes === \\"number\\" && recurseTimes < 0) - return ctx.stylize(\\"[Object]\\", \\"special\\"); - const separator = \\", \\"; - const innerOpts = { ...ctx }; - if (recurseTimes !== null) { - innerOpts.depth = recurseTimes - 1; - } - const innerInspect = (v) => inspect(v, innerOpts); - const list = this[searchParams]; - const output = []; - for (let i = 0; i < list.length; i += 2) - ArrayPrototypePush(output, \`\${innerInspect(list[i])} => \${innerInspect(list[i + 1])}\`); - const length = ArrayPrototypeReduce(output, (prev, cur) => prev + removeColors(cur).length + separator.length, -separator.length); - if (length > ctx.breakLength) { - return \`\${this.constructor.name} {\\\\n\` + \` \${ArrayPrototypeJoin(output, \\",\\\\n \\")} }\`; - } - else if (output.length) { - return \`\${this.constructor.name} { \` + \`\${ArrayPrototypeJoin(output, separator)} }\`; - } - return \`\${this.constructor.name} {}\`; - } - append(name, value) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS(\\"name\\", \\"value\\"); - } - name = toUSVString(name); - value = toUSVString(value); - ArrayPrototypePush(this[searchParams], name, value); - update(this[context], this); - } - delete(name) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (arguments.length < 1) { - throw new ERR_MISSING_ARGS(\\"name\\"); - } - const list = this[searchParams]; - name = toUSVString(name); - for (let i = 0; i < list.length;) { - const cur = list[i]; - if (cur === name) { - list.splice(i, 2); - } - else { - i += 2; - } - } - update(this[context], this); - } - get(name) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (arguments.length < 1) { - throw new ERR_MISSING_ARGS(\\"name\\"); - } - const list = this[searchParams]; - name = toUSVString(name); - for (let i = 0; i < list.length; i += 2) { - if (list[i] === name) { - return list[i + 1]; - } - } - return null; - } - getAll(name) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (arguments.length < 1) { - throw new ERR_MISSING_ARGS(\\"name\\"); - } - const list = this[searchParams]; - const values = []; - name = toUSVString(name); - for (let i = 0; i < list.length; i += 2) { - if (list[i] === name) { - values.push(list[i + 1]); - } - } - return values; - } - has(name) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (arguments.length < 1) { - throw new ERR_MISSING_ARGS(\\"name\\"); - } - const list = this[searchParams]; - name = toUSVString(name); - for (let i = 0; i < list.length; i += 2) { - if (list[i] === name) { - return true; - } - } - return false; - } - set(name, value) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS(\\"name\\", \\"value\\"); - } - const list = this[searchParams]; - name = toUSVString(name); - value = toUSVString(value); - let found = false; - for (let i = 0; i < list.length;) { - const cur = list[i]; - if (cur === name) { - if (!found) { - list[i + 1] = value; - found = true; - i += 2; - } - else { - list.splice(i, 2); - } - } - else { - i += 2; - } - } - if (!found) { - ArrayPrototypePush(list, name, value); - } - update(this[context], this); - } - sort() { - const a = this[searchParams]; - const len = a.length; - if (len <= 2) { - } - else if (len < 100) { - for (let i = 2; i < len; i += 2) { - const curKey = a[i]; - const curVal = a[i + 1]; - let j; - for (j = i - 2; j >= 0; j -= 2) { - if (a[j] > curKey) { - a[j + 2] = a[j]; - a[j + 3] = a[j + 1]; - } - else { - break; - } - } - a[j + 2] = curKey; - a[j + 3] = curVal; - } - } - else { - const lBuffer = new Array(len); - const rBuffer = new Array(len); - for (let step = 2; step < len; step *= 2) { - for (let start = 0; start < len - 2; start += 2 * step) { - const mid = start + step; - let end = mid + step; - end = end < len ? end : len; - if (mid > end) - continue; - merge(a, start, mid, end, lBuffer, rBuffer); - } - } - } - update(this[context], this); - } - entries() { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - return createSearchParamsIterator(this, \\"key+value\\"); - } - forEach(callback, thisArg = undefined) { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - validateCallback(callback); - let list = this[searchParams]; - let i = 0; - while (i < list.length) { - const key = list[i]; - const value = list[i + 1]; - callback.call(thisArg, value, key, this); - list = this[searchParams]; - i += 2; - } - } - keys() { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - return createSearchParamsIterator(this, \\"key\\"); - } - values() { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - return createSearchParamsIterator(this, \\"value\\"); - } - toString() { - if (!isURLSearchParams(this)) - throw new ERR_INVALID_THIS(\\"URLSearchParams\\"); - return serializeParams(this[searchParams]); - } -}); -v61.domainToASCII = (function domainToASCII(domain) { - if (arguments.length < 1) - throw new ERR_MISSING_ARGS(\\"domain\\"); - return _domainToASCII(\`\${domain}\`); -}); -v61.domainToUnicode = (function domainToUnicode(domain) { - if (arguments.length < 1) - throw new ERR_MISSING_ARGS(\\"domain\\"); - return _domainToUnicode(\`\${domain}\`); -}); -v61.pathToFileURL = (function pathToFileURL(filepath) { - const outURL = new URL(\\"file://\\"); - if (isWindows && StringPrototypeStartsWith(filepath, \\"\\\\\\\\\\\\\\\\\\")) { - const paths = StringPrototypeSplit(filepath, \\"\\\\\\\\\\"); - if (paths.length <= 3) { - throw new ERR_INVALID_ARG_VALUE(\\"filepath\\", filepath, \\"Missing UNC resource path\\"); - } - const hostname = paths[2]; - if (hostname.length === 0) { - throw new ERR_INVALID_ARG_VALUE(\\"filepath\\", filepath, \\"Empty UNC servername\\"); - } - outURL.hostname = domainToASCII(hostname); - outURL.pathname = encodePathChars(ArrayPrototypeJoin(ArrayPrototypeSlice(paths, 3), \\"/\\")); - } - else { - let resolved = path.resolve(filepath); - const filePathLast = StringPrototypeCharCodeAt(filepath, filepath.length - 1); - if ((filePathLast === CHAR_FORWARD_SLASH || (isWindows && filePathLast === CHAR_BACKWARD_SLASH)) && resolved[resolved.length - 1] !== path.sep) - resolved += \\"/\\"; - outURL.pathname = encodePathChars(resolved); - } - return outURL; -}); -v61.fileURLToPath = (function fileURLToPath(path) { - if (typeof path === \\"string\\") - path = new URL(path); - else if (!isURLInstance(path)) - throw new ERR_INVALID_ARG_TYPE(\\"path\\", [\\"string\\", \\"URL\\"], path); - if (path.protocol !== \\"file:\\") - throw new ERR_INVALID_URL_SCHEME(\\"file\\"); - return isWindows ? getPathFromURLWin32(path) : getPathFromURLPosix(path); -}); -v61.urlToHttpOptions = (function urlToHttpOptions(url) { - const options = { - protocol: url.protocol, - hostname: typeof url.hostname === \\"string\\" && StringPrototypeStartsWith(url.hostname, \\"[\\") ? StringPrototypeSlice(url.hostname, 1, -1) : url.hostname, - hash: url.hash, - search: url.search, - pathname: url.pathname, - path: \`\${url.pathname || \\"\\"}\${url.search || \\"\\"}\`, - href: url.href - }; - if (url.port !== \\"\\") { - options.port = Number(url.port); - } - if (url.username || url.password) { - options.auth = \`\${decodeURIComponent(url.username)}:\${decodeURIComponent(url.password)}\`; - } - return options; -}); -v3.url = v61; -const v62 = Object.create(v21); -v62.unescapeBuffer = (function unescapeBuffer(s, decodeSpaces) { - const out = Buffer.allocUnsafe(s.length); - let index = 0; - let outIndex = 0; - let currentChar; - let nextChar; - let hexHigh; - let hexLow; - const maxLength = s.length - 2; - let hasHex = false; - while (index < s.length) { - currentChar = StringPrototypeCharCodeAt(s, index); - if (currentChar === 43 && decodeSpaces) { - out[outIndex++] = 32; - index++; - continue; - } - if (currentChar === 37 && index < maxLength) { - currentChar = StringPrototypeCharCodeAt(s, ++index); - hexHigh = unhexTable[currentChar]; - if (!(hexHigh >= 0)) { - out[outIndex++] = 37; - continue; - } - else { - nextChar = StringPrototypeCharCodeAt(s, ++index); - hexLow = unhexTable[nextChar]; - if (!(hexLow >= 0)) { - out[outIndex++] = 37; - index--; - } - else { - hasHex = true; - currentChar = hexHigh * 16 + hexLow; - } - } - } - out[outIndex++] = currentChar; - index++; - } - return hasHex ? out.slice(0, outIndex) : out; -}); -v62.unescape = (function qsUnescape(s, decodeSpaces) { - try { - return decodeURIComponent(s); - } - catch { - return QueryString.unescapeBuffer(s, decodeSpaces).toString(); - } -}); -v62.escape = (function qsEscape(str) { - if (typeof str !== \\"string\\") { - if (typeof str === \\"object\\") - str = String(str); - else - str += \\"\\"; - } - return encodeStr(str, noEscape, hexTable); -}); -v62.stringify = (function stringify(obj, sep, eq, options) { - sep = sep || \\"&\\"; - eq = eq || \\"=\\"; - let encode = QueryString.escape; - if (options && typeof options.encodeURIComponent === \\"function\\") { - encode = options.encodeURIComponent; - } - const convert = (encode === qsEscape ? encodeStringified : encodeStringifiedCustom); - if (obj !== null && typeof obj === \\"object\\") { - const keys = ObjectKeys(obj); - const len = keys.length; - let fields = \\"\\"; - for (let i = 0; i < len; ++i) { - const k = keys[i]; - const v = obj[k]; - let ks = convert(k, encode); - ks += eq; - if (ArrayIsArray(v)) { - const vlen = v.length; - if (vlen === 0) - continue; - if (fields) - fields += sep; - for (let j = 0; j < vlen; ++j) { - if (j) - fields += sep; - fields += ks; - fields += convert(v[j], encode); - } - } - else { - if (fields) - fields += sep; - fields += ks; - fields += convert(v, encode); - } - } - return fields; - } - return \\"\\"; -}); -v62.encode = (function stringify(obj, sep, eq, options) { - sep = sep || \\"&\\"; - eq = eq || \\"=\\"; - let encode = QueryString.escape; - if (options && typeof options.encodeURIComponent === \\"function\\") { - encode = options.encodeURIComponent; - } - const convert = (encode === qsEscape ? encodeStringified : encodeStringifiedCustom); - if (obj !== null && typeof obj === \\"object\\") { - const keys = ObjectKeys(obj); - const len = keys.length; - let fields = \\"\\"; - for (let i = 0; i < len; ++i) { - const k = keys[i]; - const v = obj[k]; - let ks = convert(k, encode); - ks += eq; - if (ArrayIsArray(v)) { - const vlen = v.length; - if (vlen === 0) - continue; - if (fields) - fields += sep; - for (let j = 0; j < vlen; ++j) { - if (j) - fields += sep; - fields += ks; - fields += convert(v[j], encode); - } - } - else { - if (fields) - fields += sep; - fields += ks; - fields += convert(v, encode); - } - } - return fields; - } - return \\"\\"; -}); -v62.parse = (function parse(qs, sep, eq, options) { - const obj = ObjectCreate(null); - if (typeof qs !== \\"string\\" || qs.length === 0) { - return obj; - } - const sepCodes = (!sep ? defSepCodes : charCodes(String(sep))); - const eqCodes = (!eq ? defEqCodes : charCodes(String(eq))); - const sepLen = sepCodes.length; - const eqLen = eqCodes.length; - let pairs = 1000; - if (options && typeof options.maxKeys === \\"number\\") { - pairs = (options.maxKeys > 0 ? options.maxKeys : -1); - } - let decode = QueryString.unescape; - if (options && typeof options.decodeURIComponent === \\"function\\") { - decode = options.decodeURIComponent; - } - const customDecode = (decode !== qsUnescape); - let lastPos = 0; - let sepIdx = 0; - let eqIdx = 0; - let key = \\"\\"; - let value = \\"\\"; - let keyEncoded = customDecode; - let valEncoded = customDecode; - const plusChar = (customDecode ? \\"%20\\" : \\" \\"); - let encodeCheck = 0; - for (let i = 0; i < qs.length; ++i) { - const code = StringPrototypeCharCodeAt(qs, i); - if (code === sepCodes[sepIdx]) { - if (++sepIdx === sepLen) { - const end = i - sepIdx + 1; - if (eqIdx < eqLen) { - if (lastPos < end) { - key += StringPrototypeSlice(qs, lastPos, end); - } - else if (key.length === 0) { - if (--pairs === 0) - return obj; - lastPos = i + 1; - sepIdx = eqIdx = 0; - continue; - } - } - else if (lastPos < end) { - value += StringPrototypeSlice(qs, lastPos, end); - } - addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); - if (--pairs === 0) - return obj; - keyEncoded = valEncoded = customDecode; - key = value = \\"\\"; - encodeCheck = 0; - lastPos = i + 1; - sepIdx = eqIdx = 0; - } - } - else { - sepIdx = 0; - if (eqIdx < eqLen) { - if (code === eqCodes[eqIdx]) { - if (++eqIdx === eqLen) { - const end = i - eqIdx + 1; - if (lastPos < end) - key += StringPrototypeSlice(qs, lastPos, end); - encodeCheck = 0; - lastPos = i + 1; - } - continue; - } - else { - eqIdx = 0; - if (!keyEncoded) { - if (code === 37) { - encodeCheck = 1; - continue; - } - else if (encodeCheck > 0) { - if (isHexTable[code] === 1) { - if (++encodeCheck === 3) - keyEncoded = true; - continue; - } - else { - encodeCheck = 0; - } - } - } - } - if (code === 43) { - if (lastPos < i) - key += StringPrototypeSlice(qs, lastPos, i); - key += plusChar; - lastPos = i + 1; - continue; - } - } - if (code === 43) { - if (lastPos < i) - value += StringPrototypeSlice(qs, lastPos, i); - value += plusChar; - lastPos = i + 1; - } - else if (!valEncoded) { - if (code === 37) { - encodeCheck = 1; - } - else if (encodeCheck > 0) { - if (isHexTable[code] === 1) { - if (++encodeCheck === 3) - valEncoded = true; - } - else { - encodeCheck = 0; - } - } - } - } - } - if (lastPos < qs.length) { - if (eqIdx < eqLen) - key += StringPrototypeSlice(qs, lastPos); - else if (sepIdx < sepLen) - value += StringPrototypeSlice(qs, lastPos); - } - else if (eqIdx === 0 && key.length === 0) { - return obj; - } - addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); - return obj; -}); -v62.decode = (function parse(qs, sep, eq, options) { - const obj = ObjectCreate(null); - if (typeof qs !== \\"string\\" || qs.length === 0) { - return obj; - } - const sepCodes = (!sep ? defSepCodes : charCodes(String(sep))); - const eqCodes = (!eq ? defEqCodes : charCodes(String(eq))); - const sepLen = sepCodes.length; - const eqLen = eqCodes.length; - let pairs = 1000; - if (options && typeof options.maxKeys === \\"number\\") { - pairs = (options.maxKeys > 0 ? options.maxKeys : -1); - } - let decode = QueryString.unescape; - if (options && typeof options.decodeURIComponent === \\"function\\") { - decode = options.decodeURIComponent; - } - const customDecode = (decode !== qsUnescape); - let lastPos = 0; - let sepIdx = 0; - let eqIdx = 0; - let key = \\"\\"; - let value = \\"\\"; - let keyEncoded = customDecode; - let valEncoded = customDecode; - const plusChar = (customDecode ? \\"%20\\" : \\" \\"); - let encodeCheck = 0; - for (let i = 0; i < qs.length; ++i) { - const code = StringPrototypeCharCodeAt(qs, i); - if (code === sepCodes[sepIdx]) { - if (++sepIdx === sepLen) { - const end = i - sepIdx + 1; - if (eqIdx < eqLen) { - if (lastPos < end) { - key += StringPrototypeSlice(qs, lastPos, end); - } - else if (key.length === 0) { - if (--pairs === 0) - return obj; - lastPos = i + 1; - sepIdx = eqIdx = 0; - continue; - } - } - else if (lastPos < end) { - value += StringPrototypeSlice(qs, lastPos, end); - } - addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); - if (--pairs === 0) - return obj; - keyEncoded = valEncoded = customDecode; - key = value = \\"\\"; - encodeCheck = 0; - lastPos = i + 1; - sepIdx = eqIdx = 0; - } - } - else { - sepIdx = 0; - if (eqIdx < eqLen) { - if (code === eqCodes[eqIdx]) { - if (++eqIdx === eqLen) { - const end = i - eqIdx + 1; - if (lastPos < end) - key += StringPrototypeSlice(qs, lastPos, end); - encodeCheck = 0; - lastPos = i + 1; - } - continue; - } - else { - eqIdx = 0; - if (!keyEncoded) { - if (code === 37) { - encodeCheck = 1; - continue; - } - else if (encodeCheck > 0) { - if (isHexTable[code] === 1) { - if (++encodeCheck === 3) - keyEncoded = true; - continue; - } - else { - encodeCheck = 0; - } - } - } - } - if (code === 43) { - if (lastPos < i) - key += StringPrototypeSlice(qs, lastPos, i); - key += plusChar; - lastPos = i + 1; - continue; - } - } - if (code === 43) { - if (lastPos < i) - value += StringPrototypeSlice(qs, lastPos, i); - value += plusChar; - lastPos = i + 1; - } - else if (!valEncoded) { - if (code === 37) { - encodeCheck = 1; - } - else if (encodeCheck > 0) { - if (isHexTable[code] === 1) { - if (++encodeCheck === 3) - valEncoded = true; - } - else { - encodeCheck = 0; - } - } - } - } - } - if (lastPos < qs.length) { - if (eqIdx < eqLen) - key += StringPrototypeSlice(qs, lastPos); - else if (sepIdx < sepLen) - value += StringPrototypeSlice(qs, lastPos); - } - else if (eqIdx === 0 && key.length === 0) { - return obj; - } - addKeyVal(obj, key, value, keyEncoded, valEncoded, decode); - return obj; -}); -v3.querystring = v62; -const v63 = require(\\"aws-sdk\\"); -const v64 = v63.createEventStream; -v3.createEventStream = v64; -const v65 = {}; -const v66 = v65.now; -v65.now = v66; -v3.realClock = v65; -const v67 = {}; -const v68 = require(\\"aws-sdk\\"); -const v69 = v68.Publisher; -v67.Publisher = v69; -const v70 = require(\\"aws-sdk\\"); -const v71 = v70; -v67.configProvider = v71; -v3.clientSideMonitoring = v67; -const v72 = {}; -v72.clearCachedFiles = (function clearCachedFiles() { - this.resolvedProfiles = {}; -}); -v72.loadFrom = (function loadFrom(options) { - options = options || {}; - var isConfig = options.isConfig === true; - var filename = options.filename || this.getDefaultFilePath(isConfig); - if (!this.resolvedProfiles[filename]) { - var fileContent = this.parseFile(filename, isConfig); - Object.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); - } - return this.resolvedProfiles[filename]; -}); -const v73 = require(\\"aws-sdk\\"); -const v74 = v73.parseFile; -v72.parseFile = v74; -v72.getDefaultFilePath = (function getDefaultFilePath(isConfig) { - return path.join(this.getHomeDir(), \\".aws\\", isConfig ? \\"config\\" : \\"credentials\\"); -}); -v72.getHomeDir = (function getHomeDir() { - var env = process.env; - var home = env.HOME || env.USERPROFILE || (env.HOMEPATH ? ((env.HOMEDRIVE || \\"C:/\\") + env.HOMEPATH) : null); - if (home) { - return home; - } - if (typeof os.homedir === \\"function\\") { - return os.homedir(); - } - throw AWS.util.error(new Error(\\"Cannot load credentials, HOME path not set\\")); -}); -const v75 = Object.create(v72); -const v76 = {}; -v75.resolvedProfiles = v76; -v3.iniLoader = v75; -const v77 = v3.getSystemErrorName; -v3.getSystemErrorName = v77; -const v78 = v3.loadConfig; -v3.loadConfig = v78; -v2.util = v3; -v2.VERSION = \\"2.1193.0\\"; -const v79 = {}; -const v80 = require(\\"aws-sdk\\"); -const v81 = v80.__super__; -v79.RequestSigner = v81; -const v82 = require(\\"aws-sdk\\"); -const v83 = v82; -v79.V2 = v83; -const v84 = require(\\"aws-sdk\\"); -const v85 = v84.__super__; -v79.V3 = v85; -v79.V3Https = v84; -const v86 = require(\\"aws-sdk\\"); -const v87 = v86; -v79.V4 = v87; -v79.S3 = v80; -const v88 = require(\\"aws-sdk\\"); -const v89 = v88; -v79.Presign = v89; -v2.Signers = v79; -const v90 = {}; -const v91 = {}; -const v92 = v91.buildRequest; -v91.buildRequest = v92; -const v93 = v91.extractError; -v91.extractError = v93; -const v94 = v91.extractData; -v91.extractData = v94; -v90.Json = v91; -const v95 = {}; -const v96 = v95.buildRequest; -v95.buildRequest = v96; -const v97 = v95.extractError; -v95.extractError = v97; -const v98 = v95.extractData; -v95.extractData = v98; -v90.Query = v95; -const v99 = {}; -const v100 = v99.buildRequest; -v99.buildRequest = v100; -const v101 = v99.extractError; -v99.extractError = v101; -const v102 = v99.extractData; -v99.extractData = v102; -const v103 = v99.generateURI; -v99.generateURI = v103; -v90.Rest = v99; -const v104 = {}; -const v105 = v104.buildRequest; -v104.buildRequest = v105; -const v106 = v104.extractError; -v104.extractError = v106; -const v107 = v104.extractData; -v104.extractData = v107; -v90.RestJson = v104; -const v108 = {}; -const v109 = v108.buildRequest; -v108.buildRequest = v109; -const v110 = v108.extractError; -v108.extractError = v110; -const v111 = v108.extractData; -v108.extractData = v111; -v90.RestXml = v108; -v2.Protocol = v90; -const v112 = {}; -const v113 = require(\\"aws-sdk\\"); -const v114 = v113; -v112.Builder = v114; -const v115 = require(\\"aws-sdk\\"); -const v116 = v115; -v112.Parser = v116; -v2.XML = v112; -const v117 = {}; -const v118 = require(\\"aws-sdk\\"); -const v119 = v118; -v117.Builder = v119; -const v120 = require(\\"aws-sdk\\"); -const v121 = v120; -v117.Parser = v121; -v2.JSON = v117; -const v122 = {}; -const v123 = require(\\"aws-sdk\\"); -const v124 = v123; -v122.Api = v124; -const v125 = require(\\"aws-sdk\\"); -const v126 = v125; -v122.Operation = v126; -const v127 = require(\\"aws-sdk\\"); -const v128 = v127; -v122.Shape = v128; -const v129 = require(\\"aws-sdk\\"); -const v130 = v129; -v122.Paginator = v130; -const v131 = require(\\"aws-sdk\\"); -const v132 = v131; -v122.ResourceWaiter = v132; -v2.Model = v122; -const v133 = require(\\"aws-sdk\\"); -const v134 = v133; -v2.apiLoader = v134; -const v135 = require(\\"aws-sdk\\"); -const v136 = v135.EndpointCache; -v2.EndpointCache = v136; -const v137 = require(\\"aws-sdk\\"); -const v138 = v137; -v2.SequentialExecutor = v138; -const v139 = require(\\"aws-sdk\\"); -const v140 = v139.__super__; -v2.Service = v140; -const v141 = v2.Credentials; -v2.Credentials = v141; -const v142 = v2.CredentialProviderChain; -v2.CredentialProviderChain = v142; -const v143 = v2.Config; -v2.Config = v143; -const v144 = {}; -v144.getCredentials = (function getCredentials(callback) { - var self = this; - function finish(err) { - callback(err, err ? null : self.credentials); - } - function credError(msg, err) { - return new AWS.util.error(err || new Error(), { - code: \\"CredentialsError\\", - message: msg, - name: \\"CredentialsError\\" - }); - } - function getAsyncCredentials() { - self.credentials.get(function (err) { - if (err) { - var msg = \\"Could not load credentials from \\" + self.credentials.constructor.name; - err = credError(msg, err); - } - finish(err); - }); - } - function getStaticCredentials() { - var err = null; - if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { - err = credError(\\"Missing credentials\\"); - } - finish(err); - } - if (self.credentials) { - if (typeof self.credentials.get === \\"function\\") { - getAsyncCredentials(); - } - else { - getStaticCredentials(); - } - } - else if (self.credentialProvider) { - self.credentialProvider.resolve(function (err, creds) { - if (err) { - err = credError(\\"Could not load credentials from any providers\\", err); - } - self.credentials = creds; - finish(err); - }); - } - else { - finish(credError(\\"No credentials to load\\")); - } -}); -v144.update = (function update(options, allowUnknownKeys) { - allowUnknownKeys = allowUnknownKeys || false; - options = this.extractCredentials(options); - AWS.util.each.call(this, options, function (key, value) { - if (allowUnknownKeys || Object.prototype.hasOwnProperty.call(this.keys, key) || AWS.Service.hasService(key)) { - this.set(key, value); - } - }); -}); -v144.loadFromPath = (function loadFromPath(path) { - this.clear(); - var options = JSON.parse(AWS.util.readFileSync(path)); - var fileSystemCreds = new AWS.FileSystemCredentials(path); - var chain = new AWS.CredentialProviderChain(); - chain.providers.unshift(fileSystemCreds); - chain.resolve(function (err, creds) { - if (err) - throw err; - else - options.credentials = creds; - }); - this.constructor(options); - return this; -}); -v144.clear = (function clear() { - AWS.util.each.call(this, this.keys, function (key) { - delete this[key]; - }); - this.set(\\"credentials\\", undefined); - this.set(\\"credentialProvider\\", undefined); -}); -v144.set = (function set(property, value, defaultValue) { - if (value === undefined) { - if (defaultValue === undefined) { - defaultValue = this.keys[property]; - } - if (typeof defaultValue === \\"function\\") { - this[property] = defaultValue.call(this); - } - else { - this[property] = defaultValue; - } - } - else if (property === \\"httpOptions\\" && this[property]) { - this[property] = AWS.util.merge(this[property], value); - } - else { - this[property] = value; - } -}); -const v145 = {}; -v145.credentials = (function () { - var credentials = null; - new AWS.CredentialProviderChain([ - function () { return new AWS.EnvironmentCredentials(\\"AWS\\"); }, - function () { return new AWS.EnvironmentCredentials(\\"AMAZON\\"); }, - function () { return new AWS.SharedIniFileCredentials({ disableAssumeRole: true }); } - ]).resolve(function (err, creds) { - if (!err) - credentials = creds; - }); - return credentials; -}); -v145.credentialProvider = (function () { - return new AWS.CredentialProviderChain(); -}); -v145.region = (function () { - var region = getRegion(); - return region ? getRealRegion(region) : undefined; -}); -v145.logger = (function () { - return process.env.AWSJS_DEBUG ? console : null; -}); -const v146 = {}; -v145.apiVersions = v146; -v145.apiVersion = null; -v145.endpoint = undefined; -const v147 = {}; -v147.timeout = 120000; -v145.httpOptions = v147; -v145.maxRetries = undefined; -v145.maxRedirects = 10; -v145.paramValidation = true; -v145.sslEnabled = true; -v145.s3ForcePathStyle = false; -v145.s3BucketEndpoint = false; -v145.s3DisableBodySigning = true; -v145.s3UsEast1RegionalEndpoint = \\"legacy\\"; -v145.s3UseArnRegion = undefined; -v145.computeChecksums = true; -v145.convertResponseTypes = true; -v145.correctClockSkew = false; -v145.customUserAgent = null; -v145.dynamoDbCrc32 = true; -v145.systemClockOffset = 0; -v145.signatureVersion = null; -v145.signatureCache = true; -const v148 = {}; -v145.retryDelayOptions = v148; -v145.useAccelerateEndpoint = false; -v145.clientSideMonitoring = false; -v145.endpointDiscoveryEnabled = undefined; -v145.endpointCacheSize = 1000; -v145.hostPrefixEnabled = true; -v145.stsRegionalEndpoints = \\"legacy\\"; -v145.useFipsEndpoint = (function () { - var region = getRegion(); - return isFipsRegion(region) ? true : util.loadConfig(USE_FIPS_ENDPOINT_CONFIG_OPTIONS); -}); -v145.useDualstackEndpoint = (function () { - return util.loadConfig(USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS); -}); -v144.keys = v145; -v144.extractCredentials = (function extractCredentials(options) { - if (options.accessKeyId && options.secretAccessKey) { - options = AWS.util.copy(options); - options.credentials = new AWS.Credentials(options); - } - return options; -}); -v144.setPromisesDependency = (function setPromisesDependency(dep) { - PromisesDependency = dep; - if (dep === null && typeof Promise === \\"function\\") { - PromisesDependency = Promise; - } - var constructors = [AWS.Request, AWS.Credentials, AWS.CredentialProviderChain]; - if (AWS.S3) { - constructors.push(AWS.S3); - if (AWS.S3.ManagedUpload) { - constructors.push(AWS.S3.ManagedUpload); - } - } - AWS.util.addPromises(constructors, PromisesDependency); -}); -v144.getPromisesDependency = (function getPromisesDependency() { - return PromisesDependency; -}); -const v149 = Object.create(v144); -const v150 = {}; -v150.expiryWindow = 15; -v150.needsRefresh = (function needsRefresh() { - var currentTime = AWS.util.date.getDate().getTime(); - var adjustedTime = new Date(currentTime + this.expiryWindow * 1000); - if (this.expireTime && adjustedTime > this.expireTime) { - return true; - } - else { - return this.expired || !this.accessKeyId || !this.secretAccessKey; - } -}); -v150.get = (function get(callback) { - var self = this; - if (this.needsRefresh()) { - this.refresh(function (err) { - if (!err) - self.expired = false; - if (callback) - callback(err); - }); - } - else if (callback) { - callback(); - } -}); -v150.refresh = (function refresh(callback) { - this.expired = false; - callback(); -}); -v150.coalesceRefresh = (function coalesceRefresh(callback, sync) { - var self = this; - if (self.refreshCallbacks.push(callback) === 1) { - self.load(function onLoad(err) { - AWS.util.arrayEach(self.refreshCallbacks, function (callback) { - if (sync) { - callback(err); - } - else { - AWS.util.defer(function () { - callback(err); - }); - } - }); - self.refreshCallbacks.length = 0; - }); - } -}); -v150.load = (function load(callback) { - callback(); -}); -v150.getPromise = (function promise() { - var self = this; - var args = Array.prototype.slice.call(arguments); - return new PromiseDependency(function (resolve, reject) { - args.push(function (err, data) { - if (err) { - reject(err); - } - else { - resolve(data); - } - }); - self[methodName].apply(self, args); - }); -}); -v150.refreshPromise = (function promise() { - var self = this; - var args = Array.prototype.slice.call(arguments); - return new PromiseDependency(function (resolve, reject) { - args.push(function (err, data) { - if (err) { - reject(err); - } - else { - resolve(data); - } - }); - self[methodName].apply(self, args); - }); -}); -const v151 = Object.create(v150); -v151.load = (function load(callback) { - var self = this; - try { - var profiles = AWS.util.getProfilesFromSharedConfig(iniLoader, this.filename); - var profile = profiles[this.profile] || {}; - if (Object.keys(profile).length === 0) { - throw AWS.util.error(new Error(\\"Profile \\" + this.profile + \\" not found\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - var preferStaticCredentialsToRoleArn = Boolean(this.preferStaticCredentials && profile[\\"aws_access_key_id\\"] && profile[\\"aws_secret_access_key\\"]); - if (profile[\\"role_arn\\"] && !preferStaticCredentialsToRoleArn) { - this.loadRoleProfile(profiles, profile, function (err, data) { - if (err) { - callback(err); - } - else { - self.expired = false; - self.accessKeyId = data.Credentials.AccessKeyId; - self.secretAccessKey = data.Credentials.SecretAccessKey; - self.sessionToken = data.Credentials.SessionToken; - self.expireTime = data.Credentials.Expiration; - callback(null); - } - }); - return; - } - this.accessKeyId = profile[\\"aws_access_key_id\\"]; - this.secretAccessKey = profile[\\"aws_secret_access_key\\"]; - this.sessionToken = profile[\\"aws_session_token\\"]; - if (!this.accessKeyId || !this.secretAccessKey) { - throw AWS.util.error(new Error(\\"Credentials not set for profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - this.expired = false; - callback(null); - } - catch (err) { - callback(err); - } -}); -v151.refresh = (function refresh(callback) { - iniLoader.clearCachedFiles(); - this.coalesceRefresh(callback || AWS.util.fn.callback, this.disableAssumeRole); -}); -v151.loadRoleProfile = (function loadRoleProfile(creds, roleProfile, callback) { - if (this.disableAssumeRole) { - throw AWS.util.error(new Error(\\"Role assumption profiles are disabled. \\" + \\"Failed to load profile \\" + this.profile + \\" from \\" + creds.filename), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - var self = this; - var roleArn = roleProfile[\\"role_arn\\"]; - var roleSessionName = roleProfile[\\"role_session_name\\"]; - var externalId = roleProfile[\\"external_id\\"]; - var mfaSerial = roleProfile[\\"mfa_serial\\"]; - var sourceProfileName = roleProfile[\\"source_profile\\"]; - var profileRegion = roleProfile[\\"region\\"] || ASSUME_ROLE_DEFAULT_REGION; - if (!sourceProfileName) { - throw AWS.util.error(new Error(\\"source_profile is not set using profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - var sourceProfileExistanceTest = creds[sourceProfileName]; - if (typeof sourceProfileExistanceTest !== \\"object\\") { - throw AWS.util.error(new Error(\\"source_profile \\" + sourceProfileName + \\" using profile \\" + this.profile + \\" does not exist\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - var sourceCredentials = new AWS.SharedIniFileCredentials(AWS.util.merge(this.options || {}, { - profile: sourceProfileName, - preferStaticCredentials: true - })); - this.roleArn = roleArn; - var sts = new STS({ - credentials: sourceCredentials, - region: profileRegion, - httpOptions: this.httpOptions - }); - var roleParams = { - RoleArn: roleArn, - RoleSessionName: roleSessionName || \\"aws-sdk-js-\\" + Date.now() - }; - if (externalId) { - roleParams.ExternalId = externalId; - } - if (mfaSerial && self.tokenCodeFn) { - roleParams.SerialNumber = mfaSerial; - self.tokenCodeFn(mfaSerial, function (err, token) { - if (err) { - var message; - if (err instanceof Error) { - message = err.message; - } - else { - message = err; - } - callback(AWS.util.error(new Error(\\"Error fetching MFA token: \\" + message), { code: \\"SharedIniFileCredentialsProviderFailure\\" })); - return; - } - roleParams.TokenCode = token; - sts.assumeRole(roleParams, callback); - }); - return; - } - sts.assumeRole(roleParams, callback); -}); -const v152 = Object.create(v151); -v152.secretAccessKey = \\"hFtbgbtjmEVRnPRGHIeunft+g7PBUUYISFrP5ksw\\"; -v152.expired = false; -v152.expireTime = null; -const v153 = []; -v153.push(); -v152.refreshCallbacks = v153; -v152.accessKeyId = \\"AKIA2PTXRDHQCY72R4HM\\"; -v152.sessionToken = undefined; -v152.filename = undefined; -v152.profile = \\"default\\"; -v152.disableAssumeRole = true; -v152.preferStaticCredentials = false; -v152.tokenCodeFn = null; -v152.httpOptions = null; -v149.credentials = v152; -const v154 = Object.create(v150); -v154.resolve = (function resolve(callback) { - var self = this; - if (self.providers.length === 0) { - callback(new Error(\\"No providers\\")); - return self; - } - if (self.resolveCallbacks.push(callback) === 1) { - var index = 0; - var providers = self.providers.slice(0); - function resolveNext(err, creds) { - if ((!err && creds) || index === providers.length) { - AWS.util.arrayEach(self.resolveCallbacks, function (callback) { - callback(err, creds); - }); - self.resolveCallbacks.length = 0; - return; - } - var provider = providers[index++]; - if (typeof provider === \\"function\\") { - creds = provider.call(); - } - else { - creds = provider; - } - if (creds.get) { - creds.get(function (getErr) { - resolveNext(getErr, getErr ? null : creds); - }); - } - else { - resolveNext(null, creds); - } - } - resolveNext(); - } - return self; -}); -v154.resolvePromise = (function promise() { - var self = this; - var args = Array.prototype.slice.call(arguments); - return new PromiseDependency(function (resolve, reject) { - args.push(function (err, data) { - if (err) { - reject(err); - } - else { - resolve(data); - } - }); - self[methodName].apply(self, args); - }); -}); -const v155 = Object.create(v154); -const v156 = []; -v156.push((function () { return new AWS.EnvironmentCredentials(\\"AWS\\"); }), (function () { return new AWS.EnvironmentCredentials(\\"AMAZON\\"); }), (function () { return new AWS.SsoCredentials(); }), (function () { return new AWS.SharedIniFileCredentials(); }), (function () { return new AWS.ECSCredentials(); }), (function () { return new AWS.ProcessCredentials(); }), (function () { return new AWS.TokenFileWebIdentityCredentials(); }), (function () { return new AWS.EC2MetadataCredentials(); })); -v155.providers = v156; -const v157 = []; -v157.push(); -v155.resolveCallbacks = v157; -v149.credentialProvider = v155; -v149.region = undefined; -v149.logger = null; -v149.apiVersions = v146; -v149.apiVersion = null; -v149.endpoint = undefined; -v149.httpOptions = v147; -v149.maxRetries = undefined; -v149.maxRedirects = 10; -v149.paramValidation = true; -v149.sslEnabled = true; -v149.s3ForcePathStyle = false; -v149.s3BucketEndpoint = false; -v149.s3DisableBodySigning = true; -v149.s3UsEast1RegionalEndpoint = \\"legacy\\"; -v149.s3UseArnRegion = undefined; -v149.computeChecksums = true; -v149.convertResponseTypes = true; -v149.correctClockSkew = false; -v149.customUserAgent = null; -v149.dynamoDbCrc32 = true; -v149.systemClockOffset = 0; -v149.signatureVersion = null; -v149.signatureCache = true; -v149.retryDelayOptions = v148; -v149.useAccelerateEndpoint = false; -v149.clientSideMonitoring = false; -v149.endpointDiscoveryEnabled = undefined; -v149.endpointCacheSize = 1000; -v149.hostPrefixEnabled = true; -v149.stsRegionalEndpoints = \\"legacy\\"; -v149.useFipsEndpoint = false; -v149.useDualstackEndpoint = false; -v2.config = v149; -const v158 = v2.Endpoint; -v2.Endpoint = v158; -const v159 = v2.HttpRequest; -v2.HttpRequest = v159; -const v160 = v2.HttpResponse; -v2.HttpResponse = v160; -const v161 = v2.HttpClient; -v2.HttpClient = v161; -const v162 = {}; -const v163 = {}; -v163.listeners = (function listeners(eventName) { - return this._events[eventName] ? this._events[eventName].slice(0) : []; -}); -v163.on = (function on(eventName, listener, toHead) { - if (this._events[eventName]) { - toHead ? this._events[eventName].unshift(listener) : this._events[eventName].push(listener); - } - else { - this._events[eventName] = [listener]; - } - return this; -}); -v163.onAsync = (function onAsync(eventName, listener, toHead) { - listener._isAsync = true; - return this.on(eventName, listener, toHead); -}); -v163.removeListener = (function removeListener(eventName, listener) { - var listeners = this._events[eventName]; - if (listeners) { - var length = listeners.length; - var position = -1; - for (var i = 0; i < length; ++i) { - if (listeners[i] === listener) { - position = i; - } - } - if (position > -1) { - listeners.splice(position, 1); - } - } - return this; -}); -v163.removeAllListeners = (function removeAllListeners(eventName) { - if (eventName) { - delete this._events[eventName]; - } - else { - this._events = {}; - } - return this; -}); -v163.emit = (function emit(eventName, eventArgs, doneCallback) { - if (!doneCallback) - doneCallback = function () { }; - var listeners = this.listeners(eventName); - var count = listeners.length; - this.callListeners(listeners, eventArgs, doneCallback); - return count > 0; -}); -v163.callListeners = (function callListeners(listeners, args, doneCallback, prevError) { - var self = this; - var error = prevError || null; - function callNextListener(err) { - if (err) { - error = AWS.util.error(error || new Error(), err); - if (self._haltHandlersOnError) { - return doneCallback.call(self, error); - } - } - self.callListeners(listeners, args, doneCallback, error); - } - while (listeners.length > 0) { - var listener = listeners.shift(); - if (listener._isAsync) { - listener.apply(self, args.concat([callNextListener])); - return; - } - else { - try { - listener.apply(self, args); - } - catch (err) { - error = AWS.util.error(error || new Error(), err); - } - if (error && self._haltHandlersOnError) { - doneCallback.call(self, error); - return; - } - } - } - doneCallback.call(self, error); -}); -v163.addListeners = (function addListeners(listeners) { - var self = this; - if (listeners._events) - listeners = listeners._events; - AWS.util.each(listeners, function (event, callbacks) { - if (typeof callbacks === \\"function\\") - callbacks = [callbacks]; - AWS.util.arrayEach(callbacks, function (callback) { - self.on(event, callback); - }); - }); - return self; -}); -v163.addNamedListener = (function addNamedListener(name, eventName, callback, toHead) { - this[name] = callback; - this.addListener(eventName, callback, toHead); - return this; -}); -v163.addNamedAsyncListener = (function addNamedAsyncListener(name, eventName, callback, toHead) { - callback._isAsync = true; - return this.addNamedListener(name, eventName, callback, toHead); -}); -v163.addNamedListeners = (function addNamedListeners(callback) { - var self = this; - callback(function () { - self.addNamedListener.apply(self, arguments); - }, function () { - self.addNamedAsyncListener.apply(self, arguments); - }); - return this; -}); -v163.addListener = (function on(eventName, listener, toHead) { - if (this._events[eventName]) { - toHead ? this._events[eventName].unshift(listener) : this._events[eventName].push(listener); - } - else { - this._events[eventName] = [listener]; - } - return this; -}); -const v164 = Object.create(v163); -const v165 = {}; -const v166 = []; -v166.push((function VALIDATE_CREDENTIALS(req, done) { - if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) - return done(); - req.service.config.getCredentials(function (err) { - if (err) { - req.response.error = AWS.util.error(err, { code: \\"CredentialsError\\", message: \\"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1\\" }); - } - done(); - }); -}), (function VALIDATE_REGION(req) { - if (!req.service.isGlobalEndpoint) { - var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!req.service.config.region) { - req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); - } - else if (!dnsHostRegex.test(req.service.config.region)) { - req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Invalid region in config\\" }); - } - } -}), (function BUILD_IDEMPOTENCY_TOKENS(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var idempotentMembers = operation.idempotentMembers; - if (!idempotentMembers.length) { - return; - } - var params = AWS.util.copy(req.params); - for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { - if (!params[idempotentMembers[i]]) { - params[idempotentMembers[i]] = AWS.util.uuid.v4(); - } - } - req.params = params; -}), (function VALIDATE_PARAMETERS(req) { - if (!req.service.api.operations) { - return; - } - var rules = req.service.api.operations[req.operation].input; - var validation = req.service.config.paramValidation; - new AWS.ParamValidator(validation).validate(rules, req.params); -})); -v165.validate = v166; -const v167 = []; -v167.push((function COMPUTE_CHECKSUM(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var body = req.httpRequest.body; - var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === \\"string\\"); - var headers = req.httpRequest.headers; - if (operation.httpChecksumRequired && req.service.config.computeChecksums && isNonStreamingPayload && !headers[\\"Content-MD5\\"]) { - var md5 = AWS.util.crypto.md5(body, \\"base64\\"); - headers[\\"Content-MD5\\"] = md5; - } -}), (function COMPUTE_SHA256(req, done) { - req.haltHandlersOnError(); - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - var authtype = operation ? operation.authtype : \\"\\"; - if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) - return done(); - if (req.service.getSignerClass(req) === AWS.Signers.V4) { - var body = req.httpRequest.body || \\"\\"; - if (authtype.indexOf(\\"unsigned-body\\") >= 0) { - req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; - return done(); - } - AWS.util.computeSha256(body, function (err, sha) { - if (err) { - done(err); - } - else { - req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = sha; - done(); - } - }); - } - else { - done(); - } -}), (function SET_CONTENT_LENGTH(req) { - var authtype = getOperationAuthtype(req); - var payloadMember = AWS.util.getRequestPayloadShape(req); - if (req.httpRequest.headers[\\"Content-Length\\"] === undefined) { - try { - var length = AWS.util.string.byteLength(req.httpRequest.body); - req.httpRequest.headers[\\"Content-Length\\"] = length; - } - catch (err) { - if (payloadMember && payloadMember.isStreaming) { - if (payloadMember.requiresLength) { - throw err; - } - else if (authtype.indexOf(\\"unsigned-body\\") >= 0) { - req.httpRequest.headers[\\"Transfer-Encoding\\"] = \\"chunked\\"; - return; - } - else { - throw err; - } - } - throw err; - } - } -}), (function SET_HTTP_HOST(req) { - req.httpRequest.headers[\\"Host\\"] = req.httpRequest.endpoint.host; -}), (function SET_TRACE_ID(req) { - var traceIdHeaderName = \\"X-Amzn-Trace-Id\\"; - if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { - var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; - var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; - var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - var traceId = process.env[ENV_TRACE_ID]; - if (typeof functionName === \\"string\\" && functionName.length > 0 && typeof traceId === \\"string\\" && traceId.length > 0) { - req.httpRequest.headers[traceIdHeaderName] = traceId; - } - } -})); -v165.afterBuild = v167; -const v168 = []; -v168.push((function RESTART() { - var err = this.response.error; - if (!err || !err.retryable) - return; - this.httpRequest = new AWS.HttpRequest(this.service.endpoint, this.service.region); - if (this.response.retryCount < this.service.config.maxRetries) { - this.response.retryCount++; - } - else { - this.response.error = null; - } -})); -v165.restart = v168; -const v169 = []; -const v170 = require(\\"aws-sdk\\"); -const v171 = v170.discoverEndpoint; -v169.push(v171, (function SIGN(req, done) { - var service = req.service; - var operations = req.service.api.operations || {}; - var operation = operations[req.operation]; - var authtype = operation ? operation.authtype : \\"\\"; - if (!service.api.signatureVersion && !authtype && !service.config.signatureVersion) - return done(); - service.config.getCredentials(function (err, credentials) { - if (err) { - req.response.error = err; - return done(); - } - try { - var date = service.getSkewCorrectedDate(); - var SignerClass = service.getSignerClass(req); - var signer = new SignerClass(req.httpRequest, service.getSigningName(req), { - signatureCache: service.config.signatureCache, - operation: operation, - signatureVersion: service.api.signatureVersion - }); - signer.setServiceClientId(service._clientId); - delete req.httpRequest.headers[\\"Authorization\\"]; - delete req.httpRequest.headers[\\"Date\\"]; - delete req.httpRequest.headers[\\"X-Amz-Date\\"]; - signer.addAuthorization(credentials, date); - req.signedAt = date; - } - catch (e) { - req.response.error = e; - } - done(); - }); -})); -v165.sign = v169; -const v172 = []; -v172.push((function VALIDATE_RESPONSE(resp) { - if (this.service.successfulResponse(resp, this)) { - resp.data = {}; - resp.error = null; - } - else { - resp.data = null; - resp.error = AWS.util.error(new Error(), { code: \\"UnknownError\\", message: \\"An unknown error occurred.\\" }); - } -})); -v165.validateResponse = v172; -const v173 = []; -v173.push((function ERROR(err, resp) { - var errorCodeMapping = resp.request.service.api.errorCodeMapping; - if (errorCodeMapping && err && err.code) { - var mapping = errorCodeMapping[err.code]; - if (mapping) { - resp.error.code = mapping.code; - } - } -})); -v165.error = v173; -const v174 = []; -v174.push((function SEND(resp, done) { - resp.httpResponse._abortCallback = done; - resp.error = null; - resp.data = null; - function callback(httpResp) { - resp.httpResponse.stream = httpResp; - var stream = resp.request.httpRequest.stream; - var service = resp.request.service; - var api = service.api; - var operationName = resp.request.operation; - var operation = api.operations[operationName] || {}; - httpResp.on(\\"headers\\", function onHeaders(statusCode, headers, statusMessage) { - resp.request.emit(\\"httpHeaders\\", [statusCode, headers, resp, statusMessage]); - if (!resp.httpResponse.streaming) { - if (AWS.HttpClient.streamsApiVersion === 2) { - if (operation.hasEventOutput && service.successfulResponse(resp)) { - resp.request.emit(\\"httpDone\\"); - done(); - return; - } - httpResp.on(\\"readable\\", function onReadable() { - var data = httpResp.read(); - if (data !== null) { - resp.request.emit(\\"httpData\\", [data, resp]); - } - }); - } - else { - httpResp.on(\\"data\\", function onData(data) { - resp.request.emit(\\"httpData\\", [data, resp]); - }); - } - } - }); - httpResp.on(\\"end\\", function onEnd() { - if (!stream || !stream.didCallback) { - if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { - return; - } - resp.request.emit(\\"httpDone\\"); - done(); - } - }); - } - function progress(httpResp) { - httpResp.on(\\"sendProgress\\", function onSendProgress(value) { - resp.request.emit(\\"httpUploadProgress\\", [value, resp]); - }); - httpResp.on(\\"receiveProgress\\", function onReceiveProgress(value) { - resp.request.emit(\\"httpDownloadProgress\\", [value, resp]); - }); - } - function error(err) { - if (err.code !== \\"RequestAbortedError\\") { - var errCode = err.code === \\"TimeoutError\\" ? err.code : \\"NetworkingError\\"; - err = AWS.util.error(err, { - code: errCode, - region: resp.request.httpRequest.region, - hostname: resp.request.httpRequest.endpoint.hostname, - retryable: true - }); - } - resp.error = err; - resp.request.emit(\\"httpError\\", [resp.error, resp], function () { - done(); - }); - } - function executeSend() { - var http = AWS.HttpClient.getInstance(); - var httpOptions = resp.request.service.config.httpOptions || {}; - try { - var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); - progress(stream); - } - catch (err) { - error(err); - } - } - var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; - if (timeDiff >= 60 * 10) { - this.emit(\\"sign\\", [this], function (err) { - if (err) - done(err); - else - executeSend(); - }); - } - else { - executeSend(); - } -})); -v165.send = v174; -const v175 = []; -v175.push((function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { - resp.httpResponse.statusCode = statusCode; - resp.httpResponse.statusMessage = statusMessage; - resp.httpResponse.headers = headers; - resp.httpResponse.body = AWS.util.buffer.toBuffer(\\"\\"); - resp.httpResponse.buffers = []; - resp.httpResponse.numBytes = 0; - var dateHeader = headers.date || headers.Date; - var service = resp.request.service; - if (dateHeader) { - var serverTime = Date.parse(dateHeader); - if (service.config.correctClockSkew && service.isClockSkewed(serverTime)) { - service.applyClockOffset(serverTime); - } - } -})); -v165.httpHeaders = v175; -const v176 = []; -v176.push((function HTTP_DATA(chunk, resp) { - if (chunk) { - if (AWS.util.isNode()) { - resp.httpResponse.numBytes += chunk.length; - var total = resp.httpResponse.headers[\\"content-length\\"]; - var progress = { loaded: resp.httpResponse.numBytes, total: total }; - resp.request.emit(\\"httpDownloadProgress\\", [progress, resp]); - } - resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); - } -})); -v165.httpData = v176; -const v177 = []; -v177.push((function HTTP_DONE(resp) { - if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { - var body = AWS.util.buffer.concat(resp.httpResponse.buffers); - resp.httpResponse.body = body; - } - delete resp.httpResponse.numBytes; - delete resp.httpResponse.buffers; -})); -v165.httpDone = v177; -const v178 = []; -v178.push((function FINALIZE_ERROR(resp) { - if (resp.httpResponse.statusCode) { - resp.error.statusCode = resp.httpResponse.statusCode; - if (resp.error.retryable === undefined) { - resp.error.retryable = this.service.retryableError(resp.error, this); - } - } -}), (function INVALIDATE_CREDENTIALS(resp) { - if (!resp.error) - return; - switch (resp.error.code) { - case \\"RequestExpired\\": - case \\"ExpiredTokenException\\": - case \\"ExpiredToken\\": - resp.error.retryable = true; - resp.request.service.config.credentials.expired = true; - } -}), (function EXPIRED_SIGNATURE(resp) { - var err = resp.error; - if (!err) - return; - if (typeof err.code === \\"string\\" && typeof err.message === \\"string\\") { - if (err.code.match(/Signature/) && err.message.match(/expired/)) { - resp.error.retryable = true; - } - } -}), (function CLOCK_SKEWED(resp) { - if (!resp.error) - return; - if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew) { - resp.error.retryable = true; - } -}), (function REDIRECT(resp) { - if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers[\\"location\\"]) { - this.httpRequest.endpoint = new AWS.Endpoint(resp.httpResponse.headers[\\"location\\"]); - this.httpRequest.headers[\\"Host\\"] = this.httpRequest.endpoint.host; - resp.error.redirect = true; - resp.error.retryable = true; - } -}), (function RETRY_CHECK(resp) { - if (resp.error) { - if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.error.retryDelay = 0; - } - else if (resp.retryCount < resp.maxRetries) { - resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; - } - } -})); -v165.retry = v178; -const v179 = []; -v179.push((function RESET_RETRY_STATE(resp, done) { - var delay, willRetry = false; - if (resp.error) { - delay = resp.error.retryDelay || 0; - if (resp.error.retryable && resp.retryCount < resp.maxRetries) { - resp.retryCount++; - willRetry = true; - } - else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.redirectCount++; - willRetry = true; - } - } - if (willRetry && delay >= 0) { - resp.error = null; - setTimeout(done, delay); - } - else { - done(); - } -})); -v165.afterRetry = v179; -v164._events = v165; -v164.VALIDATE_CREDENTIALS = (function VALIDATE_CREDENTIALS(req, done) { - if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) - return done(); - req.service.config.getCredentials(function (err) { - if (err) { - req.response.error = AWS.util.error(err, { code: \\"CredentialsError\\", message: \\"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1\\" }); - } - done(); - }); -}); -v164.VALIDATE_REGION = (function VALIDATE_REGION(req) { - if (!req.service.isGlobalEndpoint) { - var dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!req.service.config.region) { - req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); - } - else if (!dnsHostRegex.test(req.service.config.region)) { - req.response.error = AWS.util.error(new Error(), { code: \\"ConfigError\\", message: \\"Invalid region in config\\" }); - } - } -}); -v164.BUILD_IDEMPOTENCY_TOKENS = (function BUILD_IDEMPOTENCY_TOKENS(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var idempotentMembers = operation.idempotentMembers; - if (!idempotentMembers.length) { - return; - } - var params = AWS.util.copy(req.params); - for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { - if (!params[idempotentMembers[i]]) { - params[idempotentMembers[i]] = AWS.util.uuid.v4(); - } - } - req.params = params; -}); -v164.VALIDATE_PARAMETERS = (function VALIDATE_PARAMETERS(req) { - if (!req.service.api.operations) { - return; - } - var rules = req.service.api.operations[req.operation].input; - var validation = req.service.config.paramValidation; - new AWS.ParamValidator(validation).validate(rules, req.params); -}); -v164.COMPUTE_CHECKSUM = (function COMPUTE_CHECKSUM(req) { - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - if (!operation) { - return; - } - var body = req.httpRequest.body; - var isNonStreamingPayload = body && (AWS.util.Buffer.isBuffer(body) || typeof body === \\"string\\"); - var headers = req.httpRequest.headers; - if (operation.httpChecksumRequired && req.service.config.computeChecksums && isNonStreamingPayload && !headers[\\"Content-MD5\\"]) { - var md5 = AWS.util.crypto.md5(body, \\"base64\\"); - headers[\\"Content-MD5\\"] = md5; - } -}); -v164.COMPUTE_SHA256 = (function COMPUTE_SHA256(req, done) { - req.haltHandlersOnError(); - if (!req.service.api.operations) { - return; - } - var operation = req.service.api.operations[req.operation]; - var authtype = operation ? operation.authtype : \\"\\"; - if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) - return done(); - if (req.service.getSignerClass(req) === AWS.Signers.V4) { - var body = req.httpRequest.body || \\"\\"; - if (authtype.indexOf(\\"unsigned-body\\") >= 0) { - req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; - return done(); - } - AWS.util.computeSha256(body, function (err, sha) { - if (err) { - done(err); - } - else { - req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = sha; - done(); - } - }); - } - else { - done(); - } -}); -v164.SET_CONTENT_LENGTH = (function SET_CONTENT_LENGTH(req) { - var authtype = getOperationAuthtype(req); - var payloadMember = AWS.util.getRequestPayloadShape(req); - if (req.httpRequest.headers[\\"Content-Length\\"] === undefined) { - try { - var length = AWS.util.string.byteLength(req.httpRequest.body); - req.httpRequest.headers[\\"Content-Length\\"] = length; - } - catch (err) { - if (payloadMember && payloadMember.isStreaming) { - if (payloadMember.requiresLength) { - throw err; - } - else if (authtype.indexOf(\\"unsigned-body\\") >= 0) { - req.httpRequest.headers[\\"Transfer-Encoding\\"] = \\"chunked\\"; - return; - } - else { - throw err; - } - } - throw err; - } - } -}); -v164.SET_HTTP_HOST = (function SET_HTTP_HOST(req) { - req.httpRequest.headers[\\"Host\\"] = req.httpRequest.endpoint.host; -}); -v164.SET_TRACE_ID = (function SET_TRACE_ID(req) { - var traceIdHeaderName = \\"X-Amzn-Trace-Id\\"; - if (AWS.util.isNode() && !Object.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { - var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; - var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; - var functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - var traceId = process.env[ENV_TRACE_ID]; - if (typeof functionName === \\"string\\" && functionName.length > 0 && typeof traceId === \\"string\\" && traceId.length > 0) { - req.httpRequest.headers[traceIdHeaderName] = traceId; - } - } -}); -v164.RESTART = (function RESTART() { - var err = this.response.error; - if (!err || !err.retryable) - return; - this.httpRequest = new AWS.HttpRequest(this.service.endpoint, this.service.region); - if (this.response.retryCount < this.service.config.maxRetries) { - this.response.retryCount++; - } - else { - this.response.error = null; - } -}); -v164.DISCOVER_ENDPOINT = v171; -v164.SIGN = (function SIGN(req, done) { - var service = req.service; - var operations = req.service.api.operations || {}; - var operation = operations[req.operation]; - var authtype = operation ? operation.authtype : \\"\\"; - if (!service.api.signatureVersion && !authtype && !service.config.signatureVersion) - return done(); - service.config.getCredentials(function (err, credentials) { - if (err) { - req.response.error = err; - return done(); - } - try { - var date = service.getSkewCorrectedDate(); - var SignerClass = service.getSignerClass(req); - var signer = new SignerClass(req.httpRequest, service.getSigningName(req), { - signatureCache: service.config.signatureCache, - operation: operation, - signatureVersion: service.api.signatureVersion - }); - signer.setServiceClientId(service._clientId); - delete req.httpRequest.headers[\\"Authorization\\"]; - delete req.httpRequest.headers[\\"Date\\"]; - delete req.httpRequest.headers[\\"X-Amz-Date\\"]; - signer.addAuthorization(credentials, date); - req.signedAt = date; - } - catch (e) { - req.response.error = e; - } - done(); - }); -}); -v164.VALIDATE_RESPONSE = (function VALIDATE_RESPONSE(resp) { - if (this.service.successfulResponse(resp, this)) { - resp.data = {}; - resp.error = null; - } - else { - resp.data = null; - resp.error = AWS.util.error(new Error(), { code: \\"UnknownError\\", message: \\"An unknown error occurred.\\" }); - } -}); -v164.ERROR = (function ERROR(err, resp) { - var errorCodeMapping = resp.request.service.api.errorCodeMapping; - if (errorCodeMapping && err && err.code) { - var mapping = errorCodeMapping[err.code]; - if (mapping) { - resp.error.code = mapping.code; - } - } -}); -v164.SEND = (function SEND(resp, done) { - resp.httpResponse._abortCallback = done; - resp.error = null; - resp.data = null; - function callback(httpResp) { - resp.httpResponse.stream = httpResp; - var stream = resp.request.httpRequest.stream; - var service = resp.request.service; - var api = service.api; - var operationName = resp.request.operation; - var operation = api.operations[operationName] || {}; - httpResp.on(\\"headers\\", function onHeaders(statusCode, headers, statusMessage) { - resp.request.emit(\\"httpHeaders\\", [statusCode, headers, resp, statusMessage]); - if (!resp.httpResponse.streaming) { - if (AWS.HttpClient.streamsApiVersion === 2) { - if (operation.hasEventOutput && service.successfulResponse(resp)) { - resp.request.emit(\\"httpDone\\"); - done(); - return; - } - httpResp.on(\\"readable\\", function onReadable() { - var data = httpResp.read(); - if (data !== null) { - resp.request.emit(\\"httpData\\", [data, resp]); - } - }); - } - else { - httpResp.on(\\"data\\", function onData(data) { - resp.request.emit(\\"httpData\\", [data, resp]); - }); - } - } - }); - httpResp.on(\\"end\\", function onEnd() { - if (!stream || !stream.didCallback) { - if (AWS.HttpClient.streamsApiVersion === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { - return; - } - resp.request.emit(\\"httpDone\\"); - done(); - } - }); - } - function progress(httpResp) { - httpResp.on(\\"sendProgress\\", function onSendProgress(value) { - resp.request.emit(\\"httpUploadProgress\\", [value, resp]); - }); - httpResp.on(\\"receiveProgress\\", function onReceiveProgress(value) { - resp.request.emit(\\"httpDownloadProgress\\", [value, resp]); - }); - } - function error(err) { - if (err.code !== \\"RequestAbortedError\\") { - var errCode = err.code === \\"TimeoutError\\" ? err.code : \\"NetworkingError\\"; - err = AWS.util.error(err, { - code: errCode, - region: resp.request.httpRequest.region, - hostname: resp.request.httpRequest.endpoint.hostname, - retryable: true - }); - } - resp.error = err; - resp.request.emit(\\"httpError\\", [resp.error, resp], function () { - done(); - }); - } - function executeSend() { - var http = AWS.HttpClient.getInstance(); - var httpOptions = resp.request.service.config.httpOptions || {}; - try { - var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); - progress(stream); - } - catch (err) { - error(err); - } - } - var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; - if (timeDiff >= 60 * 10) { - this.emit(\\"sign\\", [this], function (err) { - if (err) - done(err); - else - executeSend(); - }); - } - else { - executeSend(); - } -}); -v164.HTTP_HEADERS = (function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { - resp.httpResponse.statusCode = statusCode; - resp.httpResponse.statusMessage = statusMessage; - resp.httpResponse.headers = headers; - resp.httpResponse.body = AWS.util.buffer.toBuffer(\\"\\"); - resp.httpResponse.buffers = []; - resp.httpResponse.numBytes = 0; - var dateHeader = headers.date || headers.Date; - var service = resp.request.service; - if (dateHeader) { - var serverTime = Date.parse(dateHeader); - if (service.config.correctClockSkew && service.isClockSkewed(serverTime)) { - service.applyClockOffset(serverTime); - } - } -}); -v164.HTTP_DATA = (function HTTP_DATA(chunk, resp) { - if (chunk) { - if (AWS.util.isNode()) { - resp.httpResponse.numBytes += chunk.length; - var total = resp.httpResponse.headers[\\"content-length\\"]; - var progress = { loaded: resp.httpResponse.numBytes, total: total }; - resp.request.emit(\\"httpDownloadProgress\\", [progress, resp]); - } - resp.httpResponse.buffers.push(AWS.util.buffer.toBuffer(chunk)); - } -}); -v164.HTTP_DONE = (function HTTP_DONE(resp) { - if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { - var body = AWS.util.buffer.concat(resp.httpResponse.buffers); - resp.httpResponse.body = body; - } - delete resp.httpResponse.numBytes; - delete resp.httpResponse.buffers; -}); -v164.FINALIZE_ERROR = (function FINALIZE_ERROR(resp) { - if (resp.httpResponse.statusCode) { - resp.error.statusCode = resp.httpResponse.statusCode; - if (resp.error.retryable === undefined) { - resp.error.retryable = this.service.retryableError(resp.error, this); - } - } -}); -v164.INVALIDATE_CREDENTIALS = (function INVALIDATE_CREDENTIALS(resp) { - if (!resp.error) - return; - switch (resp.error.code) { - case \\"RequestExpired\\": - case \\"ExpiredTokenException\\": - case \\"ExpiredToken\\": - resp.error.retryable = true; - resp.request.service.config.credentials.expired = true; - } -}); -v164.EXPIRED_SIGNATURE = (function EXPIRED_SIGNATURE(resp) { - var err = resp.error; - if (!err) - return; - if (typeof err.code === \\"string\\" && typeof err.message === \\"string\\") { - if (err.code.match(/Signature/) && err.message.match(/expired/)) { - resp.error.retryable = true; - } - } -}); -v164.CLOCK_SKEWED = (function CLOCK_SKEWED(resp) { - if (!resp.error) - return; - if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew) { - resp.error.retryable = true; - } -}); -v164.REDIRECT = (function REDIRECT(resp) { - if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers[\\"location\\"]) { - this.httpRequest.endpoint = new AWS.Endpoint(resp.httpResponse.headers[\\"location\\"]); - this.httpRequest.headers[\\"Host\\"] = this.httpRequest.endpoint.host; - resp.error.redirect = true; - resp.error.retryable = true; - } -}); -v164.RETRY_CHECK = (function RETRY_CHECK(resp) { - if (resp.error) { - if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.error.retryDelay = 0; - } - else if (resp.retryCount < resp.maxRetries) { - resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; - } - } -}); -v164.RESET_RETRY_STATE = (function RESET_RETRY_STATE(resp, done) { - var delay, willRetry = false; - if (resp.error) { - delay = resp.error.retryDelay || 0; - if (resp.error.retryable && resp.retryCount < resp.maxRetries) { - resp.retryCount++; - willRetry = true; - } - else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.redirectCount++; - willRetry = true; - } - } - if (willRetry && delay >= 0) { - resp.error = null; - setTimeout(done, delay); - } - else { - done(); - } -}); -v162.Core = v164; -const v180 = Object.create(v163); -const v181 = {}; -const v182 = []; -v182.push(v43); -v181.extractData = v182; -const v183 = []; -v183.push(v43); -v181.extractError = v183; -const v184 = []; -v184.push((function ENOTFOUND_ERROR(err) { - function isDNSError(err) { - return err.errno === \\"ENOTFOUND\\" || typeof err.errno === \\"number\\" && typeof AWS.util.getSystemErrorName === \\"function\\" && [\\"EAI_NONAME\\", \\"EAI_NODATA\\"].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); - } - if (err.code === \\"NetworkingError\\" && isDNSError(err)) { - var message = \\"Inaccessible host: \`\\" + err.hostname + \\"' at port \`\\" + err.port + \\"'. This service may not be available in the \`\\" + err.region + \\"' region.\\"; - this.response.error = AWS.util.error(new Error(message), { - code: \\"UnknownEndpoint\\", - region: err.region, - hostname: err.hostname, - retryable: true, - originalError: err - }); - } -})); -v181.httpError = v184; -v180._events = v181; -v180.EXTRACT_REQUEST_ID = v43; -v180.ENOTFOUND_ERROR = (function ENOTFOUND_ERROR(err) { - function isDNSError(err) { - return err.errno === \\"ENOTFOUND\\" || typeof err.errno === \\"number\\" && typeof AWS.util.getSystemErrorName === \\"function\\" && [\\"EAI_NONAME\\", \\"EAI_NODATA\\"].indexOf(AWS.util.getSystemErrorName(err.errno) >= 0); - } - if (err.code === \\"NetworkingError\\" && isDNSError(err)) { - var message = \\"Inaccessible host: \`\\" + err.hostname + \\"' at port \`\\" + err.port + \\"'. This service may not be available in the \`\\" + err.region + \\"' region.\\"; - this.response.error = AWS.util.error(new Error(message), { - code: \\"UnknownEndpoint\\", - region: err.region, - hostname: err.hostname, - retryable: true, - originalError: err - }); - } -}); -v162.CorePost = v180; -const v185 = Object.create(v163); -const v186 = {}; -const v187 = []; -v187.push((function LOG_REQUEST(resp) { - var req = resp.request; - var logger = req.service.config.logger; - if (!logger) - return; - function filterSensitiveLog(inputShape, shape) { - if (!shape) { - return shape; - } - if (inputShape.isSensitive) { - return \\"***SensitiveInformation***\\"; - } - switch (inputShape.type) { - case \\"structure\\": - var struct = {}; - AWS.util.each(shape, function (subShapeName, subShape) { - if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { - struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); - } - else { - struct[subShapeName] = subShape; - } - }); - return struct; - case \\"list\\": - var list = []; - AWS.util.arrayEach(shape, function (subShape, index) { - list.push(filterSensitiveLog(inputShape.member, subShape)); - }); - return list; - case \\"map\\": - var map = {}; - AWS.util.each(shape, function (key, value) { - map[key] = filterSensitiveLog(inputShape.value, value); - }); - return map; - default: return shape; - } - } - function buildMessage() { - var time = resp.request.service.getSkewCorrectedDate().getTime(); - var delta = (time - req.startTime.getTime()) / 1000; - var ansi = logger.isTTY ? true : false; - var status = resp.httpResponse.statusCode; - var censoredParams = req.params; - if (req.service.api.operations && req.service.api.operations[req.operation] && req.service.api.operations[req.operation].input) { - var inputShape = req.service.api.operations[req.operation].input; - censoredParams = filterSensitiveLog(inputShape, req.params); - } - var params = require(\\"util\\").inspect(censoredParams, true, null); - var message = \\"\\"; - if (ansi) - message += \\"\\\\u001B[33m\\"; - message += \\"[AWS \\" + req.service.serviceIdentifier + \\" \\" + status; - message += \\" \\" + delta.toString() + \\"s \\" + resp.retryCount + \\" retries]\\"; - if (ansi) - message += \\"\\\\u001B[0;1m\\"; - message += \\" \\" + AWS.util.string.lowerFirst(req.operation); - message += \\"(\\" + params + \\")\\"; - if (ansi) - message += \\"\\\\u001B[0m\\"; - return message; - } - var line = buildMessage(); - if (typeof logger.log === \\"function\\") { - logger.log(line); - } - else if (typeof logger.write === \\"function\\") { - logger.write(line + \\"\\\\n\\"); - } -})); -v186.complete = v187; -v185._events = v186; -v185.LOG_REQUEST = (function LOG_REQUEST(resp) { - var req = resp.request; - var logger = req.service.config.logger; - if (!logger) - return; - function filterSensitiveLog(inputShape, shape) { - if (!shape) { - return shape; - } - if (inputShape.isSensitive) { - return \\"***SensitiveInformation***\\"; - } - switch (inputShape.type) { - case \\"structure\\": - var struct = {}; - AWS.util.each(shape, function (subShapeName, subShape) { - if (Object.prototype.hasOwnProperty.call(inputShape.members, subShapeName)) { - struct[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); - } - else { - struct[subShapeName] = subShape; - } - }); - return struct; - case \\"list\\": - var list = []; - AWS.util.arrayEach(shape, function (subShape, index) { - list.push(filterSensitiveLog(inputShape.member, subShape)); - }); - return list; - case \\"map\\": - var map = {}; - AWS.util.each(shape, function (key, value) { - map[key] = filterSensitiveLog(inputShape.value, value); - }); - return map; - default: return shape; - } - } - function buildMessage() { - var time = resp.request.service.getSkewCorrectedDate().getTime(); - var delta = (time - req.startTime.getTime()) / 1000; - var ansi = logger.isTTY ? true : false; - var status = resp.httpResponse.statusCode; - var censoredParams = req.params; - if (req.service.api.operations && req.service.api.operations[req.operation] && req.service.api.operations[req.operation].input) { - var inputShape = req.service.api.operations[req.operation].input; - censoredParams = filterSensitiveLog(inputShape, req.params); - } - var params = require(\\"util\\").inspect(censoredParams, true, null); - var message = \\"\\"; - if (ansi) - message += \\"\\\\u001B[33m\\"; - message += \\"[AWS \\" + req.service.serviceIdentifier + \\" \\" + status; - message += \\" \\" + delta.toString() + \\"s \\" + resp.retryCount + \\" retries]\\"; - if (ansi) - message += \\"\\\\u001B[0;1m\\"; - message += \\" \\" + AWS.util.string.lowerFirst(req.operation); - message += \\"(\\" + params + \\")\\"; - if (ansi) - message += \\"\\\\u001B[0m\\"; - return message; - } - var line = buildMessage(); - if (typeof logger.log === \\"function\\") { - logger.log(line); - } - else if (typeof logger.write === \\"function\\") { - logger.write(line + \\"\\\\n\\"); - } -}); -v162.Logger = v185; -const v188 = Object.create(v163); -const v189 = {}; -const v190 = []; -v190.push(v92); -v189.build = v190; -const v191 = []; -v191.push(v94); -v189.extractData = v191; -const v192 = []; -v192.push(v93); -v189.extractError = v192; -v188._events = v189; -v188.BUILD = v92; -v188.EXTRACT_DATA = v94; -v188.EXTRACT_ERROR = v93; -v162.Json = v188; -const v193 = Object.create(v163); -const v194 = {}; -const v195 = []; -v195.push(v100); -v194.build = v195; -const v196 = []; -v196.push(v102); -v194.extractData = v196; -const v197 = []; -v197.push(v101); -v194.extractError = v197; -v193._events = v194; -v193.BUILD = v100; -v193.EXTRACT_DATA = v102; -v193.EXTRACT_ERROR = v101; -v162.Rest = v193; -const v198 = Object.create(v163); -const v199 = {}; -const v200 = []; -v200.push(v105); -v199.build = v200; -const v201 = []; -v201.push(v107); -v199.extractData = v201; -const v202 = []; -v202.push(v106); -v199.extractError = v202; -v198._events = v199; -v198.BUILD = v105; -v198.EXTRACT_DATA = v107; -v198.EXTRACT_ERROR = v106; -v162.RestJson = v198; -const v203 = Object.create(v163); -const v204 = {}; -const v205 = []; -v205.push(v109); -v204.build = v205; -const v206 = []; -v206.push(v111); -v204.extractData = v206; -const v207 = []; -v207.push(v110); -v204.extractError = v207; -v203._events = v204; -v203.BUILD = v109; -v203.EXTRACT_DATA = v111; -v203.EXTRACT_ERROR = v110; -v162.RestXml = v203; -const v208 = Object.create(v163); -const v209 = {}; -const v210 = []; -v210.push(v96); -v209.build = v210; -const v211 = []; -v211.push(v98); -v209.extractData = v211; -const v212 = []; -v212.push(v97); -v209.extractError = v212; -v208._events = v209; -v208.BUILD = v96; -v208.EXTRACT_DATA = v98; -v208.EXTRACT_ERROR = v97; -v162.Query = v208; -v2.EventListeners = v162; -const v213 = v2.Request; -v2.Request = v213; -const v214 = v2.Response; -v2.Response = v214; -const v215 = v2.ResourceWaiter; -v2.ResourceWaiter = v215; -const v216 = v2.ParamValidator; -v2.ParamValidator = v216; -const v217 = Object.create(v163); -const v218 = {}; -v217._events = v218; -v2.events = v217; -const v219 = v73.IniLoader; -v2.IniLoader = v219; -const v220 = require(\\"aws-sdk\\"); -const v221 = v220.STS; -v2.STS = v221; -const v222 = v2.TemporaryCredentials; -v2.TemporaryCredentials = v222; -const v223 = v2.ChainableTemporaryCredentials; -v2.ChainableTemporaryCredentials = v223; -const v224 = v2.WebIdentityCredentials; -v2.WebIdentityCredentials = v224; -const v225 = v220.CognitoIdentity; -v2.CognitoIdentity = v225; -const v226 = v2.CognitoIdentityCredentials; -v2.CognitoIdentityCredentials = v226; -const v227 = v2.SAMLCredentials; -v2.SAMLCredentials = v227; -const v228 = v2.ProcessCredentials; -v2.ProcessCredentials = v228; -const v229 = v2.NodeHttpClient; -v2.NodeHttpClient = v229; -const v230 = v2.TokenFileWebIdentityCredentials; -v2.TokenFileWebIdentityCredentials = v230; -const v231 = require(\\"aws-sdk\\"); -const v232 = v231; -v2.MetadataService = v232; -const v233 = v2.EC2MetadataCredentials; -v2.EC2MetadataCredentials = v233; -const v234 = v2.ECSCredentials; -v2.RemoteCredentials = v234; -v2.ECSCredentials = v234; -const v235 = v2.EnvironmentCredentials; -v2.EnvironmentCredentials = v235; -const v236 = v2.FileSystemCredentials; -v2.FileSystemCredentials = v236; -const v237 = v2.SharedIniFileCredentials; -v2.SharedIniFileCredentials = v237; -const v238 = v2.SsoCredentials; -v2.SsoCredentials = v238; -const v239 = require(\\"aws-sdk\\"); -const v240 = v239; -v2.ACM = v240; -const v241 = require(\\"aws-sdk\\"); -const v242 = v241; -v2.APIGateway = v242; -const v243 = require(\\"aws-sdk\\"); -const v244 = v243; -v2.ApplicationAutoScaling = v244; -const v245 = require(\\"aws-sdk\\"); -const v246 = v245; -v2.AppStream = v246; -const v247 = require(\\"aws-sdk\\"); -const v248 = v247; -v2.AutoScaling = v248; -const v249 = require(\\"aws-sdk\\"); -const v250 = v249; -v2.Batch = v250; -const v251 = require(\\"aws-sdk\\"); -const v252 = v251; -v2.Budgets = v252; -const v253 = require(\\"aws-sdk\\"); -const v254 = v253; -v2.CloudDirectory = v254; -const v255 = require(\\"aws-sdk\\"); -const v256 = v255; -v2.CloudFormation = v256; -const v257 = require(\\"aws-sdk\\"); -const v258 = v257; -v2.CloudFront = v258; -const v259 = require(\\"aws-sdk\\"); -const v260 = v259; -v2.CloudHSM = v260; -const v261 = require(\\"aws-sdk\\"); -const v262 = v261; -v2.CloudSearch = v262; -const v263 = require(\\"aws-sdk\\"); -const v264 = v263; -v2.CloudSearchDomain = v264; -const v265 = require(\\"aws-sdk\\"); -const v266 = v265; -v2.CloudTrail = v266; -const v267 = require(\\"aws-sdk\\"); -const v268 = v267; -v2.CloudWatch = v268; -const v269 = require(\\"aws-sdk\\"); -const v270 = v269; -v2.CloudWatchEvents = v270; -const v271 = require(\\"aws-sdk\\"); -const v272 = v271; -v2.CloudWatchLogs = v272; -const v273 = require(\\"aws-sdk\\"); -const v274 = v273; -v2.CodeBuild = v274; -const v275 = require(\\"aws-sdk\\"); -const v276 = v275; -v2.CodeCommit = v276; -const v277 = require(\\"aws-sdk\\"); -const v278 = v277; -v2.CodeDeploy = v278; -const v279 = require(\\"aws-sdk\\"); -const v280 = v279; -v2.CodePipeline = v280; -const v281 = require(\\"aws-sdk\\"); -const v282 = v281; -v2.CognitoIdentityServiceProvider = v282; -const v283 = require(\\"aws-sdk\\"); -const v284 = v283; -v2.CognitoSync = v284; -const v285 = require(\\"aws-sdk\\"); -const v286 = v285; -v2.ConfigService = v286; -const v287 = require(\\"aws-sdk\\"); -const v288 = v287; -v2.CUR = v288; -const v289 = require(\\"aws-sdk\\"); -const v290 = v289; -v2.DataPipeline = v290; -const v291 = require(\\"aws-sdk\\"); -const v292 = v291; -v2.DeviceFarm = v292; -const v293 = require(\\"aws-sdk\\"); -const v294 = v293; -v2.DirectConnect = v294; -const v295 = require(\\"aws-sdk\\"); -const v296 = v295; -v2.DirectoryService = v296; -const v297 = require(\\"aws-sdk\\"); -const v298 = v297; -v2.Discovery = v298; -const v299 = require(\\"aws-sdk\\"); -const v300 = v299; -v2.DMS = v300; -const v301 = require(\\"aws-sdk\\"); -const v302 = v301; -v2.DynamoDB = v302; -const v303 = require(\\"aws-sdk\\"); -const v304 = v303; -v2.DynamoDBStreams = v304; -const v305 = require(\\"aws-sdk\\"); -const v306 = v305; -v2.EC2 = v306; -const v307 = require(\\"aws-sdk\\"); -const v308 = v307; -v2.ECR = v308; -const v309 = require(\\"aws-sdk\\"); -const v310 = v309; -v2.ECS = v310; -const v311 = require(\\"aws-sdk\\"); -const v312 = v311; -v2.EFS = v312; -const v313 = require(\\"aws-sdk\\"); -const v314 = v313; -v2.ElastiCache = v314; -const v315 = require(\\"aws-sdk\\"); -const v316 = v315; -v2.ElasticBeanstalk = v316; -const v317 = require(\\"aws-sdk\\"); -const v318 = v317; -v2.ELB = v318; -const v319 = require(\\"aws-sdk\\"); -const v320 = v319; -v2.ELBv2 = v320; -const v321 = require(\\"aws-sdk\\"); -const v322 = v321; -v2.EMR = v322; -const v323 = require(\\"aws-sdk\\"); -const v324 = v323; -v2.ES = v324; -const v325 = require(\\"aws-sdk\\"); -const v326 = v325; -v2.ElasticTranscoder = v326; -const v327 = require(\\"aws-sdk\\"); -const v328 = v327; -v2.Firehose = v328; -const v329 = require(\\"aws-sdk\\"); -const v330 = v329; -v2.GameLift = v330; -const v331 = require(\\"aws-sdk\\"); -const v332 = v331; -v2.Glacier = v332; -const v333 = require(\\"aws-sdk\\"); -const v334 = v333; -v2.Health = v334; -const v335 = require(\\"aws-sdk\\"); -const v336 = v335; -v2.IAM = v336; -const v337 = require(\\"aws-sdk\\"); -const v338 = v337; -v2.ImportExport = v338; -const v339 = require(\\"aws-sdk\\"); -const v340 = v339; -v2.Inspector = v340; -const v341 = require(\\"aws-sdk\\"); -const v342 = v341; -v2.Iot = v342; -const v343 = require(\\"aws-sdk\\"); -const v344 = v343; -v2.IotData = v344; -const v345 = require(\\"aws-sdk\\"); -const v346 = v345; -v2.Kinesis = v346; -const v347 = require(\\"aws-sdk\\"); -const v348 = v347; -v2.KinesisAnalytics = v348; -const v349 = require(\\"aws-sdk\\"); -const v350 = v349; -v2.KMS = v350; -const v351 = require(\\"aws-sdk\\"); -const v352 = v351; -v2.Lambda = v352; -const v353 = require(\\"aws-sdk\\"); -const v354 = v353; -v2.LexRuntime = v354; -const v355 = require(\\"aws-sdk\\"); -const v356 = v355; -v2.Lightsail = v356; -const v357 = require(\\"aws-sdk\\"); -const v358 = v357; -v2.MachineLearning = v358; -const v359 = require(\\"aws-sdk\\"); -const v360 = v359; -v2.MarketplaceCommerceAnalytics = v360; -const v361 = require(\\"aws-sdk\\"); -const v362 = v361; -v2.MarketplaceMetering = v362; -const v363 = require(\\"aws-sdk\\"); -const v364 = v363; -v2.MTurk = v364; -const v365 = require(\\"aws-sdk\\"); -const v366 = v365; -v2.MobileAnalytics = v366; -const v367 = require(\\"aws-sdk\\"); -const v368 = v367; -v2.OpsWorks = v368; -const v369 = require(\\"aws-sdk\\"); -const v370 = v369; -v2.OpsWorksCM = v370; -const v371 = require(\\"aws-sdk\\"); -const v372 = v371; -v2.Organizations = v372; -const v373 = require(\\"aws-sdk\\"); -const v374 = v373; -v2.Pinpoint = v374; -const v375 = require(\\"aws-sdk\\"); -const v376 = v375; -v2.Polly = v376; -const v377 = require(\\"aws-sdk\\"); -const v378 = v377; -v2.RDS = v378; -const v379 = require(\\"aws-sdk\\"); -const v380 = v379; -v2.Redshift = v380; -const v381 = require(\\"aws-sdk\\"); -const v382 = v381; -v2.Rekognition = v382; -const v383 = require(\\"aws-sdk\\"); -const v384 = v383; -v2.ResourceGroupsTaggingAPI = v384; -const v385 = require(\\"aws-sdk\\"); -const v386 = v385; -v2.Route53 = v386; -const v387 = require(\\"aws-sdk\\"); -const v388 = v387; -v2.Route53Domains = v388; -const v389 = require(\\"aws-sdk\\"); -const v390 = v389; -v2.S3 = v390; -const v391 = require(\\"aws-sdk\\"); -const v392 = v391; -v2.S3Control = v392; -const v393 = require(\\"aws-sdk\\"); -const v394 = v393; -v2.ServiceCatalog = v394; -const v395 = require(\\"aws-sdk\\"); -const v396 = v395; -v2.SES = v396; -const v397 = require(\\"aws-sdk\\"); -const v398 = v397; -v2.Shield = v398; -const v399 = require(\\"aws-sdk\\"); -const v400 = v399; -v2.SimpleDB = v400; -const v401 = require(\\"aws-sdk\\"); -const v402 = v401; -v2.SMS = v402; -const v403 = require(\\"aws-sdk\\"); -const v404 = v403; -v2.Snowball = v404; -const v405 = require(\\"aws-sdk\\"); -const v406 = v405; -v2.SNS = v406; -const v407 = require(\\"aws-sdk\\"); -const v408 = v407; -v2.SQS = v408; -const v409 = require(\\"aws-sdk\\"); -const v410 = v409; -v2.SSM = v410; -const v411 = require(\\"aws-sdk\\"); -const v412 = v411; -v2.StorageGateway = v412; -const v413 = require(\\"aws-sdk\\"); -const v414 = v413; -v2.StepFunctions = v414; -const v415 = require(\\"aws-sdk\\"); -const v416 = v415; -v2.Support = v416; -const v417 = require(\\"aws-sdk\\"); -const v418 = v417; -v2.SWF = v418; -v2.SimpleWorkflow = v418; -const v419 = require(\\"aws-sdk\\"); -const v420 = v419; -v2.XRay = v420; -const v421 = require(\\"aws-sdk\\"); -const v422 = v421; -v2.WAF = v422; -const v423 = require(\\"aws-sdk\\"); -const v424 = v423; -v2.WAFRegional = v424; -const v425 = require(\\"aws-sdk\\"); -const v426 = v425; -v2.WorkDocs = v426; -const v427 = require(\\"aws-sdk\\"); -const v428 = v427; -v2.WorkSpaces = v428; -const v429 = require(\\"aws-sdk\\"); -const v430 = v429; -v2.CodeStar = v430; -const v431 = require(\\"aws-sdk\\"); -const v432 = v431; -v2.LexModelBuildingService = v432; -const v433 = require(\\"aws-sdk\\"); -const v434 = v433; -v2.MarketplaceEntitlementService = v434; -const v435 = require(\\"aws-sdk\\"); -const v436 = v435; -v2.Athena = v436; -const v437 = require(\\"aws-sdk\\"); -const v438 = v437; -v2.Greengrass = v438; -const v439 = require(\\"aws-sdk\\"); -const v440 = v439; -v2.DAX = v440; -const v441 = require(\\"aws-sdk\\"); -const v442 = v441; -v2.MigrationHub = v442; -const v443 = require(\\"aws-sdk\\"); -const v444 = v443; -v2.CloudHSMV2 = v444; -const v445 = require(\\"aws-sdk\\"); -const v446 = v445; -v2.Glue = v446; -const v447 = require(\\"aws-sdk\\"); -const v448 = v447; -v2.Mobile = v448; -const v449 = require(\\"aws-sdk\\"); -const v450 = v449; -v2.Pricing = v450; -const v451 = require(\\"aws-sdk\\"); -const v452 = v451; -v2.CostExplorer = v452; -const v453 = require(\\"aws-sdk\\"); -const v454 = v453; -v2.MediaConvert = v454; -const v455 = require(\\"aws-sdk\\"); -const v456 = v455; -v2.MediaLive = v456; -const v457 = require(\\"aws-sdk\\"); -const v458 = v457; -v2.MediaPackage = v458; -const v459 = require(\\"aws-sdk\\"); -const v460 = v459; -v2.MediaStore = v460; -const v461 = require(\\"aws-sdk\\"); -const v462 = v461; -v2.MediaStoreData = v462; -const v463 = require(\\"aws-sdk\\"); -const v464 = v463; -v2.AppSync = v464; -const v465 = require(\\"aws-sdk\\"); -const v466 = v465; -v2.GuardDuty = v466; -const v467 = require(\\"aws-sdk\\"); -const v468 = v467; -v2.MQ = v468; -const v469 = require(\\"aws-sdk\\"); -const v470 = v469; -v2.Comprehend = v470; -const v471 = require(\\"aws-sdk\\"); -const v472 = v471; -v2.IoTJobsDataPlane = v472; -const v473 = require(\\"aws-sdk\\"); -const v474 = v473; -v2.KinesisVideoArchivedMedia = v474; -const v475 = require(\\"aws-sdk\\"); -const v476 = v475; -v2.KinesisVideoMedia = v476; -const v477 = require(\\"aws-sdk\\"); -const v478 = v477; -v2.KinesisVideo = v478; -const v479 = require(\\"aws-sdk\\"); -const v480 = v479; -v2.SageMakerRuntime = v480; -const v481 = require(\\"aws-sdk\\"); -const v482 = v481; -v2.SageMaker = v482; -const v483 = require(\\"aws-sdk\\"); -const v484 = v483; -v2.Translate = v484; -const v485 = require(\\"aws-sdk\\"); -const v486 = v485; -v2.ResourceGroups = v486; -const v487 = require(\\"aws-sdk\\"); -const v488 = v487; -v2.AlexaForBusiness = v488; -const v489 = require(\\"aws-sdk\\"); -const v490 = v489; -v2.Cloud9 = v490; -const v491 = require(\\"aws-sdk\\"); -const v492 = v491; -v2.ServerlessApplicationRepository = v492; -const v493 = require(\\"aws-sdk\\"); -const v494 = v493; -v2.ServiceDiscovery = v494; -const v495 = require(\\"aws-sdk\\"); -const v496 = v495; -v2.WorkMail = v496; -const v497 = require(\\"aws-sdk\\"); -const v498 = v497; -v2.AutoScalingPlans = v498; -const v499 = require(\\"aws-sdk\\"); -const v500 = v499; -v2.TranscribeService = v500; -const v501 = require(\\"aws-sdk\\"); -const v502 = v501; -v2.Connect = v502; -const v503 = require(\\"aws-sdk\\"); -const v504 = v503; -v2.ACMPCA = v504; -const v505 = require(\\"aws-sdk\\"); -const v506 = v505; -v2.FMS = v506; -const v507 = require(\\"aws-sdk\\"); -const v508 = v507; -v2.SecretsManager = v508; -const v509 = require(\\"aws-sdk\\"); -const v510 = v509; -v2.IoTAnalytics = v510; -const v511 = require(\\"aws-sdk\\"); -const v512 = v511; -v2.IoT1ClickDevicesService = v512; -const v513 = require(\\"aws-sdk\\"); -const v514 = v513; -v2.IoT1ClickProjects = v514; -const v515 = require(\\"aws-sdk\\"); -const v516 = v515; -v2.PI = v516; -const v517 = require(\\"aws-sdk\\"); -const v518 = v517; -v2.Neptune = v518; -const v519 = require(\\"aws-sdk\\"); -const v520 = v519; -v2.MediaTailor = v520; -const v521 = require(\\"aws-sdk\\"); -const v522 = v521; -v2.EKS = v522; -const v523 = require(\\"aws-sdk\\"); -const v524 = v523; -v2.Macie = v524; -const v525 = require(\\"aws-sdk\\"); -const v526 = v525; -v2.DLM = v526; -const v527 = require(\\"aws-sdk\\"); -const v528 = v527; -v2.Signer = v528; -const v529 = require(\\"aws-sdk\\"); -const v530 = v529; -v2.Chime = v530; -const v531 = require(\\"aws-sdk\\"); -const v532 = v531; -v2.PinpointEmail = v532; -const v533 = require(\\"aws-sdk\\"); -const v534 = v533; -v2.RAM = v534; -const v535 = require(\\"aws-sdk\\"); -const v536 = v535; -v2.Route53Resolver = v536; -const v537 = require(\\"aws-sdk\\"); -const v538 = v537; -v2.PinpointSMSVoice = v538; -const v539 = require(\\"aws-sdk\\"); -const v540 = v539; -v2.QuickSight = v540; -const v541 = require(\\"aws-sdk\\"); -const v542 = v541; -v2.RDSDataService = v542; -const v543 = require(\\"aws-sdk\\"); -const v544 = v543; -v2.Amplify = v544; -const v545 = require(\\"aws-sdk\\"); -const v546 = v545; -v2.DataSync = v546; -const v547 = require(\\"aws-sdk\\"); -const v548 = v547; -v2.RoboMaker = v548; -const v549 = require(\\"aws-sdk\\"); -const v550 = v549; -v2.Transfer = v550; -const v551 = require(\\"aws-sdk\\"); -const v552 = v551; -v2.GlobalAccelerator = v552; -const v553 = require(\\"aws-sdk\\"); -const v554 = v553; -v2.ComprehendMedical = v554; -const v555 = require(\\"aws-sdk\\"); -const v556 = v555; -v2.KinesisAnalyticsV2 = v556; -const v557 = require(\\"aws-sdk\\"); -const v558 = v557; -v2.MediaConnect = v558; -const v559 = require(\\"aws-sdk\\"); -const v560 = v559; -v2.FSx = v560; -const v561 = require(\\"aws-sdk\\"); -const v562 = v561; -v2.SecurityHub = v562; -const v563 = require(\\"aws-sdk\\"); -const v564 = v563; -v2.AppMesh = v564; -const v565 = require(\\"aws-sdk\\"); -const v566 = v565; -v2.LicenseManager = v566; -const v567 = require(\\"aws-sdk\\"); -const v568 = v567; -v2.Kafka = v568; -const v569 = require(\\"aws-sdk\\"); -const v570 = v569; -v2.ApiGatewayManagementApi = v570; -const v571 = require(\\"aws-sdk\\"); -const v572 = v571; -v2.ApiGatewayV2 = v572; -const v573 = require(\\"aws-sdk\\"); -const v574 = v573; -v2.DocDB = v574; -const v575 = require(\\"aws-sdk\\"); -const v576 = v575; -v2.Backup = v576; -const v577 = require(\\"aws-sdk\\"); -const v578 = v577; -v2.WorkLink = v578; -const v579 = require(\\"aws-sdk\\"); -const v580 = v579; -v2.Textract = v580; -const v581 = require(\\"aws-sdk\\"); -const v582 = v581; -v2.ManagedBlockchain = v582; -const v583 = require(\\"aws-sdk\\"); -const v584 = v583; -v2.MediaPackageVod = v584; -const v585 = require(\\"aws-sdk\\"); -const v586 = v585; -v2.GroundStation = v586; -const v587 = require(\\"aws-sdk\\"); -const v588 = v587; -v2.IoTThingsGraph = v588; -const v589 = require(\\"aws-sdk\\"); -const v590 = v589; -v2.IoTEvents = v590; -const v591 = require(\\"aws-sdk\\"); -const v592 = v591; -v2.IoTEventsData = v592; -const v593 = require(\\"aws-sdk\\"); -const v594 = v593; -v2.Personalize = v594; -const v595 = require(\\"aws-sdk\\"); -const v596 = v595; -v2.PersonalizeEvents = v596; -const v597 = require(\\"aws-sdk\\"); -const v598 = v597; -v2.PersonalizeRuntime = v598; -const v599 = require(\\"aws-sdk\\"); -const v600 = v599; -v2.ApplicationInsights = v600; -const v601 = require(\\"aws-sdk\\"); -const v602 = v601; -v2.ServiceQuotas = v602; -const v603 = require(\\"aws-sdk\\"); -const v604 = v603; -v2.EC2InstanceConnect = v604; -const v605 = require(\\"aws-sdk\\"); -const v606 = v605; -v2.EventBridge = v606; -const v607 = require(\\"aws-sdk\\"); -const v608 = v607; -v2.LakeFormation = v608; -const v609 = require(\\"aws-sdk\\"); -const v610 = v609; -v2.ForecastService = v610; -const v611 = require(\\"aws-sdk\\"); -const v612 = v611; -v2.ForecastQueryService = v612; -const v613 = require(\\"aws-sdk\\"); -const v614 = v613; -v2.QLDB = v614; -const v615 = require(\\"aws-sdk\\"); -const v616 = v615; -v2.QLDBSession = v616; -const v617 = require(\\"aws-sdk\\"); -const v618 = v617; -v2.WorkMailMessageFlow = v618; -const v619 = require(\\"aws-sdk\\"); -const v620 = v619; -v2.CodeStarNotifications = v620; -const v621 = require(\\"aws-sdk\\"); -const v622 = v621; -v2.SavingsPlans = v622; -const v623 = require(\\"aws-sdk\\"); -const v624 = v623; -v2.SSO = v624; -const v625 = require(\\"aws-sdk\\"); -const v626 = v625; -v2.SSOOIDC = v626; -const v627 = require(\\"aws-sdk\\"); -const v628 = v627; -v2.MarketplaceCatalog = v628; -const v629 = require(\\"aws-sdk\\"); -const v630 = v629; -v2.DataExchange = v630; -const v631 = require(\\"aws-sdk\\"); -const v632 = v631; -v2.SESV2 = v632; -const v633 = require(\\"aws-sdk\\"); -const v634 = v633; -v2.MigrationHubConfig = v634; -const v635 = require(\\"aws-sdk\\"); -const v636 = v635; -v2.ConnectParticipant = v636; -const v637 = require(\\"aws-sdk\\"); -const v638 = v637; -v2.AppConfig = v638; -const v639 = require(\\"aws-sdk\\"); -const v640 = v639; -v2.IoTSecureTunneling = v640; -const v641 = require(\\"aws-sdk\\"); -const v642 = v641; -v2.WAFV2 = v642; -const v643 = require(\\"aws-sdk\\"); -const v644 = v643; -v2.ElasticInference = v644; -const v645 = require(\\"aws-sdk\\"); -const v646 = v645; -v2.Imagebuilder = v646; -const v647 = require(\\"aws-sdk\\"); -const v648 = v647; -v2.Schemas = v648; -const v649 = require(\\"aws-sdk\\"); -const v650 = v649; -v2.AccessAnalyzer = v650; -const v651 = require(\\"aws-sdk\\"); -const v652 = v651; -v2.CodeGuruReviewer = v652; -const v653 = require(\\"aws-sdk\\"); -const v654 = v653; -v2.CodeGuruProfiler = v654; -const v655 = require(\\"aws-sdk\\"); -const v656 = v655; -v2.ComputeOptimizer = v656; -const v657 = require(\\"aws-sdk\\"); -const v658 = v657; -v2.FraudDetector = v658; -const v659 = require(\\"aws-sdk\\"); -const v660 = v659; -v2.Kendra = v660; -const v661 = require(\\"aws-sdk\\"); -const v662 = v661; -v2.NetworkManager = v662; -const v663 = require(\\"aws-sdk\\"); -const v664 = v663; -v2.Outposts = v664; -const v665 = require(\\"aws-sdk\\"); -const v666 = v665; -v2.AugmentedAIRuntime = v666; -const v667 = require(\\"aws-sdk\\"); -const v668 = v667; -v2.EBS = v668; -const v669 = require(\\"aws-sdk\\"); -const v670 = v669; -v2.KinesisVideoSignalingChannels = v670; -const v671 = require(\\"aws-sdk\\"); -const v672 = v671; -v2.Detective = v672; -const v673 = require(\\"aws-sdk\\"); -const v674 = v673; -v2.CodeStarconnections = v674; -const v675 = require(\\"aws-sdk\\"); -const v676 = v675; -v2.Synthetics = v676; -const v677 = require(\\"aws-sdk\\"); -const v678 = v677; -v2.IoTSiteWise = v678; -const v679 = require(\\"aws-sdk\\"); -const v680 = v679; -v2.Macie2 = v680; -const v681 = require(\\"aws-sdk\\"); -const v682 = v681; -v2.CodeArtifact = v682; -const v683 = require(\\"aws-sdk\\"); -const v684 = v683; -v2.Honeycode = v684; -const v685 = require(\\"aws-sdk\\"); -const v686 = v685; -v2.IVS = v686; -const v687 = require(\\"aws-sdk\\"); -const v688 = v687; -v2.Braket = v688; -const v689 = require(\\"aws-sdk\\"); -const v690 = v689; -v2.IdentityStore = v690; -const v691 = require(\\"aws-sdk\\"); -const v692 = v691; -v2.Appflow = v692; -const v693 = require(\\"aws-sdk\\"); -const v694 = v693; -v2.RedshiftData = v694; -const v695 = require(\\"aws-sdk\\"); -const v696 = v695; -v2.SSOAdmin = v696; -const v697 = require(\\"aws-sdk\\"); -const v698 = v697; -v2.TimestreamQuery = v698; -const v699 = require(\\"aws-sdk\\"); -const v700 = v699; -v2.TimestreamWrite = v700; -const v701 = require(\\"aws-sdk\\"); -const v702 = v701; -v2.S3Outposts = v702; -const v703 = require(\\"aws-sdk\\"); -const v704 = v703; -v2.DataBrew = v704; -const v705 = require(\\"aws-sdk\\"); -const v706 = v705; -v2.ServiceCatalogAppRegistry = v706; -const v707 = require(\\"aws-sdk\\"); -const v708 = v707; -v2.NetworkFirewall = v708; -const v709 = require(\\"aws-sdk\\"); -const v710 = v709; -v2.MWAA = v710; -const v711 = require(\\"aws-sdk\\"); -const v712 = v711; -v2.AmplifyBackend = v712; -const v713 = require(\\"aws-sdk\\"); -const v714 = v713; -v2.AppIntegrations = v714; -const v715 = require(\\"aws-sdk\\"); -const v716 = v715; -v2.ConnectContactLens = v716; -const v717 = require(\\"aws-sdk\\"); -const v718 = v717; -v2.DevOpsGuru = v718; -const v719 = require(\\"aws-sdk\\"); -const v720 = v719; -v2.ECRPUBLIC = v720; -const v721 = require(\\"aws-sdk\\"); -const v722 = v721; -v2.LookoutVision = v722; -const v723 = require(\\"aws-sdk\\"); -const v724 = v723; -v2.SageMakerFeatureStoreRuntime = v724; -const v725 = require(\\"aws-sdk\\"); -const v726 = v725; -v2.CustomerProfiles = v726; -const v727 = require(\\"aws-sdk\\"); -const v728 = v727; -v2.AuditManager = v728; -const v729 = require(\\"aws-sdk\\"); -const v730 = v729; -v2.EMRcontainers = v730; -const v731 = require(\\"aws-sdk\\"); -const v732 = v731; -v2.HealthLake = v732; -const v733 = require(\\"aws-sdk\\"); -const v734 = v733; -v2.SagemakerEdge = v734; -const v735 = require(\\"aws-sdk\\"); -const v736 = v735; -v2.Amp = v736; -const v737 = require(\\"aws-sdk\\"); -const v738 = v737; -v2.GreengrassV2 = v738; -const v739 = require(\\"aws-sdk\\"); -const v740 = v739; -v2.IotDeviceAdvisor = v740; -const v741 = require(\\"aws-sdk\\"); -const v742 = v741; -v2.IoTFleetHub = v742; -const v743 = require(\\"aws-sdk\\"); -const v744 = v743; -v2.IoTWireless = v744; -const v745 = require(\\"aws-sdk\\"); -const v746 = v745; -v2.Location = v746; -const v747 = require(\\"aws-sdk\\"); -const v748 = v747; -v2.WellArchitected = v748; -const v749 = require(\\"aws-sdk\\"); -const v750 = v749; -v2.LexModelsV2 = v750; -const v751 = require(\\"aws-sdk\\"); -const v752 = v751; -v2.LexRuntimeV2 = v752; -const v753 = require(\\"aws-sdk\\"); -const v754 = v753; -v2.Fis = v754; -const v755 = require(\\"aws-sdk\\"); -const v756 = v755; -v2.LookoutMetrics = v756; -const v757 = require(\\"aws-sdk\\"); -const v758 = v757; -v2.Mgn = v758; -const v759 = require(\\"aws-sdk\\"); -const v760 = v759; -v2.LookoutEquipment = v760; -const v761 = require(\\"aws-sdk\\"); -const v762 = v761; -v2.Nimble = v762; -const v763 = require(\\"aws-sdk\\"); -const v764 = v763; -v2.Finspace = v764; -const v765 = require(\\"aws-sdk\\"); -const v766 = v765; -v2.Finspacedata = v766; -const v767 = require(\\"aws-sdk\\"); -const v768 = v767; -v2.SSMContacts = v768; -const v769 = require(\\"aws-sdk\\"); -const v770 = v769; -v2.SSMIncidents = v770; -const v771 = require(\\"aws-sdk\\"); -const v772 = v771; -v2.ApplicationCostProfiler = v772; -const v773 = require(\\"aws-sdk\\"); -const v774 = v773; -v2.AppRunner = v774; -const v775 = require(\\"aws-sdk\\"); -const v776 = v775; -v2.Proton = v776; -const v777 = require(\\"aws-sdk\\"); -const v778 = v777; -v2.Route53RecoveryCluster = v778; -const v779 = require(\\"aws-sdk\\"); -const v780 = v779; -v2.Route53RecoveryControlConfig = v780; -const v781 = require(\\"aws-sdk\\"); -const v782 = v781; -v2.Route53RecoveryReadiness = v782; -const v783 = require(\\"aws-sdk\\"); -const v784 = v783; -v2.ChimeSDKIdentity = v784; -const v785 = require(\\"aws-sdk\\"); -const v786 = v785; -v2.ChimeSDKMessaging = v786; -const v787 = require(\\"aws-sdk\\"); -const v788 = v787; -v2.SnowDeviceManagement = v788; -const v789 = require(\\"aws-sdk\\"); -const v790 = v789; -v2.MemoryDB = v790; -const v791 = require(\\"aws-sdk\\"); -const v792 = v791; -v2.OpenSearch = v792; -const v793 = require(\\"aws-sdk\\"); -const v794 = v793; -v2.KafkaConnect = v794; -const v795 = require(\\"aws-sdk\\"); -const v796 = v795; -v2.VoiceID = v796; -const v797 = require(\\"aws-sdk\\"); -const v798 = v797; -v2.Wisdom = v798; -const v799 = require(\\"aws-sdk\\"); -const v800 = v799; -v2.Account = v800; -const v801 = require(\\"aws-sdk\\"); -const v802 = v801; -v2.CloudControl = v802; -const v803 = require(\\"aws-sdk\\"); -const v804 = v803; -v2.Grafana = v804; -const v805 = require(\\"aws-sdk\\"); -const v806 = v805; -v2.Panorama = v806; -const v807 = require(\\"aws-sdk\\"); -const v808 = v807; -v2.ChimeSDKMeetings = v808; -const v809 = require(\\"aws-sdk\\"); -const v810 = v809; -v2.Resiliencehub = v810; -const v811 = require(\\"aws-sdk\\"); -const v812 = v811; -v2.MigrationHubStrategy = v812; -const v813 = require(\\"aws-sdk\\"); -const v814 = v813; -v2.AppConfigData = v814; -const v815 = require(\\"aws-sdk\\"); -const v816 = v815; -v2.Drs = v816; -const v817 = require(\\"aws-sdk\\"); -const v818 = v817; -v2.MigrationHubRefactorSpaces = v818; -const v819 = require(\\"aws-sdk\\"); -const v820 = v819; -v2.Evidently = v820; -const v821 = require(\\"aws-sdk\\"); -const v822 = v821; -v2.Inspector2 = v822; -const v823 = require(\\"aws-sdk\\"); -const v824 = v823; -v2.Rbin = v824; -const v825 = require(\\"aws-sdk\\"); -const v826 = v825; -v2.RUM = v826; -const v827 = require(\\"aws-sdk\\"); -const v828 = v827; -v2.BackupGateway = v828; -const v829 = require(\\"aws-sdk\\"); -const v830 = v829; -v2.IoTTwinMaker = v830; -const v831 = require(\\"aws-sdk\\"); -const v832 = v831; -v2.WorkSpacesWeb = v832; -const v833 = require(\\"aws-sdk\\"); -const v834 = v833; -v2.AmplifyUIBuilder = v834; -const v835 = require(\\"aws-sdk\\"); -const v836 = v835; -v2.Keyspaces = v836; -const v837 = require(\\"aws-sdk\\"); -const v838 = v837; -v2.Billingconductor = v838; -const v839 = require(\\"aws-sdk\\"); -const v840 = v839; -v2.GameSparks = v840; -const v841 = require(\\"aws-sdk\\"); -const v842 = v841; -v2.PinpointSMSVoiceV2 = v842; -const v843 = require(\\"aws-sdk\\"); -const v844 = v843; -v2.Ivschat = v844; -const v845 = require(\\"aws-sdk\\"); -const v846 = v845; -v2.ChimeSDKMediaPipelines = v846; -const v847 = require(\\"aws-sdk\\"); -const v848 = v847; -v2.EMRServerless = v848; -const v849 = require(\\"aws-sdk\\"); -const v850 = v849; -v2.M2 = v850; -const v851 = require(\\"aws-sdk\\"); -const v852 = v851; -v2.ConnectCampaigns = v852; -const v853 = require(\\"aws-sdk\\"); -const v854 = v853; -v2.RedshiftServerless = v854; -const v855 = require(\\"aws-sdk\\"); -const v856 = v855; -v2.RolesAnywhere = v856; -const v857 = require(\\"aws-sdk\\"); -const v858 = v857; -v2.LicenseManagerUserSubscriptions = v858; -const v859 = require(\\"aws-sdk\\"); -const v860 = v859; -v2.BackupStorage = v860; -v2.PrivateNetworks = v139; -var v1 = v2; -const v0 = () => { const client = new v1.DynamoDB(); return client.config.endpoint; }; -exports.handler = v0; -" -`; - exports[`serialize a class declaration 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { method() { @@ -29140,7 +23818,7 @@ var v2 = class Foo { } }; var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method(); foo.method(); @@ -29152,6 +23830,7 @@ exports.handler = v0; exports[`serialize a class declaration with constructor 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { constructor() { @@ -29163,7 +23842,7 @@ var v2 = class Foo { } }; var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method(); foo.method(); @@ -29175,6 +23854,7 @@ exports.handler = v0; exports[`serialize a class hierarchy 1`] = ` "// +var v0; var v5 = 0; var v4 = class Foo { method() { @@ -29188,7 +23868,7 @@ var v2 = class Bar extends v3 { } }; var v1 = v2; -var v0 = () => { +v0 = () => { const bar = new v1(); return [bar.method(), v5]; }; @@ -29198,8 +23878,10 @@ exports.handler = v0; exports[`serialize a class mix-in 1`] = ` "// +var v0; +var v4; var v5 = 0; -var v4 = () => { +v4 = () => { return class Foo { method() { return v5 += 1; @@ -29213,7 +23895,7 @@ var v2 = class Bar extends v3() { } }; var v1 = v2; -var v0 = () => { +v0 = () => { const bar = new v1(); return [bar.method(), v5]; }; @@ -29223,6 +23905,7 @@ exports.handler = v0; exports[`serialize a monkey-patched class getter 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { get method() { @@ -29233,7 +23916,7 @@ Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { return v3 += 2; } }); var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method; foo.method; @@ -29245,6 +23928,7 @@ exports.handler = v0; exports[`serialize a monkey-patched class getter and setter 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { set method(val) { @@ -29260,7 +23944,7 @@ Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { v3 += val + 1; } }); var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; @@ -29272,6 +23956,7 @@ exports.handler = v0; exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { set method(val) { @@ -29285,7 +23970,7 @@ Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { return v3 + 1; }, set: Object.getOwnPropertyDescriptor(v2.prototype, \\"method\\").set }); var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; @@ -29297,20 +23982,23 @@ exports.handler = v0; exports[`serialize a monkey-patched class method 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { method() { v3 += 1; } }; -var v4 = function() { +var v4; +v4 = function() { v3 += 2; }; var v5 = {}; +v5.constructor = v4; v4.prototype = v5; v2.prototype.method = v4; var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method(); foo.method(); @@ -29322,25 +24010,29 @@ exports.handler = v0; exports[`serialize a monkey-patched class method that has been re-set 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { method() { v3 += 1; } }; -var v4 = function() { +var v4; +v4 = function() { v3 += 2; }; var v5 = {}; +v5.constructor = v4; v4.prototype = v5; v2.prototype.method = v4; var v1 = v2; var v6 = {}; +v6.constructor = v2; v6.method = v4; var v7 = function method() { v3 += 1; }; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method(); v6.method = v7; @@ -29353,6 +24045,7 @@ exports.handler = v0; exports[`serialize a monkey-patched class setter 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { set method(val) { @@ -29363,7 +24056,7 @@ Object.defineProperty(v2.prototype, \\"method\\", { set: function set(val) { v3 += val + 1; } }); var v1 = v2; -var v0 = () => { +v0 = () => { const foo = new v1(); foo.method = 1; foo.method = 1; @@ -29382,20 +24075,23 @@ var __publicField = (obj, key, value) => { }; // +var v0; var v3 = 0; var _a; var v2 = (_a = class { }, __publicField(_a, \\"method\\", () => { v3 += 1; }), _a); -var v4 = function() { +var v4; +v4 = function() { v3 += 2; }; var v5 = {}; +v5.constructor = v4; v4.prototype = v5; v2.method = v4; var v1 = v2; -var v0 = () => { +v0 = () => { v1.method(); v1.method(); return v3; @@ -29406,20 +24102,23 @@ exports.handler = v0; exports[`serialize a monkey-patched static class method 1`] = ` "// +var v0; var v3 = 0; var v2 = class Foo { method() { v3 += 1; } }; -var v4 = function() { +var v4; +v4 = function() { v3 += 2; }; var v5 = {}; +v5.constructor = v4; v4.prototype = v5; v2.method = v4; var v1 = v2; -var v0 = () => { +v0 = () => { v1.method(); v1.method(); return v3; @@ -29430,7 +24129,8 @@ exports.handler = v0; exports[`serialize a monkey-patched static class property 1`] = ` "// -var v0 = () => { +var v0; +v0 = () => { return 2; }; exports.handler = v0; @@ -29439,10 +24139,12 @@ exports.handler = v0; exports[`serialize an imported module 1`] = ` "// -var v0 = function isNode(a) { +var v0; +v0 = function isNode(a) { return typeof (a == null ? void 0 : a.kind) === \\"number\\"; }; var v1 = {}; +v1.constructor = v0; v0.prototype = v1; exports.handler = v0; " diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 8adbc3ec..e50f774c 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -452,23 +452,21 @@ test("instantiating the AWS SDK without esbuild", async () => { const closure = await expectClosure( () => { const client = new AWS.DynamoDB(); - return client.config.endpoint; }, { useESBuild: false, } ); - expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); }); -test("instantiating the AWS SDK v3", async () => { - const closure = await expectClosure(() => { - const client = new DynamoDBClient({}); +// test("instantiating the AWS SDK v3", async () => { +// const closure = await expectClosure(() => { +// const client = new DynamoDBClient({}); - return client.config.serviceId; - }); +// return client.config.serviceId; +// }); - expect(closure()).toEqual("DynamoDB"); -}); +// expect(closure()).toEqual("DynamoDB"); +// }); From 757521e645acd5e36b806772aa19dca8850c1b49 Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 13 Aug 2022 05:27:20 -0700 Subject: [PATCH 070/107] feat: symbols and workong on global registry --- src/serialize-closure.ts | 20 ++++++++++++++++++-- src/serialize-globals.ts | 39 ++++++++++++++++++--------------------- 2 files changed, 36 insertions(+), 23 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index e1ed6f62..7a10521c 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -374,6 +374,22 @@ export function serializeClosure( return numberExpr(value); } else if (typeof value === "bigint") { return ts.factory.createBigIntLiteral(value.toString(10)); + } else if (typeof value === "symbol") { + const symbol = serialize(Symbol); + if (typeof value.description === "string") { + if (value === Symbol.for(value.description)) { + // Symbol.for(description) + return callExpr(propAccessExpr(symbol, "for"), [ + stringExpr(value.description), + ]); + } else { + // Symbol(description) + return callExpr(symbol, [stringExpr(value.description)]); + } + } else { + // Symbol() + return callExpr(symbol, []); + } } else if (typeof value === "string") { if (options?.serialize) { const result = options.serialize(value); @@ -596,13 +612,13 @@ export function serializeClosure( expr: ts.Expression, ignore?: string[] ) { - const ignoreSet = new Set(ignore); + const ignoreSet = ignore ? new Set() : undefined; // for each of the object's own properties, emit a statement that assigns the value of that property // vObj.propName = vValue Object.getOwnPropertyNames(value) .filter( (propName) => - !ignoreSet.has(propName) && + ignoreSet?.has(propName) !== true && (options?.shouldCaptureProp?.(value, propName) ?? true) ) .forEach((propName) => { diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts index 70f3002f..9ed42f15 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-globals.ts @@ -19,34 +19,31 @@ for (const moduleName of modules) { } function registerValue(value: any, expr: ts.Expression) { + if (Globals.has(value)) { + return; + } Globals.set(value, () => expr); + registerOwnProperties(value, expr); if (typeof value === "function") { - Globals.set(value.prototype, () => propAccessExpr(expr, "prototype")); + registerValue(value.prototype, propAccessExpr(expr, "prototype")); + } else if (value && typeof value === "object") { + registerValue(value.constructor, propAccessExpr(expr, "constructor")); } - registerOwnProperties(value, expr); } function registerOwnProperties(value: any, expr: ts.Expression) { - // go through each of its properties - for (const propName of Object.getOwnPropertyNames(value)) { - if (value === process && propName === "env") { - // never serialize environment variables - continue; - } - const propDesc = Object.getOwnPropertyDescriptor(value, propName); - if (!propDesc?.writable || propDesc?.get || propDesc.set) { - continue; - } - const propValue = propDesc.value; - if ( - propValue && - !Globals.has(propValue) && - (typeof propValue === "function" || typeof propValue === "object") - ) { - Globals.set(propValue, () => propAccessExpr(expr, propName)); - if (typeof propValue === "function") { - registerOwnProperties(propValue, propAccessExpr(expr, propName)); + if (value && (typeof value === "object" || typeof value === "function")) { + // go through each of its properties + for (const propName of Object.getOwnPropertyNames(value)) { + if (value === process && propName === "env") { + // never serialize environment variables + continue; + } + const propDesc = Object.getOwnPropertyDescriptor(value, propName); + if (!propDesc?.writable || propDesc?.get || propDesc.set) { + continue; } + registerValue(propDesc.value, propAccessExpr(expr, propName)); } } } From ba91cde35356131b52b06c506c1e9fd8b51d2c1d Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 16 Aug 2022 12:51:17 -0700 Subject: [PATCH 071/107] fix: lexical scope, singleton and various other bugs --- .projenrc.ts | 2 +- .swcrc | 2 +- .vscode/launch.json | 4 +- jest.config.ts | 22 +- src/function.ts | 13 +- src/integration.ts | 2 +- src/node.ts | 71 +- src/serialize-closure.ts | 365 +- src/serialize-globals.json | 491 +- src/serialize-globals.ts | 46 +- test-app/.swcrc | 9 +- test-app/yarn.lock | 8 +- .../serialize-closure.test.ts.snap | 55891 +++++++++------- test/serialize-closure.test.ts | 33 +- 14 files changed, 32471 insertions(+), 24488 deletions(-) diff --git a/.projenrc.ts b/.projenrc.ts index 013ba471..65d06786 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -199,7 +199,7 @@ new JsonFile(project, ".swcrc", { plugins: [["@functionless/ast-reflection", {}]], }, }, - minify: false, + minify: true, sourceMaps: "inline", module: { type: "commonjs", diff --git a/.swcrc b/.swcrc index 7a21792b..c6c9553a 100644 --- a/.swcrc +++ b/.swcrc @@ -21,7 +21,7 @@ ] } }, - "minify": false, + "minify": true, "sourceMaps": "inline", "module": { "type": "commonjs" diff --git a/.vscode/launch.json b/.vscode/launch.json index 41a2493c..7fbeb668 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -37,8 +37,8 @@ "type": "node", "request": "launch", "runtimeExecutable": "node", - "runtimeArgs": ["--nolazy"], - "args": ["./lib/message-board.js"], + "runtimeArgs": ["--nolazy", "-r", "./hook"], + "args": ["./src/message-board.ts"], "outFiles": [ "${workspaceRoot}/lib/**/*.js", "${workspaceRoot}/test-app/lib/**/*.js", diff --git a/jest.config.ts b/jest.config.ts index 1abb7311..0f2fde57 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,16 +1,14 @@ // ensure the SWC require-hook is installed before anything else runs -import register from "@swc/register/lib/node"; +import "@swc/register"; -register({ - ignore: [ - (file) => { - if (file.includes("aws-sdk")) { - console.log(file); - } - return false; - }, - ], -}); +// uncomment to apply the transformer to all node_modules +// register({ +// ignore: [ +// (file) => { +// return false; +// }, +// ], +// }); import fs from "fs"; import path from "path"; @@ -29,6 +27,6 @@ export default async (): Promise => { return { // override defaults programmatically if needed ...defaults, - transformIgnorePatterns: ["node_modules/typescript/.*"], + // transformIgnorePatterns: ["node_modules/typescript/.*"], }; }; diff --git a/src/function.ts b/src/function.ts index 0aed0d7d..7fd2fc8d 100644 --- a/src/function.ts +++ b/src/function.ts @@ -728,7 +728,7 @@ export class Function< await callbackLambdaCode.generate( nativeIntegrationsPrewarm, // TODO: make default ASYNC until we are happy - props?.serializer ?? SerializerImpl.EXPERIMENTAL_SWC + props?.serializer ?? SerializerImpl.STABLE_DEBUGGER ); } catch (e) { if (e instanceof SynthError) { @@ -831,7 +831,11 @@ export class CallbackLambdaCode extends aws_lambda.Code { serializerImpl, this.props ); - const bundled = await bundle(serialized); + const bundled = + serializerImpl === SerializerImpl.STABLE_DEBUGGER + ? (await bundle(serialized)).contents + : // the SWC implementation runs es-build automatically + serialized; const asset = aws_lambda.Code.fromAsset("", { assetHashType: AssetHashType.OUTPUT, @@ -841,10 +845,7 @@ export class CallbackLambdaCode extends aws_lambda.Code { user: scope.node.addr, local: { tryBundle(outdir, _opts) { - fs.writeFileSync( - path.resolve(outdir, "index.js"), - bundled.contents - ); + fs.writeFileSync(path.resolve(outdir, "index.js"), bundled); return true; }, }, diff --git a/src/integration.ts b/src/integration.ts index d98e6c91..88929777 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -307,7 +307,7 @@ export function findDeepIntegrations( node.fork( new CallExpr( node.span, - new ReferenceExpr(node.expr.span, "", () => integration, 0), + new ReferenceExpr(node.expr.span, "", () => integration, 0, 0), node.args.map((arg) => arg.clone()) ) ) diff --git a/src/node.ts b/src/node.ts index 536f972e..c023f730 100644 --- a/src/node.ts +++ b/src/node.ts @@ -435,58 +435,101 @@ export abstract class BaseNode< * @returns a mapping of name to the node visible in this node's scope. */ public getLexicalScope(): Map { - return new Map(getLexicalScope(this as unknown as FunctionlessNode)); + return new Map( + getLexicalScope(this as unknown as FunctionlessNode, "scope") + ); /** * @param kind the relation between the current `node` and the requesting `node`. */ - function getLexicalScope(node: FunctionlessNode | undefined): Binding[] { + function getLexicalScope( + node: FunctionlessNode | undefined, + /** + * the relation between the current `node` and the requesting `node`. + * * `scope` - the current node is an ancestor of the requesting node + * * `sibling` - the current node is the sibling of the requesting node + * + * ```ts + * for(const i in []) { // scope - emits i=self + * const a = ""; // sibling - emits a=self + * for(const a of []) {} // sibling emits [] + * a // requesting node + * } + * ``` + * + * some nodes only emit names to their `scope` (ex: for) and + * other nodes emit names to all of their `sibling`s (ex: variableStmt) + */ + kind: "scope" | "sibling" + ): Binding[] { if (node === undefined) { return []; } return getLexicalScope( - node.nodeKind === "Stmt" && node.prev ? node.prev : node.parent - ).concat(getNames(node)); + node.nodeKind === "Stmt" && node.prev ? node.prev : node.parent, + node.nodeKind === "Stmt" && node.prev ? "sibling" : "scope" + ).concat(getNames(node, kind)); } /** * @see getLexicalScope */ - function getNames(node: FunctionlessNode | undefined): Binding[] { + function getNames( + node: FunctionlessNode | undefined, + kind: "scope" | "sibling" + ): Binding[] { if (node === undefined) { return []; } else if (isParameterDecl(node)) { return isIdentifier(node.name) ? [[node.name.name, node]] - : getNames(node.name); + : getNames(node.name, kind); } else if (isVariableDeclList(node)) { - return node.decls.flatMap((d) => getNames(d)); + return node.decls.flatMap((d) => getNames(d, kind)); } else if (isVariableStmt(node)) { - return getNames(node.declList); + return getNames(node.declList, kind); } else if (isVariableDecl(node)) { if (isBindingPattern(node.name)) { - return getNames(node.name); + return getNames(node.name, kind); } return [[node.name.name, node]]; } else if (isBindingElem(node)) { if (isIdentifier(node.name)) { return [[node.name.name, node]]; } - return getNames(node.name); + return getNames(node.name, kind); } else if (isBindingPattern(node)) { - return node.bindings.flatMap((b) => getNames(b)); + return node.bindings.flatMap((b) => getNames(b, kind)); } else if (isFunctionLike(node)) { - const parameters = node.parameters.flatMap((param) => getNames(param)); + if (kind === "sibling" && isFunctionDecl(node)) { + if (node.name) { + return [[node.name, node]]; + } else { + return []; + } + } + const parameters = node.parameters.flatMap((param) => + getNames(param, kind) + ); if ((isFunctionExpr(node) || isFunctionDecl(node)) && node.name) { return [[node.name, node], ...parameters]; } else { return parameters; } } else if (isForInStmt(node) || isForOfStmt(node) || isForStmt(node)) { - return getNames(node.initializer); + if (kind === "sibling") return []; + return getNames(node.initializer, kind); } else if (isCatchClause(node) && node.variableDecl?.name) { - return getNames(node.variableDecl); + if (kind === "sibling") return []; + return getNames(node.variableDecl, kind); } else if (isClassDecl(node) || (isClassExpr(node) && node.name)) { + if (kind === "sibling" && isClassDecl(node)) { + if (node.name) { + return [[node.name.name, node]]; + } else { + return []; + } + } return [[node.name!.name, node]]; } else { return []; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 7a10521c..37b69359 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -12,7 +12,7 @@ import { SetAccessorDecl, VariableDeclKind, } from "./declaration"; -import { ClassExpr } from "./expression"; +import { BinaryOp, ClassExpr } from "./expression"; import { isArgument, isArrayBinding, @@ -220,10 +220,10 @@ export function serializeClosure( const statements: ts.Statement[] = []; - const singleton = (() => { - // stores a map of value to a ts.Expression producing that value - const valueIds = new Map(); + // stores a map of value to a ts.Expression producing that value + const valueIds = new Map(); + const singleton = (() => { return function (value: any, produce: () => T): T { // optimize for number of map get/set operations as this is hot code let expr = valueIds.get(value); @@ -358,10 +358,11 @@ export function serializeClosure( } function serialize(value: any): ts.Expression { - return singleton(value, () => serializeValue(value)); + return valueIds.get(value) ?? serializeValue(value); } function serializeValue(value: any): ts.Expression { + ts.SyntaxKind; if (value === undefined) { return undefinedExpr(); } else if (value === null) { @@ -376,20 +377,22 @@ export function serializeClosure( return ts.factory.createBigIntLiteral(value.toString(10)); } else if (typeof value === "symbol") { const symbol = serialize(Symbol); - if (typeof value.description === "string") { - if (value === Symbol.for(value.description)) { - // Symbol.for(description) - return callExpr(propAccessExpr(symbol, "for"), [ - stringExpr(value.description), - ]); + return singleton(value, () => { + if (typeof value.description === "string") { + if (value === Symbol.for(value.description)) { + // Symbol.for(description) + return callExpr(propAccessExpr(symbol, "for"), [ + stringExpr(value.description), + ]); + } else { + // Symbol(description) + return callExpr(symbol, [stringExpr(value.description)]); + } } else { - // Symbol(description) - return callExpr(symbol, [stringExpr(value.description)]); + // Symbol() + return callExpr(symbol, []); } - } else { - // Symbol() - return callExpr(symbol, []); - } + }); } else if (typeof value === "string") { if (options?.serialize) { const result = options.serialize(value); @@ -403,11 +406,19 @@ export function serializeClosure( } return stringExpr(value); } else if (value instanceof RegExp) { - return ts.factory.createRegularExpressionLiteral(value.source); + return singleton(value, () => + ts.factory.createRegularExpressionLiteral( + `/${value.source}/${value.global ? "g" : ""}${ + value.ignoreCase ? "i" : "" + }${value.multiline ? "m" : ""}` + ) + ); } else if (value instanceof Date) { - return ts.factory.createNewExpression(idExpr("Date"), undefined, [ - numberExpr(value.getTime()), - ]); + return singleton(value, () => + ts.factory.createNewExpression(idExpr("Date"), undefined, [ + numberExpr(value.getTime()), + ]) + ); } else if (Array.isArray(value)) { // TODO: should we check the array's prototype? @@ -499,7 +510,9 @@ export function serializeClosure( } if (Globals.has(value)) { - return emitVarDecl("const", uniqueName(), Globals.get(value)!()); + return singleton(value, () => + emitVarDecl("const", uniqueName(), Globals.get(value)!()) + ); } // if this is not compiled by functionless, we can only serialize it if it is exported by a module @@ -530,7 +543,6 @@ export function serializeClosure( } // eslint-disable-next-line no-debugger - debugger; throw new Error("not implemented"); } @@ -566,6 +578,8 @@ export function serializeClosure( if (value.name === "bound requireModuleOrMock") { // heuristic to catch Jest's hacked-up require return idExpr("require"); + } else if (value.name.startsWith("bound ")) { + // TODO } else if (value.name === "Object") { // return serialize(Object); @@ -573,11 +587,9 @@ export function serializeClosure( value.toString() === `function ${value.name}() { [native code] }` ) { // eslint-disable-next-line no-debugger - debugger; } // eslint-disable-next-line no-debugger - debugger; throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); @@ -589,13 +601,11 @@ export function serializeClosure( ): ts.Expression { // emit the class to the closure const classDecl = singleton(classVal, () => - emitVarDecl( - "const", - uniqueName(classAST), - toTS(classAST) as ts.Expression - ) + emitVarDecl("var", uniqueName(classAST)) ); + emit(exprStmt(assignExpr(classDecl, toTS(classAST) as ts.Expression))); + monkeyPatch(classDecl, classVal, classVal, ["prototype"]); monkeyPatch( propAccessExpr(classDecl, "prototype"), @@ -622,36 +632,49 @@ export function serializeClosure( (options?.shouldCaptureProp?.(value, propName) ?? true) ) .forEach((propName) => { - const propDescriptor = Object.getOwnPropertyDescriptor(value, propName); - if (propDescriptor?.writable) { - if ( - propDescriptor.get === undefined && - propDescriptor.set === undefined - ) { - emit( - setPropertyStmt(expr, propName, serialize(propDescriptor.value)) - ); - } else { - const getter = propDescriptor.get - ? serialize(propDescriptor.get) - : undefinedExpr(); - const setter = propDescriptor.set - ? serialize(propDescriptor.set) - : undefinedExpr(); - - emit( - exprStmt( - definePropertyExpr( - expr, - stringExpr(propName), - objectExpr({ - get: getter, - set: setter, - }) - ) + const propDescriptor = Object.getOwnPropertyDescriptor( + value, + propName + )!; + + if ( + !propDescriptor.writable && + (propName === "length" || + propName === "name" || + propName === "arguments" || + propName === "caller") + ) { + // don't attempt to write Function's length and name properties + return; + } + + if ( + propDescriptor.get === undefined && + propDescriptor.set === undefined + ) { + emit( + setPropertyStmt(expr, propName, serialize(propDescriptor.value)) + ); + } else { + const getter = propDescriptor.get + ? serialize(propDescriptor.get) + : undefinedExpr(); + const setter = propDescriptor.set + ? serialize(propDescriptor.set) + : undefinedExpr(); + + emit( + exprStmt( + definePropertyExpr( + expr, + stringExpr(propName), + objectExpr({ + get: getter, + set: setter, + }) ) - ); - } + ) + ); } }); } @@ -788,7 +811,9 @@ export function serializeClosure( } } else if (propDescriptor.writable) { // this is a literal value, like an object, so let's serialize it and set - emit(setPropertyStmt(varName, propName, propDescriptor.value)); + emit( + setPropertyStmt(varName, propName, serialize(propDescriptor.value)) + ); } } } @@ -941,13 +966,6 @@ export function serializeClosure( } else if (isPrivateIdentifier(node)) { return ts.factory.createPrivateIdentifier(node.name); } else if (isPropAccessExpr(node)) { - if (isRef(node)) { - const value = deRef(node); - if (typeof value !== "function") { - return serialize(value); - } - } - return ts.factory.createPropertyAccessChain( toTS(node.expr) as ts.Expression, node.isOptional @@ -955,31 +973,6 @@ export function serializeClosure( : undefined, toTS(node.name) as ts.MemberName ); - - function deRef(expr: FunctionlessNode): any { - if (isReferenceExpr(expr)) { - return expr.ref(); - } else if (isPropAccessExpr(expr)) { - return deRef(expr.expr)?.[expr.name.name]; - } - throw new Error(`was not rooted`); - } - - function isRef(expr: FunctionlessNode): boolean { - if (isReferenceExpr(expr)) { - return true; - } else if (isPropAccessExpr(expr)) { - if (isReferenceExpr(expr.expr)) { - const ref = expr.expr.ref(); - if (ref === process && expr.name.name === "env") { - // process.env, we should never serialize these values literally - return false; - } - } - return isRef(expr.expr); - } - return false; - } } else if (isElementAccessExpr(node)) { return ts.factory.createElementAccessChain( toTS(node.expr) as ts.Expression, @@ -1209,91 +1202,7 @@ export function serializeClosure( } else if (isBinaryExpr(node)) { return ts.factory.createBinaryExpression( toTS(node.left) as ts.Expression, - node.op === "!=" - ? ts.SyntaxKind.ExclamationEqualsToken - : node.op === "!==" - ? ts.SyntaxKind.ExclamationEqualsEqualsToken - : node.op === "==" - ? ts.SyntaxKind.EqualsEqualsToken - : node.op === "===" - ? ts.SyntaxKind.EqualsEqualsEqualsToken - : node.op === "%" - ? ts.SyntaxKind.PercentToken - : node.op === "%=" - ? ts.SyntaxKind.PercentEqualsToken - : node.op === "&&" - ? ts.SyntaxKind.AmpersandAmpersandToken - : node.op === "&" - ? ts.SyntaxKind.AmpersandAmpersandToken - : node.op === "*" - ? ts.SyntaxKind.AsteriskToken - : node.op === "**" - ? ts.SyntaxKind.AsteriskToken - : node.op === "&&=" - ? ts.SyntaxKind.AmpersandAmpersandEqualsToken - : node.op === "&=" - ? ts.SyntaxKind.AmpersandEqualsToken - : node.op === "**=" - ? ts.SyntaxKind.AsteriskAsteriskEqualsToken - : node.op === "*=" - ? ts.SyntaxKind.AsteriskEqualsToken - : node.op === "+" - ? ts.SyntaxKind.PlusToken - : node.op === "+=" - ? ts.SyntaxKind.PlusEqualsToken - : node.op === "," - ? ts.SyntaxKind.CommaToken - : node.op === "-" - ? ts.SyntaxKind.MinusToken - : node.op === "-=" - ? ts.SyntaxKind.MinusEqualsToken - : node.op === "/" - ? ts.SyntaxKind.SlashToken - : node.op === "/=" - ? ts.SyntaxKind.SlashEqualsToken - : node.op === "<" - ? ts.SyntaxKind.LessThanToken - : node.op === "<=" - ? ts.SyntaxKind.LessThanEqualsToken - : node.op === "<<" - ? ts.SyntaxKind.LessThanLessThanToken - : node.op === "<<=" - ? ts.SyntaxKind.LessThanLessThanEqualsToken - : node.op === "=" - ? ts.SyntaxKind.EqualsToken - : node.op === ">" - ? ts.SyntaxKind.GreaterThanToken - : node.op === ">>" - ? ts.SyntaxKind.GreaterThanGreaterThanToken - : node.op === ">>>" - ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanToken - : node.op === ">=" - ? ts.SyntaxKind.GreaterThanEqualsToken - : node.op === ">>=" - ? ts.SyntaxKind.GreaterThanGreaterThanEqualsToken - : node.op === ">>>=" - ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken - : node.op === "??" - ? ts.SyntaxKind.QuestionQuestionToken - : node.op === "??=" - ? ts.SyntaxKind.QuestionQuestionEqualsToken - : node.op === "^" - ? ts.SyntaxKind.CaretToken - : node.op === "^=" - ? ts.SyntaxKind.CaretEqualsToken - : node.op === "in" - ? ts.SyntaxKind.InKeyword - : node.op === "instanceof" - ? ts.SyntaxKind.InstanceOfKeyword - : node.op === "|" - ? ts.SyntaxKind.BarToken - : node.op === "||" - ? ts.SyntaxKind.BarBarToken - : node.op === "|=" - ? ts.SyntaxKind.BarEqualsToken - : node.op === "||=" - ? ts.SyntaxKind.BarBarEqualsToken - : assertNever(node.op), + toTSOperator(node.op), toTS(node.right) as ts.Expression ); } else if (isConditionExpr(node)) { @@ -1342,13 +1251,21 @@ export function serializeClosure( node.isAwait ? ts.factory.createToken(ts.SyntaxKind.AwaitKeyword) : undefined, - toTS(node.initializer) as ts.ForInitializer, + isVariableDecl(node.initializer) + ? ts.factory.createVariableDeclarationList([ + toTS(node.initializer) as ts.VariableDeclaration, + ]) + : (toTS(node.initializer) as ts.ForInitializer), toTS(node.expr) as ts.Expression, toTS(node.body) as ts.Statement ); } else if (isForInStmt(node)) { return ts.factory.createForInStatement( - toTS(node.initializer) as ts.ForInitializer, + isVariableDecl(node.initializer) + ? ts.factory.createVariableDeclarationList([ + toTS(node.initializer) as ts.VariableDeclaration, + ]) + : (toTS(node.initializer) as ts.ForInitializer), toTS(node.expr) as ts.Expression, toTS(node.body) as ts.Statement ); @@ -1401,7 +1318,7 @@ export function serializeClosure( toTS(node.expr) as ts.Expression ); } else if (isRegexExpr(node)) { - return ts.factory.createRegularExpressionLiteral(node.regex.source); + return ts.factory.createRegularExpressionLiteral(node.regex.toString()); } else if (isTemplateExpr(node)) { return ts.factory.createTemplateExpression( toTS(node.head) as ts.TemplateHead, @@ -1454,3 +1371,91 @@ export function serializeClosure( } } } + +function toTSOperator(op: BinaryOp): ts.BinaryOperator { + return op === "!=" + ? ts.SyntaxKind.ExclamationEqualsToken + : op === "!==" + ? ts.SyntaxKind.ExclamationEqualsEqualsToken + : op === "==" + ? ts.SyntaxKind.EqualsEqualsToken + : op === "===" + ? ts.SyntaxKind.EqualsEqualsEqualsToken + : op === "%" + ? ts.SyntaxKind.PercentToken + : op === "%=" + ? ts.SyntaxKind.PercentEqualsToken + : op === "&&" + ? ts.SyntaxKind.AmpersandAmpersandToken + : op === "&" + ? ts.SyntaxKind.AmpersandAmpersandToken + : op === "*" + ? ts.SyntaxKind.AsteriskToken + : op === "**" + ? ts.SyntaxKind.AsteriskToken + : op === "&&=" + ? ts.SyntaxKind.AmpersandAmpersandEqualsToken + : op === "&=" + ? ts.SyntaxKind.AmpersandEqualsToken + : op === "**=" + ? ts.SyntaxKind.AsteriskAsteriskEqualsToken + : op === "*=" + ? ts.SyntaxKind.AsteriskEqualsToken + : op === "+" + ? ts.SyntaxKind.PlusToken + : op === "+=" + ? ts.SyntaxKind.PlusEqualsToken + : op === "," + ? ts.SyntaxKind.CommaToken + : op === "-" + ? ts.SyntaxKind.MinusToken + : op === "-=" + ? ts.SyntaxKind.MinusEqualsToken + : op === "/" + ? ts.SyntaxKind.SlashToken + : op === "/=" + ? ts.SyntaxKind.SlashEqualsToken + : op === "<" + ? ts.SyntaxKind.LessThanToken + : op === "<=" + ? ts.SyntaxKind.LessThanEqualsToken + : op === "<<" + ? ts.SyntaxKind.LessThanLessThanToken + : op === "<<=" + ? ts.SyntaxKind.LessThanLessThanEqualsToken + : op === "=" + ? ts.SyntaxKind.EqualsToken + : op === ">" + ? ts.SyntaxKind.GreaterThanToken + : op === ">>" + ? ts.SyntaxKind.GreaterThanGreaterThanToken + : op === ">>>" + ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanToken + : op === ">=" + ? ts.SyntaxKind.GreaterThanEqualsToken + : op === ">>=" + ? ts.SyntaxKind.GreaterThanGreaterThanEqualsToken + : op === ">>>=" + ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken + : op === "??" + ? ts.SyntaxKind.QuestionQuestionToken + : op === "??=" + ? ts.SyntaxKind.QuestionQuestionEqualsToken + : op === "^" + ? ts.SyntaxKind.CaretToken + : op === "^=" + ? ts.SyntaxKind.CaretEqualsToken + : op === "in" + ? ts.SyntaxKind.InKeyword + : op === "instanceof" + ? ts.SyntaxKind.InstanceOfKeyword + : op === "|" + ? ts.SyntaxKind.BarToken + : op === "||" + ? ts.SyntaxKind.BarBarToken + : op === "|=" + ? ts.SyntaxKind.BarEqualsToken + : op === "||=" + ? ts.SyntaxKind.BarBarEqualsToken + : assertNever(op); +} diff --git a/src/serialize-globals.json b/src/serialize-globals.json index 82afe4e6..b5afaf9c 100644 --- a/src/serialize-globals.json +++ b/src/serialize-globals.json @@ -1,256 +1,235 @@ -{ - "modules": [ - "assert", - "buffer", - "child_process", - "cluster", - "crypto", - "dgram", - "dns", - "domain", - "events", - "fs", - "http", - "https", - "net", - "os", - "path", - "punycode", - "querystring", - "readline", - "stream", - "string_decoder", - "timers", - "tls", - "tty", - "url", - "util", - "v8", - "vm", - "zlib" - ], - "globals": [ - "AbortController", - "AbortSignal", - "AggregateError", - "Array", - "ArrayBuffer", - "Atomics", - "BigInt", - "BigInt64Array", - "BigUint64Array", - "Blob", - "Boolean", - "BroadcastChannel", - "Buffer", - "ByteLengthQueuingStrategy", - "Cache", - "caches", - "CacheStorage", - "CanvasGradient", - "CanvasPattern", - "Client", - "Clients", - "CloseEvent", - "console", - "CountQueuingStrategy", - "crossOriginIsolated", - "crypto", - "Crypto", - "CryptoKey", - "CustomEvent", - "DataView", - "Date", - "decodeURI", - "decodeURIComponent", - "DedicatedWorkerGlobalScope", - "DOMException", - "DOMMatrix", - "DOMMatrixReadOnly", - "DOMPoint", - "DOMPointReadOnly", - "DOMQuad", - "DOMRect", - "DOMRectReadOnly", - "DOMStringList", - "encodeURI", - "encodeURIComponent", - "Error", - "ErrorEvent", - "escape", - "eval", - "EvalError", - "Event", - "EventSource", - "EventTarget", - "ExtendableEvent", - "ExtendableMessageEvent", - "FetchEvent", - "File", - "FileList", - "FileReader", - "FileReaderSync", - "FileSystemDirectoryHandle", - "FileSystemFileHandle", - "FileSystemHandle", - "FinalizationRegistry", - "Float32Array", - "Float64Array", - "FontFace", - "FontFaceSet", - "FontFaceSetLoadEvent", - "fonts", - "FormData", - "Function", - "Headers", - "IDBCursor", - "IDBCursorWithValue", - "IDBDatabase", - "IDBFactory", - "IDBIndex", - "IDBKeyRange", - "IDBObjectStore", - "IDBOpenDBRequest", - "IDBRequest", - "IDBTransaction", - "IDBVersionChangeEvent", - "ImageBitmap", - "ImageBitmapRenderingContext", - "ImageData", - "indexedDB", - "Infinity", - "Int16Array", - "Int32Array", - "Int8Array", - "isFinite", - "isNaN", - "isSecureContext", - "JSON", - "location", - "Lock", - "LockManager", - "Math", - "Map", - "MediaCapabilities", - "MessageChannel", - "MessageEvent", - "MessagePort", - "name", - "NaN", - "NavigationPreloadManager", - "navigator", - "NetworkInformation", - "Notification", - "NotificationEvent", - "Number", - "Object", - "onerror", - "onlanguagechange", - "onmessage", - "onmessageerror", - "onoffline", - "ononline", - "onrejectionhandled", - "onunhandledrejection", - "origin", - "parseFloat", - "parseInt", - "Path2D", - "performance", - "Performance", - "PerformanceEntry", - "PerformanceMark", - "PerformanceMeasure", - "PerformanceObserver", - "PerformanceObserverEntryList", - "PerformanceResourceTiming", - "PerformanceServerTiming", - "Permissions", - "PermissionStatus", - "process", - "ProgressEvent", - "Promise", - "PromiseRejectionEvent", - "Proxy", - "PushEvent", - "PushManager", - "PushMessageData", - "PushSubscription", - "PushSubscriptionOptions", - "RangeError", - "ReadableStream", - "ReadableStreamDefaultController", - "ReadableStreamDefaultReader", - "ReferenceError", - "Reflect", - "RegExp", - "Request", - "Response", - "RTCEncodedAudioFrame", - "RTCEncodedVideoFrame", - "SecurityPolicyViolationEvent", - "self", - "ServiceWorker", - "ServiceWorkerContainer", - "ServiceWorkerGlobalScope", - "ServiceWorkerRegistration", - "Set", - "SharedArrayBuffer", - "SharedWorkerGlobalScope", - "StorageManager", - "String", - "SubtleCrypto", - "Symbol", - "Symbol", - "SyntaxError", - "TextDecoder", - "TextDecoderStream", - "TextEncoder", - "TextEncoderStream", - "TextMetrics", - "TransformStream", - "TransformStreamDefaultController", - "TypeError", - "Uint16Array", - "Uint32Array", - "Uint8Array", - "Uint8ClampedArray", - "unescape", - "URIError", - "URL", - "URLSearchParams", - "VideoColorSpace", - "WeakMap", - "WeakRef", - "WeakSet", - "WebGL2RenderingContext", - "WebGLActiveInfo", - "WebGLBuffer", - "WebGLContextEvent", - "WebGLFramebuffer", - "WebGLProgram", - "WebGLQuery", - "WebGLRenderbuffer", - "WebGLRenderingContext", - "WebGLSampler", - "WebGLShader", - "WebGLShaderPrecisionFormat", - "WebGLSync", - "WebGLTexture", - "WebGLTransformFeedback", - "WebGLUniformLocation", - "WebGLVertexArrayObject", - "WebSocket", - "WindowClient", - "Worker", - "WorkerGlobalScope", - "WorkerLocation", - "WorkerNavigator", - "WritableStream", - "WritableStreamDefaultController", - "WritableStreamDefaultWriter", - "XMLHttpRequest", - "XMLHttpRequestEventTarget", - "XMLHttpRequestUpload" - ] -} +[ + "AbortController", + "AbortSignal", + "AggregateError", + "Array", + "ArrayBuffer", + "Atomics", + "BigInt", + "BigInt64Array", + "BigUint64Array", + "Blob", + "Boolean", + "BroadcastChannel", + "Buffer", + "ByteLengthQueuingStrategy", + "Cache", + "caches", + "CacheStorage", + "CanvasGradient", + "CanvasPattern", + "Client", + "Clients", + "CloseEvent", + "console", + "CountQueuingStrategy", + "crossOriginIsolated", + "crypto", + "Crypto", + "CryptoKey", + "CustomEvent", + "DataView", + "Date", + "decodeURI", + "decodeURIComponent", + "DedicatedWorkerGlobalScope", + "DOMException", + "DOMMatrix", + "DOMMatrixReadOnly", + "DOMPoint", + "DOMPointReadOnly", + "DOMQuad", + "DOMRect", + "DOMRectReadOnly", + "DOMStringList", + "encodeURI", + "encodeURIComponent", + "Error", + "ErrorEvent", + "escape", + "eval", + "EvalError", + "Event", + "EventSource", + "EventTarget", + "ExtendableEvent", + "ExtendableMessageEvent", + "FetchEvent", + "File", + "FileList", + "FileReader", + "FileReaderSync", + "FileSystemDirectoryHandle", + "FileSystemFileHandle", + "FileSystemHandle", + "FinalizationRegistry", + "Float32Array", + "Float64Array", + "FontFace", + "FontFaceSet", + "FontFaceSetLoadEvent", + "fonts", + "FormData", + "Function", + "Headers", + "IDBCursor", + "IDBCursorWithValue", + "IDBDatabase", + "IDBFactory", + "IDBIndex", + "IDBKeyRange", + "IDBObjectStore", + "IDBOpenDBRequest", + "IDBRequest", + "IDBTransaction", + "IDBVersionChangeEvent", + "ImageBitmap", + "ImageBitmapRenderingContext", + "ImageData", + "indexedDB", + "Infinity", + "Int16Array", + "Int32Array", + "Int8Array", + "isFinite", + "isNaN", + "isSecureContext", + "JSON", + "location", + "Lock", + "LockManager", + "Math", + "Map", + "MediaCapabilities", + "MessageChannel", + "MessageEvent", + "MessagePort", + "name", + "NaN", + "NavigationPreloadManager", + "navigator", + "NetworkInformation", + "Notification", + "NotificationEvent", + "Number", + "Object", + "onerror", + "onlanguagechange", + "onmessage", + "onmessageerror", + "onoffline", + "ononline", + "onrejectionhandled", + "onunhandledrejection", + "origin", + "parseFloat", + "parseInt", + "Path2D", + "performance", + "Performance", + "PerformanceEntry", + "PerformanceMark", + "PerformanceMeasure", + "PerformanceObserver", + "PerformanceObserverEntryList", + "PerformanceResourceTiming", + "PerformanceServerTiming", + "Permissions", + "PermissionStatus", + "process", + "ProgressEvent", + "Promise", + "PromiseRejectionEvent", + "Proxy", + "PushEvent", + "PushManager", + "PushMessageData", + "PushSubscription", + "PushSubscriptionOptions", + "RangeError", + "ReadableStream", + "ReadableStreamDefaultController", + "ReadableStreamDefaultReader", + "ReferenceError", + "Reflect", + "RegExp", + "Request", + "Response", + "RTCEncodedAudioFrame", + "RTCEncodedVideoFrame", + "SecurityPolicyViolationEvent", + "self", + "ServiceWorker", + "ServiceWorkerContainer", + "ServiceWorkerGlobalScope", + "ServiceWorkerRegistration", + "Set", + "SharedArrayBuffer", + "SharedWorkerGlobalScope", + "StorageManager", + "String", + "SubtleCrypto", + "Symbol", + "Symbol", + "SyntaxError", + "TextDecoder", + "TextDecoderStream", + "TextEncoder", + "TextEncoderStream", + "TextMetrics", + "TransformStream", + "TransformStreamDefaultController", + "TypeError", + "Uint16Array", + "Uint32Array", + "Uint8Array", + "Uint8ClampedArray", + "unescape", + "URIError", + "URL", + "URLSearchParams", + "VideoColorSpace", + "WeakMap", + "WeakRef", + "WeakSet", + "WebGL2RenderingContext", + "WebGLActiveInfo", + "WebGLBuffer", + "WebGLContextEvent", + "WebGLFramebuffer", + "WebGLProgram", + "WebGLQuery", + "WebGLRenderbuffer", + "WebGLRenderingContext", + "WebGLSampler", + "WebGLShader", + "WebGLShaderPrecisionFormat", + "WebGLSync", + "WebGLTexture", + "WebGLTransformFeedback", + "WebGLUniformLocation", + "WebGLVertexArrayObject", + "WebSocket", + "WindowClient", + "Worker", + "WorkerGlobalScope", + "WorkerLocation", + "WorkerNavigator", + "WritableStream", + "WritableStreamDefaultController", + "WritableStreamDefaultWriter", + "XMLHttpRequest", + "XMLHttpRequestEventTarget", + "XMLHttpRequestUpload", + + "clearImmediate", + "clearInterval", + "clearTimeout", + "hasOwnProperty", + "performance", + "queueMicrotask", + "require", + "setImmediate", + "setInterval", + "setTimeout" +] diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts index 9ed42f15..49ea03eb 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-globals.ts @@ -1,5 +1,6 @@ // sourced from the lib.*.d.ts files -import { globals, modules } from "./serialize-globals.json"; +import module from "module"; +import globals from "./serialize-globals.json"; import { callExpr, idExpr, propAccessExpr, stringExpr } from "./serialize-util"; export const Globals = new Map ts.Expression>(); @@ -10,37 +11,50 @@ for (const valueName of globals) { } } -for (const moduleName of modules) { - registerValue( - // eslint-disable-next-line @typescript-eslint/no-require-imports - require(moduleName), - callExpr(idExpr("require"), [stringExpr(moduleName)]) - ); +for (const moduleName of module.builtinModules) { + // eslint-disable-next-line @typescript-eslint/no-require-imports + const module = require(moduleName); + const requireModule = callExpr(idExpr("require"), [stringExpr(moduleName)]); + registerValue(module, requireModule); + registerOwnProperties(module, requireModule, true); } function registerValue(value: any, expr: ts.Expression) { if (Globals.has(value)) { return; } - Globals.set(value, () => expr); - registerOwnProperties(value, expr); - if (typeof value === "function") { - registerValue(value.prototype, propAccessExpr(expr, "prototype")); - } else if (value && typeof value === "object") { - registerValue(value.constructor, propAccessExpr(expr, "constructor")); + if (typeof value === "object" || typeof value === "function") { + Globals.set(value, () => expr); + registerOwnProperties(value, expr, false); + if (typeof value === "function") { + registerValue(value.prototype, propAccessExpr(expr, "prototype")); + } else if (value && typeof value === "object") { + // registerValue(value.constructor, propAccessExpr(expr, "constructor")); + } } } -function registerOwnProperties(value: any, expr: ts.Expression) { - if (value && (typeof value === "object" || typeof value === "function")) { +function registerOwnProperties( + value: any, + expr: ts.Expression, + isModule: boolean +) { + if ( + value && + (typeof value === "object" || typeof value === "function") && + !(Array.isArray(value) && value !== Array.prototype) + ) { // go through each of its properties + for (const propName of Object.getOwnPropertyNames(value)) { if (value === process && propName === "env") { // never serialize environment variables continue; } const propDesc = Object.getOwnPropertyDescriptor(value, propName); - if (!propDesc?.writable || propDesc?.get || propDesc.set) { + if (propDesc?.get && isModule) { + registerValue(propDesc.get(), propAccessExpr(expr, propName)); + } else if (!propDesc?.writable) { continue; } registerValue(propDesc.value, propAccessExpr(expr, propName)); diff --git a/test-app/.swcrc b/test-app/.swcrc index 7a21792b..ed7aec36 100644 --- a/test-app/.swcrc +++ b/test-app/.swcrc @@ -13,15 +13,10 @@ "loose": false, "externalHelpers": false, "experimental": { - "plugins": [ - [ - "@functionless/ast-reflection", - {} - ] - ] + "plugins": [["@functionless/ast-reflection", {}]] } }, - "minify": false, + "minify": true, "sourceMaps": "inline", "module": { "type": "commonjs" diff --git a/test-app/yarn.lock b/test-app/yarn.lock index a0708aaa..fe14b024 100644 --- a/test-app/yarn.lock +++ b/test-app/yarn.lock @@ -1179,10 +1179,8 @@ ts-node "^9" tslib "^2" -"@functionless/ast-reflection@^0.1.1": - version "0.1.1" - resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.1.1.tgz#3d75cb797336e60317b8fc454346cf3d4704f8f2" - integrity sha512-hb1GLpwrgMrJzhTBryna9/vT3KMHTRgD3SXJiKzSU0Pb1ZEhvDx8Q+n89zuR7/lOWRO7x6LFXWQE0RSyEnDgdQ== +"@functionless/ast-reflection@file:../../ast-reflection": + version "0.0.0" "@functionless/language-service@^0.0.3": version "0.0.3" @@ -2773,7 +2771,7 @@ function.prototype.name@^1.1.5: "functionless@file:..": version "0.0.0" dependencies: - "@functionless/ast-reflection" "^0.1.1" + "@functionless/ast-reflection" "file:../../../Library/Caches/Yarn/v6/npm-functionless-0.0.0-49d6c11f-bc73-4297-b14e-b2544ed92dd0-1660543648025/node_modules/ast-reflection" "@functionless/nodejs-closure-serializer" "^0.1.2" "@swc/cli" "^0.1.57" "@swc/core" "1.2.218" diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 5a24ef66..d640fe4d 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,24151 +1,32086 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`all observers of a free variable share the same reference 1`] = ` -"// -var v0; -var v2; -var v3 = 0; -v2 = function up() { - v3 += 2; -}; -var v4 = {}; -v4.constructor = v2; -v2.prototype = v4; -var v1 = v2; -var v6; -v6 = function down() { - v3 -= 1; -}; -var v7 = {}; -v7.constructor = v6; -v6.prototype = v7; -var v5 = v6; -v0 = () => { - v1(); - v5(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`all observers of a free variable share the same reference even when two instances 1`] = ` -"// -var v0; -var v2 = []; -var v3; -var v5; -var v6 = 0; -v5 = function up() { - v6 += 2; -}; -var v7 = {}; -v7.constructor = v5; -v5.prototype = v7; -var v4 = v5; -var v9; -v9 = function down() { - v6 -= 1; -}; -var v10 = {}; -v10.constructor = v9; -v9.prototype = v10; -var v8 = v9; -v3 = () => { - v4(); - v8(); - return v6; -}; -var v11; +exports[`instantiating the AWS SDK without esbuild 1`] = ` +"var v0; +const v2 = {}; +const v3 = {}; +v3.environment = \\"nodejs\\"; +var v4; +var v5 = v3; +var v6 = undefined; +const v8 = process; +var v7 = v8; +v4 = function engine() { if (v5.isBrowser() && typeof v6 !== \\"undefined\\") { + return undefined; +} +else { + var engine = \\"darwin\\" + \\"/\\" + \\"v16.14.2\\"; + if (v7.env.AWS_EXECUTION_ENV) { + engine += \\" exec-env/\\" + v7.env.AWS_EXECUTION_ENV; + } + return engine; +} }; +const v9 = {}; +v9.constructor = v4; +v4.prototype = v9; +v3.engine = v4; +var v10; +var v11 = require; +v10 = function userAgent() { var name = \\"nodejs\\"; var agent = \\"aws-sdk-\\" + name + \\"/\\" + v11(\\"./core\\").VERSION; if (name === \\"nodejs\\") + agent += \\" \\" + v5.engine(); return agent; }; +const v12 = {}; +v12.constructor = v10; +v10.prototype = v12; +v3.userAgent = v10; var v13; -var v14 = 0; -v13 = function up2() { - v14 += 2; -}; -var v15 = {}; -v15.constructor = v13; -v13.prototype = v15; -var v12 = v13; -var v17; -v17 = function down2() { - v14 -= 1; -}; -var v18 = {}; -v18.constructor = v17; -v17.prototype = v18; +const v15 = encodeURIComponent; +var v14 = v15; +const v17 = escape; var v16 = v17; -v11 = () => { - v12(); - v16(); - return v14; -}; -v2.push(v3, v11); -var v1 = v2; -v0 = () => { - return v1.map((closure) => { - return closure(); - }); -}; -exports.handler = v0; -" -`; - -exports[`avoid name collision with a closure's lexical scope 1`] = ` -"// -var v0; -var v6 = 0; -var v5 = class v1 { - foo() { - return v6 += 1; - } -}; -var v4 = v5; -var v3 = class v2 extends v4 { -}; -var v12 = v3; -v0 = () => { - const v32 = new v12(); - return v32.foo(); -}; -exports.handler = v0; -" -`; - -exports[`instantiating the AWS SDK 1`] = ` -"// -var v0; -var v2 = require(\\"aws-sdk\\"); -var v1 = v2; -v0 = () => { - const client = new v1.DynamoDB(); - return client.config.endpoint; -}; -exports.handler = v0; -" -`; - -exports[`instantiating the AWS SDK v3 1`] = ` -"var __getOwnPropNames = Object.getOwnPropertyNames; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; - -// node_modules/tslib/tslib.js -var require_tslib = __commonJS({ - \\"node_modules/tslib/tslib.js\\"(exports2, module2) { - var __extends; - var __assign; - var __rest; - var __decorate; - var __param; - var __metadata; - var __awaiter; - var __generator; - var __exportStar; - var __values; - var __read; - var __spread; - var __spreadArrays; - var __spreadArray; - var __await; - var __asyncGenerator; - var __asyncDelegator; - var __asyncValues; - var __makeTemplateObject; - var __importStar; - var __importDefault; - var __classPrivateFieldGet; - var __classPrivateFieldSet; - var __classPrivateFieldIn; - var __createBinding; - (function(factory) { - var root = typeof global === \\"object\\" ? global : typeof self === \\"object\\" ? self : typeof this === \\"object\\" ? this : {}; - if (typeof define === \\"function\\" && define.amd) { - define(\\"tslib\\", [\\"exports\\"], function(exports3) { - factory(createExporter(root, createExporter(exports3))); - }); - } else if (typeof module2 === \\"object\\" && typeof module2.exports === \\"object\\") { - factory(createExporter(root, createExporter(module2.exports))); - } else { - factory(createExporter(root)); - } - function createExporter(exports3, previous) { - if (exports3 !== root) { - if (typeof Object.create === \\"function\\") { - Object.defineProperty(exports3, \\"__esModule\\", { value: true }); - } else { - exports3.__esModule = true; - } +v13 = function uriEscape(string) { var output = v14(string); output = output.replace(/[^A-Za-z0-9_.~\\\\-%]+/g, v16); output = output.replace(/[*]/g, function (ch) { return \\"%\\" + ch.charCodeAt(0).toString(16).toUpperCase(); }); return output; }; +const v18 = {}; +v18.constructor = v13; +v13.prototype = v18; +v3.uriEscape = v13; +var v19; +v19 = function uriEscapePath(string) { var parts = []; v5.arrayEach(string.split(\\"/\\"), function (part) { parts.push(v5.uriEscape(part)); }); return parts.join(\\"/\\"); }; +const v20 = {}; +v20.constructor = v19; +v19.prototype = v20; +v3.uriEscapePath = v19; +var v21; +const v22 = require(\\"url\\"); +v21 = function urlParse(url) { return v22.parse(url); }; +const v23 = {}; +v23.constructor = v21; +v21.prototype = v23; +v3.urlParse = v21; +var v24; +v24 = function urlFormat(url) { return v22.format(url); }; +const v25 = {}; +v25.constructor = v24; +v24.prototype = v25; +v3.urlFormat = v24; +var v26; +const v27 = require(\\"querystring\\"); +v26 = function queryStringParse(qs) { return v27.parse(qs); }; +const v28 = {}; +v28.constructor = v26; +v26.prototype = v28; +v3.queryStringParse = v26; +var v29; +const v31 = Atomics.constructor; +var v30 = v31; +const v33 = Array; +var v32 = v33; +v29 = function queryParamsToString(params) { var items = []; var escape = v5.uriEscape; var sortedKeys = v30.keys(params).sort(); v5.arrayEach(sortedKeys, function (name) { var value = params[name]; var ename = escape(name); var result = ename + \\"=\\"; if (v32.isArray(value)) { + var vals = []; + v5.arrayEach(value, function (item) { vals.push(escape(item)); }); + result = ename + \\"=\\" + vals.sort().join(\\"&\\" + ename + \\"=\\"); +} +else if (value !== undefined && value !== null) { + result = ename + \\"=\\" + escape(value); +} items.push(result); }); return items.join(\\"&\\"); }; +const v34 = {}; +v34.constructor = v29; +v29.prototype = v34; +v3.queryParamsToString = v29; +var v35; +v35 = function readFileSync(path) { if (v5.isBrowser()) + return null; return v11(\\"fs\\").readFileSync(path, \\"utf-8\\"); }; +const v36 = {}; +v36.constructor = v35; +v35.prototype = v36; +v3.readFileSync = v35; +const v37 = {}; +var v38; +const v40 = Error; +var v39 = v40; +const v41 = {}; +var v42; +const v44 = Uint8Array; +var v43 = v44; +v42 = function (data, encoding) { return (typeof v5.Buffer.from === \\"function\\" && v5.Buffer.from !== v43.from) ? v5.Buffer.from(data, encoding) : new v5.Buffer(data, encoding); }; +const v45 = {}; +v45.constructor = v42; +v42.prototype = v45; +v41.toBuffer = v42; +var v46; +v46 = function (size, fill, encoding) { if (typeof size !== \\"number\\") { + throw new v39(\\"size passed to alloc must be a number.\\"); +} if (typeof v5.Buffer.alloc === \\"function\\") { + return v5.Buffer.alloc(size, fill, encoding); +} +else { + var buf = new v5.Buffer(size); + if (fill !== undefined && typeof buf.fill === \\"function\\") { + buf.fill(fill, undefined, undefined, encoding); + } + return buf; +} }; +const v47 = {}; +v47.constructor = v46; +v46.prototype = v47; +v41.alloc = v46; +var v48; +v48 = function toStream(buffer) { if (!v5.Buffer.isBuffer(buffer)) + buffer = v41.toBuffer(buffer); var readable = new (v5.stream.Readable)(); var pos = 0; readable._read = function (size) { if (pos >= buffer.length) + return readable.push(null); var end = pos + size; if (end > buffer.length) + end = buffer.length; readable.push(buffer.slice(pos, end)); pos = end; }; return readable; }; +const v49 = {}; +v49.constructor = v48; +v48.prototype = v49; +v41.toStream = v48; +var v50; +v50 = function (buffers) { var length = 0, offset = 0, buffer = null, i; for (i = 0; i < buffers.length; i++) { + length += buffers[i].length; +} buffer = v41.alloc(length); for (i = 0; i < buffers.length; i++) { + buffers[i].copy(buffer, offset); + offset += buffers[i].length; +} return buffer; }; +const v51 = {}; +v51.constructor = v50; +v50.prototype = v51; +v41.concat = v50; +v38 = function encode64(string) { if (typeof string === \\"number\\") { + throw v5.error(new v39(\\"Cannot base64 encode number \\" + string)); +} if (string === null || typeof string === \\"undefined\\") { + return string; +} var buf = v41.toBuffer(string); return buf.toString(\\"base64\\"); }; +const v52 = {}; +v52.constructor = v38; +v38.prototype = v52; +v37.encode = v38; +var v53; +v53 = function decode64(string) { if (typeof string === \\"number\\") { + throw v5.error(new v39(\\"Cannot base64 decode number \\" + string)); +} if (string === null || typeof string === \\"undefined\\") { + return string; +} return v41.toBuffer(string, \\"base64\\"); }; +const v54 = {}; +v54.constructor = v53; +v53.prototype = v54; +v37.decode = v53; +v3.base64 = v37; +v3.buffer = v41; +const v55 = {}; +var v56; +v56 = function byteLength(string) { if (string === null || string === undefined) + return 0; if (typeof string === \\"string\\") + string = v41.toBuffer(string); if (typeof string.byteLength === \\"number\\") { + return string.byteLength; +} +else if (typeof string.length === \\"number\\") { + return string.length; +} +else if (typeof string.size === \\"number\\") { + return string.size; +} +else if (typeof string.path === \\"string\\") { + return v11(\\"fs\\").lstatSync(string.path).size; +} +else { + throw v5.error(new v39(\\"Cannot determine length of \\" + string), { object: string }); +} }; +const v57 = {}; +v57.constructor = v56; +v56.prototype = v57; +v55.byteLength = v56; +var v58; +v58 = function upperFirst(string) { return string[0].toUpperCase() + string.substr(1); }; +const v59 = {}; +v59.constructor = v58; +v58.prototype = v59; +v55.upperFirst = v58; +var v60; +v60 = function lowerFirst(string) { return string[0].toLowerCase() + string.substr(1); }; +const v61 = {}; +v61.constructor = v60; +v60.prototype = v61; +v55.lowerFirst = v60; +v3.string = v55; +const v62 = {}; +var v63; +v63 = function string(ini) { var currentSection, map = {}; v5.arrayEach(ini.split(/\\\\r?\\\\n/), function (line) { line = line.split(/(^|\\\\s)[;#]/)[0].trim(); var isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (currentSection === \\"__proto__\\" || currentSection.split(/\\\\s/)[1] === \\"__proto__\\") { + throw v5.error(new v39(\\"Cannot load profile name '\\" + currentSection + \\"' from shared ini file.\\")); + } +} +else if (currentSection) { + var indexOfEqualsSign = line.indexOf(\\"=\\"); + var start = 0; + var end = line.length - 1; + var isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + var name = line.substring(0, indexOfEqualsSign).trim(); + var value = line.substring(indexOfEqualsSign + 1).trim(); + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } +} }); return map; }; +const v64 = {}; +v64.constructor = v63; +v63.prototype = v64; +v62.parse = v63; +v3.ini = v62; +const v65 = {}; +var v66; +v66 = function () { }; +const v67 = {}; +v67.constructor = v66; +v66.prototype = v67; +v65.noop = v66; +var v68; +v68 = function (err) { if (err) + throw err; }; +const v69 = {}; +v69.constructor = v68; +v68.prototype = v69; +v65.callback = v68; +var v70; +const v71 = []; +v71.push(); +v70 = function makeAsync(fn, expectedArgs) { if (expectedArgs && expectedArgs <= fn.length) { + return fn; +} return function () { var args = v71.slice.call(arguments, 0); var callback = args.pop(); var result = fn.apply(null, args); callback(result); }; }; +const v72 = {}; +v72.constructor = v70; +v70.prototype = v72; +v65.makeAsync = v70; +v3.fn = v65; +const v73 = {}; +var v74; +var v75 = v2; +const v77 = Date; +var v76 = v77; +v74 = function getDate() { if (!v75) + AWS = v11(\\"./core\\"); if (0) { + return new v76(new v76().getTime() + 0); +} +else { + return new v76(); +} }; +const v78 = {}; +v78.constructor = v74; +v74.prototype = v78; +v73.getDate = v74; +var v79; +v79 = function iso8601(date) { if (date === undefined) { + date = v73.getDate(); +} return date.toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); }; +const v80 = {}; +v80.constructor = v79; +v79.prototype = v80; +v73.iso8601 = v79; +var v81; +v81 = function rfc822(date) { if (date === undefined) { + date = v73.getDate(); +} return date.toUTCString(); }; +const v82 = {}; +v82.constructor = v81; +v81.prototype = v82; +v73.rfc822 = v81; +var v83; +v83 = function unixTimestamp(date) { if (date === undefined) { + date = v73.getDate(); +} return date.getTime() / 1000; }; +const v84 = {}; +v84.constructor = v83; +v83.prototype = v84; +v73.unixTimestamp = v83; +var v85; +v85 = function format(date) { if (typeof date === \\"number\\") { + return new v76(date * 1000); +} +else { + return new v76(date); +} }; +const v86 = {}; +v86.constructor = v85; +v85.prototype = v86; +v73.from = v85; +var v87; +v87 = function format(date, formatter) { if (!formatter) + formatter = \\"iso8601\\"; return v73[formatter](v73.from(date)); }; +const v88 = {}; +v88.constructor = v87; +v87.prototype = v88; +v73.format = v87; +var v89; +v89 = function parseTimestamp(value) { if (typeof value === \\"number\\") { + return new v76(value * 1000); +} +else if (value.match(/^\\\\d+$/)) { + return new v76(value * 1000); +} +else if (value.match(/^\\\\d{4}/)) { + return new v76(value); +} +else if (value.match(/^\\\\w{3},/)) { + return new v76(value); +} +else { + throw v5.error(new v39(\\"unhandled timestamp format: \\" + value), { code: \\"TimestampParserError\\" }); +} }; +const v90 = {}; +v90.constructor = v89; +v89.prototype = v90; +v73.parseTimestamp = v89; +v3.date = v73; +const v91 = {}; +const v92 = []; +v92.push(0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117); +v91.crc32Table = v92; +var v93; +v93 = function crc32(data) { var tbl = v92; var crc = 0 ^ -1; if (typeof data === \\"string\\") { + data = v41.toBuffer(data); +} for (var i = 0; i < data.length; i++) { + var code = data.readUInt8(i); + crc = (crc >>> 8) ^ tbl[(crc ^ code) && 255]; +} return (crc ^ -1) >>> 0; }; +const v94 = {}; +v94.constructor = v93; +v93.prototype = v94; +v91.crc32 = v93; +var v95; +const v96 = require(\\"crypto\\"); +v95 = function hmac(key, string, digest, fn) { if (!digest) + digest = \\"binary\\"; if (digest === \\"buffer\\") { + digest = undefined; +} if (!fn) + fn = \\"sha256\\"; if (typeof string === \\"string\\") + string = v41.toBuffer(string); return v96.createHmac(fn, key).update(string).digest(digest); }; +const v97 = {}; +v97.constructor = v95; +v95.prototype = v97; +v91.hmac = v95; +var v98; +v98 = function md5(data, digest, callback) { return v91.hash(\\"md5\\", data, digest, callback); }; +const v99 = {}; +v99.constructor = v98; +v98.prototype = v99; +v91.md5 = v98; +var v100; +v100 = function sha256(data, digest, callback) { return v91.hash(\\"sha256\\", data, digest, callback); }; +const v101 = {}; +v101.constructor = v100; +v100.prototype = v101; +v91.sha256 = v100; +var v102; +const v104 = ArrayBuffer; +var v103 = v104; +var v105 = undefined; +v102 = function (algorithm, data, digest, callback) { var hash = v91.createHash(algorithm); if (!digest) { + digest = \\"binary\\"; +} if (digest === \\"buffer\\") { + digest = undefined; +} if (typeof data === \\"string\\") + data = v41.toBuffer(data); var sliceFn = v5.arraySliceFn(data); var isBuffer = v5.Buffer.isBuffer(data); if (v5.isBrowser() && typeof v103 !== \\"undefined\\" && data && data.buffer instanceof v103) + isBuffer = true; if (callback && typeof data === \\"object\\" && typeof data.on === \\"function\\" && !isBuffer) { + data.on(\\"data\\", function (chunk) { hash.update(chunk); }); + data.on(\\"error\\", function (err) { callback(err); }); + data.on(\\"end\\", function () { callback(null, hash.digest(digest)); }); +} +else if (callback && sliceFn && !isBuffer && typeof v105 !== \\"undefined\\") { + var index = 0, size = 1024 * 512; + var reader = new v105(); + reader.onerror = function () { callback(new v39(\\"Failed to read data.\\")); }; + reader.onload = function () { var buf = new v5.Buffer(new v43(reader.result)); hash.update(buf); index += buf.length; reader._continueReading(); }; + reader._continueReading = function () { if (index >= data.size) { + callback(null, hash.digest(digest)); + return; + } var back = index + size; if (back > data.size) + back = data.size; reader.readAsArrayBuffer(sliceFn.call(data, index, back)); }; + reader._continueReading(); +} +else { + if (v5.isBrowser() && typeof data === \\"object\\" && !isBuffer) { + data = new v5.Buffer(new v43(data)); + } + var out = hash.update(data).digest(digest); + if (callback) + callback(null, out); + return out; +} }; +const v106 = {}; +v106.constructor = v102; +v102.prototype = v106; +v91.hash = v102; +var v107; +v107 = function toHex(data) { var out = []; for (var i = 0; i < data.length; i++) { + out.push((\\"0\\" + data.charCodeAt(i).toString(16)).substr(-2, 2)); +} return out.join(\\"\\"); }; +const v108 = {}; +v108.constructor = v107; +v107.prototype = v108; +v91.toHex = v107; +var v109; +v109 = function createHash(algorithm) { return v96.createHash(algorithm); }; +const v110 = {}; +v110.constructor = v109; +v109.prototype = v110; +v91.createHash = v109; +v91.lib = v96; +v3.crypto = v91; +const v111 = {}; +v3.abort = v111; +var v112; +const v113 = Atomics.constructor.prototype; +v112 = function each(object, iterFunction) { for (var key in object) { + if (v113.hasOwnProperty.call(object, key)) { + var ret = iterFunction.call(this, key, object[key]); + if (ret === v111) + break; + } +} }; +const v114 = {}; +v114.constructor = v112; +v112.prototype = v114; +v3.each = v112; +var v115; +const v117 = Number.parseInt; +var v116 = v117; +v115 = function arrayEach(array, iterFunction) { for (var idx in array) { + if (v113.hasOwnProperty.call(array, idx)) { + var ret = iterFunction.call(this, array[idx], v116(idx, 10)); + if (ret === v111) + break; + } +} }; +const v118 = {}; +v118.constructor = v115; +v115.prototype = v118; +v3.arrayEach = v115; +var v119; +v119 = function update(obj1, obj2) { v5.each(obj2, function iterator(key, item) { obj1[key] = item; }); return obj1; }; +const v120 = {}; +v120.constructor = v119; +v119.prototype = v120; +v3.update = v119; +var v121; +var v122 = v3; +v121 = function merge(obj1, obj2) { return v122.update(v5.copy(obj1), obj2); }; +const v123 = {}; +v123.constructor = v121; +v121.prototype = v123; +v3.merge = v121; +var v124; +v124 = function copy(object) { if (object === null || object === undefined) + return object; var dupe = {}; for (var key in object) { + dupe[key] = object[key]; +} return dupe; }; +const v125 = {}; +v125.constructor = v124; +v124.prototype = v125; +v3.copy = v124; +var v126; +v126 = function isEmpty(obj) { for (var prop in obj) { + if (v113.hasOwnProperty.call(obj, prop)) { + return false; + } +} return true; }; +const v127 = {}; +v127.constructor = v126; +v126.prototype = v127; +v3.isEmpty = v126; +var v128; +v128 = function arraySliceFn(obj) { var fn = obj.slice || obj.webkitSlice || obj.mozSlice; return typeof fn === \\"function\\" ? fn : null; }; +const v129 = {}; +v129.constructor = v128; +v128.prototype = v129; +v3.arraySliceFn = v128; +var v130; +v130 = function isType(obj, type) { if (typeof type === \\"function\\") + type = v5.typeName(type); return v113.toString.call(obj) === \\"[object \\" + type + \\"]\\"; }; +const v131 = {}; +v131.constructor = v130; +v130.prototype = v131; +v3.isType = v130; +var v132; +v132 = function typeName(type) { if (v113.hasOwnProperty.call(type, \\"name\\")) + return type.name; var str = type.toString(); var match = str.match(/^\\\\s*function (.+)\\\\(/); return match ? match[1] : str; }; +const v133 = {}; +v133.constructor = v132; +v132.prototype = v133; +v3.typeName = v132; +var v134; +const v136 = String; +var v135 = v136; +v134 = function error(err, options) { var originalError = null; if (typeof err.message === \\"string\\" && err.message !== \\"\\") { + if (typeof options === \\"string\\" || (options && options.message)) { + originalError = v5.copy(err); + originalError.message = err.message; + } +} err.message = err.message || null; if (typeof options === \\"string\\") { + err.message = options; +} +else if (typeof options === \\"object\\" && options !== null) { + v5.update(err, options); + if (options.message) + err.message = options.message; + if (options.code || options.name) + err.code = options.code || options.name; + if (options.stack) + err.stack = options.stack; +} if (typeof v30.defineProperty === \\"function\\") { + v30.defineProperty(err, \\"name\\", { writable: true, enumerable: false }); + v30.defineProperty(err, \\"message\\", { enumerable: true }); +} err.name = v135(options && options.name || err.name || err.code || \\"Error\\"); err.time = new v76(); if (originalError) + err.originalError = originalError; return err; }; +const v137 = {}; +v137.constructor = v134; +v134.prototype = v137; +v3.error = v134; +var v138; +v138 = function inherit(klass, features) { var newObject = null; if (features === undefined) { + features = klass; + klass = v30; + newObject = {}; +} +else { + var ctor = function ConstructorWrapper() { }; + ctor.prototype = klass.prototype; + newObject = new ctor(); +} if (features.constructor === v30) { + features.constructor = function () { if (klass !== v30) { + return klass.apply(this, arguments); + } }; +} features.constructor.prototype = newObject; v5.update(features.constructor.prototype, features); features.constructor.__super__ = klass; return features.constructor; }; +const v139 = {}; +v139.constructor = v138; +v138.prototype = v139; +v3.inherit = v138; +var v140; +v140 = function mixin() { var klass = arguments[0]; for (var i = 1; i < arguments.length; i++) { + for (var prop in arguments[i].prototype) { + var fn = arguments[i].prototype[prop]; + if (prop !== \\"constructor\\") { + klass.prototype[prop] = fn; } - return function(id, v) { - return exports3[id] = previous ? previous(id, v) : v; - }; - } - })(function(exporter) { - var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { - d.__proto__ = b; - } || function(d, b) { - for (var p in b) - if (Object.prototype.hasOwnProperty.call(b, p)) - d[p] = b[p]; - }; - __extends = function(d, b) { - if (typeof b !== \\"function\\" && b !== null) - throw new TypeError(\\"Class extends value \\" + String(b) + \\" is not a constructor or null\\"); - extendStatics(d, b); - function __() { - this.constructor = d; + } +} return klass; }; +const v141 = {}; +v141.constructor = v140; +v140.prototype = v141; +v3.mixin = v140; +var v142; +v142 = function hideProperties(obj, props) { if (typeof v30.defineProperty !== \\"function\\") + return; v5.arrayEach(props, function (key) { v30.defineProperty(obj, key, { enumerable: false, writable: true, configurable: true }); }); }; +const v143 = {}; +v143.constructor = v142; +v142.prototype = v143; +v3.hideProperties = v142; +var v144; +v144 = function property(obj, name, value, enumerable, isValue) { var opts = { configurable: true, enumerable: enumerable !== undefined ? enumerable : true }; if (typeof value === \\"function\\" && !isValue) { + opts.get = value; +} +else { + opts.value = value; + opts.writable = true; +} v30.defineProperty(obj, name, opts); }; +const v145 = {}; +v145.constructor = v144; +v144.prototype = v145; +v3.property = v144; +var v146; +v146 = function memoizedProperty(obj, name, get, enumerable) { var cachedValue = null; v5.property(obj, name, function () { if (cachedValue === null) { + cachedValue = get(); +} return cachedValue; }, enumerable); }; +const v147 = {}; +v147.constructor = v146; +v146.prototype = v147; +v3.memoizedProperty = v146; +var v148; +v148 = function hoistPayloadMember(resp) { var req = resp.request; var operationName = req.operation; var operation = req.service.api.operations[operationName]; var output = operation.output; if (output.payload && !operation.hasEventOutput) { + var payloadMember = output.members[output.payload]; + var responsePayload = resp.data[output.payload]; + if (payloadMember.type === \\"structure\\") { + v5.each(responsePayload, function (key, value) { v5.property(resp.data, key, value, false); }); + } +} }; +const v149 = {}; +v149.constructor = v148; +v148.prototype = v149; +v3.hoistPayloadMember = v148; +var v150; +v150 = function computeSha256(body, done) { if (v5.isNode()) { + var Stream = v5.stream.Stream; + var fs = v11(\\"fs\\"); + if (typeof Stream === \\"function\\" && body instanceof Stream) { + if (typeof body.path === \\"string\\") { + var settings = {}; + if (typeof body.start === \\"number\\") { + settings.start = body.start; + } + if (typeof body.end === \\"number\\") { + settings.end = body.end; + } + body = fs.createReadStream(body.path, settings); } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; + else { + return done(new v39(\\"Non-file stream objects are \\" + \\"not supported with SigV4\\")); } - return t; - }; - __rest = function(s, e) { - var t = {}; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === \\"function\\") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - __decorate = function(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === \\"object\\" && typeof Reflect.decorate === \\"function\\") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - __param = function(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; - }; - __metadata = function(metadataKey, metadataValue) { - if (typeof Reflect === \\"object\\" && typeof Reflect.metadata === \\"function\\") - return Reflect.metadata(metadataKey, metadataValue); - }; - __awaiter = function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); + } +} v91.sha256(body, \\"hex\\", function (err, sha) { if (err) + done(err); +else + done(null, sha); }); }; +const v151 = {}; +v151.constructor = v150; +v150.prototype = v151; +v3.computeSha256 = v150; +var v152; +const v153 = {}; +var v154; +v154 = function Config(options) { if (options === undefined) + options = {}; options = this.extractCredentials(options); v3.each.call(this, this.keys, function (key, value) { this.set(key, options[key], value); }); }; +v154.prototype = v153; +v154.__super__ = v31; +v153.constructor = v154; +var v155; +var v156 = v40; +v155 = function getCredentials(callback) { var self = this; function finish(err) { callback(err, err ? null : self.credentials); } function credError(msg, err) { return new v3.error(err || new v156(), { code: \\"CredentialsError\\", message: msg, name: \\"CredentialsError\\" }); } function getAsyncCredentials() { self.credentials.get(function (err) { if (err) { + var msg = \\"Could not load credentials from \\" + self.credentials.constructor.name; + err = credError(msg, err); +} finish(err); }); } function getStaticCredentials() { var err = null; if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { + err = credError(\\"Missing credentials\\"); +} finish(err); } if (self.credentials) { + if (typeof self.credentials.get === \\"function\\") { + getAsyncCredentials(); + } + else { + getStaticCredentials(); + } +} +else if (self.credentialProvider) { + self.credentialProvider.resolve(function (err, creds) { if (err) { + err = credError(\\"Could not load credentials from any providers\\", err); + } self.credentials = creds; finish(err); }); +} +else { + finish(credError(\\"No credentials to load\\")); +} }; +const v157 = {}; +v157.constructor = v155; +v155.prototype = v157; +v153.getCredentials = v155; +var v158; +var v159 = v2; +v158 = function update(options, allowUnknownKeys) { allowUnknownKeys = allowUnknownKeys || false; options = this.extractCredentials(options); v3.each.call(this, options, function (key, value) { if (allowUnknownKeys || v113.hasOwnProperty.call(this.keys, key) || v159.Service.hasService(key)) { + this.set(key, value); +} }); }; +const v160 = {}; +v160.constructor = v158; +v158.prototype = v160; +v153.update = v158; +var v161; +const v163 = JSON; +var v162 = v163; +v161 = function loadFromPath(path) { this.clear(); var options = v162.parse(v3.readFileSync(path)); var fileSystemCreds = new v159.FileSystemCredentials(path); var chain = new v159.CredentialProviderChain(); chain.providers.unshift(fileSystemCreds); chain.resolve(function (err, creds) { if (err) + throw err; +else + options.credentials = creds; }); this.constructor(options); return this; }; +const v164 = {}; +v164.constructor = v161; +v161.prototype = v164; +v153.loadFromPath = v161; +var v165; +v165 = function clear() { v3.each.call(this, this.keys, function (key) { delete this[key]; }); this.set(\\"credentials\\", undefined); this.set(\\"credentialProvider\\", undefined); }; +const v166 = {}; +v166.constructor = v165; +v165.prototype = v166; +v153.clear = v165; +var v167; +v167 = function set(property, value, defaultValue) { if (value === undefined) { + if (defaultValue === undefined) { + defaultValue = this.keys[property]; + } + if (typeof defaultValue === \\"function\\") { + this[property] = defaultValue.call(this); + } + else { + this[property] = defaultValue; + } +} +else if (property === \\"httpOptions\\" && this[property]) { + this[property] = v3.merge(this[property], value); +} +else { + this[property] = value; +} }; +const v168 = {}; +v168.constructor = v167; +v167.prototype = v168; +v153.set = v167; +const v169 = {}; +var v170; +var v171 = v2; +var v172 = v2; +v170 = function () { var credentials = null; new v171.CredentialProviderChain([function () { return new v171.EnvironmentCredentials(\\"AWS\\"); }, function () { return new v171.EnvironmentCredentials(\\"AMAZON\\"); }, function () { return new v172.SharedIniFileCredentials({ disableAssumeRole: true }); }]).resolve(function (err, creds) { if (!err) + credentials = creds; }); return credentials; }; +const v173 = {}; +v173.constructor = v170; +v170.prototype = v173; +v169.credentials = v170; +var v174; +v174 = function () { return new v171.CredentialProviderChain(); }; +const v175 = {}; +v175.constructor = v174; +v174.prototype = v175; +v169.credentialProvider = v174; +var v176; +var v178; +var v179 = v8; +const v180 = {}; +var v181; +v181 = function IniLoader() { this.resolvedProfiles = {}; }; +v181.prototype = v180; +v181.__super__ = v31; +v180.constructor = v181; +var v182; +v182 = function clearCachedFiles() { this.resolvedProfiles = {}; }; +const v183 = {}; +v183.constructor = v182; +v182.prototype = v183; +v180.clearCachedFiles = v182; +var v184; +var v185 = v31; +v184 = function loadFrom(options) { options = options || {}; var isConfig = options.isConfig === true; var filename = options.filename || this.getDefaultFilePath(isConfig); if (!this.resolvedProfiles[filename]) { + var fileContent = this.parseFile(filename, isConfig); + v185.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); +} return this.resolvedProfiles[filename]; }; +const v186 = {}; +v186.constructor = v184; +v184.prototype = v186; +v180.loadFrom = v184; +var v187; +var v188 = v31; +v187 = function parseFile(filename, isConfig) { var content = v62.parse(v3.readFileSync(filename)); var tmpContent = {}; v188.keys(content).forEach(function (profileName) { var profileContent = content[profileName]; profileName = isConfig ? profileName.replace(/^profile\\\\s/, \\"\\") : profileName; v185.defineProperty(tmpContent, profileName, { value: profileContent, enumerable: true }); }); return tmpContent; }; +const v189 = {}; +v189.constructor = v187; +v187.prototype = v189; +v180.parseFile = v187; +var v190; +const v192 = require(\\"path\\"); +var v191 = v192; +v190 = function getDefaultFilePath(isConfig) { return v191.join(this.getHomeDir(), \\".aws\\", isConfig ? \\"config\\" : \\"credentials\\"); }; +const v193 = {}; +v193.constructor = v190; +v190.prototype = v193; +v180.getDefaultFilePath = v190; +var v194; +var v195 = v8; +const v197 = require(\\"os\\"); +var v196 = v197; +var v198 = v40; +v194 = function getHomeDir() { var env = v195.env; var home = env.HOME || env.USERPROFILE || (env.HOMEPATH ? ((env.HOMEDRIVE || \\"C:/\\") + env.HOMEPATH) : null); if (home) { + return home; +} if (typeof v196.homedir === \\"function\\") { + return v196.homedir(); +} throw v3.error(new v198(\\"Cannot load credentials, HOME path not set\\")); }; +const v199 = {}; +v199.constructor = v194; +v194.prototype = v199; +v180.getHomeDir = v194; +const v200 = Object.create(v180); +const v201 = {}; +v200.resolvedProfiles = v201; +v178 = function () { var env = v179.env; var region = env.AWS_REGION || env.AMAZON_REGION; if (env[\\"AWS_SDK_LOAD_CONFIG\\"]) { + var toCheck = [{ filename: env[\\"AWS_SHARED_CREDENTIALS_FILE\\"] }, { isConfig: true, filename: env[\\"AWS_CONFIG_FILE\\"] }]; + var iniLoader = v200; + while (!region && toCheck.length) { + var configFile = {}; + var fileInfo = toCheck.shift(); + try { + configFile = iniLoader.loadFrom(fileInfo); } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator[\\"throw\\"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - __generator = function(thisArg, body) { - var _ = { label: 0, sent: function() { - if (t[0] & 1) - throw t[1]; - return t[1]; - }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), \\"throw\\": verb(1), \\"return\\": verb(2) }, typeof Symbol === \\"function\\" && (g[Symbol.iterator] = function() { - return this; - }), g; - function verb(n) { - return function(v) { - return step([n, v]); - }; + catch (err) { + if (fileInfo.isConfig) + throw err; } - function step(op) { - if (f) - throw new TypeError(\\"Generator is already executing.\\"); - while (_) - try { - if (f = 1, y && (t = op[0] & 2 ? y[\\"return\\"] : op[0] ? y[\\"throw\\"] || ((t = y[\\"return\\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) - return t; - if (y = 0, t) - op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) - _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; + var profile = configFile[env.AWS_PROFILE || \\"default\\"]; + region = profile && profile.region; + } +} return region; }; +const v202 = {}; +v202.constructor = v178; +v178.prototype = v202; +var v177 = v178; +var v204; +v204 = function getRealRegion(region) { return [\\"fips-aws-global\\", \\"aws-fips\\", \\"aws-global\\"].includes(region) ? \\"us-east-1\\" : [\\"fips-aws-us-gov-global\\", \\"aws-us-gov-global\\"].includes(region) ? \\"us-gov-west-1\\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \\"\\"); }; +const v205 = {}; +v205.constructor = v204; +v204.prototype = v205; +var v203 = v204; +v176 = function () { var region = v177(); return region ? v203(region) : undefined; }; +const v206 = {}; +v206.constructor = v176; +v176.prototype = v206; +v169.region = v176; +var v207; +var v208 = v8; +const v210 = console; +var v209 = v210; +v207 = function () { return v208.env.AWSJS_DEBUG ? v209 : null; }; +const v211 = {}; +v211.constructor = v207; +v207.prototype = v211; +v169.logger = v207; +const v212 = {}; +v169.apiVersions = v212; +v169.apiVersion = null; +v169.endpoint = undefined; +const v213 = {}; +v213.timeout = 120000; +v169.httpOptions = v213; +v169.maxRetries = undefined; +v169.maxRedirects = 10; +v169.paramValidation = true; +v169.sslEnabled = true; +v169.s3ForcePathStyle = false; +v169.s3BucketEndpoint = false; +v169.s3DisableBodySigning = true; +v169.s3UsEast1RegionalEndpoint = \\"legacy\\"; +v169.s3UseArnRegion = undefined; +v169.computeChecksums = true; +v169.convertResponseTypes = true; +v169.correctClockSkew = false; +v169.customUserAgent = null; +v169.dynamoDbCrc32 = true; +v169.systemClockOffset = 0; +v169.signatureVersion = null; +v169.signatureCache = true; +const v214 = {}; +v169.retryDelayOptions = v214; +v169.useAccelerateEndpoint = false; +v169.clientSideMonitoring = false; +v169.endpointDiscoveryEnabled = undefined; +v169.endpointCacheSize = 1000; +v169.hostPrefixEnabled = true; +v169.stsRegionalEndpoints = \\"legacy\\"; +var v215; +var v216 = v178; +var v218; +v218 = function isFipsRegion(region) { return typeof region === \\"string\\" && (region.startsWith(\\"fips-\\") || region.endsWith(\\"-fips\\")); }; +const v219 = {}; +v219.constructor = v218; +v218.prototype = v219; +var v217 = v218; +var v220 = v3; +const v222 = {}; +var v223; +var v225; +v225 = function (value) { return value === \\"true\\" ? true : value === \\"false\\" ? false : undefined; }; +const v226 = {}; +v226.constructor = v225; +v225.prototype = v226; +var v224 = v225; +v223 = function (env) { return v224(env[\\"AWS_USE_FIPS_ENDPOINT\\"]); }; +const v227 = {}; +v227.constructor = v223; +v223.prototype = v227; +v222.environmentVariableSelector = v223; +var v228; +v228 = function (profile) { return v224(profile[\\"use_fips_endpoint\\"]); }; +const v229 = {}; +v229.constructor = v228; +v228.prototype = v229; +v222.configFileSelector = v228; +v222.default = false; +var v221 = v222; +v215 = function () { var region = v216(); return v217(region) ? true : v220.loadConfig(v221); }; +const v230 = {}; +v230.constructor = v215; +v215.prototype = v230; +v169.useFipsEndpoint = v215; +var v231; +const v233 = {}; +var v234; +v234 = function (env) { return v224(env[\\"AWS_USE_DUALSTACK_ENDPOINT\\"]); }; +const v235 = {}; +v235.constructor = v234; +v234.prototype = v235; +v233.environmentVariableSelector = v234; +var v236; +v236 = function (profile) { return v224(profile[\\"use_dualstack_endpoint\\"]); }; +const v237 = {}; +v237.constructor = v236; +v236.prototype = v237; +v233.configFileSelector = v236; +v233.default = false; +var v232 = v233; +v231 = function () { return v220.loadConfig(v232); }; +const v238 = {}; +v238.constructor = v231; +v231.prototype = v238; +v169.useDualstackEndpoint = v231; +v153.keys = v169; +var v239; +var v240 = v2; +v239 = function extractCredentials(options) { if (options.accessKeyId && options.secretAccessKey) { + options = v3.copy(options); + options.credentials = new v240.Credentials(options); +} return options; }; +const v241 = {}; +v241.constructor = v239; +v239.prototype = v241; +v153.extractCredentials = v239; +var v242; +const v244 = Promise; +var v243 = v244; +var v245 = v244; +var v246 = v2; +var v247 = undefined; +v242 = function setPromisesDependency(dep) { PromisesDependency = dep; if (dep === null && typeof v243 === \\"function\\") { + PromisesDependency = v245; +} var constructors = [v240.Request, v246.Credentials, v240.CredentialProviderChain]; if (v240.S3) { + constructors.push(v246.S3); + if (v246.S3.ManagedUpload) { + constructors.push(v246.S3.ManagedUpload); + } +} v3.addPromises(constructors, v247); }; +const v248 = {}; +v248.constructor = v242; +v242.prototype = v248; +v153.setPromisesDependency = v242; +var v249; +v249 = function getPromisesDependency() { return v247; }; +const v250 = {}; +v250.constructor = v249; +v249.prototype = v250; +v153.getPromisesDependency = v249; +const v251 = Object.create(v153); +const v252 = {}; +var v253; +v253 = function Credentials() { v3.hideProperties(this, [\\"secretAccessKey\\"]); this.expired = false; this.expireTime = null; this.refreshCallbacks = []; if (arguments.length === 1 && typeof arguments[0] === \\"object\\") { + var creds = arguments[0].credentials || arguments[0]; + this.accessKeyId = creds.accessKeyId; + this.secretAccessKey = creds.secretAccessKey; + this.sessionToken = creds.sessionToken; +} +else { + this.accessKeyId = arguments[0]; + this.secretAccessKey = arguments[1]; + this.sessionToken = arguments[2]; +} }; +v253.prototype = v252; +v253.__super__ = v31; +var v254; +v254 = function addPromisesToClass(PromiseDependency) { this.prototype.getPromise = v3.promisifyMethod(\\"get\\", PromiseDependency); this.prototype.refreshPromise = v3.promisifyMethod(\\"refresh\\", PromiseDependency); }; +const v255 = {}; +v255.constructor = v254; +v254.prototype = v255; +v253.addPromisesToClass = v254; +var v256; +v256 = function deletePromisesFromClass() { delete this.prototype.getPromise; delete this.prototype.refreshPromise; }; +const v257 = {}; +v257.constructor = v256; +v256.prototype = v257; +v253.deletePromisesFromClass = v256; +v252.constructor = v253; +v252.expiryWindow = 15; +var v258; +var v259 = v77; +v258 = function needsRefresh() { var currentTime = v73.getDate().getTime(); var adjustedTime = new v259(currentTime + this.expiryWindow * 1000); if (this.expireTime && adjustedTime > this.expireTime) { + return true; +} +else { + return this.expired || !this.accessKeyId || !this.secretAccessKey; +} }; +const v260 = {}; +v260.constructor = v258; +v258.prototype = v260; +v252.needsRefresh = v258; +var v261; +v261 = function get(callback) { var self = this; if (this.needsRefresh()) { + this.refresh(function (err) { if (!err) + self.expired = false; if (callback) + callback(err); }); +} +else if (callback) { + callback(); +} }; +const v262 = {}; +v262.constructor = v261; +v261.prototype = v262; +v252.get = v261; +var v263; +v263 = function refresh(callback) { this.expired = false; callback(); }; +const v264 = {}; +v264.constructor = v263; +v263.prototype = v264; +v252.refresh = v263; +var v265; +v265 = function coalesceRefresh(callback, sync) { var self = this; if (self.refreshCallbacks.push(callback) === 1) { + self.load(function onLoad(err) { v3.arrayEach(self.refreshCallbacks, function (callback) { if (sync) { + callback(err); + } + else { + v3.defer(function () { callback(err); }); + } }); self.refreshCallbacks.length = 0; }); +} }; +const v266 = {}; +v266.constructor = v265; +v265.prototype = v266; +v252.coalesceRefresh = v265; +var v267; +v267 = function load(callback) { callback(); }; +const v268 = {}; +v268.constructor = v267; +v267.prototype = v268; +v252.load = v267; +var v269; +var v270 = v244; +var v271 = \\"get\\"; +v269 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v270(function (resolve, reject) { args.push(function (err, data) { if (err) { + reject(err); +} +else { + resolve(data); +} }); self[v271].apply(self, args); }); }; +const v272 = {}; +v272.constructor = v269; +v269.prototype = v272; +v252.getPromise = v269; +var v273; +var v274 = v244; +var v275 = \\"refresh\\"; +v273 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v274(function (resolve, reject) { args.push(function (err, data) { if (err) { + reject(err); +} +else { + resolve(data); +} }); self[v275].apply(self, args); }); }; +const v276 = {}; +v276.constructor = v273; +v273.prototype = v276; +v252.refreshPromise = v273; +const v277 = Object.create(v252); +var v278; +var v279 = v2; +var v280 = v8; +const v282 = Boolean; +var v281 = v282; +var v283 = v282; +v278 = function SharedIniFileCredentials(options) { v279.Credentials.call(this); options = options || {}; this.filename = options.filename; this.profile = options.profile || v280.env.AWS_PROFILE || \\"default\\"; this.disableAssumeRole = v281(options.disableAssumeRole); this.preferStaticCredentials = v283(options.preferStaticCredentials); this.tokenCodeFn = options.tokenCodeFn || null; this.httpOptions = options.httpOptions || null; this.get(options.callback || v65.noop); }; +v278.prototype = v277; +v278.__super__ = v253; +v277.constructor = v278; +var v284; +var v285 = v200; +var v286 = v31; +var v287 = v40; +var v288 = v40; +v284 = function load(callback) { var self = this; try { + var profiles = v3.getProfilesFromSharedConfig(v285, this.filename); + var profile = profiles[this.profile] || {}; + if (v286.keys(profile).length === 0) { + throw v3.error(new v287(\\"Profile \\" + this.profile + \\" not found\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + var preferStaticCredentialsToRoleArn = v281(this.preferStaticCredentials && profile[\\"aws_access_key_id\\"] && profile[\\"aws_secret_access_key\\"]); + if (profile[\\"role_arn\\"] && !preferStaticCredentialsToRoleArn) { + this.loadRoleProfile(profiles, profile, function (err, data) { if (err) { + callback(err); + } + else { + self.expired = false; + self.accessKeyId = data.Credentials.AccessKeyId; + self.secretAccessKey = data.Credentials.SecretAccessKey; + self.sessionToken = data.Credentials.SessionToken; + self.expireTime = data.Credentials.Expiration; + callback(null); + } }); + return; + } + this.accessKeyId = profile[\\"aws_access_key_id\\"]; + this.secretAccessKey = profile[\\"aws_secret_access_key\\"]; + this.sessionToken = profile[\\"aws_session_token\\"]; + if (!this.accessKeyId || !this.secretAccessKey) { + throw v3.error(new v288(\\"Credentials not set for profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); + } + this.expired = false; + callback(null); +} +catch (err) { + callback(err); +} }; +const v289 = {}; +v289.constructor = v284; +v284.prototype = v289; +v277.load = v284; +var v290; +var v291 = v200; +v290 = function refresh(callback) { v291.clearCachedFiles(); this.coalesceRefresh(callback || v65.callback, this.disableAssumeRole); }; +const v292 = {}; +v292.constructor = v290; +v290.prototype = v292; +v277.refresh = v290; +var v293; +var v294 = \\"us-east-1\\"; +var v295 = v40; +var v297; +var v299; +var v300 = v40; +const v302 = {}; +v302.isFipsRegion = v218; +var v303; +v303 = function isGlobalRegion(region) { return typeof region === \\"string\\" && [\\"aws-global\\", \\"aws-us-gov-global\\"].includes(region); }; +const v304 = {}; +v304.constructor = v303; +v303.prototype = v304; +v302.isGlobalRegion = v303; +v302.getRealRegion = v204; +var v301 = v302; +var v305 = v302; +var v306 = v302; +var v307 = v31; +var v308 = 1; +v299 = function Service(config) { if (!this.loadServiceClass) { + throw v3.error(new v300(), \\"Service must be constructed with \`new' operator\\"); +} if (config) { + if (config.region) { + var region = config.region; + if (v301.isFipsRegion(region)) { + config.region = v305.getRealRegion(region); + config.useFipsEndpoint = true; + } + if (v306.isGlobalRegion(region)) { + config.region = v306.getRealRegion(region); + } + } + if (typeof config.useDualstack === \\"boolean\\" && typeof config.useDualstackEndpoint !== \\"boolean\\") { + config.useDualstackEndpoint = config.useDualstack; + } +} var ServiceClass = this.loadServiceClass(config || {}); if (ServiceClass) { + var originalConfig = v3.copy(config); + var svc = new ServiceClass(config); + v307.defineProperty(svc, \\"_originalConfig\\", { get: function () { return originalConfig; }, enumerable: false, configurable: true }); + svc._clientId = ++v308; + return svc; +} this.initialize(config); }; +const v309 = {}; +v309.constructor = v299; +var v310; +var v311 = v2; +const v313 = {}; +var v314; +var v316; +var v318; +v318 = function generateRegionPrefix(region) { if (!region) + return null; var parts = region.split(\\"-\\"); if (parts.length < 3) + return null; return parts.slice(0, parts.length - 2).join(\\"-\\") + \\"-*\\"; }; +const v319 = {}; +v319.constructor = v318; +v318.prototype = v319; +var v317 = v318; +v316 = function derivedKeys(service) { var region = service.config.region; var regionPrefix = v317(region); var endpointPrefix = service.api.endpointPrefix; return [[region, endpointPrefix], [regionPrefix, endpointPrefix], [region, \\"*\\"], [regionPrefix, \\"*\\"], [\\"*\\", endpointPrefix], [\\"*\\", \\"*\\"]].map(function (item) { return item[0] && item[1] ? item.join(\\"/\\") : null; }); }; +const v320 = {}; +v320.constructor = v316; +v316.prototype = v320; +var v315 = v316; +const v321 = {}; +const v322 = {}; +v322.endpoint = \\"{service}-fips.{region}.api.aws\\"; +v321[\\"*/*\\"] = v322; +const v323 = {}; +v323.endpoint = \\"{service}-fips.{region}.api.amazonwebservices.com.cn\\"; +v321[\\"cn-*/*\\"] = v323; +v321[\\"*/s3\\"] = \\"dualstackFipsLegacy\\"; +v321[\\"cn-*/s3\\"] = \\"dualstackFipsLegacyCn\\"; +v321[\\"*/s3-control\\"] = \\"dualstackFipsLegacy\\"; +v321[\\"cn-*/s3-control\\"] = \\"dualstackFipsLegacyCn\\"; +const v324 = {}; +v324[\\"*/*\\"] = \\"fipsStandard\\"; +v324[\\"us-gov-*/*\\"] = \\"fipsStandard\\"; +const v325 = {}; +v325.endpoint = \\"{service}-fips.{region}.c2s.ic.gov\\"; +v324[\\"us-iso-*/*\\"] = v325; +v324[\\"us-iso-*/dms\\"] = \\"usIso\\"; +const v326 = {}; +v326.endpoint = \\"{service}-fips.{region}.sc2s.sgov.gov\\"; +v324[\\"us-isob-*/*\\"] = v326; +v324[\\"us-isob-*/dms\\"] = \\"usIsob\\"; +const v327 = {}; +v327.endpoint = \\"{service}-fips.{region}.amazonaws.com.cn\\"; +v324[\\"cn-*/*\\"] = v327; +v324[\\"*/api.ecr\\"] = \\"fips.api.ecr\\"; +v324[\\"*/api.sagemaker\\"] = \\"fips.api.sagemaker\\"; +v324[\\"*/batch\\"] = \\"fipsDotPrefix\\"; +v324[\\"*/eks\\"] = \\"fipsDotPrefix\\"; +v324[\\"*/models.lex\\"] = \\"fips.models.lex\\"; +v324[\\"*/runtime.lex\\"] = \\"fips.runtime.lex\\"; +const v328 = {}; +v328.endpoint = \\"runtime-fips.sagemaker.{region}.amazonaws.com\\"; +v324[\\"*/runtime.sagemaker\\"] = v328; +v324[\\"*/iam\\"] = \\"fipsWithoutRegion\\"; +v324[\\"*/route53\\"] = \\"fipsWithoutRegion\\"; +v324[\\"*/transcribe\\"] = \\"fipsDotPrefix\\"; +v324[\\"*/waf\\"] = \\"fipsWithoutRegion\\"; +v324[\\"us-gov-*/transcribe\\"] = \\"fipsDotPrefix\\"; +v324[\\"us-gov-*/api.ecr\\"] = \\"fips.api.ecr\\"; +v324[\\"us-gov-*/api.sagemaker\\"] = \\"fips.api.sagemaker\\"; +v324[\\"us-gov-*/models.lex\\"] = \\"fips.models.lex\\"; +v324[\\"us-gov-*/runtime.lex\\"] = \\"fips.runtime.lex\\"; +v324[\\"us-gov-*/acm-pca\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/batch\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/config\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/eks\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/elasticmapreduce\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/identitystore\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/dynamodb\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/elasticloadbalancing\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/guardduty\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/monitoring\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/resource-groups\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/runtime.sagemaker\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/servicecatalog-appregistry\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/servicequotas\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/ssm\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/sts\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-*/support\\"] = \\"fipsWithServiceOnly\\"; +v324[\\"us-gov-west-1/states\\"] = \\"fipsWithServiceOnly\\"; +const v329 = {}; +v329.endpoint = \\"elasticfilesystem-fips.{region}.c2s.ic.gov\\"; +v324[\\"us-iso-east-1/elasticfilesystem\\"] = v329; +v324[\\"us-gov-west-1/organizations\\"] = \\"fipsWithServiceOnly\\"; +const v330 = {}; +v330.endpoint = \\"route53.us-gov.amazonaws.com\\"; +v324[\\"us-gov-west-1/route53\\"] = v330; +const v331 = {}; +const v332 = {}; +v332.endpoint = \\"{service}.{region}.api.aws\\"; +v331[\\"*/*\\"] = v332; +const v333 = {}; +v333.endpoint = \\"{service}.{region}.api.amazonwebservices.com.cn\\"; +v331[\\"cn-*/*\\"] = v333; +v331[\\"*/s3\\"] = \\"dualstackLegacy\\"; +v331[\\"cn-*/s3\\"] = \\"dualstackLegacyCn\\"; +v331[\\"*/s3-control\\"] = \\"dualstackLegacy\\"; +v331[\\"cn-*/s3-control\\"] = \\"dualstackLegacyCn\\"; +v331[\\"ap-south-1/ec2\\"] = \\"dualstackLegacyEc2\\"; +v331[\\"eu-west-1/ec2\\"] = \\"dualstackLegacyEc2\\"; +v331[\\"sa-east-1/ec2\\"] = \\"dualstackLegacyEc2\\"; +v331[\\"us-east-1/ec2\\"] = \\"dualstackLegacyEc2\\"; +v331[\\"us-east-2/ec2\\"] = \\"dualstackLegacyEc2\\"; +v331[\\"us-west-2/ec2\\"] = \\"dualstackLegacyEc2\\"; +const v334 = {}; +const v335 = {}; +v335.endpoint = \\"{service}.{region}.amazonaws.com\\"; +v335.signatureVersion = \\"v4\\"; +v334[\\"*/*\\"] = v335; +const v336 = {}; +v336.endpoint = \\"{service}.{region}.amazonaws.com.cn\\"; +v334[\\"cn-*/*\\"] = v336; +v334[\\"us-iso-*/*\\"] = \\"usIso\\"; +v334[\\"us-isob-*/*\\"] = \\"usIsob\\"; +v334[\\"*/budgets\\"] = \\"globalSSL\\"; +v334[\\"*/cloudfront\\"] = \\"globalSSL\\"; +v334[\\"*/sts\\"] = \\"globalSSL\\"; +const v337 = {}; +v337.endpoint = \\"{service}.amazonaws.com\\"; +v337.signatureVersion = \\"v2\\"; +v337.globalEndpoint = true; +v334[\\"*/importexport\\"] = v337; +v334[\\"*/route53\\"] = \\"globalSSL\\"; +const v338 = {}; +v338.endpoint = \\"{service}.amazonaws.com.cn\\"; +v338.globalEndpoint = true; +v338.signingRegion = \\"cn-northwest-1\\"; +v334[\\"cn-*/route53\\"] = v338; +v334[\\"us-gov-*/route53\\"] = \\"globalGovCloud\\"; +const v339 = {}; +v339.endpoint = \\"{service}.c2s.ic.gov\\"; +v339.globalEndpoint = true; +v339.signingRegion = \\"us-iso-east-1\\"; +v334[\\"us-iso-*/route53\\"] = v339; +const v340 = {}; +v340.endpoint = \\"{service}.sc2s.sgov.gov\\"; +v340.globalEndpoint = true; +v340.signingRegion = \\"us-isob-east-1\\"; +v334[\\"us-isob-*/route53\\"] = v340; +v334[\\"*/waf\\"] = \\"globalSSL\\"; +v334[\\"*/iam\\"] = \\"globalSSL\\"; +const v341 = {}; +v341.endpoint = \\"{service}.cn-north-1.amazonaws.com.cn\\"; +v341.globalEndpoint = true; +v341.signingRegion = \\"cn-north-1\\"; +v334[\\"cn-*/iam\\"] = v341; +v334[\\"us-gov-*/iam\\"] = \\"globalGovCloud\\"; +const v342 = {}; +v342.endpoint = \\"{service}.{region}.amazonaws.com\\"; +v334[\\"us-gov-*/sts\\"] = v342; +v334[\\"us-gov-west-1/s3\\"] = \\"s3signature\\"; +v334[\\"us-west-1/s3\\"] = \\"s3signature\\"; +v334[\\"us-west-2/s3\\"] = \\"s3signature\\"; +v334[\\"eu-west-1/s3\\"] = \\"s3signature\\"; +v334[\\"ap-southeast-1/s3\\"] = \\"s3signature\\"; +v334[\\"ap-southeast-2/s3\\"] = \\"s3signature\\"; +v334[\\"ap-northeast-1/s3\\"] = \\"s3signature\\"; +v334[\\"sa-east-1/s3\\"] = \\"s3signature\\"; +const v343 = {}; +v343.endpoint = \\"{service}.amazonaws.com\\"; +v343.signatureVersion = \\"s3\\"; +v334[\\"us-east-1/s3\\"] = v343; +const v344 = {}; +v344.endpoint = \\"{service}.amazonaws.com\\"; +v344.signatureVersion = \\"v2\\"; +v334[\\"us-east-1/sdb\\"] = v344; +const v345 = {}; +v345.endpoint = \\"{service}.{region}.amazonaws.com\\"; +v345.signatureVersion = \\"v2\\"; +v334[\\"*/sdb\\"] = v345; +const v346 = {}; +const v347 = {}; +v347.endpoint = \\"https://{service}.amazonaws.com\\"; +v347.globalEndpoint = true; +v347.signingRegion = \\"us-east-1\\"; +v346.globalSSL = v347; +const v348 = {}; +v348.endpoint = \\"{service}.us-gov.amazonaws.com\\"; +v348.globalEndpoint = true; +v348.signingRegion = \\"us-gov-west-1\\"; +v346.globalGovCloud = v348; +const v349 = {}; +v349.endpoint = \\"{service}.{region}.amazonaws.com\\"; +v349.signatureVersion = \\"s3\\"; +v346.s3signature = v349; +const v350 = {}; +v350.endpoint = \\"{service}.{region}.c2s.ic.gov\\"; +v346.usIso = v350; +const v351 = {}; +v351.endpoint = \\"{service}.{region}.sc2s.sgov.gov\\"; +v346.usIsob = v351; +const v352 = {}; +v352.endpoint = \\"{service}-fips.{region}.amazonaws.com\\"; +v346.fipsStandard = v352; +const v353 = {}; +v353.endpoint = \\"fips.{service}.{region}.amazonaws.com\\"; +v346.fipsDotPrefix = v353; +const v354 = {}; +v354.endpoint = \\"{service}-fips.amazonaws.com\\"; +v346.fipsWithoutRegion = v354; +const v355 = {}; +v355.endpoint = \\"ecr-fips.{region}.amazonaws.com\\"; +v346[\\"fips.api.ecr\\"] = v355; +const v356 = {}; +v356.endpoint = \\"api-fips.sagemaker.{region}.amazonaws.com\\"; +v346[\\"fips.api.sagemaker\\"] = v356; +const v357 = {}; +v357.endpoint = \\"models-fips.lex.{region}.amazonaws.com\\"; +v346[\\"fips.models.lex\\"] = v357; +const v358 = {}; +v358.endpoint = \\"runtime-fips.lex.{region}.amazonaws.com\\"; +v346[\\"fips.runtime.lex\\"] = v358; +const v359 = {}; +v359.endpoint = \\"{service}.{region}.amazonaws.com\\"; +v346.fipsWithServiceOnly = v359; +const v360 = {}; +v360.endpoint = \\"{service}.dualstack.{region}.amazonaws.com\\"; +v346.dualstackLegacy = v360; +const v361 = {}; +v361.endpoint = \\"{service}.dualstack.{region}.amazonaws.com.cn\\"; +v346.dualstackLegacyCn = v361; +const v362 = {}; +v362.endpoint = \\"{service}-fips.dualstack.{region}.amazonaws.com\\"; +v346.dualstackFipsLegacy = v362; +const v363 = {}; +v363.endpoint = \\"{service}-fips.dualstack.{region}.amazonaws.com.cn\\"; +v346.dualstackFipsLegacyCn = v363; +const v364 = {}; +v364.endpoint = \\"api.ec2.{region}.aws\\"; +v346.dualstackLegacyEc2 = v364; +var v366; +var v367 = v3; +v366 = function applyConfig(service, config) { v367.each(config, function (key, value) { if (key === \\"globalEndpoint\\") + return; if (service.config[key] === undefined || service.config[key] === null) { + service.config[key] = value; +} }); }; +const v368 = {}; +v368.constructor = v366; +v366.prototype = v368; +var v365 = v366; +v314 = function configureEndpoint(service) { var keys = v315(service); var useFipsEndpoint = service.config.useFipsEndpoint; var useDualstackEndpoint = service.config.useDualstackEndpoint; for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!key) + continue; + var rules = useFipsEndpoint ? useDualstackEndpoint ? v321 : v324 : useDualstackEndpoint ? v331 : v334; + if (v113.hasOwnProperty.call(rules, key)) { + var config = rules[key]; + if (typeof config === \\"string\\") { + config = v346[config]; + } + service.isGlobalEndpoint = !!config.globalEndpoint; + if (config.signingRegion) { + service.signingRegion = config.signingRegion; + } + if (!config.signatureVersion) + config.signatureVersion = \\"v4\\"; + v365(service, config); + return; + } +} }; +const v369 = {}; +v369.constructor = v314; +v314.prototype = v369; +v313.configureEndpoint = v314; +var v370; +var v371 = v31; +const v373 = RegExp; +var v372 = v373; +v370 = function getEndpointSuffix(region) { var regionRegexes = { \\"^(us|eu|ap|sa|ca|me)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"amazonaws.com\\", \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"amazonaws.com.cn\\", \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"amazonaws.com\\", \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"c2s.ic.gov\\", \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"sc2s.sgov.gov\\" }; var defaultSuffix = \\"amazonaws.com\\"; var regexes = v371.keys(regionRegexes); for (var i = 0; i < regexes.length; i++) { + var regionPattern = v372(regexes[i]); + var dnsSuffix = regionRegexes[regexes[i]]; + if (regionPattern.test(region)) + return dnsSuffix; +} return defaultSuffix; }; +const v374 = {}; +v374.constructor = v370; +v370.prototype = v374; +v313.getEndpointSuffix = v370; +var v312 = v313; +var v375 = v2; +var v376 = v8; +v310 = function initialize(config) { var svcConfig = v251[this.serviceIdentifier]; this.config = new v311.Config(v251); if (svcConfig) + this.config.update(svcConfig, true); if (config) + this.config.update(config, true); this.validateService(); if (!this.config.endpoint) + v312.configureEndpoint(this); this.config.endpoint = this.endpointFromTemplate(this.config.endpoint); this.setEndpoint(this.config.endpoint); v375.SequentialExecutor.call(this); v375.Service.addDefaultMonitoringListeners(this); if ((this.config.clientSideMonitoring || undefined) && this.publisher) { + var publisher = this.publisher; + this.addNamedListener(\\"PUBLISH_API_CALL\\", \\"apiCall\\", function PUBLISH_API_CALL(event) { v376.nextTick(function () { publisher.eventHandler(event); }); }); + this.addNamedListener(\\"PUBLISH_API_ATTEMPT\\", \\"apiCallAttempt\\", function PUBLISH_API_ATTEMPT(event) { v376.nextTick(function () { publisher.eventHandler(event); }); }); +} }; +const v377 = {}; +v377.constructor = v310; +v310.prototype = v377; +v309.initialize = v310; +var v378; +v378 = function validateService() { }; +const v379 = {}; +v379.constructor = v378; +v378.prototype = v379; +v309.validateService = v378; +var v380; +var v381 = v2; +v380 = function loadServiceClass(serviceConfig) { var config = serviceConfig; if (!v3.isEmpty(this.api)) { + return null; +} +else if (config.apiConfig) { + return v381.Service.defineServiceApi(this.constructor, config.apiConfig); +} +else if (!this.constructor.services) { + return null; +} +else { + config = new v375.Config(v251); + config.update(serviceConfig, true); + var version = config.apiVersions[this.constructor.serviceIdentifier]; + version = version || config.apiVersion; + return this.getLatestServiceClass(version); +} }; +const v382 = {}; +v382.constructor = v380; +v380.prototype = v382; +v309.loadServiceClass = v380; +var v383; +v383 = function getLatestServiceClass(version) { version = this.getLatestServiceVersion(version); if (this.constructor.services[version] === null) { + v375.Service.defineServiceApi(this.constructor, version); +} return this.constructor.services[version]; }; +const v384 = {}; +v384.constructor = v383; +v383.prototype = v384; +v309.getLatestServiceClass = v383; +var v385; +var v386 = v77; +var v387 = v31; +var v388 = v31; +var v389 = v40; +v385 = function getLatestServiceVersion(version) { if (!this.constructor.services || this.constructor.services.length === 0) { + throw new v300(\\"No services defined on \\" + this.constructor.serviceIdentifier); +} if (!version) { + version = \\"latest\\"; +} +else if (v3.isType(version, v386)) { + version = v73.iso8601(version).split(\\"T\\")[0]; +} if (v387.hasOwnProperty(this.constructor.services, version)) { + return version; +} var keys = v388.keys(this.constructor.services).sort(); var selectedVersion = null; for (var i = keys.length - 1; i >= 0; i--) { + if (keys[i][keys[i].length - 1] !== \\"*\\") { + selectedVersion = keys[i]; + } + if (keys[i].substr(0, 10) <= version) { + return selectedVersion; + } +} throw new v389(\\"Could not find \\" + this.constructor.serviceIdentifier + \\" API to satisfy version constraint \`\\" + version + \\"'\\"); }; +const v390 = {}; +v390.constructor = v385; +v385.prototype = v390; +v309.getLatestServiceVersion = v385; +const v391 = {}; +v309.api = v391; +v309.defaultRetryCount = 3; +var v392; +v392 = function customizeRequests(callback) { if (!callback) { + this.customRequestHandler = null; +} +else if (typeof callback === \\"function\\") { + this.customRequestHandler = callback; +} +else { + throw new v389(\\"Invalid callback type '\\" + typeof callback + \\"' provided in customizeRequests\\"); +} }; +const v393 = {}; +v393.constructor = v392; +v392.prototype = v393; +v309.customizeRequests = v392; +var v394; +v394 = function makeRequest(operation, params, callback) { if (typeof params === \\"function\\") { + callback = params; + params = null; +} params = params || {}; if (this.config.params) { + var rules = this.api.operations[operation]; + if (rules) { + params = v3.copy(params); + v3.each(this.config.params, function (key, value) { if (rules.input.members[key]) { + if (params[key] === undefined || params[key] === null) { + params[key] = value; } - if (op[0] & 5) - throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; + } }); + } +} var request = new v311.Request(this, operation, params); this.addAllRequestListeners(request); this.attachMonitoringEmitter(request); if (callback) + request.send(callback); return request; }; +const v395 = {}; +v395.constructor = v394; +v394.prototype = v395; +v309.makeRequest = v394; +var v396; +v396 = function makeUnauthenticatedRequest(operation, params, callback) { if (typeof params === \\"function\\") { + callback = params; + params = {}; +} var request = this.makeRequest(operation, params).toUnauthenticated(); return callback ? request.send(callback) : request; }; +const v397 = {}; +v397.constructor = v396; +v396.prototype = v397; +v309.makeUnauthenticatedRequest = v396; +var v398; +v398 = function waitFor(state, params, callback) { var waiter = new v381.ResourceWaiter(this, state); return waiter.wait(params, callback); }; +const v399 = {}; +v399.constructor = v398; +v398.prototype = v399; +v309.waitFor = v398; +var v400; +const v401 = {}; +var v402; +v402 = function SequentialExecutor() { this._events = {}; }; +v402.prototype = v401; +v402.__super__ = v31; +v401.constructor = v402; +var v403; +v403 = function listeners(eventName) { return this._events[eventName] ? this._events[eventName].slice(0) : []; }; +const v404 = {}; +v404.constructor = v403; +v403.prototype = v404; +v401.listeners = v403; +var v405; +v405 = function on(eventName, listener, toHead) { if (this._events[eventName]) { + toHead ? this._events[eventName].unshift(listener) : this._events[eventName].push(listener); +} +else { + this._events[eventName] = [listener]; +} return this; }; +const v406 = {}; +v406.constructor = v405; +v405.prototype = v406; +v401.on = v405; +var v407; +v407 = function onAsync(eventName, listener, toHead) { listener._isAsync = true; return this.on(eventName, listener, toHead); }; +const v408 = {}; +v408.constructor = v407; +v407.prototype = v408; +v401.onAsync = v407; +var v409; +v409 = function removeListener(eventName, listener) { var listeners = this._events[eventName]; if (listeners) { + var length = listeners.length; + var position = -1; + for (var i = 0; i < length; ++i) { + if (listeners[i] === listener) { + position = i; + } + } + if (position > -1) { + listeners.splice(position, 1); + } +} return this; }; +const v410 = {}; +v410.constructor = v409; +v409.prototype = v410; +v401.removeListener = v409; +var v411; +v411 = function removeAllListeners(eventName) { if (eventName) { + delete this._events[eventName]; +} +else { + this._events = {}; +} return this; }; +const v412 = {}; +v412.constructor = v411; +v411.prototype = v412; +v401.removeAllListeners = v411; +var v413; +v413 = function emit(eventName, eventArgs, doneCallback) { if (!doneCallback) + doneCallback = function () { }; var listeners = this.listeners(eventName); var count = listeners.length; this.callListeners(listeners, eventArgs, doneCallback); return count > 0; }; +const v414 = {}; +v414.constructor = v413; +v413.prototype = v414; +v401.emit = v413; +var v415; +var v416 = v40; +v415 = function callListeners(listeners, args, doneCallback, prevError) { var self = this; var error = prevError || null; function callNextListener(err) { if (err) { + error = v3.error(error || new v416(), err); + if (self._haltHandlersOnError) { + return doneCallback.call(self, error); + } +} self.callListeners(listeners, args, doneCallback, error); } while (listeners.length > 0) { + var listener = listeners.shift(); + if (listener._isAsync) { + listener.apply(self, args.concat([callNextListener])); + return; + } + else { + try { + listener.apply(self, args); } - }; - __exportStar = function(m, o) { - for (var p in m) - if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(o, p)) - __createBinding(o, m, p); - }; - __createBinding = Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || (\\"get\\" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m[k]; - } }; + catch (err) { + error = v3.error(error || new v416(), err); + } + if (error && self._haltHandlersOnError) { + doneCallback.call(self, error); + return; } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; - }; - __values = function(o) { - var s = typeof Symbol === \\"function\\" && Symbol.iterator, m = s && o[s], i = 0; - if (m) - return m.call(o); - if (o && typeof o.length === \\"number\\") - return { - next: function() { - if (o && i >= o.length) - o = void 0; - return { value: o && o[i++], done: !o }; + } +} doneCallback.call(self, error); }; +const v417 = {}; +v417.constructor = v415; +v415.prototype = v417; +v401.callListeners = v415; +var v418; +v418 = function addListeners(listeners) { var self = this; if (listeners._events) + listeners = listeners._events; v3.each(listeners, function (event, callbacks) { if (typeof callbacks === \\"function\\") + callbacks = [callbacks]; v3.arrayEach(callbacks, function (callback) { self.on(event, callback); }); }); return self; }; +const v419 = {}; +v419.constructor = v418; +v418.prototype = v419; +v401.addListeners = v418; +var v420; +v420 = function addNamedListener(name, eventName, callback, toHead) { this[name] = callback; this.addListener(eventName, callback, toHead); return this; }; +const v421 = {}; +v421.constructor = v420; +v420.prototype = v421; +v401.addNamedListener = v420; +var v422; +v422 = function addNamedAsyncListener(name, eventName, callback, toHead) { callback._isAsync = true; return this.addNamedListener(name, eventName, callback, toHead); }; +const v423 = {}; +v423.constructor = v422; +v422.prototype = v423; +v401.addNamedAsyncListener = v422; +var v424; +v424 = function addNamedListeners(callback) { var self = this; callback(function () { self.addNamedListener.apply(self, arguments); }, function () { self.addNamedAsyncListener.apply(self, arguments); }); return this; }; +const v425 = {}; +v425.constructor = v424; +v424.prototype = v425; +v401.addNamedListeners = v424; +v401.addListener = v405; +const v426 = Object.create(v401); +const v427 = {}; +v426._events = v427; +const v428 = Object.create(v401); +const v429 = {}; +const v430 = []; +var v431; +v431 = function VALIDATE_CREDENTIALS(req, done) { if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) + return done(); req.service.config.getCredentials(function (err) { if (err) { + req.response.error = v3.error(err, { code: \\"CredentialsError\\", message: \\"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1\\" }); +} done(); }); }; +const v432 = {}; +v432.constructor = v431; +v431.prototype = v432; +v431._isAsync = true; +var v433; +var v434 = v373; +var v435 = v40; +var v436 = v40; +v433 = function VALIDATE_REGION(req) { if (!req.service.isGlobalEndpoint) { + var dnsHostRegex = new v434(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!req.service.config.region) { + req.response.error = v3.error(new v435(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); + } + else if (!dnsHostRegex.test(req.service.config.region)) { + req.response.error = v3.error(new v436(), { code: \\"ConfigError\\", message: \\"Invalid region in config\\" }); + } +} }; +const v437 = {}; +v437.constructor = v433; +v433.prototype = v437; +var v438; +const v439 = {}; +var v440; +v440 = function uuidV4() { return v11(\\"uuid\\").v4(); }; +const v441 = {}; +v441.constructor = v440; +v440.prototype = v441; +v439.v4 = v440; +v438 = function BUILD_IDEMPOTENCY_TOKENS(req) { if (!req.service.api.operations) { + return; +} var operation = req.service.api.operations[req.operation]; if (!operation) { + return; +} var idempotentMembers = operation.idempotentMembers; if (!idempotentMembers.length) { + return; +} var params = v3.copy(req.params); for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { + if (!params[idempotentMembers[i]]) { + params[idempotentMembers[i]] = v439.v4(); + } +} req.params = params; }; +const v442 = {}; +v442.constructor = v438; +v438.prototype = v442; +var v443; +var v444 = v2; +v443 = function VALIDATE_PARAMETERS(req) { if (!req.service.api.operations) { + return; +} var rules = req.service.api.operations[req.operation].input; var validation = req.service.config.paramValidation; new v444.ParamValidator(validation).validate(rules, req.params); }; +const v445 = {}; +v445.constructor = v443; +v443.prototype = v445; +v430.push(v431, v433, v438, v443); +v429.validate = v430; +const v446 = []; +var v447; +v447 = function COMPUTE_CHECKSUM(req) { if (!req.service.api.operations) { + return; +} var operation = req.service.api.operations[req.operation]; if (!operation) { + return; +} var body = req.httpRequest.body; var isNonStreamingPayload = body && (v3.Buffer.isBuffer(body) || typeof body === \\"string\\"); var headers = req.httpRequest.headers; if (operation.httpChecksumRequired && req.service.config.computeChecksums && isNonStreamingPayload && !headers[\\"Content-MD5\\"]) { + var md5 = v91.md5(body, \\"base64\\"); + headers[\\"Content-MD5\\"] = md5; +} }; +const v448 = {}; +v448.constructor = v447; +v447.prototype = v448; +var v449; +const v450 = {}; +var v451; +v451 = function RequestSigner(request) { this.request = request; }; +const v452 = {}; +v452.constructor = v451; +var v453; +v453 = function setServiceClientId(id) { this.serviceClientId = id; }; +const v454 = {}; +v454.constructor = v453; +v453.prototype = v454; +v452.setServiceClientId = v453; +var v455; +v455 = function getServiceClientId() { return this.serviceClientId; }; +const v456 = {}; +v456.constructor = v455; +v455.prototype = v456; +v452.getServiceClientId = v455; +v451.prototype = v452; +v451.__super__ = v31; +var v457; +var v458 = v40; +v457 = function getVersion(version) { switch (version) { + case \\"v2\\": return v450.V2; + case \\"v3\\": return v450.V3; + case \\"s3v4\\": return v450.V4; + case \\"v4\\": return v450.V4; + case \\"s3\\": return v450.S3; + case \\"v3https\\": return v450.V3Https; +} throw new v458(\\"Unknown signing version \\" + version); }; +const v459 = {}; +v459.constructor = v457; +v457.prototype = v459; +v451.getVersion = v457; +v450.RequestSigner = v451; +var v460; +var v461 = v451; +v460 = function () { if (v461 !== v30) { + return v298.apply(this, arguments); +} }; +const v462 = Object.create(v452); +var v463; +v463 = function addAuthorization(credentials, date) { if (!date) + date = v73.getDate(); var r = this.request; r.params.Timestamp = v73.iso8601(date); r.params.SignatureVersion = \\"2\\"; r.params.SignatureMethod = \\"HmacSHA256\\"; r.params.AWSAccessKeyId = credentials.accessKeyId; if (credentials.sessionToken) { + r.params.SecurityToken = credentials.sessionToken; +} delete r.params.Signature; r.params.Signature = this.signature(credentials); r.body = v3.queryParamsToString(r.params); r.headers[\\"Content-Length\\"] = r.body.length; }; +const v464 = {}; +v464.constructor = v463; +v463.prototype = v464; +v462.addAuthorization = v463; +var v465; +v465 = function signature(credentials) { return v91.hmac(credentials.secretAccessKey, this.stringToSign(), \\"base64\\"); }; +const v466 = {}; +v466.constructor = v465; +v465.prototype = v466; +v462.signature = v465; +var v467; +v467 = function stringToSign() { var parts = []; parts.push(this.request.method); parts.push(this.request.endpoint.host.toLowerCase()); parts.push(this.request.pathname()); parts.push(v3.queryParamsToString(this.request.params)); return parts.join(\\"\\\\n\\"); }; +const v468 = {}; +v468.constructor = v467; +v467.prototype = v468; +v462.stringToSign = v467; +v462.constructor = v460; +v460.prototype = v462; +v460.__super__ = v451; +v450.V2 = v460; +var v469; +var v470 = v451; +var v471 = v31; +v469 = function () { if (v470 !== v471) { + return v461.apply(this, arguments); +} }; +const v472 = Object.create(v452); +var v473; +v473 = function addAuthorization(credentials, date) { var datetime = v73.rfc822(date); this.request.headers[\\"X-Amz-Date\\"] = datetime; if (credentials.sessionToken) { + this.request.headers[\\"x-amz-security-token\\"] = credentials.sessionToken; +} this.request.headers[\\"X-Amzn-Authorization\\"] = this.authorization(credentials, datetime); }; +const v474 = {}; +v474.constructor = v473; +v473.prototype = v474; +v472.addAuthorization = v473; +var v475; +v475 = function authorization(credentials) { return \\"AWS3 \\" + \\"AWSAccessKeyId=\\" + credentials.accessKeyId + \\",\\" + \\"Algorithm=HmacSHA256,\\" + \\"SignedHeaders=\\" + this.signedHeaders() + \\",\\" + \\"Signature=\\" + this.signature(credentials); }; +const v476 = {}; +v476.constructor = v475; +v475.prototype = v476; +v472.authorization = v475; +var v477; +v477 = function signedHeaders() { var headers = []; v3.arrayEach(this.headersToSign(), function iterator(h) { headers.push(h.toLowerCase()); }); return headers.sort().join(\\";\\"); }; +const v478 = {}; +v478.constructor = v477; +v477.prototype = v478; +v472.signedHeaders = v477; +var v479; +var v480 = v136; +v479 = function canonicalHeaders() { var headers = this.request.headers; var parts = []; v3.arrayEach(this.headersToSign(), function iterator(h) { parts.push(h.toLowerCase().trim() + \\":\\" + v480(headers[h]).trim()); }); return parts.sort().join(\\"\\\\n\\") + \\"\\\\n\\"; }; +const v481 = {}; +v481.constructor = v479; +v479.prototype = v481; +v472.canonicalHeaders = v479; +var v482; +v482 = function headersToSign() { var headers = []; v3.each(this.request.headers, function iterator(k) { if (k === \\"Host\\" || k === \\"Content-Encoding\\" || k.match(/^X-Amz/i)) { + headers.push(k); +} }); return headers; }; +const v483 = {}; +v483.constructor = v482; +v482.prototype = v483; +v472.headersToSign = v482; +var v484; +v484 = function signature(credentials) { return v91.hmac(credentials.secretAccessKey, this.stringToSign(), \\"base64\\"); }; +const v485 = {}; +v485.constructor = v484; +v484.prototype = v485; +v472.signature = v484; +var v486; +v486 = function stringToSign() { var parts = []; parts.push(this.request.method); parts.push(\\"/\\"); parts.push(\\"\\"); parts.push(this.canonicalHeaders()); parts.push(this.request.body); return v91.sha256(parts.join(\\"\\\\n\\")); }; +const v487 = {}; +v487.constructor = v486; +v486.prototype = v487; +v472.stringToSign = v486; +v472.constructor = v469; +v469.prototype = v472; +v469.__super__ = v451; +v450.V3 = v469; +var v488; +var v489 = v469; +var v490 = v31; +v488 = function () { if (v489 !== v490) { + return v470.apply(this, arguments); +} }; +const v491 = Object.create(v472); +var v492; +v492 = function authorization(credentials) { return \\"AWS3-HTTPS \\" + \\"AWSAccessKeyId=\\" + credentials.accessKeyId + \\",\\" + \\"Algorithm=HmacSHA256,\\" + \\"Signature=\\" + this.signature(credentials); }; +const v493 = {}; +v493.constructor = v492; +v492.prototype = v493; +v491.authorization = v492; +var v494; +v494 = function stringToSign() { return this.request.headers[\\"X-Amz-Date\\"]; }; +const v495 = {}; +v495.constructor = v494; +v494.prototype = v495; +v491.stringToSign = v494; +v491.constructor = v488; +v488.prototype = v491; +v488.__super__ = v469; +v450.V3Https = v488; +var v496; +v496 = function V4(request, serviceName, options) { v450.RequestSigner.call(this, request); this.serviceName = serviceName; options = options || {}; this.signatureCache = typeof options.signatureCache === \\"boolean\\" ? options.signatureCache : true; this.operation = options.operation; this.signatureVersion = options.signatureVersion; }; +const v497 = Object.create(v452); +v497.constructor = v496; +v497.algorithm = \\"AWS4-HMAC-SHA256\\"; +var v498; +v498 = function addAuthorization(credentials, date) { var datetime = v73.iso8601(date).replace(/[:\\\\-]|\\\\.\\\\d{3}/g, \\"\\"); if (this.isPresigned()) { + this.updateForPresigned(credentials, datetime); +} +else { + this.addHeaders(credentials, datetime); +} this.request.headers[\\"Authorization\\"] = this.authorization(credentials, datetime); }; +const v499 = {}; +v499.constructor = v498; +v498.prototype = v499; +v497.addAuthorization = v498; +var v500; +v500 = function addHeaders(credentials, datetime) { this.request.headers[\\"X-Amz-Date\\"] = datetime; if (credentials.sessionToken) { + this.request.headers[\\"x-amz-security-token\\"] = credentials.sessionToken; +} }; +const v501 = {}; +v501.constructor = v500; +v500.prototype = v501; +v497.addHeaders = v500; +var v502; +var v503 = \\"presigned-expires\\"; +var v504 = \\"presigned-expires\\"; +v502 = function updateForPresigned(credentials, datetime) { var credString = this.credentialString(datetime); var qs = { \\"X-Amz-Date\\": datetime, \\"X-Amz-Algorithm\\": this.algorithm, \\"X-Amz-Credential\\": credentials.accessKeyId + \\"/\\" + credString, \\"X-Amz-Expires\\": this.request.headers[v503], \\"X-Amz-SignedHeaders\\": this.signedHeaders() }; if (credentials.sessionToken) { + qs[\\"X-Amz-Security-Token\\"] = credentials.sessionToken; +} if (this.request.headers[\\"Content-Type\\"]) { + qs[\\"Content-Type\\"] = this.request.headers[\\"Content-Type\\"]; +} if (this.request.headers[\\"Content-MD5\\"]) { + qs[\\"Content-MD5\\"] = this.request.headers[\\"Content-MD5\\"]; +} if (this.request.headers[\\"Cache-Control\\"]) { + qs[\\"Cache-Control\\"] = this.request.headers[\\"Cache-Control\\"]; +} v3.each.call(this, this.request.headers, function (key, value) { if (key === v504) + return; if (this.isSignableHeader(key)) { + var lowerKey = key.toLowerCase(); + if (lowerKey.indexOf(\\"x-amz-meta-\\") === 0) { + qs[lowerKey] = value; + } + else if (lowerKey.indexOf(\\"x-amz-\\") === 0) { + qs[key] = value; + } +} }); var sep = this.request.path.indexOf(\\"?\\") >= 0 ? \\"&\\" : \\"?\\"; this.request.path += sep + v3.queryParamsToString(qs); }; +const v505 = {}; +v505.constructor = v502; +v502.prototype = v505; +v497.updateForPresigned = v502; +var v506; +v506 = function authorization(credentials, datetime) { var parts = []; var credString = this.credentialString(datetime); parts.push(this.algorithm + \\" Credential=\\" + credentials.accessKeyId + \\"/\\" + credString); parts.push(\\"SignedHeaders=\\" + this.signedHeaders()); parts.push(\\"Signature=\\" + this.signature(credentials, datetime)); return parts.join(\\", \\"); }; +const v507 = {}; +v507.constructor = v506; +v506.prototype = v507; +v497.authorization = v506; +var v508; +const v510 = {}; +var v511; +var v512 = \\"aws4_request\\"; +v511 = function createScope(date, region, serviceName) { return [date.substr(0, 8), region, serviceName, v512].join(\\"/\\"); }; +const v513 = {}; +v513.constructor = v511; +v511.prototype = v513; +v510.createScope = v511; +var v514; +const v516 = {}; +var v515 = v516; +var v517 = \\"aws4_request\\"; +var v518 = v516; +const v520 = []; +v520.push(); +var v519 = v520; +var v521 = 50; +var v522 = v516; +var v523 = v520; +v514 = function getSigningKey(credentials, date, region, service, shouldCache) { var credsIdentifier = v91.hmac(credentials.secretAccessKey, credentials.accessKeyId, \\"base64\\"); var cacheKey = [credsIdentifier, date, region, service].join(\\"_\\"); shouldCache = shouldCache !== false; if (shouldCache && (cacheKey in v515)) { + return v515[cacheKey]; +} var kDate = v91.hmac(\\"AWS4\\" + credentials.secretAccessKey, date, \\"buffer\\"); var kRegion = v91.hmac(kDate, region, \\"buffer\\"); var kService = v91.hmac(kRegion, service, \\"buffer\\"); var signingKey = v91.hmac(kService, v517, \\"buffer\\"); if (shouldCache) { + v518[cacheKey] = signingKey; + v519.push(cacheKey); + if (0 > v521) { + delete v522[v523.shift()]; + } +} return signingKey; }; +const v524 = {}; +v524.constructor = v514; +v514.prototype = v524; +v510.getSigningKey = v514; +var v525; +v525 = function emptyCache() { cachedSecret = {}; cacheQueue = []; }; +const v526 = {}; +v526.constructor = v525; +v525.prototype = v526; +v510.emptyCache = v525; +var v509 = v510; +v508 = function signature(credentials, datetime) { var signingKey = v509.getSigningKey(credentials, datetime.substr(0, 8), this.request.region, this.serviceName, this.signatureCache); return v91.hmac(signingKey, this.stringToSign(datetime), \\"hex\\"); }; +const v527 = {}; +v527.constructor = v508; +v508.prototype = v527; +v497.signature = v508; +var v528; +v528 = function stringToSign(datetime) { var parts = []; parts.push(\\"AWS4-HMAC-SHA256\\"); parts.push(datetime); parts.push(this.credentialString(datetime)); parts.push(this.hexEncodedHash(this.canonicalString())); return parts.join(\\"\\\\n\\"); }; +const v529 = {}; +v529.constructor = v528; +v528.prototype = v529; +v497.stringToSign = v528; +var v530; +v530 = function canonicalString() { var parts = [], pathname = this.request.pathname(); if (this.serviceName !== \\"s3\\" && this.signatureVersion !== \\"s3v4\\") + pathname = v3.uriEscapePath(pathname); parts.push(this.request.method); parts.push(pathname); parts.push(this.request.search()); parts.push(this.canonicalHeaders() + \\"\\\\n\\"); parts.push(this.signedHeaders()); parts.push(this.hexEncodedBodyHash()); return parts.join(\\"\\\\n\\"); }; +const v531 = {}; +v531.constructor = v530; +v530.prototype = v531; +v497.canonicalString = v530; +var v532; +var v533 = v40; +v532 = function canonicalHeaders() { var headers = []; v3.each.call(this, this.request.headers, function (key, item) { headers.push([key, item]); }); headers.sort(function (a, b) { return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : 1; }); var parts = []; v3.arrayEach.call(this, headers, function (item) { var key = item[0].toLowerCase(); if (this.isSignableHeader(key)) { + var value = item[1]; + if (typeof value === \\"undefined\\" || value === null || typeof value.toString !== \\"function\\") { + throw v3.error(new v533(\\"Header \\" + key + \\" contains invalid value\\"), { code: \\"InvalidHeader\\" }); + } + parts.push(key + \\":\\" + this.canonicalHeaderValues(value.toString())); +} }); return parts.join(\\"\\\\n\\"); }; +const v534 = {}; +v534.constructor = v532; +v532.prototype = v534; +v497.canonicalHeaders = v532; +var v535; +v535 = function canonicalHeaderValues(values) { return values.replace(/\\\\s+/g, \\" \\").replace(/^\\\\s+|\\\\s+$/g, \\"\\"); }; +const v536 = {}; +v536.constructor = v535; +v535.prototype = v536; +v497.canonicalHeaderValues = v535; +var v537; +v537 = function signedHeaders() { var keys = []; v3.each.call(this, this.request.headers, function (key) { key = key.toLowerCase(); if (this.isSignableHeader(key)) + keys.push(key); }); return keys.sort().join(\\";\\"); }; +const v538 = {}; +v538.constructor = v537; +v537.prototype = v538; +v497.signedHeaders = v537; +var v539; +var v540 = v510; +v539 = function credentialString(datetime) { return v540.createScope(datetime.substr(0, 8), this.request.region, this.serviceName); }; +const v541 = {}; +v541.constructor = v539; +v539.prototype = v541; +v497.credentialString = v539; +var v542; +v542 = function hash(string) { return v91.sha256(string, \\"hex\\"); }; +const v543 = {}; +v543.constructor = v542; +v542.prototype = v543; +v497.hexEncodedHash = v542; +var v544; +v544 = function hexEncodedBodyHash() { var request = this.request; if (this.isPresigned() && ([\\"s3\\", \\"s3-object-lambda\\"].indexOf(this.serviceName) > -1) && !request.body) { + return \\"UNSIGNED-PAYLOAD\\"; +} +else if (request.headers[\\"X-Amz-Content-Sha256\\"]) { + return request.headers[\\"X-Amz-Content-Sha256\\"]; +} +else { + return this.hexEncodedHash(this.request.body || \\"\\"); +} }; +const v545 = {}; +v545.constructor = v544; +v544.prototype = v545; +v497.hexEncodedBodyHash = v544; +const v546 = []; +v546.push(\\"authorization\\", \\"content-type\\", \\"content-length\\", \\"user-agent\\", \\"presigned-expires\\", \\"expect\\", \\"x-amzn-trace-id\\"); +v497.unsignableHeaders = v546; +var v547; +v547 = function isSignableHeader(key) { if (key.toLowerCase().indexOf(\\"x-amz-\\") === 0) + return true; return this.unsignableHeaders.indexOf(key) < 0; }; +const v548 = {}; +v548.constructor = v547; +v547.prototype = v548; +v497.isSignableHeader = v547; +var v549; +v549 = function isPresigned() { return this.request.headers[v504] ? true : false; }; +const v550 = {}; +v550.constructor = v549; +v549.prototype = v550; +v497.isPresigned = v549; +v496.prototype = v497; +v496.__super__ = v451; +v450.V4 = v496; +var v551; +var v552 = v451; +var v553 = v31; +v551 = function () { if (v552 !== v553) { + return v489.apply(this, arguments); +} }; +const v554 = Object.create(v452); +const v555 = {}; +v555.acl = 1; +v555.accelerate = 1; +v555.analytics = 1; +v555.cors = 1; +v555.lifecycle = 1; +v555.delete = 1; +v555.inventory = 1; +v555.location = 1; +v555.logging = 1; +v555.metrics = 1; +v555.notification = 1; +v555.partNumber = 1; +v555.policy = 1; +v555.requestPayment = 1; +v555.replication = 1; +v555.restore = 1; +v555.tagging = 1; +v555.torrent = 1; +v555.uploadId = 1; +v555.uploads = 1; +v555.versionId = 1; +v555.versioning = 1; +v555.versions = 1; +v555.website = 1; +v554.subResources = v555; +const v556 = {}; +v556[\\"response-content-type\\"] = 1; +v556[\\"response-content-language\\"] = 1; +v556[\\"response-expires\\"] = 1; +v556[\\"response-cache-control\\"] = 1; +v556[\\"response-content-disposition\\"] = 1; +v556[\\"response-content-encoding\\"] = 1; +v554.responseHeaders = v556; +var v557; +v557 = function addAuthorization(credentials, date) { if (!this.request.headers[\\"presigned-expires\\"]) { + this.request.headers[\\"X-Amz-Date\\"] = v73.rfc822(date); +} if (credentials.sessionToken) { + this.request.headers[\\"x-amz-security-token\\"] = credentials.sessionToken; +} var signature = this.sign(credentials.secretAccessKey, this.stringToSign()); var auth = \\"AWS \\" + credentials.accessKeyId + \\":\\" + signature; this.request.headers[\\"Authorization\\"] = auth; }; +const v558 = {}; +v558.constructor = v557; +v557.prototype = v558; +v554.addAuthorization = v557; +var v559; +v559 = function stringToSign() { var r = this.request; var parts = []; parts.push(r.method); parts.push(r.headers[\\"Content-MD5\\"] || \\"\\"); parts.push(r.headers[\\"Content-Type\\"] || \\"\\"); parts.push(r.headers[\\"presigned-expires\\"] || \\"\\"); var headers = this.canonicalizedAmzHeaders(); if (headers) + parts.push(headers); parts.push(this.canonicalizedResource()); return parts.join(\\"\\\\n\\"); }; +const v560 = {}; +v560.constructor = v559; +v559.prototype = v560; +v554.stringToSign = v559; +var v561; +var v562 = v136; +v561 = function canonicalizedAmzHeaders() { var amzHeaders = []; v3.each(this.request.headers, function (name) { if (name.match(/^x-amz-/i)) + amzHeaders.push(name); }); amzHeaders.sort(function (a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1; }); var parts = []; v3.arrayEach.call(this, amzHeaders, function (name) { parts.push(name.toLowerCase() + \\":\\" + v562(this.request.headers[name])); }); return parts.join(\\"\\\\n\\"); }; +const v563 = {}; +v563.constructor = v561; +v561.prototype = v563; +v554.canonicalizedAmzHeaders = v561; +var v564; +const v566 = decodeURIComponent; +var v565 = v566; +v564 = function canonicalizedResource() { var r = this.request; var parts = r.path.split(\\"?\\"); var path = parts[0]; var querystring = parts[1]; var resource = \\"\\"; if (r.virtualHostedBucket) + resource += \\"/\\" + r.virtualHostedBucket; resource += path; if (querystring) { + var resources = []; + v3.arrayEach.call(this, querystring.split(\\"&\\"), function (param) { var name = param.split(\\"=\\")[0]; var value = param.split(\\"=\\")[1]; if (this.subResources[name] || this.responseHeaders[name]) { + var subresource = { name: name }; + if (value !== undefined) { + if (this.subResources[name]) { + subresource.value = value; + } + else { + subresource.value = v565(value); } - }; - throw new TypeError(s ? \\"Object is not iterable.\\" : \\"Symbol.iterator is not defined.\\"); - }; - __read = function(o, n) { - var m = typeof Symbol === \\"function\\" && o[Symbol.iterator]; - if (!m) - return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) - ar.push(r.value); - } catch (error) { - e = { error }; - } finally { - try { - if (r && !r.done && (m = i[\\"return\\"])) - m.call(i); - } finally { - if (e) - throw e.error; - } } - return ar; - }; - __spread = function() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - __spreadArrays = function() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) - s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - __spreadArray = function(to, from, pack) { - if (pack || arguments.length === 2) - for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) - ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; + resources.push(subresource); + } }); + resources.sort(function (a, b) { return a.name < b.name ? -1 : 1; }); + if (resources.length) { + querystring = []; + v3.arrayEach(resources, function (res) { if (res.value === undefined) { + querystring.push(res.name); + } + else { + querystring.push(res.name + \\"=\\" + res.value); + } }); + resource += \\"?\\" + querystring.join(\\"&\\"); + } +} return resource; }; +const v567 = {}; +v567.constructor = v564; +v564.prototype = v567; +v554.canonicalizedResource = v564; +var v568; +v568 = function sign(secret, string) { return v91.hmac(secret, string, \\"base64\\", \\"sha1\\"); }; +const v569 = {}; +v569.constructor = v568; +v568.prototype = v569; +v554.sign = v568; +v554.constructor = v551; +v551.prototype = v554; +v551.__super__ = v451; +v450.S3 = v551; +var v570; +var v571 = v31; +var v572 = v31; +v570 = function () { if (v571 !== v572) { + return v552.apply(this, arguments); +} }; +const v573 = {}; +var v574; +var v575 = \\"presigned-expires\\"; +var v577; +var v578 = \\"presigned-expires\\"; +var v579 = v40; +var v580 = \\"presigned-expires\\"; +var v581 = v117; +var v582 = v40; +v577 = function signedUrlBuilder(request) { var expires = request.httpRequest.headers[v578]; var signerClass = request.service.getSignerClass(request); delete request.httpRequest.headers[\\"User-Agent\\"]; delete request.httpRequest.headers[\\"X-Amz-User-Agent\\"]; if (signerClass === v450.V4) { + if (expires > 604800) { + var message = \\"Presigning does not support expiry time greater \\" + \\"than a week with SigV4 signing.\\"; + throw v3.error(new v579(), { code: \\"InvalidExpiryTime\\", message: message, retryable: false }); + } + request.httpRequest.headers[v578] = expires; +} +else if (signerClass === v450.S3) { + var now = request.service ? request.service.getSkewCorrectedDate() : v73.getDate(); + request.httpRequest.headers[v580] = v581(v73.unixTimestamp(now) + expires, 10).toString(); +} +else { + throw v3.error(new v582(), { message: \\"Presigning only supports S3 or SigV4 signing.\\", code: \\"UnsupportedSigner\\", retryable: false }); +} }; +const v583 = {}; +v583.constructor = v577; +v577.prototype = v583; +var v576 = v577; +var v585; +var v586 = \\"presigned-expires\\"; +v585 = function signedUrlSigner(request) { var endpoint = request.httpRequest.endpoint; var parsedUrl = v3.urlParse(request.httpRequest.path); var queryParams = {}; if (parsedUrl.search) { + queryParams = v3.queryStringParse(parsedUrl.search.substr(1)); +} var auth = request.httpRequest.headers[\\"Authorization\\"].split(\\" \\"); if (auth[0] === \\"AWS\\") { + auth = auth[1].split(\\":\\"); + queryParams[\\"Signature\\"] = auth.pop(); + queryParams[\\"AWSAccessKeyId\\"] = auth.join(\\":\\"); + v3.each(request.httpRequest.headers, function (key, value) { if (key === v575) + key = \\"Expires\\"; if (key.indexOf(\\"x-amz-meta-\\") === 0) { + delete queryParams[key]; + key = key.toLowerCase(); + } queryParams[key] = value; }); + delete request.httpRequest.headers[v586]; + delete queryParams[\\"Authorization\\"]; + delete queryParams[\\"Host\\"]; +} +else if (auth[0] === \\"AWS4-HMAC-SHA256\\") { + auth.shift(); + var rest = auth.join(\\" \\"); + var signature = rest.match(/Signature=(.*?)(?:,|\\\\s|\\\\r?\\\\n|$)/)[1]; + queryParams[\\"X-Amz-Signature\\"] = signature; + delete queryParams[\\"Expires\\"]; +} endpoint.pathname = parsedUrl.pathname; endpoint.search = v3.queryParamsToString(queryParams); }; +const v587 = {}; +v587.constructor = v585; +v585.prototype = v587; +var v584 = v585; +v574 = function sign(request, expireTime, callback) { request.httpRequest.headers[v575] = expireTime || 3600; request.on(\\"build\\", v576); request.on(\\"sign\\", v584); request.removeListener(\\"afterBuild\\", v428.SET_CONTENT_LENGTH); request.removeListener(\\"afterBuild\\", v428.COMPUTE_SHA256); request.emit(\\"beforePresign\\", [request]); if (callback) { + request.build(function () { if (this.response.error) + callback(this.response.error); + else { + callback(null, v3.urlFormat(request.httpRequest.endpoint)); + } }); +} +else { + request.build(); + if (request.response.error) + throw request.response.error; + return v3.urlFormat(request.httpRequest.endpoint); +} }; +const v588 = {}; +v588.constructor = v574; +v574.prototype = v588; +v573.sign = v574; +v573.constructor = v570; +v570.prototype = v573; +v570.__super__ = v31; +v450.Presign = v570; +v449 = function COMPUTE_SHA256(req, done) { req.haltHandlersOnError(); if (!req.service.api.operations) { + return; +} var operation = req.service.api.operations[req.operation]; var authtype = operation ? operation.authtype : \\"\\"; if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) + return done(); if (req.service.getSignerClass(req) === v450.V4) { + var body = req.httpRequest.body || \\"\\"; + if (authtype.indexOf(\\"unsigned-body\\") >= 0) { + req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; + return done(); + } + v3.computeSha256(body, function (err, sha) { if (err) { + done(err); + } + else { + req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = sha; + done(); + } }); +} +else { + done(); +} }; +const v589 = {}; +v589.constructor = v449; +v449.prototype = v589; +v449._isAsync = true; +var v590; +var v592; +v592 = function getOperationAuthtype(req) { if (!req.service.api.operations) { + return \\"\\"; +} var operation = req.service.api.operations[req.operation]; return operation ? operation.authtype : \\"\\"; }; +const v593 = {}; +v593.constructor = v592; +v592.prototype = v593; +var v591 = v592; +v590 = function SET_CONTENT_LENGTH(req) { var authtype = v591(req); var payloadMember = v3.getRequestPayloadShape(req); if (req.httpRequest.headers[\\"Content-Length\\"] === undefined) { + try { + var length = v55.byteLength(req.httpRequest.body); + req.httpRequest.headers[\\"Content-Length\\"] = length; + } + catch (err) { + if (payloadMember && payloadMember.isStreaming) { + if (payloadMember.requiresLength) { + throw err; + } + else if (authtype.indexOf(\\"unsigned-body\\") >= 0) { + req.httpRequest.headers[\\"Transfer-Encoding\\"] = \\"chunked\\"; + return; + } + else { + throw err; } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - __await = function(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - __asyncGenerator = function(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) - throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function verb(n) { - if (g[n]) - i[n] = function(v) { - return new Promise(function(a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } + throw err; + } +} }; +const v594 = {}; +v594.constructor = v590; +v590.prototype = v594; +var v595; +v595 = function SET_HTTP_HOST(req) { req.httpRequest.headers[\\"Host\\"] = req.httpRequest.endpoint.host; }; +const v596 = {}; +v596.constructor = v595; +v595.prototype = v596; +var v597; +var v598 = v31; +var v599 = v8; +v597 = function SET_TRACE_ID(req) { var traceIdHeaderName = \\"X-Amzn-Trace-Id\\"; if (v3.isNode() && !v598.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { + var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; + var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; + var functionName = v599.env[ENV_LAMBDA_FUNCTION_NAME]; + var traceId = v599.env[ENV_TRACE_ID]; + if (typeof functionName === \\"string\\" && functionName.length > 0 && typeof traceId === \\"string\\" && traceId.length > 0) { + req.httpRequest.headers[traceIdHeaderName] = traceId; + } +} }; +const v600 = {}; +v600.constructor = v597; +v597.prototype = v600; +v446.push(v447, v449, v590, v595, v597); +v429.afterBuild = v446; +const v601 = []; +var v602; +var v603 = v2; +v602 = function RESTART() { var err = this.response.error; if (!err || !err.retryable) + return; this.httpRequest = new v603.HttpRequest(this.service.endpoint, this.service.region); if (this.response.retryCount < this.service.config.maxRetries) { + this.response.retryCount++; +} +else { + this.response.error = null; +} }; +const v604 = {}; +v604.constructor = v602; +v602.prototype = v604; +v601.push(v602); +v429.restart = v601; +const v605 = []; +var v606; +var v608; +var v609 = v3; +var v610 = v40; +var v611 = v282; +v608 = function hasCustomEndpoint(client) { if (client._originalConfig && client._originalConfig.endpoint && client._originalConfig.endpointDiscoveryEnabled === true) { + throw v609.error(new v610(), { code: \\"ConfigurationException\\", message: \\"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.\\" }); +} var svcConfig = v251[client.serviceIdentifier] || {}; return v611(undefined || svcConfig.endpoint || (client._originalConfig && client._originalConfig.endpoint)); }; +const v612 = {}; +v612.constructor = v608; +v608.prototype = v612; +var v607 = v608; +var v614; +var v615 = v3; +const v617 = []; +v617.push(\\"AWS_ENABLE_ENDPOINT_DISCOVERY\\", \\"AWS_ENDPOINT_DISCOVERY_ENABLED\\"); +var v616 = v617; +var v618 = v8; +var v619 = v8; +var v620 = v3; +var v621 = v40; +var v623; +v623 = function isFalsy(value) { return [\\"false\\", \\"0\\"].indexOf(value) >= 0; }; +const v624 = {}; +v624.constructor = v623; +v623.prototype = v624; +var v622 = v623; +var v625 = v40; +var v626 = v623; +v614 = function resolveEndpointDiscoveryConfig(request) { var service = request.service || {}; if (service.config.endpointDiscoveryEnabled !== undefined) { + return service.config.endpointDiscoveryEnabled; +} if (v615.isBrowser()) + return undefined; for (var i = 0; i < 2; i++) { + var env = v616[i]; + if (v113.hasOwnProperty.call(v618.env, env)) { + if (v619.env[env] === \\"\\" || v618.env[env] === undefined) { + throw v620.error(new v621(), { code: \\"ConfigurationException\\", message: \\"environmental variable \\" + env + \\" cannot be set to nothing\\" }); + } + return !v622(v618.env[env]); + } +} var configFile = {}; try { + configFile = v200 ? v200.loadFrom({ isConfig: true, filename: v619.env[\\"AWS_CONFIG_FILE\\"] }) : {}; +} +catch (e) { } var sharedFileConfig = configFile[v618.env.AWS_PROFILE || \\"default\\"] || {}; if (v113.hasOwnProperty.call(sharedFileConfig, \\"endpoint_discovery_enabled\\")) { + if (sharedFileConfig.endpoint_discovery_enabled === undefined) { + throw v620.error(new v625(), { code: \\"ConfigurationException\\", message: \\"config file entry 'endpoint_discovery_enabled' cannot be set to nothing\\" }); + } + return !v626(sharedFileConfig.endpoint_discovery_enabled); +} return undefined; }; +const v627 = {}; +v627.constructor = v614; +v614.prototype = v627; +var v613 = v614; +var v629; +var v631; +var v633; +var v634 = v3; +var v635 = v136; +v633 = function marshallCustomIdentifiersHelper(result, params, shape) { if (!shape || params === undefined || params === null) + return; if (shape.type === \\"structure\\" && shape.required && shape.required.length > 0) { + v634.arrayEach(shape.required, function (name) { var memberShape = shape.members[name]; if (memberShape.endpointDiscoveryId === true) { + var locationName = memberShape.isLocationName ? memberShape.name : name; + result[locationName] = v635(params[name]); + } + else { + marshallCustomIdentifiersHelper(result, params[name], memberShape); + } }); +} }; +const v636 = {}; +v636.constructor = v633; +v633.prototype = v636; +var v632 = v633; +v631 = function marshallCustomIdentifiers(request, shape) { var identifiers = {}; v632(identifiers, request.params, shape); return identifiers; }; +const v637 = {}; +v637.constructor = v631; +v631.prototype = v637; +var v630 = v631; +var v639; +v639 = function getCacheKey(request) { var service = request.service; var api = service.api || {}; var operations = api.operations; var identifiers = {}; if (service.config.region) { + identifiers.region = service.config.region; +} if (api.serviceId) { + identifiers.serviceId = api.serviceId; +} if (service.config.credentials.accessKeyId) { + identifiers.accessKeyId = service.config.credentials.accessKeyId; +} return identifiers; }; +const v640 = {}; +v640.constructor = v639; +v639.prototype = v640; +var v638 = v639; +var v641 = v31; +const v642 = {}; +var v643; +var v644 = 1000; +const v646 = console._stdout._writableState.afterWriteTickInfo.constructor.prototype; +const v647 = Object.create(v646); +var v648; +var v649 = v40; +v648 = function LRUCache(size) { this.nodeMap = {}; this.size = 0; if (typeof size !== \\"number\\" || size < 1) { + throw new v649(\\"Cache size can only be positive number\\"); +} this.sizeLimit = size; }; +const v650 = {}; +v650.constructor = v648; +var v651; +v651 = function (node) { if (!this.headerNode) { + this.tailNode = node; +} +else { + this.headerNode.prev = node; + node.next = this.headerNode; +} this.headerNode = node; this.size++; }; +const v652 = {}; +v652.constructor = v651; +v651.prototype = v652; +v650.prependToList = v651; +var v653; +v653 = function () { if (!this.tailNode) { + return undefined; +} var node = this.tailNode; var prevNode = node.prev; if (prevNode) { + prevNode.next = undefined; +} node.prev = undefined; this.tailNode = prevNode; this.size--; return node; }; +const v654 = {}; +v654.constructor = v653; +v653.prototype = v654; +v650.removeFromTail = v653; +var v655; +v655 = function (node) { if (this.headerNode === node) { + this.headerNode = node.next; +} if (this.tailNode === node) { + this.tailNode = node.prev; +} if (node.prev) { + node.prev.next = node.next; +} if (node.next) { + node.next.prev = node.prev; +} node.next = undefined; node.prev = undefined; this.size--; }; +const v656 = {}; +v656.constructor = v655; +v655.prototype = v656; +v650.detachFromList = v655; +var v657; +v657 = function (key) { if (this.nodeMap[key]) { + var node = this.nodeMap[key]; + this.detachFromList(node); + this.prependToList(node); + return node.value; +} }; +const v658 = {}; +v658.constructor = v657; +v657.prototype = v658; +v650.get = v657; +var v659; +v659 = function (key) { if (this.nodeMap[key]) { + var node = this.nodeMap[key]; + this.detachFromList(node); + delete this.nodeMap[key]; +} }; +const v660 = {}; +v660.constructor = v659; +v659.prototype = v660; +v650.remove = v659; +var v661; +var v663; +v663 = function LinkedListNode(key, value) { this.key = key; this.value = value; }; +const v664 = {}; +v664.constructor = v663; +v663.prototype = v664; +var v662 = v663; +v661 = function (key, value) { if (this.nodeMap[key]) { + this.remove(key); +} +else if (this.size === this.sizeLimit) { + var tailNode = this.removeFromTail(); + var key_1 = tailNode.key; + delete this.nodeMap[key_1]; +} var newNode = new v662(key, value); this.nodeMap[key] = newNode; this.prependToList(newNode); }; +const v665 = {}; +v665.constructor = v661; +v661.prototype = v665; +v650.put = v661; +var v666; +var v667 = v31; +v666 = function () { var keys = v667.keys(this.nodeMap); for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var node = this.nodeMap[key]; + this.detachFromList(node); + delete this.nodeMap[key]; +} }; +const v668 = {}; +v668.constructor = v666; +v666.prototype = v668; +v650.empty = v666; +v648.prototype = v650; +v647.LRUCache = v648; +var v645 = v647; +v643 = function EndpointCache(maxSize) { if (maxSize === void 0) { + maxSize = v644; +} this.maxSize = maxSize; this.cache = new v645.LRUCache(maxSize); }; +v643.prototype = v642; +var v669; +var v670 = v31; +v669 = function (key) { var identifiers = []; var identifierNames = v670.keys(key).sort(); for (var i = 0; i < identifierNames.length; i++) { + var identifierName = identifierNames[i]; + if (key[identifierName] === undefined) + continue; + identifiers.push(key[identifierName]); +} return identifiers.join(\\" \\"); }; +const v671 = {}; +v671.constructor = v669; +v669.prototype = v671; +v643.getKeyString = v669; +v642.constructor = v643; +var v672; +var v673 = v643; +v672 = function (key, value) { var keyString = typeof key !== \\"string\\" ? v673.getKeyString(key) : key; var endpointRecord = this.populateValue(value); this.cache.put(keyString, endpointRecord); }; +const v674 = {}; +v674.constructor = v672; +v672.prototype = v674; +v642.put = v672; +var v675; +var v676 = v643; +var v677 = v77; +v675 = function (key) { var keyString = typeof key !== \\"string\\" ? v676.getKeyString(key) : key; var now = v677.now(); var records = this.cache.get(keyString); if (records) { + for (var i = records.length - 1; i >= 0; i--) { + var record = records[i]; + if (record.Expire < now) { + records.splice(i, 1); } - function step(r) { - r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + if (records.length === 0) { + this.cache.remove(keyString); + return undefined; + } +} return records; }; +const v678 = {}; +v678.constructor = v675; +v675.prototype = v678; +v642.get = v675; +var v679; +var v680 = v77; +v679 = function (endpoints) { var now = v680.now(); return endpoints.map(function (endpoint) { return ({ Address: endpoint.Address || \\"\\", Expire: now + (endpoint.CachePeriodInMinutes || 1) * 60 * 1000 }); }); }; +const v681 = {}; +v681.constructor = v679; +v679.prototype = v681; +v642.populateValue = v679; +var v682; +v682 = function () { this.cache.empty(); }; +const v683 = {}; +v683.constructor = v682; +v682.prototype = v683; +v642.empty = v682; +var v684; +var v685 = v643; +v684 = function (key) { var keyString = typeof key !== \\"string\\" ? v685.getKeyString(key) : key; this.cache.remove(keyString); }; +const v686 = {}; +v686.constructor = v684; +v684.prototype = v686; +v642.remove = v684; +const v687 = Object.create(v642); +v687.maxSize = 1000; +const v688 = Object.create(v650); +const v689 = {}; +v688.nodeMap = v689; +v688.size = 0; +v688.sizeLimit = 1000; +v687.cache = v688; +var v691; +v691 = function addApiVersionHeader(endpointRequest) { var api = endpointRequest.service.api; var apiVersion = api.apiVersion; if (apiVersion && !endpointRequest.httpRequest.headers[\\"x-amz-api-version\\"]) { + endpointRequest.httpRequest.headers[\\"x-amz-api-version\\"] = apiVersion; +} }; +const v692 = {}; +v692.constructor = v691; +v691.prototype = v692; +var v690 = v691; +v629 = function optionalDiscoverEndpoint(request) { var service = request.service; var api = service.api; var operationModel = api.operations ? api.operations[request.operation] : undefined; var inputShape = operationModel ? operationModel.input : undefined; var identifiers = v630(request, inputShape); var cacheKey = v638(request); if (v641.keys(identifiers).length > 0) { + cacheKey = v615.update(cacheKey, identifiers); + if (operationModel) + cacheKey.operation = operationModel.name; +} var endpoints = v687.get(cacheKey); if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { + return; +} +else if (endpoints && endpoints.length > 0) { + request.httpRequest.updateEndpoint(endpoints[0].Address); +} +else { + var endpointRequest = service.makeRequest(api.endpointOperation, { Operation: operationModel.name, Identifiers: identifiers }); + v690(endpointRequest); + endpointRequest.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); + endpointRequest.removeListener(\\"retry\\", v428.RETRY_CHECK); + v687.put(cacheKey, [{ Address: \\"\\", CachePeriodInMinutes: 1 }]); + endpointRequest.send(function (err, data) { if (data && data.Endpoints) { + v687.put(cacheKey, data.Endpoints); + } + else if (err) { + v687.put(cacheKey, [{ Address: \\"\\", CachePeriodInMinutes: 1 }]); + } }); +} }; +const v693 = {}; +v693.constructor = v629; +v629.prototype = v693; +var v628 = v629; +var v695; +var v696 = v631; +var v697 = v3; +v695 = function invalidateCachedEndpoints(response) { var error = response.error; var httpResponse = response.httpResponse; if (error && (error.code === \\"InvalidEndpointException\\" || httpResponse.statusCode === 421)) { + var request = response.request; + var operations = request.service.api.operations || {}; + var inputShape = operations[request.operation] ? operations[request.operation].input : undefined; + var identifiers = v696(request, inputShape); + var cacheKey = v638(request); + if (v641.keys(identifiers).length > 0) { + cacheKey = v697.update(cacheKey, identifiers); + if (operations[request.operation]) + cacheKey.operation = operations[request.operation].name; + } + v687.remove(cacheKey); +} }; +const v698 = {}; +v698.constructor = v695; +v695.prototype = v698; +var v694 = v695; +var v699 = v3; +var v701; +var v702 = v639; +var v703 = v31; +var v704 = v2; +const v706 = {}; +var v705 = v706; +var v707 = v706; +var v708 = v691; +var v709 = v706; +var v710 = v706; +v701 = function requiredDiscoverEndpoint(request, done) { var service = request.service; var api = service.api; var operationModel = api.operations ? api.operations[request.operation] : undefined; var inputShape = operationModel ? operationModel.input : undefined; var identifiers = v696(request, inputShape); var cacheKey = v702(request); if (v703.keys(identifiers).length > 0) { + cacheKey = v620.update(cacheKey, identifiers); + if (operationModel) + cacheKey.operation = operationModel.name; +} var cacheKeyStr = v704.EndpointCache.getKeyString(cacheKey); var endpoints = v687.get(cacheKeyStr); if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { + if (!v705[cacheKeyStr]) + v707[cacheKeyStr] = []; + v707[cacheKeyStr].push({ request: request, callback: done }); + return; +} +else if (endpoints && endpoints.length > 0) { + request.httpRequest.updateEndpoint(endpoints[0].Address); + done(); +} +else { + var endpointRequest = service.makeRequest(api.endpointOperation, { Operation: operationModel.name, Identifiers: identifiers }); + endpointRequest.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); + v708(endpointRequest); + v687.put(cacheKeyStr, [{ Address: \\"\\", CachePeriodInMinutes: 60 }]); + endpointRequest.send(function (err, data) { if (err) { + request.response.error = v620.error(err, { retryable: false }); + v687.remove(cacheKey); + if (v709[cacheKeyStr]) { + var pendingRequests = v710[cacheKeyStr]; + v615.arrayEach(pendingRequests, function (requestContext) { requestContext.request.response.error = v615.error(err, { retryable: false }); requestContext.callback(); }); + delete v709[cacheKeyStr]; + } + } + else if (data) { + v687.put(cacheKeyStr, data.Endpoints); + request.httpRequest.updateEndpoint(data.Endpoints[0].Address); + if (v709[cacheKeyStr]) { + var pendingRequests = v710[cacheKeyStr]; + v697.arrayEach(pendingRequests, function (requestContext) { requestContext.request.httpRequest.updateEndpoint(data.Endpoints[0].Address); requestContext.callback(); }); + delete v709[cacheKeyStr]; + } + } done(); }); +} }; +const v711 = {}; +v711.constructor = v701; +v701.prototype = v711; +var v700 = v701; +v606 = function discoverEndpoint(request, done) { var service = request.service || {}; if (v607(service) || request.isPresigned()) + return done(); var operations = service.api.operations || {}; var operationModel = operations[request.operation]; var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : \\"NULL\\"; var isEnabled = v613(request); var hasRequiredEndpointDiscovery = service.api.hasRequiredEndpointDiscovery; if (isEnabled || hasRequiredEndpointDiscovery) { + request.httpRequest.appendToUserAgent(\\"endpoint-discovery\\"); +} switch (isEndpointDiscoveryRequired) { + case \\"OPTIONAL\\": + if (isEnabled || hasRequiredEndpointDiscovery) { + v628(request); + request.addNamedListener(\\"INVALIDATE_CACHED_ENDPOINTS\\", \\"extractError\\", v694); + } + done(); + break; + case \\"REQUIRED\\": + if (isEnabled === false) { + request.response.error = v699.error(new v621(), { code: \\"ConfigurationException\\", message: \\"Endpoint Discovery is disabled but \\" + service.api.className + \\".\\" + request.operation + \\"() requires it. Please check your configurations.\\" }); + done(); + break; } - function fulfill(value) { - resume(\\"next\\", value); + request.addNamedListener(\\"INVALIDATE_CACHED_ENDPOINTS\\", \\"extractError\\", v694); + v700(request, done); + break; + case \\"NULL\\": + default: + done(); + break; +} }; +const v712 = {}; +v712.constructor = v606; +v606.prototype = v712; +v606._isAsync = true; +var v713; +v713 = function SIGN(req, done) { var service = req.service; var operations = req.service.api.operations || {}; var operation = operations[req.operation]; var authtype = operation ? operation.authtype : \\"\\"; if (!service.api.signatureVersion && !authtype && !service.config.signatureVersion) + return done(); service.config.getCredentials(function (err, credentials) { if (err) { + req.response.error = err; + return done(); +} try { + var date = service.getSkewCorrectedDate(); + var SignerClass = service.getSignerClass(req); + var signer = new SignerClass(req.httpRequest, service.getSigningName(req), { signatureCache: service.config.signatureCache, operation: operation, signatureVersion: service.api.signatureVersion }); + signer.setServiceClientId(service._clientId); + delete req.httpRequest.headers[\\"Authorization\\"]; + delete req.httpRequest.headers[\\"Date\\"]; + delete req.httpRequest.headers[\\"X-Amz-Date\\"]; + signer.addAuthorization(credentials, date); + req.signedAt = date; +} +catch (e) { + req.response.error = e; +} done(); }); }; +const v714 = {}; +v714.constructor = v713; +v713.prototype = v714; +v713._isAsync = true; +v605.push(v606, v713); +v429.sign = v605; +const v715 = []; +var v716; +var v717 = v40; +v716 = function VALIDATE_RESPONSE(resp) { if (this.service.successfulResponse(resp, this)) { + resp.data = {}; + resp.error = null; +} +else { + resp.data = null; + resp.error = v3.error(new v717(), { code: \\"UnknownError\\", message: \\"An unknown error occurred.\\" }); +} }; +const v718 = {}; +v718.constructor = v716; +v716.prototype = v718; +v715.push(v716); +v429.validateResponse = v715; +const v719 = []; +var v720; +v720 = function ERROR(err, resp) { var errorCodeMapping = resp.request.service.api.errorCodeMapping; if (errorCodeMapping && err && err.code) { + var mapping = errorCodeMapping[err.code]; + if (mapping) { + resp.error.code = mapping.code; + } +} }; +const v721 = {}; +v721.constructor = v720; +v720.prototype = v721; +v719.push(v720); +v429.error = v719; +const v722 = []; +var v723; +v723 = function SEND(resp, done) { resp.httpResponse._abortCallback = done; resp.error = null; resp.data = null; function callback(httpResp) { resp.httpResponse.stream = httpResp; var stream = resp.request.httpRequest.stream; var service = resp.request.service; var api = service.api; var operationName = resp.request.operation; var operation = api.operations[operationName] || {}; httpResp.on(\\"headers\\", function onHeaders(statusCode, headers, statusMessage) { resp.request.emit(\\"httpHeaders\\", [statusCode, headers, resp, statusMessage]); if (!resp.httpResponse.streaming) { + if (2 === 2) { + if (operation.hasEventOutput && service.successfulResponse(resp)) { + resp.request.emit(\\"httpDone\\"); + done(); + return; } - function reject(value) { - resume(\\"throw\\", value); + httpResp.on(\\"readable\\", function onReadable() { var data = httpResp.read(); if (data !== null) { + resp.request.emit(\\"httpData\\", [data, resp]); + } }); + } + else { + httpResp.on(\\"data\\", function onData(data) { resp.request.emit(\\"httpData\\", [data, resp]); }); + } +} }); httpResp.on(\\"end\\", function onEnd() { if (!stream || !stream.didCallback) { + if (2 === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { + return; + } + resp.request.emit(\\"httpDone\\"); + done(); +} }); } function progress(httpResp) { httpResp.on(\\"sendProgress\\", function onSendProgress(value) { resp.request.emit(\\"httpUploadProgress\\", [value, resp]); }); httpResp.on(\\"receiveProgress\\", function onReceiveProgress(value) { resp.request.emit(\\"httpDownloadProgress\\", [value, resp]); }); } function error(err) { if (err.code !== \\"RequestAbortedError\\") { + var errCode = err.code === \\"TimeoutError\\" ? err.code : \\"NetworkingError\\"; + err = v3.error(err, { code: errCode, region: resp.request.httpRequest.region, hostname: resp.request.httpRequest.endpoint.hostname, retryable: true }); +} resp.error = err; resp.request.emit(\\"httpError\\", [resp.error, resp], function () { done(); }); } function executeSend() { var http = v444.HttpClient.getInstance(); var httpOptions = resp.request.service.config.httpOptions || {}; try { + var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); + progress(stream); +} +catch (err) { + error(err); +} } var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; if (timeDiff >= 60 * 10) { + this.emit(\\"sign\\", [this], function (err) { if (err) + done(err); + else + executeSend(); }); +} +else { + executeSend(); +} }; +const v724 = {}; +v724.constructor = v723; +v723.prototype = v724; +v723._isAsync = true; +v722.push(v723); +v429.send = v722; +const v725 = []; +var v726; +var v727 = v77; +v726 = function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { resp.httpResponse.statusCode = statusCode; resp.httpResponse.statusMessage = statusMessage; resp.httpResponse.headers = headers; resp.httpResponse.body = v41.toBuffer(\\"\\"); resp.httpResponse.buffers = []; resp.httpResponse.numBytes = 0; var dateHeader = headers.date || headers.Date; var service = resp.request.service; if (dateHeader) { + var serverTime = v727.parse(dateHeader); + if (service.config.correctClockSkew && service.isClockSkewed(serverTime)) { + service.applyClockOffset(serverTime); + } +} }; +const v728 = {}; +v728.constructor = v726; +v726.prototype = v728; +v725.push(v726); +v429.httpHeaders = v725; +const v729 = []; +var v730; +v730 = function HTTP_DATA(chunk, resp) { if (chunk) { + if (v3.isNode()) { + resp.httpResponse.numBytes += chunk.length; + var total = resp.httpResponse.headers[\\"content-length\\"]; + var progress = { loaded: resp.httpResponse.numBytes, total: total }; + resp.request.emit(\\"httpDownloadProgress\\", [progress, resp]); + } + resp.httpResponse.buffers.push(v41.toBuffer(chunk)); +} }; +const v731 = {}; +v731.constructor = v730; +v730.prototype = v731; +v729.push(v730); +v429.httpData = v729; +const v732 = []; +var v733; +v733 = function HTTP_DONE(resp) { if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { + var body = v41.concat(resp.httpResponse.buffers); + resp.httpResponse.body = body; +} delete resp.httpResponse.numBytes; delete resp.httpResponse.buffers; }; +const v734 = {}; +v734.constructor = v733; +v733.prototype = v734; +v732.push(v733); +v429.httpDone = v732; +const v735 = []; +var v736; +v736 = function FINALIZE_ERROR(resp) { if (resp.httpResponse.statusCode) { + resp.error.statusCode = resp.httpResponse.statusCode; + if (resp.error.retryable === undefined) { + resp.error.retryable = this.service.retryableError(resp.error, this); + } +} }; +const v737 = {}; +v737.constructor = v736; +v736.prototype = v737; +var v738; +v738 = function INVALIDATE_CREDENTIALS(resp) { if (!resp.error) + return; switch (resp.error.code) { + case \\"RequestExpired\\": + case \\"ExpiredTokenException\\": + case \\"ExpiredToken\\": + resp.error.retryable = true; + resp.request.service.config.credentials.expired = true; +} }; +const v739 = {}; +v739.constructor = v738; +v738.prototype = v739; +var v740; +v740 = function EXPIRED_SIGNATURE(resp) { var err = resp.error; if (!err) + return; if (typeof err.code === \\"string\\" && typeof err.message === \\"string\\") { + if (err.code.match(/Signature/) && err.message.match(/expired/)) { + resp.error.retryable = true; + } +} }; +const v741 = {}; +v741.constructor = v740; +v740.prototype = v741; +var v742; +v742 = function CLOCK_SKEWED(resp) { if (!resp.error) + return; if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew) { + resp.error.retryable = true; +} }; +const v743 = {}; +v743.constructor = v742; +v742.prototype = v743; +var v744; +v744 = function REDIRECT(resp) { if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers[\\"location\\"]) { + this.httpRequest.endpoint = new v603.Endpoint(resp.httpResponse.headers[\\"location\\"]); + this.httpRequest.headers[\\"Host\\"] = this.httpRequest.endpoint.host; + resp.error.redirect = true; + resp.error.retryable = true; +} }; +const v745 = {}; +v745.constructor = v744; +v744.prototype = v745; +var v746; +v746 = function RETRY_CHECK(resp) { if (resp.error) { + if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.error.retryDelay = 0; + } + else if (resp.retryCount < resp.maxRetries) { + resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; + } +} }; +const v747 = {}; +v747.constructor = v746; +v746.prototype = v747; +v735.push(v736, v738, v740, v742, v744, v746); +v429.retry = v735; +const v748 = []; +var v749; +const v751 = require(\\"timers\\").setTimeout; +var v750 = v751; +v749 = function RESET_RETRY_STATE(resp, done) { var delay, willRetry = false; if (resp.error) { + delay = resp.error.retryDelay || 0; + if (resp.error.retryable && resp.retryCount < resp.maxRetries) { + resp.retryCount++; + willRetry = true; + } + else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { + resp.redirectCount++; + willRetry = true; + } +} if (willRetry && delay >= 0) { + resp.error = null; + v750(done, delay); +} +else { + done(); +} }; +const v752 = {}; +v752.constructor = v749; +v749.prototype = v752; +v749._isAsync = true; +v748.push(v749); +v429.afterRetry = v748; +v428._events = v429; +v428.VALIDATE_CREDENTIALS = v431; +v428.VALIDATE_REGION = v433; +v428.BUILD_IDEMPOTENCY_TOKENS = v438; +v428.VALIDATE_PARAMETERS = v443; +v428.COMPUTE_CHECKSUM = v447; +v428.COMPUTE_SHA256 = v449; +v428.SET_CONTENT_LENGTH = v590; +v428.SET_HTTP_HOST = v595; +v428.SET_TRACE_ID = v597; +v428.RESTART = v602; +v428.DISCOVER_ENDPOINT = v606; +v428.SIGN = v713; +v428.VALIDATE_RESPONSE = v716; +v428.ERROR = v720; +v428.SEND = v723; +v428.HTTP_HEADERS = v726; +v428.HTTP_DATA = v730; +v428.HTTP_DONE = v733; +v428.FINALIZE_ERROR = v736; +v428.INVALIDATE_CREDENTIALS = v738; +v428.EXPIRED_SIGNATURE = v740; +v428.CLOCK_SKEWED = v742; +v428.REDIRECT = v744; +v428.RETRY_CHECK = v746; +v428.RESET_RETRY_STATE = v749; +const v753 = Object.create(v401); +const v754 = {}; +const v755 = []; +var v756; +v756 = function extractRequestId(resp) { var requestId = resp.httpResponse.headers[\\"x-amz-request-id\\"] || resp.httpResponse.headers[\\"x-amzn-requestid\\"]; if (!requestId && resp.data && resp.data.ResponseMetadata) { + requestId = resp.data.ResponseMetadata.RequestId; +} if (requestId) { + resp.requestId = requestId; +} if (resp.error) { + resp.error.requestId = requestId; +} }; +const v757 = {}; +v757.constructor = v756; +v756.prototype = v757; +v755.push(v756); +v754.extractData = v755; +const v758 = []; +v758.push(v756); +v754.extractError = v758; +const v759 = []; +var v760; +var v761 = v40; +v760 = function ENOTFOUND_ERROR(err) { function isDNSError(err) { return err.errno === \\"ENOTFOUND\\" || typeof err.errno === \\"number\\" && typeof v3.getSystemErrorName === \\"function\\" && [\\"EAI_NONAME\\", \\"EAI_NODATA\\"].indexOf(v3.getSystemErrorName(err.errno) >= 0); } if (err.code === \\"NetworkingError\\" && isDNSError(err)) { + var message = \\"Inaccessible host: \`\\" + err.hostname + \\"' at port \`\\" + err.port + \\"'. This service may not be available in the \`\\" + err.region + \\"' region.\\"; + this.response.error = v3.error(new v761(message), { code: \\"UnknownEndpoint\\", region: err.region, hostname: err.hostname, retryable: true, originalError: err }); +} }; +const v762 = {}; +v762.constructor = v760; +v760.prototype = v762; +v759.push(v760); +v754.httpError = v759; +v753._events = v754; +v753.EXTRACT_REQUEST_ID = v756; +v753.ENOTFOUND_ERROR = v760; +const v763 = Object.create(v401); +const v764 = {}; +const v765 = []; +var v766; +var v767 = undefined; +var v768 = undefined; +var v769 = undefined; +var v770 = undefined; +var v771 = require; +v766 = function LOG_REQUEST(resp) { var req = resp.request; var logger = req.service.config.logger; if (!logger) + return; function filterSensitiveLog(inputShape, shape) { if (!shape) { + return shape; +} if (inputShape.isSensitive) { + return \\"***SensitiveInformation***\\"; +} switch (inputShape.type) { + case \\"structure\\": + var struct = {}; + v3.each(shape, function (subShapeName, subShape) { if (v113.hasOwnProperty.call(inputShape.members, subShapeName)) { + v767[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); + } + else { + v767[subShapeName] = subShape; + } }); + return v767; + case \\"list\\": + var list = []; + v3.arrayEach(shape, function (subShape, index) { undefined(filterSensitiveLog(inputShape.member, subShape)); }); + return v768; + case \\"map\\": + var map = {}; + v3.each(shape, function (key, value) { v769[key] = filterSensitiveLog(inputShape.value, value); }); + return v770; + default: return shape; +} } function buildMessage() { var time = resp.request.service.getSkewCorrectedDate().getTime(); var delta = (time - req.startTime.getTime()) / 1000; var ansi = logger.isTTY ? true : false; var status = resp.httpResponse.statusCode; var censoredParams = req.params; if (req.service.api.operations && req.service.api.operations[req.operation] && req.service.api.operations[req.operation].input) { + var inputShape = req.service.api.operations[req.operation].input; + censoredParams = filterSensitiveLog(inputShape, req.params); +} var params = v771(\\"util\\").inspect(censoredParams, true, null); var message = \\"\\"; if (ansi) + message += \\"\\\\u001B[33m\\"; message += \\"[AWS \\" + req.service.serviceIdentifier + \\" \\" + status; message += \\" \\" + delta.toString() + \\"s \\" + resp.retryCount + \\" retries]\\"; if (ansi) + message += \\"\\\\u001B[0;1m\\"; message += \\" \\" + v55.lowerFirst(req.operation); message += \\"(\\" + params + \\")\\"; if (ansi) + message += \\"\\\\u001B[0m\\"; return message; } var line = buildMessage(); if (typeof logger.log === \\"function\\") { + logger.log(line); +} +else if (typeof logger.write === \\"function\\") { + logger.write(line + \\"\\\\n\\"); +} }; +const v772 = {}; +v772.constructor = v766; +v766.prototype = v772; +v765.push(v766); +v764.complete = v765; +v763._events = v764; +v763.LOG_REQUEST = v766; +v400 = function addAllRequestListeners(request) { var list = [v426, v428, this.serviceInterface(), v753]; for (var i = 0; i < list.length; i++) { + if (list[i]) + request.addListeners(list[i]); +} if (!this.config.paramValidation) { + request.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); +} if (this.config.logger) { + request.addListeners(v763); +} this.setupRequestListeners(request); if (typeof this.constructor.prototype.customRequestHandler === \\"function\\") { + this.constructor.prototype.customRequestHandler(request); +} if (v113.hasOwnProperty.call(this, \\"customRequestHandler\\") && typeof this.customRequestHandler === \\"function\\") { + this.customRequestHandler(request); +} }; +const v773 = {}; +v773.constructor = v400; +v400.prototype = v773; +v309.addAllRequestListeners = v400; +var v774; +v774 = function apiCallEvent(request) { var api = request.service.api.operations[request.operation]; var monitoringEvent = { Type: \\"ApiCall\\", Api: api ? api.name : request.operation, Version: 1, Service: request.service.api.serviceId || request.service.api.endpointPrefix, Region: request.httpRequest.region, MaxRetriesExceeded: 0, UserAgent: request.httpRequest.getUserAgent() }; var response = request.response; if (response.httpResponse.statusCode) { + monitoringEvent.FinalHttpStatusCode = response.httpResponse.statusCode; +} if (response.error) { + var error = response.error; + var statusCode = response.httpResponse.statusCode; + if (statusCode > 299) { + if (error.code) + monitoringEvent.FinalAwsException = error.code; + if (error.message) + monitoringEvent.FinalAwsExceptionMessage = error.message; + } + else { + if (error.code || error.name) + monitoringEvent.FinalSdkException = error.code || error.name; + if (error.message) + monitoringEvent.FinalSdkExceptionMessage = error.message; + } +} return monitoringEvent; }; +const v775 = {}; +v775.constructor = v774; +v774.prototype = v775; +v309.apiCallEvent = v774; +var v776; +v776 = function apiAttemptEvent(request) { var api = request.service.api.operations[request.operation]; var monitoringEvent = { Type: \\"ApiCallAttempt\\", Api: api ? api.name : request.operation, Version: 1, Service: request.service.api.serviceId || request.service.api.endpointPrefix, Fqdn: request.httpRequest.endpoint.hostname, UserAgent: request.httpRequest.getUserAgent() }; var response = request.response; if (response.httpResponse.statusCode) { + monitoringEvent.HttpStatusCode = response.httpResponse.statusCode; +} if (!request._unAuthenticated && request.service.config.credentials && request.service.config.credentials.accessKeyId) { + monitoringEvent.AccessKey = request.service.config.credentials.accessKeyId; +} if (!response.httpResponse.headers) + return monitoringEvent; if (request.httpRequest.headers[\\"x-amz-security-token\\"]) { + monitoringEvent.SessionToken = request.httpRequest.headers[\\"x-amz-security-token\\"]; +} if (response.httpResponse.headers[\\"x-amzn-requestid\\"]) { + monitoringEvent.XAmznRequestId = response.httpResponse.headers[\\"x-amzn-requestid\\"]; +} if (response.httpResponse.headers[\\"x-amz-request-id\\"]) { + monitoringEvent.XAmzRequestId = response.httpResponse.headers[\\"x-amz-request-id\\"]; +} if (response.httpResponse.headers[\\"x-amz-id-2\\"]) { + monitoringEvent.XAmzId2 = response.httpResponse.headers[\\"x-amz-id-2\\"]; +} return monitoringEvent; }; +const v777 = {}; +v777.constructor = v776; +v776.prototype = v777; +v309.apiAttemptEvent = v776; +var v778; +v778 = function attemptFailEvent(request) { var monitoringEvent = this.apiAttemptEvent(request); var response = request.response; var error = response.error; if (response.httpResponse.statusCode > 299) { + if (error.code) + monitoringEvent.AwsException = error.code; + if (error.message) + monitoringEvent.AwsExceptionMessage = error.message; +} +else { + if (error.code || error.name) + monitoringEvent.SdkException = error.code || error.name; + if (error.message) + monitoringEvent.SdkExceptionMessage = error.message; +} return monitoringEvent; }; +const v779 = {}; +v779.constructor = v778; +v778.prototype = v779; +v309.attemptFailEvent = v778; +var v780; +const v781 = {}; +var v782; +var v783 = v8; +v782 = function now() { var second = v783.hrtime(); return second[0] * 1000 + (second[1] / 1000000); }; +const v784 = {}; +v784.constructor = v782; +v782.prototype = v784; +v781.now = v782; +var v785 = v77; +const v787 = Math; +var v786 = v787; +var v788 = v787; +v780 = function attachMonitoringEmitter(request) { var attemptTimestamp; var attemptStartRealTime; var attemptLatency; var callStartRealTime; var attemptCount = 0; var region; var callTimestamp; var self = this; var addToHead = true; request.on(\\"validate\\", function () { callStartRealTime = v781.now(); callTimestamp = v785.now(); }, addToHead); request.on(\\"sign\\", function () { attemptStartRealTime = v781.now(); attemptTimestamp = v785.now(); region = request.httpRequest.region; attemptCount++; }, addToHead); request.on(\\"validateResponse\\", function () { attemptLatency = v786.round(v781.now() - attemptStartRealTime); }); request.addNamedListener(\\"API_CALL_ATTEMPT\\", \\"success\\", function API_CALL_ATTEMPT() { var apiAttemptEvent = self.apiAttemptEvent(request); apiAttemptEvent.Timestamp = attemptTimestamp; apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; apiAttemptEvent.Region = region; self.emit(\\"apiCallAttempt\\", [apiAttemptEvent]); }); request.addNamedListener(\\"API_CALL_ATTEMPT_RETRY\\", \\"retry\\", function API_CALL_ATTEMPT_RETRY() { var apiAttemptEvent = self.attemptFailEvent(request); apiAttemptEvent.Timestamp = attemptTimestamp; attemptLatency = attemptLatency || v786.round(v781.now() - attemptStartRealTime); apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; apiAttemptEvent.Region = region; self.emit(\\"apiCallAttempt\\", [apiAttemptEvent]); }); request.addNamedListener(\\"API_CALL\\", \\"complete\\", function API_CALL() { var apiCallEvent = self.apiCallEvent(request); apiCallEvent.AttemptCount = attemptCount; if (apiCallEvent.AttemptCount <= 0) + return; apiCallEvent.Timestamp = callTimestamp; var latency = v788.round(v781.now() - callStartRealTime); apiCallEvent.Latency = latency >= 0 ? latency : 0; var response = request.response; if (response.error && response.error.retryable && typeof response.retryCount === \\"number\\" && typeof response.maxRetries === \\"number\\" && (response.retryCount >= response.maxRetries)) { + apiCallEvent.MaxRetriesExceeded = 1; +} self.emit(\\"apiCall\\", [apiCallEvent]); }); }; +const v789 = {}; +v789.constructor = v780; +v780.prototype = v789; +v309.attachMonitoringEmitter = v780; +var v790; +v790 = function setupRequestListeners(request) { }; +const v791 = {}; +v791.constructor = v790; +v790.prototype = v791; +v309.setupRequestListeners = v790; +var v792; +v792 = function getSigningName() { return this.api.signingName || this.api.endpointPrefix; }; +const v793 = {}; +v793.constructor = v792; +v792.prototype = v793; +v309.getSigningName = v792; +var v794; +v794 = function getSignerClass(request) { var version; var operation = null; var authtype = \\"\\"; if (request) { + var operations = request.service.api.operations || {}; + operation = operations[request.operation] || null; + authtype = operation ? operation.authtype : \\"\\"; +} if (this.config.signatureVersion) { + version = this.config.signatureVersion; +} +else if (authtype === \\"v4\\" || authtype === \\"v4-unsigned-body\\") { + version = \\"v4\\"; +} +else { + version = this.api.signatureVersion; +} return v450.RequestSigner.getVersion(version); }; +const v795 = {}; +v795.constructor = v794; +v794.prototype = v795; +v309.getSignerClass = v794; +var v796; +const v797 = Object.create(v401); +const v798 = {}; +const v799 = []; +var v800; +var v802; +v802 = function QueryParamSerializer() { }; +const v803 = {}; +v803.constructor = v802; +var v804; +var v806; +var v807 = v3; +var v809; +v809 = function ucfirst(shape) { if (shape.isQueryName || shape.api.protocol !== \\"ec2\\") { + return shape.name; +} +else { + return shape.name[0].toUpperCase() + shape.name.substr(1); +} }; +const v810 = {}; +v810.constructor = v809; +v809.prototype = v810; +var v808 = v809; +var v812; +var v813 = v806; +var v815; +var v816 = v3; +var v817 = v809; +var v818 = v812; +v815 = function serializeList(name, list, rules, fn) { var memberRules = rules.member || {}; if (list.length === 0) { + fn.call(this, name, null); + return; +} v816.arrayEach(list, function (v, n) { var suffix = \\".\\" + (n + 1); if (rules.api.protocol === \\"ec2\\") { + suffix = suffix + \\"\\"; +} +else if (rules.flattened) { + if (memberRules.name) { + var parts = name.split(\\".\\"); + parts.pop(); + parts.push(v817(memberRules)); + name = parts.join(\\".\\"); + } +} +else { + suffix = \\".\\" + (memberRules.name ? memberRules.name : \\"member\\") + suffix; +} v818(name + suffix, v, memberRules, fn); }); }; +const v819 = {}; +v819.constructor = v815; +v815.prototype = v819; +var v814 = v815; +var v821; +var v822 = v3; +var v823 = v812; +v821 = function serializeMap(name, map, rules, fn) { var i = 1; v822.each(map, function (key, value) { var prefix = rules.flattened ? \\".\\" : \\".entry.\\"; var position = prefix + (i++) + \\".\\"; var keyName = position + (rules.key.name || \\"key\\"); var valueName = position + (rules.value.name || \\"value\\"); v811(name + keyName, key, rules.key, fn); v823(name + valueName, value, rules.value, fn); }); }; +const v824 = {}; +v824.constructor = v821; +v821.prototype = v824; +var v820 = v821; +v812 = function serializeMember(name, value, rules, fn) { if (value === null || value === undefined) + return; if (rules.type === \\"structure\\") { + v813(name, value, rules, fn); +} +else if (rules.type === \\"list\\") { + v814(name, value, rules, fn); +} +else if (rules.type === \\"map\\") { + v820(name, value, rules, fn); +} +else { + fn(name, rules.toWireFormat(value).toString()); +} }; +const v825 = {}; +v825.constructor = v812; +v812.prototype = v825; +var v811 = v812; +v806 = function serializeStructure(prefix, struct, rules, fn) { v807.each(rules.members, function (name, member) { var value = struct[name]; if (value === null || value === undefined) + return; var memberName = v808(member); memberName = prefix ? prefix + \\".\\" + memberName : memberName; v811(memberName, value, member, fn); }); }; +const v826 = {}; +v826.constructor = v806; +v806.prototype = v826; +var v805 = v806; +v804 = function (params, shape, fn) { v805(\\"\\", params, shape, fn); }; +const v827 = {}; +v827.constructor = v804; +v804.prototype = v827; +v803.serialize = v804; +v802.prototype = v803; +var v801 = v802; +var v828 = v3; +var v830; +var v832; +v832 = function hasEndpointDiscover(request) { var api = request.service.api; var operationModel = api.operations[request.operation]; var isEndpointOperation = api.endpointOperation && (api.endpointOperation === v55.lowerFirst(operationModel.name)); return (operationModel.endpointDiscoveryRequired !== \\"NULL\\" || isEndpointOperation === true); }; +const v833 = {}; +v833.constructor = v832; +v832.prototype = v833; +var v831 = v832; +var v835; +var v836 = v3; +var v837 = v3; +var v838 = v40; +var v839 = v373; +v835 = function expandHostPrefix(hostPrefixNotation, params, shape) { v836.each(shape.members, function (name, member) { if (member.hostLabel === true) { + if (typeof params[name] !== \\"string\\" || params[name] === \\"\\") { + throw v837.error(new v838(), { message: \\"Parameter \\" + name + \\" should be a non-empty string.\\", code: \\"InvalidParameter\\" }); + } + var regex = new v839(\\"\\\\\\\\{\\" + name + \\"\\\\\\\\}\\", \\"g\\"); + hostPrefixNotation = hostPrefixNotation.replace(regex, params[name]); +} }); return hostPrefixNotation; }; +const v840 = {}; +v840.constructor = v835; +v835.prototype = v840; +var v834 = v835; +var v842; +v842 = function prependEndpointPrefix(endpoint, prefix) { if (endpoint.host) { + endpoint.host = prefix + endpoint.host; +} if (endpoint.hostname) { + endpoint.hostname = prefix + endpoint.hostname; +} }; +const v843 = {}; +v843.constructor = v842; +v842.prototype = v843; +var v841 = v842; +var v845; +var v846 = v3; +var v847 = v40; +var v848 = v40; +v845 = function validateHostname(hostname) { var labels = hostname.split(\\".\\"); var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9]$/; v846.arrayEach(labels, function (label) { if (!label.length || label.length < 1 || label.length > 63) { + throw v846.error(new v847(), { code: \\"ValidationError\\", message: \\"Hostname label length should be between 1 to 63 characters, inclusive.\\" }); +} if (!hostPattern.test(label)) { + throw v3.error(new v848(), { code: \\"ValidationError\\", message: label + \\" is not hostname compatible.\\" }); +} }); }; +const v849 = {}; +v849.constructor = v845; +v845.prototype = v849; +var v844 = v845; +v830 = function populateHostPrefix(request) { var enabled = request.service.config.hostPrefixEnabled; if (!enabled) + return request; var operationModel = request.service.api.operations[request.operation]; if (v831(request)) + return request; if (operationModel.endpoint && operationModel.endpoint.hostPrefix) { + var hostPrefixNotation = operationModel.endpoint.hostPrefix; + var hostPrefix = v834(hostPrefixNotation, request.params, operationModel.input); + v841(request.httpRequest.endpoint, hostPrefix); + v844(request.httpRequest.endpoint.hostname); +} return request; }; +const v850 = {}; +v850.constructor = v830; +v830.prototype = v850; +var v829 = v830; +v800 = function buildRequest(req) { var operation = req.service.api.operations[req.operation]; var httpRequest = req.httpRequest; httpRequest.headers[\\"Content-Type\\"] = \\"application/x-www-form-urlencoded; charset=utf-8\\"; httpRequest.params = { Version: req.service.api.apiVersion, Action: operation.name }; var builder = new v801(); builder.serialize(req.params, operation.input, function (name, value) { httpRequest.params[name] = value; }); httpRequest.body = v828.queryParamsToString(httpRequest.params); v829(req); }; +const v851 = {}; +v851.constructor = v800; +v800.prototype = v851; +v799.push(v800); +v798.build = v799; +const v852 = []; +var v853; +var v855; +var v857; +var v858 = v3; +v857 = function property(obj, name, value) { if (value !== null && value !== undefined) { + v858.property.apply(this, arguments); +} }; +const v859 = {}; +v859.constructor = v857; +v857.prototype = v859; +var v856 = v857; +var v860 = v857; +var v861 = v857; +var v862 = v857; +var v863 = v857; +var v864 = v857; +var v865 = v857; +var v866 = v857; +var v867 = v282; +var v868 = v857; +var v869 = v857; +var v870 = v282; +var v871 = v857; +var v872 = v857; +v855 = function Shape(shape, options, memberName) { options = options || {}; v856(this, \\"shape\\", shape.shape); v860(this, \\"api\\", options.api, false); v861(this, \\"type\\", shape.type); v862(this, \\"enum\\", shape.enum); v863(this, \\"min\\", shape.min); v862(this, \\"max\\", shape.max); v864(this, \\"pattern\\", shape.pattern); v861(this, \\"location\\", shape.location || this.location || \\"body\\"); v861(this, \\"name\\", this.name || shape.xmlName || shape.queryName || shape.locationName || memberName); v865(this, \\"isStreaming\\", shape.streaming || this.isStreaming || false); v866(this, \\"requiresLength\\", shape.requiresLength, false); v866(this, \\"isComposite\\", shape.isComposite || false); v866(this, \\"isShape\\", true, false); v866(this, \\"isQueryName\\", v867(shape.queryName), false); v868(this, \\"isLocationName\\", v867(shape.locationName), false); v869(this, \\"isIdempotent\\", shape.idempotencyToken === true); v868(this, \\"isJsonValue\\", shape.jsonvalue === true); v866(this, \\"isSensitive\\", shape.sensitive === true || shape.prototype && shape.prototype.sensitive === true); v866(this, \\"isEventStream\\", v870(shape.eventstream), false); v866(this, \\"isEvent\\", v867(shape.event), false); v868(this, \\"isEventPayload\\", v867(shape.eventpayload), false); v871(this, \\"isEventHeader\\", v870(shape.eventheader), false); v872(this, \\"isTimestampFormatSet\\", v870(shape.timestampFormat) || shape.prototype && shape.prototype.isTimestampFormatSet === true, false); v871(this, \\"endpointDiscoveryId\\", v867(shape.endpointdiscoveryid), false); v871(this, \\"hostLabel\\", v870(shape.hostLabel), false); if (options.documentation) { + v866(this, \\"documentation\\", shape.documentation); + v871(this, \\"documentationUrl\\", shape.documentationUrl); +} if (shape.xmlAttribute) { + v866(this, \\"isXmlAttribute\\", shape.xmlAttribute || false); +} v862(this, \\"defaultValue\\", null); this.toWireFormat = function (value) { if (value === null || value === undefined) + return \\"\\"; return value; }; this.toType = function (value) { return value; }; }; +const v873 = {}; +v873.constructor = v855; +v855.prototype = v873; +const v874 = {}; +v874.character = \\"string\\"; +v874.double = \\"float\\"; +v874.long = \\"integer\\"; +v874.short = \\"integer\\"; +v874.biginteger = \\"integer\\"; +v874.bigdecimal = \\"float\\"; +v874.blob = \\"binary\\"; +v855.normalizedTypes = v874; +const v875 = {}; +var v876; +var v878; +var v879 = v855; +v878 = function CompositeShape(shape) { v879.apply(this, arguments); v866(this, \\"isComposite\\", true); if (shape.flattened) { + v871(this, \\"flattened\\", shape.flattened || false); +} }; +const v880 = {}; +v880.constructor = v878; +v878.prototype = v880; +var v877 = v878; +var v881 = v282; +var v883; +var v884 = v136; +var v886; +var v887 = v146; +v886 = function memoize(name, value, factory, nameTr) { v887(this, nameTr(name), function () { return factory(name, value); }); }; +const v888 = {}; +v888.constructor = v886; +v886.prototype = v888; +var v885 = v886; +v883 = function Collection(iterable, options, factory, nameTr, callback) { nameTr = nameTr || v884; var self = this; for (var id in iterable) { + if (v113.hasOwnProperty.call(iterable, id)) { + v885.call(self, id, iterable[id], factory, nameTr); + if (callback) + callback(id, iterable[id]); + } +} }; +const v889 = {}; +v889.constructor = v883; +v883.prototype = v889; +var v882 = v883; +var v890 = v855; +var v892; +v892 = function memoizedProperty(obj, name) { if (!obj.constructor.prototype[name]) { + v858.memoizedProperty.apply(this, arguments); +} }; +const v893 = {}; +v893.constructor = v892; +v892.prototype = v893; +var v891 = v892; +var v894 = v31; +var v895 = v892; +v876 = function StructureShape(shape, options) { var self = this; var requiredMap = null, firstInit = !this.isShape; v877.apply(this, arguments); if (firstInit) { + v872(this, \\"defaultValue\\", function () { return {}; }); + v868(this, \\"members\\", {}); + v872(this, \\"memberNames\\", []); + v872(this, \\"required\\", []); + v872(this, \\"isRequired\\", function () { return false; }); + v868(this, \\"isDocument\\", v881(shape.document)); +} if (shape.members) { + v869(this, \\"members\\", new v882(shape.members, options, function (name, member) { return v890.create(member, options, name); })); + v891(this, \\"memberNames\\", function () { return shape.xmlOrder || v894.keys(shape.members); }); + if (shape.event) { + v895(this, \\"eventPayloadMemberName\\", function () { var members = self.members; var memberNames = self.memberNames; for (var i = 0, iLen = memberNames.length; i < iLen; i++) { + if (members[memberNames[i]].isEventPayload) { + return memberNames[i]; + } + } }); + v891(this, \\"eventHeaderMemberNames\\", function () { var members = self.members; var memberNames = self.memberNames; var eventHeaderMemberNames = []; for (var i = 0, iLen = memberNames.length; i < iLen; i++) { + if (members[memberNames[i]].isEventHeader) { + eventHeaderMemberNames.push(memberNames[i]); + } + } return eventHeaderMemberNames; }); + } +} if (shape.required) { + v868(this, \\"required\\", shape.required); + v869(this, \\"isRequired\\", function (name) { if (!requiredMap) { + requiredMap = {}; + for (var i = 0; i < shape.required.length; i++) { + requiredMap[shape.required[i]] = true; + } + } return requiredMap[name]; }, false, true); +} v868(this, \\"resultWrapper\\", shape.resultWrapper || null); if (shape.payload) { + v868(this, \\"payload\\", shape.payload); +} if (typeof shape.xmlNamespace === \\"string\\") { + v869(this, \\"xmlNamespaceUri\\", shape.xmlNamespace); +} +else if (typeof shape.xmlNamespace === \\"object\\") { + v869(this, \\"xmlNamespacePrefix\\", shape.xmlNamespace.prefix); + v869(this, \\"xmlNamespaceUri\\", shape.xmlNamespace.uri); +} }; +const v896 = {}; +v896.constructor = v876; +v876.prototype = v896; +v875.structure = v876; +var v897; +var v898 = v878; +var v899 = v855; +v897 = function ListShape(shape, options) { var self = this, firstInit = !this.isShape; v898.apply(this, arguments); if (firstInit) { + v868(this, \\"defaultValue\\", function () { return []; }); +} if (shape.member) { + v891(this, \\"member\\", function () { return v899.create(shape.member, options); }); +} if (this.flattened) { + var oldName = this.name; + v891(this, \\"name\\", function () { return self.member.name || oldName; }); +} }; +const v900 = {}; +v900.constructor = v897; +v897.prototype = v900; +v875.list = v897; +var v901; +var v902 = v855; +var v903 = v892; +v901 = function MapShape(shape, options) { var firstInit = !this.isShape; v898.apply(this, arguments); if (firstInit) { + v869(this, \\"defaultValue\\", function () { return {}; }); + v869(this, \\"key\\", v890.create({ type: \\"string\\" }, options)); + v869(this, \\"value\\", v890.create({ type: \\"string\\" }, options)); +} if (shape.key) { + v895(this, \\"key\\", function () { return v902.create(shape.key, options); }); +} if (shape.value) { + v903(this, \\"value\\", function () { return v902.create(shape.value, options); }); +} }; +const v904 = {}; +v904.constructor = v901; +v901.prototype = v904; +v875.map = v901; +var v905; +v905 = function BooleanShape() { v890.apply(this, arguments); this.toType = function (value) { if (typeof value === \\"boolean\\") + return value; if (value === null || value === undefined) + return null; return value === \\"true\\"; }; }; +const v906 = {}; +v906.constructor = v905; +v905.prototype = v906; +v875.boolean = v905; +var v907; +var v908 = v857; +v907 = function TimestampShape(shape) { var self = this; v902.apply(this, arguments); if (shape.timestampFormat) { + v869(this, \\"timestampFormat\\", shape.timestampFormat); +} +else if (self.isTimestampFormatSet && this.timestampFormat) { + v908(this, \\"timestampFormat\\", this.timestampFormat); +} +else if (this.location === \\"header\\") { + v908(this, \\"timestampFormat\\", \\"rfc822\\"); +} +else if (this.location === \\"querystring\\") { + v908(this, \\"timestampFormat\\", \\"iso8601\\"); +} +else if (this.api) { + switch (this.api.protocol) { + case \\"json\\": + case \\"rest-json\\": + v868(this, \\"timestampFormat\\", \\"unixTimestamp\\"); + break; + case \\"rest-xml\\": + case \\"query\\": + case \\"ec2\\": + v869(this, \\"timestampFormat\\", \\"iso8601\\"); + break; + } +} this.toType = function (value) { if (value === null || value === undefined) + return null; if (typeof value.toUTCString === \\"function\\") + return value; return typeof value === \\"string\\" || typeof value === \\"number\\" ? v73.parseTimestamp(value) : null; }; this.toWireFormat = function (value) { return v73.format(value, self.timestampFormat); }; }; +const v909 = {}; +v909.constructor = v907; +v907.prototype = v909; +v875.timestamp = v907; +var v910; +const v912 = Number.parseFloat; +var v911 = v912; +v910 = function FloatShape() { v902.apply(this, arguments); this.toType = function (value) { if (value === null || value === undefined) + return null; return v911(value); }; this.toWireFormat = this.toType; }; +const v913 = {}; +v913.constructor = v910; +v910.prototype = v913; +v875.float = v910; +var v914; +var v915 = v117; +v914 = function IntegerShape() { v902.apply(this, arguments); this.toType = function (value) { if (value === null || value === undefined) + return null; return v915(value, 10); }; this.toWireFormat = this.toType; }; +const v916 = {}; +v916.constructor = v914; +v914.prototype = v916; +v875.integer = v914; +var v917; +var v918 = v163; +var v919 = v163; +v917 = function StringShape() { v890.apply(this, arguments); var nullLessProtocols = [\\"rest-xml\\", \\"query\\", \\"ec2\\"]; this.toType = function (value) { value = this.api && nullLessProtocols.indexOf(this.api.protocol) > -1 ? value || \\"\\" : value; if (this.isJsonValue) { + return v918.parse(value); +} return value && typeof value.toString === \\"function\\" ? value.toString() : value; }; this.toWireFormat = function (value) { return this.isJsonValue ? v919.stringify(value) : value; }; }; +const v920 = {}; +v920.constructor = v917; +v917.prototype = v920; +v875.string = v917; +var v921; +var v923; +var v924 = v3; +var v925 = v3; +v923 = function BinaryShape() { v890.apply(this, arguments); this.toType = function (value) { var buf = v37.decode(value); if (this.isSensitive && v924.isNode() && typeof v925.Buffer.alloc === \\"function\\") { + var secureBuf = v925.Buffer.alloc(buf.length, buf); + buf.fill(0); + buf = secureBuf; +} return buf; }; this.toWireFormat = v37.encode; }; +const v926 = {}; +v926.constructor = v923; +v923.prototype = v926; +var v922 = v923; +v921 = function Base64Shape() { v922.apply(this, arguments); }; +const v927 = {}; +v927.constructor = v921; +v921.prototype = v927; +v875.base64 = v921; +v875.binary = v923; +v855.types = v875; +var v928; +var v929 = v40; +v928 = function resolve(shape, options) { if (shape.shape) { + var refShape = options.api.shapes[shape.shape]; + if (!refShape) { + throw new v929(\\"Cannot find shape reference: \\" + shape.shape); + } + return refShape; +} +else { + return null; +} }; +const v930 = {}; +v930.constructor = v928; +v928.prototype = v930; +v855.resolve = v928; +var v931; +var v932 = v31; +var v933 = v40; +v931 = function create(shape, options, memberName) { if (shape.isShape) + return shape; var refShape = v902.resolve(shape, options); if (refShape) { + var filteredKeys = v932.keys(shape); + if (!options.documentation) { + filteredKeys = filteredKeys.filter(function (name) { return !name.match(/documentation/); }); + } + var InlineShape = function () { refShape.constructor.call(this, shape, options, memberName); }; + InlineShape.prototype = refShape; + return new InlineShape(); +} +else { + if (!shape.type) { + if (shape.members) + shape.type = \\"structure\\"; + else if (shape.member) + shape.type = \\"list\\"; + else if (shape.key) + shape.type = \\"map\\"; + else + shape.type = \\"string\\"; + } + var origType = shape.type; + if (v874[shape.type]) { + shape.type = v874[shape.type]; + } + if (v875[shape.type]) { + return new v875[shape.type](shape, options, memberName); + } + else { + throw new v933(\\"Unrecognized shape type: \\" + origType); + } +} }; +const v934 = {}; +v934.constructor = v931; +v931.prototype = v934; +v855.create = v931; +const v935 = {}; +v935.StructureShape = v876; +v935.ListShape = v897; +v935.MapShape = v901; +v935.StringShape = v917; +v935.BooleanShape = v905; +v935.Base64Shape = v921; +v855.shapes = v935; +var v854 = v855; +var v936 = v3; +const v937 = {}; +var v938; +v938 = function XmlBuilder() { }; +const v939 = {}; +v939.constructor = v938; +var v940; +var v942; +v942 = function XmlNode(name, children) { if (children === void 0) { + children = []; +} this.name = name; this.children = children; this.attributes = {}; }; +const v943 = {}; +v943.constructor = v942; +var v944; +v944 = function (name, value) { this.attributes[name] = value; return this; }; +const v945 = {}; +v945.constructor = v944; +v944.prototype = v945; +v943.addAttribute = v944; +var v946; +v946 = function (child) { this.children.push(child); return this; }; +const v947 = {}; +v947.constructor = v946; +v946.prototype = v947; +v943.addChildNode = v946; +var v948; +v948 = function (name) { delete this.attributes[name]; return this; }; +const v949 = {}; +v949.constructor = v948; +v948.prototype = v949; +v943.removeAttribute = v948; +var v950; +var v951 = v282; +var v952 = v31; +var v954; +v954 = function escapeAttribute(value) { return value.replace(/&/g, \\"&\\").replace(/'/g, \\"'\\").replace(//g, \\">\\").replace(/\\"/g, \\""\\"); }; +const v955 = {}; +v955.constructor = v954; +v954.prototype = v955; +var v953 = v954; +v950 = function () { var hasChildren = v951(this.children.length); var xmlText = \\"<\\" + this.name; var attributes = this.attributes; for (var i = 0, attributeNames = v952.keys(attributes); i < attributeNames.length; i++) { + var attributeName = attributeNames[i]; + var attribute = attributes[attributeName]; + if (typeof attribute !== \\"undefined\\" && attribute !== null) { + xmlText += \\" \\" + attributeName + \\"=\\\\\\"\\" + v953(\\"\\" + attribute) + \\"\\\\\\"\\"; + } +} return xmlText += !hasChildren ? \\"/>\\" : \\">\\" + this.children.map(function (c) { return c.toString(); }).join(\\"\\") + \\"\\"; }; +const v956 = {}; +v956.constructor = v950; +v950.prototype = v956; +v943.toString = v950; +v942.prototype = v943; +var v941 = v942; +var v958; +v958 = function applyNamespaces(xml, shape, isRoot) { var uri, prefix = \\"xmlns\\"; if (shape.xmlNamespaceUri) { + uri = shape.xmlNamespaceUri; + if (shape.xmlNamespacePrefix) + prefix += \\":\\" + shape.xmlNamespacePrefix; +} +else if (isRoot && shape.api.xmlNamespaceUri) { + uri = shape.api.xmlNamespaceUri; +} if (uri) + xml.addAttribute(prefix, uri); }; +const v959 = {}; +v959.constructor = v958; +v958.prototype = v959; +var v957 = v958; +var v961; +var v963; +var v964 = v3; +var v965 = v961; +var v966 = v942; +var v967 = v958; +var v968 = v961; +v963 = function serializeStructure(xml, params, shape) { v964.arrayEach(shape.memberNames, function (memberName) { var memberShape = shape.members[memberName]; if (memberShape.location !== \\"body\\") + return; var value = params[memberName]; var name = memberShape.name; if (value !== undefined && value !== null) { + if (memberShape.isXmlAttribute) { + xml.addAttribute(name, value); + } + else if (memberShape.flattened) { + v965(xml, value, memberShape); + } + else { + var element = new v966(name); + xml.addChildNode(element); + v967(element, memberShape); + v968(element, value, memberShape); + } +} }); }; +const v969 = {}; +v969.constructor = v963; +v963.prototype = v969; +var v962 = v963; +var v971; +var v972 = v3; +var v973 = v942; +var v974 = v942; +v971 = function serializeMap(xml, map, shape) { var xmlKey = shape.key.name || \\"key\\"; var xmlValue = shape.value.name || \\"value\\"; v972.each(map, function (key, value) { var entry = new v973(shape.flattened ? shape.name : \\"entry\\"); xml.addChildNode(entry); var entryKey = new v974(xmlKey); var entryValue = new v941(xmlValue); entry.addChildNode(entryKey); entry.addChildNode(entryValue); v960(entryKey, key, shape.key); v960(entryValue, value, shape.value); }); }; +const v975 = {}; +v975.constructor = v971; +v971.prototype = v975; +var v970 = v971; +var v977; +var v978 = v3; +var v979 = v942; +var v980 = v961; +var v981 = v3; +var v982 = v942; +v977 = function serializeList(xml, list, shape) { if (shape.flattened) { + v978.arrayEach(list, function (value) { var name = shape.member.name || shape.name; var element = new v979(name); xml.addChildNode(element); v980(element, value, shape.member); }); +} +else { + v981.arrayEach(list, function (value) { var name = shape.member.name || \\"member\\"; var element = new v982(name); xml.addChildNode(element); v980(element, value, shape.member); }); +} }; +const v983 = {}; +v983.constructor = v977; +v977.prototype = v983; +var v976 = v977; +var v985; +var v987; +v987 = function XmlText(value) { this.value = value; }; +const v988 = {}; +v988.constructor = v987; +var v989; +var v991; +v991 = function escapeElement(value) { return value.replace(/&/g, \\"&\\").replace(//g, \\">\\").replace(/\\\\r/g, \\" \\").replace(/\\\\n/g, \\" \\").replace(/\\\\u0085/g, \\"…\\").replace(/\\\\u2028/, \\"
\\"); }; +const v992 = {}; +v992.constructor = v991; +v991.prototype = v992; +var v990 = v991; +v989 = function () { return v990(\\"\\" + this.value); }; +const v993 = {}; +v993.constructor = v989; +v989.prototype = v993; +v988.toString = v989; +v987.prototype = v988; +var v986 = v987; +v985 = function serializeScalar(xml, value, shape) { xml.addChildNode(new v986(shape.toWireFormat(value))); }; +const v994 = {}; +v994.constructor = v985; +v985.prototype = v994; +var v984 = v985; +v961 = function serialize(xml, value, shape) { switch (shape.type) { + case \\"structure\\": return v962(xml, value, shape); + case \\"map\\": return v970(xml, value, shape); + case \\"list\\": return v976(xml, value, shape); + default: return v984(xml, value, shape); +} }; +const v995 = {}; +v995.constructor = v961; +v961.prototype = v995; +var v960 = v961; +v940 = function (params, shape, rootElement, noEmpty) { var xml = new v941(rootElement); v957(xml, shape, true); v960(xml, params, shape); return xml.children.length > 0 || noEmpty ? xml.toString() : \\"\\"; }; +const v996 = {}; +v996.constructor = v940; +v940.prototype = v996; +v939.toXML = v940; +v938.prototype = v939; +v937.Builder = v938; +var v997; +v997 = function NodeXmlParser() { }; +const v998 = {}; +v998.constructor = v997; +var v999; +const v1001 = Object.create(v646); +const v1002 = {}; +const v1003 = {}; +v1003.explicitCharkey = false; +v1003.trim = true; +v1003.normalize = true; +v1003.normalizeTags = false; +v1003.attrkey = \\"@\\"; +v1003.charkey = \\"#\\"; +v1003.explicitArray = false; +v1003.ignoreAttrs = false; +v1003.mergeAttrs = false; +v1003.explicitRoot = false; +v1003.validator = null; +v1003.xmlns = false; +v1003.explicitChildren = false; +v1003.childkey = \\"@@\\"; +v1003.charsAsChildren = false; +v1003.includeWhiteChars = false; +v1003.async = false; +v1003.strict = true; +v1003.attrNameProcessors = null; +v1003.attrValueProcessors = null; +v1003.tagNameProcessors = null; +v1003.valueProcessors = null; +v1003.emptyTag = \\"\\"; +v1002[\\"0.1\\"] = v1003; +const v1004 = {}; +v1004.explicitCharkey = false; +v1004.trim = false; +v1004.normalize = false; +v1004.normalizeTags = false; +v1004.attrkey = \\"$\\"; +v1004.charkey = \\"_\\"; +v1004.explicitArray = true; +v1004.ignoreAttrs = false; +v1004.mergeAttrs = false; +v1004.explicitRoot = true; +v1004.validator = null; +v1004.xmlns = false; +v1004.explicitChildren = false; +v1004.preserveChildrenOrder = false; +v1004.childkey = \\"$$\\"; +v1004.charsAsChildren = false; +v1004.includeWhiteChars = false; +v1004.async = false; +v1004.strict = true; +v1004.attrNameProcessors = null; +v1004.attrValueProcessors = null; +v1004.tagNameProcessors = null; +v1004.valueProcessors = null; +v1004.rootName = \\"root\\"; +const v1005 = {}; +v1005.version = \\"1.0\\"; +v1005.encoding = \\"UTF-8\\"; +v1005.standalone = true; +v1004.xmldec = v1005; +v1004.doctype = null; +const v1006 = {}; +v1006.pretty = true; +v1006.indent = \\" \\"; +v1006.newline = \\"\\\\n\\"; +v1004.renderOpts = v1006; +v1004.headless = false; +v1004.chunkSize = 10000; +v1004.emptyTag = \\"\\"; +v1004.cdata = false; +v1002[\\"0.2\\"] = v1004; +v1001.defaults = v1002; +const v1007 = Object.create(v646); +var v1008; +v1008 = function (str) { return str.toLowerCase(); }; +const v1009 = {}; +v1009.constructor = v1008; +v1008.prototype = v1009; +v1007.normalize = v1008; +var v1010; +v1010 = function (str) { return str.charAt(0).toLowerCase() + str.slice(1); }; +const v1011 = {}; +v1011.constructor = v1010; +v1010.prototype = v1011; +v1007.firstCharLowerCase = v1010; +var v1012; +var v1013 = /(?!xmlns)^.*:/; +v1012 = function (str) { return str.replace(v1013, \\"\\"); }; +const v1014 = {}; +v1014.constructor = v1012; +v1012.prototype = v1014; +v1007.stripPrefix = v1012; +var v1015; +const v1017 = isNaN; +var v1016 = v1017; +var v1018 = v117; +var v1019 = v912; +v1015 = function (str) { if (!v1016(str)) { + str = str % 1 === 0 ? v1018(str, 10) : v1019(str); +} return str; }; +const v1020 = {}; +v1020.constructor = v1015; +v1015.prototype = v1020; +v1007.parseNumbers = v1015; +var v1021; +v1021 = function (str) { if (/^(?:true|false)$/i.test(str)) { + str = str.toLowerCase() === \\"true\\"; +} return str; }; +const v1022 = {}; +v1022.constructor = v1021; +v1021.prototype = v1022; +v1007.parseBooleans = v1021; +v1001.processors = v1007; +var v1023; +v1023 = function ValidationError(message) { this.message = message; }; +const v1024 = Error.prototype; +const v1025 = Object.create(v1024); +v1025.constructor = v1023; +v1023.prototype = v1025; +v1023.stackTraceLimit = 10; +const v1026 = Error.prepareStackTrace; +v1023.prepareStackTrace = v1026; +v1023.__super__ = v1024; +v1001.ValidationError = v1023; +var v1027; +var v1028 = v1002; +const v1030 = Atomics.constructor.prototype.hasOwnProperty; +var v1029 = v1030; +v1027 = function Builder(opts) { var key, ref, value; this.options = {}; ref = v1028[\\"0.2\\"]; for (key in ref) { + if (!v1029.call(ref, key)) + continue; + value = ref[key]; + this.options[key] = value; +} for (key in opts) { + if (!v1029.call(opts, key)) + continue; + value = opts[key]; + this.options[key] = value; +} }; +const v1031 = {}; +v1031.constructor = v1027; +var v1032; +var v1033 = v31; +var v1034 = v31; +var v1036; +v1036 = function (entry) { return typeof entry === \\"string\\" && (entry.indexOf(\\"&\\") >= 0 || entry.indexOf(\\">\\") >= 0 || entry.indexOf(\\"<\\") >= 0); }; +const v1037 = {}; +v1037.constructor = v1036; +v1036.prototype = v1037; +var v1035 = v1036; +var v1039; +var v1041; +v1041 = function (entry) { return entry.replace(\\"]]>\\", \\"]]]]>\\"); }; +const v1042 = {}; +v1042.constructor = v1041; +v1041.prototype = v1042; +var v1040 = v1041; +v1039 = function (entry) { return \\"\\"; }; +const v1043 = {}; +v1043.constructor = v1039; +v1039.prototype = v1043; +var v1038 = v1039; +var v1044 = v33; +var v1045 = v1030; +var v1046 = v1030; +var v1047 = v1036; +var v1048 = v1036; +const v1050 = Object.create(v646); +var v1051; +var v1052 = v40; +var v1054; +const v1056 = Array.prototype.slice; +var v1055 = v1056; +var v1058; +v1058 = function (val) { return !!val && v113.toString.call(val) === \\"[object Function]\\"; }; +const v1059 = {}; +v1059.constructor = v1058; +v1058.prototype = v1059; +var v1057 = v1058; +var v1060 = v31; +var v1061 = v31; +var v1062 = v1030; +v1054 = function () { var i, key, len, source, sources, target; target = arguments[0], sources = 2 <= arguments.length ? v1055.call(arguments, 1) : []; if (v1057(v1060.assign)) { + v1061.assign.apply(null, arguments); +} +else { + for (i = 0, len = sources.length; i < len; i++) { + source = sources[i]; + if (source != null) { + for (key in source) { + if (!v1062.call(source, key)) + continue; + target[key] = source[key]; + } } - function settle(f, v) { - if (f(v), q.shift(), q.length) - resume(q[0][0], q[0][1]); + } +} return target; }; +const v1063 = {}; +v1063.constructor = v1054; +v1054.prototype = v1063; +var v1053 = v1054; +var v1065; +var v1067; +v1067 = function XMLStringWriter(options) { XMLStringWriter.__super__.constructor.call(this, options); }; +const v1068 = {}; +var v1069; +var v1070 = v1030; +v1069 = function XMLWriterBase(options) { var key, ref, ref1, ref2, ref3, ref4, ref5, ref6, value; options || (options = {}); this.pretty = options.pretty || false; this.allowEmpty = (ref = options.allowEmpty) != null ? ref : false; if (this.pretty) { + this.indent = (ref1 = options.indent) != null ? ref1 : \\" \\"; + this.newline = (ref2 = options.newline) != null ? ref2 : \\"\\\\n\\"; + this.offset = (ref3 = options.offset) != null ? ref3 : 0; + this.dontprettytextnodes = (ref4 = options.dontprettytextnodes) != null ? ref4 : 0; +} +else { + this.indent = \\"\\"; + this.newline = \\"\\"; + this.offset = 0; + this.dontprettytextnodes = 0; +} this.spacebeforeslash = (ref5 = options.spacebeforeslash) != null ? ref5 : \\"\\"; if (this.spacebeforeslash === true) { + this.spacebeforeslash = \\" \\"; +} this.newlinedefault = this.newline; this.prettydefault = this.pretty; ref6 = options.writer || {}; for (key in ref6) { + if (!v1070.call(ref6, key)) + continue; + value = ref6[key]; + this[key] = value; +} }; +v1069.prototype = v1068; +v1068.constructor = v1069; +var v1071; +var v1072 = v1030; +v1071 = function (options) { var key, ref, value; options || (options = {}); if (\\"pretty\\" in options) { + this.pretty = options.pretty; +} if (\\"allowEmpty\\" in options) { + this.allowEmpty = options.allowEmpty; +} if (this.pretty) { + this.indent = \\"indent\\" in options ? options.indent : \\" \\"; + this.newline = \\"newline\\" in options ? options.newline : \\"\\\\n\\"; + this.offset = \\"offset\\" in options ? options.offset : 0; + this.dontprettytextnodes = \\"dontprettytextnodes\\" in options ? options.dontprettytextnodes : 0; +} +else { + this.indent = \\"\\"; + this.newline = \\"\\"; + this.offset = 0; + this.dontprettytextnodes = 0; +} this.spacebeforeslash = \\"spacebeforeslash\\" in options ? options.spacebeforeslash : \\"\\"; if (this.spacebeforeslash === true) { + this.spacebeforeslash = \\" \\"; +} this.newlinedefault = this.newline; this.prettydefault = this.pretty; ref = options.writer || {}; for (key in ref) { + if (!v1072.call(ref, key)) + continue; + value = ref[key]; + this[key] = value; +} return this; }; +const v1073 = {}; +v1073.constructor = v1071; +v1071.prototype = v1073; +v1068.set = v1071; +var v1074; +var v1075 = v33; +v1074 = function (level) { var indent; if (this.pretty) { + indent = (level || 0) + this.offset + 1; + if (indent > 0) { + return new v1075(indent).join(this.indent); + } + else { + return \\"\\"; + } +} +else { + return \\"\\"; +} }; +const v1076 = {}; +v1076.constructor = v1074; +v1074.prototype = v1076; +v1068.space = v1074; +const v1077 = Object.create(v1068); +v1077.constructor = v1067; +var v1078; +var v1080; +var v1082; +v1082 = function (val) { var ref; return !!val && ((ref = typeof val) === \\"function\\" || ref === \\"object\\"); }; +const v1083 = {}; +v1083.constructor = v1082; +v1082.prototype = v1083; +var v1081 = v1082; +v1080 = function XMLDeclaration(parent, version, encoding, standalone) { var ref; XMLDeclaration.__super__.constructor.call(this, parent); if (v1081(version)) { + ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone; +} if (!version) { + version = \\"1.0\\"; +} this.version = this.stringify.xmlVersion(version); if (encoding != null) { + this.encoding = this.stringify.xmlEncoding(encoding); +} if (standalone != null) { + this.standalone = this.stringify.xmlStandalone(standalone); +} }; +const v1084 = {}; +var v1085; +var v1086 = null; +var v1087 = require; +var v1088 = require; +v1085 = function XMLNode(parent) { this.parent = parent; if (this.parent) { + this.options = this.parent.options; + this.stringify = this.parent.stringify; +} this.children = []; if (!v1086) { + XMLElement = v1087(\\"./XMLElement\\"); + XMLCData = v1087(\\"./XMLCData\\"); + XMLComment = v1087(\\"./XMLComment\\"); + XMLDeclaration = v1088(\\"./XMLDeclaration\\"); + XMLDocType = v1088(\\"./XMLDocType\\"); + XMLRaw = v1088(\\"./XMLRaw\\"); + XMLText = v1088(\\"./XMLText\\"); + XMLProcessingInstruction = v1087(\\"./XMLProcessingInstruction\\"); +} }; +v1085.prototype = v1084; +v1084.constructor = v1085; +var v1089; +var v1090 = v1082; +var v1091 = v33; +var v1092 = v1058; +var v1093 = v1082; +var v1094 = v1030; +var v1095 = v1058; +var v1097; +var v1099; +var v1100 = v1058; +var v1101 = v33; +var v1102 = v33; +v1099 = function (val) { if (v1100(v1101.isArray)) { + return v1102.isArray(val); +} +else { + return v113.toString.call(val) === \\"[object Array]\\"; +} }; +const v1103 = {}; +v1103.constructor = v1099; +v1099.prototype = v1103; +var v1098 = v1099; +var v1104 = v1030; +v1097 = function (val) { var key; if (v1098(val)) { + return !val.length; +} +else { + for (key in val) { + if (!v1104.call(val, key)) + continue; + return false; + } + return true; +} }; +const v1105 = {}; +v1105.constructor = v1097; +v1097.prototype = v1105; +var v1096 = v1097; +var v1106 = v1082; +var v1107 = v40; +v1089 = function (name, attributes, text) { var childNode, item, j, k, key, lastChild, len, len1, ref1, val; lastChild = null; if (attributes == null) { + attributes = {}; +} attributes = attributes.valueOf(); if (!v1090(attributes)) { + ref1 = [attributes, text], text = ref1[0], attributes = ref1[1]; +} if (name != null) { + name = name.valueOf(); +} if (v1091.isArray(name)) { + for (j = 0, len = name.length; j < len; j++) { + item = name[j]; + lastChild = this.element(item); + } +} +else if (v1092(name)) { + lastChild = this.element(name.apply()); +} +else if (v1093(name)) { + for (key in name) { + if (!v1094.call(name, key)) + continue; + val = name[key]; + if (v1095(val)) { + val = val.apply(); + } + if ((v1090(val)) && (v1096(val))) { + val = null; + } + if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) { + lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val); + } + else if (!this.options.separateArrayItems && v1091.isArray(val)) { + for (k = 0, len1 = val.length; k < len1; k++) { + item = val[k]; + childNode = {}; + childNode[key] = item; + lastChild = this.element(childNode); + } } - }; - __asyncDelegator = function(o) { - var i, p; - return i = {}, verb(\\"next\\"), verb(\\"throw\\", function(e) { - throw e; - }), verb(\\"return\\"), i[Symbol.iterator] = function() { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function(v) { - return (p = !p) ? { value: __await(o[n](v)), done: n === \\"return\\" } : f ? f(v) : v; - } : f; + else if (v1106(val)) { + lastChild = this.element(key); + lastChild.element(val); } - }; - __asyncValues = function(o) { - if (!Symbol.asyncIterator) - throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === \\"function\\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function(v) { - return new Promise(function(resolve, reject) { - v = o[n](v), settle(resolve, reject, v.done, v.value); - }); - }; + else { + lastChild = this.element(key, val); } - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v4) { - resolve({ value: v4, done: d }); - }, reject); + } +} +else { + if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) { + lastChild = this.text(text); + } + else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) { + lastChild = this.cdata(text); + } + else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) { + lastChild = this.comment(text); + } + else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) { + lastChild = this.raw(text); + } + else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && name.indexOf(this.stringify.convertPIKey) === 0) { + lastChild = this.instruction(name.substr(this.stringify.convertPIKey.length), text); + } + else { + lastChild = this.node(name, attributes, text); + } +} if (lastChild == null) { + throw new v1107(\\"Could not create any elements with: \\" + name); +} return lastChild; }; +const v1108 = {}; +v1108.constructor = v1089; +v1089.prototype = v1108; +v1084.element = v1089; +var v1109; +v1109 = function (name, attributes, text) { var child, i, removed; if (this.isRoot) { + throw new v1107(\\"Cannot insert elements at root level\\"); +} i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.element(name, attributes, text); v71.push.apply(this.parent.children, removed); return child; }; +const v1110 = {}; +v1110.constructor = v1109; +v1109.prototype = v1110; +v1084.insertBefore = v1109; +var v1111; +var v1112 = v40; +v1111 = function (name, attributes, text) { var child, i, removed; if (this.isRoot) { + throw new v1112(\\"Cannot insert elements at root level\\"); +} i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.element(name, attributes, text); v71.push.apply(this.parent.children, removed); return child; }; +const v1113 = {}; +v1113.constructor = v1111; +v1111.prototype = v1113; +v1084.insertAfter = v1111; +var v1114; +var v1115 = v40; +v1114 = function () { var i, ref1; if (this.isRoot) { + throw new v1115(\\"Cannot remove the root element\\"); +} i = this.parent.children.indexOf(this); [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref1 = [])), ref1; return this.parent; }; +const v1116 = {}; +v1116.constructor = v1114; +v1114.prototype = v1116; +v1084.remove = v1114; +var v1117; +v1117 = function (name, attributes, text) { var child, ref1; if (name != null) { + name = name.valueOf(); +} attributes || (attributes = {}); attributes = attributes.valueOf(); if (!v1090(attributes)) { + ref1 = [attributes, text], text = ref1[0], attributes = ref1[1]; +} child = new v1086(this, name, attributes); if (text != null) { + child.text(text); +} this.children.push(child); return child; }; +const v1118 = {}; +v1118.constructor = v1117; +v1117.prototype = v1118; +v1084.node = v1117; +var v1119; +var v1120 = null; +v1119 = function (value) { var child; child = new v1120(this, value); this.children.push(child); return this; }; +const v1121 = {}; +v1121.constructor = v1119; +v1119.prototype = v1121; +v1084.text = v1119; +var v1122; +var v1123 = null; +v1122 = function (value) { var child; child = new v1123(this, value); this.children.push(child); return this; }; +const v1124 = {}; +v1124.constructor = v1122; +v1122.prototype = v1124; +v1084.cdata = v1122; +var v1125; +var v1126 = null; +v1125 = function (value) { var child; child = new v1126(this, value); this.children.push(child); return this; }; +const v1127 = {}; +v1127.constructor = v1125; +v1125.prototype = v1127; +v1084.comment = v1125; +var v1128; +v1128 = function (value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.comment(value); v71.push.apply(this.parent.children, removed); return this; }; +const v1129 = {}; +v1129.constructor = v1128; +v1128.prototype = v1129; +v1084.commentBefore = v1128; +var v1130; +v1130 = function (value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.comment(value); v71.push.apply(this.parent.children, removed); return this; }; +const v1131 = {}; +v1131.constructor = v1130; +v1130.prototype = v1131; +v1084.commentAfter = v1130; +var v1132; +var v1133 = null; +v1132 = function (value) { var child; child = new v1133(this, value); this.children.push(child); return this; }; +const v1134 = {}; +v1134.constructor = v1132; +v1132.prototype = v1134; +v1084.raw = v1132; +var v1135; +var v1136 = v1082; +var v1137 = v1030; +var v1138 = null; +v1135 = function (target, value) { var insTarget, insValue, instruction, j, len; if (target != null) { + target = target.valueOf(); +} if (value != null) { + value = value.valueOf(); +} if (v1091.isArray(target)) { + for (j = 0, len = target.length; j < len; j++) { + insTarget = target[j]; + this.instruction(insTarget); + } +} +else if (v1136(target)) { + for (insTarget in target) { + if (!v1137.call(target, insTarget)) + continue; + insValue = target[insTarget]; + this.instruction(insTarget, insValue); + } +} +else { + if (v1095(value)) { + value = value.apply(); + } + instruction = new v1138(this, target, value); + this.children.push(instruction); +} return this; }; +const v1139 = {}; +v1139.constructor = v1135; +v1135.prototype = v1139; +v1084.instruction = v1135; +var v1140; +v1140 = function (target, value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.instruction(target, value); v71.push.apply(this.parent.children, removed); return this; }; +const v1141 = {}; +v1141.constructor = v1140; +v1140.prototype = v1141; +v1084.instructionBefore = v1140; +var v1142; +v1142 = function (target, value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.instruction(target, value); v71.push.apply(this.parent.children, removed); return this; }; +const v1143 = {}; +v1143.constructor = v1142; +v1142.prototype = v1143; +v1084.instructionAfter = v1142; +var v1144; +var v1145 = null; +v1144 = function (version, encoding, standalone) { var doc, xmldec; doc = this.document(); xmldec = new v1145(doc, version, encoding, standalone); if (doc.children[0] instanceof v1145) { + doc.children[0] = xmldec; +} +else { + doc.children.unshift(xmldec); +} return doc.root() || doc; }; +const v1146 = {}; +v1146.constructor = v1144; +v1144.prototype = v1146; +v1084.declaration = v1144; +var v1147; +var v1148 = null; +v1147 = function (pubID, sysID) { var child, doc, doctype, i, j, k, len, len1, ref1, ref2; doc = this.document(); doctype = new v1148(doc, pubID, sysID); ref1 = doc.children; for (i = j = 0, len = ref1.length; j < len; i = ++j) { + child = ref1[i]; + if (child instanceof v1148) { + doc.children[i] = doctype; + return doctype; + } +} ref2 = doc.children; for (i = k = 0, len1 = ref2.length; k < len1; i = ++k) { + child = ref2[i]; + if (child.isRoot) { + doc.children.splice(i, 0, doctype); + return doctype; + } +} doc.children.push(doctype); return doctype; }; +const v1149 = {}; +v1149.constructor = v1147; +v1147.prototype = v1149; +v1084.doctype = v1147; +var v1150; +v1150 = function () { if (this.isRoot) { + throw new v1107(\\"The root node has no parent. Use doc() if you need to get the document object.\\"); +} return this.parent; }; +const v1151 = {}; +v1151.constructor = v1150; +v1150.prototype = v1151; +v1084.up = v1150; +var v1152; +v1152 = function () { var node; node = this; while (node) { + if (node.isDocument) { + return node.rootObject; + } + else if (node.isRoot) { + return node; + } + else { + node = node.parent; + } +} }; +const v1153 = {}; +v1153.constructor = v1152; +v1152.prototype = v1153; +v1084.root = v1152; +var v1154; +v1154 = function () { var node; node = this; while (node) { + if (node.isDocument) { + return node; + } + else { + node = node.parent; + } +} }; +const v1155 = {}; +v1155.constructor = v1154; +v1154.prototype = v1155; +v1084.document = v1154; +var v1156; +v1156 = function (options) { return this.document().end(options); }; +const v1157 = {}; +v1157.constructor = v1156; +v1156.prototype = v1157; +v1084.end = v1156; +var v1158; +v1158 = function () { var i; i = this.parent.children.indexOf(this); if (i < 1) { + throw new v1107(\\"Already at the first node\\"); +} return this.parent.children[i - 1]; }; +const v1159 = {}; +v1159.constructor = v1158; +v1158.prototype = v1159; +v1084.prev = v1158; +var v1160; +v1160 = function () { var i; i = this.parent.children.indexOf(this); if (i === -1 || i === this.parent.children.length - 1) { + throw new v1107(\\"Already at the last node\\"); +} return this.parent.children[i + 1]; }; +const v1161 = {}; +v1161.constructor = v1160; +v1160.prototype = v1161; +v1084.next = v1160; +var v1162; +v1162 = function (doc) { var clonedRoot; clonedRoot = doc.root().clone(); clonedRoot.parent = this; clonedRoot.isRoot = false; this.children.push(clonedRoot); return this; }; +const v1163 = {}; +v1163.constructor = v1162; +v1162.prototype = v1163; +v1084.importDocument = v1162; +var v1164; +v1164 = function (name, attributes, text) { return this.element(name, attributes, text); }; +const v1165 = {}; +v1165.constructor = v1164; +v1164.prototype = v1165; +v1084.ele = v1164; +var v1166; +v1166 = function (name, attributes, text) { return this.node(name, attributes, text); }; +const v1167 = {}; +v1167.constructor = v1166; +v1166.prototype = v1167; +v1084.nod = v1166; +var v1168; +v1168 = function (value) { return this.text(value); }; +const v1169 = {}; +v1169.constructor = v1168; +v1168.prototype = v1169; +v1084.txt = v1168; +var v1170; +v1170 = function (value) { return this.cdata(value); }; +const v1171 = {}; +v1171.constructor = v1170; +v1170.prototype = v1171; +v1084.dat = v1170; +var v1172; +v1172 = function (value) { return this.comment(value); }; +const v1173 = {}; +v1173.constructor = v1172; +v1172.prototype = v1173; +v1084.com = v1172; +var v1174; +v1174 = function (target, value) { return this.instruction(target, value); }; +const v1175 = {}; +v1175.constructor = v1174; +v1174.prototype = v1175; +v1084.ins = v1174; +var v1176; +v1176 = function () { return this.document(); }; +const v1177 = {}; +v1177.constructor = v1176; +v1176.prototype = v1177; +v1084.doc = v1176; +var v1178; +v1178 = function (version, encoding, standalone) { return this.declaration(version, encoding, standalone); }; +const v1179 = {}; +v1179.constructor = v1178; +v1178.prototype = v1179; +v1084.dec = v1178; +var v1180; +v1180 = function (pubID, sysID) { return this.doctype(pubID, sysID); }; +const v1181 = {}; +v1181.constructor = v1180; +v1180.prototype = v1181; +v1084.dtd = v1180; +var v1182; +v1182 = function (name, attributes, text) { return this.element(name, attributes, text); }; +const v1183 = {}; +v1183.constructor = v1182; +v1182.prototype = v1183; +v1084.e = v1182; +var v1184; +v1184 = function (name, attributes, text) { return this.node(name, attributes, text); }; +const v1185 = {}; +v1185.constructor = v1184; +v1184.prototype = v1185; +v1084.n = v1184; +var v1186; +v1186 = function (value) { return this.text(value); }; +const v1187 = {}; +v1187.constructor = v1186; +v1186.prototype = v1187; +v1084.t = v1186; +var v1188; +v1188 = function (value) { return this.cdata(value); }; +const v1189 = {}; +v1189.constructor = v1188; +v1188.prototype = v1189; +v1084.d = v1188; +var v1190; +v1190 = function (value) { return this.comment(value); }; +const v1191 = {}; +v1191.constructor = v1190; +v1190.prototype = v1191; +v1084.c = v1190; +var v1192; +v1192 = function (value) { return this.raw(value); }; +const v1193 = {}; +v1193.constructor = v1192; +v1192.prototype = v1193; +v1084.r = v1192; +var v1194; +v1194 = function (target, value) { return this.instruction(target, value); }; +const v1195 = {}; +v1195.constructor = v1194; +v1194.prototype = v1195; +v1084.i = v1194; +var v1196; +v1196 = function () { return this.up(); }; +const v1197 = {}; +v1197.constructor = v1196; +v1196.prototype = v1197; +v1084.u = v1196; +var v1198; +v1198 = function (doc) { return this.importDocument(doc); }; +const v1199 = {}; +v1199.constructor = v1198; +v1198.prototype = v1199; +v1084.importXMLBuilder = v1198; +const v1200 = Object.create(v1084); +v1200.constructor = v1080; +var v1201; +v1201 = function (options) { return this.options.writer.set(options).declaration(this); }; +const v1202 = {}; +v1202.constructor = v1201; +v1201.prototype = v1202; +v1200.toString = v1201; +v1080.prototype = v1200; +v1080.__super__ = v1084; +var v1079 = v1080; +var v1204; +var v1205 = v1082; +v1204 = function XMLDocType(parent, pubID, sysID) { var ref, ref1; XMLDocType.__super__.constructor.call(this, parent); this.documentObject = parent; if (v1205(pubID)) { + ref = pubID, pubID = ref.pubID, sysID = ref.sysID; +} if (sysID == null) { + ref1 = [pubID, sysID], sysID = ref1[0], pubID = ref1[1]; +} if (pubID != null) { + this.pubID = this.stringify.dtdPubID(pubID); +} if (sysID != null) { + this.sysID = this.stringify.dtdSysID(sysID); +} }; +const v1206 = Object.create(v1084); +v1206.constructor = v1204; +var v1207; +var v1209; +var v1210 = v40; +var v1211 = v33; +v1209 = function XMLDTDElement(parent, name, value) { XMLDTDElement.__super__.constructor.call(this, parent); if (name == null) { + throw new v1210(\\"Missing DTD element name\\"); +} if (!value) { + value = \\"(#PCDATA)\\"; +} if (v1211.isArray(value)) { + value = \\"(\\" + value.join(\\",\\") + \\")\\"; +} this.name = this.stringify.eleName(name); this.value = this.stringify.dtdElementValue(value); }; +const v1212 = Object.create(v1084); +v1212.constructor = v1209; +var v1213; +v1213 = function (options) { return this.options.writer.set(options).dtdElement(this); }; +const v1214 = {}; +v1214.constructor = v1213; +v1213.prototype = v1214; +v1212.toString = v1213; +v1209.prototype = v1212; +v1209.__super__ = v1084; +var v1208 = v1209; +v1207 = function (name, value) { var child; child = new v1208(this, name, value); this.children.push(child); return this; }; +const v1215 = {}; +v1215.constructor = v1207; +v1207.prototype = v1215; +v1206.element = v1207; +var v1216; +var v1218; +var v1219 = v40; +var v1220 = v40; +var v1221 = v40; +var v1222 = v40; +var v1223 = v40; +v1218 = function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) { XMLDTDAttList.__super__.constructor.call(this, parent); if (elementName == null) { + throw new v1219(\\"Missing DTD element name\\"); +} if (attributeName == null) { + throw new v1219(\\"Missing DTD attribute name\\"); +} if (!attributeType) { + throw new v1220(\\"Missing DTD attribute type\\"); +} if (!defaultValueType) { + throw new v1221(\\"Missing DTD attribute default\\"); +} if (defaultValueType.indexOf(\\"#\\") !== 0) { + defaultValueType = \\"#\\" + defaultValueType; +} if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) { + throw new v1222(\\"Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT\\"); +} if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) { + throw new v1223(\\"Default value only applies to #FIXED or #DEFAULT\\"); +} this.elementName = this.stringify.eleName(elementName); this.attributeName = this.stringify.attName(attributeName); this.attributeType = this.stringify.dtdAttType(attributeType); this.defaultValue = this.stringify.dtdAttDefault(defaultValue); this.defaultValueType = defaultValueType; }; +const v1224 = Object.create(v1084); +v1224.constructor = v1218; +var v1225; +v1225 = function (options) { return this.options.writer.set(options).dtdAttList(this); }; +const v1226 = {}; +v1226.constructor = v1225; +v1225.prototype = v1226; +v1224.toString = v1225; +v1218.prototype = v1224; +v1218.__super__ = v1084; +var v1217 = v1218; +v1216 = function (elementName, attributeName, attributeType, defaultValueType, defaultValue) { var child; child = new v1217(this, elementName, attributeName, attributeType, defaultValueType, defaultValue); this.children.push(child); return this; }; +const v1227 = {}; +v1227.constructor = v1216; +v1216.prototype = v1227; +v1206.attList = v1216; +var v1228; +var v1230; +var v1231 = v40; +var v1232 = v1082; +var v1233 = v40; +var v1234 = v40; +var v1235 = v40; +v1230 = function XMLDTDEntity(parent, pe, name, value) { XMLDTDEntity.__super__.constructor.call(this, parent); if (name == null) { + throw new v1231(\\"Missing entity name\\"); +} if (value == null) { + throw new v1231(\\"Missing entity value\\"); +} this.pe = !!pe; this.name = this.stringify.eleName(name); if (!v1232(value)) { + this.value = this.stringify.dtdEntityValue(value); +} +else { + if (!value.pubID && !value.sysID) { + throw new v1233(\\"Public and/or system identifiers are required for an external entity\\"); + } + if (value.pubID && !value.sysID) { + throw new v1234(\\"System identifier is required for a public external entity\\"); + } + if (value.pubID != null) { + this.pubID = this.stringify.dtdPubID(value.pubID); + } + if (value.sysID != null) { + this.sysID = this.stringify.dtdSysID(value.sysID); + } + if (value.nData != null) { + this.nData = this.stringify.dtdNData(value.nData); + } + if (this.pe && this.nData) { + throw new v1235(\\"Notation declaration is not allowed in a parameter entity\\"); + } +} }; +const v1236 = Object.create(v1084); +v1236.constructor = v1230; +var v1237; +v1237 = function (options) { return this.options.writer.set(options).dtdEntity(this); }; +const v1238 = {}; +v1238.constructor = v1237; +v1237.prototype = v1238; +v1236.toString = v1237; +v1230.prototype = v1236; +v1230.__super__ = v1084; +var v1229 = v1230; +v1228 = function (name, value) { var child; child = new v1229(this, false, name, value); this.children.push(child); return this; }; +const v1239 = {}; +v1239.constructor = v1228; +v1228.prototype = v1239; +v1206.entity = v1228; +var v1240; +var v1241 = v1230; +v1240 = function (name, value) { var child; child = new v1241(this, true, name, value); this.children.push(child); return this; }; +const v1242 = {}; +v1242.constructor = v1240; +v1240.prototype = v1242; +v1206.pEntity = v1240; +var v1243; +var v1245; +var v1246 = v40; +v1245 = function XMLDTDNotation(parent, name, value) { XMLDTDNotation.__super__.constructor.call(this, parent); if (name == null) { + throw new v1246(\\"Missing notation name\\"); +} if (!value.pubID && !value.sysID) { + throw new v1246(\\"Public or system identifiers are required for an external entity\\"); +} this.name = this.stringify.eleName(name); if (value.pubID != null) { + this.pubID = this.stringify.dtdPubID(value.pubID); +} if (value.sysID != null) { + this.sysID = this.stringify.dtdSysID(value.sysID); +} }; +const v1247 = Object.create(v1084); +v1247.constructor = v1245; +var v1248; +v1248 = function (options) { return this.options.writer.set(options).dtdNotation(this); }; +const v1249 = {}; +v1249.constructor = v1248; +v1248.prototype = v1249; +v1247.toString = v1248; +v1245.prototype = v1247; +v1245.__super__ = v1084; +var v1244 = v1245; +v1243 = function (name, value) { var child; child = new v1244(this, name, value); this.children.push(child); return this; }; +const v1250 = {}; +v1250.constructor = v1243; +v1243.prototype = v1250; +v1206.notation = v1243; +var v1251; +v1251 = function (options) { return this.options.writer.set(options).docType(this); }; +const v1252 = {}; +v1252.constructor = v1251; +v1251.prototype = v1252; +v1206.toString = v1251; +var v1253; +v1253 = function (name, value) { return this.element(name, value); }; +const v1254 = {}; +v1254.constructor = v1253; +v1253.prototype = v1254; +v1206.ele = v1253; +var v1255; +v1255 = function (elementName, attributeName, attributeType, defaultValueType, defaultValue) { return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue); }; +const v1256 = {}; +v1256.constructor = v1255; +v1255.prototype = v1256; +v1206.att = v1255; +var v1257; +v1257 = function (name, value) { return this.entity(name, value); }; +const v1258 = {}; +v1258.constructor = v1257; +v1257.prototype = v1258; +v1206.ent = v1257; +var v1259; +v1259 = function (name, value) { return this.pEntity(name, value); }; +const v1260 = {}; +v1260.constructor = v1259; +v1259.prototype = v1260; +v1206.pent = v1259; +var v1261; +v1261 = function (name, value) { return this.notation(name, value); }; +const v1262 = {}; +v1262.constructor = v1261; +v1261.prototype = v1262; +v1206.not = v1261; +var v1263; +v1263 = function () { return this.root() || this.documentObject; }; +const v1264 = {}; +v1264.constructor = v1263; +v1263.prototype = v1264; +v1206.up = v1263; +v1204.prototype = v1206; +v1204.__super__ = v1084; +var v1203 = v1204; +var v1266; +var v1267 = v40; +v1266 = function XMLComment(parent, text) { XMLComment.__super__.constructor.call(this, parent); if (text == null) { + throw new v1267(\\"Missing comment text\\"); +} this.text = this.stringify.comment(text); }; +const v1268 = Object.create(v1084); +v1268.constructor = v1266; +var v1269; +var v1270 = v31; +v1269 = function () { return v1270.create(this); }; +const v1271 = {}; +v1271.constructor = v1269; +v1269.prototype = v1271; +v1268.clone = v1269; +var v1272; +v1272 = function (options) { return this.options.writer.set(options).comment(this); }; +const v1273 = {}; +v1273.constructor = v1272; +v1272.prototype = v1273; +v1268.toString = v1272; +v1266.prototype = v1268; +v1266.__super__ = v1084; +var v1265 = v1266; +var v1275; +var v1276 = v40; +v1275 = function XMLProcessingInstruction(parent, target, value) { XMLProcessingInstruction.__super__.constructor.call(this, parent); if (target == null) { + throw new v1276(\\"Missing instruction target\\"); +} this.target = this.stringify.insTarget(target); if (value) { + this.value = this.stringify.insValue(value); +} }; +const v1277 = Object.create(v1084); +v1277.constructor = v1275; +var v1278; +var v1279 = v31; +v1278 = function () { return v1279.create(this); }; +const v1280 = {}; +v1280.constructor = v1278; +v1278.prototype = v1280; +v1277.clone = v1278; +var v1281; +v1281 = function (options) { return this.options.writer.set(options).processingInstruction(this); }; +const v1282 = {}; +v1282.constructor = v1281; +v1281.prototype = v1282; +v1277.toString = v1281; +v1275.prototype = v1277; +v1275.__super__ = v1084; +var v1274 = v1275; +v1078 = function (doc) { var child, i, len, r, ref; this.textispresent = false; r = \\"\\"; ref = doc.children; for (i = 0, len = ref.length; i < len; i++) { + child = ref[i]; + r += (function () { switch (false) { + case !(child instanceof v1079): return this.declaration(child); + case !(child instanceof v1203): return this.docType(child); + case !(child instanceof v1265): return this.comment(child); + case !(child instanceof v1274): return this.processingInstruction(child); + default: return this.element(child, 0); + } }).call(this); +} if (this.pretty && r.slice(-this.newline.length) === this.newline) { + r = r.slice(0, -this.newline.length); +} return r; }; +const v1283 = {}; +v1283.constructor = v1078; +v1078.prototype = v1283; +v1077.document = v1078; +var v1284; +v1284 = function (att) { return \\" \\" + att.name + \\"=\\\\\\"\\" + att.value + \\"\\\\\\"\\"; }; +const v1285 = {}; +v1285.constructor = v1284; +v1284.prototype = v1285; +v1077.attribute = v1284; +var v1286; +v1286 = function (node, level) { return this.space(level) + \\"\\" + this.newline; }; +const v1287 = {}; +v1287.constructor = v1286; +v1286.prototype = v1287; +v1077.cdata = v1286; +var v1288; +v1288 = function (node, level) { return this.space(level) + \\"\\" + this.newline; }; +const v1289 = {}; +v1289.constructor = v1288; +v1288.prototype = v1289; +v1077.comment = v1288; +var v1290; +v1290 = function (node, level) { var r; r = this.space(level); r += \\"\\"; r += this.newline; return r; }; +const v1291 = {}; +v1291.constructor = v1290; +v1290.prototype = v1291; +v1077.declaration = v1290; +var v1292; +var v1293 = v1218; +var v1294 = v1209; +var v1295 = v1230; +var v1296 = v1245; +var v1298; +var v1299 = v40; +v1298 = function XMLCData(parent, text) { XMLCData.__super__.constructor.call(this, parent); if (text == null) { + throw new v1299(\\"Missing CDATA text\\"); +} this.text = this.stringify.cdata(text); }; +const v1300 = Object.create(v1084); +v1300.constructor = v1298; +var v1301; +var v1302 = v31; +v1301 = function () { return v1302.create(this); }; +const v1303 = {}; +v1303.constructor = v1301; +v1301.prototype = v1303; +v1300.clone = v1301; +var v1304; +v1304 = function (options) { return this.options.writer.set(options).cdata(this); }; +const v1305 = {}; +v1305.constructor = v1304; +v1304.prototype = v1305; +v1300.toString = v1304; +v1298.prototype = v1300; +v1298.__super__ = v1084; +var v1297 = v1298; +var v1306 = v1266; +var v1307 = v1275; +var v1308 = v40; +v1292 = function (node, level) { var child, i, len, r, ref; level || (level = 0); r = this.space(level); r += \\" 0) { + r += \\" [\\"; + r += this.newline; + ref = node.children; + for (i = 0, len = ref.length; i < len; i++) { + child = ref[i]; + r += (function () { switch (false) { + case !(child instanceof v1293): return this.dtdAttList(child, level + 1); + case !(child instanceof v1294): return this.dtdElement(child, level + 1); + case !(child instanceof v1295): return this.dtdEntity(child, level + 1); + case !(child instanceof v1296): return this.dtdNotation(child, level + 1); + case !(child instanceof v1297): return this.cdata(child, level + 1); + case !(child instanceof v1306): return this.comment(child, level + 1); + case !(child instanceof v1307): return this.processingInstruction(child, level + 1); + default: throw new v1308(\\"Unknown DTD node type: \\" + child.constructor.name); + } }).call(this); + } + r += \\"]\\"; +} r += this.spacebeforeslash + \\">\\"; r += this.newline; return r; }; +const v1309 = {}; +v1309.constructor = v1292; +v1292.prototype = v1309; +v1077.docType = v1292; +var v1310; +var v1311 = v1030; +var v1312 = v1298; +var v1313 = v1266; +var v1315; +var v1316 = v40; +v1315 = function XMLElement(parent, name, attributes) { XMLElement.__super__.constructor.call(this, parent); if (name == null) { + throw new v1316(\\"Missing element name\\"); +} this.name = this.stringify.eleName(name); this.attributes = {}; if (attributes != null) { + this.attribute(attributes); +} if (parent.isDocument) { + this.isRoot = true; + this.documentObject = parent; + parent.rootObject = this; +} }; +const v1317 = Object.create(v1084); +v1317.constructor = v1315; +var v1318; +var v1319 = v31; +var v1320 = v1030; +v1318 = function () { var att, attName, clonedSelf, ref1; clonedSelf = v1319.create(this); if (clonedSelf.isRoot) { + clonedSelf.documentObject = null; +} clonedSelf.attributes = {}; ref1 = this.attributes; for (attName in ref1) { + if (!v1320.call(ref1, attName)) + continue; + att = ref1[attName]; + clonedSelf.attributes[attName] = att.clone(); +} clonedSelf.children = []; this.children.forEach(function (child) { var clonedChild; clonedChild = child.clone(); clonedChild.parent = clonedSelf; return clonedSelf.children.push(clonedChild); }); return clonedSelf; }; +const v1321 = {}; +v1321.constructor = v1318; +v1318.prototype = v1321; +v1317.clone = v1318; +var v1322; +var v1323 = v1082; +var v1324 = v1030; +var v1325 = v1058; +var v1327; +var v1328 = v40; +var v1329 = v40; +v1327 = function XMLAttribute(parent, name, value) { this.options = parent.options; this.stringify = parent.stringify; if (name == null) { + throw new v1328(\\"Missing attribute name of element \\" + parent.name); +} if (value == null) { + throw new v1329(\\"Missing attribute value for attribute \\" + name + \\" of element \\" + parent.name); +} this.name = this.stringify.attName(name); this.value = this.stringify.attValue(value); }; +const v1330 = {}; +v1330.constructor = v1327; +var v1331; +var v1332 = v31; +v1331 = function () { return v1332.create(this); }; +const v1333 = {}; +v1333.constructor = v1331; +v1331.prototype = v1333; +v1330.clone = v1331; +var v1334; +v1334 = function (options) { return this.options.writer.set(options).attribute(this); }; +const v1335 = {}; +v1335.constructor = v1334; +v1334.prototype = v1335; +v1330.toString = v1334; +v1327.prototype = v1330; +var v1326 = v1327; +v1322 = function (name, value) { var attName, attValue; if (name != null) { + name = name.valueOf(); +} if (v1323(name)) { + for (attName in name) { + if (!v1324.call(name, attName)) + continue; + attValue = name[attName]; + this.attribute(attName, attValue); + } +} +else { + if (v1325(value)) { + value = value.apply(); + } + if (!this.options.skipNullAttributes || (value != null)) { + this.attributes[name] = new v1326(this, name, value); + } +} return this; }; +const v1336 = {}; +v1336.constructor = v1322; +v1322.prototype = v1336; +v1317.attribute = v1322; +var v1337; +var v1338 = v40; +var v1339 = v33; +v1337 = function (name) { var attName, i, len; if (name == null) { + throw new v1338(\\"Missing attribute name\\"); +} name = name.valueOf(); if (v1339.isArray(name)) { + for (i = 0, len = name.length; i < len; i++) { + attName = name[i]; + delete this.attributes[attName]; + } +} +else { + delete this.attributes[name]; +} return this; }; +const v1340 = {}; +v1340.constructor = v1337; +v1337.prototype = v1340; +v1317.removeAttribute = v1337; +var v1341; +v1341 = function (options) { return this.options.writer.set(options).element(this); }; +const v1342 = {}; +v1342.constructor = v1341; +v1341.prototype = v1342; +v1317.toString = v1341; +var v1343; +v1343 = function (name, value) { return this.attribute(name, value); }; +const v1344 = {}; +v1344.constructor = v1343; +v1343.prototype = v1344; +v1317.att = v1343; +var v1345; +v1345 = function (name, value) { return this.attribute(name, value); }; +const v1346 = {}; +v1346.constructor = v1345; +v1345.prototype = v1346; +v1317.a = v1345; +v1315.prototype = v1317; +v1315.__super__ = v1084; +var v1314 = v1315; +var v1348; +var v1349 = v40; +v1348 = function XMLRaw(parent, text) { XMLRaw.__super__.constructor.call(this, parent); if (text == null) { + throw new v1349(\\"Missing raw text\\"); +} this.value = this.stringify.raw(text); }; +const v1350 = Object.create(v1084); +v1350.constructor = v1348; +var v1351; +var v1352 = v31; +v1351 = function () { return v1352.create(this); }; +const v1353 = {}; +v1353.constructor = v1351; +v1351.prototype = v1353; +v1350.clone = v1351; +var v1354; +v1354 = function (options) { return this.options.writer.set(options).raw(this); }; +const v1355 = {}; +v1355.constructor = v1354; +v1354.prototype = v1355; +v1350.toString = v1354; +v1348.prototype = v1350; +v1348.__super__ = v1084; +var v1347 = v1348; +var v1357; +var v1358 = v40; +v1357 = function XMLText(parent, text) { XMLText.__super__.constructor.call(this, parent); if (text == null) { + throw new v1358(\\"Missing element text\\"); +} this.value = this.stringify.eleText(text); }; +const v1359 = Object.create(v1084); +v1359.constructor = v1357; +var v1360; +var v1361 = v31; +v1360 = function () { return v1361.create(this); }; +const v1362 = {}; +v1362.constructor = v1360; +v1360.prototype = v1362; +v1359.clone = v1360; +var v1363; +v1363 = function (options) { return this.options.writer.set(options).text(this); }; +const v1364 = {}; +v1364.constructor = v1363; +v1363.prototype = v1364; +v1359.toString = v1363; +v1357.prototype = v1359; +v1357.__super__ = v1084; +var v1356 = v1357; +var v1365 = v1275; +var v1366 = v40; +v1310 = function (node, level) { var att, child, i, j, len, len1, name, r, ref, ref1, ref2, space, textispresentwasset; level || (level = 0); textispresentwasset = false; if (this.textispresent) { + this.newline = \\"\\"; + this.pretty = false; +} +else { + this.newline = this.newlinedefault; + this.pretty = this.prettydefault; +} space = this.space(level); r = \\"\\"; r += space + \\"<\\" + node.name; ref = node.attributes; for (name in ref) { + if (!v1311.call(ref, name)) + continue; + att = ref[name]; + r += this.attribute(att); +} if (node.children.length === 0 || node.children.every(function (e) { return e.value === \\"\\"; })) { + if (this.allowEmpty) { + r += \\">\\" + this.newline; + } + else { + r += this.spacebeforeslash + \\"/>\\" + this.newline; + } +} +else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) { + r += \\">\\"; + r += node.children[0].value; + r += \\"\\" + this.newline; +} +else { + if (this.dontprettytextnodes) { + ref1 = node.children; + for (i = 0, len = ref1.length; i < len; i++) { + child = ref1[i]; + if (child.value != null) { + this.textispresent++; + textispresentwasset = true; + break; + } } - }; - __makeTemplateObject = function(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, \\"raw\\", { value: raw }); - } else { - cooked.raw = raw; + } + if (this.textispresent) { + this.newline = \\"\\"; + this.pretty = false; + space = this.space(level); + } + r += \\">\\" + this.newline; + ref2 = node.children; + for (j = 0, len1 = ref2.length; j < len1; j++) { + child = ref2[j]; + r += (function () { switch (false) { + case !(child instanceof v1312): return this.cdata(child, level + 1); + case !(child instanceof v1313): return this.comment(child, level + 1); + case !(child instanceof v1314): return this.element(child, level + 1); + case !(child instanceof v1347): return this.raw(child, level + 1); + case !(child instanceof v1356): return this.text(child, level + 1); + case !(child instanceof v1365): return this.processingInstruction(child, level + 1); + default: throw new v1366(\\"Unknown XML node type: \\" + child.constructor.name); + } }).call(this); + } + if (textispresentwasset) { + this.textispresent--; + } + if (!this.textispresent) { + this.newline = this.newlinedefault; + this.pretty = this.prettydefault; + } + r += space + \\"\\" + this.newline; +} return r; }; +const v1367 = {}; +v1367.constructor = v1310; +v1310.prototype = v1367; +v1077.element = v1310; +var v1368; +v1368 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; +const v1369 = {}; +v1369.constructor = v1368; +v1368.prototype = v1369; +v1077.processingInstruction = v1368; +var v1370; +v1370 = function (node, level) { return this.space(level) + node.value + this.newline; }; +const v1371 = {}; +v1371.constructor = v1370; +v1370.prototype = v1371; +v1077.raw = v1370; +var v1372; +v1372 = function (node, level) { return this.space(level) + node.value + this.newline; }; +const v1373 = {}; +v1373.constructor = v1372; +v1372.prototype = v1373; +v1077.text = v1372; +var v1374; +v1374 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; +const v1375 = {}; +v1375.constructor = v1374; +v1374.prototype = v1375; +v1077.dtdAttList = v1374; +var v1376; +v1376 = function (node, level) { return this.space(level) + \\"\\" + this.newline; }; +const v1377 = {}; +v1377.constructor = v1376; +v1376.prototype = v1377; +v1077.dtdElement = v1376; +var v1378; +v1378 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; +const v1379 = {}; +v1379.constructor = v1378; +v1378.prototype = v1379; +v1077.dtdEntity = v1378; +var v1380; +v1380 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; +const v1381 = {}; +v1381.constructor = v1380; +v1380.prototype = v1381; +v1077.dtdNotation = v1380; +var v1382; +var v1383 = v1315; +var v1384 = v1030; +v1382 = function (node, level) { var att, name, r, ref; level || (level = 0); if (node instanceof v1383) { + r = this.space(level) + \\"<\\" + node.name; + ref = node.attributes; + for (name in ref) { + if (!v1384.call(ref, name)) + continue; + att = ref[name]; + r += this.attribute(att); + } + r += (node.children ? \\">\\" : \\"/>\\") + this.newline; + return r; +} +else { + r = this.space(level) + \\"\\") + this.newline; + return r; +} }; +const v1385 = {}; +v1385.constructor = v1382; +v1382.prototype = v1385; +v1077.openNode = v1382; +var v1386; +var v1387 = v1204; +v1386 = function (node, level) { level || (level = 0); switch (false) { + case !(node instanceof v1383): return this.space(level) + \\"\\" + this.newline; + case !(node instanceof v1387): return this.space(level) + \\"]>\\" + this.newline; +} }; +const v1388 = {}; +v1388.constructor = v1386; +v1386.prototype = v1388; +v1077.closeNode = v1386; +v1067.prototype = v1077; +v1067.__super__ = v1068; +var v1066 = v1067; +var v1390; +var v1392; +v1392 = function (fn, me) { return function () { return fn.apply(me, arguments); }; }; +const v1393 = {}; +v1393.constructor = v1392; +v1392.prototype = v1393; +var v1391 = v1392; +var v1394 = v1030; +v1390 = function XMLStringifier(options) { this.assertLegalChar = v1391(this.assertLegalChar, this); var key, ref, value; options || (options = {}); this.noDoubleEncoding = options.noDoubleEncoding; ref = options.stringify || {}; for (key in ref) { + if (!v1394.call(ref, key)) + continue; + value = ref[key]; + this[key] = value; +} }; +const v1395 = {}; +v1395.constructor = v1390; +var v1396; +v1396 = function (val) { val = \\"\\" + val || \\"\\"; return this.assertLegalChar(val); }; +const v1397 = {}; +v1397.constructor = v1396; +v1396.prototype = v1397; +v1395.eleName = v1396; +var v1398; +v1398 = function (val) { val = \\"\\" + val || \\"\\"; return this.assertLegalChar(this.elEscape(val)); }; +const v1399 = {}; +v1399.constructor = v1398; +v1398.prototype = v1399; +v1395.eleText = v1398; +var v1400; +v1400 = function (val) { val = \\"\\" + val || \\"\\"; val = val.replace(\\"]]>\\", \\"]]]]>\\"); return this.assertLegalChar(val); }; +const v1401 = {}; +v1401.constructor = v1400; +v1400.prototype = v1401; +v1395.cdata = v1400; +var v1402; +var v1403 = v40; +v1402 = function (val) { val = \\"\\" + val || \\"\\"; if (val.match(/--/)) { + throw new v1403(\\"Comment text cannot contain double-hypen: \\" + val); +} return this.assertLegalChar(val); }; +const v1404 = {}; +v1404.constructor = v1402; +v1402.prototype = v1404; +v1395.comment = v1402; +var v1405; +v1405 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1406 = {}; +v1406.constructor = v1405; +v1405.prototype = v1406; +v1395.raw = v1405; +var v1407; +v1407 = function (val) { return val = \\"\\" + val || \\"\\"; }; +const v1408 = {}; +v1408.constructor = v1407; +v1407.prototype = v1408; +v1395.attName = v1407; +var v1409; +v1409 = function (val) { val = \\"\\" + val || \\"\\"; return this.attEscape(val); }; +const v1410 = {}; +v1410.constructor = v1409; +v1409.prototype = v1410; +v1395.attValue = v1409; +var v1411; +v1411 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1412 = {}; +v1412.constructor = v1411; +v1411.prototype = v1412; +v1395.insTarget = v1411; +var v1413; +v1413 = function (val) { val = \\"\\" + val || \\"\\"; if (val.match(/\\\\?>/)) { + throw new v1403(\\"Invalid processing instruction value: \\" + val); +} return val; }; +const v1414 = {}; +v1414.constructor = v1413; +v1413.prototype = v1414; +v1395.insValue = v1413; +var v1415; +var v1416 = v40; +v1415 = function (val) { val = \\"\\" + val || \\"\\"; if (!val.match(/1\\\\.[0-9]+/)) { + throw new v1416(\\"Invalid version number: \\" + val); +} return val; }; +const v1417 = {}; +v1417.constructor = v1415; +v1415.prototype = v1417; +v1395.xmlVersion = v1415; +var v1418; +var v1419 = v40; +v1418 = function (val) { val = \\"\\" + val || \\"\\"; if (!val.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)) { + throw new v1419(\\"Invalid encoding: \\" + val); +} return val; }; +const v1420 = {}; +v1420.constructor = v1418; +v1418.prototype = v1420; +v1395.xmlEncoding = v1418; +var v1421; +v1421 = function (val) { if (val) { + return \\"yes\\"; +} +else { + return \\"no\\"; +} }; +const v1422 = {}; +v1422.constructor = v1421; +v1421.prototype = v1422; +v1395.xmlStandalone = v1421; +var v1423; +v1423 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1424 = {}; +v1424.constructor = v1423; +v1423.prototype = v1424; +v1395.dtdPubID = v1423; +var v1425; +v1425 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1426 = {}; +v1426.constructor = v1425; +v1425.prototype = v1426; +v1395.dtdSysID = v1425; +var v1427; +v1427 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1428 = {}; +v1428.constructor = v1427; +v1427.prototype = v1428; +v1395.dtdElementValue = v1427; +var v1429; +v1429 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1430 = {}; +v1430.constructor = v1429; +v1429.prototype = v1430; +v1395.dtdAttType = v1429; +var v1431; +v1431 = function (val) { if (val != null) { + return \\"\\" + val || \\"\\"; +} +else { + return val; +} }; +const v1432 = {}; +v1432.constructor = v1431; +v1431.prototype = v1432; +v1395.dtdAttDefault = v1431; +var v1433; +v1433 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1434 = {}; +v1434.constructor = v1433; +v1433.prototype = v1434; +v1395.dtdEntityValue = v1433; +var v1435; +v1435 = function (val) { return \\"\\" + val || \\"\\"; }; +const v1436 = {}; +v1436.constructor = v1435; +v1435.prototype = v1436; +v1395.dtdNData = v1435; +v1395.convertAttKey = \\"@\\"; +v1395.convertPIKey = \\"?\\"; +v1395.convertTextKey = \\"#text\\"; +v1395.convertCDataKey = \\"#cdata\\"; +v1395.convertCommentKey = \\"#comment\\"; +v1395.convertRawKey = \\"#raw\\"; +var v1437; +var v1438 = v40; +v1437 = function (str) { var res; res = str.match(/[\\\\0\\\\uFFFE\\\\uFFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF]/); if (res) { + throw new v1438(\\"Invalid character in string: \\" + str + \\" at index \\" + res.index); +} return str; }; +const v1439 = {}; +v1439.constructor = v1437; +v1437.prototype = v1439; +v1395.assertLegalChar = v1437; +var v1440; +v1440 = function (str) { var ampregex; ampregex = this.noDoubleEncoding ? /(?!&\\\\S+;)&/g : /&/g; return str.replace(ampregex, \\"&\\").replace(//g, \\">\\").replace(/\\\\r/g, \\" \\"); }; +const v1441 = {}; +v1441.constructor = v1440; +v1440.prototype = v1441; +v1395.elEscape = v1440; +var v1442; +v1442 = function (str) { var ampregex; ampregex = this.noDoubleEncoding ? /(?!&\\\\S+;)&/g : /&/g; return str.replace(ampregex, \\"&\\").replace(/= 0) { + this.up(); +} return this.onEnd(); }; +const v1524 = {}; +v1524.constructor = v1523; +v1523.prototype = v1524; +v1465.end = v1523; +var v1525; +v1525 = function () { if (this.currentNode) { + this.currentNode.children = true; + return this.openNode(this.currentNode); +} }; +const v1526 = {}; +v1526.constructor = v1525; +v1525.prototype = v1526; +v1465.openCurrent = v1525; +var v1527; +var v1528 = v1315; +v1527 = function (node) { if (!node.isOpen) { + if (!this.root && this.currentLevel === 0 && node instanceof v1528) { + this.root = node; + } + this.onData(this.writer.openNode(node, this.currentLevel)); + return node.isOpen = true; +} }; +const v1529 = {}; +v1529.constructor = v1527; +v1527.prototype = v1529; +v1465.openNode = v1527; +var v1530; +v1530 = function (node) { if (!node.isClosed) { + this.onData(this.writer.closeNode(node, this.currentLevel)); + return node.isClosed = true; +} }; +const v1531 = {}; +v1531.constructor = v1530; +v1530.prototype = v1531; +v1465.closeNode = v1530; +var v1532; +v1532 = function (chunk) { this.documentStarted = true; return this.onDataCallback(chunk); }; +const v1533 = {}; +v1533.constructor = v1532; +v1532.prototype = v1533; +v1465.onData = v1532; +var v1534; +v1534 = function () { this.documentCompleted = true; return this.onEndCallback(); }; +const v1535 = {}; +v1535.constructor = v1534; +v1534.prototype = v1535; +v1465.onEnd = v1534; +var v1536; +v1536 = function () { return this.element.apply(this, arguments); }; +const v1537 = {}; +v1537.constructor = v1536; +v1536.prototype = v1537; +v1465.ele = v1536; +var v1538; +v1538 = function (name, attributes, text) { return this.node(name, attributes, text); }; +const v1539 = {}; +v1539.constructor = v1538; +v1538.prototype = v1539; +v1465.nod = v1538; +var v1540; +v1540 = function (value) { return this.text(value); }; +const v1541 = {}; +v1541.constructor = v1540; +v1540.prototype = v1541; +v1465.txt = v1540; +var v1542; +v1542 = function (value) { return this.cdata(value); }; +const v1543 = {}; +v1543.constructor = v1542; +v1542.prototype = v1543; +v1465.dat = v1542; +var v1544; +v1544 = function (value) { return this.comment(value); }; +const v1545 = {}; +v1545.constructor = v1544; +v1544.prototype = v1545; +v1465.com = v1544; +var v1546; +v1546 = function (target, value) { return this.instruction(target, value); }; +const v1547 = {}; +v1547.constructor = v1546; +v1546.prototype = v1547; +v1465.ins = v1546; +var v1548; +v1548 = function (version, encoding, standalone) { return this.declaration(version, encoding, standalone); }; +const v1549 = {}; +v1549.constructor = v1548; +v1548.prototype = v1549; +v1465.dec = v1548; +var v1550; +v1550 = function (root, pubID, sysID) { return this.doctype(root, pubID, sysID); }; +const v1551 = {}; +v1551.constructor = v1550; +v1550.prototype = v1551; +v1465.dtd = v1550; +var v1552; +v1552 = function (name, attributes, text) { return this.element(name, attributes, text); }; +const v1553 = {}; +v1553.constructor = v1552; +v1552.prototype = v1553; +v1465.e = v1552; +var v1554; +v1554 = function (name, attributes, text) { return this.node(name, attributes, text); }; +const v1555 = {}; +v1555.constructor = v1554; +v1554.prototype = v1555; +v1465.n = v1554; +var v1556; +v1556 = function (value) { return this.text(value); }; +const v1557 = {}; +v1557.constructor = v1556; +v1556.prototype = v1557; +v1465.t = v1556; +var v1558; +v1558 = function (value) { return this.cdata(value); }; +const v1559 = {}; +v1559.constructor = v1558; +v1558.prototype = v1559; +v1465.d = v1558; +var v1560; +v1560 = function (value) { return this.comment(value); }; +const v1561 = {}; +v1561.constructor = v1560; +v1560.prototype = v1561; +v1465.c = v1560; +var v1562; +v1562 = function (value) { return this.raw(value); }; +const v1563 = {}; +v1563.constructor = v1562; +v1562.prototype = v1563; +v1465.r = v1562; +var v1564; +v1564 = function (target, value) { return this.instruction(target, value); }; +const v1565 = {}; +v1565.constructor = v1564; +v1564.prototype = v1565; +v1465.i = v1564; +var v1566; +var v1567 = v1204; +v1566 = function () { if (this.currentNode && this.currentNode instanceof v1567) { + return this.attList.apply(this, arguments); +} +else { + return this.attribute.apply(this, arguments); +} }; +const v1568 = {}; +v1568.constructor = v1566; +v1566.prototype = v1568; +v1465.att = v1566; +var v1569; +v1569 = function () { if (this.currentNode && this.currentNode instanceof v1504) { + return this.attList.apply(this, arguments); +} +else { + return this.attribute.apply(this, arguments); +} }; +const v1570 = {}; +v1570.constructor = v1569; +v1569.prototype = v1570; +v1465.a = v1569; +var v1571; +v1571 = function (name, value) { return this.entity(name, value); }; +const v1572 = {}; +v1572.constructor = v1571; +v1571.prototype = v1572; +v1465.ent = v1571; +var v1573; +v1573 = function (name, value) { return this.pEntity(name, value); }; +const v1574 = {}; +v1574.constructor = v1573; +v1573.prototype = v1574; +v1465.pent = v1573; +var v1575; +v1575 = function (name, value) { return this.notation(name, value); }; +const v1576 = {}; +v1576.constructor = v1575; +v1575.prototype = v1576; +v1465.not = v1575; +v1461.prototype = v1465; +var v1460 = v1461; +v1458 = function (options, onData, onEnd) { var ref1; if (v1459(options)) { + ref1 = [options, onData], onData = ref1[0], onEnd = ref1[1]; + options = {}; +} if (onData) { + return new v1460(options, onData, onEnd); +} +else { + return new v1064(options); +} }; +const v1577 = {}; +v1577.constructor = v1458; +v1458.prototype = v1577; +v1050.begin = v1458; +var v1578; +var v1579 = v1067; +v1578 = function (options) { return new v1579(options); }; +const v1580 = {}; +v1580.constructor = v1578; +v1578.prototype = v1580; +v1050.stringWriter = v1578; +var v1581; +var v1583; +v1583 = function XMLStreamWriter(stream, options) { XMLStreamWriter.__super__.constructor.call(this, options); this.stream = stream; }; +const v1584 = Object.create(v1068); +v1584.constructor = v1583; +var v1585; +var v1586 = v1080; +var v1587 = v1204; +var v1588 = v1266; +var v1589 = v1275; +v1585 = function (doc) { var child, i, j, len, len1, ref, ref1, results; ref = doc.children; for (i = 0, len = ref.length; i < len; i++) { + child = ref[i]; + child.isLastRootNode = false; +} doc.children[doc.children.length - 1].isLastRootNode = true; ref1 = doc.children; results = []; for (j = 0, len1 = ref1.length; j < len1; j++) { + child = ref1[j]; + switch (false) { + case !(child instanceof v1586): + results.push(this.declaration(child)); + break; + case !(child instanceof v1587): + results.push(this.docType(child)); + break; + case !(child instanceof v1588): + results.push(this.comment(child)); + break; + case !(child instanceof v1589): + results.push(this.processingInstruction(child)); + break; + default: results.push(this.element(child)); + } +} return results; }; +const v1590 = {}; +v1590.constructor = v1585; +v1585.prototype = v1590; +v1584.document = v1585; +var v1591; +v1591 = function (att) { return this.stream.write(\\" \\" + att.name + \\"=\\\\\\"\\" + att.value + \\"\\\\\\"\\"); }; +const v1592 = {}; +v1592.constructor = v1591; +v1591.prototype = v1592; +v1584.attribute = v1591; +var v1593; +v1593 = function (node, level) { return this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1594 = {}; +v1594.constructor = v1593; +v1593.prototype = v1594; +v1584.cdata = v1593; +var v1595; +v1595 = function (node, level) { return this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1596 = {}; +v1596.constructor = v1595; +v1595.prototype = v1596; +v1584.comment = v1595; +var v1597; +v1597 = function (node, level) { this.stream.write(this.space(level)); this.stream.write(\\"\\"); return this.stream.write(this.endline(node)); }; +const v1598 = {}; +v1598.constructor = v1597; +v1597.prototype = v1598; +v1584.declaration = v1597; +var v1599; +var v1600 = v1218; +var v1601 = v1209; +var v1602 = v1230; +var v1603 = v1245; +var v1604 = v1298; +var v1605 = v1266; +var v1606 = v1275; +var v1607 = v40; +v1599 = function (node, level) { var child, i, len, ref; level || (level = 0); this.stream.write(this.space(level)); this.stream.write(\\" 0) { + this.stream.write(\\" [\\"); + this.stream.write(this.endline(node)); + ref = node.children; + for (i = 0, len = ref.length; i < len; i++) { + child = ref[i]; + switch (false) { + case !(child instanceof v1600): + this.dtdAttList(child, level + 1); + break; + case !(child instanceof v1601): + this.dtdElement(child, level + 1); + break; + case !(child instanceof v1602): + this.dtdEntity(child, level + 1); + break; + case !(child instanceof v1603): + this.dtdNotation(child, level + 1); + break; + case !(child instanceof v1604): + this.cdata(child, level + 1); + break; + case !(child instanceof v1605): + this.comment(child, level + 1); + break; + case !(child instanceof v1606): + this.processingInstruction(child, level + 1); + break; + default: throw new v1607(\\"Unknown DTD node type: \\" + child.constructor.name); } - return cooked; - }; - var __setModuleDefault = Object.create ? function(o, v) { - Object.defineProperty(o, \\"default\\", { enumerable: true, value: v }); - } : function(o, v) { - o[\\"default\\"] = v; - }; - __importStar = function(mod) { - if (mod && mod.__esModule) - return mod; - var result = {}; - if (mod != null) { - for (var k in mod) - if (k !== \\"default\\" && Object.prototype.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k); + } + this.stream.write(\\"]\\"); +} this.stream.write(this.spacebeforeslash + \\">\\"); return this.stream.write(this.endline(node)); }; +const v1608 = {}; +v1608.constructor = v1599; +v1599.prototype = v1608; +v1584.docType = v1599; +var v1609; +var v1610 = v1030; +var v1611 = v1298; +var v1612 = v1266; +var v1613 = v1315; +var v1614 = v1348; +var v1615 = v1357; +var v1616 = v40; +v1609 = function (node, level) { var att, child, i, len, name, ref, ref1, space; level || (level = 0); space = this.space(level); this.stream.write(space + \\"<\\" + node.name); ref = node.attributes; for (name in ref) { + if (!v1610.call(ref, name)) + continue; + att = ref[name]; + this.attribute(att); +} if (node.children.length === 0 || node.children.every(function (e) { return e.value === \\"\\"; })) { + if (this.allowEmpty) { + this.stream.write(\\">\\"); + } + else { + this.stream.write(this.spacebeforeslash + \\"/>\\"); + } +} +else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) { + this.stream.write(\\">\\"); + this.stream.write(node.children[0].value); + this.stream.write(\\"\\"); +} +else { + this.stream.write(\\">\\" + this.newline); + ref1 = node.children; + for (i = 0, len = ref1.length; i < len; i++) { + child = ref1[i]; + switch (false) { + case !(child instanceof v1611): + this.cdata(child, level + 1); + break; + case !(child instanceof v1612): + this.comment(child, level + 1); + break; + case !(child instanceof v1613): + this.element(child, level + 1); + break; + case !(child instanceof v1614): + this.raw(child, level + 1); + break; + case !(child instanceof v1615): + this.text(child, level + 1); + break; + case !(child instanceof v1606): + this.processingInstruction(child, level + 1); + break; + default: throw new v1616(\\"Unknown XML node type: \\" + child.constructor.name); } - __setModuleDefault(result, mod); - return result; - }; - __importDefault = function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - __classPrivateFieldGet = function(receiver, state, kind, f) { - if (kind === \\"a\\" && !f) - throw new TypeError(\\"Private accessor was defined without a getter\\"); - if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError(\\"Cannot read private member from an object whose class did not declare it\\"); - return kind === \\"m\\" ? f : kind === \\"a\\" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - __classPrivateFieldSet = function(receiver, state, value, kind, f) { - if (kind === \\"m\\") - throw new TypeError(\\"Private method is not writable\\"); - if (kind === \\"a\\" && !f) - throw new TypeError(\\"Private accessor was defined without a setter\\"); - if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError(\\"Cannot write private member to an object whose class did not declare it\\"); - return kind === \\"a\\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; - }; - __classPrivateFieldIn = function(state, receiver) { - if (receiver === null || typeof receiver !== \\"object\\" && typeof receiver !== \\"function\\") - throw new TypeError(\\"Cannot use 'in' operator on non-object\\"); - return typeof state === \\"function\\" ? receiver === state : state.has(receiver); - }; - exporter(\\"__extends\\", __extends); - exporter(\\"__assign\\", __assign); - exporter(\\"__rest\\", __rest); - exporter(\\"__decorate\\", __decorate); - exporter(\\"__param\\", __param); - exporter(\\"__metadata\\", __metadata); - exporter(\\"__awaiter\\", __awaiter); - exporter(\\"__generator\\", __generator); - exporter(\\"__exportStar\\", __exportStar); - exporter(\\"__createBinding\\", __createBinding); - exporter(\\"__values\\", __values); - exporter(\\"__read\\", __read); - exporter(\\"__spread\\", __spread); - exporter(\\"__spreadArrays\\", __spreadArrays); - exporter(\\"__spreadArray\\", __spreadArray); - exporter(\\"__await\\", __await); - exporter(\\"__asyncGenerator\\", __asyncGenerator); - exporter(\\"__asyncDelegator\\", __asyncDelegator); - exporter(\\"__asyncValues\\", __asyncValues); - exporter(\\"__makeTemplateObject\\", __makeTemplateObject); - exporter(\\"__importStar\\", __importStar); - exporter(\\"__importDefault\\", __importDefault); - exporter(\\"__classPrivateFieldGet\\", __classPrivateFieldGet); - exporter(\\"__classPrivateFieldSet\\", __classPrivateFieldSet); - exporter(\\"__classPrivateFieldIn\\", __classPrivateFieldIn); - }); - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js -var require_deserializerMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.deserializerMiddleware = void 0; - var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed - }; - } catch (error) { - Object.defineProperty(error, \\"$response\\", { - value: response - }); - throw error; - } - }; - exports2.deserializerMiddleware = deserializerMiddleware; - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js -var require_serializerMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.serializerMiddleware = void 0; - var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - const request = await serializer(args.input, options); - return next({ - ...args, - request - }); - }; - exports2.serializerMiddleware = serializerMiddleware; - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js -var require_serdePlugin = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSerdePlugin = exports2.serializerMiddlewareOption = exports2.deserializerMiddlewareOption = void 0; - var deserializerMiddleware_1 = require_deserializerMiddleware(); - var serializerMiddleware_1 = require_serializerMiddleware(); - exports2.deserializerMiddlewareOption = { - name: \\"deserializerMiddleware\\", - step: \\"deserialize\\", - tags: [\\"DESERIALIZER\\"], - override: true - }; - exports2.serializerMiddlewareOption = { - name: \\"serializerMiddleware\\", - step: \\"serialize\\", - tags: [\\"SERIALIZER\\"], - override: true - }; - function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports2.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports2.serializerMiddlewareOption); + } + this.stream.write(space + \\"\\"); +} return this.stream.write(this.endline(node)); }; +const v1617 = {}; +v1617.constructor = v1609; +v1609.prototype = v1617; +v1584.element = v1609; +var v1618; +v1618 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1619 = {}; +v1619.constructor = v1618; +v1618.prototype = v1619; +v1584.processingInstruction = v1618; +var v1620; +v1620 = function (node, level) { return this.stream.write(this.space(level) + node.value + this.endline(node)); }; +const v1621 = {}; +v1621.constructor = v1620; +v1620.prototype = v1621; +v1584.raw = v1620; +var v1622; +v1622 = function (node, level) { return this.stream.write(this.space(level) + node.value + this.endline(node)); }; +const v1623 = {}; +v1623.constructor = v1622; +v1622.prototype = v1623; +v1584.text = v1622; +var v1624; +v1624 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1625 = {}; +v1625.constructor = v1624; +v1624.prototype = v1625; +v1584.dtdAttList = v1624; +var v1626; +v1626 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1627 = {}; +v1627.constructor = v1626; +v1626.prototype = v1627; +v1584.dtdElement = v1626; +var v1628; +v1628 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1629 = {}; +v1629.constructor = v1628; +v1628.prototype = v1629; +v1584.dtdEntity = v1628; +var v1630; +v1630 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; +const v1631 = {}; +v1631.constructor = v1630; +v1630.prototype = v1631; +v1584.dtdNotation = v1630; +var v1632; +v1632 = function (node) { if (!node.isLastRootNode) { + return this.newline; +} +else { + return \\"\\"; +} }; +const v1633 = {}; +v1633.constructor = v1632; +v1632.prototype = v1633; +v1584.endline = v1632; +v1583.prototype = v1584; +v1583.__super__ = v1068; +var v1582 = v1583; +v1581 = function (stream, options) { return new v1582(stream, options); }; +const v1634 = {}; +v1634.constructor = v1581; +v1581.prototype = v1634; +v1050.streamWriter = v1581; +var v1049 = v1050; +v1032 = function (rootObj) { var attrkey, charkey, render, rootElement, rootName; attrkey = this.options.attrkey; charkey = this.options.charkey; if ((v1033.keys(rootObj).length === 1) && (this.options.rootName === v1028[\\"0.2\\"].rootName)) { + rootName = v1034.keys(rootObj)[0]; + rootObj = rootObj[rootName]; +} +else { + rootName = this.options.rootName; +} render = (function (_this) { return function (element, obj) { var attr, child, entry, index, key, value; if (typeof obj !== \\"object\\") { + if (_this.options.cdata && v1035(obj)) { + element.raw(v1038(obj)); + } + else { + element.txt(obj); + } +} +else if (v1044.isArray(obj)) { + for (index in obj) { + if (!v1045.call(obj, index)) + continue; + child = obj[index]; + for (key in child) { + entry = child[key]; + element = render(element.ele(key), entry).up(); } - }; } - exports2.getSerdePlugin = getSerdePlugin; - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js -var require_dist_cjs = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_deserializerMiddleware(), exports2); - tslib_1.__exportStar(require_serdePlugin(), exports2); - tslib_1.__exportStar(require_serializerMiddleware(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js -var require_MiddlewareStack = __commonJS({ - \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.constructStack = void 0; - var constructStack = () => { - let absoluteEntries = []; - let relativeEntries = []; - const entriesNameSet = /* @__PURE__ */ new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || \\"normal\\"] - priorityWeights[a.priority || \\"normal\\"]); - const removeByName = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.name && entry.name === toRemove) { - isRemoved = true; - entriesNameSet.delete(toRemove); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const removeByReference = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.middleware === toRemove) { - isRemoved = true; - if (entry.name) - entriesNameSet.delete(entry.name); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const cloneTo = (toStack) => { - absoluteEntries.forEach((entry) => { - toStack.add(entry.middleware, { ...entry }); - }); - relativeEntries.forEach((entry) => { - toStack.addRelativeTo(entry.middleware, { ...entry }); - }); - return toStack; - }; - const expandRelativeMiddlewareList = (from) => { - const expandedMiddlewareList = []; - from.before.forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - expandedMiddlewareList.push(from); - from.after.reverse().forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - return expandedMiddlewareList; - }; - const getMiddlewareList = () => { - const normalizedAbsoluteEntries = []; - const normalizedRelativeEntries = []; - const normalizedEntriesNameMap = {}; - absoluteEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [] - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedAbsoluteEntries.push(normalizedEntry); - }); - relativeEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [] - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedRelativeEntries.push(normalizedEntry); - }); - normalizedRelativeEntries.forEach((entry) => { - if (entry.toMiddleware) { - const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; - if (toMiddleware === void 0) { - throw new Error(\`\${entry.toMiddleware} is not found when adding \${entry.name || \\"anonymous\\"} middleware \${entry.relation} \${entry.toMiddleware}\`); +} +else { + for (key in obj) { + if (!v1046.call(obj, key)) + continue; + child = obj[key]; + if (key === attrkey) { + if (typeof child === \\"object\\") { + for (attr in child) { + value = child[attr]; + element = element.att(attr, value); + } } - if (entry.relation === \\"after\\") { - toMiddleware.after.push(entry); + } + else if (key === charkey) { + if (_this.options.cdata && v1047(child)) { + element = element.raw(v1038(child)); } - if (entry.relation === \\"before\\") { - toMiddleware.before.push(entry); + else { + element = element.txt(child); } - } - }); - const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { - wholeList.push(...expendedMiddlewareList); - return wholeList; - }, []); - return mainChain.map((entry) => entry.middleware); - }; - const stack = { - add: (middleware, options = {}) => { - const { name, override } = options; - const entry = { - step: \\"initialize\\", - priority: \\"normal\\", - middleware, - ...options - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(\`Duplicate middleware name '\${name}'\`); - const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { - throw new Error(\`\\"\${name}\\" middleware with \${toOverride.priority} priority in \${toOverride.step} step cannot be overridden by same-name middleware with \${entry.priority} priority in \${entry.step} step.\`); - } - absoluteEntries.splice(toOverrideIndex, 1); + } + else if (v1044.isArray(child)) { + for (index in child) { + if (!v1045.call(child, index)) + continue; + entry = child[index]; + if (typeof entry === \\"string\\") { + if (_this.options.cdata && v1035(entry)) { + element = element.ele(key).raw(v1038(entry)).up(); + } + else { + element = element.ele(key, entry).up(); + } + } + else { + element = render(element.ele(key), entry).up(); + } } - entriesNameSet.add(name); - } - absoluteEntries.push(entry); - }, - addRelativeTo: (middleware, options) => { - const { name, override } = options; - const entry = { - middleware, - ...options - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(\`Duplicate middleware name '\${name}'\`); - const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(\`\\"\${name}\\" middleware \${toOverride.relation} \\"\${toOverride.toMiddleware}\\" middleware cannot be overridden by same-name middleware \${entry.relation} \\"\${entry.toMiddleware}\\" middleware.\`); - } - relativeEntries.splice(toOverrideIndex, 1); + } + else if (typeof child === \\"object\\") { + element = render(element.ele(key), child).up(); + } + else { + if (typeof child === \\"string\\" && _this.options.cdata && v1048(child)) { + element = element.ele(key).raw(v1038(child)).up(); } - entriesNameSet.add(name); - } - relativeEntries.push(entry); - }, - clone: () => cloneTo((0, exports2.constructStack)()), - use: (plugin) => { - plugin.applyToStack(stack); - }, - remove: (toRemove) => { - if (typeof toRemove === \\"string\\") - return removeByName(toRemove); - else - return removeByReference(toRemove); - }, - removeByTag: (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const { tags, name } = entry; - if (tags && tags.includes(toRemove)) { - if (name) - entriesNameSet.delete(name); - isRemoved = true; - return false; + else { + if (child == null) { + child = \\"\\"; + } + element = element.ele(key, child.toString()).up(); } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }, - concat: (from) => { - const cloned = cloneTo((0, exports2.constructStack)()); - cloned.use(from); - return cloned; - }, - applyToStack: cloneTo, - resolve: (handler, context) => { - for (const middleware of getMiddlewareList().reverse()) { - handler = middleware(handler, context); - } - return handler; } - }; - return stack; - }; - exports2.constructStack = constructStack; - var stepWeights = { - initialize: 5, - serialize: 4, - build: 3, - finalizeRequest: 2, - deserialize: 1 - }; - var priorityWeights = { - high: 3, - normal: 2, - low: 1 - }; - } -}); - -// node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js -var require_dist_cjs2 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_MiddlewareStack(), exports2); - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/client.js -var require_client = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/client.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Client = void 0; - var middleware_stack_1 = require_dist_cjs2(); - var Client = class { - constructor(config) { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== \\"function\\" ? optionsOrCb : void 0; - const callback = typeof optionsOrCb === \\"function\\" ? optionsOrCb : cb; - const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { - }); - } else { - return handler(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } - }; - exports2.Client = Client; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/command.js -var require_command = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/command.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Command = void 0; - var middleware_stack_1 = require_dist_cjs2(); - var Command = class { - constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - } - }; - exports2.Command = Command; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js -var require_constants = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SENSITIVE_STRING = void 0; - exports2.SENSITIVE_STRING = \\"***SensitiveInformation***\\"; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js -var require_parse_utils = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.strictParseByte = exports2.strictParseShort = exports2.strictParseInt32 = exports2.strictParseInt = exports2.strictParseLong = exports2.limitedParseFloat32 = exports2.limitedParseFloat = exports2.handleFloat = exports2.limitedParseDouble = exports2.strictParseFloat32 = exports2.strictParseFloat = exports2.strictParseDouble = exports2.expectUnion = exports2.expectString = exports2.expectObject = exports2.expectNonNull = exports2.expectByte = exports2.expectShort = exports2.expectInt32 = exports2.expectInt = exports2.expectLong = exports2.expectFloat32 = exports2.expectNumber = exports2.expectBoolean = exports2.parseBoolean = void 0; - var parseBoolean = (value) => { - switch (value) { - case \\"true\\": - return true; - case \\"false\\": - return false; - default: - throw new Error(\`Unable to parse boolean value \\"\${value}\\"\`); - } - }; - exports2.parseBoolean = parseBoolean; - var expectBoolean = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"boolean\\") { - return value; - } - throw new TypeError(\`Expected boolean, got \${typeof value}\`); - }; - exports2.expectBoolean = expectBoolean; - var expectNumber = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"number\\") { - return value; - } - throw new TypeError(\`Expected number, got \${typeof value}\`); - }; - exports2.expectNumber = expectNumber; - var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); - var expectFloat32 = (value) => { - const expected = (0, exports2.expectNumber)(value); - if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(\`Expected 32-bit float, got \${value}\`); - } - } - return expected; - }; - exports2.expectFloat32 = expectFloat32; - var expectLong = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(\`Expected integer, got \${typeof value}\`); - }; - exports2.expectLong = expectLong; - exports2.expectInt = exports2.expectLong; - var expectInt32 = (value) => expectSizedInt(value, 32); - exports2.expectInt32 = expectInt32; - var expectShort = (value) => expectSizedInt(value, 16); - exports2.expectShort = expectShort; - var expectByte = (value) => expectSizedInt(value, 8); - exports2.expectByte = expectByte; - var expectSizedInt = (value, size) => { - const expected = (0, exports2.expectLong)(value); - if (expected !== void 0 && castInt(expected, size) !== expected) { - throw new TypeError(\`Expected \${size}-bit integer, got \${value}\`); - } - return expected; - }; - var castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } - }; - var expectNonNull = (value, location) => { - if (value === null || value === void 0) { - if (location) { - throw new TypeError(\`Expected a non-null value for \${location}\`); - } - throw new TypeError(\\"Expected a non-null value\\"); - } - return value; - }; - exports2.expectNonNull = expectNonNull; - var expectObject = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"object\\" && !Array.isArray(value)) { - return value; - } - throw new TypeError(\`Expected object, got \${typeof value}\`); - }; - exports2.expectObject = expectObject; - var expectString = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"string\\") { - return value; - } - throw new TypeError(\`Expected string, got \${typeof value}\`); - }; - exports2.expectString = expectString; - var expectUnion = (value) => { - if (value === null || value === void 0) { - return void 0; - } - const asObject = (0, exports2.expectObject)(value); - const setKeys = Object.entries(asObject).filter(([_, v]) => v !== null && v !== void 0).map(([k, _]) => k); - if (setKeys.length === 0) { - throw new TypeError(\`Unions must have exactly one non-null member\`); - } - if (setKeys.length > 1) { - throw new TypeError(\`Unions must have exactly one non-null member. Keys \${setKeys} were not null.\`); - } - return asObject; - }; - exports2.expectUnion = expectUnion; - var strictParseDouble = (value) => { - if (typeof value == \\"string\\") { - return (0, exports2.expectNumber)(parseNumber(value)); - } - return (0, exports2.expectNumber)(value); - }; - exports2.strictParseDouble = strictParseDouble; - exports2.strictParseFloat = exports2.strictParseDouble; - var strictParseFloat32 = (value) => { - if (typeof value == \\"string\\") { - return (0, exports2.expectFloat32)(parseNumber(value)); - } - return (0, exports2.expectFloat32)(value); - }; - exports2.strictParseFloat32 = strictParseFloat32; - var NUMBER_REGEX = /(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)|(-?Infinity)|(NaN)/g; - var parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(\`Expected real number, got implicit NaN\`); - } - return parseFloat(value); - }; - var limitedParseDouble = (value) => { - if (typeof value == \\"string\\") { - return parseFloatString(value); - } - return (0, exports2.expectNumber)(value); - }; - exports2.limitedParseDouble = limitedParseDouble; - exports2.handleFloat = exports2.limitedParseDouble; - exports2.limitedParseFloat = exports2.limitedParseDouble; - var limitedParseFloat32 = (value) => { - if (typeof value == \\"string\\") { - return parseFloatString(value); - } - return (0, exports2.expectFloat32)(value); - }; - exports2.limitedParseFloat32 = limitedParseFloat32; - var parseFloatString = (value) => { - switch (value) { - case \\"NaN\\": - return NaN; - case \\"Infinity\\": - return Infinity; - case \\"-Infinity\\": - return -Infinity; - default: - throw new Error(\`Unable to parse float value: \${value}\`); - } - }; - var strictParseLong = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectLong)(parseNumber(value)); - } - return (0, exports2.expectLong)(value); - }; - exports2.strictParseLong = strictParseLong; - exports2.strictParseInt = exports2.strictParseLong; - var strictParseInt32 = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectInt32)(parseNumber(value)); - } - return (0, exports2.expectInt32)(value); - }; - exports2.strictParseInt32 = strictParseInt32; - var strictParseShort = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectShort)(parseNumber(value)); - } - return (0, exports2.expectShort)(value); - }; - exports2.strictParseShort = strictParseShort; - var strictParseByte = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectByte)(parseNumber(value)); - } - return (0, exports2.expectByte)(value); - }; - exports2.strictParseByte = strictParseByte; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js -var require_date_utils = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseEpochTimestamp = exports2.parseRfc7231DateTime = exports2.parseRfc3339DateTime = exports2.dateToUtcString = void 0; - var parse_utils_1 = require_parse_utils(); - var DAYS = [\\"Sun\\", \\"Mon\\", \\"Tue\\", \\"Wed\\", \\"Thu\\", \\"Fri\\", \\"Sat\\"]; - var MONTHS = [\\"Jan\\", \\"Feb\\", \\"Mar\\", \\"Apr\\", \\"May\\", \\"Jun\\", \\"Jul\\", \\"Aug\\", \\"Sep\\", \\"Oct\\", \\"Nov\\", \\"Dec\\"]; - function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? \`0\${dayOfMonthInt}\` : \`\${dayOfMonthInt}\`; - const hoursString = hoursInt < 10 ? \`0\${hoursInt}\` : \`\${hoursInt}\`; - const minutesString = minutesInt < 10 ? \`0\${minutesInt}\` : \`\${minutesInt}\`; - const secondsString = secondsInt < 10 ? \`0\${secondsInt}\` : \`\${secondsInt}\`; - return \`\${DAYS[dayOfWeek]}, \${dayOfMonthString} \${MONTHS[month]} \${year} \${hoursString}:\${minutesString}:\${secondsString} GMT\`; - } - exports2.dateToUtcString = dateToUtcString; - var RFC3339 = new RegExp(/^(\\\\d{4})-(\\\\d{2})-(\\\\d{2})[tT](\\\\d{2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))?[zZ]$/); - var parseRfc3339DateTime = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== \\"string\\") { - throw new TypeError(\\"RFC-3339 date-times must be expressed as strings\\"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError(\\"Invalid RFC-3339 date-time value\\"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, \\"month\\", 1, 12); - const day = parseDateValue(dayStr, \\"day\\", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - }; - exports2.parseRfc3339DateTime = parseRfc3339DateTime; - var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\\\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\\\d{4}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); - var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\\\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); - var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? (\\\\d{4})$/); - var parseRfc7231DateTime = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== \\"string\\") { - throw new TypeError(\\"RFC-7231 date-times must be expressed as strings\\"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError(\\"Invalid RFC-7231 date-time value\\"); - }; - exports2.parseRfc7231DateTime = parseRfc7231DateTime; - var parseEpochTimestamp = (value) => { - if (value === null || value === void 0) { - return void 0; - } - let valueAsDouble; - if (typeof value === \\"number\\") { - valueAsDouble = value; - } else if (typeof value === \\"string\\") { - valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); - } else { - throw new TypeError(\\"Epoch timestamps must be expressed as floating point numbers or their string representation\\"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError(\\"Epoch timestamps must be valid, non-Infinite, non-NaN numerics\\"); - } - return new Date(Math.round(valueAsDouble * 1e3)); - }; - exports2.parseEpochTimestamp = parseEpochTimestamp; - var buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, \\"hour\\", 0, 23), parseDateValue(time.minutes, \\"minute\\", 0, 59), parseDateValue(time.seconds, \\"seconds\\", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); - }; - var parseTwoDigitYear = (value) => { - const thisYear = new Date().getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; - }; - var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; - var adjustRfc850Year = (input) => { - if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); - } - return input; - }; - var parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(\`Invalid month: \${value}\`); - } - return monthIdx + 1; - }; - var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - var validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(\`Invalid day for \${MONTHS[month]} in \${year}: \${day}\`); - } - }; - var isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - }; - var parseDateValue = (value, type, lower, upper) => { - const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(\`\${type} must be between \${lower} and \${upper}, inclusive\`); - } - return dateVal; - }; - var parseMilliseconds = (value) => { - if (value === null || value === void 0) { - return 0; - } - return (0, parse_utils_1.strictParseFloat32)(\\"0.\\" + value) * 1e3; - }; - var stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === \\"0\\") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js -var require_exceptions = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decorateServiceException = exports2.ServiceException = void 0; - var ServiceException = class extends Error { - constructor(options) { - super(options.message); - Object.setPrototypeOf(this, ServiceException.prototype); - this.name = options.name; - this.$fault = options.$fault; - this.$metadata = options.$metadata; - } - }; - exports2.ServiceException = ServiceException; - var decorateServiceException = (exception, additions = {}) => { - Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { - if (exception[k] == void 0 || exception[k] === \\"\\") { - exception[k] = v; - } - }); - const message = exception.message || exception.Message || \\"UnknownError\\"; - exception.message = message; - delete exception.Message; - return exception; - }; - exports2.decorateServiceException = decorateServiceException; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js -var require_default_error_handler = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.throwDefaultError = void 0; - var exceptions_1 = require_exceptions(); - var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata(output); - const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + \\"\\" : void 0; - const response = new exceptionCtor({ - name: parsedBody.code || parsedBody.Code || errorCode || statusCode || \\"UnknowError\\", - $fault: \\"client\\", - $metadata - }); - throw (0, exceptions_1.decorateServiceException)(response, parsedBody); - }; - exports2.throwDefaultError = throwDefaultError; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js -var require_defaults_mode = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadConfigsForDefaultMode = void 0; - var loadConfigsForDefaultMode = (mode) => { - switch (mode) { - case \\"standard\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 3100 - }; - case \\"in-region\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 1100 - }; - case \\"cross-region\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 3100 - }; - case \\"mobile\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 3e4 - }; - default: - return {}; - } - }; - exports2.loadConfigsForDefaultMode = loadConfigsForDefaultMode; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js -var require_emitWarningIfUnsupportedVersion = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.emitWarningIfUnsupportedVersion = void 0; - var warningEmitted = false; - var emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf(\\".\\"))) < 14) { - warningEmitted = true; - process.emitWarning(\`The AWS SDK for JavaScript (v3) will -no longer support Node.js \${version} on November 1, 2022. - -To continue receiving updates to AWS services, bug fixes, and security -updates please upgrade to Node.js 14.x or later. - -For details, please refer our blog post: https://a.co/48dbdYz\`, \`NodeDeprecationWarning\`); - } - }; - exports2.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js -var require_extended_encode_uri_component = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.extendedEncodeURIComponent = void 0; - function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { - return \\"%\\" + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - exports2.extendedEncodeURIComponent = extendedEncodeURIComponent; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js -var require_get_array_if_single_item = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getArrayIfSingleItem = void 0; - var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; - exports2.getArrayIfSingleItem = getArrayIfSingleItem; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js -var require_get_value_from_text_node = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getValueFromTextNode = void 0; - var getValueFromTextNode = (obj) => { - const textNodeName = \\"#text\\"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { - obj[key] = obj[key][textNodeName]; - } else if (typeof obj[key] === \\"object\\" && obj[key] !== null) { - obj[key] = (0, exports2.getValueFromTextNode)(obj[key]); - } - } - return obj; - }; - exports2.getValueFromTextNode = getValueFromTextNode; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js -var require_lazy_json = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.LazyJsonString = exports2.StringWrapper = void 0; - var StringWrapper = function() { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; - }; - exports2.StringWrapper = StringWrapper; - exports2.StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: exports2.StringWrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - Object.setPrototypeOf(exports2.StringWrapper, String); - var LazyJsonString = class extends exports2.StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } else if (object instanceof String || typeof object === \\"string\\") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } - }; - exports2.LazyJsonString = LazyJsonString; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js -var require_object_mapping = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.convertMap = exports2.map = void 0; - function map(arg0, arg1, arg2) { - let target; - let filter; - let instructions; - if (typeof arg1 === \\"undefined\\" && typeof arg2 === \\"undefined\\") { - target = {}; - instructions = arg0; - } else { - target = arg0; - if (typeof arg1 === \\"function\\") { - filter = arg1; - instructions = arg2; - return mapWithFilter(target, filter, instructions); - } else { - instructions = arg1; - } - } - for (const key of Object.keys(instructions)) { - if (!Array.isArray(instructions[key])) { - target[key] = instructions[key]; - continue; - } - let [filter2, value] = instructions[key]; - if (typeof value === \\"function\\") { - let _value; - const defaultFilterPassed = filter2 === void 0 && (_value = value()) != null; - const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(void 0) || typeof filter2 !== \\"function\\" && !!filter2; - if (defaultFilterPassed) { - target[key] = _value; - } else if (customFilterPassed) { - target[key] = value(); - } - } else { - const defaultFilterPassed = filter2 === void 0 && value != null; - const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(value) || typeof filter2 !== \\"function\\" && !!filter2; - if (defaultFilterPassed || customFilterPassed) { - target[key] = value; - } - } - } - return target; - } - exports2.map = map; - var convertMap = (target) => { - const output = {}; - for (const [k, v] of Object.entries(target || {})) { - output[k] = [, v]; - } - return output; - }; - exports2.convertMap = convertMap; - var mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } else { - if (typeof value === \\"function\\") { - _instructions[key] = [filter, value()]; - } else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js -var require_resolve_path = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolvedPath = void 0; - var extended_encode_uri_component_1 = require_extended_encode_uri_component(); - var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { - if (input != null && input[memberName] !== void 0) { - const labelValue = labelValueProvider(); - if (labelValue.length <= 0) { - throw new Error(\\"Empty value provided for input HTTP label: \\" + memberName + \\".\\"); - } - resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split(\\"/\\").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join(\\"/\\") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); - } else { - throw new Error(\\"No value provided for input HTTP label: \\" + memberName + \\".\\"); - } - return resolvedPath2; - }; - exports2.resolvedPath = resolvedPath; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js -var require_ser_utils = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.serializeFloat = void 0; - var serializeFloat = (value) => { - if (value !== value) { - return \\"NaN\\"; - } - switch (value) { - case Infinity: - return \\"Infinity\\"; - case -Infinity: - return \\"-Infinity\\"; - default: - return value; - } - }; - exports2.serializeFloat = serializeFloat; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js -var require_split_every = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.splitEvery = void 0; - function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error(\\"Invalid number of delimiters (\\" + numDelimiters + \\") for splitEvery.\\"); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = \\"\\"; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === \\"\\") { - currentSegment = segments[i]; - } else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = \\"\\"; - } - } - if (currentSegment !== \\"\\") { - compoundSegments.push(currentSegment); - } - return compoundSegments; - } - exports2.splitEvery = splitEvery; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/index.js -var require_dist_cjs3 = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_client(), exports2); - tslib_1.__exportStar(require_command(), exports2); - tslib_1.__exportStar(require_constants(), exports2); - tslib_1.__exportStar(require_date_utils(), exports2); - tslib_1.__exportStar(require_default_error_handler(), exports2); - tslib_1.__exportStar(require_defaults_mode(), exports2); - tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports2); - tslib_1.__exportStar(require_exceptions(), exports2); - tslib_1.__exportStar(require_extended_encode_uri_component(), exports2); - tslib_1.__exportStar(require_get_array_if_single_item(), exports2); - tslib_1.__exportStar(require_get_value_from_text_node(), exports2); - tslib_1.__exportStar(require_lazy_json(), exports2); - tslib_1.__exportStar(require_object_mapping(), exports2); - tslib_1.__exportStar(require_parse_utils(), exports2); - tslib_1.__exportStar(require_resolve_path(), exports2); - tslib_1.__exportStar(require_ser_utils(), exports2); - tslib_1.__exportStar(require_split_every(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js -var require_DynamoDBServiceException = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDBServiceException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var DynamoDBServiceException = class extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, DynamoDBServiceException.prototype); - } - }; - exports2.DynamoDBServiceException = DynamoDBServiceException; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js -var require_models_0 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ProjectionFilterSensitiveLog = exports2.SourceTableDetailsFilterSensitiveLog = exports2.ProvisionedThroughputFilterSensitiveLog = exports2.KeySchemaElementFilterSensitiveLog = exports2.BackupDetailsFilterSensitiveLog = exports2.AutoScalingSettingsUpdateFilterSensitiveLog = exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = exports2.AutoScalingPolicyUpdateFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = exports2.AttributeDefinitionFilterSensitiveLog = exports2.ArchivalSummaryFilterSensitiveLog = exports2.TransactionCanceledException = exports2.AttributeValue = exports2.IndexNotFoundException = exports2.ReplicaNotFoundException = exports2.ReplicaAlreadyExistsException = exports2.InvalidRestoreTimeException = exports2.TableAlreadyExistsException = exports2.PointInTimeRecoveryUnavailableException = exports2.InvalidExportTimeException = exports2.ExportConflictException = exports2.TransactionInProgressException = exports2.IdempotentParameterMismatchException = exports2.DuplicateItemException = exports2.GlobalTableNotFoundException = exports2.ExportNotFoundException = exports2.ExportStatus = exports2.ExportFormat = exports2.TransactionConflictException = exports2.ResourceInUseException = exports2.GlobalTableAlreadyExistsException = exports2.TableClass = exports2.TableNotFoundException = exports2.TableInUseException = exports2.LimitExceededException = exports2.ContinuousBackupsUnavailableException = exports2.ConditionalCheckFailedException = exports2.ItemCollectionSizeLimitExceededException = exports2.ResourceNotFoundException = exports2.ProvisionedThroughputExceededException = exports2.InvalidEndpointException = exports2.RequestLimitExceeded = exports2.InternalServerError = exports2.BatchStatementErrorCodeEnum = exports2.BackupTypeFilter = exports2.BackupNotFoundException = exports2.BackupInUseException = exports2.BackupType = void 0; - exports2.DescribeContinuousBackupsInputFilterSensitiveLog = exports2.DescribeBackupOutputFilterSensitiveLog = exports2.DescribeBackupInputFilterSensitiveLog = exports2.DeleteTableOutputFilterSensitiveLog = exports2.DeleteTableInputFilterSensitiveLog = exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = exports2.DeleteReplicaActionFilterSensitiveLog = exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = exports2.DeleteBackupOutputFilterSensitiveLog = exports2.DeleteBackupInputFilterSensitiveLog = exports2.CreateTableOutputFilterSensitiveLog = exports2.TableDescriptionFilterSensitiveLog = exports2.RestoreSummaryFilterSensitiveLog = exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = exports2.CreateTableInputFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.SSESpecificationFilterSensitiveLog = exports2.LocalSecondaryIndexFilterSensitiveLog = exports2.GlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicaActionFilterSensitiveLog = exports2.CreateGlobalTableOutputFilterSensitiveLog = exports2.GlobalTableDescriptionFilterSensitiveLog = exports2.ReplicaDescriptionFilterSensitiveLog = exports2.TableClassSummaryFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputOverrideFilterSensitiveLog = exports2.CreateGlobalTableInputFilterSensitiveLog = exports2.ReplicaFilterSensitiveLog = exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.CreateBackupOutputFilterSensitiveLog = exports2.CreateBackupInputFilterSensitiveLog = exports2.ContributorInsightsSummaryFilterSensitiveLog = exports2.ContinuousBackupsDescriptionFilterSensitiveLog = exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = exports2.BillingModeSummaryFilterSensitiveLog = exports2.BatchStatementErrorFilterSensitiveLog = exports2.ConsumedCapacityFilterSensitiveLog = exports2.CapacityFilterSensitiveLog = exports2.BackupSummaryFilterSensitiveLog = exports2.BackupDescriptionFilterSensitiveLog = exports2.SourceTableFeatureDetailsFilterSensitiveLog = exports2.TimeToLiveDescriptionFilterSensitiveLog = exports2.StreamSpecificationFilterSensitiveLog = exports2.SSEDescriptionFilterSensitiveLog = exports2.LocalSecondaryIndexInfoFilterSensitiveLog = exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = void 0; - exports2.RestoreTableFromBackupOutputFilterSensitiveLog = exports2.RestoreTableFromBackupInputFilterSensitiveLog = exports2.ListTagsOfResourceOutputFilterSensitiveLog = exports2.ListTagsOfResourceInputFilterSensitiveLog = exports2.ListTablesOutputFilterSensitiveLog = exports2.ListTablesInputFilterSensitiveLog = exports2.ListGlobalTablesOutputFilterSensitiveLog = exports2.GlobalTableFilterSensitiveLog = exports2.ListGlobalTablesInputFilterSensitiveLog = exports2.ListExportsOutputFilterSensitiveLog = exports2.ExportSummaryFilterSensitiveLog = exports2.ListExportsInputFilterSensitiveLog = exports2.ListContributorInsightsOutputFilterSensitiveLog = exports2.ListContributorInsightsInputFilterSensitiveLog = exports2.ListBackupsOutputFilterSensitiveLog = exports2.ListBackupsInputFilterSensitiveLog = exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = exports2.ExportTableToPointInTimeInputFilterSensitiveLog = exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeTimeToLiveOutputFilterSensitiveLog = exports2.DescribeTimeToLiveInputFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.TableAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = exports2.DescribeTableOutputFilterSensitiveLog = exports2.DescribeTableInputFilterSensitiveLog = exports2.DescribeLimitsOutputFilterSensitiveLog = exports2.DescribeLimitsInputFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisDataStreamDestinationFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = exports2.ReplicaSettingsDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = exports2.DescribeGlobalTableOutputFilterSensitiveLog = exports2.DescribeGlobalTableInputFilterSensitiveLog = exports2.DescribeExportOutputFilterSensitiveLog = exports2.ExportDescriptionFilterSensitiveLog = exports2.DescribeExportInputFilterSensitiveLog = exports2.DescribeEndpointsResponseFilterSensitiveLog = exports2.EndpointFilterSensitiveLog = exports2.DescribeEndpointsRequestFilterSensitiveLog = exports2.DescribeContributorInsightsOutputFilterSensitiveLog = exports2.FailureExceptionFilterSensitiveLog = exports2.DescribeContributorInsightsInputFilterSensitiveLog = exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = void 0; - exports2.BatchExecuteStatementOutputFilterSensitiveLog = exports2.BatchExecuteStatementInputFilterSensitiveLog = exports2.TransactGetItemFilterSensitiveLog = exports2.KeysAndAttributesFilterSensitiveLog = exports2.PutRequestFilterSensitiveLog = exports2.ParameterizedStatementFilterSensitiveLog = exports2.ItemResponseFilterSensitiveLog = exports2.ItemCollectionMetricsFilterSensitiveLog = exports2.GetItemOutputFilterSensitiveLog = exports2.GetItemInputFilterSensitiveLog = exports2.GetFilterSensitiveLog = exports2.ExecuteStatementInputFilterSensitiveLog = exports2.DeleteRequestFilterSensitiveLog = exports2.ConditionFilterSensitiveLog = exports2.CancellationReasonFilterSensitiveLog = exports2.BatchStatementResponseFilterSensitiveLog = exports2.BatchStatementRequestFilterSensitiveLog = exports2.AttributeValueUpdateFilterSensitiveLog = exports2.AttributeValueFilterSensitiveLog = exports2.UpdateTimeToLiveOutputFilterSensitiveLog = exports2.UpdateTimeToLiveInputFilterSensitiveLog = exports2.TimeToLiveSpecificationFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.UpdateTableOutputFilterSensitiveLog = exports2.UpdateTableInputFilterSensitiveLog = exports2.ReplicationGroupUpdateFilterSensitiveLog = exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = exports2.ReplicaSettingsUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.UpdateGlobalTableOutputFilterSensitiveLog = exports2.UpdateGlobalTableInputFilterSensitiveLog = exports2.ReplicaUpdateFilterSensitiveLog = exports2.UpdateContributorInsightsOutputFilterSensitiveLog = exports2.UpdateContributorInsightsInputFilterSensitiveLog = exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = exports2.UpdateContinuousBackupsInputFilterSensitiveLog = exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = exports2.UntagResourceInputFilterSensitiveLog = exports2.TagResourceInputFilterSensitiveLog = exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = void 0; - exports2.TransactWriteItemsInputFilterSensitiveLog = exports2.TransactWriteItemFilterSensitiveLog = exports2.UpdateItemInputFilterSensitiveLog = exports2.BatchWriteItemOutputFilterSensitiveLog = exports2.QueryInputFilterSensitiveLog = exports2.PutItemInputFilterSensitiveLog = exports2.DeleteItemInputFilterSensitiveLog = exports2.BatchWriteItemInputFilterSensitiveLog = exports2.ScanInputFilterSensitiveLog = exports2.BatchGetItemOutputFilterSensitiveLog = exports2.WriteRequestFilterSensitiveLog = exports2.UpdateItemOutputFilterSensitiveLog = exports2.ScanOutputFilterSensitiveLog = exports2.QueryOutputFilterSensitiveLog = exports2.PutItemOutputFilterSensitiveLog = exports2.ExecuteStatementOutputFilterSensitiveLog = exports2.DeleteItemOutputFilterSensitiveLog = exports2.UpdateFilterSensitiveLog = exports2.PutFilterSensitiveLog = exports2.DeleteFilterSensitiveLog = exports2.ConditionCheckFilterSensitiveLog = exports2.TransactWriteItemsOutputFilterSensitiveLog = exports2.TransactGetItemsInputFilterSensitiveLog = exports2.ExpectedAttributeValueFilterSensitiveLog = exports2.BatchGetItemInputFilterSensitiveLog = exports2.TransactGetItemsOutputFilterSensitiveLog = exports2.ExecuteTransactionOutputFilterSensitiveLog = exports2.ExecuteTransactionInputFilterSensitiveLog = void 0; - var DynamoDBServiceException_1 = require_DynamoDBServiceException(); - var BackupType; - (function(BackupType2) { - BackupType2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; - BackupType2[\\"SYSTEM\\"] = \\"SYSTEM\\"; - BackupType2[\\"USER\\"] = \\"USER\\"; - })(BackupType = exports2.BackupType || (exports2.BackupType = {})); - var BackupInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"BackupInUseException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"BackupInUseException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, BackupInUseException.prototype); - } - }; - exports2.BackupInUseException = BackupInUseException; - var BackupNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"BackupNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"BackupNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, BackupNotFoundException.prototype); - } - }; - exports2.BackupNotFoundException = BackupNotFoundException; - var BackupTypeFilter; - (function(BackupTypeFilter2) { - BackupTypeFilter2[\\"ALL\\"] = \\"ALL\\"; - BackupTypeFilter2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; - BackupTypeFilter2[\\"SYSTEM\\"] = \\"SYSTEM\\"; - BackupTypeFilter2[\\"USER\\"] = \\"USER\\"; - })(BackupTypeFilter = exports2.BackupTypeFilter || (exports2.BackupTypeFilter = {})); - var BatchStatementErrorCodeEnum; - (function(BatchStatementErrorCodeEnum2) { - BatchStatementErrorCodeEnum2[\\"AccessDenied\\"] = \\"AccessDenied\\"; - BatchStatementErrorCodeEnum2[\\"ConditionalCheckFailed\\"] = \\"ConditionalCheckFailed\\"; - BatchStatementErrorCodeEnum2[\\"DuplicateItem\\"] = \\"DuplicateItem\\"; - BatchStatementErrorCodeEnum2[\\"InternalServerError\\"] = \\"InternalServerError\\"; - BatchStatementErrorCodeEnum2[\\"ItemCollectionSizeLimitExceeded\\"] = \\"ItemCollectionSizeLimitExceeded\\"; - BatchStatementErrorCodeEnum2[\\"ProvisionedThroughputExceeded\\"] = \\"ProvisionedThroughputExceeded\\"; - BatchStatementErrorCodeEnum2[\\"RequestLimitExceeded\\"] = \\"RequestLimitExceeded\\"; - BatchStatementErrorCodeEnum2[\\"ResourceNotFound\\"] = \\"ResourceNotFound\\"; - BatchStatementErrorCodeEnum2[\\"ThrottlingError\\"] = \\"ThrottlingError\\"; - BatchStatementErrorCodeEnum2[\\"TransactionConflict\\"] = \\"TransactionConflict\\"; - BatchStatementErrorCodeEnum2[\\"ValidationError\\"] = \\"ValidationError\\"; - })(BatchStatementErrorCodeEnum = exports2.BatchStatementErrorCodeEnum || (exports2.BatchStatementErrorCodeEnum = {})); - var InternalServerError = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InternalServerError\\", - $fault: \\"server\\", - ...opts - }); - this.name = \\"InternalServerError\\"; - this.$fault = \\"server\\"; - Object.setPrototypeOf(this, InternalServerError.prototype); - } - }; - exports2.InternalServerError = InternalServerError; - var RequestLimitExceeded = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"RequestLimitExceeded\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"RequestLimitExceeded\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, RequestLimitExceeded.prototype); - } - }; - exports2.RequestLimitExceeded = RequestLimitExceeded; - var InvalidEndpointException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InvalidEndpointException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidEndpointException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidEndpointException.prototype); - this.Message = opts.Message; - } - }; - exports2.InvalidEndpointException = InvalidEndpointException; - var ProvisionedThroughputExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ProvisionedThroughputExceededException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ProvisionedThroughputExceededException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype); - } - }; - exports2.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException; - var ResourceNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ResourceNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ResourceNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } - }; - exports2.ResourceNotFoundException = ResourceNotFoundException; - var ItemCollectionSizeLimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ItemCollectionSizeLimitExceededException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ItemCollectionSizeLimitExceededException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype); - } - }; - exports2.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException; - var ConditionalCheckFailedException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ConditionalCheckFailedException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ConditionalCheckFailedException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype); - } - }; - exports2.ConditionalCheckFailedException = ConditionalCheckFailedException; - var ContinuousBackupsUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ContinuousBackupsUnavailableException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ContinuousBackupsUnavailableException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype); - } - }; - exports2.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException; - var LimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"LimitExceededException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"LimitExceededException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, LimitExceededException.prototype); - } - }; - exports2.LimitExceededException = LimitExceededException; - var TableInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TableInUseException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TableInUseException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TableInUseException.prototype); - } - }; - exports2.TableInUseException = TableInUseException; - var TableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TableNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TableNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TableNotFoundException.prototype); - } - }; - exports2.TableNotFoundException = TableNotFoundException; - var TableClass; - (function(TableClass2) { - TableClass2[\\"STANDARD\\"] = \\"STANDARD\\"; - TableClass2[\\"STANDARD_INFREQUENT_ACCESS\\"] = \\"STANDARD_INFREQUENT_ACCESS\\"; - })(TableClass = exports2.TableClass || (exports2.TableClass = {})); - var GlobalTableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"GlobalTableAlreadyExistsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"GlobalTableAlreadyExistsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype); - } - }; - exports2.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException; - var ResourceInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ResourceInUseException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ResourceInUseException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - } - }; - exports2.ResourceInUseException = ResourceInUseException; - var TransactionConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TransactionConflictException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TransactionConflictException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TransactionConflictException.prototype); - } - }; - exports2.TransactionConflictException = TransactionConflictException; - var ExportFormat; - (function(ExportFormat2) { - ExportFormat2[\\"DYNAMODB_JSON\\"] = \\"DYNAMODB_JSON\\"; - ExportFormat2[\\"ION\\"] = \\"ION\\"; - })(ExportFormat = exports2.ExportFormat || (exports2.ExportFormat = {})); - var ExportStatus; - (function(ExportStatus2) { - ExportStatus2[\\"COMPLETED\\"] = \\"COMPLETED\\"; - ExportStatus2[\\"FAILED\\"] = \\"FAILED\\"; - ExportStatus2[\\"IN_PROGRESS\\"] = \\"IN_PROGRESS\\"; - })(ExportStatus = exports2.ExportStatus || (exports2.ExportStatus = {})); - var ExportNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ExportNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ExportNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ExportNotFoundException.prototype); - } - }; - exports2.ExportNotFoundException = ExportNotFoundException; - var GlobalTableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"GlobalTableNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"GlobalTableNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype); - } - }; - exports2.GlobalTableNotFoundException = GlobalTableNotFoundException; - var DuplicateItemException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"DuplicateItemException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"DuplicateItemException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, DuplicateItemException.prototype); - } - }; - exports2.DuplicateItemException = DuplicateItemException; - var IdempotentParameterMismatchException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"IdempotentParameterMismatchException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IdempotentParameterMismatchException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype); - this.Message = opts.Message; - } - }; - exports2.IdempotentParameterMismatchException = IdempotentParameterMismatchException; - var TransactionInProgressException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TransactionInProgressException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TransactionInProgressException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TransactionInProgressException.prototype); - this.Message = opts.Message; - } - }; - exports2.TransactionInProgressException = TransactionInProgressException; - var ExportConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ExportConflictException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ExportConflictException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ExportConflictException.prototype); - } - }; - exports2.ExportConflictException = ExportConflictException; - var InvalidExportTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InvalidExportTimeException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidExportTimeException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidExportTimeException.prototype); - } - }; - exports2.InvalidExportTimeException = InvalidExportTimeException; - var PointInTimeRecoveryUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"PointInTimeRecoveryUnavailableException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"PointInTimeRecoveryUnavailableException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype); - } - }; - exports2.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException; - var TableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TableAlreadyExistsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TableAlreadyExistsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TableAlreadyExistsException.prototype); - } - }; - exports2.TableAlreadyExistsException = TableAlreadyExistsException; - var InvalidRestoreTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InvalidRestoreTimeException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidRestoreTimeException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype); - } - }; - exports2.InvalidRestoreTimeException = InvalidRestoreTimeException; - var ReplicaAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ReplicaAlreadyExistsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ReplicaAlreadyExistsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype); - } - }; - exports2.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException; - var ReplicaNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ReplicaNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ReplicaNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ReplicaNotFoundException.prototype); - } - }; - exports2.ReplicaNotFoundException = ReplicaNotFoundException; - var IndexNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"IndexNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IndexNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IndexNotFoundException.prototype); - } - }; - exports2.IndexNotFoundException = IndexNotFoundException; - var AttributeValue; - (function(AttributeValue2) { - AttributeValue2.visit = (value, visitor) => { - if (value.S !== void 0) - return visitor.S(value.S); - if (value.N !== void 0) - return visitor.N(value.N); - if (value.B !== void 0) - return visitor.B(value.B); - if (value.SS !== void 0) - return visitor.SS(value.SS); - if (value.NS !== void 0) - return visitor.NS(value.NS); - if (value.BS !== void 0) - return visitor.BS(value.BS); - if (value.M !== void 0) - return visitor.M(value.M); - if (value.L !== void 0) - return visitor.L(value.L); - if (value.NULL !== void 0) - return visitor.NULL(value.NULL); - if (value.BOOL !== void 0) - return visitor.BOOL(value.BOOL); - return visitor._(value.$unknown[0], value.$unknown[1]); - }; - })(AttributeValue = exports2.AttributeValue || (exports2.AttributeValue = {})); - var TransactionCanceledException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TransactionCanceledException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TransactionCanceledException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TransactionCanceledException.prototype); - this.Message = opts.Message; - this.CancellationReasons = opts.CancellationReasons; - } - }; - exports2.TransactionCanceledException = TransactionCanceledException; - var ArchivalSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ArchivalSummaryFilterSensitiveLog = ArchivalSummaryFilterSensitiveLog; - var AttributeDefinitionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AttributeDefinitionFilterSensitiveLog = AttributeDefinitionFilterSensitiveLog; - var AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog; - var AutoScalingPolicyDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = AutoScalingPolicyDescriptionFilterSensitiveLog; - var AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog; - var AutoScalingPolicyUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingPolicyUpdateFilterSensitiveLog = AutoScalingPolicyUpdateFilterSensitiveLog; - var AutoScalingSettingsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = AutoScalingSettingsDescriptionFilterSensitiveLog; - var AutoScalingSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingSettingsUpdateFilterSensitiveLog = AutoScalingSettingsUpdateFilterSensitiveLog; - var BackupDetailsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BackupDetailsFilterSensitiveLog = BackupDetailsFilterSensitiveLog; - var KeySchemaElementFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KeySchemaElementFilterSensitiveLog = KeySchemaElementFilterSensitiveLog; - var ProvisionedThroughputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProvisionedThroughputFilterSensitiveLog = ProvisionedThroughputFilterSensitiveLog; - var SourceTableDetailsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SourceTableDetailsFilterSensitiveLog = SourceTableDetailsFilterSensitiveLog; - var ProjectionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProjectionFilterSensitiveLog = ProjectionFilterSensitiveLog; - var GlobalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = GlobalSecondaryIndexInfoFilterSensitiveLog; - var LocalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.LocalSecondaryIndexInfoFilterSensitiveLog = LocalSecondaryIndexInfoFilterSensitiveLog; - var SSEDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SSEDescriptionFilterSensitiveLog = SSEDescriptionFilterSensitiveLog; - var StreamSpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.StreamSpecificationFilterSensitiveLog = StreamSpecificationFilterSensitiveLog; - var TimeToLiveDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TimeToLiveDescriptionFilterSensitiveLog = TimeToLiveDescriptionFilterSensitiveLog; - var SourceTableFeatureDetailsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SourceTableFeatureDetailsFilterSensitiveLog = SourceTableFeatureDetailsFilterSensitiveLog; - var BackupDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BackupDescriptionFilterSensitiveLog = BackupDescriptionFilterSensitiveLog; - var BackupSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BackupSummaryFilterSensitiveLog = BackupSummaryFilterSensitiveLog; - var CapacityFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CapacityFilterSensitiveLog = CapacityFilterSensitiveLog; - var ConsumedCapacityFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ConsumedCapacityFilterSensitiveLog = ConsumedCapacityFilterSensitiveLog; - var BatchStatementErrorFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BatchStatementErrorFilterSensitiveLog = BatchStatementErrorFilterSensitiveLog; - var BillingModeSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BillingModeSummaryFilterSensitiveLog = BillingModeSummaryFilterSensitiveLog; - var PointInTimeRecoveryDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = PointInTimeRecoveryDescriptionFilterSensitiveLog; - var ContinuousBackupsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ContinuousBackupsDescriptionFilterSensitiveLog = ContinuousBackupsDescriptionFilterSensitiveLog; - var ContributorInsightsSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ContributorInsightsSummaryFilterSensitiveLog = ContributorInsightsSummaryFilterSensitiveLog; - var CreateBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateBackupInputFilterSensitiveLog = CreateBackupInputFilterSensitiveLog; - var CreateBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateBackupOutputFilterSensitiveLog = CreateBackupOutputFilterSensitiveLog; - var CreateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = CreateGlobalSecondaryIndexActionFilterSensitiveLog; - var ReplicaFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaFilterSensitiveLog = ReplicaFilterSensitiveLog; - var CreateGlobalTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateGlobalTableInputFilterSensitiveLog = CreateGlobalTableInputFilterSensitiveLog; - var ProvisionedThroughputOverrideFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProvisionedThroughputOverrideFilterSensitiveLog = ProvisionedThroughputOverrideFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog; - var TableClassSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableClassSummaryFilterSensitiveLog = TableClassSummaryFilterSensitiveLog; - var ReplicaDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaDescriptionFilterSensitiveLog = ReplicaDescriptionFilterSensitiveLog; - var GlobalTableDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalTableDescriptionFilterSensitiveLog = GlobalTableDescriptionFilterSensitiveLog; - var CreateGlobalTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateGlobalTableOutputFilterSensitiveLog = CreateGlobalTableOutputFilterSensitiveLog; - var CreateReplicaActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateReplicaActionFilterSensitiveLog = CreateReplicaActionFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = ReplicaGlobalSecondaryIndexFilterSensitiveLog; - var CreateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = CreateReplicationGroupMemberActionFilterSensitiveLog; - var GlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexFilterSensitiveLog = GlobalSecondaryIndexFilterSensitiveLog; - var LocalSecondaryIndexFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.LocalSecondaryIndexFilterSensitiveLog = LocalSecondaryIndexFilterSensitiveLog; - var SSESpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SSESpecificationFilterSensitiveLog = SSESpecificationFilterSensitiveLog; - var TagFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; - var CreateTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateTableInputFilterSensitiveLog = CreateTableInputFilterSensitiveLog; - var ProvisionedThroughputDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = ProvisionedThroughputDescriptionFilterSensitiveLog; - var GlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = GlobalSecondaryIndexDescriptionFilterSensitiveLog; - var LocalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = LocalSecondaryIndexDescriptionFilterSensitiveLog; - var RestoreSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreSummaryFilterSensitiveLog = RestoreSummaryFilterSensitiveLog; - var TableDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableDescriptionFilterSensitiveLog = TableDescriptionFilterSensitiveLog; - var CreateTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateTableOutputFilterSensitiveLog = CreateTableOutputFilterSensitiveLog; - var DeleteBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteBackupInputFilterSensitiveLog = DeleteBackupInputFilterSensitiveLog; - var DeleteBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteBackupOutputFilterSensitiveLog = DeleteBackupOutputFilterSensitiveLog; - var DeleteGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = DeleteGlobalSecondaryIndexActionFilterSensitiveLog; - var DeleteReplicaActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteReplicaActionFilterSensitiveLog = DeleteReplicaActionFilterSensitiveLog; - var DeleteReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = DeleteReplicationGroupMemberActionFilterSensitiveLog; - var DeleteTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteTableInputFilterSensitiveLog = DeleteTableInputFilterSensitiveLog; - var DeleteTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteTableOutputFilterSensitiveLog = DeleteTableOutputFilterSensitiveLog; - var DescribeBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeBackupInputFilterSensitiveLog = DescribeBackupInputFilterSensitiveLog; - var DescribeBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeBackupOutputFilterSensitiveLog = DescribeBackupOutputFilterSensitiveLog; - var DescribeContinuousBackupsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContinuousBackupsInputFilterSensitiveLog = DescribeContinuousBackupsInputFilterSensitiveLog; - var DescribeContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = DescribeContinuousBackupsOutputFilterSensitiveLog; - var DescribeContributorInsightsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContributorInsightsInputFilterSensitiveLog = DescribeContributorInsightsInputFilterSensitiveLog; - var FailureExceptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.FailureExceptionFilterSensitiveLog = FailureExceptionFilterSensitiveLog; - var DescribeContributorInsightsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContributorInsightsOutputFilterSensitiveLog = DescribeContributorInsightsOutputFilterSensitiveLog; - var DescribeEndpointsRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeEndpointsRequestFilterSensitiveLog = DescribeEndpointsRequestFilterSensitiveLog; - var EndpointFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.EndpointFilterSensitiveLog = EndpointFilterSensitiveLog; - var DescribeEndpointsResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeEndpointsResponseFilterSensitiveLog = DescribeEndpointsResponseFilterSensitiveLog; - var DescribeExportInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeExportInputFilterSensitiveLog = DescribeExportInputFilterSensitiveLog; - var ExportDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportDescriptionFilterSensitiveLog = ExportDescriptionFilterSensitiveLog; - var DescribeExportOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeExportOutputFilterSensitiveLog = DescribeExportOutputFilterSensitiveLog; - var DescribeGlobalTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableInputFilterSensitiveLog = DescribeGlobalTableInputFilterSensitiveLog; - var DescribeGlobalTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableOutputFilterSensitiveLog = DescribeGlobalTableOutputFilterSensitiveLog; - var DescribeGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = DescribeGlobalTableSettingsInputFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog; - var ReplicaSettingsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaSettingsDescriptionFilterSensitiveLog = ReplicaSettingsDescriptionFilterSensitiveLog; - var DescribeGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = DescribeGlobalTableSettingsOutputFilterSensitiveLog; - var DescribeKinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = DescribeKinesisStreamingDestinationInputFilterSensitiveLog; - var KinesisDataStreamDestinationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KinesisDataStreamDestinationFilterSensitiveLog = KinesisDataStreamDestinationFilterSensitiveLog; - var DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = DescribeKinesisStreamingDestinationOutputFilterSensitiveLog; - var DescribeLimitsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeLimitsInputFilterSensitiveLog = DescribeLimitsInputFilterSensitiveLog; - var DescribeLimitsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeLimitsOutputFilterSensitiveLog = DescribeLimitsOutputFilterSensitiveLog; - var DescribeTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableInputFilterSensitiveLog = DescribeTableInputFilterSensitiveLog; - var DescribeTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableOutputFilterSensitiveLog = DescribeTableOutputFilterSensitiveLog; - var DescribeTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = DescribeTableReplicaAutoScalingInputFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog; - var ReplicaAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = ReplicaAutoScalingDescriptionFilterSensitiveLog; - var TableAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableAutoScalingDescriptionFilterSensitiveLog = TableAutoScalingDescriptionFilterSensitiveLog; - var DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = DescribeTableReplicaAutoScalingOutputFilterSensitiveLog; - var DescribeTimeToLiveInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTimeToLiveInputFilterSensitiveLog = DescribeTimeToLiveInputFilterSensitiveLog; - var DescribeTimeToLiveOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTimeToLiveOutputFilterSensitiveLog = DescribeTimeToLiveOutputFilterSensitiveLog; - var KinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KinesisStreamingDestinationInputFilterSensitiveLog = KinesisStreamingDestinationInputFilterSensitiveLog; - var KinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = KinesisStreamingDestinationOutputFilterSensitiveLog; - var ExportTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportTableToPointInTimeInputFilterSensitiveLog = ExportTableToPointInTimeInputFilterSensitiveLog; - var ExportTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = ExportTableToPointInTimeOutputFilterSensitiveLog; - var ListBackupsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListBackupsInputFilterSensitiveLog = ListBackupsInputFilterSensitiveLog; - var ListBackupsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListBackupsOutputFilterSensitiveLog = ListBackupsOutputFilterSensitiveLog; - var ListContributorInsightsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListContributorInsightsInputFilterSensitiveLog = ListContributorInsightsInputFilterSensitiveLog; - var ListContributorInsightsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListContributorInsightsOutputFilterSensitiveLog = ListContributorInsightsOutputFilterSensitiveLog; - var ListExportsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListExportsInputFilterSensitiveLog = ListExportsInputFilterSensitiveLog; - var ExportSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportSummaryFilterSensitiveLog = ExportSummaryFilterSensitiveLog; - var ListExportsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListExportsOutputFilterSensitiveLog = ListExportsOutputFilterSensitiveLog; - var ListGlobalTablesInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListGlobalTablesInputFilterSensitiveLog = ListGlobalTablesInputFilterSensitiveLog; - var GlobalTableFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalTableFilterSensitiveLog = GlobalTableFilterSensitiveLog; - var ListGlobalTablesOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListGlobalTablesOutputFilterSensitiveLog = ListGlobalTablesOutputFilterSensitiveLog; - var ListTablesInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTablesInputFilterSensitiveLog = ListTablesInputFilterSensitiveLog; - var ListTablesOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTablesOutputFilterSensitiveLog = ListTablesOutputFilterSensitiveLog; - var ListTagsOfResourceInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTagsOfResourceInputFilterSensitiveLog = ListTagsOfResourceInputFilterSensitiveLog; - var ListTagsOfResourceOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTagsOfResourceOutputFilterSensitiveLog = ListTagsOfResourceOutputFilterSensitiveLog; - var RestoreTableFromBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableFromBackupInputFilterSensitiveLog = RestoreTableFromBackupInputFilterSensitiveLog; - var RestoreTableFromBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableFromBackupOutputFilterSensitiveLog = RestoreTableFromBackupOutputFilterSensitiveLog; - var RestoreTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = RestoreTableToPointInTimeInputFilterSensitiveLog; - var RestoreTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = RestoreTableToPointInTimeOutputFilterSensitiveLog; - var TagResourceInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog; - var UntagResourceInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog; - var PointInTimeRecoverySpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = PointInTimeRecoverySpecificationFilterSensitiveLog; - var UpdateContinuousBackupsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContinuousBackupsInputFilterSensitiveLog = UpdateContinuousBackupsInputFilterSensitiveLog; - var UpdateContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = UpdateContinuousBackupsOutputFilterSensitiveLog; - var UpdateContributorInsightsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContributorInsightsInputFilterSensitiveLog = UpdateContributorInsightsInputFilterSensitiveLog; - var UpdateContributorInsightsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContributorInsightsOutputFilterSensitiveLog = UpdateContributorInsightsOutputFilterSensitiveLog; - var ReplicaUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaUpdateFilterSensitiveLog = ReplicaUpdateFilterSensitiveLog; - var UpdateGlobalTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableInputFilterSensitiveLog = UpdateGlobalTableInputFilterSensitiveLog; - var UpdateGlobalTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableOutputFilterSensitiveLog = UpdateGlobalTableOutputFilterSensitiveLog; - var GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; - var ReplicaSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaSettingsUpdateFilterSensitiveLog = ReplicaSettingsUpdateFilterSensitiveLog; - var UpdateGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = UpdateGlobalTableSettingsInputFilterSensitiveLog; - var UpdateGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = UpdateGlobalTableSettingsOutputFilterSensitiveLog; - var UpdateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = UpdateGlobalSecondaryIndexActionFilterSensitiveLog; - var GlobalSecondaryIndexUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = GlobalSecondaryIndexUpdateFilterSensitiveLog; - var UpdateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = UpdateReplicationGroupMemberActionFilterSensitiveLog; - var ReplicationGroupUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicationGroupUpdateFilterSensitiveLog = ReplicationGroupUpdateFilterSensitiveLog; - var UpdateTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableInputFilterSensitiveLog = UpdateTableInputFilterSensitiveLog; - var UpdateTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableOutputFilterSensitiveLog = UpdateTableOutputFilterSensitiveLog; - var GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; - var ReplicaAutoScalingUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = ReplicaAutoScalingUpdateFilterSensitiveLog; - var UpdateTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = UpdateTableReplicaAutoScalingInputFilterSensitiveLog; - var UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = UpdateTableReplicaAutoScalingOutputFilterSensitiveLog; - var TimeToLiveSpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TimeToLiveSpecificationFilterSensitiveLog = TimeToLiveSpecificationFilterSensitiveLog; - var UpdateTimeToLiveInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTimeToLiveInputFilterSensitiveLog = UpdateTimeToLiveInputFilterSensitiveLog; - var UpdateTimeToLiveOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTimeToLiveOutputFilterSensitiveLog = UpdateTimeToLiveOutputFilterSensitiveLog; - var AttributeValueFilterSensitiveLog = (obj) => { - if (obj.S !== void 0) - return { S: obj.S }; - if (obj.N !== void 0) - return { N: obj.N }; - if (obj.B !== void 0) - return { B: obj.B }; - if (obj.SS !== void 0) - return { SS: obj.SS }; - if (obj.NS !== void 0) - return { NS: obj.NS }; - if (obj.BS !== void 0) - return { BS: obj.BS }; - if (obj.M !== void 0) - return { - M: Object.entries(obj.M).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }; - if (obj.L !== void 0) - return { L: obj.L.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) }; - if (obj.NULL !== void 0) - return { NULL: obj.NULL }; - if (obj.BOOL !== void 0) - return { BOOL: obj.BOOL }; - if (obj.$unknown !== void 0) - return { [obj.$unknown[0]]: \\"UNKNOWN\\" }; - }; - exports2.AttributeValueFilterSensitiveLog = AttributeValueFilterSensitiveLog; - var AttributeValueUpdateFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) } - }); - exports2.AttributeValueUpdateFilterSensitiveLog = AttributeValueUpdateFilterSensitiveLog; - var BatchStatementRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } - }); - exports2.BatchStatementRequestFilterSensitiveLog = BatchStatementRequestFilterSensitiveLog; - var BatchStatementResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.BatchStatementResponseFilterSensitiveLog = BatchStatementResponseFilterSensitiveLog; - var CancellationReasonFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.CancellationReasonFilterSensitiveLog = CancellationReasonFilterSensitiveLog; - var ConditionFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.AttributeValueList && { - AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) - } - }); - exports2.ConditionFilterSensitiveLog = ConditionFilterSensitiveLog; - var DeleteRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.DeleteRequestFilterSensitiveLog = DeleteRequestFilterSensitiveLog; - var ExecuteStatementInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } - }); - exports2.ExecuteStatementInputFilterSensitiveLog = ExecuteStatementInputFilterSensitiveLog; - var GetFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.GetFilterSensitiveLog = GetFilterSensitiveLog; - var GetItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.GetItemInputFilterSensitiveLog = GetItemInputFilterSensitiveLog; - var GetItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.GetItemOutputFilterSensitiveLog = GetItemOutputFilterSensitiveLog; - var ItemCollectionMetricsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ItemCollectionKey && { - ItemCollectionKey: Object.entries(obj.ItemCollectionKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ItemCollectionMetricsFilterSensitiveLog = ItemCollectionMetricsFilterSensitiveLog; - var ItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ItemResponseFilterSensitiveLog = ItemResponseFilterSensitiveLog; - var ParameterizedStatementFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } - }); - exports2.ParameterizedStatementFilterSensitiveLog = ParameterizedStatementFilterSensitiveLog; - var PutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.PutRequestFilterSensitiveLog = PutRequestFilterSensitiveLog; - var KeysAndAttributesFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Keys && { - Keys: obj.Keys.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - } - }); - exports2.KeysAndAttributesFilterSensitiveLog = KeysAndAttributesFilterSensitiveLog; - var TransactGetItemFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Get && { Get: (0, exports2.GetFilterSensitiveLog)(obj.Get) } - }); - exports2.TransactGetItemFilterSensitiveLog = TransactGetItemFilterSensitiveLog; - var BatchExecuteStatementInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Statements && { Statements: obj.Statements.map((item) => (0, exports2.BatchStatementRequestFilterSensitiveLog)(item)) } - }); - exports2.BatchExecuteStatementInputFilterSensitiveLog = BatchExecuteStatementInputFilterSensitiveLog; - var BatchExecuteStatementOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.BatchStatementResponseFilterSensitiveLog)(item)) } - }); - exports2.BatchExecuteStatementOutputFilterSensitiveLog = BatchExecuteStatementOutputFilterSensitiveLog; - var ExecuteTransactionInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.TransactStatements && { - TransactStatements: obj.TransactStatements.map((item) => (0, exports2.ParameterizedStatementFilterSensitiveLog)(item)) - } - }); - exports2.ExecuteTransactionInputFilterSensitiveLog = ExecuteTransactionInputFilterSensitiveLog; - var ExecuteTransactionOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } - }); - exports2.ExecuteTransactionOutputFilterSensitiveLog = ExecuteTransactionOutputFilterSensitiveLog; - var TransactGetItemsOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } - }); - exports2.TransactGetItemsOutputFilterSensitiveLog = TransactGetItemsOutputFilterSensitiveLog; - var BatchGetItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.RequestItems && { - RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.BatchGetItemInputFilterSensitiveLog = BatchGetItemInputFilterSensitiveLog; - var ExpectedAttributeValueFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) }, - ...obj.AttributeValueList && { - AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) - } - }); - exports2.ExpectedAttributeValueFilterSensitiveLog = ExpectedAttributeValueFilterSensitiveLog; - var TransactGetItemsInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.TransactItems && { TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactGetItemFilterSensitiveLog)(item)) } - }); - exports2.TransactGetItemsInputFilterSensitiveLog = TransactGetItemsInputFilterSensitiveLog; - var TransactWriteItemsOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) - }), {}) - } - }); - exports2.TransactWriteItemsOutputFilterSensitiveLog = TransactWriteItemsOutputFilterSensitiveLog; - var ConditionCheckFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ConditionCheckFilterSensitiveLog = ConditionCheckFilterSensitiveLog; - var DeleteFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.DeleteFilterSensitiveLog = DeleteFilterSensitiveLog; - var PutFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.PutFilterSensitiveLog = PutFilterSensitiveLog; - var UpdateFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.UpdateFilterSensitiveLog = UpdateFilterSensitiveLog; - var DeleteItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Attributes && { - Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) - } - }); - exports2.DeleteItemOutputFilterSensitiveLog = DeleteItemOutputFilterSensitiveLog; - var ExecuteStatementOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Items && { - Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - }, - ...obj.LastEvaluatedKey && { - LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ExecuteStatementOutputFilterSensitiveLog = ExecuteStatementOutputFilterSensitiveLog; - var PutItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Attributes && { - Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) - } - }); - exports2.PutItemOutputFilterSensitiveLog = PutItemOutputFilterSensitiveLog; - var QueryOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Items && { - Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - }, - ...obj.LastEvaluatedKey && { - LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.QueryOutputFilterSensitiveLog = QueryOutputFilterSensitiveLog; - var ScanOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Items && { - Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - }, - ...obj.LastEvaluatedKey && { - LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ScanOutputFilterSensitiveLog = ScanOutputFilterSensitiveLog; - var UpdateItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Attributes && { - Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) - } - }); - exports2.UpdateItemOutputFilterSensitiveLog = UpdateItemOutputFilterSensitiveLog; - var WriteRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.PutRequest && { PutRequest: (0, exports2.PutRequestFilterSensitiveLog)(obj.PutRequest) }, - ...obj.DeleteRequest && { DeleteRequest: (0, exports2.DeleteRequestFilterSensitiveLog)(obj.DeleteRequest) } - }); - exports2.WriteRequestFilterSensitiveLog = WriteRequestFilterSensitiveLog; - var BatchGetItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { - Responses: Object.entries(obj.Responses).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => Object.entries(item).reduce((acc2, [key2, value2]) => ({ - ...acc2, - [key2]: (0, exports2.AttributeValueFilterSensitiveLog)(value2) - }), {})) - }), {}) - }, - ...obj.UnprocessedKeys && { - UnprocessedKeys: Object.entries(obj.UnprocessedKeys).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.BatchGetItemOutputFilterSensitiveLog = BatchGetItemOutputFilterSensitiveLog; - var ScanInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ScanFilter && { - ScanFilter: Object.entries(obj.ScanFilter).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ConditionFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExclusiveStartKey && { - ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ScanInputFilterSensitiveLog = ScanInputFilterSensitiveLog; - var BatchWriteItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.RequestItems && { - RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) - }), {}) - } - }); - exports2.BatchWriteItemInputFilterSensitiveLog = BatchWriteItemInputFilterSensitiveLog; - var DeleteItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.Expected && { - Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.DeleteItemInputFilterSensitiveLog = DeleteItemInputFilterSensitiveLog; - var PutItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.Expected && { - Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.PutItemInputFilterSensitiveLog = PutItemInputFilterSensitiveLog; - var QueryInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.KeyConditions && { - KeyConditions: Object.entries(obj.KeyConditions).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ConditionFilterSensitiveLog)(value) - }), {}) - }, - ...obj.QueryFilter && { - QueryFilter: Object.entries(obj.QueryFilter).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ConditionFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExclusiveStartKey && { - ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.QueryInputFilterSensitiveLog = QueryInputFilterSensitiveLog; - var BatchWriteItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.UnprocessedItems && { - UnprocessedItems: Object.entries(obj.UnprocessedItems).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) - }), {}) - } - }); - exports2.BatchWriteItemOutputFilterSensitiveLog = BatchWriteItemOutputFilterSensitiveLog; - var UpdateItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.AttributeUpdates && { - AttributeUpdates: Object.entries(obj.AttributeUpdates).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueUpdateFilterSensitiveLog)(value) - }), {}) - }, - ...obj.Expected && { - Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.UpdateItemInputFilterSensitiveLog = UpdateItemInputFilterSensitiveLog; - var TransactWriteItemFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ConditionCheck && { ConditionCheck: (0, exports2.ConditionCheckFilterSensitiveLog)(obj.ConditionCheck) }, - ...obj.Put && { Put: (0, exports2.PutFilterSensitiveLog)(obj.Put) }, - ...obj.Delete && { Delete: (0, exports2.DeleteFilterSensitiveLog)(obj.Delete) }, - ...obj.Update && { Update: (0, exports2.UpdateFilterSensitiveLog)(obj.Update) } - }); - exports2.TransactWriteItemFilterSensitiveLog = TransactWriteItemFilterSensitiveLog; - var TransactWriteItemsInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.TransactItems && { - TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactWriteItemFilterSensitiveLog)(item)) - } - }); - exports2.TransactWriteItemsInputFilterSensitiveLog = TransactWriteItemsInputFilterSensitiveLog; - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js -var require_httpHandler = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js -var require_httpRequest = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.HttpRequest = void 0; - var HttpRequest = class { - constructor(options) { - this.method = options.method || \\"GET\\"; - this.hostname = options.hostname || \\"localhost\\"; - this.port = options.port; - this.query = options.query || {}; - this.headers = options.headers || {}; - this.body = options.body; - this.protocol = options.protocol ? options.protocol.slice(-1) !== \\":\\" ? \`\${options.protocol}:\` : options.protocol : \\"https:\\"; - this.path = options.path ? options.path.charAt(0) !== \\"/\\" ? \`/\${options.path}\` : options.path : \\"/\\"; - } - static isInstance(request) { - if (!request) - return false; - const req = request; - return \\"method\\" in req && \\"protocol\\" in req && \\"hostname\\" in req && \\"path\\" in req && typeof req[\\"query\\"] === \\"object\\" && typeof req[\\"headers\\"] === \\"object\\"; - } - clone() { - const cloned = new HttpRequest({ - ...this, - headers: { ...this.headers } - }); - if (cloned.query) - cloned.query = cloneQuery(cloned.query); - return cloned; - } - }; - exports2.HttpRequest = HttpRequest; - function cloneQuery(query) { - return Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param - }; - }, {}); - } - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js -var require_httpResponse = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.HttpResponse = void 0; - var HttpResponse = class { - constructor(options) { - this.statusCode = options.statusCode; - this.headers = options.headers || {}; - this.body = options.body; - } - static isInstance(response) { - if (!response) - return false; - const resp = response; - return typeof resp.statusCode === \\"number\\" && typeof resp.headers === \\"object\\"; - } - }; - exports2.HttpResponse = HttpResponse; - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js -var require_isValidHostname = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isValidHostname = void 0; - function isValidHostname(hostname) { - const hostPattern = /^[a-z0-9][a-z0-9\\\\.\\\\-]*[a-z0-9]$/; - return hostPattern.test(hostname); - } - exports2.isValidHostname = isValidHostname; - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/index.js -var require_dist_cjs4 = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_httpHandler(), exports2); - tslib_1.__exportStar(require_httpRequest(), exports2); - tslib_1.__exportStar(require_httpResponse(), exports2); - tslib_1.__exportStar(require_isValidHostname(), exports2); - } -}); - -// node_modules/uuid/dist/rng.js -var require_rng = __commonJS({ - \\"node_modules/uuid/dist/rng.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = rng; - var _crypto = _interopRequireDefault(require(\\"crypto\\")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var rnds8Pool = new Uint8Array(256); - var poolPtr = rnds8Pool.length; - function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); - } - } -}); - -// node_modules/uuid/dist/regex.js -var require_regex = __commonJS({ - \\"node_modules/uuid/dist/regex.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/validate.js -var require_validate = __commonJS({ - \\"node_modules/uuid/dist/validate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _regex = _interopRequireDefault(require_regex()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function validate(uuid) { - return typeof uuid === \\"string\\" && _regex.default.test(uuid); - } - var _default = validate; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/stringify.js -var require_stringify = __commonJS({ - \\"node_modules/uuid/dist/stringify.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var byteToHex = []; - for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 256).toString(16).substr(1)); - } - function stringify(arr, offset = 0) { - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + \\"-\\" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + \\"-\\" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + \\"-\\" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + \\"-\\" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); - if (!(0, _validate.default)(uuid)) { - throw TypeError(\\"Stringified UUID is invalid\\"); - } - return uuid; - } - var _default = stringify; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v1.js -var require_v1 = __commonJS({ - \\"node_modules/uuid/dist/v1.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _rng = _interopRequireDefault(require_rng()); - var _stringify = _interopRequireDefault(require_stringify()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var _nodeId; - var _clockseq; - var _lastMSecs = 0; - var _lastNSecs = 0; - function v12(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - if (node == null) { - node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - if (clockseq == null) { - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; - } - } - let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); - let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if (dt < 0 && options.clockseq === void 0) { - clockseq = clockseq + 1 & 16383; - } - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { - nsecs = 0; - } - if (nsecs >= 1e4) { - throw new Error(\\"uuid.v1(): Can't create more than 10M uuids/sec\\"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - msecs += 122192928e5; - const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b[i++] = tl >>> 24 & 255; - b[i++] = tl >>> 16 & 255; - b[i++] = tl >>> 8 & 255; - b[i++] = tl & 255; - const tmh = msecs / 4294967296 * 1e4 & 268435455; - b[i++] = tmh >>> 8 & 255; - b[i++] = tmh & 255; - b[i++] = tmh >>> 24 & 15 | 16; - b[i++] = tmh >>> 16 & 255; - b[i++] = clockseq >>> 8 | 128; - b[i++] = clockseq & 255; - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || (0, _stringify.default)(b); - } - var _default = v12; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/parse.js -var require_parse = __commonJS({ - \\"node_modules/uuid/dist/parse.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError(\\"Invalid UUID\\"); - } - let v; - const arr = new Uint8Array(16); - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 255; - arr[2] = v >>> 8 & 255; - arr[3] = v & 255; - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 255; - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 255; - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 255; - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v / 4294967296 & 255; - arr[12] = v >>> 24 & 255; - arr[13] = v >>> 16 & 255; - arr[14] = v >>> 8 & 255; - arr[15] = v & 255; - return arr; - } - var _default = parse; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v35.js -var require_v35 = __commonJS({ - \\"node_modules/uuid/dist/v35.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = _default; - exports2.URL = exports2.DNS = void 0; - var _stringify = _interopRequireDefault(require_stringify()); - var _parse = _interopRequireDefault(require_parse()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; - } - var DNS = \\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\\"; - exports2.DNS = DNS; - var URL2 = \\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\\"; - exports2.URL = URL2; - function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === \\"string\\") { - value = stringToBytes(value); - } - if (typeof namespace === \\"string\\") { - namespace = (0, _parse.default)(namespace); - } - if (namespace.length !== 16) { - throw TypeError(\\"Namespace must be array-like (16 iterable integer values, 0-255)\\"); - } - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 15 | version; - bytes[8] = bytes[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.default)(bytes); - } - try { - generateUUID.name = name; - } catch (err) { - } - generateUUID.DNS = DNS; - generateUUID.URL = URL2; - return generateUUID; - } - } -}); - -// node_modules/uuid/dist/md5.js -var require_md5 = __commonJS({ - \\"node_modules/uuid/dist/md5.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _crypto = _interopRequireDefault(require(\\"crypto\\")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === \\"string\\") { - bytes = Buffer.from(bytes, \\"utf8\\"); - } - return _crypto.default.createHash(\\"md5\\").update(bytes).digest(); - } - var _default = md5; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v3.js -var require_v3 = __commonJS({ - \\"node_modules/uuid/dist/v3.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _v = _interopRequireDefault(require_v35()); - var _md = _interopRequireDefault(require_md5()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var v32 = (0, _v.default)(\\"v3\\", 48, _md.default); - var _default = v32; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v4.js -var require_v4 = __commonJS({ - \\"node_modules/uuid/dist/v4.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _rng = _interopRequireDefault(require_rng()); - var _stringify = _interopRequireDefault(require_stringify()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function v4(options, buf, offset) { - options = options || {}; - const rnds = options.random || (options.rng || _rng.default)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, _stringify.default)(rnds); - } - var _default = v4; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/sha1.js -var require_sha1 = __commonJS({ - \\"node_modules/uuid/dist/sha1.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _crypto = _interopRequireDefault(require(\\"crypto\\")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === \\"string\\") { - bytes = Buffer.from(bytes, \\"utf8\\"); - } - return _crypto.default.createHash(\\"sha1\\").update(bytes).digest(); - } - var _default = sha1; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v5.js -var require_v5 = __commonJS({ - \\"node_modules/uuid/dist/v5.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _v = _interopRequireDefault(require_v35()); - var _sha = _interopRequireDefault(require_sha1()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var v5 = (0, _v.default)(\\"v5\\", 80, _sha.default); - var _default = v5; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/nil.js -var require_nil = __commonJS({ - \\"node_modules/uuid/dist/nil.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _default = \\"00000000-0000-0000-0000-000000000000\\"; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/version.js -var require_version = __commonJS({ - \\"node_modules/uuid/dist/version.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError(\\"Invalid UUID\\"); - } - return parseInt(uuid.substr(14, 1), 16); - } - var _default = version; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/index.js -var require_dist = __commonJS({ - \\"node_modules/uuid/dist/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - Object.defineProperty(exports2, \\"v1\\", { - enumerable: true, - get: function() { - return _v.default; - } - }); - Object.defineProperty(exports2, \\"v3\\", { - enumerable: true, - get: function() { - return _v2.default; - } - }); - Object.defineProperty(exports2, \\"v4\\", { - enumerable: true, - get: function() { - return _v3.default; - } - }); - Object.defineProperty(exports2, \\"v5\\", { - enumerable: true, - get: function() { - return _v4.default; - } - }); - Object.defineProperty(exports2, \\"NIL\\", { - enumerable: true, - get: function() { - return _nil.default; - } - }); - Object.defineProperty(exports2, \\"version\\", { - enumerable: true, - get: function() { - return _version.default; - } - }); - Object.defineProperty(exports2, \\"validate\\", { - enumerable: true, - get: function() { - return _validate.default; - } - }); - Object.defineProperty(exports2, \\"stringify\\", { - enumerable: true, - get: function() { - return _stringify.default; - } - }); - Object.defineProperty(exports2, \\"parse\\", { - enumerable: true, - get: function() { - return _parse.default; - } - }); - var _v = _interopRequireDefault(require_v1()); - var _v2 = _interopRequireDefault(require_v3()); - var _v3 = _interopRequireDefault(require_v4()); - var _v4 = _interopRequireDefault(require_v5()); - var _nil = _interopRequireDefault(require_nil()); - var _version = _interopRequireDefault(require_version()); - var _validate = _interopRequireDefault(require_validate()); - var _stringify = _interopRequireDefault(require_stringify()); - var _parse = _interopRequireDefault(require_parse()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js -var require_Aws_json1_0 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.serializeAws_json1_0UpdateTimeToLiveCommand = exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0UpdateTableCommand = exports2.serializeAws_json1_0UpdateItemCommand = exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.serializeAws_json1_0UpdateGlobalTableCommand = exports2.serializeAws_json1_0UpdateContributorInsightsCommand = exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = exports2.serializeAws_json1_0UntagResourceCommand = exports2.serializeAws_json1_0TransactWriteItemsCommand = exports2.serializeAws_json1_0TransactGetItemsCommand = exports2.serializeAws_json1_0TagResourceCommand = exports2.serializeAws_json1_0ScanCommand = exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.serializeAws_json1_0RestoreTableFromBackupCommand = exports2.serializeAws_json1_0QueryCommand = exports2.serializeAws_json1_0PutItemCommand = exports2.serializeAws_json1_0ListTagsOfResourceCommand = exports2.serializeAws_json1_0ListTablesCommand = exports2.serializeAws_json1_0ListGlobalTablesCommand = exports2.serializeAws_json1_0ListExportsCommand = exports2.serializeAws_json1_0ListContributorInsightsCommand = exports2.serializeAws_json1_0ListBackupsCommand = exports2.serializeAws_json1_0GetItemCommand = exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = exports2.serializeAws_json1_0ExecuteTransactionCommand = exports2.serializeAws_json1_0ExecuteStatementCommand = exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeTimeToLiveCommand = exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0DescribeTableCommand = exports2.serializeAws_json1_0DescribeLimitsCommand = exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.serializeAws_json1_0DescribeGlobalTableCommand = exports2.serializeAws_json1_0DescribeExportCommand = exports2.serializeAws_json1_0DescribeEndpointsCommand = exports2.serializeAws_json1_0DescribeContributorInsightsCommand = exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = exports2.serializeAws_json1_0DescribeBackupCommand = exports2.serializeAws_json1_0DeleteTableCommand = exports2.serializeAws_json1_0DeleteItemCommand = exports2.serializeAws_json1_0DeleteBackupCommand = exports2.serializeAws_json1_0CreateTableCommand = exports2.serializeAws_json1_0CreateGlobalTableCommand = exports2.serializeAws_json1_0CreateBackupCommand = exports2.serializeAws_json1_0BatchWriteItemCommand = exports2.serializeAws_json1_0BatchGetItemCommand = exports2.serializeAws_json1_0BatchExecuteStatementCommand = void 0; - exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0UpdateTableCommand = exports2.deserializeAws_json1_0UpdateItemCommand = exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.deserializeAws_json1_0UpdateGlobalTableCommand = exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = exports2.deserializeAws_json1_0UntagResourceCommand = exports2.deserializeAws_json1_0TransactWriteItemsCommand = exports2.deserializeAws_json1_0TransactGetItemsCommand = exports2.deserializeAws_json1_0TagResourceCommand = exports2.deserializeAws_json1_0ScanCommand = exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = exports2.deserializeAws_json1_0QueryCommand = exports2.deserializeAws_json1_0PutItemCommand = exports2.deserializeAws_json1_0ListTagsOfResourceCommand = exports2.deserializeAws_json1_0ListTablesCommand = exports2.deserializeAws_json1_0ListGlobalTablesCommand = exports2.deserializeAws_json1_0ListExportsCommand = exports2.deserializeAws_json1_0ListContributorInsightsCommand = exports2.deserializeAws_json1_0ListBackupsCommand = exports2.deserializeAws_json1_0GetItemCommand = exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = exports2.deserializeAws_json1_0ExecuteTransactionCommand = exports2.deserializeAws_json1_0ExecuteStatementCommand = exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0DescribeTableCommand = exports2.deserializeAws_json1_0DescribeLimitsCommand = exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.deserializeAws_json1_0DescribeGlobalTableCommand = exports2.deserializeAws_json1_0DescribeExportCommand = exports2.deserializeAws_json1_0DescribeEndpointsCommand = exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = exports2.deserializeAws_json1_0DescribeBackupCommand = exports2.deserializeAws_json1_0DeleteTableCommand = exports2.deserializeAws_json1_0DeleteItemCommand = exports2.deserializeAws_json1_0DeleteBackupCommand = exports2.deserializeAws_json1_0CreateTableCommand = exports2.deserializeAws_json1_0CreateGlobalTableCommand = exports2.deserializeAws_json1_0CreateBackupCommand = exports2.deserializeAws_json1_0BatchWriteItemCommand = exports2.deserializeAws_json1_0BatchGetItemCommand = exports2.deserializeAws_json1_0BatchExecuteStatementCommand = void 0; - var protocol_http_1 = require_dist_cjs4(); - var smithy_client_1 = require_dist_cjs3(); - var uuid_1 = require_dist(); - var DynamoDBServiceException_1 = require_DynamoDBServiceException(); - var models_0_1 = require_models_0(); - var serializeAws_json1_0BatchExecuteStatementCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.BatchExecuteStatement\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0BatchExecuteStatementInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0BatchExecuteStatementCommand = serializeAws_json1_0BatchExecuteStatementCommand; - var serializeAws_json1_0BatchGetItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.BatchGetItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0BatchGetItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0BatchGetItemCommand = serializeAws_json1_0BatchGetItemCommand; - var serializeAws_json1_0BatchWriteItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.BatchWriteItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0BatchWriteItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0BatchWriteItemCommand = serializeAws_json1_0BatchWriteItemCommand; - var serializeAws_json1_0CreateBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.CreateBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0CreateBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0CreateBackupCommand = serializeAws_json1_0CreateBackupCommand; - var serializeAws_json1_0CreateGlobalTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.CreateGlobalTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0CreateGlobalTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0CreateGlobalTableCommand = serializeAws_json1_0CreateGlobalTableCommand; - var serializeAws_json1_0CreateTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.CreateTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0CreateTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0CreateTableCommand = serializeAws_json1_0CreateTableCommand; - var serializeAws_json1_0DeleteBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DeleteBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DeleteBackupCommand = serializeAws_json1_0DeleteBackupCommand; - var serializeAws_json1_0DeleteItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DeleteItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DeleteItemCommand = serializeAws_json1_0DeleteItemCommand; - var serializeAws_json1_0DeleteTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DeleteTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DeleteTableCommand = serializeAws_json1_0DeleteTableCommand; - var serializeAws_json1_0DescribeBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeBackupCommand = serializeAws_json1_0DescribeBackupCommand; - var serializeAws_json1_0DescribeContinuousBackupsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContinuousBackups\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeContinuousBackupsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = serializeAws_json1_0DescribeContinuousBackupsCommand; - var serializeAws_json1_0DescribeContributorInsightsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContributorInsights\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeContributorInsightsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeContributorInsightsCommand = serializeAws_json1_0DescribeContributorInsightsCommand; - var serializeAws_json1_0DescribeEndpointsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeEndpoints\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeEndpointsRequest(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeEndpointsCommand = serializeAws_json1_0DescribeEndpointsCommand; - var serializeAws_json1_0DescribeExportCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeExport\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeExportInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeExportCommand = serializeAws_json1_0DescribeExportCommand; - var serializeAws_json1_0DescribeGlobalTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeGlobalTableCommand = serializeAws_json1_0DescribeGlobalTableCommand; - var serializeAws_json1_0DescribeGlobalTableSettingsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTableSettings\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableSettingsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = serializeAws_json1_0DescribeGlobalTableSettingsCommand; - var serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeKinesisStreamingDestination\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeKinesisStreamingDestinationInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = serializeAws_json1_0DescribeKinesisStreamingDestinationCommand; - var serializeAws_json1_0DescribeLimitsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeLimits\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeLimitsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeLimitsCommand = serializeAws_json1_0DescribeLimitsCommand; - var serializeAws_json1_0DescribeTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeTableCommand = serializeAws_json1_0DescribeTableCommand; - var serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTableReplicaAutoScaling\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeTableReplicaAutoScalingInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = serializeAws_json1_0DescribeTableReplicaAutoScalingCommand; - var serializeAws_json1_0DescribeTimeToLiveCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTimeToLive\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeTimeToLiveInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeTimeToLiveCommand = serializeAws_json1_0DescribeTimeToLiveCommand; - var serializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DisableKinesisStreamingDestination\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = serializeAws_json1_0DisableKinesisStreamingDestinationCommand; - var serializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.EnableKinesisStreamingDestination\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = serializeAws_json1_0EnableKinesisStreamingDestinationCommand; - var serializeAws_json1_0ExecuteStatementCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteStatement\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ExecuteStatementInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ExecuteStatementCommand = serializeAws_json1_0ExecuteStatementCommand; - var serializeAws_json1_0ExecuteTransactionCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteTransaction\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ExecuteTransactionInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ExecuteTransactionCommand = serializeAws_json1_0ExecuteTransactionCommand; - var serializeAws_json1_0ExportTableToPointInTimeCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ExportTableToPointInTime\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ExportTableToPointInTimeInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = serializeAws_json1_0ExportTableToPointInTimeCommand; - var serializeAws_json1_0GetItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.GetItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0GetItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0GetItemCommand = serializeAws_json1_0GetItemCommand; - var serializeAws_json1_0ListBackupsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListBackups\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListBackupsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListBackupsCommand = serializeAws_json1_0ListBackupsCommand; - var serializeAws_json1_0ListContributorInsightsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListContributorInsights\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListContributorInsightsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListContributorInsightsCommand = serializeAws_json1_0ListContributorInsightsCommand; - var serializeAws_json1_0ListExportsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListExports\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListExportsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListExportsCommand = serializeAws_json1_0ListExportsCommand; - var serializeAws_json1_0ListGlobalTablesCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListGlobalTables\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListGlobalTablesInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListGlobalTablesCommand = serializeAws_json1_0ListGlobalTablesCommand; - var serializeAws_json1_0ListTablesCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListTables\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListTablesInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListTablesCommand = serializeAws_json1_0ListTablesCommand; - var serializeAws_json1_0ListTagsOfResourceCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListTagsOfResource\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListTagsOfResourceInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListTagsOfResourceCommand = serializeAws_json1_0ListTagsOfResourceCommand; - var serializeAws_json1_0PutItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.PutItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0PutItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0PutItemCommand = serializeAws_json1_0PutItemCommand; - var serializeAws_json1_0QueryCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.Query\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0QueryInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0QueryCommand = serializeAws_json1_0QueryCommand; - var serializeAws_json1_0RestoreTableFromBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableFromBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0RestoreTableFromBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0RestoreTableFromBackupCommand = serializeAws_json1_0RestoreTableFromBackupCommand; - var serializeAws_json1_0RestoreTableToPointInTimeCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableToPointInTime\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0RestoreTableToPointInTimeInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = serializeAws_json1_0RestoreTableToPointInTimeCommand; - var serializeAws_json1_0ScanCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.Scan\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ScanInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ScanCommand = serializeAws_json1_0ScanCommand; - var serializeAws_json1_0TagResourceCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.TagResource\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0TagResourceInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand; - var serializeAws_json1_0TransactGetItemsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.TransactGetItems\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0TransactGetItemsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0TransactGetItemsCommand = serializeAws_json1_0TransactGetItemsCommand; - var serializeAws_json1_0TransactWriteItemsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.TransactWriteItems\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0TransactWriteItemsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0TransactWriteItemsCommand = serializeAws_json1_0TransactWriteItemsCommand; - var serializeAws_json1_0UntagResourceCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UntagResource\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand; - var serializeAws_json1_0UpdateContinuousBackupsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContinuousBackups\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateContinuousBackupsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = serializeAws_json1_0UpdateContinuousBackupsCommand; - var serializeAws_json1_0UpdateContributorInsightsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContributorInsights\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateContributorInsightsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateContributorInsightsCommand = serializeAws_json1_0UpdateContributorInsightsCommand; - var serializeAws_json1_0UpdateGlobalTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateGlobalTableCommand = serializeAws_json1_0UpdateGlobalTableCommand; - var serializeAws_json1_0UpdateGlobalTableSettingsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTableSettings\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableSettingsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = serializeAws_json1_0UpdateGlobalTableSettingsCommand; - var serializeAws_json1_0UpdateItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateItemCommand = serializeAws_json1_0UpdateItemCommand; - var serializeAws_json1_0UpdateTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateTableCommand = serializeAws_json1_0UpdateTableCommand; - var serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTableReplicaAutoScaling\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateTableReplicaAutoScalingInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = serializeAws_json1_0UpdateTableReplicaAutoScalingCommand; - var serializeAws_json1_0UpdateTimeToLiveCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTimeToLive\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateTimeToLiveInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateTimeToLiveCommand = serializeAws_json1_0UpdateTimeToLiveCommand; - var deserializeAws_json1_0BatchExecuteStatementCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0BatchExecuteStatementCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0BatchExecuteStatementOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0BatchExecuteStatementCommand = deserializeAws_json1_0BatchExecuteStatementCommand; - var deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0BatchGetItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0BatchGetItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0BatchGetItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0BatchGetItemCommand = deserializeAws_json1_0BatchGetItemCommand; - var deserializeAws_json1_0BatchGetItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0BatchWriteItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0BatchWriteItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0BatchWriteItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0BatchWriteItemCommand = deserializeAws_json1_0BatchWriteItemCommand; - var deserializeAws_json1_0BatchWriteItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0CreateBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0CreateBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0CreateBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0CreateBackupCommand = deserializeAws_json1_0CreateBackupCommand; - var deserializeAws_json1_0CreateBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupInUseException\\": - case \\"com.amazonaws.dynamodb#BackupInUseException\\": - throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); - case \\"ContinuousBackupsUnavailableException\\": - case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": - throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"TableInUseException\\": - case \\"com.amazonaws.dynamodb#TableInUseException\\": - throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0CreateGlobalTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0CreateGlobalTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0CreateGlobalTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0CreateGlobalTableCommand = deserializeAws_json1_0CreateGlobalTableCommand; - var deserializeAws_json1_0CreateGlobalTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException\\": - throw await deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0CreateTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0CreateTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0CreateTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0CreateTableCommand = deserializeAws_json1_0CreateTableCommand; - var deserializeAws_json1_0CreateTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DeleteBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DeleteBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DeleteBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DeleteBackupCommand = deserializeAws_json1_0DeleteBackupCommand; - var deserializeAws_json1_0DeleteBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupInUseException\\": - case \\"com.amazonaws.dynamodb#BackupInUseException\\": - throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); - case \\"BackupNotFoundException\\": - case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": - throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DeleteItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DeleteItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DeleteItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DeleteItemCommand = deserializeAws_json1_0DeleteItemCommand; - var deserializeAws_json1_0DeleteItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DeleteTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DeleteTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DeleteTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DeleteTableCommand = deserializeAws_json1_0DeleteTableCommand; - var deserializeAws_json1_0DeleteTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeBackupCommand = deserializeAws_json1_0DescribeBackupCommand; - var deserializeAws_json1_0DescribeBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupNotFoundException\\": - case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": - throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeContinuousBackupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeContinuousBackupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeContinuousBackupsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = deserializeAws_json1_0DescribeContinuousBackupsCommand; - var deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeContributorInsightsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeContributorInsightsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeContributorInsightsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = deserializeAws_json1_0DescribeContributorInsightsCommand; - var deserializeAws_json1_0DescribeContributorInsightsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeEndpointsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeEndpointsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeEndpointsCommand = deserializeAws_json1_0DescribeEndpointsCommand; - var deserializeAws_json1_0DescribeEndpointsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - }; - var deserializeAws_json1_0DescribeExportCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeExportCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeExportOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeExportCommand = deserializeAws_json1_0DescribeExportCommand; - var deserializeAws_json1_0DescribeExportCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExportNotFoundException\\": - case \\"com.amazonaws.dynamodb#ExportNotFoundException\\": - throw await deserializeAws_json1_0ExportNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeGlobalTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeGlobalTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeGlobalTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeGlobalTableCommand = deserializeAws_json1_0DescribeGlobalTableCommand; - var deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeGlobalTableSettingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeGlobalTableSettingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeGlobalTableSettingsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = deserializeAws_json1_0DescribeGlobalTableSettingsCommand; - var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand; - var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeLimitsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeLimitsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeLimitsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeLimitsCommand = deserializeAws_json1_0DescribeLimitsCommand; - var deserializeAws_json1_0DescribeLimitsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeTableCommand = deserializeAws_json1_0DescribeTableCommand; - var deserializeAws_json1_0DescribeTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand; - var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeTimeToLiveCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeTimeToLiveCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeTimeToLiveOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = deserializeAws_json1_0DescribeTimeToLiveCommand; - var deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = deserializeAws_json1_0DisableKinesisStreamingDestinationCommand; - var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = deserializeAws_json1_0EnableKinesisStreamingDestinationCommand; - var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ExecuteStatementCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ExecuteStatementCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ExecuteStatementOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ExecuteStatementCommand = deserializeAws_json1_0ExecuteStatementCommand; - var deserializeAws_json1_0ExecuteStatementCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"DuplicateItemException\\": - case \\"com.amazonaws.dynamodb#DuplicateItemException\\": - throw await deserializeAws_json1_0DuplicateItemExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ExecuteTransactionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ExecuteTransactionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ExecuteTransactionOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ExecuteTransactionCommand = deserializeAws_json1_0ExecuteTransactionCommand; - var deserializeAws_json1_0ExecuteTransactionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"IdempotentParameterMismatchException\\": - case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": - throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionCanceledException\\": - case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": - throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); - case \\"TransactionInProgressException\\": - case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": - throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ExportTableToPointInTimeCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ExportTableToPointInTimeCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ExportTableToPointInTimeOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = deserializeAws_json1_0ExportTableToPointInTimeCommand; - var deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExportConflictException\\": - case \\"com.amazonaws.dynamodb#ExportConflictException\\": - throw await deserializeAws_json1_0ExportConflictExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidExportTimeException\\": - case \\"com.amazonaws.dynamodb#InvalidExportTimeException\\": - throw await deserializeAws_json1_0InvalidExportTimeExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"PointInTimeRecoveryUnavailableException\\": - case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": - throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0GetItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0GetItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0GetItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0GetItemCommand = deserializeAws_json1_0GetItemCommand; - var deserializeAws_json1_0GetItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListBackupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListBackupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListBackupsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListBackupsCommand = deserializeAws_json1_0ListBackupsCommand; - var deserializeAws_json1_0ListBackupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListContributorInsightsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListContributorInsightsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListContributorInsightsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListContributorInsightsCommand = deserializeAws_json1_0ListContributorInsightsCommand; - var deserializeAws_json1_0ListContributorInsightsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListExportsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListExportsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListExportsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListExportsCommand = deserializeAws_json1_0ListExportsCommand; - var deserializeAws_json1_0ListExportsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListGlobalTablesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListGlobalTablesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListGlobalTablesOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListGlobalTablesCommand = deserializeAws_json1_0ListGlobalTablesCommand; - var deserializeAws_json1_0ListGlobalTablesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListTablesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListTablesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListTablesOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListTablesCommand = deserializeAws_json1_0ListTablesCommand; - var deserializeAws_json1_0ListTablesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListTagsOfResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListTagsOfResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListTagsOfResourceOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListTagsOfResourceCommand = deserializeAws_json1_0ListTagsOfResourceCommand; - var deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0PutItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0PutItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0PutItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0PutItemCommand = deserializeAws_json1_0PutItemCommand; - var deserializeAws_json1_0PutItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0QueryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0QueryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0QueryOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand; - var deserializeAws_json1_0QueryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0RestoreTableFromBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0RestoreTableFromBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0RestoreTableFromBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = deserializeAws_json1_0RestoreTableFromBackupCommand; - var deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupInUseException\\": - case \\"com.amazonaws.dynamodb#BackupInUseException\\": - throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); - case \\"BackupNotFoundException\\": - case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": - throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"TableAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": - throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"TableInUseException\\": - case \\"com.amazonaws.dynamodb#TableInUseException\\": - throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0RestoreTableToPointInTimeCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0RestoreTableToPointInTimeCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0RestoreTableToPointInTimeOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = deserializeAws_json1_0RestoreTableToPointInTimeCommand; - var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"InvalidRestoreTimeException\\": - case \\"com.amazonaws.dynamodb#InvalidRestoreTimeException\\": - throw await deserializeAws_json1_0InvalidRestoreTimeExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"PointInTimeRecoveryUnavailableException\\": - case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": - throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); - case \\"TableAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": - throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"TableInUseException\\": - case \\"com.amazonaws.dynamodb#TableInUseException\\": - throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ScanCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ScanCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ScanOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ScanCommand = deserializeAws_json1_0ScanCommand; - var deserializeAws_json1_0ScanCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0TagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0TagResourceCommandError(output, context); - } - await collectBody(output.body, context); - const response = { - $metadata: deserializeMetadata(output) - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand; - var deserializeAws_json1_0TagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0TransactGetItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0TransactGetItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0TransactGetItemsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0TransactGetItemsCommand = deserializeAws_json1_0TransactGetItemsCommand; - var deserializeAws_json1_0TransactGetItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionCanceledException\\": - case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": - throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0TransactWriteItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0TransactWriteItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0TransactWriteItemsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0TransactWriteItemsCommand = deserializeAws_json1_0TransactWriteItemsCommand; - var deserializeAws_json1_0TransactWriteItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"IdempotentParameterMismatchException\\": - case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": - throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionCanceledException\\": - case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": - throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); - case \\"TransactionInProgressException\\": - case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": - throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UntagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UntagResourceCommandError(output, context); - } - await collectBody(output.body, context); - const response = { - $metadata: deserializeMetadata(output) - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand; - var deserializeAws_json1_0UntagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateContinuousBackupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateContinuousBackupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateContinuousBackupsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = deserializeAws_json1_0UpdateContinuousBackupsCommand; - var deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ContinuousBackupsUnavailableException\\": - case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": - throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateContributorInsightsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateContributorInsightsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateContributorInsightsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = deserializeAws_json1_0UpdateContributorInsightsCommand; - var deserializeAws_json1_0UpdateContributorInsightsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateGlobalTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateGlobalTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateGlobalTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateGlobalTableCommand = deserializeAws_json1_0UpdateGlobalTableCommand; - var deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ReplicaAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#ReplicaAlreadyExistsException\\": - throw await deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"ReplicaNotFoundException\\": - case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": - throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateGlobalTableSettingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateGlobalTableSettingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateGlobalTableSettingsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = deserializeAws_json1_0UpdateGlobalTableSettingsCommand; - var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"IndexNotFoundException\\": - case \\"com.amazonaws.dynamodb#IndexNotFoundException\\": - throw await deserializeAws_json1_0IndexNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ReplicaNotFoundException\\": - case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": - throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateItemCommand = deserializeAws_json1_0UpdateItemCommand; - var deserializeAws_json1_0UpdateItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateTableCommand = deserializeAws_json1_0UpdateTableCommand; - var deserializeAws_json1_0UpdateTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand; - var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateTimeToLiveCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateTimeToLiveCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateTimeToLiveOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = deserializeAws_json1_0UpdateTimeToLiveCommand; - var deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0BackupInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0BackupInUseException(body, context); - const exception = new models_0_1.BackupInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0BackupNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0BackupNotFoundException(body, context); - const exception = new models_0_1.BackupNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ConditionalCheckFailedExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ConditionalCheckFailedException(body, context); - const exception = new models_0_1.ConditionalCheckFailedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ContinuousBackupsUnavailableException(body, context); - const exception = new models_0_1.ContinuousBackupsUnavailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0DuplicateItemExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0DuplicateItemException(body, context); - const exception = new models_0_1.DuplicateItemException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ExportConflictExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ExportConflictException(body, context); - const exception = new models_0_1.ExportConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ExportNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ExportNotFoundException(body, context); - const exception = new models_0_1.ExportNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0GlobalTableAlreadyExistsException(body, context); - const exception = new models_0_1.GlobalTableAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0GlobalTableNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0GlobalTableNotFoundException(body, context); - const exception = new models_0_1.GlobalTableNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0IdempotentParameterMismatchException(body, context); - const exception = new models_0_1.IdempotentParameterMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0IndexNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0IndexNotFoundException(body, context); - const exception = new models_0_1.IndexNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InternalServerError(body, context); - const exception = new models_0_1.InternalServerError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InvalidEndpointExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InvalidEndpointException(body, context); - const exception = new models_0_1.InvalidEndpointException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InvalidExportTimeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InvalidExportTimeException(body, context); - const exception = new models_0_1.InvalidExportTimeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InvalidRestoreTimeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InvalidRestoreTimeException(body, context); - const exception = new models_0_1.InvalidRestoreTimeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ItemCollectionSizeLimitExceededException(body, context); - const exception = new models_0_1.ItemCollectionSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0LimitExceededException(body, context); - const exception = new models_0_1.LimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0PointInTimeRecoveryUnavailableException(body, context); - const exception = new models_0_1.PointInTimeRecoveryUnavailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ProvisionedThroughputExceededException(body, context); - const exception = new models_0_1.ProvisionedThroughputExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ReplicaAlreadyExistsException(body, context); - const exception = new models_0_1.ReplicaAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ReplicaNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ReplicaNotFoundException(body, context); - const exception = new models_0_1.ReplicaNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0RequestLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0RequestLimitExceeded(body, context); - const exception = new models_0_1.RequestLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ResourceInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ResourceInUseException(body, context); - const exception = new models_0_1.ResourceInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context); - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TableAlreadyExistsException(body, context); - const exception = new models_0_1.TableAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TableInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TableInUseException(body, context); - const exception = new models_0_1.TableInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TableNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TableNotFoundException(body, context); - const exception = new models_0_1.TableNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TransactionCanceledExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TransactionCanceledException(body, context); - const exception = new models_0_1.TransactionCanceledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TransactionConflictExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TransactionConflictException(body, context); - const exception = new models_0_1.TransactionConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TransactionInProgressExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TransactionInProgressException(body, context); - const exception = new models_0_1.TransactionInProgressException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var serializeAws_json1_0AttributeDefinition = (input, context) => { - return { - ...input.AttributeName != null && { AttributeName: input.AttributeName }, - ...input.AttributeType != null && { AttributeType: input.AttributeType } - }; - }; - var serializeAws_json1_0AttributeDefinitions = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeDefinition(entry, context); - }); - }; - var serializeAws_json1_0AttributeNameList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0AttributeUpdates = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValueUpdate(value, context) - }; - }, {}); - }; - var serializeAws_json1_0AttributeValue = (input, context) => { - return models_0_1.AttributeValue.visit(input, { - B: (value) => ({ B: context.base64Encoder(value) }), - BOOL: (value) => ({ BOOL: value }), - BS: (value) => ({ BS: serializeAws_json1_0BinarySetAttributeValue(value, context) }), - L: (value) => ({ L: serializeAws_json1_0ListAttributeValue(value, context) }), - M: (value) => ({ M: serializeAws_json1_0MapAttributeValue(value, context) }), - N: (value) => ({ N: value }), - NS: (value) => ({ NS: serializeAws_json1_0NumberSetAttributeValue(value, context) }), - NULL: (value) => ({ NULL: value }), - S: (value) => ({ S: value }), - SS: (value) => ({ SS: serializeAws_json1_0StringSetAttributeValue(value, context) }), - _: (name, value) => ({ name: value }) - }); - }; - var serializeAws_json1_0AttributeValueList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeValue(entry, context); - }); - }; - var serializeAws_json1_0AttributeValueUpdate = (input, context) => { - return { - ...input.Action != null && { Action: input.Action }, - ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } - }; - }; - var serializeAws_json1_0AutoScalingPolicyUpdate = (input, context) => { - return { - ...input.PolicyName != null && { PolicyName: input.PolicyName }, - ...input.TargetTrackingScalingPolicyConfiguration != null && { - TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context) - } - }; - }; - var serializeAws_json1_0AutoScalingSettingsUpdate = (input, context) => { - return { - ...input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled }, - ...input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn }, - ...input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits }, - ...input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits }, - ...input.ScalingPolicyUpdate != null && { - ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context) - } - }; - }; - var serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => { - return { - ...input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }, - ...input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }, - ...input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }, - ...input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) } - }; - }; - var serializeAws_json1_0BatchExecuteStatementInput = (input, context) => { - return { - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) } - }; - }; - var serializeAws_json1_0BatchGetItemInput = (input, context) => { - return { - ...input.RequestItems != null && { - RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity } - }; - }; - var serializeAws_json1_0BatchGetRequestMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0KeysAndAttributes(value, context) - }; - }, {}); - }; - var serializeAws_json1_0BatchStatementRequest = (input, context) => { - return { - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.Parameters != null && { - Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) - }, - ...input.Statement != null && { Statement: input.Statement } - }; - }; - var serializeAws_json1_0BatchWriteItemInput = (input, context) => { - return { - ...input.RequestItems != null && { - RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - } - }; - }; - var serializeAws_json1_0BatchWriteItemRequestMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0WriteRequests(value, context) - }; - }, {}); - }; - var serializeAws_json1_0BinarySetAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return context.base64Encoder(entry); - }); - }; - var serializeAws_json1_0Condition = (input, context) => { - return { - ...input.AttributeValueList != null && { - AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) - }, - ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator } - }; - }; - var serializeAws_json1_0ConditionCheck = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0CreateBackupInput = (input, context) => { - return { - ...input.BackupName != null && { BackupName: input.BackupName }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0CreateGlobalSecondaryIndexAction = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - } - }; - }; - var serializeAws_json1_0CreateGlobalTableInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, - ...input.ReplicationGroup != null && { - ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context) - } - }; - }; - var serializeAws_json1_0CreateReplicaAction = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0CreateReplicationGroupMemberAction = (input, context) => { - return { - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) - }, - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } - }; - }; - var serializeAws_json1_0CreateTableInput = (input, context) => { - return { - ...input.AttributeDefinitions != null && { - AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) - }, - ...input.BillingMode != null && { BillingMode: input.BillingMode }, - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.LocalSecondaryIndexes != null && { - LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context) - }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - }, - ...input.SSESpecification != null && { - SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) - }, - ...input.StreamSpecification != null && { - StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) - }, - ...input.TableClass != null && { TableClass: input.TableClass }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } - }; - }; - var serializeAws_json1_0Delete = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DeleteBackupInput = (input, context) => { - return { - ...input.BackupArn != null && { BackupArn: input.BackupArn } - }; - }; - var serializeAws_json1_0DeleteGlobalSecondaryIndexAction = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName } - }; - }; - var serializeAws_json1_0DeleteItemInput = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DeleteReplicaAction = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0DeleteReplicationGroupMemberAction = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0DeleteRequest = (input, context) => { - return { - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) } - }; - }; - var serializeAws_json1_0DeleteTableInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeBackupInput = (input, context) => { - return { - ...input.BackupArn != null && { BackupArn: input.BackupArn } - }; - }; - var serializeAws_json1_0DescribeContinuousBackupsInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeContributorInsightsInput = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeEndpointsRequest = (input, context) => { - return {}; - }; - var serializeAws_json1_0DescribeExportInput = (input, context) => { - return { - ...input.ExportArn != null && { ExportArn: input.ExportArn } - }; - }; - var serializeAws_json1_0DescribeGlobalTableInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } - }; - }; - var serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } - }; - }; - var serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeLimitsInput = (input, context) => { - return {}; - }; - var serializeAws_json1_0DescribeTableInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeTableReplicaAutoScalingInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeTimeToLiveInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0ExecuteStatementInput = (input, context) => { - return { - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.Parameters != null && { - Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.Statement != null && { Statement: input.Statement } - }; - }; - var serializeAws_json1_0ExecuteTransactionInput = (input, context) => { - var _a; - return { - ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.TransactStatements != null && { - TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context) - } - }; - }; - var serializeAws_json1_0ExpectedAttributeMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0ExpectedAttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0ExpectedAttributeValue = (input, context) => { - return { - ...input.AttributeValueList != null && { - AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) - }, - ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }, - ...input.Exists != null && { Exists: input.Exists }, - ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } - }; - }; - var serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => { - var _a; - return { - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.ExportFormat != null && { ExportFormat: input.ExportFormat }, - ...input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1e3) }, - ...input.S3Bucket != null && { S3Bucket: input.S3Bucket }, - ...input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }, - ...input.S3Prefix != null && { S3Prefix: input.S3Prefix }, - ...input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm }, - ...input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId }, - ...input.TableArn != null && { TableArn: input.TableArn } - }; - }; - var serializeAws_json1_0ExpressionAttributeNameMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: value - }; - }, {}); - }; - var serializeAws_json1_0ExpressionAttributeValueMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0FilterConditionMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0Condition(value, context) - }; - }, {}); - }; - var serializeAws_json1_0Get = (input, context) => { - return { - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0GetItemInput = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndex = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { - ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) - } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate(entry, context); - }); - }; - var serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalSecondaryIndex(entry, context); - }); - }; - var serializeAws_json1_0GlobalSecondaryIndexUpdate = (input, context) => { - return { - ...input.Create != null && { - Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) - }, - ...input.Delete != null && { - Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) - }, - ...input.Update != null && { - Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) - } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalSecondaryIndexUpdate(entry, context); - }); - }; - var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { - ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context) - }, - ...input.ProvisionedWriteCapacityUnits != null && { - ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits - } - }; - }; - var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context); - }); - }; - var serializeAws_json1_0Key = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0KeyConditions = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0Condition(value, context) - }; - }, {}); - }; - var serializeAws_json1_0KeyList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0Key(entry, context); - }); - }; - var serializeAws_json1_0KeysAndAttributes = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression } - }; - }; - var serializeAws_json1_0KeySchema = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0KeySchemaElement(entry, context); - }); - }; - var serializeAws_json1_0KeySchemaElement = (input, context) => { - return { - ...input.AttributeName != null && { AttributeName: input.AttributeName }, - ...input.KeyType != null && { KeyType: input.KeyType } - }; - }; - var serializeAws_json1_0KinesisStreamingDestinationInput = (input, context) => { - return { - ...input.StreamArn != null && { StreamArn: input.StreamArn }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0ListAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeValue(entry, context); - }); - }; - var serializeAws_json1_0ListBackupsInput = (input, context) => { - return { - ...input.BackupType != null && { BackupType: input.BackupType }, - ...input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.TimeRangeLowerBound != null && { - TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1e3) - }, - ...input.TimeRangeUpperBound != null && { - TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1e3) - } - }; - }; - var serializeAws_json1_0ListContributorInsightsInput = (input, context) => { - return { - ...input.MaxResults != null && { MaxResults: input.MaxResults }, - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0ListExportsInput = (input, context) => { - return { - ...input.MaxResults != null && { MaxResults: input.MaxResults }, - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.TableArn != null && { TableArn: input.TableArn } - }; - }; - var serializeAws_json1_0ListGlobalTablesInput = (input, context) => { - return { - ...input.ExclusiveStartGlobalTableName != null && { - ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName - }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0ListTablesInput = (input, context) => { - return { - ...input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }, - ...input.Limit != null && { Limit: input.Limit } - }; - }; - var serializeAws_json1_0ListTagsOfResourceInput = (input, context) => { - return { - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.ResourceArn != null && { ResourceArn: input.ResourceArn } - }; - }; - var serializeAws_json1_0LocalSecondaryIndex = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) } - }; - }; - var serializeAws_json1_0LocalSecondaryIndexList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0LocalSecondaryIndex(entry, context); - }); - }; - var serializeAws_json1_0MapAttributeValue = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0NonKeyAttributeNameList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0NumberSetAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0ParameterizedStatement = (input, context) => { - return { - ...input.Parameters != null && { - Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) - }, - ...input.Statement != null && { Statement: input.Statement } - }; - }; - var serializeAws_json1_0ParameterizedStatements = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ParameterizedStatement(entry, context); - }); - }; - var serializeAws_json1_0PartiQLBatchRequest = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0BatchStatementRequest(entry, context); - }); - }; - var serializeAws_json1_0PointInTimeRecoverySpecification = (input, context) => { - return { - ...input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled } - }; - }; - var serializeAws_json1_0PreparedStatementParameters = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeValue(entry, context); - }); - }; - var serializeAws_json1_0Projection = (input, context) => { - return { - ...input.NonKeyAttributes != null && { - NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context) - }, - ...input.ProjectionType != null && { ProjectionType: input.ProjectionType } - }; - }; - var serializeAws_json1_0ProvisionedThroughput = (input, context) => { - return { - ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }, - ...input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits } - }; - }; - var serializeAws_json1_0ProvisionedThroughputOverride = (input, context) => { - return { - ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits } - }; - }; - var serializeAws_json1_0Put = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0PutItemInput = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0PutItemInputAttributeMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0PutRequest = (input, context) => { - return { - ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) } - }; - }; - var serializeAws_json1_0QueryInput = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExclusiveStartKey != null && { - ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) - }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression }, - ...input.KeyConditions != null && { - KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context) - }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.QueryFilter != null && { - QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward }, - ...input.Select != null && { Select: input.Select }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0Replica = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0ReplicaAutoScalingUpdate = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.ReplicaGlobalSecondaryIndexUpdates != null && { - ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context) - }, - ...input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && { - ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context) - } - }; - }; - var serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaAutoScalingUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndex = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) - } - }; - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedReadCapacityAutoScalingUpdate != null && { - ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context) - } - }; - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaGlobalSecondaryIndex(entry, context); - }); - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && { - ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context) - }, - ...input.ProvisionedReadCapacityUnits != null && { - ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits - } - }; - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0Replica(entry, context); - }); - }; - var serializeAws_json1_0ReplicaSettingsUpdate = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && { - ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context) - }, - ...input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && { - ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context) - }, - ...input.ReplicaProvisionedReadCapacityUnits != null && { - ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits - }, - ...input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass } - }; - }; - var serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaSettingsUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicationGroupUpdate = (input, context) => { - return { - ...input.Create != null && { - Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context) - }, - ...input.Delete != null && { - Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context) - }, - ...input.Update != null && { - Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context) - } - }; - }; - var serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicationGroupUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaUpdate = (input, context) => { - return { - ...input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }, - ...input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) } - }; - }; - var serializeAws_json1_0ReplicaUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaUpdate(entry, context); - }); - }; - var serializeAws_json1_0RestoreTableFromBackupInput = (input, context) => { - return { - ...input.BackupArn != null && { BackupArn: input.BackupArn }, - ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, - ...input.GlobalSecondaryIndexOverride != null && { - GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) - }, - ...input.LocalSecondaryIndexOverride != null && { - LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) - }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) - }, - ...input.SSESpecificationOverride != null && { - SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) - }, - ...input.TargetTableName != null && { TargetTableName: input.TargetTableName } - }; - }; - var serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => { - return { - ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, - ...input.GlobalSecondaryIndexOverride != null && { - GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) - }, - ...input.LocalSecondaryIndexOverride != null && { - LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) - }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) - }, - ...input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1e3) }, - ...input.SSESpecificationOverride != null && { - SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) - }, - ...input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn }, - ...input.SourceTableName != null && { SourceTableName: input.SourceTableName }, - ...input.TargetTableName != null && { TargetTableName: input.TargetTableName }, - ...input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime } - }; - }; - var serializeAws_json1_0ScanInput = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExclusiveStartKey != null && { - ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) - }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }, - ...input.Segment != null && { Segment: input.Segment }, - ...input.Select != null && { Select: input.Select }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.TotalSegments != null && { TotalSegments: input.TotalSegments } - }; - }; - var serializeAws_json1_0SSESpecification = (input, context) => { - return { - ...input.Enabled != null && { Enabled: input.Enabled }, - ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, - ...input.SSEType != null && { SSEType: input.SSEType } - }; - }; - var serializeAws_json1_0StreamSpecification = (input, context) => { - return { - ...input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled }, - ...input.StreamViewType != null && { StreamViewType: input.StreamViewType } - }; - }; - var serializeAws_json1_0StringSetAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0Tag = (input, context) => { - return { - ...input.Key != null && { Key: input.Key }, - ...input.Value != null && { Value: input.Value } - }; - }; - var serializeAws_json1_0TagKeyList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0TagList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0Tag(entry, context); - }); - }; - var serializeAws_json1_0TagResourceInput = (input, context) => { - return { - ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, - ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } - }; - }; - var serializeAws_json1_0TimeToLiveSpecification = (input, context) => { - return { - ...input.AttributeName != null && { AttributeName: input.AttributeName }, - ...input.Enabled != null && { Enabled: input.Enabled } - }; - }; - var serializeAws_json1_0TransactGetItem = (input, context) => { - return { - ...input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) } - }; - }; - var serializeAws_json1_0TransactGetItemList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0TransactGetItem(entry, context); - }); - }; - var serializeAws_json1_0TransactGetItemsInput = (input, context) => { - return { - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.TransactItems != null && { - TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context) - } - }; - }; - var serializeAws_json1_0TransactWriteItem = (input, context) => { - return { - ...input.ConditionCheck != null && { - ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context) - }, - ...input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }, - ...input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) }, - ...input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) } - }; - }; - var serializeAws_json1_0TransactWriteItemList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0TransactWriteItem(entry, context); - }); - }; - var serializeAws_json1_0TransactWriteItemsInput = (input, context) => { - var _a; - return { - ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.TransactItems != null && { - TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context) - } - }; - }; - var serializeAws_json1_0UntagResourceInput = (input, context) => { - return { - ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, - ...input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) } - }; - }; - var serializeAws_json1_0Update = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } - }; - }; - var serializeAws_json1_0UpdateContinuousBackupsInput = (input, context) => { - return { - ...input.PointInTimeRecoverySpecification != null && { - PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context) - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateContributorInsightsInput = (input, context) => { - return { - ...input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction }, - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateGlobalSecondaryIndexAction = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - } - }; - }; - var serializeAws_json1_0UpdateGlobalTableInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, - ...input.ReplicaUpdates != null && { - ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context) - } - }; - }; - var serializeAws_json1_0UpdateGlobalTableSettingsInput = (input, context) => { - return { - ...input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode }, - ...input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && { - GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context) - }, - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, - ...input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { - GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context) - }, - ...input.GlobalTableProvisionedWriteCapacityUnits != null && { - GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits - }, - ...input.ReplicaSettingsUpdate != null && { - ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context) - } - }; - }; - var serializeAws_json1_0UpdateItemInput = (input, context) => { - return { - ...input.AttributeUpdates != null && { - AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context) - }, - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } - }; - }; - var serializeAws_json1_0UpdateReplicationGroupMemberAction = (input, context) => { - return { - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) - }, - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } - }; - }; - var serializeAws_json1_0UpdateTableInput = (input, context) => { - return { - ...input.AttributeDefinitions != null && { - AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) - }, - ...input.BillingMode != null && { BillingMode: input.BillingMode }, - ...input.GlobalSecondaryIndexUpdates != null && { - GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context) - }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - }, - ...input.ReplicaUpdates != null && { - ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context) - }, - ...input.SSESpecification != null && { - SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) - }, - ...input.StreamSpecification != null && { - StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) - }, - ...input.TableClass != null && { TableClass: input.TableClass }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateTableReplicaAutoScalingInput = (input, context) => { - return { - ...input.GlobalSecondaryIndexUpdates != null && { - GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context) - }, - ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { - ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) - }, - ...input.ReplicaUpdates != null && { - ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context) - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateTimeToLiveInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName }, - ...input.TimeToLiveSpecification != null && { - TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context) - } - }; - }; - var serializeAws_json1_0WriteRequest = (input, context) => { - return { - ...input.DeleteRequest != null && { - DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context) - }, - ...input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) } - }; - }; - var serializeAws_json1_0WriteRequests = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0WriteRequest(entry, context); - }); - }; - var deserializeAws_json1_0ArchivalSummary = (output, context) => { - return { - ArchivalBackupArn: (0, smithy_client_1.expectString)(output.ArchivalBackupArn), - ArchivalDateTime: output.ArchivalDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ArchivalDateTime))) : void 0, - ArchivalReason: (0, smithy_client_1.expectString)(output.ArchivalReason) - }; - }; - var deserializeAws_json1_0AttributeDefinition = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - AttributeType: (0, smithy_client_1.expectString)(output.AttributeType) - }; - }; - var deserializeAws_json1_0AttributeDefinitions = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AttributeDefinition(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0AttributeMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0AttributeNameList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0AttributeValue = (output, context) => { - if (output.B != null) { - return { - B: context.base64Decoder(output.B) - }; - } - if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== void 0) { - return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) }; - } - if (output.BS != null) { - return { - BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context) - }; - } - if (output.L != null) { - return { - L: deserializeAws_json1_0ListAttributeValue(output.L, context) - }; - } - if (output.M != null) { - return { - M: deserializeAws_json1_0MapAttributeValue(output.M, context) - }; - } - if ((0, smithy_client_1.expectString)(output.N) !== void 0) { - return { N: (0, smithy_client_1.expectString)(output.N) }; - } - if (output.NS != null) { - return { - NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context) - }; - } - if ((0, smithy_client_1.expectBoolean)(output.NULL) !== void 0) { - return { NULL: (0, smithy_client_1.expectBoolean)(output.NULL) }; - } - if ((0, smithy_client_1.expectString)(output.S) !== void 0) { - return { S: (0, smithy_client_1.expectString)(output.S) }; - } - if (output.SS != null) { - return { - SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context) - }; - } - return { $unknown: Object.entries(output)[0] }; - }; - var deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) => { - return { - PolicyName: (0, smithy_client_1.expectString)(output.PolicyName), - TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context) : void 0 - }; - }; - var deserializeAws_json1_0AutoScalingPolicyDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AutoScalingPolicyDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) => { - return { - AutoScalingDisabled: (0, smithy_client_1.expectBoolean)(output.AutoScalingDisabled), - AutoScalingRoleArn: (0, smithy_client_1.expectString)(output.AutoScalingRoleArn), - MaximumUnits: (0, smithy_client_1.expectLong)(output.MaximumUnits), - MinimumUnits: (0, smithy_client_1.expectLong)(output.MinimumUnits), - ScalingPolicies: output.ScalingPolicies != null ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context) : void 0 - }; - }; - var deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription = (output, context) => { - return { - DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn), - ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown), - ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown), - TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue) - }; - }; - var deserializeAws_json1_0BackupDescription = (output, context) => { - return { - BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0, - SourceTableDetails: output.SourceTableDetails != null ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context) : void 0, - SourceTableFeatureDetails: output.SourceTableFeatureDetails != null ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context) : void 0 - }; - }; - var deserializeAws_json1_0BackupDetails = (output, context) => { - return { - BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), - BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, - BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, - BackupName: (0, smithy_client_1.expectString)(output.BackupName), - BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), - BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), - BackupType: (0, smithy_client_1.expectString)(output.BackupType) - }; - }; - var deserializeAws_json1_0BackupInUseException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0BackupNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0BackupSummaries = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0BackupSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0BackupSummary = (output, context) => { - return { - BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), - BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, - BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, - BackupName: (0, smithy_client_1.expectString)(output.BackupName), - BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), - BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), - BackupType: (0, smithy_client_1.expectString)(output.BackupType), - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableId: (0, smithy_client_1.expectString)(output.TableId), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0BatchExecuteStatementOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : void 0 - }; - }; - var deserializeAws_json1_0BatchGetItemOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : void 0, - UnprocessedKeys: output.UnprocessedKeys != null ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context) : void 0 - }; - }; - var deserializeAws_json1_0BatchGetRequestMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0KeysAndAttributes(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0BatchGetResponseMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0ItemList(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0BatchStatementError = (output, context) => { - return { - Code: (0, smithy_client_1.expectString)(output.Code), - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0BatchStatementResponse = (output, context) => { - return { - Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : void 0, - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0BatchWriteItemOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0, - UnprocessedItems: output.UnprocessedItems != null ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context) : void 0 - }; - }; - var deserializeAws_json1_0BatchWriteItemRequestMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0WriteRequests(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0BillingModeSummary = (output, context) => { - return { - BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), - LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateToPayPerRequestDateTime))) : void 0 - }; - }; - var deserializeAws_json1_0BinarySetAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return context.base64Decoder(entry); - }); - return retVal; - }; - var deserializeAws_json1_0CancellationReason = (output, context) => { - return { - Code: (0, smithy_client_1.expectString)(output.Code), - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0CancellationReasonList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0CancellationReason(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0Capacity = (output, context) => { - return { - CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), - ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), - WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ConditionalCheckFailedException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ConsumedCapacity = (output, context) => { - return { - CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context) : void 0, - LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context) : void 0, - ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), - Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName), - WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ConsumedCapacity(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => { - return { - ContinuousBackupsStatus: (0, smithy_client_1.expectString)(output.ContinuousBackupsStatus), - PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0ContinuousBackupsUnavailableException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ContributorInsightsRuleList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0ContributorInsightsSummaries = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ContributorInsightsSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ContributorInsightsSummary = (output, context) => { - return { - ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0CreateBackupOutput = (output, context) => { - return { - BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0 - }; - }; - var deserializeAws_json1_0CreateGlobalTableOutput = (output, context) => { - return { - GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0CreateTableOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteBackupOutput = (output, context) => { - return { - BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteItemOutput = (output, context) => { - return { - Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteRequest = (output, context) => { - return { - Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteTableOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeBackupOutput = (output, context) => { - return { - BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeContinuousBackupsOutput = (output, context) => { - return { - ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context) => { - return { - ContributorInsightsRuleList: output.ContributorInsightsRuleList != null ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context) : void 0, - ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), - FailureException: output.FailureException != null ? deserializeAws_json1_0FailureException(output.FailureException, context) : void 0, - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => { - return { - Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeExportOutput = (output, context) => { - return { - ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => { - return { - GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context) => { - return { - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => { - return { - KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0DescribeLimitsOutput = (output, context) => { - return { - AccountMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxReadCapacityUnits), - AccountMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxWriteCapacityUnits), - TableMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxReadCapacityUnits), - TableMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxWriteCapacityUnits) - }; - }; - var deserializeAws_json1_0DescribeTableOutput = (output, context) => { - return { - Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = (output, context) => { - return { - TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeTimeToLiveOutput = (output, context) => { - return { - TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DuplicateItemException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0Endpoint = (output, context) => { - return { - Address: (0, smithy_client_1.expectString)(output.Address), - CachePeriodInMinutes: (0, smithy_client_1.expectLong)(output.CachePeriodInMinutes) - }; - }; - var deserializeAws_json1_0Endpoints = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Endpoint(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ExecuteStatementOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, - LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ExecuteTransactionOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 - }; - }; - var deserializeAws_json1_0ExportConflictException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ExportDescription = (output, context) => { - return { - BilledSizeBytes: (0, smithy_client_1.expectLong)(output.BilledSizeBytes), - ClientToken: (0, smithy_client_1.expectString)(output.ClientToken), - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, - ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), - ExportFormat: (0, smithy_client_1.expectString)(output.ExportFormat), - ExportManifest: (0, smithy_client_1.expectString)(output.ExportManifest), - ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus), - ExportTime: output.ExportTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime))) : void 0, - FailureCode: (0, smithy_client_1.expectString)(output.FailureCode), - FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket), - S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner), - S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix), - S3SseAlgorithm: (0, smithy_client_1.expectString)(output.S3SseAlgorithm), - S3SseKmsKeyId: (0, smithy_client_1.expectString)(output.S3SseKmsKeyId), - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableId: (0, smithy_client_1.expectString)(output.TableId) - }; - }; - var deserializeAws_json1_0ExportNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ExportSummaries = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ExportSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ExportSummary = (output, context) => { - return { - ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), - ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus) - }; - }; - var deserializeAws_json1_0ExportTableToPointInTimeOutput = (output, context) => { - return { - ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0ExpressionAttributeNameMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value) - }; - }, {}); - }; - var deserializeAws_json1_0FailureException = (output, context) => { - return { - ExceptionDescription: (0, smithy_client_1.expectString)(output.ExceptionDescription), - ExceptionName: (0, smithy_client_1.expectString)(output.ExceptionName) - }; - }; - var deserializeAws_json1_0GetItemOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => { - return { - Backfilling: (0, smithy_client_1.expectBoolean)(output.Backfilling), - IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), - IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalSecondaryIndexDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalSecondaryIndexInfo(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalTable = (output, context) => { - return { - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0GlobalTableDescription = (output, context) => { - return { - CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, - GlobalTableArn: (0, smithy_client_1.expectString)(output.GlobalTableArn), - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - GlobalTableStatus: (0, smithy_client_1.expectString)(output.GlobalTableStatus), - ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalTableList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalTable(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalTableNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0IdempotentParameterMismatchException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0IndexNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0InternalServerError = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0InvalidEndpointException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0InvalidExportTimeException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0InvalidRestoreTimeException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ItemCollectionKeyAttributeMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0ItemCollectionMetrics = (output, context) => { - return { - ItemCollectionKey: output.ItemCollectionKey != null ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context) : void 0, - SizeEstimateRangeGB: output.SizeEstimateRangeGB != null ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context) : void 0 - }; - }; - var deserializeAws_json1_0ItemCollectionMetricsMultiple = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ItemCollectionMetrics(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ItemCollectionMetricsPerTable = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0ItemCollectionMetricsMultiple(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.limitedParseDouble)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0ItemCollectionSizeLimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ItemList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AttributeMap(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ItemResponse = (output, context) => { - return { - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 - }; - }; - var deserializeAws_json1_0ItemResponseList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ItemResponse(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0Key = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0KeyList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Key(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0KeysAndAttributes = (output, context) => { - return { - AttributesToGet: output.AttributesToGet != null ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context) : void 0, - ConsistentRead: (0, smithy_client_1.expectBoolean)(output.ConsistentRead), - ExpressionAttributeNames: output.ExpressionAttributeNames != null ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context) : void 0, - Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : void 0, - ProjectionExpression: (0, smithy_client_1.expectString)(output.ProjectionExpression) - }; - }; - var deserializeAws_json1_0KeySchema = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0KeySchemaElement(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0KeySchemaElement = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - KeyType: (0, smithy_client_1.expectString)(output.KeyType) - }; - }; - var deserializeAws_json1_0KinesisDataStreamDestination = (output, context) => { - return { - DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), - DestinationStatusDescription: (0, smithy_client_1.expectString)(output.DestinationStatusDescription), - StreamArn: (0, smithy_client_1.expectString)(output.StreamArn) - }; - }; - var deserializeAws_json1_0KinesisDataStreamDestinations = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0KinesisDataStreamDestination(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0KinesisStreamingDestinationOutput = (output, context) => { - return { - DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), - StreamArn: (0, smithy_client_1.expectString)(output.StreamArn), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0LimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ListAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(entry), context); - }); - return retVal; - }; - var deserializeAws_json1_0ListBackupsOutput = (output, context) => { - return { - BackupSummaries: output.BackupSummaries != null ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context) : void 0, - LastEvaluatedBackupArn: (0, smithy_client_1.expectString)(output.LastEvaluatedBackupArn) - }; - }; - var deserializeAws_json1_0ListContributorInsightsOutput = (output, context) => { - return { - ContributorInsightsSummaries: output.ContributorInsightsSummaries != null ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ListExportsOutput = (output, context) => { - return { - ExportSummaries: output.ExportSummaries != null ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => { - return { - GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : void 0, - LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName) - }; - }; - var deserializeAws_json1_0ListTablesOutput = (output, context) => { - return { - LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName), - TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : void 0 - }; - }; - var deserializeAws_json1_0ListTagsOfResourceOutput = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : void 0 - }; - }; - var deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) => { - return { - IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 - }; - }; - var deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0LocalSecondaryIndexDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0LocalSecondaryIndexInfo(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 - }; - }; - var deserializeAws_json1_0MapAttributeValue = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0NonKeyAttributeNameList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0NumberSetAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0PartiQLBatchResponse = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0BatchStatementResponse(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => { - return { - EarliestRestorableDateTime: output.EarliestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EarliestRestorableDateTime))) : void 0, - LatestRestorableDateTime: output.LatestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestRestorableDateTime))) : void 0, - PointInTimeRecoveryStatus: (0, smithy_client_1.expectString)(output.PointInTimeRecoveryStatus) - }; - }; - var deserializeAws_json1_0PointInTimeRecoveryUnavailableException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0Projection = (output, context) => { - return { - NonKeyAttributes: output.NonKeyAttributes != null ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context) : void 0, - ProjectionType: (0, smithy_client_1.expectString)(output.ProjectionType) - }; - }; - var deserializeAws_json1_0ProvisionedThroughput = (output, context) => { - return { - ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), - WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ProvisionedThroughputDescription = (output, context) => { - return { - LastDecreaseDateTime: output.LastDecreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDecreaseDateTime))) : void 0, - LastIncreaseDateTime: output.LastIncreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastIncreaseDateTime))) : void 0, - NumberOfDecreasesToday: (0, smithy_client_1.expectLong)(output.NumberOfDecreasesToday), - ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), - WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ProvisionedThroughputExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ProvisionedThroughputOverride = (output, context) => { - return { - ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits) - }; - }; - var deserializeAws_json1_0PutItemInputAttributeMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0PutItemOutput = (output, context) => { - return { - Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0PutRequest = (output, context) => { - return { - Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : void 0 - }; - }; - var deserializeAws_json1_0QueryOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Count: (0, smithy_client_1.expectInt32)(output.Count), - Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, - LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, - ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) - }; - }; - var deserializeAws_json1_0Replica = (output, context) => { - return { - RegionName: (0, smithy_client_1.expectString)(output.RegionName) - }; - }; - var deserializeAws_json1_0ReplicaAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) => { - return { - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, - RegionName: (0, smithy_client_1.expectString)(output.RegionName), - ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, - ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus) - }; - }; - var deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaAutoScalingDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaDescription = (output, context) => { - return { - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, - KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId), - ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0, - RegionName: (0, smithy_client_1.expectString)(output.RegionName), - ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplicaInaccessibleDateTime))) : void 0, - ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), - ReplicaStatusDescription: (0, smithy_client_1.expectString)(output.ReplicaStatusDescription), - ReplicaStatusPercentProgress: (0, smithy_client_1.expectString)(output.ReplicaStatusPercentProgress), - ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), - ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), - ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedReadCapacityUnits), - ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0, - ProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedWriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Replica(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => { - return { - RegionName: (0, smithy_client_1.expectString)(output.RegionName), - ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context) : void 0, - ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context) : void 0, - ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ReplicaProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedReadCapacityUnits), - ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, - ReplicaProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedWriteCapacityUnits), - ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), - ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaSettingsDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaSettingsDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0RequestLimitExceeded = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ResourceInUseException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ResourceNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0RestoreSummary = (output, context) => { - return { - RestoreDateTime: output.RestoreDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestoreDateTime))) : void 0, - RestoreInProgress: (0, smithy_client_1.expectBoolean)(output.RestoreInProgress), - SourceBackupArn: (0, smithy_client_1.expectString)(output.SourceBackupArn), - SourceTableArn: (0, smithy_client_1.expectString)(output.SourceTableArn) - }; - }; - var deserializeAws_json1_0RestoreTableFromBackupOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0ScanOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Count: (0, smithy_client_1.expectInt32)(output.Count), - Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, - LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, - ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) - }; - }; - var deserializeAws_json1_0SecondaryIndexesCapacityMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0Capacity(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0SourceTableDetails = (output, context) => { - return { - BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableCreationDateTime: output.TableCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TableCreationDateTime))) : void 0, - TableId: (0, smithy_client_1.expectString)(output.TableId), - TableName: (0, smithy_client_1.expectString)(output.TableName), - TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes) - }; - }; - var deserializeAws_json1_0SourceTableFeatureDetails = (output, context) => { - return { - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context) : void 0, - LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context) : void 0, - SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, - StreamDescription: output.StreamDescription != null ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context) : void 0, - TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0SSEDescription = (output, context) => { - return { - InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InaccessibleEncryptionDateTime))) : void 0, - KMSMasterKeyArn: (0, smithy_client_1.expectString)(output.KMSMasterKeyArn), - SSEType: (0, smithy_client_1.expectString)(output.SSEType), - Status: (0, smithy_client_1.expectString)(output.Status) - }; - }; - var deserializeAws_json1_0StreamSpecification = (output, context) => { - return { - StreamEnabled: (0, smithy_client_1.expectBoolean)(output.StreamEnabled), - StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType) - }; - }; - var deserializeAws_json1_0StringSetAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0TableAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0TableAutoScalingDescription = (output, context) => { - return { - Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName), - TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) - }; - }; - var deserializeAws_json1_0TableClassSummary = (output, context) => { - return { - LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, - TableClass: (0, smithy_client_1.expectString)(output.TableClass) - }; - }; - var deserializeAws_json1_0TableDescription = (output, context) => { - return { - ArchivalSummary: output.ArchivalSummary != null ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context) : void 0, - AttributeDefinitions: output.AttributeDefinitions != null ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context) : void 0, - BillingModeSummary: output.BillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context) : void 0, - CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, - GlobalTableVersion: (0, smithy_client_1.expectString)(output.GlobalTableVersion), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - LatestStreamArn: (0, smithy_client_1.expectString)(output.LatestStreamArn), - LatestStreamLabel: (0, smithy_client_1.expectString)(output.LatestStreamLabel), - LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0, - Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : void 0, - RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : void 0, - SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, - StreamSpecification: output.StreamSpecification != null ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableClassSummary: output.TableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context) : void 0, - TableId: (0, smithy_client_1.expectString)(output.TableId), - TableName: (0, smithy_client_1.expectString)(output.TableName), - TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes), - TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) - }; - }; - var deserializeAws_json1_0TableInUseException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0TableNameList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0TableNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0Tag = (output, context) => { - return { - Key: (0, smithy_client_1.expectString)(output.Key), - Value: (0, smithy_client_1.expectString)(output.Value) - }; - }; - var deserializeAws_json1_0TagList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Tag(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0TimeToLiveDescription = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - TimeToLiveStatus: (0, smithy_client_1.expectString)(output.TimeToLiveStatus) - }; - }; - var deserializeAws_json1_0TimeToLiveSpecification = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled) - }; - }; - var deserializeAws_json1_0TransactGetItemsOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 - }; - }; - var deserializeAws_json1_0TransactionCanceledException = (output, context) => { - return { - CancellationReasons: output.CancellationReasons != null ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context) : void 0, - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0TransactionConflictException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0TransactionInProgressException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0TransactWriteItemsOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateContinuousBackupsOutput = (output, context) => { - return { - ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateContributorInsightsOutput = (output, context) => { - return { - ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => { - return { - GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateGlobalTableSettingsOutput = (output, context) => { - return { - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateItemOutput = (output, context) => { - return { - Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateTableOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = (output, context) => { - return { - TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateTimeToLiveOutput = (output, context) => { - return { - TimeToLiveSpecification: output.TimeToLiveSpecification != null ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context) : void 0 - }; - }; - var deserializeAws_json1_0WriteRequest = (output, context) => { - return { - DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : void 0, - PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : void 0 - }; - }; - var deserializeAws_json1_0WriteRequests = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0WriteRequest(entry, context); - }); - return retVal; - }; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - var collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); - }; - var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: \\"POST\\", - path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, - headers - }; - if (resolvedHostname !== void 0) { - contents.hostname = resolvedHostname; - } - if (body !== void 0) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); - }; - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; - }); - var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === \\"number\\") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(\\":\\") >= 0) { - cleanValue = cleanValue.split(\\":\\")[0]; - } - if (cleanValue.indexOf(\\"#\\") >= 0) { - cleanValue = cleanValue.split(\\"#\\")[1]; + } +} return element; }; })(this); rootElement = v1049.create(rootName, this.options.xmldec, this.options.doctype, { headless: this.options.headless, allowSurrogateChars: this.options.allowSurrogateChars }); return render(rootElement, rootObj).end(this.options.renderOpts); }; +const v1635 = {}; +v1635.constructor = v1032; +v1032.prototype = v1635; +v1031.buildObject = v1032; +v1027.prototype = v1031; +v1001.Builder = v1027; +var v1636; +var v1638; +v1638 = function (fn, me) { return function () { return fn.apply(me, arguments); }; }; +const v1639 = {}; +v1639.constructor = v1638; +v1638.prototype = v1639; +var v1637 = v1638; +var v1640 = v1638; +var v1641 = v1638; +var v1642 = v1638; +const v1644 = Object.create(v646); +v1644.Parser = v1636; +var v1645; +var v1646 = v1644; +v1645 = function (str, a, b) { var cb, options, parser; if (b != null) { + if (typeof b === \\"function\\") { + cb = b; + } + if (typeof a === \\"object\\") { + options = a; + } +} +else { + if (typeof a === \\"function\\") { + cb = a; + } + options = {}; +} parser = new v1646.Parser(options); return parser.parseString(str, cb); }; +const v1647 = {}; +v1647.constructor = v1645; +v1645.prototype = v1647; +v1644.parseString = v1645; +var v1643 = v1644; +var v1648 = v1644; +var v1649 = v1002; +var v1650 = v1030; +var v1651 = v1007; +v1636 = function Parser(opts) { this.parseString = v1637(this.parseString, this); this.reset = v1640(this.reset, this); this.assignOrPush = v1641(this.assignOrPush, this); this.processAsync = v1642(this.processAsync, this); var key, ref, value; if (!(this instanceof v1643.Parser)) { + return new v1648.Parser(opts); +} this.options = {}; ref = v1649[\\"0.2\\"]; for (key in ref) { + if (!v1650.call(ref, key)) + continue; + value = ref[key]; + this.options[key] = value; +} for (key in opts) { + if (!v1650.call(opts, key)) + continue; + value = opts[key]; + this.options[key] = value; +} if (this.options.xmlns) { + this.options.xmlnskey = this.options.attrkey + \\"ns\\"; +} if (this.options.normalizeTags) { + if (!this.options.tagNameProcessors) { + this.options.tagNameProcessors = []; + } + this.options.tagNameProcessors.unshift(v1651.normalize); +} this.reset(); }; +const v1652 = process.__signal_exit_emitter__.constructor.prototype; +const v1653 = Object.create(v1652); +v1653.constructor = v1636; +var v1654; +const v1656 = require(\\"timers\\").setImmediate; +var v1655 = v1656; +v1654 = function () { var chunk, err; try { + if (this.remaining.length <= this.options.chunkSize) { + chunk = this.remaining; + this.remaining = \\"\\"; + this.saxParser = this.saxParser.write(chunk); + return this.saxParser.close(); + } + else { + chunk = this.remaining.substr(0, this.options.chunkSize); + this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length); + this.saxParser = this.saxParser.write(chunk); + return v1655(this.processAsync); + } +} +catch (error1) { + err = error1; + if (!this.saxParser.errThrown) { + this.saxParser.errThrown = true; + return this.emit(err); + } +} }; +const v1657 = {}; +v1657.constructor = v1654; +v1654.prototype = v1657; +v1653.processAsync = v1654; +var v1658; +var v1659 = v33; +v1658 = function (obj, key, newValue) { if (!(key in obj)) { + if (!this.options.explicitArray) { + return obj[key] = newValue; + } + else { + return obj[key] = [newValue]; + } +} +else { + if (!(obj[key] instanceof v1659)) { + obj[key] = [obj[key]]; + } + return obj[key].push(newValue); +} }; +const v1660 = {}; +v1660.constructor = v1658; +v1658.prototype = v1660; +v1653.assignOrPush = v1658; +var v1661; +const v1663 = Object.create(v646); +var v1664; +var v1666; +var v1668; +const v1670 = []; +v1670.push(\\"comment\\", \\"sgmlDecl\\", \\"textNode\\", \\"tagName\\", \\"doctype\\", \\"procInstName\\", \\"procInstBody\\", \\"entity\\", \\"attribName\\", \\"attribValue\\", \\"cdata\\", \\"script\\"); +var v1669 = v1670; +v1668 = function clearBuffers(parser) { for (var i = 0, l = 12; i < l; i++) { + parser[v1669[i]] = \\"\\"; +} }; +const v1671 = {}; +v1671.constructor = v1668; +v1668.prototype = v1671; +var v1667 = v1668; +var v1672 = v31; +const v1673 = {}; +v1673.amp = \\"&\\"; +v1673.gt = \\">\\"; +v1673.lt = \\"<\\"; +v1673.quot = \\"\\\\\\"\\"; +v1673.apos = \\"'\\"; +var v1674 = v31; +const v1675 = {}; +v1675.amp = \\"&\\"; +v1675.gt = \\">\\"; +v1675.lt = \\"<\\"; +v1675.quot = \\"\\\\\\"\\"; +v1675.apos = \\"'\\"; +v1675.AElig = \\"\\\\u00C6\\"; +v1675.Aacute = \\"\\\\u00C1\\"; +v1675.Acirc = \\"\\\\u00C2\\"; +v1675.Agrave = \\"\\\\u00C0\\"; +v1675.Aring = \\"\\\\u00C5\\"; +v1675.Atilde = \\"\\\\u00C3\\"; +v1675.Auml = \\"\\\\u00C4\\"; +v1675.Ccedil = \\"\\\\u00C7\\"; +v1675.ETH = \\"\\\\u00D0\\"; +v1675.Eacute = \\"\\\\u00C9\\"; +v1675.Ecirc = \\"\\\\u00CA\\"; +v1675.Egrave = \\"\\\\u00C8\\"; +v1675.Euml = \\"\\\\u00CB\\"; +v1675.Iacute = \\"\\\\u00CD\\"; +v1675.Icirc = \\"\\\\u00CE\\"; +v1675.Igrave = \\"\\\\u00CC\\"; +v1675.Iuml = \\"\\\\u00CF\\"; +v1675.Ntilde = \\"\\\\u00D1\\"; +v1675.Oacute = \\"\\\\u00D3\\"; +v1675.Ocirc = \\"\\\\u00D4\\"; +v1675.Ograve = \\"\\\\u00D2\\"; +v1675.Oslash = \\"\\\\u00D8\\"; +v1675.Otilde = \\"\\\\u00D5\\"; +v1675.Ouml = \\"\\\\u00D6\\"; +v1675.THORN = \\"\\\\u00DE\\"; +v1675.Uacute = \\"\\\\u00DA\\"; +v1675.Ucirc = \\"\\\\u00DB\\"; +v1675.Ugrave = \\"\\\\u00D9\\"; +v1675.Uuml = \\"\\\\u00DC\\"; +v1675.Yacute = \\"\\\\u00DD\\"; +v1675.aacute = \\"\\\\u00E1\\"; +v1675.acirc = \\"\\\\u00E2\\"; +v1675.aelig = \\"\\\\u00E6\\"; +v1675.agrave = \\"\\\\u00E0\\"; +v1675.aring = \\"\\\\u00E5\\"; +v1675.atilde = \\"\\\\u00E3\\"; +v1675.auml = \\"\\\\u00E4\\"; +v1675.ccedil = \\"\\\\u00E7\\"; +v1675.eacute = \\"\\\\u00E9\\"; +v1675.ecirc = \\"\\\\u00EA\\"; +v1675.egrave = \\"\\\\u00E8\\"; +v1675.eth = \\"\\\\u00F0\\"; +v1675.euml = \\"\\\\u00EB\\"; +v1675.iacute = \\"\\\\u00ED\\"; +v1675.icirc = \\"\\\\u00EE\\"; +v1675.igrave = \\"\\\\u00EC\\"; +v1675.iuml = \\"\\\\u00EF\\"; +v1675.ntilde = \\"\\\\u00F1\\"; +v1675.oacute = \\"\\\\u00F3\\"; +v1675.ocirc = \\"\\\\u00F4\\"; +v1675.ograve = \\"\\\\u00F2\\"; +v1675.oslash = \\"\\\\u00F8\\"; +v1675.otilde = \\"\\\\u00F5\\"; +v1675.ouml = \\"\\\\u00F6\\"; +v1675.szlig = \\"\\\\u00DF\\"; +v1675.thorn = \\"\\\\u00FE\\"; +v1675.uacute = \\"\\\\u00FA\\"; +v1675.ucirc = \\"\\\\u00FB\\"; +v1675.ugrave = \\"\\\\u00F9\\"; +v1675.uuml = \\"\\\\u00FC\\"; +v1675.yacute = \\"\\\\u00FD\\"; +v1675.yuml = \\"\\\\u00FF\\"; +v1675.copy = \\"\\\\u00A9\\"; +v1675.reg = \\"\\\\u00AE\\"; +v1675.nbsp = \\"\\\\u00A0\\"; +v1675.iexcl = \\"\\\\u00A1\\"; +v1675.cent = \\"\\\\u00A2\\"; +v1675.pound = \\"\\\\u00A3\\"; +v1675.curren = \\"\\\\u00A4\\"; +v1675.yen = \\"\\\\u00A5\\"; +v1675.brvbar = \\"\\\\u00A6\\"; +v1675.sect = \\"\\\\u00A7\\"; +v1675.uml = \\"\\\\u00A8\\"; +v1675.ordf = \\"\\\\u00AA\\"; +v1675.laquo = \\"\\\\u00AB\\"; +v1675.not = \\"\\\\u00AC\\"; +v1675.shy = \\"\\\\u00AD\\"; +v1675.macr = \\"\\\\u00AF\\"; +v1675.deg = \\"\\\\u00B0\\"; +v1675.plusmn = \\"\\\\u00B1\\"; +v1675.sup1 = \\"\\\\u00B9\\"; +v1675.sup2 = \\"\\\\u00B2\\"; +v1675.sup3 = \\"\\\\u00B3\\"; +v1675.acute = \\"\\\\u00B4\\"; +v1675.micro = \\"\\\\u00B5\\"; +v1675.para = \\"\\\\u00B6\\"; +v1675.middot = \\"\\\\u00B7\\"; +v1675.cedil = \\"\\\\u00B8\\"; +v1675.ordm = \\"\\\\u00BA\\"; +v1675.raquo = \\"\\\\u00BB\\"; +v1675.frac14 = \\"\\\\u00BC\\"; +v1675.frac12 = \\"\\\\u00BD\\"; +v1675.frac34 = \\"\\\\u00BE\\"; +v1675.iquest = \\"\\\\u00BF\\"; +v1675.times = \\"\\\\u00D7\\"; +v1675.divide = \\"\\\\u00F7\\"; +v1675.OElig = \\"\\\\u0152\\"; +v1675.oelig = \\"\\\\u0153\\"; +v1675.Scaron = \\"\\\\u0160\\"; +v1675.scaron = \\"\\\\u0161\\"; +v1675.Yuml = \\"\\\\u0178\\"; +v1675.fnof = \\"\\\\u0192\\"; +v1675.circ = \\"\\\\u02C6\\"; +v1675.tilde = \\"\\\\u02DC\\"; +v1675.Alpha = \\"\\\\u0391\\"; +v1675.Beta = \\"\\\\u0392\\"; +v1675.Gamma = \\"\\\\u0393\\"; +v1675.Delta = \\"\\\\u0394\\"; +v1675.Epsilon = \\"\\\\u0395\\"; +v1675.Zeta = \\"\\\\u0396\\"; +v1675.Eta = \\"\\\\u0397\\"; +v1675.Theta = \\"\\\\u0398\\"; +v1675.Iota = \\"\\\\u0399\\"; +v1675.Kappa = \\"\\\\u039A\\"; +v1675.Lambda = \\"\\\\u039B\\"; +v1675.Mu = \\"\\\\u039C\\"; +v1675.Nu = \\"\\\\u039D\\"; +v1675.Xi = \\"\\\\u039E\\"; +v1675.Omicron = \\"\\\\u039F\\"; +v1675.Pi = \\"\\\\u03A0\\"; +v1675.Rho = \\"\\\\u03A1\\"; +v1675.Sigma = \\"\\\\u03A3\\"; +v1675.Tau = \\"\\\\u03A4\\"; +v1675.Upsilon = \\"\\\\u03A5\\"; +v1675.Phi = \\"\\\\u03A6\\"; +v1675.Chi = \\"\\\\u03A7\\"; +v1675.Psi = \\"\\\\u03A8\\"; +v1675.Omega = \\"\\\\u03A9\\"; +v1675.alpha = \\"\\\\u03B1\\"; +v1675.beta = \\"\\\\u03B2\\"; +v1675.gamma = \\"\\\\u03B3\\"; +v1675.delta = \\"\\\\u03B4\\"; +v1675.epsilon = \\"\\\\u03B5\\"; +v1675.zeta = \\"\\\\u03B6\\"; +v1675.eta = \\"\\\\u03B7\\"; +v1675.theta = \\"\\\\u03B8\\"; +v1675.iota = \\"\\\\u03B9\\"; +v1675.kappa = \\"\\\\u03BA\\"; +v1675.lambda = \\"\\\\u03BB\\"; +v1675.mu = \\"\\\\u03BC\\"; +v1675.nu = \\"\\\\u03BD\\"; +v1675.xi = \\"\\\\u03BE\\"; +v1675.omicron = \\"\\\\u03BF\\"; +v1675.pi = \\"\\\\u03C0\\"; +v1675.rho = \\"\\\\u03C1\\"; +v1675.sigmaf = \\"\\\\u03C2\\"; +v1675.sigma = \\"\\\\u03C3\\"; +v1675.tau = \\"\\\\u03C4\\"; +v1675.upsilon = \\"\\\\u03C5\\"; +v1675.phi = \\"\\\\u03C6\\"; +v1675.chi = \\"\\\\u03C7\\"; +v1675.psi = \\"\\\\u03C8\\"; +v1675.omega = \\"\\\\u03C9\\"; +v1675.thetasym = \\"\\\\u03D1\\"; +v1675.upsih = \\"\\\\u03D2\\"; +v1675.piv = \\"\\\\u03D6\\"; +v1675.ensp = \\"\\\\u2002\\"; +v1675.emsp = \\"\\\\u2003\\"; +v1675.thinsp = \\"\\\\u2009\\"; +v1675.zwnj = \\"\\\\u200C\\"; +v1675.zwj = \\"\\\\u200D\\"; +v1675.lrm = \\"\\\\u200E\\"; +v1675.rlm = \\"\\\\u200F\\"; +v1675.ndash = \\"\\\\u2013\\"; +v1675.mdash = \\"\\\\u2014\\"; +v1675.lsquo = \\"\\\\u2018\\"; +v1675.rsquo = \\"\\\\u2019\\"; +v1675.sbquo = \\"\\\\u201A\\"; +v1675.ldquo = \\"\\\\u201C\\"; +v1675.rdquo = \\"\\\\u201D\\"; +v1675.bdquo = \\"\\\\u201E\\"; +v1675.dagger = \\"\\\\u2020\\"; +v1675.Dagger = \\"\\\\u2021\\"; +v1675.bull = \\"\\\\u2022\\"; +v1675.hellip = \\"\\\\u2026\\"; +v1675.permil = \\"\\\\u2030\\"; +v1675.prime = \\"\\\\u2032\\"; +v1675.Prime = \\"\\\\u2033\\"; +v1675.lsaquo = \\"\\\\u2039\\"; +v1675.rsaquo = \\"\\\\u203A\\"; +v1675.oline = \\"\\\\u203E\\"; +v1675.frasl = \\"\\\\u2044\\"; +v1675.euro = \\"\\\\u20AC\\"; +v1675.image = \\"\\\\u2111\\"; +v1675.weierp = \\"\\\\u2118\\"; +v1675.real = \\"\\\\u211C\\"; +v1675.trade = \\"\\\\u2122\\"; +v1675.alefsym = \\"\\\\u2135\\"; +v1675.larr = \\"\\\\u2190\\"; +v1675.uarr = \\"\\\\u2191\\"; +v1675.rarr = \\"\\\\u2192\\"; +v1675.darr = \\"\\\\u2193\\"; +v1675.harr = \\"\\\\u2194\\"; +v1675.crarr = \\"\\\\u21B5\\"; +v1675.lArr = \\"\\\\u21D0\\"; +v1675.uArr = \\"\\\\u21D1\\"; +v1675.rArr = \\"\\\\u21D2\\"; +v1675.dArr = \\"\\\\u21D3\\"; +v1675.hArr = \\"\\\\u21D4\\"; +v1675.forall = \\"\\\\u2200\\"; +v1675.part = \\"\\\\u2202\\"; +v1675.exist = \\"\\\\u2203\\"; +v1675.empty = \\"\\\\u2205\\"; +v1675.nabla = \\"\\\\u2207\\"; +v1675.isin = \\"\\\\u2208\\"; +v1675.notin = \\"\\\\u2209\\"; +v1675.ni = \\"\\\\u220B\\"; +v1675.prod = \\"\\\\u220F\\"; +v1675.sum = \\"\\\\u2211\\"; +v1675.minus = \\"\\\\u2212\\"; +v1675.lowast = \\"\\\\u2217\\"; +v1675.radic = \\"\\\\u221A\\"; +v1675.prop = \\"\\\\u221D\\"; +v1675.infin = \\"\\\\u221E\\"; +v1675.ang = \\"\\\\u2220\\"; +v1675.and = \\"\\\\u2227\\"; +v1675.or = \\"\\\\u2228\\"; +v1675.cap = \\"\\\\u2229\\"; +v1675.cup = \\"\\\\u222A\\"; +v1675.int = \\"\\\\u222B\\"; +v1675.there4 = \\"\\\\u2234\\"; +v1675.sim = \\"\\\\u223C\\"; +v1675.cong = \\"\\\\u2245\\"; +v1675.asymp = \\"\\\\u2248\\"; +v1675.ne = \\"\\\\u2260\\"; +v1675.equiv = \\"\\\\u2261\\"; +v1675.le = \\"\\\\u2264\\"; +v1675.ge = \\"\\\\u2265\\"; +v1675.sub = \\"\\\\u2282\\"; +v1675.sup = \\"\\\\u2283\\"; +v1675.nsub = \\"\\\\u2284\\"; +v1675.sube = \\"\\\\u2286\\"; +v1675.supe = \\"\\\\u2287\\"; +v1675.oplus = \\"\\\\u2295\\"; +v1675.otimes = \\"\\\\u2297\\"; +v1675.perp = \\"\\\\u22A5\\"; +v1675.sdot = \\"\\\\u22C5\\"; +v1675.lceil = \\"\\\\u2308\\"; +v1675.rceil = \\"\\\\u2309\\"; +v1675.lfloor = \\"\\\\u230A\\"; +v1675.rfloor = \\"\\\\u230B\\"; +v1675.lang = \\"\\\\u2329\\"; +v1675.rang = \\"\\\\u232A\\"; +v1675.loz = \\"\\\\u25CA\\"; +v1675.spades = \\"\\\\u2660\\"; +v1675.clubs = \\"\\\\u2663\\"; +v1675.hearts = \\"\\\\u2665\\"; +v1675.diams = \\"\\\\u2666\\"; +const v1677 = {}; +v1677.xml = \\"http://www.w3.org/XML/1998/namespace\\"; +v1677.xmlns = \\"http://www.w3.org/2000/xmlns/\\"; +var v1676 = v1677; +var v1679; +v1679 = function emit(parser, event, data) { parser[event] && parser[event](data); }; +const v1680 = {}; +v1680.constructor = v1679; +v1679.prototype = v1680; +var v1678 = v1679; +v1666 = function SAXParser(strict, opt) { if (!(this instanceof SAXParser)) { + return new SAXParser(strict, opt); +} var parser = this; v1667(parser); parser.q = parser.c = \\"\\"; parser.bufferCheckPosition = 65536; parser.opt = opt || {}; parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags; parser.looseCase = parser.opt.lowercase ? \\"toLowerCase\\" : \\"toUpperCase\\"; parser.tags = []; parser.closed = parser.closedRoot = parser.sawRoot = false; parser.tag = parser.error = null; parser.strict = !!strict; parser.noscript = !!(strict || parser.opt.noscript); parser.state = 0; parser.strictEntities = parser.opt.strictEntities; parser.ENTITIES = parser.strictEntities ? v1672.create(v1673) : v1674.create(v1675); parser.attribList = []; if (parser.opt.xmlns) { + parser.ns = v1674.create(v1676); +} parser.trackPosition = parser.opt.position !== false; if (parser.trackPosition) { + parser.position = parser.line = parser.column = 0; +} v1678(parser, \\"onready\\"); }; +const v1681 = {}; +var v1682; +var v1684; +var v1686; +var v1687 = v1666; +var v1688 = v40; +var v1690; +var v1692; +var v1694; +v1694 = function textopts(opt, text) { if (opt.trim) + text = text.trim(); if (opt.normalize) + text = text.replace(/\\\\s+/g, \\" \\"); return text; }; +const v1695 = {}; +v1695.constructor = v1694; +v1694.prototype = v1695; +var v1693 = v1694; +var v1696 = v1679; +v1692 = function closeText(parser) { parser.textNode = v1693(parser.opt, parser.textNode); if (parser.textNode) + v1696(parser, \\"ontext\\", parser.textNode); parser.textNode = \\"\\"; }; +const v1697 = {}; +v1697.constructor = v1692; +v1692.prototype = v1697; +var v1691 = v1692; +var v1698 = v40; +var v1699 = v1679; +v1690 = function error(parser, er) { v1691(parser); if (parser.trackPosition) { + er += \\"\\\\nLine: \\" + parser.line + \\"\\\\nColumn: \\" + parser.column + \\"\\\\nChar: \\" + parser.c; +} er = new v1698(er); parser.error = er; v1699(parser, \\"onerror\\", er); return parser; }; +const v1700 = {}; +v1700.constructor = v1690; +v1690.prototype = v1700; +var v1689 = v1690; +v1686 = function strictFail(parser, message) { if (typeof parser !== \\"object\\" || !(parser instanceof v1687)) { + throw new v1688(\\"bad call to strictFail\\"); +} if (parser.strict) { + v1689(parser, message); +} }; +const v1701 = {}; +v1701.constructor = v1686; +v1686.prototype = v1701; +var v1685 = v1686; +var v1702 = v1690; +var v1703 = v1666; +v1684 = function end(parser) { if (parser.sawRoot && !parser.closedRoot) + v1685(parser, \\"Unclosed root tag\\"); if ((parser.state !== 0) && (parser.state !== 1) && (parser.state !== 2)) { + v1702(parser, \\"Unexpected end\\"); +} v1691(parser); parser.c = \\"\\"; parser.closed = true; v1696(parser, \\"onend\\"); v1703.call(parser, parser.strict, parser.opt); return parser; }; +const v1704 = {}; +v1704.constructor = v1684; +v1684.prototype = v1704; +var v1683 = v1684; +v1682 = function () { v1683(this); }; +const v1705 = {}; +v1705.constructor = v1682; +v1682.prototype = v1705; +v1681.end = v1682; +var v1706; +var v1707 = v1690; +var v1709; +v1709 = function charAt(chunk, i) { var result = \\"\\"; if (i < chunk.length) { + result = chunk.charAt(i); +} return result; }; +const v1710 = {}; +v1710.constructor = v1709; +v1709.prototype = v1710; +var v1708 = v1709; +var v1712; +var v1714; +v1714 = function isWhitespace(c) { return c === \\" \\" || c === \\"\\\\n\\" || c === \\"\\\\r\\" || c === \\"\\\\t\\"; }; +const v1715 = {}; +v1715.constructor = v1714; +v1714.prototype = v1715; +var v1713 = v1714; +var v1716 = v1686; +v1712 = function beginWhiteSpace(parser, c) { if (c === \\"<\\") { + parser.state = 4; + parser.startTagPosition = parser.position; +} +else if (!v1713(c)) { + v1716(parser, \\"Non-whitespace before first tag.\\"); + parser.textNode = c; + parser.state = 2; +} }; +const v1717 = {}; +v1717.constructor = v1712; +v1712.prototype = v1717; +var v1711 = v1712; +var v1718 = v1714; +var v1720; +v1720 = function isMatch(regex, c) { return regex.test(c); }; +const v1721 = {}; +v1721.constructor = v1720; +v1720.prototype = v1721; +var v1719 = v1720; +var v1722 = /[:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD]/; +var v1723 = v33; +var v1724 = \\"[CDATA[\\"; +var v1726; +v1726 = function emitNode(parser, nodeType, data) { if (parser.textNode) + v1691(parser); v1699(parser, nodeType, data); }; +const v1727 = {}; +v1727.constructor = v1726; +v1726.prototype = v1727; +var v1725 = v1726; +var v1728 = \\"DOCTYPE\\"; +var v1729 = v1726; +var v1731; +v1731 = function isQuote(c) { return c === \\"\\\\\\"\\" || c === \\"'\\"; }; +const v1732 = {}; +v1732.constructor = v1731; +v1731.prototype = v1732; +var v1730 = v1731; +var v1733 = v1731; +var v1734 = v1694; +var v1735 = v1726; +var v1736 = v1720; +var v1737 = /[:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040.\\\\d-]/; +var v1739; +var v1740 = v1726; +v1739 = function newTag(parser) { if (!parser.strict) + parser.tagName = parser.tagName[parser.looseCase](); var parent = parser.tags[parser.tags.length - 1] || parser; var tag = parser.tag = { name: parser.tagName, attributes: {} }; if (parser.opt.xmlns) { + tag.ns = parent.ns; +} parser.attribList.length = 0; v1740(parser, \\"onopentagstart\\", tag); }; +const v1741 = {}; +v1741.constructor = v1739; +v1739.prototype = v1741; +var v1738 = v1739; +var v1743; +var v1745; +v1745 = function qname(name, attribute) { var i = name.indexOf(\\":\\"); var qualName = i < 0 ? [\\"\\", name] : name.split(\\":\\"); var prefix = qualName[0]; var local = qualName[1]; if (attribute && name === \\"xmlns\\") { + prefix = \\"xmlns\\"; + local = \\"\\"; +} return { prefix: prefix, local: local }; }; +const v1746 = {}; +v1746.constructor = v1745; +v1745.prototype = v1746; +var v1744 = v1745; +var v1747 = v1686; +var v1748 = v163; +var v1749 = v31; +var v1750 = v1745; +var v1751 = v163; +var v1752 = v1726; +v1743 = function openTag(parser, selfClosing) { if (parser.opt.xmlns) { + var tag = parser.tag; + var qn = v1744(parser.tagName); + tag.prefix = qn.prefix; + tag.local = qn.local; + tag.uri = tag.ns[qn.prefix] || \\"\\"; + if (tag.prefix && !tag.uri) { + v1747(parser, \\"Unbound namespace prefix: \\" + v1748.stringify(parser.tagName)); + tag.uri = qn.prefix; + } + var parent = parser.tags[parser.tags.length - 1] || parser; + if (tag.ns && parent.ns !== tag.ns) { + v1749.keys(tag.ns).forEach(function (p) { v1735(parser, \\"onopennamespace\\", { prefix: p, uri: tag.ns[p] }); }); + } + for (var i = 0, l = parser.attribList.length; i < l; i++) { + var nv = parser.attribList[i]; + var name = nv[0]; + var value = nv[1]; + var qualName = v1750(name, true); + var prefix = qualName.prefix; + var local = qualName.local; + var uri = prefix === \\"\\" ? \\"\\" : (tag.ns[prefix] || \\"\\"); + var a = { name: name, value: value, prefix: prefix, local: local, uri: uri }; + if (prefix && prefix !== \\"xmlns\\" && !uri) { + v1685(parser, \\"Unbound namespace prefix: \\" + v1751.stringify(prefix)); + a.uri = prefix; + } + parser.tag.attributes[name] = a; + v1752(parser, \\"onattribute\\", a); + } + parser.attribList.length = 0; +} parser.tag.isSelfClosing = !!selfClosing; parser.sawRoot = true; parser.tags.push(parser.tag); v1752(parser, \\"onopentag\\", parser.tag); if (!selfClosing) { + if (!parser.noscript && parser.tagName.toLowerCase() === \\"script\\") { + parser.state = 34; + } + else { + parser.state = 2; + } + parser.tag = null; + parser.tagName = \\"\\"; +} parser.attribName = parser.attribValue = \\"\\"; parser.attribList.length = 0; }; +const v1753 = {}; +v1753.constructor = v1743; +v1743.prototype = v1753; +var v1742 = v1743; +var v1755; +var v1756 = v31; +v1755 = function closeTag(parser) { if (!parser.tagName) { + v1747(parser, \\"Weird empty close tag.\\"); + parser.textNode += \\"\\"; + parser.state = 2; + return; +} if (parser.script) { + if (parser.tagName !== \\"script\\") { + parser.script += \\"\\"; + parser.tagName = \\"\\"; + parser.state = 34; + return; + } + v1725(parser, \\"onscript\\", parser.script); + parser.script = \\"\\"; +} var t = parser.tags.length; var tagName = parser.tagName; if (!parser.strict) { + tagName = tagName[parser.looseCase](); +} var closeTo = tagName; while (t--) { + var close = parser.tags[t]; + if (close.name !== closeTo) { + v1747(parser, \\"Unexpected close tag\\"); + } + else { + break; + } +} if (t < 0) { + v1747(parser, \\"Unmatched closing tag: \\" + parser.tagName); + parser.textNode += \\"\\"; + parser.state = 2; + return; +} parser.tagName = tagName; var s = parser.tags.length; while (s-- > t) { + var tag = parser.tag = parser.tags.pop(); + parser.tagName = parser.tag.name; + v1735(parser, \\"onclosetag\\", parser.tagName); + var x = {}; + for (var i in tag.ns) { + x[i] = tag.ns[i]; + } + var parent = parser.tags[parser.tags.length - 1] || parser; + if (parser.opt.xmlns && tag.ns !== parent.ns) { + v1756.keys(tag.ns).forEach(function (p) { var n = tag.ns[p]; v1735(parser, \\"onclosenamespace\\", { prefix: p, uri: n }); }); + } +} if (t === 0) + parser.closedRoot = true; parser.tagName = parser.attribValue = parser.attribName = \\"\\"; parser.attribList.length = 0; parser.state = 2; }; +const v1757 = {}; +v1757.constructor = v1755; +v1755.prototype = v1757; +var v1754 = v1755; +var v1759; +var v1760 = v1745; +var v1761 = \\"http://www.w3.org/XML/1998/namespace\\"; +var v1762 = v1686; +var v1763 = \\"http://www.w3.org/2000/xmlns/\\"; +var v1764 = v31; +v1759 = function attrib(parser) { if (!parser.strict) { + parser.attribName = parser.attribName[parser.looseCase](); +} if (parser.attribList.indexOf(parser.attribName) !== -1 || parser.tag.attributes.hasOwnProperty(parser.attribName)) { + parser.attribName = parser.attribValue = \\"\\"; + return; +} if (parser.opt.xmlns) { + var qn = v1760(parser.attribName, true); + var prefix = qn.prefix; + var local = qn.local; + if (prefix === \\"xmlns\\") { + if (local === \\"xml\\" && parser.attribValue !== v1761) { + v1762(parser, \\"xml: prefix must be bound to \\" + v1761 + \\"\\\\n\\" + \\"Actual: \\" + parser.attribValue); + } + else if (local === \\"xmlns\\" && parser.attribValue !== v1763) { + v1762(parser, \\"xmlns: prefix must be bound to \\" + v1763 + \\"\\\\n\\" + \\"Actual: \\" + parser.attribValue); + } + else { + var tag = parser.tag; + var parent = parser.tags[parser.tags.length - 1] || parser; + if (tag.ns === parent.ns) { + tag.ns = v1764.create(parent.ns); + } + tag.ns[local] = parser.attribValue; } - return cleanValue; - }; - const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data[\\"__type\\"] !== void 0) { - return sanitizeErrorCode(data[\\"__type\\"]); - } - }; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js -var require_BatchExecuteStatementCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.BatchExecuteStatementCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var BatchExecuteStatementCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"BatchExecuteStatementCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchExecuteStatementInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchExecuteStatementOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0BatchExecuteStatementCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0BatchExecuteStatementCommand)(output, context); - } - }; - exports2.BatchExecuteStatementCommand = BatchExecuteStatementCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js -var require_BatchGetItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.BatchGetItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var BatchGetItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"BatchGetItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchGetItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchGetItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0BatchGetItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0BatchGetItemCommand)(output, context); - } - }; - exports2.BatchGetItemCommand = BatchGetItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js -var require_BatchWriteItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.BatchWriteItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var BatchWriteItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"BatchWriteItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchWriteItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchWriteItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0BatchWriteItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0BatchWriteItemCommand)(output, context); - } - }; - exports2.BatchWriteItemCommand = BatchWriteItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js -var require_CreateBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CreateBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"CreateBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0CreateBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0CreateBackupCommand)(output, context); - } - }; - exports2.CreateBackupCommand = CreateBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js -var require_CreateGlobalTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CreateGlobalTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateGlobalTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"CreateGlobalTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateGlobalTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateGlobalTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0CreateGlobalTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0CreateGlobalTableCommand)(output, context); - } - }; - exports2.CreateGlobalTableCommand = CreateGlobalTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js -var require_CreateTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CreateTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"CreateTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0CreateTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0CreateTableCommand)(output, context); - } - }; - exports2.CreateTableCommand = CreateTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js -var require_DeleteBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DeleteBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DeleteBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DeleteBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteBackupCommand)(output, context); - } - }; - exports2.DeleteBackupCommand = DeleteBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js -var require_DeleteItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DeleteItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DeleteItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DeleteItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteItemCommand)(output, context); - } - }; - exports2.DeleteItemCommand = DeleteItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js -var require_DeleteTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DeleteTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DeleteTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DeleteTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteTableCommand)(output, context); - } - }; - exports2.DeleteTableCommand = DeleteTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js -var require_DescribeBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeBackupCommand)(output, context); - } - }; - exports2.DescribeBackupCommand = DescribeBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js -var require_DescribeContinuousBackupsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeContinuousBackupsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeContinuousBackupsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeContinuousBackupsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContinuousBackupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContinuousBackupsCommand)(output, context); - } - }; - exports2.DescribeContinuousBackupsCommand = DescribeContinuousBackupsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js -var require_DescribeContributorInsightsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeContributorInsightsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeContributorInsightsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeContributorInsightsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeContributorInsightsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeContributorInsightsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContributorInsightsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContributorInsightsCommand)(output, context); - } - }; - exports2.DescribeContributorInsightsCommand = DescribeContributorInsightsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js -var require_DescribeEndpointsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeEndpointsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeEndpointsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeEndpointsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeEndpointsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeEndpointsResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeEndpointsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeEndpointsCommand)(output, context); - } - }; - exports2.DescribeEndpointsCommand = DescribeEndpointsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js -var require_DescribeExportCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeExportCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeExportCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeExportCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeExportInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeExportOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeExportCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeExportCommand)(output, context); - } - }; - exports2.DescribeExportCommand = DescribeExportCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js -var require_DescribeGlobalTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeGlobalTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeGlobalTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeGlobalTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeGlobalTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeGlobalTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableCommand)(output, context); - } - }; - exports2.DescribeGlobalTableCommand = DescribeGlobalTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js -var require_DescribeGlobalTableSettingsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeGlobalTableSettingsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeGlobalTableSettingsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeGlobalTableSettingsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(output, context); - } - }; - exports2.DescribeGlobalTableSettingsCommand = DescribeGlobalTableSettingsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js -var require_DescribeKinesisStreamingDestinationCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeKinesisStreamingDestinationCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeKinesisStreamingDestinationCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(output, context); - } - }; - exports2.DescribeKinesisStreamingDestinationCommand = DescribeKinesisStreamingDestinationCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js -var require_DescribeLimitsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeLimitsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeLimitsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeLimitsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeLimitsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeLimitsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeLimitsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeLimitsCommand)(output, context); - } - }; - exports2.DescribeLimitsCommand = DescribeLimitsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js -var require_DescribeTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableCommand)(output, context); - } - }; - exports2.DescribeTableCommand = DescribeTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js -var require_DescribeTableReplicaAutoScalingCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeTableReplicaAutoScalingCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeTableReplicaAutoScalingCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(output, context); - } - }; - exports2.DescribeTableReplicaAutoScalingCommand = DescribeTableReplicaAutoScalingCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js -var require_DescribeTimeToLiveCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeTimeToLiveCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeTimeToLiveCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeTimeToLiveCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeTimeToLiveInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeTimeToLiveOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTimeToLiveCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTimeToLiveCommand)(output, context); - } - }; - exports2.DescribeTimeToLiveCommand = DescribeTimeToLiveCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js -var require_DisableKinesisStreamingDestinationCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DisableKinesisStreamingDestinationCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DisableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DisableKinesisStreamingDestinationCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(output, context); - } - }; - exports2.DisableKinesisStreamingDestinationCommand = DisableKinesisStreamingDestinationCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js -var require_EnableKinesisStreamingDestinationCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.EnableKinesisStreamingDestinationCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var EnableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"EnableKinesisStreamingDestinationCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(output, context); - } - }; - exports2.EnableKinesisStreamingDestinationCommand = EnableKinesisStreamingDestinationCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js -var require_ExecuteStatementCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ExecuteStatementCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ExecuteStatementCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ExecuteStatementCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ExecuteStatementInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ExecuteStatementOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteStatementCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteStatementCommand)(output, context); - } - }; - exports2.ExecuteStatementCommand = ExecuteStatementCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js -var require_ExecuteTransactionCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ExecuteTransactionCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ExecuteTransactionCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ExecuteTransactionCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ExecuteTransactionInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ExecuteTransactionOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteTransactionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteTransactionCommand)(output, context); - } - }; - exports2.ExecuteTransactionCommand = ExecuteTransactionCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js -var require_ExportTableToPointInTimeCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ExportTableToPointInTimeCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ExportTableToPointInTimeCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ExportTableToPointInTimeCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ExportTableToPointInTimeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ExportTableToPointInTimeCommand)(output, context); - } - }; - exports2.ExportTableToPointInTimeCommand = ExportTableToPointInTimeCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js -var require_GetItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var GetItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"GetItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0GetItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0GetItemCommand)(output, context); - } - }; - exports2.GetItemCommand = GetItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js -var require_ListBackupsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListBackupsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListBackupsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListBackupsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListBackupsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListBackupsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListBackupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListBackupsCommand)(output, context); - } - }; - exports2.ListBackupsCommand = ListBackupsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js -var require_ListContributorInsightsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListContributorInsightsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListContributorInsightsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListContributorInsightsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListContributorInsightsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListContributorInsightsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListContributorInsightsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListContributorInsightsCommand)(output, context); - } - }; - exports2.ListContributorInsightsCommand = ListContributorInsightsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js -var require_ListExportsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListExportsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListExportsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListExportsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListExportsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListExportsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListExportsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListExportsCommand)(output, context); - } - }; - exports2.ListExportsCommand = ListExportsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js -var require_ListGlobalTablesCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListGlobalTablesCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListGlobalTablesCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListGlobalTablesCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListGlobalTablesInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListGlobalTablesOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListGlobalTablesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListGlobalTablesCommand)(output, context); - } - }; - exports2.ListGlobalTablesCommand = ListGlobalTablesCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js -var require_ListTablesCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListTablesCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListTablesCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListTablesCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListTablesInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListTablesOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListTablesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListTablesCommand)(output, context); - } - }; - exports2.ListTablesCommand = ListTablesCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js -var require_ListTagsOfResourceCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListTagsOfResourceCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListTagsOfResourceCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListTagsOfResourceCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListTagsOfResourceInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListTagsOfResourceOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListTagsOfResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListTagsOfResourceCommand)(output, context); - } - }; - exports2.ListTagsOfResourceCommand = ListTagsOfResourceCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js -var require_PutItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.PutItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var PutItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"PutItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0PutItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0PutItemCommand)(output, context); - } - }; - exports2.PutItemCommand = PutItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js -var require_QueryCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.QueryCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var QueryCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"QueryCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.QueryInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.QueryOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0QueryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0QueryCommand)(output, context); - } - }; - exports2.QueryCommand = QueryCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js -var require_RestoreTableFromBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.RestoreTableFromBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var RestoreTableFromBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"RestoreTableFromBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.RestoreTableFromBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.RestoreTableFromBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableFromBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableFromBackupCommand)(output, context); - } - }; - exports2.RestoreTableFromBackupCommand = RestoreTableFromBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js -var require_RestoreTableToPointInTimeCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.RestoreTableToPointInTimeCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var RestoreTableToPointInTimeCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"RestoreTableToPointInTimeCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableToPointInTimeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(output, context); - } - }; - exports2.RestoreTableToPointInTimeCommand = RestoreTableToPointInTimeCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js -var require_ScanCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ScanCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ScanCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ScanCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ScanInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ScanOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ScanCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ScanCommand)(output, context); - } - }; - exports2.ScanCommand = ScanCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js -var require_TagResourceCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TagResourceCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var TagResourceCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"TagResourceCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0TagResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0TagResourceCommand)(output, context); - } - }; - exports2.TagResourceCommand = TagResourceCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js -var require_TransactGetItemsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TransactGetItemsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var TransactGetItemsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"TransactGetItemsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TransactGetItemsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.TransactGetItemsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0TransactGetItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0TransactGetItemsCommand)(output, context); - } - }; - exports2.TransactGetItemsCommand = TransactGetItemsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js -var require_TransactWriteItemsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TransactWriteItemsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var TransactWriteItemsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"TransactWriteItemsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TransactWriteItemsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.TransactWriteItemsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0TransactWriteItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0TransactWriteItemsCommand)(output, context); - } - }; - exports2.TransactWriteItemsCommand = TransactWriteItemsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js -var require_UntagResourceCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UntagResourceCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UntagResourceCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UntagResourceCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UntagResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UntagResourceCommand)(output, context); - } - }; - exports2.UntagResourceCommand = UntagResourceCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js -var require_UpdateContinuousBackupsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateContinuousBackupsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateContinuousBackupsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateContinuousBackupsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContinuousBackupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContinuousBackupsCommand)(output, context); - } - }; - exports2.UpdateContinuousBackupsCommand = UpdateContinuousBackupsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js -var require_UpdateContributorInsightsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateContributorInsightsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateContributorInsightsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateContributorInsightsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateContributorInsightsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateContributorInsightsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContributorInsightsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContributorInsightsCommand)(output, context); - } - }; - exports2.UpdateContributorInsightsCommand = UpdateContributorInsightsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js -var require_UpdateGlobalTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateGlobalTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateGlobalTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateGlobalTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateGlobalTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateGlobalTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableCommand)(output, context); - } - }; - exports2.UpdateGlobalTableCommand = UpdateGlobalTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js -var require_UpdateGlobalTableSettingsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateGlobalTableSettingsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateGlobalTableSettingsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateGlobalTableSettingsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(output, context); - } - }; - exports2.UpdateGlobalTableSettingsCommand = UpdateGlobalTableSettingsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js -var require_UpdateItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateItemCommand)(output, context); - } - }; - exports2.UpdateItemCommand = UpdateItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js -var require_UpdateTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableCommand)(output, context); - } - }; - exports2.UpdateTableCommand = UpdateTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js -var require_UpdateTableReplicaAutoScalingCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateTableReplicaAutoScalingCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateTableReplicaAutoScalingCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(output, context); - } - }; - exports2.UpdateTableReplicaAutoScalingCommand = UpdateTableReplicaAutoScalingCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js -var require_UpdateTimeToLiveCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateTimeToLiveCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateTimeToLiveCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateTimeToLiveCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateTimeToLiveInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateTimeToLiveOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTimeToLiveCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTimeToLiveCommand)(output, context); - } - }; - exports2.UpdateTimeToLiveCommand = UpdateTimeToLiveCommand; - } -}); - -// node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js -var require_booleanSelector = __commonJS({ - \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.booleanSelector = exports2.SelectorType = void 0; - var SelectorType; - (function(SelectorType2) { - SelectorType2[\\"ENV\\"] = \\"env\\"; - SelectorType2[\\"CONFIG\\"] = \\"shared config entry\\"; - })(SelectorType = exports2.SelectorType || (exports2.SelectorType = {})); - var booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return void 0; - if (obj[key] === \\"true\\") - return true; - if (obj[key] === \\"false\\") - return false; - throw new Error(\`Cannot load \${type} \\"\${key}\\". Expected \\"true\\" or \\"false\\", got \${obj[key]}.\`); - }; - exports2.booleanSelector = booleanSelector; - } -}); - -// node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js -var require_dist_cjs5 = __commonJS({ - \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_booleanSelector(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js -var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = exports2.CONFIG_USE_DUALSTACK_ENDPOINT = exports2.ENV_USE_DUALSTACK_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs5(); - exports2.ENV_USE_DUALSTACK_ENDPOINT = \\"AWS_USE_DUALSTACK_ENDPOINT\\"; - exports2.CONFIG_USE_DUALSTACK_ENDPOINT = \\"use_dualstack_endpoint\\"; - exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = false; - exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false - }; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js -var require_NodeUseFipsEndpointConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_FIPS_ENDPOINT = exports2.CONFIG_USE_FIPS_ENDPOINT = exports2.ENV_USE_FIPS_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs5(); - exports2.ENV_USE_FIPS_ENDPOINT = \\"AWS_USE_FIPS_ENDPOINT\\"; - exports2.CONFIG_USE_FIPS_ENDPOINT = \\"use_fips_endpoint\\"; - exports2.DEFAULT_USE_FIPS_ENDPOINT = false; - exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false - }; - } -}); - -// node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js -var require_normalizeProvider = __commonJS({ - \\"node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.normalizeProvider = void 0; - var normalizeProvider = (input) => { - if (typeof input === \\"function\\") - return input; - const promisified = Promise.resolve(input); - return () => promisified; - }; - exports2.normalizeProvider = normalizeProvider; - } -}); - -// node_modules/@aws-sdk/util-middleware/dist-cjs/index.js -var require_dist_cjs6 = __commonJS({ - \\"node_modules/@aws-sdk/util-middleware/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_normalizeProvider(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js -var require_resolveCustomEndpointsConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveCustomEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs6(); - var resolveCustomEndpointsConfig = (input) => { - var _a; - const { endpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint), - isCustomEndpoint: true, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint) - }; - }; - exports2.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js -var require_getEndpointFromRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getEndpointFromRegion = void 0; - var getEndpointFromRegion = async (input) => { - var _a; - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error(\\"Invalid region in client config\\"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; - if (!hostname) { - throw new Error(\\"Cannot resolve hostname from client config\\"); - } - return input.urlParser(\`\${tls ? \\"https:\\" : \\"http:\\"}//\${hostname}\`); - }; - exports2.getEndpointFromRegion = getEndpointFromRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js -var require_resolveEndpointsConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs6(); - var getEndpointFromRegion_1 = require_getEndpointFromRegion(); - var resolveEndpointsConfig = (input) => { - var _a; - const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); - const { endpoint, useFipsEndpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: endpoint ? true : false, - useDualstackEndpoint - }; - }; - exports2.resolveEndpointsConfig = resolveEndpointsConfig; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js -var require_endpointsConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports2); - tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports2); - tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports2); - tslib_1.__exportStar(require_resolveEndpointsConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js -var require_config = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_REGION_CONFIG_FILE_OPTIONS = exports2.NODE_REGION_CONFIG_OPTIONS = exports2.REGION_INI_NAME = exports2.REGION_ENV_NAME = void 0; - exports2.REGION_ENV_NAME = \\"AWS_REGION\\"; - exports2.REGION_INI_NAME = \\"region\\"; - exports2.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports2.REGION_INI_NAME], - default: () => { - throw new Error(\\"Region is missing\\"); - } - }; - exports2.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: \\"credentials\\" - }; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js -var require_isFipsRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isFipsRegion = void 0; - var isFipsRegion = (region) => typeof region === \\"string\\" && (region.startsWith(\\"fips-\\") || region.endsWith(\\"-fips\\")); - exports2.isFipsRegion = isFipsRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js -var require_getRealRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRealRegion = void 0; - var isFipsRegion_1 = require_isFipsRegion(); - var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? [\\"fips-aws-global\\", \\"aws-fips\\"].includes(region) ? \\"us-east-1\\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \\"\\") : region; - exports2.getRealRegion = getRealRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js -var require_resolveRegionConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveRegionConfig = void 0; - var getRealRegion_1 = require_getRealRegion(); - var isFipsRegion_1 = require_isFipsRegion(); - var resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error(\\"Region is missing\\"); - } - return { - ...input, - region: async () => { - if (typeof region === \\"string\\") { - return (0, getRealRegion_1.getRealRegion)(region); - } - const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === \\"string\\" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { - return true; - } - return typeof useFipsEndpoint === \\"boolean\\" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); + } + parser.attribList.push([parser.attribName, parser.attribValue]); +} +else { + parser.tag.attributes[parser.attribName] = parser.attribValue; + v1725(parser, \\"onattribute\\", { name: parser.attribName, value: parser.attribValue }); +} parser.attribName = parser.attribValue = \\"\\"; }; +const v1765 = {}; +v1765.constructor = v1759; +v1759.prototype = v1765; +var v1758 = v1759; +var v1766 = /[:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040.\\\\d-]/; +var v1768; +var v1769 = v1714; +v1768 = function isAttribEnd(c) { return c === \\">\\" || v1769(c); }; +const v1770 = {}; +v1770.constructor = v1768; +v1768.prototype = v1770; +var v1767 = v1768; +var v1772; +var v1773 = v1720; +v1772 = function notMatch(regex, c) { return !v1773(regex, c); }; +const v1774 = {}; +v1774.constructor = v1772; +v1772.prototype = v1774; +var v1771 = v1772; +var v1775 = undefined; +var v1777; +var v1778 = v117; +var v1779 = v117; +var v1780 = v1017; +var v1781 = v136; +v1777 = function parseEntity(parser) { var entity = parser.entity; var entityLC = entity.toLowerCase(); var num; var numStr = \\"\\"; if (parser.ENTITIES[entity]) { + return parser.ENTITIES[entity]; +} if (parser.ENTITIES[entityLC]) { + return parser.ENTITIES[entityLC]; +} entity = entityLC; if (entity.charAt(0) === \\"#\\") { + if (entity.charAt(1) === \\"x\\") { + entity = entity.slice(2); + num = v1778(entity, 16); + numStr = num.toString(16); + } + else { + entity = entity.slice(1); + num = v1779(entity, 10); + numStr = num.toString(10); + } +} entity = entity.replace(/^0+/, \\"\\"); if (v1780(num) || numStr.toLowerCase() !== entity) { + v1747(parser, \\"Invalid character entity\\"); + return \\"&\\" + parser.entity + \\";\\"; +} return v1781.fromCodePoint(num); }; +const v1782 = {}; +v1782.constructor = v1777; +v1777.prototype = v1782; +var v1776 = v1777; +var v1783 = undefined; +var v1784 = /[#:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040.\\\\d-]/; +var v1785 = /[#:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD]/; +var v1786 = v40; +var v1788; +var v1789 = v787; +var v1790 = v1670; +var v1791 = v1692; +var v1792 = v787; +v1788 = function checkBufferLength(parser) { var maxAllowed = v1789.max(65536, 10); var maxActual = 0; for (var i = 0, l = 12; i < l; i++) { + var len = parser[v1790[i]].length; + if (len > maxAllowed) { + switch (v1669[i]) { + case \\"textNode\\": + v1791(parser); + break; + case \\"cdata\\": + v1740(parser, \\"oncdata\\", parser.cdata); + parser.cdata = \\"\\"; + break; + case \\"script\\": + v1740(parser, \\"onscript\\", parser.script); + parser.script = \\"\\"; + break; + default: v1702(parser, \\"Max buffer length exceeded: \\" + v1669[i]); } - }; - }; - exports2.resolveRegionConfig = resolveRegionConfig; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js -var require_regionConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_config(), exports2); - tslib_1.__exportStar(require_resolveRegionConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js -var require_PartitionHash = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js -var require_RegionHash = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js -var require_getHostnameFromVariants = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getHostnameFromVariants = void 0; - var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes(\\"fips\\") && useDualstackEndpoint === tags.includes(\\"dualstack\\"))) === null || _a === void 0 ? void 0 : _a.hostname; - }; - exports2.getHostnameFromVariants = getHostnameFromVariants; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js -var require_getResolvedHostname = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getResolvedHostname = void 0; - var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace(\\"{region}\\", resolvedRegion) : void 0; - exports2.getResolvedHostname = getResolvedHostname; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js -var require_getResolvedPartition = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getResolvedPartition = void 0; - var getResolvedPartition = (region, { partitionHash }) => { - var _a; - return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : \\"aws\\"; - }; - exports2.getResolvedPartition = getResolvedPartition; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js -var require_getResolvedSigningRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getResolvedSigningRegion = void 0; - var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace(\\"\\\\\\\\\\\\\\\\\\", \\"\\\\\\\\\\").replace(/^\\\\^/g, \\"\\\\\\\\.\\").replace(/\\\\$$/g, \\"\\\\\\\\.\\"); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); + } + maxActual = v1792.max(maxActual, len); +} var m = 65536 - maxActual; parser.bufferCheckPosition = m + parser.position; }; +const v1793 = {}; +v1793.constructor = v1788; +v1788.prototype = v1793; +var v1787 = v1788; +v1706 = function write(chunk) { var parser = this; if (this.error) { + throw this.error; +} if (parser.closed) { + return v1707(parser, \\"Cannot write after close. Assign an onready handler.\\"); +} if (chunk === null) { + return v1683(parser); +} if (typeof chunk === \\"object\\") { + chunk = chunk.toString(); +} var i = 0; var c = \\"\\"; while (true) { + c = v1708(chunk, i++); + parser.c = c; + if (!c) { + break; + } + if (parser.trackPosition) { + parser.position++; + if (c === \\"\\\\n\\") { + parser.line++; + parser.column = 0; } - } - }; - exports2.getResolvedSigningRegion = getResolvedSigningRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js -var require_getRegionInfo = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRegionInfo = void 0; - var getHostnameFromVariants_1 = require_getHostnameFromVariants(); - var getResolvedHostname_1 = require_getResolvedHostname(); - var getResolvedPartition_1 = require_getResolvedPartition(); - var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); - var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { - var _a, _b, _c, _d, _e, _f; - const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === void 0) { - throw new Error(\`Endpoint resolution failed for: \${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}\`); - } - const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint - }); - return { - partition, - signingService, - hostname, - ...signingRegion && { signingRegion }, - ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { - signingService: regionHash[resolvedRegion].signingService + else { + parser.column++; } - }; - }; - exports2.getRegionInfo = getRegionInfo; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js -var require_regionInfo = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_PartitionHash(), exports2); - tslib_1.__exportStar(require_RegionHash(), exports2); - tslib_1.__exportStar(require_getRegionInfo(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/index.js -var require_dist_cjs7 = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_endpointsConfig(), exports2); - tslib_1.__exportStar(require_regionConfig(), exports2); - tslib_1.__exportStar(require_regionInfo(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js -var require_dist_cjs8 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getContentLengthPlugin = exports2.contentLengthMiddlewareOptions = exports2.contentLengthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var CONTENT_LENGTH_HEADER = \\"content-length\\"; - function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request = args.request; - if (protocol_http_1.HttpRequest.isInstance(request)) { - const { body, headers } = request; - if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { - try { - const length = bodyLengthChecker(body); - request.headers = { - ...request.headers, - [CONTENT_LENGTH_HEADER]: String(length) - }; - } catch (error) { + } + switch (parser.state) { + case 0: + parser.state = 1; + if (c === \\"\\\\uFEFF\\") { + continue; } - } - } - return next({ - ...args, - request - }); - }; - } - exports2.contentLengthMiddleware = contentLengthMiddleware; - exports2.contentLengthMiddlewareOptions = { - step: \\"build\\", - tags: [\\"SET_CONTENT_LENGTH\\", \\"CONTENT_LENGTH\\"], - name: \\"contentLengthMiddleware\\", - override: true - }; - var getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports2.contentLengthMiddlewareOptions); - } - }); - exports2.getContentLengthPlugin = getContentLengthPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js -var require_configurations = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = void 0; - var ENV_ENDPOINT_DISCOVERY = [\\"AWS_ENABLE_ENDPOINT_DISCOVERY\\", \\"AWS_ENDPOINT_DISCOVERY_ENABLED\\"]; - var CONFIG_ENDPOINT_DISCOVERY = \\"endpoint_discovery_enabled\\"; - var isFalsy = (value) => [\\"false\\", \\"0\\"].indexOf(value) >= 0; - exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - for (let i = 0; i < ENV_ENDPOINT_DISCOVERY.length; i++) { - const envKey = ENV_ENDPOINT_DISCOVERY[i]; - if (envKey in env) { - const value = env[envKey]; - if (value === \\"\\") { - throw Error(\`Environment variable \${envKey} can't be empty of undefined, got \\"\${value}\\"\`); + v1711(parser, c); + continue; + case 1: + v1711(parser, c); + continue; + case 2: + if (parser.sawRoot && !parser.closedRoot) { + var starti = i - 1; + while (c && c !== \\"<\\" && c !== \\"&\\") { + c = v1708(chunk, i++); + if (c && parser.trackPosition) { + parser.position++; + if (c === \\"\\\\n\\") { + parser.line++; + parser.column = 0; + } + else { + parser.column++; + } + } + } + parser.textNode += chunk.substring(starti, i - 1); } - return !isFalsy(value); - } - } - }, - configFileSelector: (profile) => { - if (CONFIG_ENDPOINT_DISCOVERY in profile) { - const value = profile[CONFIG_ENDPOINT_DISCOVERY]; - if (value === void 0) { - throw Error(\`Shared config entry \${CONFIG_ENDPOINT_DISCOVERY} can't be undefined, got \\"\${value}\\"\`); - } - return !isFalsy(value); - } - }, - default: void 0 - }; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js -var require_getCacheKey = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCacheKey = void 0; - var getCacheKey = async (commandName, config, options) => { - const { accessKeyId } = await config.credentials(); - const { identifiers } = options; - return JSON.stringify({ - ...accessKeyId && { accessKeyId }, - ...identifiers && { - commandName, - identifiers: Object.entries(identifiers).sort().reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}) - } - }); - }; - exports2.getCacheKey = getCacheKey; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js -var require_updateDiscoveredEndpointInCache = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.updateDiscoveredEndpointInCache = void 0; - var requestQueue = {}; - var updateDiscoveredEndpointInCache = async (config, options) => new Promise((resolve, reject) => { - const { endpointCache } = config; - const { cacheKey, commandName, identifiers } = options; - const endpoints = endpointCache.get(cacheKey); - if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { - if (options.isDiscoveredEndpointRequired) { - if (!requestQueue[cacheKey]) - requestQueue[cacheKey] = []; - requestQueue[cacheKey].push({ resolve, reject }); - } else { - resolve(); - } - } else if (endpoints && endpoints.length > 0) { - resolve(); - } else { - const placeholderEndpoints = [{ Address: \\"\\", CachePeriodInMinutes: 1 }]; - endpointCache.set(cacheKey, placeholderEndpoints); - const command = new options.endpointDiscoveryCommandCtor({ - Operation: commandName.slice(0, -7), - Identifiers: identifiers - }); - const handler = command.resolveMiddleware(options.clientStack, config, options.options); - handler(command).then((result) => { - endpointCache.set(cacheKey, result.output.Endpoints); - if (requestQueue[cacheKey]) { - requestQueue[cacheKey].forEach(({ resolve: resolve2 }) => { - resolve2(); - }); - delete requestQueue[cacheKey]; - } - resolve(); - }).catch((error) => { - var _a; - if (error.name === \\"InvalidEndpointException\\" || ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 421) { - endpointCache.delete(cacheKey); - } - const errorToThrow = Object.assign(new Error(\`The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.\`), { reason: error }); - if (requestQueue[cacheKey]) { - requestQueue[cacheKey].forEach(({ reject: reject2 }) => { - reject2(errorToThrow); - }); - delete requestQueue[cacheKey]; - } - if (options.isDiscoveredEndpointRequired) { - reject(errorToThrow); - } else { - endpointCache.set(cacheKey, placeholderEndpoints); - resolve(); - } - }); - } - }); - exports2.updateDiscoveredEndpointInCache = updateDiscoveredEndpointInCache; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js -var require_endpointDiscoveryMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.endpointDiscoveryMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var getCacheKey_1 = require_getCacheKey(); - var updateDiscoveredEndpointInCache_1 = require_updateDiscoveredEndpointInCache(); - var endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => { - if (config.isCustomEndpoint) { - if (config.isClientEndpointDiscoveryEnabled) { - throw new Error(\`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.\`); - } - return next(args); - } - const { endpointDiscoveryCommandCtor } = config; - const { isDiscoveredEndpointRequired, identifiers } = middlewareConfig; - const { clientName, commandName } = context; - const isEndpointDiscoveryEnabled = await config.endpointDiscoveryEnabled(); - const cacheKey = await (0, getCacheKey_1.getCacheKey)(commandName, config, { identifiers }); - if (isDiscoveredEndpointRequired) { - if (isEndpointDiscoveryEnabled === false) { - throw new Error(\`Endpoint Discovery is disabled but \${commandName} on \${clientName} requires it. Please check your configurations.\`); - } - await (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { - ...middlewareConfig, - commandName, - cacheKey, - endpointDiscoveryCommandCtor - }); - } else if (isEndpointDiscoveryEnabled) { - (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { - ...middlewareConfig, - commandName, - cacheKey, - endpointDiscoveryCommandCtor - }); - } - const { request } = args; - if (cacheKey && protocol_http_1.HttpRequest.isInstance(request)) { - const endpoint = config.endpointCache.getEndpoint(cacheKey); - if (endpoint) { - request.hostname = endpoint; - } - } - return next(args); - }; - exports2.endpointDiscoveryMiddleware = endpointDiscoveryMiddleware; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js -var require_getEndpointDiscoveryPlugin = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getEndpointDiscoveryOptionalPlugin = exports2.getEndpointDiscoveryRequiredPlugin = exports2.getEndpointDiscoveryPlugin = exports2.endpointDiscoveryMiddlewareOptions = void 0; - var endpointDiscoveryMiddleware_1 = require_endpointDiscoveryMiddleware(); - exports2.endpointDiscoveryMiddlewareOptions = { - name: \\"endpointDiscoveryMiddleware\\", - step: \\"build\\", - tags: [\\"ENDPOINT_DISCOVERY\\"], - override: true - }; - var getEndpointDiscoveryPlugin = (pluginConfig, middlewareConfig) => ({ - applyToStack: (commandStack) => { - commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, middlewareConfig), exports2.endpointDiscoveryMiddlewareOptions); - } - }); - exports2.getEndpointDiscoveryPlugin = getEndpointDiscoveryPlugin; - var getEndpointDiscoveryRequiredPlugin = (pluginConfig, middlewareConfig) => ({ - applyToStack: (commandStack) => { - commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: true }), exports2.endpointDiscoveryMiddlewareOptions); - } - }); - exports2.getEndpointDiscoveryRequiredPlugin = getEndpointDiscoveryRequiredPlugin; - var getEndpointDiscoveryOptionalPlugin = (pluginConfig, middlewareConfig) => ({ - applyToStack: (commandStack) => { - commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: false }), exports2.endpointDiscoveryMiddlewareOptions); - } - }); - exports2.getEndpointDiscoveryOptionalPlugin = getEndpointDiscoveryOptionalPlugin; - } -}); - -// node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js -var require_Endpoint = __commonJS({ - \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/obliterator/iterator.js -var require_iterator = __commonJS({ - \\"node_modules/obliterator/iterator.js\\"(exports2, module2) { - function Iterator(next) { - Object.defineProperty(this, \\"_next\\", { - writable: false, - enumerable: false, - value: next - }); - this.done = false; - } - Iterator.prototype.next = function() { - if (this.done) - return { done: true }; - var step = this._next(); - if (step.done) - this.done = true; - return step; - }; - if (typeof Symbol !== \\"undefined\\") - Iterator.prototype[Symbol.iterator] = function() { - return this; - }; - Iterator.of = function() { - var args = arguments, l = args.length, i = 0; - return new Iterator(function() { - if (i >= l) - return { done: true }; - return { done: false, value: args[i++] }; - }); - }; - Iterator.empty = function() { - var iterator = new Iterator(null); - iterator.done = true; - return iterator; - }; - Iterator.is = function(value) { - if (value instanceof Iterator) - return true; - return typeof value === \\"object\\" && value !== null && typeof value.next === \\"function\\"; - }; - module2.exports = Iterator; - } -}); - -// node_modules/obliterator/foreach.js -var require_foreach = __commonJS({ - \\"node_modules/obliterator/foreach.js\\"(exports2, module2) { - var ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== \\"undefined\\"; - var SYMBOL_SUPPORT = typeof Symbol !== \\"undefined\\"; - function forEach(iterable, callback) { - var iterator, k, i, l, s; - if (!iterable) - throw new Error(\\"obliterator/forEach: invalid iterable.\\"); - if (typeof callback !== \\"function\\") - throw new Error(\\"obliterator/forEach: expecting a callback.\\"); - if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { - for (i = 0, l = iterable.length; i < l; i++) - callback(iterable[i], i); - return; - } - if (typeof iterable.forEach === \\"function\\") { - iterable.forEach(callback); - return; - } - if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { - iterable = iterable[Symbol.iterator](); - } - if (typeof iterable.next === \\"function\\") { - iterator = iterable; - i = 0; - while (s = iterator.next(), s.done !== true) { - callback(s.value, i); - i++; - } - return; - } - for (k in iterable) { - if (iterable.hasOwnProperty(k)) { - callback(iterable[k], k); - } - } - return; - } - forEach.forEachWithNullKeys = function(iterable, callback) { - var iterator, k, i, l, s; - if (!iterable) - throw new Error(\\"obliterator/forEachWithNullKeys: invalid iterable.\\"); - if (typeof callback !== \\"function\\") - throw new Error(\\"obliterator/forEachWithNullKeys: expecting a callback.\\"); - if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { - for (i = 0, l = iterable.length; i < l; i++) - callback(iterable[i], null); - return; - } - if (iterable instanceof Set) { - iterable.forEach(function(value) { - callback(value, null); - }); - return; - } - if (typeof iterable.forEach === \\"function\\") { - iterable.forEach(callback); - return; - } - if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { - iterable = iterable[Symbol.iterator](); - } - if (typeof iterable.next === \\"function\\") { - iterator = iterable; - i = 0; - while (s = iterator.next(), s.done !== true) { - callback(s.value, null); - i++; - } - return; - } - for (k in iterable) { - if (iterable.hasOwnProperty(k)) { - callback(iterable[k], k); - } - } - return; - }; - module2.exports = forEach; - } -}); - -// node_modules/mnemonist/utils/typed-arrays.js -var require_typed_arrays = __commonJS({ - \\"node_modules/mnemonist/utils/typed-arrays.js\\"(exports2) { - var MAX_8BIT_INTEGER = Math.pow(2, 8) - 1; - var MAX_16BIT_INTEGER = Math.pow(2, 16) - 1; - var MAX_32BIT_INTEGER = Math.pow(2, 32) - 1; - var MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1; - var MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1; - var MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1; - exports2.getPointerArray = function(size) { - var maxIndex = size - 1; - if (maxIndex <= MAX_8BIT_INTEGER) - return Uint8Array; - if (maxIndex <= MAX_16BIT_INTEGER) - return Uint16Array; - if (maxIndex <= MAX_32BIT_INTEGER) - return Uint32Array; - return Float64Array; - }; - exports2.getSignedPointerArray = function(size) { - var maxIndex = size - 1; - if (maxIndex <= MAX_SIGNED_8BIT_INTEGER) - return Int8Array; - if (maxIndex <= MAX_SIGNED_16BIT_INTEGER) - return Int16Array; - if (maxIndex <= MAX_SIGNED_32BIT_INTEGER) - return Int32Array; - return Float64Array; - }; - exports2.getNumberType = function(value) { - if (value === (value | 0)) { - if (Math.sign(value) === -1) { - if (value <= 127 && value >= -128) - return Int8Array; - if (value <= 32767 && value >= -32768) - return Int16Array; - return Int32Array; - } else { - if (value <= 255) - return Uint8Array; - if (value <= 65535) - return Uint16Array; - return Uint32Array; - } - } - return Float64Array; - }; - var TYPE_PRIORITY = { - Uint8Array: 1, - Int8Array: 2, - Uint16Array: 3, - Int16Array: 4, - Uint32Array: 5, - Int32Array: 6, - Float32Array: 7, - Float64Array: 8 - }; - exports2.getMinimalRepresentation = function(array, getter) { - var maxType = null, maxPriority = 0, p, t, v, i, l; - for (i = 0, l = array.length; i < l; i++) { - v = getter ? getter(array[i]) : array[i]; - t = exports2.getNumberType(v); - p = TYPE_PRIORITY[t.name]; - if (p > maxPriority) { - maxPriority = p; - maxType = t; - } - } - return maxType; - }; - exports2.isTypedArray = function(value) { - return typeof ArrayBuffer !== \\"undefined\\" && ArrayBuffer.isView(value); - }; - exports2.concat = function() { - var length = 0, i, o, l; - for (i = 0, l = arguments.length; i < l; i++) - length += arguments[i].length; - var array = new arguments[0].constructor(length); - for (i = 0, o = 0; i < l; i++) { - array.set(arguments[i], o); - o += arguments[i].length; - } - return array; - }; - exports2.indices = function(length) { - var PointerArray = exports2.getPointerArray(length); - var array = new PointerArray(length); - for (var i = 0; i < length; i++) - array[i] = i; - return array; - }; - } -}); - -// node_modules/mnemonist/utils/iterables.js -var require_iterables = __commonJS({ - \\"node_modules/mnemonist/utils/iterables.js\\"(exports2) { - var forEach = require_foreach(); - var typed = require_typed_arrays(); - function isArrayLike(target) { - return Array.isArray(target) || typed.isTypedArray(target); - } - function guessLength(target) { - if (typeof target.length === \\"number\\") - return target.length; - if (typeof target.size === \\"number\\") - return target.size; - return; - } - function toArray(target) { - var l = guessLength(target); - var array = typeof l === \\"number\\" ? new Array(l) : []; - var i = 0; - forEach(target, function(value) { - array[i++] = value; - }); - return array; - } - function toArrayWithIndices(target) { - var l = guessLength(target); - var IndexArray = typeof l === \\"number\\" ? typed.getPointerArray(l) : Array; - var array = typeof l === \\"number\\" ? new Array(l) : []; - var indices = typeof l === \\"number\\" ? new IndexArray(l) : []; - var i = 0; - forEach(target, function(value) { - array[i] = value; - indices[i] = i++; - }); - return [array, indices]; - } - exports2.isArrayLike = isArrayLike; - exports2.guessLength = guessLength; - exports2.toArray = toArray; - exports2.toArrayWithIndices = toArrayWithIndices; - } -}); - -// node_modules/mnemonist/lru-cache.js -var require_lru_cache = __commonJS({ - \\"node_modules/mnemonist/lru-cache.js\\"(exports2, module2) { - var Iterator = require_iterator(); - var forEach = require_foreach(); - var typed = require_typed_arrays(); - var iterables = require_iterables(); - function LRUCache(Keys, Values, capacity) { - if (arguments.length < 2) { - capacity = Keys; - Keys = null; - Values = null; - } - this.capacity = capacity; - if (typeof this.capacity !== \\"number\\" || this.capacity <= 0) - throw new Error(\\"mnemonist/lru-cache: capacity should be positive number.\\"); - var PointerArray = typed.getPointerArray(capacity); - this.forward = new PointerArray(capacity); - this.backward = new PointerArray(capacity); - this.K = typeof Keys === \\"function\\" ? new Keys(capacity) : new Array(capacity); - this.V = typeof Values === \\"function\\" ? new Values(capacity) : new Array(capacity); - this.size = 0; - this.head = 0; - this.tail = 0; - this.items = {}; - } - LRUCache.prototype.clear = function() { - this.size = 0; - this.head = 0; - this.tail = 0; - this.items = {}; - }; - LRUCache.prototype.splayOnTop = function(pointer) { - var oldHead = this.head; - if (this.head === pointer) - return this; - var previous = this.backward[pointer], next = this.forward[pointer]; - if (this.tail === pointer) { - this.tail = previous; - } else { - this.backward[next] = previous; - } - this.forward[previous] = next; - this.backward[oldHead] = pointer; - this.head = pointer; - this.forward[pointer] = oldHead; - return this; - }; - LRUCache.prototype.set = function(key, value) { - var pointer = this.items[key]; - if (typeof pointer !== \\"undefined\\") { - this.splayOnTop(pointer); - this.V[pointer] = value; - return; - } - if (this.size < this.capacity) { - pointer = this.size++; - } else { - pointer = this.tail; - this.tail = this.backward[pointer]; - delete this.items[this.K[pointer]]; - } - this.items[key] = pointer; - this.K[pointer] = key; - this.V[pointer] = value; - this.forward[pointer] = this.head; - this.backward[this.head] = pointer; - this.head = pointer; - }; - LRUCache.prototype.setpop = function(key, value) { - var oldValue = null; - var oldKey = null; - var pointer = this.items[key]; - if (typeof pointer !== \\"undefined\\") { - this.splayOnTop(pointer); - oldValue = this.V[pointer]; - this.V[pointer] = value; - return { evicted: false, key, value: oldValue }; - } - if (this.size < this.capacity) { - pointer = this.size++; - } else { - pointer = this.tail; - this.tail = this.backward[pointer]; - oldValue = this.V[pointer]; - oldKey = this.K[pointer]; - delete this.items[this.K[pointer]]; - } - this.items[key] = pointer; - this.K[pointer] = key; - this.V[pointer] = value; - this.forward[pointer] = this.head; - this.backward[this.head] = pointer; - this.head = pointer; - if (oldKey) { - return { evicted: true, key: oldKey, value: oldValue }; - } else { - return null; - } - }; - LRUCache.prototype.has = function(key) { - return key in this.items; - }; - LRUCache.prototype.get = function(key) { - var pointer = this.items[key]; - if (typeof pointer === \\"undefined\\") - return; - this.splayOnTop(pointer); - return this.V[pointer]; - }; - LRUCache.prototype.peek = function(key) { - var pointer = this.items[key]; - if (typeof pointer === \\"undefined\\") - return; - return this.V[pointer]; - }; - LRUCache.prototype.forEach = function(callback, scope) { - scope = arguments.length > 1 ? scope : this; - var i = 0, l = this.size; - var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; - while (i < l) { - callback.call(scope, values[pointer], keys[pointer], this); - pointer = forward[pointer]; - i++; - } - }; - LRUCache.prototype.keys = function() { - var i = 0, l = this.size; - var pointer = this.head, keys = this.K, forward = this.forward; - return new Iterator(function() { - if (i >= l) - return { done: true }; - var key = keys[pointer]; - i++; - if (i < l) - pointer = forward[pointer]; - return { - done: false, - value: key - }; - }); - }; - LRUCache.prototype.values = function() { - var i = 0, l = this.size; - var pointer = this.head, values = this.V, forward = this.forward; - return new Iterator(function() { - if (i >= l) - return { done: true }; - var value = values[pointer]; - i++; - if (i < l) - pointer = forward[pointer]; - return { - done: false, - value - }; - }); - }; - LRUCache.prototype.entries = function() { - var i = 0, l = this.size; - var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; - return new Iterator(function() { - if (i >= l) - return { done: true }; - var key = keys[pointer], value = values[pointer]; - i++; - if (i < l) - pointer = forward[pointer]; - return { - done: false, - value: [key, value] - }; - }); - }; - if (typeof Symbol !== \\"undefined\\") - LRUCache.prototype[Symbol.iterator] = LRUCache.prototype.entries; - LRUCache.prototype.inspect = function() { - var proxy = /* @__PURE__ */ new Map(); - var iterator = this.entries(), step; - while (step = iterator.next(), !step.done) - proxy.set(step.value[0], step.value[1]); - Object.defineProperty(proxy, \\"constructor\\", { - value: LRUCache, - enumerable: false - }); - return proxy; - }; - if (typeof Symbol !== \\"undefined\\") - LRUCache.prototype[Symbol.for(\\"nodejs.util.inspect.custom\\")] = LRUCache.prototype.inspect; - LRUCache.from = function(iterable, Keys, Values, capacity) { - if (arguments.length < 2) { - capacity = iterables.guessLength(iterable); - if (typeof capacity !== \\"number\\") - throw new Error(\\"mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.\\"); - } else if (arguments.length === 2) { - capacity = Keys; - Keys = null; - Values = null; - } - var cache = new LRUCache(Keys, Values, capacity); - forEach(iterable, function(value, key) { - cache.set(key, value); - }); - return cache; - }; - module2.exports = LRUCache; - } -}); - -// node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js -var require_EndpointCache = __commonJS({ - \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.EndpointCache = void 0; - var tslib_1 = require_tslib(); - var lru_cache_1 = tslib_1.__importDefault(require_lru_cache()); - var EndpointCache = class { - constructor(capacity) { - this.cache = new lru_cache_1.default(capacity); - } - getEndpoint(key) { - const endpointsWithExpiry = this.get(key); - if (!endpointsWithExpiry || endpointsWithExpiry.length === 0) { - return void 0; - } - const endpoints = endpointsWithExpiry.map((endpoint) => endpoint.Address); - return endpoints[Math.floor(Math.random() * endpoints.length)]; - } - get(key) { - if (!this.has(key)) { - return; - } - const value = this.cache.get(key); - if (!value) { - return; - } - const now = Date.now(); - const endpointsWithExpiry = value.filter((endpoint) => now < endpoint.Expires); - if (endpointsWithExpiry.length === 0) { - this.delete(key); - return void 0; - } - return endpointsWithExpiry; - } - set(key, endpoints) { - const now = Date.now(); - this.cache.set(key, endpoints.map(({ Address, CachePeriodInMinutes }) => ({ - Address, - Expires: now + CachePeriodInMinutes * 60 * 1e3 - }))); - } - delete(key) { - this.cache.set(key, []); - } - has(key) { - if (!this.cache.has(key)) { - return false; - } - const endpoints = this.cache.peek(key); - if (!endpoints) { - return false; - } - return endpoints.length > 0; - } - clear() { - this.cache.clear(); - } - }; - exports2.EndpointCache = EndpointCache; - } -}); - -// node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js -var require_dist_cjs9 = __commonJS({ - \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_Endpoint(), exports2); - tslib_1.__exportStar(require_EndpointCache(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js -var require_resolveEndpointDiscoveryConfig = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveEndpointDiscoveryConfig = void 0; - var endpoint_cache_1 = require_dist_cjs9(); - var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => { - var _a; - return { - ...input, - endpointDiscoveryCommandCtor, - endpointCache: new endpoint_cache_1.EndpointCache((_a = input.endpointCacheSize) !== null && _a !== void 0 ? _a : 1e3), - endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 ? () => Promise.resolve(input.endpointDiscoveryEnabled) : input.endpointDiscoveryEnabledProvider, - isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 - }; - }; - exports2.resolveEndpointDiscoveryConfig = resolveEndpointDiscoveryConfig; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js -var require_dist_cjs10 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configurations(), exports2); - tslib_1.__exportStar(require_getEndpointDiscoveryPlugin(), exports2); - tslib_1.__exportStar(require_resolveEndpointDiscoveryConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js -var require_dist_cjs11 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getHostHeaderPlugin = exports2.hostHeaderMiddlewareOptions = exports2.hostHeaderMiddleware = exports2.resolveHostHeaderConfig = void 0; - var protocol_http_1 = require_dist_cjs4(); - function resolveHostHeaderConfig(input) { - return input; - } - exports2.resolveHostHeaderConfig = resolveHostHeaderConfig; - var hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const { request } = args; - const { handlerProtocol = \\"\\" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf(\\"h2\\") >= 0 && !request.headers[\\":authority\\"]) { - delete request.headers[\\"host\\"]; - request.headers[\\":authority\\"] = \\"\\"; - } else if (!request.headers[\\"host\\"]) { - request.headers[\\"host\\"] = request.hostname; - } - return next(args); - }; - exports2.hostHeaderMiddleware = hostHeaderMiddleware; - exports2.hostHeaderMiddlewareOptions = { - name: \\"hostHeaderMiddleware\\", - step: \\"build\\", - priority: \\"low\\", - tags: [\\"HOST\\"], - override: true - }; - var getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.hostHeaderMiddleware)(options), exports2.hostHeaderMiddlewareOptions); - } - }); - exports2.getHostHeaderPlugin = getHostHeaderPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js -var require_loggerMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getLoggerPlugin = exports2.loggerMiddlewareOptions = exports2.loggerMiddleware = void 0; - var loggerMiddleware = () => (next, context) => async (args) => { - const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; - const response = await next(args); - if (!logger) { - return response; - } - if (typeof logger.info === \\"function\\") { - const { $metadata, ...outputWithoutMetadata } = response.output; - logger.info({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata - }); - } - return response; - }; - exports2.loggerMiddleware = loggerMiddleware; - exports2.loggerMiddlewareOptions = { - name: \\"loggerMiddleware\\", - tags: [\\"LOGGER\\"], - step: \\"initialize\\", - override: true - }; - var getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.loggerMiddleware)(), exports2.loggerMiddlewareOptions); - } - }); - exports2.getLoggerPlugin = getLoggerPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js -var require_dist_cjs12 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_loggerMiddleware(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js -var require_dist_cjs13 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRecursionDetectionPlugin = exports2.addRecursionDetectionMiddlewareOptions = exports2.recursionDetectionMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var TRACE_ID_HEADER_NAME = \\"X-Amzn-Trace-Id\\"; - var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; - var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; - var recursionDetectionMiddleware = (options) => (next) => async (args) => { - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request) || options.runtime !== \\"node\\" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { - return next(args); - } - const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - const traceId = process.env[ENV_TRACE_ID]; - const nonEmptyString = (str) => typeof str === \\"string\\" && str.length > 0; - if (nonEmptyString(functionName) && nonEmptyString(traceId)) { - request.headers[TRACE_ID_HEADER_NAME] = traceId; - } - return next({ - ...args, - request - }); - }; - exports2.recursionDetectionMiddleware = recursionDetectionMiddleware; - exports2.addRecursionDetectionMiddlewareOptions = { - step: \\"build\\", - tags: [\\"RECURSION_DETECTION\\"], - name: \\"recursionDetectionMiddleware\\", - override: true, - priority: \\"low\\" - }; - var getRecursionDetectionPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.recursionDetectionMiddleware)(options), exports2.addRecursionDetectionMiddlewareOptions); - } - }); - exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js -var require_config2 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DEFAULT_RETRY_MODE = exports2.DEFAULT_MAX_ATTEMPTS = exports2.RETRY_MODES = void 0; - var RETRY_MODES; - (function(RETRY_MODES2) { - RETRY_MODES2[\\"STANDARD\\"] = \\"standard\\"; - RETRY_MODES2[\\"ADAPTIVE\\"] = \\"adaptive\\"; - })(RETRY_MODES = exports2.RETRY_MODES || (exports2.RETRY_MODES = {})); - exports2.DEFAULT_MAX_ATTEMPTS = 3; - exports2.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; - } -}); - -// node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js -var require_constants2 = __commonJS({ - \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TRANSIENT_ERROR_STATUS_CODES = exports2.TRANSIENT_ERROR_CODES = exports2.THROTTLING_ERROR_CODES = exports2.CLOCK_SKEW_ERROR_CODES = void 0; - exports2.CLOCK_SKEW_ERROR_CODES = [ - \\"AuthFailure\\", - \\"InvalidSignatureException\\", - \\"RequestExpired\\", - \\"RequestInTheFuture\\", - \\"RequestTimeTooSkewed\\", - \\"SignatureDoesNotMatch\\" - ]; - exports2.THROTTLING_ERROR_CODES = [ - \\"BandwidthLimitExceeded\\", - \\"EC2ThrottledException\\", - \\"LimitExceededException\\", - \\"PriorRequestNotComplete\\", - \\"ProvisionedThroughputExceededException\\", - \\"RequestLimitExceeded\\", - \\"RequestThrottled\\", - \\"RequestThrottledException\\", - \\"SlowDown\\", - \\"ThrottledException\\", - \\"Throttling\\", - \\"ThrottlingException\\", - \\"TooManyRequestsException\\", - \\"TransactionInProgressException\\" - ]; - exports2.TRANSIENT_ERROR_CODES = [\\"AbortError\\", \\"TimeoutError\\", \\"RequestTimeout\\", \\"RequestTimeoutException\\"]; - exports2.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - } -}); - -// node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js -var require_dist_cjs14 = __commonJS({ - \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isTransientError = exports2.isThrottlingError = exports2.isClockSkewError = exports2.isRetryableByTrait = void 0; - var constants_1 = require_constants2(); - var isRetryableByTrait = (error) => error.$retryable !== void 0; - exports2.isRetryableByTrait = isRetryableByTrait; - var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); - exports2.isClockSkewError = isClockSkewError; - var isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; - }; - exports2.isThrottlingError = isThrottlingError; - var isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); - }; - exports2.isTransientError = isTransientError; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js -var require_DefaultRateLimiter = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DefaultRateLimiter = void 0; - var service_error_classification_1 = require_dist_cjs14(); - var DefaultRateLimiter = class { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1e3; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } - }; - exports2.DefaultRateLimiter = DefaultRateLimiter; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js -var require_constants3 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.REQUEST_HEADER = exports2.INVOCATION_ID_HEADER = exports2.NO_RETRY_INCREMENT = exports2.TIMEOUT_RETRY_COST = exports2.RETRY_COST = exports2.INITIAL_RETRY_TOKENS = exports2.THROTTLING_RETRY_DELAY_BASE = exports2.MAXIMUM_RETRY_DELAY = exports2.DEFAULT_RETRY_DELAY_BASE = void 0; - exports2.DEFAULT_RETRY_DELAY_BASE = 100; - exports2.MAXIMUM_RETRY_DELAY = 20 * 1e3; - exports2.THROTTLING_RETRY_DELAY_BASE = 500; - exports2.INITIAL_RETRY_TOKENS = 500; - exports2.RETRY_COST = 5; - exports2.TIMEOUT_RETRY_COST = 10; - exports2.NO_RETRY_INCREMENT = 1; - exports2.INVOCATION_ID_HEADER = \\"amz-sdk-invocation-id\\"; - exports2.REQUEST_HEADER = \\"amz-sdk-request\\"; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js -var require_defaultRetryQuota = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getDefaultRetryQuota = void 0; - var constants_1 = require_constants3(); - var getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => error.name === \\"TimeoutError\\" ? timeoutRetryCost : retryCost; - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error(\\"No retry token available\\"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens - }); - }; - exports2.getDefaultRetryQuota = getDefaultRetryQuota; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js -var require_delayDecider = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultDelayDecider = void 0; - var constants_1 = require_constants3(); - var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - exports2.defaultDelayDecider = defaultDelayDecider; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js -var require_retryDecider = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRetryDecider = void 0; - var service_error_classification_1 = require_dist_cjs14(); - var defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); - }; - exports2.defaultRetryDecider = defaultRetryDecider; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.StandardRetryStrategy = void 0; - var protocol_http_1 = require_dist_cjs4(); - var service_error_classification_1 = require_dist_cjs14(); - var uuid_1 = require_dist(); - var config_1 = require_config2(); - var constants_1 = require_constants3(); - var defaultRetryQuota_1 = require_defaultRetryQuota(); - var delayDecider_1 = require_delayDecider(); - var retryDecider_1 = require_retryDecider(); - var StandardRetryStrategy = class { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(constants_1.INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } catch (error) { - maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.REQUEST_HEADER] = \`attempt=\${attempts + 1}; max=\${maxAttempts}\`; + if (c === \\"<\\" && !(parser.sawRoot && parser.closedRoot && !parser.strict)) { + parser.state = 4; + parser.startTagPosition = parser.position; } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); + else { + if (!v1713(c) && (!parser.sawRoot || parser.closedRoot)) { + v1716(parser, \\"Text data outside of root node.\\"); + } + if (c === \\"&\\") { + parser.state = 3; + } + else { + parser.textNode += c; + } } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); + continue; + case 34: + if (c === \\"<\\") { + parser.state = 35; } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } catch (e) { - const err = asSdkError(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delay = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; + else { + parser.script += c; } - if (!err.$metadata) { - err.$metadata = {}; + continue; + case 35: + if (c === \\"/\\") { + parser.state = 32; } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } - } - } - }; - exports2.StandardRetryStrategy = StandardRetryStrategy; - var asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === \\"string\\") - return new Error(error); - return new Error(\`AWS SDK error wrapper for \${error}\`); - }; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AdaptiveRetryStrategy = void 0; - var config_1 = require_config2(); - var DefaultRateLimiter_1 = require_DefaultRateLimiter(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.mode = config_1.RETRY_MODES.ADAPTIVE; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - } - }); - } - }; - exports2.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js -var require_configurations2 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = exports2.CONFIG_RETRY_MODE = exports2.ENV_RETRY_MODE = exports2.resolveRetryConfig = exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports2.CONFIG_MAX_ATTEMPTS = exports2.ENV_MAX_ATTEMPTS = void 0; - var util_middleware_1 = require_dist_cjs6(); - var AdaptiveRetryStrategy_1 = require_AdaptiveRetryStrategy(); - var config_1 = require_config2(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - exports2.ENV_MAX_ATTEMPTS = \\"AWS_MAX_ATTEMPTS\\"; - exports2.CONFIG_MAX_ATTEMPTS = \\"max_attempts\\"; - exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports2.ENV_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(\`Environment variable \${exports2.ENV_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports2.CONFIG_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(\`Shared config file entry \${exports2.CONFIG_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); - } - return maxAttempt; - }, - default: config_1.DEFAULT_MAX_ATTEMPTS - }; - var resolveRetryConfig = (input) => { - var _a; - const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (input.retryStrategy) { - return input.retryStrategy; - } - const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); - if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { - return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); - } - return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); - } - }; - }; - exports2.resolveRetryConfig = resolveRetryConfig; - exports2.ENV_RETRY_MODE = \\"AWS_RETRY_MODE\\"; - exports2.CONFIG_RETRY_MODE = \\"retry_mode\\"; - exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports2.CONFIG_RETRY_MODE], - default: config_1.DEFAULT_RETRY_MODE - }; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js -var require_omitRetryHeadersMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getOmitRetryHeadersPlugin = exports2.omitRetryHeadersMiddlewareOptions = exports2.omitRetryHeadersMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var constants_1 = require_constants3(); - var omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - delete request.headers[constants_1.INVOCATION_ID_HEADER]; - delete request.headers[constants_1.REQUEST_HEADER]; - } - return next(args); - }; - exports2.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; - exports2.omitRetryHeadersMiddlewareOptions = { - name: \\"omitRetryHeadersMiddleware\\", - tags: [\\"RETRY\\", \\"HEADERS\\", \\"OMIT_RETRY_HEADERS\\"], - relation: \\"before\\", - toMiddleware: \\"awsAuthMiddleware\\", - override: true - }; - var getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports2.omitRetryHeadersMiddleware)(), exports2.omitRetryHeadersMiddlewareOptions); - } - }); - exports2.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js -var require_retryMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRetryPlugin = exports2.retryMiddlewareOptions = exports2.retryMiddleware = void 0; - var retryMiddleware = (options) => (next, context) => async (args) => { - const retryStrategy = await options.retryStrategy(); - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...context.userAgent || [], [\\"cfg/retry-mode\\", retryStrategy.mode]]; - return retryStrategy.retry(next, args); - }; - exports2.retryMiddleware = retryMiddleware; - exports2.retryMiddlewareOptions = { - name: \\"retryMiddleware\\", - tags: [\\"RETRY\\"], - step: \\"finalizeRequest\\", - priority: \\"high\\", - override: true - }; - var getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.retryMiddleware)(options), exports2.retryMiddlewareOptions); - } - }); - exports2.getRetryPlugin = getRetryPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js -var require_types = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js -var require_dist_cjs15 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports2); - tslib_1.__exportStar(require_DefaultRateLimiter(), exports2); - tslib_1.__exportStar(require_StandardRetryStrategy(), exports2); - tslib_1.__exportStar(require_config2(), exports2); - tslib_1.__exportStar(require_configurations2(), exports2); - tslib_1.__exportStar(require_delayDecider(), exports2); - tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports2); - tslib_1.__exportStar(require_retryDecider(), exports2); - tslib_1.__exportStar(require_retryMiddleware(), exports2); - tslib_1.__exportStar(require_types(), exports2); - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js -var require_ProviderError = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ProviderError = void 0; - var ProviderError = class extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = \\"ProviderError\\"; - Object.setPrototypeOf(this, ProviderError.prototype); - } - static from(error, tryNextLink = true) { - return Object.assign(new this(error.message, tryNextLink), error); - } - }; - exports2.ProviderError = ProviderError; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js -var require_CredentialsProviderError = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CredentialsProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var CredentialsProviderError = class extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = \\"CredentialsProviderError\\"; - Object.setPrototypeOf(this, CredentialsProviderError.prototype); - } - }; - exports2.CredentialsProviderError = CredentialsProviderError; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/chain.js -var require_chain = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/chain.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.chain = void 0; - var ProviderError_1 = require_ProviderError(); - function chain(...providers) { - return () => { - let promise = Promise.reject(new ProviderError_1.ProviderError(\\"No providers in chain\\")); - for (const provider of providers) { - promise = promise.catch((err) => { - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { - return provider(); + else { + parser.script += \\"<\\" + c; + parser.state = 34; } - throw err; - }); - } - return promise; - }; - } - exports2.chain = chain; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js -var require_fromStatic = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromStatic = void 0; - var fromStatic = (staticValue) => () => Promise.resolve(staticValue); - exports2.fromStatic = fromStatic; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js -var require_memoize = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.memoize = void 0; - var memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - let isConstant = false; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - isConstant = false; - } finally { - pending = void 0; - } - return resolved; - }; - if (isExpired === void 0) { - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - return resolved; - }; - } - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; - }; - exports2.memoize = memoize; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/index.js -var require_dist_cjs16 = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_CredentialsProviderError(), exports2); - tslib_1.__exportStar(require_ProviderError(), exports2); - tslib_1.__exportStar(require_chain(), exports2); - tslib_1.__exportStar(require_fromStatic(), exports2); - tslib_1.__exportStar(require_memoize(), exports2); - } -}); - -// node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js -var require_dist_cjs17 = __commonJS({ - \\"node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toHex = exports2.fromHex = void 0; - var SHORT_TO_HEX = {}; - var HEX_TO_SHORT = {}; - for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = \`0\${encodedByte}\`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; - } - function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error(\\"Hex encoded strings must have an even number length\\"); - } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.slice(i, i + 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } else { - throw new Error(\`Cannot decode unrecognized sequence \${encodedByte} as hexadecimal\`); - } - } - return out; - } - exports2.fromHex = fromHex; - function toHex(bytes) { - let out = \\"\\"; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; - } - exports2.toHex = toHex; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js -var require_constants4 = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.MAX_PRESIGNED_TTL = exports2.KEY_TYPE_IDENTIFIER = exports2.MAX_CACHE_SIZE = exports2.UNSIGNED_PAYLOAD = exports2.EVENT_ALGORITHM_IDENTIFIER = exports2.ALGORITHM_IDENTIFIER_V4A = exports2.ALGORITHM_IDENTIFIER = exports2.UNSIGNABLE_PATTERNS = exports2.SEC_HEADER_PATTERN = exports2.PROXY_HEADER_PATTERN = exports2.ALWAYS_UNSIGNABLE_HEADERS = exports2.HOST_HEADER = exports2.TOKEN_HEADER = exports2.SHA256_HEADER = exports2.SIGNATURE_HEADER = exports2.GENERATED_HEADERS = exports2.DATE_HEADER = exports2.AMZ_DATE_HEADER = exports2.AUTH_HEADER = exports2.REGION_SET_PARAM = exports2.TOKEN_QUERY_PARAM = exports2.SIGNATURE_QUERY_PARAM = exports2.EXPIRES_QUERY_PARAM = exports2.SIGNED_HEADERS_QUERY_PARAM = exports2.AMZ_DATE_QUERY_PARAM = exports2.CREDENTIAL_QUERY_PARAM = exports2.ALGORITHM_QUERY_PARAM = void 0; - exports2.ALGORITHM_QUERY_PARAM = \\"X-Amz-Algorithm\\"; - exports2.CREDENTIAL_QUERY_PARAM = \\"X-Amz-Credential\\"; - exports2.AMZ_DATE_QUERY_PARAM = \\"X-Amz-Date\\"; - exports2.SIGNED_HEADERS_QUERY_PARAM = \\"X-Amz-SignedHeaders\\"; - exports2.EXPIRES_QUERY_PARAM = \\"X-Amz-Expires\\"; - exports2.SIGNATURE_QUERY_PARAM = \\"X-Amz-Signature\\"; - exports2.TOKEN_QUERY_PARAM = \\"X-Amz-Security-Token\\"; - exports2.REGION_SET_PARAM = \\"X-Amz-Region-Set\\"; - exports2.AUTH_HEADER = \\"authorization\\"; - exports2.AMZ_DATE_HEADER = exports2.AMZ_DATE_QUERY_PARAM.toLowerCase(); - exports2.DATE_HEADER = \\"date\\"; - exports2.GENERATED_HEADERS = [exports2.AUTH_HEADER, exports2.AMZ_DATE_HEADER, exports2.DATE_HEADER]; - exports2.SIGNATURE_HEADER = exports2.SIGNATURE_QUERY_PARAM.toLowerCase(); - exports2.SHA256_HEADER = \\"x-amz-content-sha256\\"; - exports2.TOKEN_HEADER = exports2.TOKEN_QUERY_PARAM.toLowerCase(); - exports2.HOST_HEADER = \\"host\\"; - exports2.ALWAYS_UNSIGNABLE_HEADERS = { - authorization: true, - \\"cache-control\\": true, - connection: true, - expect: true, - from: true, - \\"keep-alive\\": true, - \\"max-forwards\\": true, - pragma: true, - referer: true, - te: true, - trailer: true, - \\"transfer-encoding\\": true, - upgrade: true, - \\"user-agent\\": true, - \\"x-amzn-trace-id\\": true - }; - exports2.PROXY_HEADER_PATTERN = /^proxy-/; - exports2.SEC_HEADER_PATTERN = /^sec-/; - exports2.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; - exports2.ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256\\"; - exports2.ALGORITHM_IDENTIFIER_V4A = \\"AWS4-ECDSA-P256-SHA256\\"; - exports2.EVENT_ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256-PAYLOAD\\"; - exports2.UNSIGNED_PAYLOAD = \\"UNSIGNED-PAYLOAD\\"; - exports2.MAX_CACHE_SIZE = 50; - exports2.KEY_TYPE_IDENTIFIER = \\"aws4_request\\"; - exports2.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js -var require_credentialDerivation = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.clearCredentialCache = exports2.getSigningKey = exports2.createScope = void 0; - var util_hex_encoding_1 = require_dist_cjs17(); - var constants_1 = require_constants4(); - var signingKeyCache = {}; - var cacheQueue = []; - var createScope = (shortDate, region, service) => \`\${shortDate}/\${region}/\${service}/\${constants_1.KEY_TYPE_IDENTIFIER}\`; - exports2.createScope = createScope; - var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = \`\${shortDate}:\${region}:\${service}:\${(0, util_hex_encoding_1.toHex)(credsHash)}:\${credentials.sessionToken}\`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = \`AWS4\${credentials.secretAccessKey}\`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return signingKeyCache[cacheKey] = key; - }; - exports2.getSigningKey = getSigningKey; - var clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); - }; - exports2.clearCredentialCache = clearCredentialCache; - var hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update(data); - return hash.digest(); - }; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js -var require_getCanonicalHeaders = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCanonicalHeaders = void 0; - var constants_1 = require_constants4(); - var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - if (headers[headerName] == void 0) { - continue; - } - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\\\\s+/g, \\" \\"); - } - return canonical; - }; - exports2.getCanonicalHeaders = getCanonicalHeaders; - } -}); - -// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js -var require_escape_uri = __commonJS({ - \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.escapeUri = void 0; - var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); - exports2.escapeUri = escapeUri; - var hexEncode = (c) => \`%\${c.charCodeAt(0).toString(16).toUpperCase()}\`; - } -}); - -// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js -var require_escape_uri_path = __commonJS({ - \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.escapeUriPath = void 0; - var escape_uri_1 = require_escape_uri(); - var escapeUriPath = (uri) => uri.split(\\"/\\").map(escape_uri_1.escapeUri).join(\\"/\\"); - exports2.escapeUriPath = escapeUriPath; - } -}); - -// node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js -var require_dist_cjs18 = __commonJS({ - \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_escape_uri(), exports2); - tslib_1.__exportStar(require_escape_uri_path(), exports2); - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js -var require_getCanonicalQuery = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCanonicalQuery = void 0; - var util_uri_escape_1 = require_dist_cjs18(); - var constants_1 = require_constants4(); - var getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === \\"string\\") { - serialized[key] = \`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value)}\`; - } else if (Array.isArray(value)) { - serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([\`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value2)}\`]), []).join(\\"&\\"); - } - } - return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join(\\"&\\"); - }; - exports2.getCanonicalQuery = getCanonicalQuery; - } -}); - -// node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js -var require_dist_cjs19 = __commonJS({ - \\"node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isArrayBuffer = void 0; - var isArrayBuffer = (arg) => typeof ArrayBuffer === \\"function\\" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === \\"[object ArrayBuffer]\\"; - exports2.isArrayBuffer = isArrayBuffer; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js -var require_getPayloadHash = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getPayloadHash = void 0; - var is_array_buffer_1 = require_dist_cjs19(); - var util_hex_encoding_1 = require_dist_cjs17(); - var constants_1 = require_constants4(); - var getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == void 0) { - return \\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\"; - } else if (typeof body === \\"string\\" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update(body); - return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); - } - return constants_1.UNSIGNED_PAYLOAD; - }; - exports2.getPayloadHash = getPayloadHash; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js -var require_headerUtil = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.deleteHeader = exports2.getHeaderValue = exports2.hasHeader = void 0; - var hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; - }; - exports2.hasHeader = hasHeader; - var getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return void 0; - }; - exports2.getHeaderValue = getHeaderValue; - var deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } - }; - exports2.deleteHeader = deleteHeader; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js -var require_cloneRequest = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.cloneQuery = exports2.cloneRequest = void 0; - var cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? (0, exports2.cloneQuery)(query) : void 0 - }); - exports2.cloneRequest = cloneRequest; - var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param - }; - }, {}); - exports2.cloneQuery = cloneQuery; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js -var require_moveHeadersToQuery = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.moveHeadersToQuery = void 0; - var cloneRequest_1 = require_cloneRequest(); - var moveHeadersToQuery = (request, options = {}) => { - var _a; - const { headers, query = {} } = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.slice(0, 6) === \\"x-amz-\\" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request, - headers, - query - }; - }; - exports2.moveHeadersToQuery = moveHeadersToQuery; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js -var require_prepareRequest = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.prepareRequest = void 0; - var cloneRequest_1 = require_cloneRequest(); - var constants_1 = require_constants4(); - var prepareRequest = (request) => { - request = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const headerName of Object.keys(request.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request.headers[headerName]; - } - } - return request; - }; - exports2.prepareRequest = prepareRequest; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js -var require_utilDate = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toDate = exports2.iso8601 = void 0; - var iso8601 = (time) => (0, exports2.toDate)(time).toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); - exports2.iso8601 = iso8601; - var toDate = (time) => { - if (typeof time === \\"number\\") { - return new Date(time * 1e3); - } - if (typeof time === \\"string\\") { - if (Number(time)) { - return new Date(Number(time) * 1e3); - } - return new Date(time); - } - return time; - }; - exports2.toDate = toDate; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js -var require_SignatureV4 = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SignatureV4 = void 0; - var util_hex_encoding_1 = require_dist_cjs17(); - var util_middleware_1 = require_dist_cjs6(); - var constants_1 = require_constants4(); - var credentialDerivation_1 = require_credentialDerivation(); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - var getPayloadHash_1 = require_getPayloadHash(); - var headerUtil_1 = require_headerUtil(); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - var prepareRequest_1 = require_prepareRequest(); - var utilDate_1 = require_utilDate(); - var SignatureV4 = class { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === \\"boolean\\" ? applyChecksum : true; - this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); - this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject(\\"Signature version 4 presigned URLs must have an expiration date less than one week in the future\\"); - } - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request.query[constants_1.CREDENTIAL_QUERY_PARAM] = \`\${credentials.accessKeyId}/\${scope}\`; - request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); - return request; - } - async sign(toSign, options) { - if (typeof toSign === \\"string\\") { - return this.signString(toSign, options); - } else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { shortDate, longDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); - const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload - ].join(\\"\\\\n\\"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update(stringToSign); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const request = (0, prepareRequest_1.prepareRequest)(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request.headers[constants_1.AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); - if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { - request.headers[constants_1.SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); - request.headers[constants_1.AUTH_HEADER] = \`\${constants_1.ALGORITHM_IDENTIFIER} Credential=\${credentials.accessKeyId}/\${scope}, SignedHeaders=\${getCanonicalHeaderList(canonicalHeaders)}, Signature=\${signature}\`; - return request; - } - createCanonicalRequest(request, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return \`\${request.method} -\${this.getCanonicalPath(request)} -\${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} -\${sortedHeaders.map((name) => \`\${name}:\${canonicalHeaders[name]}\`).join(\\"\\\\n\\")} - -\${sortedHeaders.join(\\";\\")} -\${payloadHash}\`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update(canonicalRequest); - const hashedRequest = await hash.digest(); - return \`\${constants_1.ALGORITHM_IDENTIFIER} -\${longDate} -\${credentialScope} -\${(0, util_hex_encoding_1.toHex)(hashedRequest)}\`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const normalizedPathSegments = []; - for (const pathSegment of path.split(\\"/\\")) { - if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) - continue; - if (pathSegment === \\".\\") - continue; - if (pathSegment === \\"..\\") { - normalizedPathSegments.pop(); - } else { - normalizedPathSegments.push(pathSegment); + case 4: + if (c === \\"!\\") { + parser.state = 5; + parser.sgmlDecl = \\"\\"; } - } - const normalizedPath = \`\${(path === null || path === void 0 ? void 0 : path.startsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\${normalizedPathSegments.join(\\"/\\")}\${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\`; - const doubleEncoded = encodeURIComponent(normalizedPath); - return doubleEncoded.replace(/%2F/g, \\"/\\"); - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update(stringToSign); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); - } - }; - exports2.SignatureV4 = SignatureV4; - var formatDate = (now) => { - const longDate = (0, utilDate_1.iso8601)(now).replace(/[\\\\-:]/g, \\"\\"); - return { - longDate, - shortDate: longDate.slice(0, 8) - }; - }; - var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(\\";\\"); - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/index.js -var require_dist_cjs20 = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.prepareRequest = exports2.moveHeadersToQuery = exports2.getPayloadHash = exports2.getCanonicalQuery = exports2.getCanonicalHeaders = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_SignatureV4(), exports2); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - Object.defineProperty(exports2, \\"getCanonicalHeaders\\", { enumerable: true, get: function() { - return getCanonicalHeaders_1.getCanonicalHeaders; - } }); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - Object.defineProperty(exports2, \\"getCanonicalQuery\\", { enumerable: true, get: function() { - return getCanonicalQuery_1.getCanonicalQuery; - } }); - var getPayloadHash_1 = require_getPayloadHash(); - Object.defineProperty(exports2, \\"getPayloadHash\\", { enumerable: true, get: function() { - return getPayloadHash_1.getPayloadHash; - } }); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - Object.defineProperty(exports2, \\"moveHeadersToQuery\\", { enumerable: true, get: function() { - return moveHeadersToQuery_1.moveHeadersToQuery; - } }); - var prepareRequest_1 = require_prepareRequest(); - Object.defineProperty(exports2, \\"prepareRequest\\", { enumerable: true, get: function() { - return prepareRequest_1.prepareRequest; - } }); - tslib_1.__exportStar(require_credentialDerivation(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js -var require_configurations3 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveSigV4AuthConfig = exports2.resolveAwsAuthConfig = void 0; - var property_provider_1 = require_dist_cjs16(); - var signature_v4_1 = require_dist_cjs20(); - var CREDENTIAL_EXPIRE_WINDOW = 3e5; - var resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } else { - signer = () => normalizeProvider(input.region)().then(async (region) => [ - await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint() - }) || {}, - region - ]).then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - }; - const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; - return new signerConstructor(params); - }); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer - }; - }; - exports2.resolveAwsAuthConfig = resolveAwsAuthConfig; - var resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } else { - signer = normalizeProvider(new signature_v4_1.SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer - }; - }; - exports2.resolveSigV4AuthConfig = resolveSigV4AuthConfig; - var normalizeProvider = (input) => { - if (typeof input === \\"object\\") { - const promisified = Promise.resolve(input); - return () => promisified; - } - return input; - }; - var normalizeCredentialProvider = (credentials) => { - if (typeof credentials === \\"function\\") { - return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); - } - return normalizeProvider(credentials); - }; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js -var require_getSkewCorrectedDate = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSkewCorrectedDate = void 0; - var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); - exports2.getSkewCorrectedDate = getSkewCorrectedDate; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js -var require_isClockSkewed = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isClockSkewed = void 0; - var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); - var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; - exports2.isClockSkewed = isClockSkewed; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js -var require_getUpdatedSystemClockOffset = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getUpdatedSystemClockOffset = void 0; - var isClockSkewed_1 = require_isClockSkewed(); - var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); - } - return currentSystemClockOffset; - }; - exports2.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js -var require_middleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin = exports2.awsAuthMiddlewareOptions = exports2.awsAuthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); - var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); - var awsAuthMiddleware = (options) => (next, context) => async function(args) { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const signer = await options.signer(); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), - signingRegion: context[\\"signing_region\\"], - signingService: context[\\"signing_service\\"] - }) - }).catch((error) => { - var _a; - const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); - if (serverTime) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); - } - throw error; - }); - const dateHeader = getDateHeader(output.response); - if (dateHeader) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); - } - return output; - }; - exports2.awsAuthMiddleware = awsAuthMiddleware; - var getDateHeader = (response) => { - var _a, _b, _c; - return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; - }; - exports2.awsAuthMiddlewareOptions = { - name: \\"awsAuthMiddleware\\", - tags: [\\"SIGNATURE\\", \\"AWSAUTH\\"], - relation: \\"after\\", - toMiddleware: \\"retryMiddleware\\", - override: true - }; - var getAwsAuthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports2.awsAuthMiddleware)(options), exports2.awsAuthMiddlewareOptions); - } - }); - exports2.getAwsAuthPlugin = getAwsAuthPlugin; - exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js -var require_dist_cjs21 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configurations3(), exports2); - tslib_1.__exportStar(require_middleware(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js -var require_configurations4 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveUserAgentConfig = void 0; - function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === \\"string\\" ? [[input.customUserAgent]] : input.customUserAgent - }; - } - exports2.resolveUserAgentConfig = resolveUserAgentConfig; - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js -var require_constants5 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UA_ESCAPE_REGEX = exports2.SPACE = exports2.X_AMZ_USER_AGENT = exports2.USER_AGENT = void 0; - exports2.USER_AGENT = \\"user-agent\\"; - exports2.X_AMZ_USER_AGENT = \\"x-amz-user-agent\\"; - exports2.SPACE = \\" \\"; - exports2.UA_ESCAPE_REGEX = /[^\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\.\\\\^\\\\_\\\\\`\\\\|\\\\~\\\\d\\\\w]/g; - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js -var require_user_agent_middleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getUserAgentPlugin = exports2.getUserAgentMiddlewareOptions = exports2.userAgentMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var constants_1 = require_constants5(); - var userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith(\\"aws-sdk-\\")), - ...customUserAgent - ].join(constants_1.SPACE); - if (options.runtime !== \\"browser\\") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? \`\${headers[constants_1.USER_AGENT]} \${normalUAValue}\` : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; - } else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request - }); - }; - exports2.userAgentMiddleware = userAgentMiddleware; - var escapeUserAgent = ([name, version]) => { - const prefixSeparatorIndex = name.indexOf(\\"/\\"); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === \\"api\\") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version].filter((item) => item && item.length > 0).map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, \\"_\\")).join(\\"/\\"); - }; - exports2.getUserAgentMiddlewareOptions = { - name: \\"getUserAgentMiddleware\\", - step: \\"build\\", - priority: \\"low\\", - tags: [\\"SET_USER_AGENT\\", \\"USER_AGENT\\"], - override: true - }; - var getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.userAgentMiddleware)(config), exports2.getUserAgentMiddlewareOptions); - } - }); - exports2.getUserAgentPlugin = getUserAgentPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js -var require_dist_cjs22 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configurations4(), exports2); - tslib_1.__exportStar(require_user_agent_middleware(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/package.json -var require_package = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/package.json\\"(exports2, module2) { - module2.exports = { - name: \\"@aws-sdk/client-dynamodb\\", - description: \\"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native\\", - version: \\"3.145.0\\", - scripts: { - build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", - \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", - \\"build:docs\\": \\"typedoc\\", - \\"build:es\\": \\"tsc -p tsconfig.es.json\\", - \\"build:types\\": \\"tsc -p tsconfig.types.json\\", - \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", - clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" - }, - main: \\"./dist-cjs/index.js\\", - types: \\"./dist-types/index.d.ts\\", - module: \\"./dist-es/index.js\\", - sideEffects: false, - dependencies: { - \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", - \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", - \\"@aws-sdk/client-sts\\": \\"3.145.0\\", - \\"@aws-sdk/config-resolver\\": \\"3.130.0\\", - \\"@aws-sdk/credential-provider-node\\": \\"3.145.0\\", - \\"@aws-sdk/fetch-http-handler\\": \\"3.131.0\\", - \\"@aws-sdk/hash-node\\": \\"3.127.0\\", - \\"@aws-sdk/invalid-dependency\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-content-length\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-endpoint-discovery\\": \\"3.130.0\\", - \\"@aws-sdk/middleware-host-header\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-logger\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-recursion-detection\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-retry\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-serde\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-signing\\": \\"3.130.0\\", - \\"@aws-sdk/middleware-stack\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-user-agent\\": \\"3.127.0\\", - \\"@aws-sdk/node-config-provider\\": \\"3.127.0\\", - \\"@aws-sdk/node-http-handler\\": \\"3.127.0\\", - \\"@aws-sdk/protocol-http\\": \\"3.127.0\\", - \\"@aws-sdk/smithy-client\\": \\"3.142.0\\", - \\"@aws-sdk/types\\": \\"3.127.0\\", - \\"@aws-sdk/url-parser\\": \\"3.127.0\\", - \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-browser\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.142.0\\", - \\"@aws-sdk/util-defaults-mode-node\\": \\"3.142.0\\", - \\"@aws-sdk/util-user-agent-browser\\": \\"3.127.0\\", - \\"@aws-sdk/util-user-agent-node\\": \\"3.127.0\\", - \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", - \\"@aws-sdk/util-waiter\\": \\"3.127.0\\", - tslib: \\"^2.3.1\\", - uuid: \\"^8.3.2\\" - }, - devDependencies: { - \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", - \\"@tsconfig/recommended\\": \\"1.0.1\\", - \\"@types/node\\": \\"^12.7.5\\", - \\"@types/uuid\\": \\"^8.3.0\\", - concurrently: \\"7.0.0\\", - \\"downlevel-dts\\": \\"0.7.0\\", - rimraf: \\"3.0.2\\", - typedoc: \\"0.19.2\\", - typescript: \\"~4.6.2\\" - }, - overrides: { - typedoc: { - typescript: \\"~4.6.2\\" - } - }, - engines: { - node: \\">=12.0.0\\" - }, - typesVersions: { - \\"<4.0\\": { - \\"dist-types/*\\": [ - \\"dist-types/ts3.4/*\\" - ] - } - }, - files: [ - \\"dist-*\\" - ], - author: { - name: \\"AWS SDK for JavaScript Team\\", - url: \\"https://aws.amazon.com/javascript/\\" - }, - license: \\"Apache-2.0\\", - browser: { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" - }, - \\"react-native\\": { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" - }, - homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb\\", - repository: { - type: \\"git\\", - url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", - directory: \\"clients/client-dynamodb\\" - } - }; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js -var require_STSServiceException = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STSServiceException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var STSServiceException = class extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); - } - }; - exports2.STSServiceException = STSServiceException; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js -var require_models_02 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetSessionTokenResponseFilterSensitiveLog = exports2.GetSessionTokenRequestFilterSensitiveLog = exports2.GetFederationTokenResponseFilterSensitiveLog = exports2.FederatedUserFilterSensitiveLog = exports2.GetFederationTokenRequestFilterSensitiveLog = exports2.GetCallerIdentityResponseFilterSensitiveLog = exports2.GetCallerIdentityRequestFilterSensitiveLog = exports2.GetAccessKeyInfoResponseFilterSensitiveLog = exports2.GetAccessKeyInfoRequestFilterSensitiveLog = exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports2.AssumeRoleResponseFilterSensitiveLog = exports2.CredentialsFilterSensitiveLog = exports2.AssumeRoleRequestFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.PolicyDescriptorTypeFilterSensitiveLog = exports2.AssumedRoleUserFilterSensitiveLog = exports2.InvalidAuthorizationMessageException = exports2.IDPCommunicationErrorException = exports2.InvalidIdentityTokenException = exports2.IDPRejectedClaimException = exports2.RegionDisabledException = exports2.PackedPolicyTooLargeException = exports2.MalformedPolicyDocumentException = exports2.ExpiredTokenException = void 0; - var STSServiceException_1 = require_STSServiceException(); - var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"ExpiredTokenException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ExpiredTokenException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); - } - }; - exports2.ExpiredTokenException = ExpiredTokenException; - var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"MalformedPolicyDocumentException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"MalformedPolicyDocumentException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); - } - }; - exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException; - var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"PackedPolicyTooLargeException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"PackedPolicyTooLargeException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); - } - }; - exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException; - var RegionDisabledException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"RegionDisabledException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"RegionDisabledException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); - } - }; - exports2.RegionDisabledException = RegionDisabledException; - var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"IDPRejectedClaimException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IDPRejectedClaimException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); - } - }; - exports2.IDPRejectedClaimException = IDPRejectedClaimException; - var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"InvalidIdentityTokenException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidIdentityTokenException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); - } - }; - exports2.InvalidIdentityTokenException = InvalidIdentityTokenException; - var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"IDPCommunicationErrorException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IDPCommunicationErrorException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); - } - }; - exports2.IDPCommunicationErrorException = IDPCommunicationErrorException; - var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"InvalidAuthorizationMessageException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidAuthorizationMessageException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); - } - }; - exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; - var AssumedRoleUserFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; - var PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; - var TagFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; - var AssumeRoleRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; - var CredentialsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; - var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; - var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; - var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; - var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; - var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; - var DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; - var DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; - var GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; - var GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; - var GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; - var GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; - var GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; - var FederatedUserFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; - var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; - var GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; - var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; - } -}); - -// node_modules/entities/lib/maps/entities.json -var require_entities = __commonJS({ - \\"node_modules/entities/lib/maps/entities.json\\"(exports2, module2) { - module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Abreve: \\"\\\\u0102\\", abreve: \\"\\\\u0103\\", ac: \\"\\\\u223E\\", acd: \\"\\\\u223F\\", acE: \\"\\\\u223E\\\\u0333\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", Acy: \\"\\\\u0410\\", acy: \\"\\\\u0430\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", af: \\"\\\\u2061\\", Afr: \\"\\\\u{1D504}\\", afr: \\"\\\\u{1D51E}\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", alefsym: \\"\\\\u2135\\", aleph: \\"\\\\u2135\\", Alpha: \\"\\\\u0391\\", alpha: \\"\\\\u03B1\\", Amacr: \\"\\\\u0100\\", amacr: \\"\\\\u0101\\", amalg: \\"\\\\u2A3F\\", amp: \\"&\\", AMP: \\"&\\", andand: \\"\\\\u2A55\\", And: \\"\\\\u2A53\\", and: \\"\\\\u2227\\", andd: \\"\\\\u2A5C\\", andslope: \\"\\\\u2A58\\", andv: \\"\\\\u2A5A\\", ang: \\"\\\\u2220\\", ange: \\"\\\\u29A4\\", angle: \\"\\\\u2220\\", angmsdaa: \\"\\\\u29A8\\", angmsdab: \\"\\\\u29A9\\", angmsdac: \\"\\\\u29AA\\", angmsdad: \\"\\\\u29AB\\", angmsdae: \\"\\\\u29AC\\", angmsdaf: \\"\\\\u29AD\\", angmsdag: \\"\\\\u29AE\\", angmsdah: \\"\\\\u29AF\\", angmsd: \\"\\\\u2221\\", angrt: \\"\\\\u221F\\", angrtvb: \\"\\\\u22BE\\", angrtvbd: \\"\\\\u299D\\", angsph: \\"\\\\u2222\\", angst: \\"\\\\xC5\\", angzarr: \\"\\\\u237C\\", Aogon: \\"\\\\u0104\\", aogon: \\"\\\\u0105\\", Aopf: \\"\\\\u{1D538}\\", aopf: \\"\\\\u{1D552}\\", apacir: \\"\\\\u2A6F\\", ap: \\"\\\\u2248\\", apE: \\"\\\\u2A70\\", ape: \\"\\\\u224A\\", apid: \\"\\\\u224B\\", apos: \\"'\\", ApplyFunction: \\"\\\\u2061\\", approx: \\"\\\\u2248\\", approxeq: \\"\\\\u224A\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Ascr: \\"\\\\u{1D49C}\\", ascr: \\"\\\\u{1D4B6}\\", Assign: \\"\\\\u2254\\", ast: \\"*\\", asymp: \\"\\\\u2248\\", asympeq: \\"\\\\u224D\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", awconint: \\"\\\\u2233\\", awint: \\"\\\\u2A11\\", backcong: \\"\\\\u224C\\", backepsilon: \\"\\\\u03F6\\", backprime: \\"\\\\u2035\\", backsim: \\"\\\\u223D\\", backsimeq: \\"\\\\u22CD\\", Backslash: \\"\\\\u2216\\", Barv: \\"\\\\u2AE7\\", barvee: \\"\\\\u22BD\\", barwed: \\"\\\\u2305\\", Barwed: \\"\\\\u2306\\", barwedge: \\"\\\\u2305\\", bbrk: \\"\\\\u23B5\\", bbrktbrk: \\"\\\\u23B6\\", bcong: \\"\\\\u224C\\", Bcy: \\"\\\\u0411\\", bcy: \\"\\\\u0431\\", bdquo: \\"\\\\u201E\\", becaus: \\"\\\\u2235\\", because: \\"\\\\u2235\\", Because: \\"\\\\u2235\\", bemptyv: \\"\\\\u29B0\\", bepsi: \\"\\\\u03F6\\", bernou: \\"\\\\u212C\\", Bernoullis: \\"\\\\u212C\\", Beta: \\"\\\\u0392\\", beta: \\"\\\\u03B2\\", beth: \\"\\\\u2136\\", between: \\"\\\\u226C\\", Bfr: \\"\\\\u{1D505}\\", bfr: \\"\\\\u{1D51F}\\", bigcap: \\"\\\\u22C2\\", bigcirc: \\"\\\\u25EF\\", bigcup: \\"\\\\u22C3\\", bigodot: \\"\\\\u2A00\\", bigoplus: \\"\\\\u2A01\\", bigotimes: \\"\\\\u2A02\\", bigsqcup: \\"\\\\u2A06\\", bigstar: \\"\\\\u2605\\", bigtriangledown: \\"\\\\u25BD\\", bigtriangleup: \\"\\\\u25B3\\", biguplus: \\"\\\\u2A04\\", bigvee: \\"\\\\u22C1\\", bigwedge: \\"\\\\u22C0\\", bkarow: \\"\\\\u290D\\", blacklozenge: \\"\\\\u29EB\\", blacksquare: \\"\\\\u25AA\\", blacktriangle: \\"\\\\u25B4\\", blacktriangledown: \\"\\\\u25BE\\", blacktriangleleft: \\"\\\\u25C2\\", blacktriangleright: \\"\\\\u25B8\\", blank: \\"\\\\u2423\\", blk12: \\"\\\\u2592\\", blk14: \\"\\\\u2591\\", blk34: \\"\\\\u2593\\", block: \\"\\\\u2588\\", bne: \\"=\\\\u20E5\\", bnequiv: \\"\\\\u2261\\\\u20E5\\", bNot: \\"\\\\u2AED\\", bnot: \\"\\\\u2310\\", Bopf: \\"\\\\u{1D539}\\", bopf: \\"\\\\u{1D553}\\", bot: \\"\\\\u22A5\\", bottom: \\"\\\\u22A5\\", bowtie: \\"\\\\u22C8\\", boxbox: \\"\\\\u29C9\\", boxdl: \\"\\\\u2510\\", boxdL: \\"\\\\u2555\\", boxDl: \\"\\\\u2556\\", boxDL: \\"\\\\u2557\\", boxdr: \\"\\\\u250C\\", boxdR: \\"\\\\u2552\\", boxDr: \\"\\\\u2553\\", boxDR: \\"\\\\u2554\\", boxh: \\"\\\\u2500\\", boxH: \\"\\\\u2550\\", boxhd: \\"\\\\u252C\\", boxHd: \\"\\\\u2564\\", boxhD: \\"\\\\u2565\\", boxHD: \\"\\\\u2566\\", boxhu: \\"\\\\u2534\\", boxHu: \\"\\\\u2567\\", boxhU: \\"\\\\u2568\\", boxHU: \\"\\\\u2569\\", boxminus: \\"\\\\u229F\\", boxplus: \\"\\\\u229E\\", boxtimes: \\"\\\\u22A0\\", boxul: \\"\\\\u2518\\", boxuL: \\"\\\\u255B\\", boxUl: \\"\\\\u255C\\", boxUL: \\"\\\\u255D\\", boxur: \\"\\\\u2514\\", boxuR: \\"\\\\u2558\\", boxUr: \\"\\\\u2559\\", boxUR: \\"\\\\u255A\\", boxv: \\"\\\\u2502\\", boxV: \\"\\\\u2551\\", boxvh: \\"\\\\u253C\\", boxvH: \\"\\\\u256A\\", boxVh: \\"\\\\u256B\\", boxVH: \\"\\\\u256C\\", boxvl: \\"\\\\u2524\\", boxvL: \\"\\\\u2561\\", boxVl: \\"\\\\u2562\\", boxVL: \\"\\\\u2563\\", boxvr: \\"\\\\u251C\\", boxvR: \\"\\\\u255E\\", boxVr: \\"\\\\u255F\\", boxVR: \\"\\\\u2560\\", bprime: \\"\\\\u2035\\", breve: \\"\\\\u02D8\\", Breve: \\"\\\\u02D8\\", brvbar: \\"\\\\xA6\\", bscr: \\"\\\\u{1D4B7}\\", Bscr: \\"\\\\u212C\\", bsemi: \\"\\\\u204F\\", bsim: \\"\\\\u223D\\", bsime: \\"\\\\u22CD\\", bsolb: \\"\\\\u29C5\\", bsol: \\"\\\\\\\\\\", bsolhsub: \\"\\\\u27C8\\", bull: \\"\\\\u2022\\", bullet: \\"\\\\u2022\\", bump: \\"\\\\u224E\\", bumpE: \\"\\\\u2AAE\\", bumpe: \\"\\\\u224F\\", Bumpeq: \\"\\\\u224E\\", bumpeq: \\"\\\\u224F\\", Cacute: \\"\\\\u0106\\", cacute: \\"\\\\u0107\\", capand: \\"\\\\u2A44\\", capbrcup: \\"\\\\u2A49\\", capcap: \\"\\\\u2A4B\\", cap: \\"\\\\u2229\\", Cap: \\"\\\\u22D2\\", capcup: \\"\\\\u2A47\\", capdot: \\"\\\\u2A40\\", CapitalDifferentialD: \\"\\\\u2145\\", caps: \\"\\\\u2229\\\\uFE00\\", caret: \\"\\\\u2041\\", caron: \\"\\\\u02C7\\", Cayleys: \\"\\\\u212D\\", ccaps: \\"\\\\u2A4D\\", Ccaron: \\"\\\\u010C\\", ccaron: \\"\\\\u010D\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", Ccirc: \\"\\\\u0108\\", ccirc: \\"\\\\u0109\\", Cconint: \\"\\\\u2230\\", ccups: \\"\\\\u2A4C\\", ccupssm: \\"\\\\u2A50\\", Cdot: \\"\\\\u010A\\", cdot: \\"\\\\u010B\\", cedil: \\"\\\\xB8\\", Cedilla: \\"\\\\xB8\\", cemptyv: \\"\\\\u29B2\\", cent: \\"\\\\xA2\\", centerdot: \\"\\\\xB7\\", CenterDot: \\"\\\\xB7\\", cfr: \\"\\\\u{1D520}\\", Cfr: \\"\\\\u212D\\", CHcy: \\"\\\\u0427\\", chcy: \\"\\\\u0447\\", check: \\"\\\\u2713\\", checkmark: \\"\\\\u2713\\", Chi: \\"\\\\u03A7\\", chi: \\"\\\\u03C7\\", circ: \\"\\\\u02C6\\", circeq: \\"\\\\u2257\\", circlearrowleft: \\"\\\\u21BA\\", circlearrowright: \\"\\\\u21BB\\", circledast: \\"\\\\u229B\\", circledcirc: \\"\\\\u229A\\", circleddash: \\"\\\\u229D\\", CircleDot: \\"\\\\u2299\\", circledR: \\"\\\\xAE\\", circledS: \\"\\\\u24C8\\", CircleMinus: \\"\\\\u2296\\", CirclePlus: \\"\\\\u2295\\", CircleTimes: \\"\\\\u2297\\", cir: \\"\\\\u25CB\\", cirE: \\"\\\\u29C3\\", cire: \\"\\\\u2257\\", cirfnint: \\"\\\\u2A10\\", cirmid: \\"\\\\u2AEF\\", cirscir: \\"\\\\u29C2\\", ClockwiseContourIntegral: \\"\\\\u2232\\", CloseCurlyDoubleQuote: \\"\\\\u201D\\", CloseCurlyQuote: \\"\\\\u2019\\", clubs: \\"\\\\u2663\\", clubsuit: \\"\\\\u2663\\", colon: \\":\\", Colon: \\"\\\\u2237\\", Colone: \\"\\\\u2A74\\", colone: \\"\\\\u2254\\", coloneq: \\"\\\\u2254\\", comma: \\",\\", commat: \\"@\\", comp: \\"\\\\u2201\\", compfn: \\"\\\\u2218\\", complement: \\"\\\\u2201\\", complexes: \\"\\\\u2102\\", cong: \\"\\\\u2245\\", congdot: \\"\\\\u2A6D\\", Congruent: \\"\\\\u2261\\", conint: \\"\\\\u222E\\", Conint: \\"\\\\u222F\\", ContourIntegral: \\"\\\\u222E\\", copf: \\"\\\\u{1D554}\\", Copf: \\"\\\\u2102\\", coprod: \\"\\\\u2210\\", Coproduct: \\"\\\\u2210\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", copysr: \\"\\\\u2117\\", CounterClockwiseContourIntegral: \\"\\\\u2233\\", crarr: \\"\\\\u21B5\\", cross: \\"\\\\u2717\\", Cross: \\"\\\\u2A2F\\", Cscr: \\"\\\\u{1D49E}\\", cscr: \\"\\\\u{1D4B8}\\", csub: \\"\\\\u2ACF\\", csube: \\"\\\\u2AD1\\", csup: \\"\\\\u2AD0\\", csupe: \\"\\\\u2AD2\\", ctdot: \\"\\\\u22EF\\", cudarrl: \\"\\\\u2938\\", cudarrr: \\"\\\\u2935\\", cuepr: \\"\\\\u22DE\\", cuesc: \\"\\\\u22DF\\", cularr: \\"\\\\u21B6\\", cularrp: \\"\\\\u293D\\", cupbrcap: \\"\\\\u2A48\\", cupcap: \\"\\\\u2A46\\", CupCap: \\"\\\\u224D\\", cup: \\"\\\\u222A\\", Cup: \\"\\\\u22D3\\", cupcup: \\"\\\\u2A4A\\", cupdot: \\"\\\\u228D\\", cupor: \\"\\\\u2A45\\", cups: \\"\\\\u222A\\\\uFE00\\", curarr: \\"\\\\u21B7\\", curarrm: \\"\\\\u293C\\", curlyeqprec: \\"\\\\u22DE\\", curlyeqsucc: \\"\\\\u22DF\\", curlyvee: \\"\\\\u22CE\\", curlywedge: \\"\\\\u22CF\\", curren: \\"\\\\xA4\\", curvearrowleft: \\"\\\\u21B6\\", curvearrowright: \\"\\\\u21B7\\", cuvee: \\"\\\\u22CE\\", cuwed: \\"\\\\u22CF\\", cwconint: \\"\\\\u2232\\", cwint: \\"\\\\u2231\\", cylcty: \\"\\\\u232D\\", dagger: \\"\\\\u2020\\", Dagger: \\"\\\\u2021\\", daleth: \\"\\\\u2138\\", darr: \\"\\\\u2193\\", Darr: \\"\\\\u21A1\\", dArr: \\"\\\\u21D3\\", dash: \\"\\\\u2010\\", Dashv: \\"\\\\u2AE4\\", dashv: \\"\\\\u22A3\\", dbkarow: \\"\\\\u290F\\", dblac: \\"\\\\u02DD\\", Dcaron: \\"\\\\u010E\\", dcaron: \\"\\\\u010F\\", Dcy: \\"\\\\u0414\\", dcy: \\"\\\\u0434\\", ddagger: \\"\\\\u2021\\", ddarr: \\"\\\\u21CA\\", DD: \\"\\\\u2145\\", dd: \\"\\\\u2146\\", DDotrahd: \\"\\\\u2911\\", ddotseq: \\"\\\\u2A77\\", deg: \\"\\\\xB0\\", Del: \\"\\\\u2207\\", Delta: \\"\\\\u0394\\", delta: \\"\\\\u03B4\\", demptyv: \\"\\\\u29B1\\", dfisht: \\"\\\\u297F\\", Dfr: \\"\\\\u{1D507}\\", dfr: \\"\\\\u{1D521}\\", dHar: \\"\\\\u2965\\", dharl: \\"\\\\u21C3\\", dharr: \\"\\\\u21C2\\", DiacriticalAcute: \\"\\\\xB4\\", DiacriticalDot: \\"\\\\u02D9\\", DiacriticalDoubleAcute: \\"\\\\u02DD\\", DiacriticalGrave: \\"\`\\", DiacriticalTilde: \\"\\\\u02DC\\", diam: \\"\\\\u22C4\\", diamond: \\"\\\\u22C4\\", Diamond: \\"\\\\u22C4\\", diamondsuit: \\"\\\\u2666\\", diams: \\"\\\\u2666\\", die: \\"\\\\xA8\\", DifferentialD: \\"\\\\u2146\\", digamma: \\"\\\\u03DD\\", disin: \\"\\\\u22F2\\", div: \\"\\\\xF7\\", divide: \\"\\\\xF7\\", divideontimes: \\"\\\\u22C7\\", divonx: \\"\\\\u22C7\\", DJcy: \\"\\\\u0402\\", djcy: \\"\\\\u0452\\", dlcorn: \\"\\\\u231E\\", dlcrop: \\"\\\\u230D\\", dollar: \\"$\\", Dopf: \\"\\\\u{1D53B}\\", dopf: \\"\\\\u{1D555}\\", Dot: \\"\\\\xA8\\", dot: \\"\\\\u02D9\\", DotDot: \\"\\\\u20DC\\", doteq: \\"\\\\u2250\\", doteqdot: \\"\\\\u2251\\", DotEqual: \\"\\\\u2250\\", dotminus: \\"\\\\u2238\\", dotplus: \\"\\\\u2214\\", dotsquare: \\"\\\\u22A1\\", doublebarwedge: \\"\\\\u2306\\", DoubleContourIntegral: \\"\\\\u222F\\", DoubleDot: \\"\\\\xA8\\", DoubleDownArrow: \\"\\\\u21D3\\", DoubleLeftArrow: \\"\\\\u21D0\\", DoubleLeftRightArrow: \\"\\\\u21D4\\", DoubleLeftTee: \\"\\\\u2AE4\\", DoubleLongLeftArrow: \\"\\\\u27F8\\", DoubleLongLeftRightArrow: \\"\\\\u27FA\\", DoubleLongRightArrow: \\"\\\\u27F9\\", DoubleRightArrow: \\"\\\\u21D2\\", DoubleRightTee: \\"\\\\u22A8\\", DoubleUpArrow: \\"\\\\u21D1\\", DoubleUpDownArrow: \\"\\\\u21D5\\", DoubleVerticalBar: \\"\\\\u2225\\", DownArrowBar: \\"\\\\u2913\\", downarrow: \\"\\\\u2193\\", DownArrow: \\"\\\\u2193\\", Downarrow: \\"\\\\u21D3\\", DownArrowUpArrow: \\"\\\\u21F5\\", DownBreve: \\"\\\\u0311\\", downdownarrows: \\"\\\\u21CA\\", downharpoonleft: \\"\\\\u21C3\\", downharpoonright: \\"\\\\u21C2\\", DownLeftRightVector: \\"\\\\u2950\\", DownLeftTeeVector: \\"\\\\u295E\\", DownLeftVectorBar: \\"\\\\u2956\\", DownLeftVector: \\"\\\\u21BD\\", DownRightTeeVector: \\"\\\\u295F\\", DownRightVectorBar: \\"\\\\u2957\\", DownRightVector: \\"\\\\u21C1\\", DownTeeArrow: \\"\\\\u21A7\\", DownTee: \\"\\\\u22A4\\", drbkarow: \\"\\\\u2910\\", drcorn: \\"\\\\u231F\\", drcrop: \\"\\\\u230C\\", Dscr: \\"\\\\u{1D49F}\\", dscr: \\"\\\\u{1D4B9}\\", DScy: \\"\\\\u0405\\", dscy: \\"\\\\u0455\\", dsol: \\"\\\\u29F6\\", Dstrok: \\"\\\\u0110\\", dstrok: \\"\\\\u0111\\", dtdot: \\"\\\\u22F1\\", dtri: \\"\\\\u25BF\\", dtrif: \\"\\\\u25BE\\", duarr: \\"\\\\u21F5\\", duhar: \\"\\\\u296F\\", dwangle: \\"\\\\u29A6\\", DZcy: \\"\\\\u040F\\", dzcy: \\"\\\\u045F\\", dzigrarr: \\"\\\\u27FF\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", easter: \\"\\\\u2A6E\\", Ecaron: \\"\\\\u011A\\", ecaron: \\"\\\\u011B\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", ecir: \\"\\\\u2256\\", ecolon: \\"\\\\u2255\\", Ecy: \\"\\\\u042D\\", ecy: \\"\\\\u044D\\", eDDot: \\"\\\\u2A77\\", Edot: \\"\\\\u0116\\", edot: \\"\\\\u0117\\", eDot: \\"\\\\u2251\\", ee: \\"\\\\u2147\\", efDot: \\"\\\\u2252\\", Efr: \\"\\\\u{1D508}\\", efr: \\"\\\\u{1D522}\\", eg: \\"\\\\u2A9A\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", egs: \\"\\\\u2A96\\", egsdot: \\"\\\\u2A98\\", el: \\"\\\\u2A99\\", Element: \\"\\\\u2208\\", elinters: \\"\\\\u23E7\\", ell: \\"\\\\u2113\\", els: \\"\\\\u2A95\\", elsdot: \\"\\\\u2A97\\", Emacr: \\"\\\\u0112\\", emacr: \\"\\\\u0113\\", empty: \\"\\\\u2205\\", emptyset: \\"\\\\u2205\\", EmptySmallSquare: \\"\\\\u25FB\\", emptyv: \\"\\\\u2205\\", EmptyVerySmallSquare: \\"\\\\u25AB\\", emsp13: \\"\\\\u2004\\", emsp14: \\"\\\\u2005\\", emsp: \\"\\\\u2003\\", ENG: \\"\\\\u014A\\", eng: \\"\\\\u014B\\", ensp: \\"\\\\u2002\\", Eogon: \\"\\\\u0118\\", eogon: \\"\\\\u0119\\", Eopf: \\"\\\\u{1D53C}\\", eopf: \\"\\\\u{1D556}\\", epar: \\"\\\\u22D5\\", eparsl: \\"\\\\u29E3\\", eplus: \\"\\\\u2A71\\", epsi: \\"\\\\u03B5\\", Epsilon: \\"\\\\u0395\\", epsilon: \\"\\\\u03B5\\", epsiv: \\"\\\\u03F5\\", eqcirc: \\"\\\\u2256\\", eqcolon: \\"\\\\u2255\\", eqsim: \\"\\\\u2242\\", eqslantgtr: \\"\\\\u2A96\\", eqslantless: \\"\\\\u2A95\\", Equal: \\"\\\\u2A75\\", equals: \\"=\\", EqualTilde: \\"\\\\u2242\\", equest: \\"\\\\u225F\\", Equilibrium: \\"\\\\u21CC\\", equiv: \\"\\\\u2261\\", equivDD: \\"\\\\u2A78\\", eqvparsl: \\"\\\\u29E5\\", erarr: \\"\\\\u2971\\", erDot: \\"\\\\u2253\\", escr: \\"\\\\u212F\\", Escr: \\"\\\\u2130\\", esdot: \\"\\\\u2250\\", Esim: \\"\\\\u2A73\\", esim: \\"\\\\u2242\\", Eta: \\"\\\\u0397\\", eta: \\"\\\\u03B7\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", euro: \\"\\\\u20AC\\", excl: \\"!\\", exist: \\"\\\\u2203\\", Exists: \\"\\\\u2203\\", expectation: \\"\\\\u2130\\", exponentiale: \\"\\\\u2147\\", ExponentialE: \\"\\\\u2147\\", fallingdotseq: \\"\\\\u2252\\", Fcy: \\"\\\\u0424\\", fcy: \\"\\\\u0444\\", female: \\"\\\\u2640\\", ffilig: \\"\\\\uFB03\\", fflig: \\"\\\\uFB00\\", ffllig: \\"\\\\uFB04\\", Ffr: \\"\\\\u{1D509}\\", ffr: \\"\\\\u{1D523}\\", filig: \\"\\\\uFB01\\", FilledSmallSquare: \\"\\\\u25FC\\", FilledVerySmallSquare: \\"\\\\u25AA\\", fjlig: \\"fj\\", flat: \\"\\\\u266D\\", fllig: \\"\\\\uFB02\\", fltns: \\"\\\\u25B1\\", fnof: \\"\\\\u0192\\", Fopf: \\"\\\\u{1D53D}\\", fopf: \\"\\\\u{1D557}\\", forall: \\"\\\\u2200\\", ForAll: \\"\\\\u2200\\", fork: \\"\\\\u22D4\\", forkv: \\"\\\\u2AD9\\", Fouriertrf: \\"\\\\u2131\\", fpartint: \\"\\\\u2A0D\\", frac12: \\"\\\\xBD\\", frac13: \\"\\\\u2153\\", frac14: \\"\\\\xBC\\", frac15: \\"\\\\u2155\\", frac16: \\"\\\\u2159\\", frac18: \\"\\\\u215B\\", frac23: \\"\\\\u2154\\", frac25: \\"\\\\u2156\\", frac34: \\"\\\\xBE\\", frac35: \\"\\\\u2157\\", frac38: \\"\\\\u215C\\", frac45: \\"\\\\u2158\\", frac56: \\"\\\\u215A\\", frac58: \\"\\\\u215D\\", frac78: \\"\\\\u215E\\", frasl: \\"\\\\u2044\\", frown: \\"\\\\u2322\\", fscr: \\"\\\\u{1D4BB}\\", Fscr: \\"\\\\u2131\\", gacute: \\"\\\\u01F5\\", Gamma: \\"\\\\u0393\\", gamma: \\"\\\\u03B3\\", Gammad: \\"\\\\u03DC\\", gammad: \\"\\\\u03DD\\", gap: \\"\\\\u2A86\\", Gbreve: \\"\\\\u011E\\", gbreve: \\"\\\\u011F\\", Gcedil: \\"\\\\u0122\\", Gcirc: \\"\\\\u011C\\", gcirc: \\"\\\\u011D\\", Gcy: \\"\\\\u0413\\", gcy: \\"\\\\u0433\\", Gdot: \\"\\\\u0120\\", gdot: \\"\\\\u0121\\", ge: \\"\\\\u2265\\", gE: \\"\\\\u2267\\", gEl: \\"\\\\u2A8C\\", gel: \\"\\\\u22DB\\", geq: \\"\\\\u2265\\", geqq: \\"\\\\u2267\\", geqslant: \\"\\\\u2A7E\\", gescc: \\"\\\\u2AA9\\", ges: \\"\\\\u2A7E\\", gesdot: \\"\\\\u2A80\\", gesdoto: \\"\\\\u2A82\\", gesdotol: \\"\\\\u2A84\\", gesl: \\"\\\\u22DB\\\\uFE00\\", gesles: \\"\\\\u2A94\\", Gfr: \\"\\\\u{1D50A}\\", gfr: \\"\\\\u{1D524}\\", gg: \\"\\\\u226B\\", Gg: \\"\\\\u22D9\\", ggg: \\"\\\\u22D9\\", gimel: \\"\\\\u2137\\", GJcy: \\"\\\\u0403\\", gjcy: \\"\\\\u0453\\", gla: \\"\\\\u2AA5\\", gl: \\"\\\\u2277\\", glE: \\"\\\\u2A92\\", glj: \\"\\\\u2AA4\\", gnap: \\"\\\\u2A8A\\", gnapprox: \\"\\\\u2A8A\\", gne: \\"\\\\u2A88\\", gnE: \\"\\\\u2269\\", gneq: \\"\\\\u2A88\\", gneqq: \\"\\\\u2269\\", gnsim: \\"\\\\u22E7\\", Gopf: \\"\\\\u{1D53E}\\", gopf: \\"\\\\u{1D558}\\", grave: \\"\`\\", GreaterEqual: \\"\\\\u2265\\", GreaterEqualLess: \\"\\\\u22DB\\", GreaterFullEqual: \\"\\\\u2267\\", GreaterGreater: \\"\\\\u2AA2\\", GreaterLess: \\"\\\\u2277\\", GreaterSlantEqual: \\"\\\\u2A7E\\", GreaterTilde: \\"\\\\u2273\\", Gscr: \\"\\\\u{1D4A2}\\", gscr: \\"\\\\u210A\\", gsim: \\"\\\\u2273\\", gsime: \\"\\\\u2A8E\\", gsiml: \\"\\\\u2A90\\", gtcc: \\"\\\\u2AA7\\", gtcir: \\"\\\\u2A7A\\", gt: \\">\\", GT: \\">\\", Gt: \\"\\\\u226B\\", gtdot: \\"\\\\u22D7\\", gtlPar: \\"\\\\u2995\\", gtquest: \\"\\\\u2A7C\\", gtrapprox: \\"\\\\u2A86\\", gtrarr: \\"\\\\u2978\\", gtrdot: \\"\\\\u22D7\\", gtreqless: \\"\\\\u22DB\\", gtreqqless: \\"\\\\u2A8C\\", gtrless: \\"\\\\u2277\\", gtrsim: \\"\\\\u2273\\", gvertneqq: \\"\\\\u2269\\\\uFE00\\", gvnE: \\"\\\\u2269\\\\uFE00\\", Hacek: \\"\\\\u02C7\\", hairsp: \\"\\\\u200A\\", half: \\"\\\\xBD\\", hamilt: \\"\\\\u210B\\", HARDcy: \\"\\\\u042A\\", hardcy: \\"\\\\u044A\\", harrcir: \\"\\\\u2948\\", harr: \\"\\\\u2194\\", hArr: \\"\\\\u21D4\\", harrw: \\"\\\\u21AD\\", Hat: \\"^\\", hbar: \\"\\\\u210F\\", Hcirc: \\"\\\\u0124\\", hcirc: \\"\\\\u0125\\", hearts: \\"\\\\u2665\\", heartsuit: \\"\\\\u2665\\", hellip: \\"\\\\u2026\\", hercon: \\"\\\\u22B9\\", hfr: \\"\\\\u{1D525}\\", Hfr: \\"\\\\u210C\\", HilbertSpace: \\"\\\\u210B\\", hksearow: \\"\\\\u2925\\", hkswarow: \\"\\\\u2926\\", hoarr: \\"\\\\u21FF\\", homtht: \\"\\\\u223B\\", hookleftarrow: \\"\\\\u21A9\\", hookrightarrow: \\"\\\\u21AA\\", hopf: \\"\\\\u{1D559}\\", Hopf: \\"\\\\u210D\\", horbar: \\"\\\\u2015\\", HorizontalLine: \\"\\\\u2500\\", hscr: \\"\\\\u{1D4BD}\\", Hscr: \\"\\\\u210B\\", hslash: \\"\\\\u210F\\", Hstrok: \\"\\\\u0126\\", hstrok: \\"\\\\u0127\\", HumpDownHump: \\"\\\\u224E\\", HumpEqual: \\"\\\\u224F\\", hybull: \\"\\\\u2043\\", hyphen: \\"\\\\u2010\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", ic: \\"\\\\u2063\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", Icy: \\"\\\\u0418\\", icy: \\"\\\\u0438\\", Idot: \\"\\\\u0130\\", IEcy: \\"\\\\u0415\\", iecy: \\"\\\\u0435\\", iexcl: \\"\\\\xA1\\", iff: \\"\\\\u21D4\\", ifr: \\"\\\\u{1D526}\\", Ifr: \\"\\\\u2111\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", ii: \\"\\\\u2148\\", iiiint: \\"\\\\u2A0C\\", iiint: \\"\\\\u222D\\", iinfin: \\"\\\\u29DC\\", iiota: \\"\\\\u2129\\", IJlig: \\"\\\\u0132\\", ijlig: \\"\\\\u0133\\", Imacr: \\"\\\\u012A\\", imacr: \\"\\\\u012B\\", image: \\"\\\\u2111\\", ImaginaryI: \\"\\\\u2148\\", imagline: \\"\\\\u2110\\", imagpart: \\"\\\\u2111\\", imath: \\"\\\\u0131\\", Im: \\"\\\\u2111\\", imof: \\"\\\\u22B7\\", imped: \\"\\\\u01B5\\", Implies: \\"\\\\u21D2\\", incare: \\"\\\\u2105\\", in: \\"\\\\u2208\\", infin: \\"\\\\u221E\\", infintie: \\"\\\\u29DD\\", inodot: \\"\\\\u0131\\", intcal: \\"\\\\u22BA\\", int: \\"\\\\u222B\\", Int: \\"\\\\u222C\\", integers: \\"\\\\u2124\\", Integral: \\"\\\\u222B\\", intercal: \\"\\\\u22BA\\", Intersection: \\"\\\\u22C2\\", intlarhk: \\"\\\\u2A17\\", intprod: \\"\\\\u2A3C\\", InvisibleComma: \\"\\\\u2063\\", InvisibleTimes: \\"\\\\u2062\\", IOcy: \\"\\\\u0401\\", iocy: \\"\\\\u0451\\", Iogon: \\"\\\\u012E\\", iogon: \\"\\\\u012F\\", Iopf: \\"\\\\u{1D540}\\", iopf: \\"\\\\u{1D55A}\\", Iota: \\"\\\\u0399\\", iota: \\"\\\\u03B9\\", iprod: \\"\\\\u2A3C\\", iquest: \\"\\\\xBF\\", iscr: \\"\\\\u{1D4BE}\\", Iscr: \\"\\\\u2110\\", isin: \\"\\\\u2208\\", isindot: \\"\\\\u22F5\\", isinE: \\"\\\\u22F9\\", isins: \\"\\\\u22F4\\", isinsv: \\"\\\\u22F3\\", isinv: \\"\\\\u2208\\", it: \\"\\\\u2062\\", Itilde: \\"\\\\u0128\\", itilde: \\"\\\\u0129\\", Iukcy: \\"\\\\u0406\\", iukcy: \\"\\\\u0456\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", Jcirc: \\"\\\\u0134\\", jcirc: \\"\\\\u0135\\", Jcy: \\"\\\\u0419\\", jcy: \\"\\\\u0439\\", Jfr: \\"\\\\u{1D50D}\\", jfr: \\"\\\\u{1D527}\\", jmath: \\"\\\\u0237\\", Jopf: \\"\\\\u{1D541}\\", jopf: \\"\\\\u{1D55B}\\", Jscr: \\"\\\\u{1D4A5}\\", jscr: \\"\\\\u{1D4BF}\\", Jsercy: \\"\\\\u0408\\", jsercy: \\"\\\\u0458\\", Jukcy: \\"\\\\u0404\\", jukcy: \\"\\\\u0454\\", Kappa: \\"\\\\u039A\\", kappa: \\"\\\\u03BA\\", kappav: \\"\\\\u03F0\\", Kcedil: \\"\\\\u0136\\", kcedil: \\"\\\\u0137\\", Kcy: \\"\\\\u041A\\", kcy: \\"\\\\u043A\\", Kfr: \\"\\\\u{1D50E}\\", kfr: \\"\\\\u{1D528}\\", kgreen: \\"\\\\u0138\\", KHcy: \\"\\\\u0425\\", khcy: \\"\\\\u0445\\", KJcy: \\"\\\\u040C\\", kjcy: \\"\\\\u045C\\", Kopf: \\"\\\\u{1D542}\\", kopf: \\"\\\\u{1D55C}\\", Kscr: \\"\\\\u{1D4A6}\\", kscr: \\"\\\\u{1D4C0}\\", lAarr: \\"\\\\u21DA\\", Lacute: \\"\\\\u0139\\", lacute: \\"\\\\u013A\\", laemptyv: \\"\\\\u29B4\\", lagran: \\"\\\\u2112\\", Lambda: \\"\\\\u039B\\", lambda: \\"\\\\u03BB\\", lang: \\"\\\\u27E8\\", Lang: \\"\\\\u27EA\\", langd: \\"\\\\u2991\\", langle: \\"\\\\u27E8\\", lap: \\"\\\\u2A85\\", Laplacetrf: \\"\\\\u2112\\", laquo: \\"\\\\xAB\\", larrb: \\"\\\\u21E4\\", larrbfs: \\"\\\\u291F\\", larr: \\"\\\\u2190\\", Larr: \\"\\\\u219E\\", lArr: \\"\\\\u21D0\\", larrfs: \\"\\\\u291D\\", larrhk: \\"\\\\u21A9\\", larrlp: \\"\\\\u21AB\\", larrpl: \\"\\\\u2939\\", larrsim: \\"\\\\u2973\\", larrtl: \\"\\\\u21A2\\", latail: \\"\\\\u2919\\", lAtail: \\"\\\\u291B\\", lat: \\"\\\\u2AAB\\", late: \\"\\\\u2AAD\\", lates: \\"\\\\u2AAD\\\\uFE00\\", lbarr: \\"\\\\u290C\\", lBarr: \\"\\\\u290E\\", lbbrk: \\"\\\\u2772\\", lbrace: \\"{\\", lbrack: \\"[\\", lbrke: \\"\\\\u298B\\", lbrksld: \\"\\\\u298F\\", lbrkslu: \\"\\\\u298D\\", Lcaron: \\"\\\\u013D\\", lcaron: \\"\\\\u013E\\", Lcedil: \\"\\\\u013B\\", lcedil: \\"\\\\u013C\\", lceil: \\"\\\\u2308\\", lcub: \\"{\\", Lcy: \\"\\\\u041B\\", lcy: \\"\\\\u043B\\", ldca: \\"\\\\u2936\\", ldquo: \\"\\\\u201C\\", ldquor: \\"\\\\u201E\\", ldrdhar: \\"\\\\u2967\\", ldrushar: \\"\\\\u294B\\", ldsh: \\"\\\\u21B2\\", le: \\"\\\\u2264\\", lE: \\"\\\\u2266\\", LeftAngleBracket: \\"\\\\u27E8\\", LeftArrowBar: \\"\\\\u21E4\\", leftarrow: \\"\\\\u2190\\", LeftArrow: \\"\\\\u2190\\", Leftarrow: \\"\\\\u21D0\\", LeftArrowRightArrow: \\"\\\\u21C6\\", leftarrowtail: \\"\\\\u21A2\\", LeftCeiling: \\"\\\\u2308\\", LeftDoubleBracket: \\"\\\\u27E6\\", LeftDownTeeVector: \\"\\\\u2961\\", LeftDownVectorBar: \\"\\\\u2959\\", LeftDownVector: \\"\\\\u21C3\\", LeftFloor: \\"\\\\u230A\\", leftharpoondown: \\"\\\\u21BD\\", leftharpoonup: \\"\\\\u21BC\\", leftleftarrows: \\"\\\\u21C7\\", leftrightarrow: \\"\\\\u2194\\", LeftRightArrow: \\"\\\\u2194\\", Leftrightarrow: \\"\\\\u21D4\\", leftrightarrows: \\"\\\\u21C6\\", leftrightharpoons: \\"\\\\u21CB\\", leftrightsquigarrow: \\"\\\\u21AD\\", LeftRightVector: \\"\\\\u294E\\", LeftTeeArrow: \\"\\\\u21A4\\", LeftTee: \\"\\\\u22A3\\", LeftTeeVector: \\"\\\\u295A\\", leftthreetimes: \\"\\\\u22CB\\", LeftTriangleBar: \\"\\\\u29CF\\", LeftTriangle: \\"\\\\u22B2\\", LeftTriangleEqual: \\"\\\\u22B4\\", LeftUpDownVector: \\"\\\\u2951\\", LeftUpTeeVector: \\"\\\\u2960\\", LeftUpVectorBar: \\"\\\\u2958\\", LeftUpVector: \\"\\\\u21BF\\", LeftVectorBar: \\"\\\\u2952\\", LeftVector: \\"\\\\u21BC\\", lEg: \\"\\\\u2A8B\\", leg: \\"\\\\u22DA\\", leq: \\"\\\\u2264\\", leqq: \\"\\\\u2266\\", leqslant: \\"\\\\u2A7D\\", lescc: \\"\\\\u2AA8\\", les: \\"\\\\u2A7D\\", lesdot: \\"\\\\u2A7F\\", lesdoto: \\"\\\\u2A81\\", lesdotor: \\"\\\\u2A83\\", lesg: \\"\\\\u22DA\\\\uFE00\\", lesges: \\"\\\\u2A93\\", lessapprox: \\"\\\\u2A85\\", lessdot: \\"\\\\u22D6\\", lesseqgtr: \\"\\\\u22DA\\", lesseqqgtr: \\"\\\\u2A8B\\", LessEqualGreater: \\"\\\\u22DA\\", LessFullEqual: \\"\\\\u2266\\", LessGreater: \\"\\\\u2276\\", lessgtr: \\"\\\\u2276\\", LessLess: \\"\\\\u2AA1\\", lesssim: \\"\\\\u2272\\", LessSlantEqual: \\"\\\\u2A7D\\", LessTilde: \\"\\\\u2272\\", lfisht: \\"\\\\u297C\\", lfloor: \\"\\\\u230A\\", Lfr: \\"\\\\u{1D50F}\\", lfr: \\"\\\\u{1D529}\\", lg: \\"\\\\u2276\\", lgE: \\"\\\\u2A91\\", lHar: \\"\\\\u2962\\", lhard: \\"\\\\u21BD\\", lharu: \\"\\\\u21BC\\", lharul: \\"\\\\u296A\\", lhblk: \\"\\\\u2584\\", LJcy: \\"\\\\u0409\\", ljcy: \\"\\\\u0459\\", llarr: \\"\\\\u21C7\\", ll: \\"\\\\u226A\\", Ll: \\"\\\\u22D8\\", llcorner: \\"\\\\u231E\\", Lleftarrow: \\"\\\\u21DA\\", llhard: \\"\\\\u296B\\", lltri: \\"\\\\u25FA\\", Lmidot: \\"\\\\u013F\\", lmidot: \\"\\\\u0140\\", lmoustache: \\"\\\\u23B0\\", lmoust: \\"\\\\u23B0\\", lnap: \\"\\\\u2A89\\", lnapprox: \\"\\\\u2A89\\", lne: \\"\\\\u2A87\\", lnE: \\"\\\\u2268\\", lneq: \\"\\\\u2A87\\", lneqq: \\"\\\\u2268\\", lnsim: \\"\\\\u22E6\\", loang: \\"\\\\u27EC\\", loarr: \\"\\\\u21FD\\", lobrk: \\"\\\\u27E6\\", longleftarrow: \\"\\\\u27F5\\", LongLeftArrow: \\"\\\\u27F5\\", Longleftarrow: \\"\\\\u27F8\\", longleftrightarrow: \\"\\\\u27F7\\", LongLeftRightArrow: \\"\\\\u27F7\\", Longleftrightarrow: \\"\\\\u27FA\\", longmapsto: \\"\\\\u27FC\\", longrightarrow: \\"\\\\u27F6\\", LongRightArrow: \\"\\\\u27F6\\", Longrightarrow: \\"\\\\u27F9\\", looparrowleft: \\"\\\\u21AB\\", looparrowright: \\"\\\\u21AC\\", lopar: \\"\\\\u2985\\", Lopf: \\"\\\\u{1D543}\\", lopf: \\"\\\\u{1D55D}\\", loplus: \\"\\\\u2A2D\\", lotimes: \\"\\\\u2A34\\", lowast: \\"\\\\u2217\\", lowbar: \\"_\\", LowerLeftArrow: \\"\\\\u2199\\", LowerRightArrow: \\"\\\\u2198\\", loz: \\"\\\\u25CA\\", lozenge: \\"\\\\u25CA\\", lozf: \\"\\\\u29EB\\", lpar: \\"(\\", lparlt: \\"\\\\u2993\\", lrarr: \\"\\\\u21C6\\", lrcorner: \\"\\\\u231F\\", lrhar: \\"\\\\u21CB\\", lrhard: \\"\\\\u296D\\", lrm: \\"\\\\u200E\\", lrtri: \\"\\\\u22BF\\", lsaquo: \\"\\\\u2039\\", lscr: \\"\\\\u{1D4C1}\\", Lscr: \\"\\\\u2112\\", lsh: \\"\\\\u21B0\\", Lsh: \\"\\\\u21B0\\", lsim: \\"\\\\u2272\\", lsime: \\"\\\\u2A8D\\", lsimg: \\"\\\\u2A8F\\", lsqb: \\"[\\", lsquo: \\"\\\\u2018\\", lsquor: \\"\\\\u201A\\", Lstrok: \\"\\\\u0141\\", lstrok: \\"\\\\u0142\\", ltcc: \\"\\\\u2AA6\\", ltcir: \\"\\\\u2A79\\", lt: \\"<\\", LT: \\"<\\", Lt: \\"\\\\u226A\\", ltdot: \\"\\\\u22D6\\", lthree: \\"\\\\u22CB\\", ltimes: \\"\\\\u22C9\\", ltlarr: \\"\\\\u2976\\", ltquest: \\"\\\\u2A7B\\", ltri: \\"\\\\u25C3\\", ltrie: \\"\\\\u22B4\\", ltrif: \\"\\\\u25C2\\", ltrPar: \\"\\\\u2996\\", lurdshar: \\"\\\\u294A\\", luruhar: \\"\\\\u2966\\", lvertneqq: \\"\\\\u2268\\\\uFE00\\", lvnE: \\"\\\\u2268\\\\uFE00\\", macr: \\"\\\\xAF\\", male: \\"\\\\u2642\\", malt: \\"\\\\u2720\\", maltese: \\"\\\\u2720\\", Map: \\"\\\\u2905\\", map: \\"\\\\u21A6\\", mapsto: \\"\\\\u21A6\\", mapstodown: \\"\\\\u21A7\\", mapstoleft: \\"\\\\u21A4\\", mapstoup: \\"\\\\u21A5\\", marker: \\"\\\\u25AE\\", mcomma: \\"\\\\u2A29\\", Mcy: \\"\\\\u041C\\", mcy: \\"\\\\u043C\\", mdash: \\"\\\\u2014\\", mDDot: \\"\\\\u223A\\", measuredangle: \\"\\\\u2221\\", MediumSpace: \\"\\\\u205F\\", Mellintrf: \\"\\\\u2133\\", Mfr: \\"\\\\u{1D510}\\", mfr: \\"\\\\u{1D52A}\\", mho: \\"\\\\u2127\\", micro: \\"\\\\xB5\\", midast: \\"*\\", midcir: \\"\\\\u2AF0\\", mid: \\"\\\\u2223\\", middot: \\"\\\\xB7\\", minusb: \\"\\\\u229F\\", minus: \\"\\\\u2212\\", minusd: \\"\\\\u2238\\", minusdu: \\"\\\\u2A2A\\", MinusPlus: \\"\\\\u2213\\", mlcp: \\"\\\\u2ADB\\", mldr: \\"\\\\u2026\\", mnplus: \\"\\\\u2213\\", models: \\"\\\\u22A7\\", Mopf: \\"\\\\u{1D544}\\", mopf: \\"\\\\u{1D55E}\\", mp: \\"\\\\u2213\\", mscr: \\"\\\\u{1D4C2}\\", Mscr: \\"\\\\u2133\\", mstpos: \\"\\\\u223E\\", Mu: \\"\\\\u039C\\", mu: \\"\\\\u03BC\\", multimap: \\"\\\\u22B8\\", mumap: \\"\\\\u22B8\\", nabla: \\"\\\\u2207\\", Nacute: \\"\\\\u0143\\", nacute: \\"\\\\u0144\\", nang: \\"\\\\u2220\\\\u20D2\\", nap: \\"\\\\u2249\\", napE: \\"\\\\u2A70\\\\u0338\\", napid: \\"\\\\u224B\\\\u0338\\", napos: \\"\\\\u0149\\", napprox: \\"\\\\u2249\\", natural: \\"\\\\u266E\\", naturals: \\"\\\\u2115\\", natur: \\"\\\\u266E\\", nbsp: \\"\\\\xA0\\", nbump: \\"\\\\u224E\\\\u0338\\", nbumpe: \\"\\\\u224F\\\\u0338\\", ncap: \\"\\\\u2A43\\", Ncaron: \\"\\\\u0147\\", ncaron: \\"\\\\u0148\\", Ncedil: \\"\\\\u0145\\", ncedil: \\"\\\\u0146\\", ncong: \\"\\\\u2247\\", ncongdot: \\"\\\\u2A6D\\\\u0338\\", ncup: \\"\\\\u2A42\\", Ncy: \\"\\\\u041D\\", ncy: \\"\\\\u043D\\", ndash: \\"\\\\u2013\\", nearhk: \\"\\\\u2924\\", nearr: \\"\\\\u2197\\", neArr: \\"\\\\u21D7\\", nearrow: \\"\\\\u2197\\", ne: \\"\\\\u2260\\", nedot: \\"\\\\u2250\\\\u0338\\", NegativeMediumSpace: \\"\\\\u200B\\", NegativeThickSpace: \\"\\\\u200B\\", NegativeThinSpace: \\"\\\\u200B\\", NegativeVeryThinSpace: \\"\\\\u200B\\", nequiv: \\"\\\\u2262\\", nesear: \\"\\\\u2928\\", nesim: \\"\\\\u2242\\\\u0338\\", NestedGreaterGreater: \\"\\\\u226B\\", NestedLessLess: \\"\\\\u226A\\", NewLine: \\"\\\\n\\", nexist: \\"\\\\u2204\\", nexists: \\"\\\\u2204\\", Nfr: \\"\\\\u{1D511}\\", nfr: \\"\\\\u{1D52B}\\", ngE: \\"\\\\u2267\\\\u0338\\", nge: \\"\\\\u2271\\", ngeq: \\"\\\\u2271\\", ngeqq: \\"\\\\u2267\\\\u0338\\", ngeqslant: \\"\\\\u2A7E\\\\u0338\\", nges: \\"\\\\u2A7E\\\\u0338\\", nGg: \\"\\\\u22D9\\\\u0338\\", ngsim: \\"\\\\u2275\\", nGt: \\"\\\\u226B\\\\u20D2\\", ngt: \\"\\\\u226F\\", ngtr: \\"\\\\u226F\\", nGtv: \\"\\\\u226B\\\\u0338\\", nharr: \\"\\\\u21AE\\", nhArr: \\"\\\\u21CE\\", nhpar: \\"\\\\u2AF2\\", ni: \\"\\\\u220B\\", nis: \\"\\\\u22FC\\", nisd: \\"\\\\u22FA\\", niv: \\"\\\\u220B\\", NJcy: \\"\\\\u040A\\", njcy: \\"\\\\u045A\\", nlarr: \\"\\\\u219A\\", nlArr: \\"\\\\u21CD\\", nldr: \\"\\\\u2025\\", nlE: \\"\\\\u2266\\\\u0338\\", nle: \\"\\\\u2270\\", nleftarrow: \\"\\\\u219A\\", nLeftarrow: \\"\\\\u21CD\\", nleftrightarrow: \\"\\\\u21AE\\", nLeftrightarrow: \\"\\\\u21CE\\", nleq: \\"\\\\u2270\\", nleqq: \\"\\\\u2266\\\\u0338\\", nleqslant: \\"\\\\u2A7D\\\\u0338\\", nles: \\"\\\\u2A7D\\\\u0338\\", nless: \\"\\\\u226E\\", nLl: \\"\\\\u22D8\\\\u0338\\", nlsim: \\"\\\\u2274\\", nLt: \\"\\\\u226A\\\\u20D2\\", nlt: \\"\\\\u226E\\", nltri: \\"\\\\u22EA\\", nltrie: \\"\\\\u22EC\\", nLtv: \\"\\\\u226A\\\\u0338\\", nmid: \\"\\\\u2224\\", NoBreak: \\"\\\\u2060\\", NonBreakingSpace: \\"\\\\xA0\\", nopf: \\"\\\\u{1D55F}\\", Nopf: \\"\\\\u2115\\", Not: \\"\\\\u2AEC\\", not: \\"\\\\xAC\\", NotCongruent: \\"\\\\u2262\\", NotCupCap: \\"\\\\u226D\\", NotDoubleVerticalBar: \\"\\\\u2226\\", NotElement: \\"\\\\u2209\\", NotEqual: \\"\\\\u2260\\", NotEqualTilde: \\"\\\\u2242\\\\u0338\\", NotExists: \\"\\\\u2204\\", NotGreater: \\"\\\\u226F\\", NotGreaterEqual: \\"\\\\u2271\\", NotGreaterFullEqual: \\"\\\\u2267\\\\u0338\\", NotGreaterGreater: \\"\\\\u226B\\\\u0338\\", NotGreaterLess: \\"\\\\u2279\\", NotGreaterSlantEqual: \\"\\\\u2A7E\\\\u0338\\", NotGreaterTilde: \\"\\\\u2275\\", NotHumpDownHump: \\"\\\\u224E\\\\u0338\\", NotHumpEqual: \\"\\\\u224F\\\\u0338\\", notin: \\"\\\\u2209\\", notindot: \\"\\\\u22F5\\\\u0338\\", notinE: \\"\\\\u22F9\\\\u0338\\", notinva: \\"\\\\u2209\\", notinvb: \\"\\\\u22F7\\", notinvc: \\"\\\\u22F6\\", NotLeftTriangleBar: \\"\\\\u29CF\\\\u0338\\", NotLeftTriangle: \\"\\\\u22EA\\", NotLeftTriangleEqual: \\"\\\\u22EC\\", NotLess: \\"\\\\u226E\\", NotLessEqual: \\"\\\\u2270\\", NotLessGreater: \\"\\\\u2278\\", NotLessLess: \\"\\\\u226A\\\\u0338\\", NotLessSlantEqual: \\"\\\\u2A7D\\\\u0338\\", NotLessTilde: \\"\\\\u2274\\", NotNestedGreaterGreater: \\"\\\\u2AA2\\\\u0338\\", NotNestedLessLess: \\"\\\\u2AA1\\\\u0338\\", notni: \\"\\\\u220C\\", notniva: \\"\\\\u220C\\", notnivb: \\"\\\\u22FE\\", notnivc: \\"\\\\u22FD\\", NotPrecedes: \\"\\\\u2280\\", NotPrecedesEqual: \\"\\\\u2AAF\\\\u0338\\", NotPrecedesSlantEqual: \\"\\\\u22E0\\", NotReverseElement: \\"\\\\u220C\\", NotRightTriangleBar: \\"\\\\u29D0\\\\u0338\\", NotRightTriangle: \\"\\\\u22EB\\", NotRightTriangleEqual: \\"\\\\u22ED\\", NotSquareSubset: \\"\\\\u228F\\\\u0338\\", NotSquareSubsetEqual: \\"\\\\u22E2\\", NotSquareSuperset: \\"\\\\u2290\\\\u0338\\", NotSquareSupersetEqual: \\"\\\\u22E3\\", NotSubset: \\"\\\\u2282\\\\u20D2\\", NotSubsetEqual: \\"\\\\u2288\\", NotSucceeds: \\"\\\\u2281\\", NotSucceedsEqual: \\"\\\\u2AB0\\\\u0338\\", NotSucceedsSlantEqual: \\"\\\\u22E1\\", NotSucceedsTilde: \\"\\\\u227F\\\\u0338\\", NotSuperset: \\"\\\\u2283\\\\u20D2\\", NotSupersetEqual: \\"\\\\u2289\\", NotTilde: \\"\\\\u2241\\", NotTildeEqual: \\"\\\\u2244\\", NotTildeFullEqual: \\"\\\\u2247\\", NotTildeTilde: \\"\\\\u2249\\", NotVerticalBar: \\"\\\\u2224\\", nparallel: \\"\\\\u2226\\", npar: \\"\\\\u2226\\", nparsl: \\"\\\\u2AFD\\\\u20E5\\", npart: \\"\\\\u2202\\\\u0338\\", npolint: \\"\\\\u2A14\\", npr: \\"\\\\u2280\\", nprcue: \\"\\\\u22E0\\", nprec: \\"\\\\u2280\\", npreceq: \\"\\\\u2AAF\\\\u0338\\", npre: \\"\\\\u2AAF\\\\u0338\\", nrarrc: \\"\\\\u2933\\\\u0338\\", nrarr: \\"\\\\u219B\\", nrArr: \\"\\\\u21CF\\", nrarrw: \\"\\\\u219D\\\\u0338\\", nrightarrow: \\"\\\\u219B\\", nRightarrow: \\"\\\\u21CF\\", nrtri: \\"\\\\u22EB\\", nrtrie: \\"\\\\u22ED\\", nsc: \\"\\\\u2281\\", nsccue: \\"\\\\u22E1\\", nsce: \\"\\\\u2AB0\\\\u0338\\", Nscr: \\"\\\\u{1D4A9}\\", nscr: \\"\\\\u{1D4C3}\\", nshortmid: \\"\\\\u2224\\", nshortparallel: \\"\\\\u2226\\", nsim: \\"\\\\u2241\\", nsime: \\"\\\\u2244\\", nsimeq: \\"\\\\u2244\\", nsmid: \\"\\\\u2224\\", nspar: \\"\\\\u2226\\", nsqsube: \\"\\\\u22E2\\", nsqsupe: \\"\\\\u22E3\\", nsub: \\"\\\\u2284\\", nsubE: \\"\\\\u2AC5\\\\u0338\\", nsube: \\"\\\\u2288\\", nsubset: \\"\\\\u2282\\\\u20D2\\", nsubseteq: \\"\\\\u2288\\", nsubseteqq: \\"\\\\u2AC5\\\\u0338\\", nsucc: \\"\\\\u2281\\", nsucceq: \\"\\\\u2AB0\\\\u0338\\", nsup: \\"\\\\u2285\\", nsupE: \\"\\\\u2AC6\\\\u0338\\", nsupe: \\"\\\\u2289\\", nsupset: \\"\\\\u2283\\\\u20D2\\", nsupseteq: \\"\\\\u2289\\", nsupseteqq: \\"\\\\u2AC6\\\\u0338\\", ntgl: \\"\\\\u2279\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", ntlg: \\"\\\\u2278\\", ntriangleleft: \\"\\\\u22EA\\", ntrianglelefteq: \\"\\\\u22EC\\", ntriangleright: \\"\\\\u22EB\\", ntrianglerighteq: \\"\\\\u22ED\\", Nu: \\"\\\\u039D\\", nu: \\"\\\\u03BD\\", num: \\"#\\", numero: \\"\\\\u2116\\", numsp: \\"\\\\u2007\\", nvap: \\"\\\\u224D\\\\u20D2\\", nvdash: \\"\\\\u22AC\\", nvDash: \\"\\\\u22AD\\", nVdash: \\"\\\\u22AE\\", nVDash: \\"\\\\u22AF\\", nvge: \\"\\\\u2265\\\\u20D2\\", nvgt: \\">\\\\u20D2\\", nvHarr: \\"\\\\u2904\\", nvinfin: \\"\\\\u29DE\\", nvlArr: \\"\\\\u2902\\", nvle: \\"\\\\u2264\\\\u20D2\\", nvlt: \\"<\\\\u20D2\\", nvltrie: \\"\\\\u22B4\\\\u20D2\\", nvrArr: \\"\\\\u2903\\", nvrtrie: \\"\\\\u22B5\\\\u20D2\\", nvsim: \\"\\\\u223C\\\\u20D2\\", nwarhk: \\"\\\\u2923\\", nwarr: \\"\\\\u2196\\", nwArr: \\"\\\\u21D6\\", nwarrow: \\"\\\\u2196\\", nwnear: \\"\\\\u2927\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", oast: \\"\\\\u229B\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", ocir: \\"\\\\u229A\\", Ocy: \\"\\\\u041E\\", ocy: \\"\\\\u043E\\", odash: \\"\\\\u229D\\", Odblac: \\"\\\\u0150\\", odblac: \\"\\\\u0151\\", odiv: \\"\\\\u2A38\\", odot: \\"\\\\u2299\\", odsold: \\"\\\\u29BC\\", OElig: \\"\\\\u0152\\", oelig: \\"\\\\u0153\\", ofcir: \\"\\\\u29BF\\", Ofr: \\"\\\\u{1D512}\\", ofr: \\"\\\\u{1D52C}\\", ogon: \\"\\\\u02DB\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ogt: \\"\\\\u29C1\\", ohbar: \\"\\\\u29B5\\", ohm: \\"\\\\u03A9\\", oint: \\"\\\\u222E\\", olarr: \\"\\\\u21BA\\", olcir: \\"\\\\u29BE\\", olcross: \\"\\\\u29BB\\", oline: \\"\\\\u203E\\", olt: \\"\\\\u29C0\\", Omacr: \\"\\\\u014C\\", omacr: \\"\\\\u014D\\", Omega: \\"\\\\u03A9\\", omega: \\"\\\\u03C9\\", Omicron: \\"\\\\u039F\\", omicron: \\"\\\\u03BF\\", omid: \\"\\\\u29B6\\", ominus: \\"\\\\u2296\\", Oopf: \\"\\\\u{1D546}\\", oopf: \\"\\\\u{1D560}\\", opar: \\"\\\\u29B7\\", OpenCurlyDoubleQuote: \\"\\\\u201C\\", OpenCurlyQuote: \\"\\\\u2018\\", operp: \\"\\\\u29B9\\", oplus: \\"\\\\u2295\\", orarr: \\"\\\\u21BB\\", Or: \\"\\\\u2A54\\", or: \\"\\\\u2228\\", ord: \\"\\\\u2A5D\\", order: \\"\\\\u2134\\", orderof: \\"\\\\u2134\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", origof: \\"\\\\u22B6\\", oror: \\"\\\\u2A56\\", orslope: \\"\\\\u2A57\\", orv: \\"\\\\u2A5B\\", oS: \\"\\\\u24C8\\", Oscr: \\"\\\\u{1D4AA}\\", oscr: \\"\\\\u2134\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", osol: \\"\\\\u2298\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", otimesas: \\"\\\\u2A36\\", Otimes: \\"\\\\u2A37\\", otimes: \\"\\\\u2297\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", ovbar: \\"\\\\u233D\\", OverBar: \\"\\\\u203E\\", OverBrace: \\"\\\\u23DE\\", OverBracket: \\"\\\\u23B4\\", OverParenthesis: \\"\\\\u23DC\\", para: \\"\\\\xB6\\", parallel: \\"\\\\u2225\\", par: \\"\\\\u2225\\", parsim: \\"\\\\u2AF3\\", parsl: \\"\\\\u2AFD\\", part: \\"\\\\u2202\\", PartialD: \\"\\\\u2202\\", Pcy: \\"\\\\u041F\\", pcy: \\"\\\\u043F\\", percnt: \\"%\\", period: \\".\\", permil: \\"\\\\u2030\\", perp: \\"\\\\u22A5\\", pertenk: \\"\\\\u2031\\", Pfr: \\"\\\\u{1D513}\\", pfr: \\"\\\\u{1D52D}\\", Phi: \\"\\\\u03A6\\", phi: \\"\\\\u03C6\\", phiv: \\"\\\\u03D5\\", phmmat: \\"\\\\u2133\\", phone: \\"\\\\u260E\\", Pi: \\"\\\\u03A0\\", pi: \\"\\\\u03C0\\", pitchfork: \\"\\\\u22D4\\", piv: \\"\\\\u03D6\\", planck: \\"\\\\u210F\\", planckh: \\"\\\\u210E\\", plankv: \\"\\\\u210F\\", plusacir: \\"\\\\u2A23\\", plusb: \\"\\\\u229E\\", pluscir: \\"\\\\u2A22\\", plus: \\"+\\", plusdo: \\"\\\\u2214\\", plusdu: \\"\\\\u2A25\\", pluse: \\"\\\\u2A72\\", PlusMinus: \\"\\\\xB1\\", plusmn: \\"\\\\xB1\\", plussim: \\"\\\\u2A26\\", plustwo: \\"\\\\u2A27\\", pm: \\"\\\\xB1\\", Poincareplane: \\"\\\\u210C\\", pointint: \\"\\\\u2A15\\", popf: \\"\\\\u{1D561}\\", Popf: \\"\\\\u2119\\", pound: \\"\\\\xA3\\", prap: \\"\\\\u2AB7\\", Pr: \\"\\\\u2ABB\\", pr: \\"\\\\u227A\\", prcue: \\"\\\\u227C\\", precapprox: \\"\\\\u2AB7\\", prec: \\"\\\\u227A\\", preccurlyeq: \\"\\\\u227C\\", Precedes: \\"\\\\u227A\\", PrecedesEqual: \\"\\\\u2AAF\\", PrecedesSlantEqual: \\"\\\\u227C\\", PrecedesTilde: \\"\\\\u227E\\", preceq: \\"\\\\u2AAF\\", precnapprox: \\"\\\\u2AB9\\", precneqq: \\"\\\\u2AB5\\", precnsim: \\"\\\\u22E8\\", pre: \\"\\\\u2AAF\\", prE: \\"\\\\u2AB3\\", precsim: \\"\\\\u227E\\", prime: \\"\\\\u2032\\", Prime: \\"\\\\u2033\\", primes: \\"\\\\u2119\\", prnap: \\"\\\\u2AB9\\", prnE: \\"\\\\u2AB5\\", prnsim: \\"\\\\u22E8\\", prod: \\"\\\\u220F\\", Product: \\"\\\\u220F\\", profalar: \\"\\\\u232E\\", profline: \\"\\\\u2312\\", profsurf: \\"\\\\u2313\\", prop: \\"\\\\u221D\\", Proportional: \\"\\\\u221D\\", Proportion: \\"\\\\u2237\\", propto: \\"\\\\u221D\\", prsim: \\"\\\\u227E\\", prurel: \\"\\\\u22B0\\", Pscr: \\"\\\\u{1D4AB}\\", pscr: \\"\\\\u{1D4C5}\\", Psi: \\"\\\\u03A8\\", psi: \\"\\\\u03C8\\", puncsp: \\"\\\\u2008\\", Qfr: \\"\\\\u{1D514}\\", qfr: \\"\\\\u{1D52E}\\", qint: \\"\\\\u2A0C\\", qopf: \\"\\\\u{1D562}\\", Qopf: \\"\\\\u211A\\", qprime: \\"\\\\u2057\\", Qscr: \\"\\\\u{1D4AC}\\", qscr: \\"\\\\u{1D4C6}\\", quaternions: \\"\\\\u210D\\", quatint: \\"\\\\u2A16\\", quest: \\"?\\", questeq: \\"\\\\u225F\\", quot: '\\"', QUOT: '\\"', rAarr: \\"\\\\u21DB\\", race: \\"\\\\u223D\\\\u0331\\", Racute: \\"\\\\u0154\\", racute: \\"\\\\u0155\\", radic: \\"\\\\u221A\\", raemptyv: \\"\\\\u29B3\\", rang: \\"\\\\u27E9\\", Rang: \\"\\\\u27EB\\", rangd: \\"\\\\u2992\\", range: \\"\\\\u29A5\\", rangle: \\"\\\\u27E9\\", raquo: \\"\\\\xBB\\", rarrap: \\"\\\\u2975\\", rarrb: \\"\\\\u21E5\\", rarrbfs: \\"\\\\u2920\\", rarrc: \\"\\\\u2933\\", rarr: \\"\\\\u2192\\", Rarr: \\"\\\\u21A0\\", rArr: \\"\\\\u21D2\\", rarrfs: \\"\\\\u291E\\", rarrhk: \\"\\\\u21AA\\", rarrlp: \\"\\\\u21AC\\", rarrpl: \\"\\\\u2945\\", rarrsim: \\"\\\\u2974\\", Rarrtl: \\"\\\\u2916\\", rarrtl: \\"\\\\u21A3\\", rarrw: \\"\\\\u219D\\", ratail: \\"\\\\u291A\\", rAtail: \\"\\\\u291C\\", ratio: \\"\\\\u2236\\", rationals: \\"\\\\u211A\\", rbarr: \\"\\\\u290D\\", rBarr: \\"\\\\u290F\\", RBarr: \\"\\\\u2910\\", rbbrk: \\"\\\\u2773\\", rbrace: \\"}\\", rbrack: \\"]\\", rbrke: \\"\\\\u298C\\", rbrksld: \\"\\\\u298E\\", rbrkslu: \\"\\\\u2990\\", Rcaron: \\"\\\\u0158\\", rcaron: \\"\\\\u0159\\", Rcedil: \\"\\\\u0156\\", rcedil: \\"\\\\u0157\\", rceil: \\"\\\\u2309\\", rcub: \\"}\\", Rcy: \\"\\\\u0420\\", rcy: \\"\\\\u0440\\", rdca: \\"\\\\u2937\\", rdldhar: \\"\\\\u2969\\", rdquo: \\"\\\\u201D\\", rdquor: \\"\\\\u201D\\", rdsh: \\"\\\\u21B3\\", real: \\"\\\\u211C\\", realine: \\"\\\\u211B\\", realpart: \\"\\\\u211C\\", reals: \\"\\\\u211D\\", Re: \\"\\\\u211C\\", rect: \\"\\\\u25AD\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", ReverseElement: \\"\\\\u220B\\", ReverseEquilibrium: \\"\\\\u21CB\\", ReverseUpEquilibrium: \\"\\\\u296F\\", rfisht: \\"\\\\u297D\\", rfloor: \\"\\\\u230B\\", rfr: \\"\\\\u{1D52F}\\", Rfr: \\"\\\\u211C\\", rHar: \\"\\\\u2964\\", rhard: \\"\\\\u21C1\\", rharu: \\"\\\\u21C0\\", rharul: \\"\\\\u296C\\", Rho: \\"\\\\u03A1\\", rho: \\"\\\\u03C1\\", rhov: \\"\\\\u03F1\\", RightAngleBracket: \\"\\\\u27E9\\", RightArrowBar: \\"\\\\u21E5\\", rightarrow: \\"\\\\u2192\\", RightArrow: \\"\\\\u2192\\", Rightarrow: \\"\\\\u21D2\\", RightArrowLeftArrow: \\"\\\\u21C4\\", rightarrowtail: \\"\\\\u21A3\\", RightCeiling: \\"\\\\u2309\\", RightDoubleBracket: \\"\\\\u27E7\\", RightDownTeeVector: \\"\\\\u295D\\", RightDownVectorBar: \\"\\\\u2955\\", RightDownVector: \\"\\\\u21C2\\", RightFloor: \\"\\\\u230B\\", rightharpoondown: \\"\\\\u21C1\\", rightharpoonup: \\"\\\\u21C0\\", rightleftarrows: \\"\\\\u21C4\\", rightleftharpoons: \\"\\\\u21CC\\", rightrightarrows: \\"\\\\u21C9\\", rightsquigarrow: \\"\\\\u219D\\", RightTeeArrow: \\"\\\\u21A6\\", RightTee: \\"\\\\u22A2\\", RightTeeVector: \\"\\\\u295B\\", rightthreetimes: \\"\\\\u22CC\\", RightTriangleBar: \\"\\\\u29D0\\", RightTriangle: \\"\\\\u22B3\\", RightTriangleEqual: \\"\\\\u22B5\\", RightUpDownVector: \\"\\\\u294F\\", RightUpTeeVector: \\"\\\\u295C\\", RightUpVectorBar: \\"\\\\u2954\\", RightUpVector: \\"\\\\u21BE\\", RightVectorBar: \\"\\\\u2953\\", RightVector: \\"\\\\u21C0\\", ring: \\"\\\\u02DA\\", risingdotseq: \\"\\\\u2253\\", rlarr: \\"\\\\u21C4\\", rlhar: \\"\\\\u21CC\\", rlm: \\"\\\\u200F\\", rmoustache: \\"\\\\u23B1\\", rmoust: \\"\\\\u23B1\\", rnmid: \\"\\\\u2AEE\\", roang: \\"\\\\u27ED\\", roarr: \\"\\\\u21FE\\", robrk: \\"\\\\u27E7\\", ropar: \\"\\\\u2986\\", ropf: \\"\\\\u{1D563}\\", Ropf: \\"\\\\u211D\\", roplus: \\"\\\\u2A2E\\", rotimes: \\"\\\\u2A35\\", RoundImplies: \\"\\\\u2970\\", rpar: \\")\\", rpargt: \\"\\\\u2994\\", rppolint: \\"\\\\u2A12\\", rrarr: \\"\\\\u21C9\\", Rrightarrow: \\"\\\\u21DB\\", rsaquo: \\"\\\\u203A\\", rscr: \\"\\\\u{1D4C7}\\", Rscr: \\"\\\\u211B\\", rsh: \\"\\\\u21B1\\", Rsh: \\"\\\\u21B1\\", rsqb: \\"]\\", rsquo: \\"\\\\u2019\\", rsquor: \\"\\\\u2019\\", rthree: \\"\\\\u22CC\\", rtimes: \\"\\\\u22CA\\", rtri: \\"\\\\u25B9\\", rtrie: \\"\\\\u22B5\\", rtrif: \\"\\\\u25B8\\", rtriltri: \\"\\\\u29CE\\", RuleDelayed: \\"\\\\u29F4\\", ruluhar: \\"\\\\u2968\\", rx: \\"\\\\u211E\\", Sacute: \\"\\\\u015A\\", sacute: \\"\\\\u015B\\", sbquo: \\"\\\\u201A\\", scap: \\"\\\\u2AB8\\", Scaron: \\"\\\\u0160\\", scaron: \\"\\\\u0161\\", Sc: \\"\\\\u2ABC\\", sc: \\"\\\\u227B\\", sccue: \\"\\\\u227D\\", sce: \\"\\\\u2AB0\\", scE: \\"\\\\u2AB4\\", Scedil: \\"\\\\u015E\\", scedil: \\"\\\\u015F\\", Scirc: \\"\\\\u015C\\", scirc: \\"\\\\u015D\\", scnap: \\"\\\\u2ABA\\", scnE: \\"\\\\u2AB6\\", scnsim: \\"\\\\u22E9\\", scpolint: \\"\\\\u2A13\\", scsim: \\"\\\\u227F\\", Scy: \\"\\\\u0421\\", scy: \\"\\\\u0441\\", sdotb: \\"\\\\u22A1\\", sdot: \\"\\\\u22C5\\", sdote: \\"\\\\u2A66\\", searhk: \\"\\\\u2925\\", searr: \\"\\\\u2198\\", seArr: \\"\\\\u21D8\\", searrow: \\"\\\\u2198\\", sect: \\"\\\\xA7\\", semi: \\";\\", seswar: \\"\\\\u2929\\", setminus: \\"\\\\u2216\\", setmn: \\"\\\\u2216\\", sext: \\"\\\\u2736\\", Sfr: \\"\\\\u{1D516}\\", sfr: \\"\\\\u{1D530}\\", sfrown: \\"\\\\u2322\\", sharp: \\"\\\\u266F\\", SHCHcy: \\"\\\\u0429\\", shchcy: \\"\\\\u0449\\", SHcy: \\"\\\\u0428\\", shcy: \\"\\\\u0448\\", ShortDownArrow: \\"\\\\u2193\\", ShortLeftArrow: \\"\\\\u2190\\", shortmid: \\"\\\\u2223\\", shortparallel: \\"\\\\u2225\\", ShortRightArrow: \\"\\\\u2192\\", ShortUpArrow: \\"\\\\u2191\\", shy: \\"\\\\xAD\\", Sigma: \\"\\\\u03A3\\", sigma: \\"\\\\u03C3\\", sigmaf: \\"\\\\u03C2\\", sigmav: \\"\\\\u03C2\\", sim: \\"\\\\u223C\\", simdot: \\"\\\\u2A6A\\", sime: \\"\\\\u2243\\", simeq: \\"\\\\u2243\\", simg: \\"\\\\u2A9E\\", simgE: \\"\\\\u2AA0\\", siml: \\"\\\\u2A9D\\", simlE: \\"\\\\u2A9F\\", simne: \\"\\\\u2246\\", simplus: \\"\\\\u2A24\\", simrarr: \\"\\\\u2972\\", slarr: \\"\\\\u2190\\", SmallCircle: \\"\\\\u2218\\", smallsetminus: \\"\\\\u2216\\", smashp: \\"\\\\u2A33\\", smeparsl: \\"\\\\u29E4\\", smid: \\"\\\\u2223\\", smile: \\"\\\\u2323\\", smt: \\"\\\\u2AAA\\", smte: \\"\\\\u2AAC\\", smtes: \\"\\\\u2AAC\\\\uFE00\\", SOFTcy: \\"\\\\u042C\\", softcy: \\"\\\\u044C\\", solbar: \\"\\\\u233F\\", solb: \\"\\\\u29C4\\", sol: \\"/\\", Sopf: \\"\\\\u{1D54A}\\", sopf: \\"\\\\u{1D564}\\", spades: \\"\\\\u2660\\", spadesuit: \\"\\\\u2660\\", spar: \\"\\\\u2225\\", sqcap: \\"\\\\u2293\\", sqcaps: \\"\\\\u2293\\\\uFE00\\", sqcup: \\"\\\\u2294\\", sqcups: \\"\\\\u2294\\\\uFE00\\", Sqrt: \\"\\\\u221A\\", sqsub: \\"\\\\u228F\\", sqsube: \\"\\\\u2291\\", sqsubset: \\"\\\\u228F\\", sqsubseteq: \\"\\\\u2291\\", sqsup: \\"\\\\u2290\\", sqsupe: \\"\\\\u2292\\", sqsupset: \\"\\\\u2290\\", sqsupseteq: \\"\\\\u2292\\", square: \\"\\\\u25A1\\", Square: \\"\\\\u25A1\\", SquareIntersection: \\"\\\\u2293\\", SquareSubset: \\"\\\\u228F\\", SquareSubsetEqual: \\"\\\\u2291\\", SquareSuperset: \\"\\\\u2290\\", SquareSupersetEqual: \\"\\\\u2292\\", SquareUnion: \\"\\\\u2294\\", squarf: \\"\\\\u25AA\\", squ: \\"\\\\u25A1\\", squf: \\"\\\\u25AA\\", srarr: \\"\\\\u2192\\", Sscr: \\"\\\\u{1D4AE}\\", sscr: \\"\\\\u{1D4C8}\\", ssetmn: \\"\\\\u2216\\", ssmile: \\"\\\\u2323\\", sstarf: \\"\\\\u22C6\\", Star: \\"\\\\u22C6\\", star: \\"\\\\u2606\\", starf: \\"\\\\u2605\\", straightepsilon: \\"\\\\u03F5\\", straightphi: \\"\\\\u03D5\\", strns: \\"\\\\xAF\\", sub: \\"\\\\u2282\\", Sub: \\"\\\\u22D0\\", subdot: \\"\\\\u2ABD\\", subE: \\"\\\\u2AC5\\", sube: \\"\\\\u2286\\", subedot: \\"\\\\u2AC3\\", submult: \\"\\\\u2AC1\\", subnE: \\"\\\\u2ACB\\", subne: \\"\\\\u228A\\", subplus: \\"\\\\u2ABF\\", subrarr: \\"\\\\u2979\\", subset: \\"\\\\u2282\\", Subset: \\"\\\\u22D0\\", subseteq: \\"\\\\u2286\\", subseteqq: \\"\\\\u2AC5\\", SubsetEqual: \\"\\\\u2286\\", subsetneq: \\"\\\\u228A\\", subsetneqq: \\"\\\\u2ACB\\", subsim: \\"\\\\u2AC7\\", subsub: \\"\\\\u2AD5\\", subsup: \\"\\\\u2AD3\\", succapprox: \\"\\\\u2AB8\\", succ: \\"\\\\u227B\\", succcurlyeq: \\"\\\\u227D\\", Succeeds: \\"\\\\u227B\\", SucceedsEqual: \\"\\\\u2AB0\\", SucceedsSlantEqual: \\"\\\\u227D\\", SucceedsTilde: \\"\\\\u227F\\", succeq: \\"\\\\u2AB0\\", succnapprox: \\"\\\\u2ABA\\", succneqq: \\"\\\\u2AB6\\", succnsim: \\"\\\\u22E9\\", succsim: \\"\\\\u227F\\", SuchThat: \\"\\\\u220B\\", sum: \\"\\\\u2211\\", Sum: \\"\\\\u2211\\", sung: \\"\\\\u266A\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", sup: \\"\\\\u2283\\", Sup: \\"\\\\u22D1\\", supdot: \\"\\\\u2ABE\\", supdsub: \\"\\\\u2AD8\\", supE: \\"\\\\u2AC6\\", supe: \\"\\\\u2287\\", supedot: \\"\\\\u2AC4\\", Superset: \\"\\\\u2283\\", SupersetEqual: \\"\\\\u2287\\", suphsol: \\"\\\\u27C9\\", suphsub: \\"\\\\u2AD7\\", suplarr: \\"\\\\u297B\\", supmult: \\"\\\\u2AC2\\", supnE: \\"\\\\u2ACC\\", supne: \\"\\\\u228B\\", supplus: \\"\\\\u2AC0\\", supset: \\"\\\\u2283\\", Supset: \\"\\\\u22D1\\", supseteq: \\"\\\\u2287\\", supseteqq: \\"\\\\u2AC6\\", supsetneq: \\"\\\\u228B\\", supsetneqq: \\"\\\\u2ACC\\", supsim: \\"\\\\u2AC8\\", supsub: \\"\\\\u2AD4\\", supsup: \\"\\\\u2AD6\\", swarhk: \\"\\\\u2926\\", swarr: \\"\\\\u2199\\", swArr: \\"\\\\u21D9\\", swarrow: \\"\\\\u2199\\", swnwar: \\"\\\\u292A\\", szlig: \\"\\\\xDF\\", Tab: \\" \\", target: \\"\\\\u2316\\", Tau: \\"\\\\u03A4\\", tau: \\"\\\\u03C4\\", tbrk: \\"\\\\u23B4\\", Tcaron: \\"\\\\u0164\\", tcaron: \\"\\\\u0165\\", Tcedil: \\"\\\\u0162\\", tcedil: \\"\\\\u0163\\", Tcy: \\"\\\\u0422\\", tcy: \\"\\\\u0442\\", tdot: \\"\\\\u20DB\\", telrec: \\"\\\\u2315\\", Tfr: \\"\\\\u{1D517}\\", tfr: \\"\\\\u{1D531}\\", there4: \\"\\\\u2234\\", therefore: \\"\\\\u2234\\", Therefore: \\"\\\\u2234\\", Theta: \\"\\\\u0398\\", theta: \\"\\\\u03B8\\", thetasym: \\"\\\\u03D1\\", thetav: \\"\\\\u03D1\\", thickapprox: \\"\\\\u2248\\", thicksim: \\"\\\\u223C\\", ThickSpace: \\"\\\\u205F\\\\u200A\\", ThinSpace: \\"\\\\u2009\\", thinsp: \\"\\\\u2009\\", thkap: \\"\\\\u2248\\", thksim: \\"\\\\u223C\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", tilde: \\"\\\\u02DC\\", Tilde: \\"\\\\u223C\\", TildeEqual: \\"\\\\u2243\\", TildeFullEqual: \\"\\\\u2245\\", TildeTilde: \\"\\\\u2248\\", timesbar: \\"\\\\u2A31\\", timesb: \\"\\\\u22A0\\", times: \\"\\\\xD7\\", timesd: \\"\\\\u2A30\\", tint: \\"\\\\u222D\\", toea: \\"\\\\u2928\\", topbot: \\"\\\\u2336\\", topcir: \\"\\\\u2AF1\\", top: \\"\\\\u22A4\\", Topf: \\"\\\\u{1D54B}\\", topf: \\"\\\\u{1D565}\\", topfork: \\"\\\\u2ADA\\", tosa: \\"\\\\u2929\\", tprime: \\"\\\\u2034\\", trade: \\"\\\\u2122\\", TRADE: \\"\\\\u2122\\", triangle: \\"\\\\u25B5\\", triangledown: \\"\\\\u25BF\\", triangleleft: \\"\\\\u25C3\\", trianglelefteq: \\"\\\\u22B4\\", triangleq: \\"\\\\u225C\\", triangleright: \\"\\\\u25B9\\", trianglerighteq: \\"\\\\u22B5\\", tridot: \\"\\\\u25EC\\", trie: \\"\\\\u225C\\", triminus: \\"\\\\u2A3A\\", TripleDot: \\"\\\\u20DB\\", triplus: \\"\\\\u2A39\\", trisb: \\"\\\\u29CD\\", tritime: \\"\\\\u2A3B\\", trpezium: \\"\\\\u23E2\\", Tscr: \\"\\\\u{1D4AF}\\", tscr: \\"\\\\u{1D4C9}\\", TScy: \\"\\\\u0426\\", tscy: \\"\\\\u0446\\", TSHcy: \\"\\\\u040B\\", tshcy: \\"\\\\u045B\\", Tstrok: \\"\\\\u0166\\", tstrok: \\"\\\\u0167\\", twixt: \\"\\\\u226C\\", twoheadleftarrow: \\"\\\\u219E\\", twoheadrightarrow: \\"\\\\u21A0\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", uarr: \\"\\\\u2191\\", Uarr: \\"\\\\u219F\\", uArr: \\"\\\\u21D1\\", Uarrocir: \\"\\\\u2949\\", Ubrcy: \\"\\\\u040E\\", ubrcy: \\"\\\\u045E\\", Ubreve: \\"\\\\u016C\\", ubreve: \\"\\\\u016D\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ucy: \\"\\\\u0423\\", ucy: \\"\\\\u0443\\", udarr: \\"\\\\u21C5\\", Udblac: \\"\\\\u0170\\", udblac: \\"\\\\u0171\\", udhar: \\"\\\\u296E\\", ufisht: \\"\\\\u297E\\", Ufr: \\"\\\\u{1D518}\\", ufr: \\"\\\\u{1D532}\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uHar: \\"\\\\u2963\\", uharl: \\"\\\\u21BF\\", uharr: \\"\\\\u21BE\\", uhblk: \\"\\\\u2580\\", ulcorn: \\"\\\\u231C\\", ulcorner: \\"\\\\u231C\\", ulcrop: \\"\\\\u230F\\", ultri: \\"\\\\u25F8\\", Umacr: \\"\\\\u016A\\", umacr: \\"\\\\u016B\\", uml: \\"\\\\xA8\\", UnderBar: \\"_\\", UnderBrace: \\"\\\\u23DF\\", UnderBracket: \\"\\\\u23B5\\", UnderParenthesis: \\"\\\\u23DD\\", Union: \\"\\\\u22C3\\", UnionPlus: \\"\\\\u228E\\", Uogon: \\"\\\\u0172\\", uogon: \\"\\\\u0173\\", Uopf: \\"\\\\u{1D54C}\\", uopf: \\"\\\\u{1D566}\\", UpArrowBar: \\"\\\\u2912\\", uparrow: \\"\\\\u2191\\", UpArrow: \\"\\\\u2191\\", Uparrow: \\"\\\\u21D1\\", UpArrowDownArrow: \\"\\\\u21C5\\", updownarrow: \\"\\\\u2195\\", UpDownArrow: \\"\\\\u2195\\", Updownarrow: \\"\\\\u21D5\\", UpEquilibrium: \\"\\\\u296E\\", upharpoonleft: \\"\\\\u21BF\\", upharpoonright: \\"\\\\u21BE\\", uplus: \\"\\\\u228E\\", UpperLeftArrow: \\"\\\\u2196\\", UpperRightArrow: \\"\\\\u2197\\", upsi: \\"\\\\u03C5\\", Upsi: \\"\\\\u03D2\\", upsih: \\"\\\\u03D2\\", Upsilon: \\"\\\\u03A5\\", upsilon: \\"\\\\u03C5\\", UpTeeArrow: \\"\\\\u21A5\\", UpTee: \\"\\\\u22A5\\", upuparrows: \\"\\\\u21C8\\", urcorn: \\"\\\\u231D\\", urcorner: \\"\\\\u231D\\", urcrop: \\"\\\\u230E\\", Uring: \\"\\\\u016E\\", uring: \\"\\\\u016F\\", urtri: \\"\\\\u25F9\\", Uscr: \\"\\\\u{1D4B0}\\", uscr: \\"\\\\u{1D4CA}\\", utdot: \\"\\\\u22F0\\", Utilde: \\"\\\\u0168\\", utilde: \\"\\\\u0169\\", utri: \\"\\\\u25B5\\", utrif: \\"\\\\u25B4\\", uuarr: \\"\\\\u21C8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", uwangle: \\"\\\\u29A7\\", vangrt: \\"\\\\u299C\\", varepsilon: \\"\\\\u03F5\\", varkappa: \\"\\\\u03F0\\", varnothing: \\"\\\\u2205\\", varphi: \\"\\\\u03D5\\", varpi: \\"\\\\u03D6\\", varpropto: \\"\\\\u221D\\", varr: \\"\\\\u2195\\", vArr: \\"\\\\u21D5\\", varrho: \\"\\\\u03F1\\", varsigma: \\"\\\\u03C2\\", varsubsetneq: \\"\\\\u228A\\\\uFE00\\", varsubsetneqq: \\"\\\\u2ACB\\\\uFE00\\", varsupsetneq: \\"\\\\u228B\\\\uFE00\\", varsupsetneqq: \\"\\\\u2ACC\\\\uFE00\\", vartheta: \\"\\\\u03D1\\", vartriangleleft: \\"\\\\u22B2\\", vartriangleright: \\"\\\\u22B3\\", vBar: \\"\\\\u2AE8\\", Vbar: \\"\\\\u2AEB\\", vBarv: \\"\\\\u2AE9\\", Vcy: \\"\\\\u0412\\", vcy: \\"\\\\u0432\\", vdash: \\"\\\\u22A2\\", vDash: \\"\\\\u22A8\\", Vdash: \\"\\\\u22A9\\", VDash: \\"\\\\u22AB\\", Vdashl: \\"\\\\u2AE6\\", veebar: \\"\\\\u22BB\\", vee: \\"\\\\u2228\\", Vee: \\"\\\\u22C1\\", veeeq: \\"\\\\u225A\\", vellip: \\"\\\\u22EE\\", verbar: \\"|\\", Verbar: \\"\\\\u2016\\", vert: \\"|\\", Vert: \\"\\\\u2016\\", VerticalBar: \\"\\\\u2223\\", VerticalLine: \\"|\\", VerticalSeparator: \\"\\\\u2758\\", VerticalTilde: \\"\\\\u2240\\", VeryThinSpace: \\"\\\\u200A\\", Vfr: \\"\\\\u{1D519}\\", vfr: \\"\\\\u{1D533}\\", vltri: \\"\\\\u22B2\\", vnsub: \\"\\\\u2282\\\\u20D2\\", vnsup: \\"\\\\u2283\\\\u20D2\\", Vopf: \\"\\\\u{1D54D}\\", vopf: \\"\\\\u{1D567}\\", vprop: \\"\\\\u221D\\", vrtri: \\"\\\\u22B3\\", Vscr: \\"\\\\u{1D4B1}\\", vscr: \\"\\\\u{1D4CB}\\", vsubnE: \\"\\\\u2ACB\\\\uFE00\\", vsubne: \\"\\\\u228A\\\\uFE00\\", vsupnE: \\"\\\\u2ACC\\\\uFE00\\", vsupne: \\"\\\\u228B\\\\uFE00\\", Vvdash: \\"\\\\u22AA\\", vzigzag: \\"\\\\u299A\\", Wcirc: \\"\\\\u0174\\", wcirc: \\"\\\\u0175\\", wedbar: \\"\\\\u2A5F\\", wedge: \\"\\\\u2227\\", Wedge: \\"\\\\u22C0\\", wedgeq: \\"\\\\u2259\\", weierp: \\"\\\\u2118\\", Wfr: \\"\\\\u{1D51A}\\", wfr: \\"\\\\u{1D534}\\", Wopf: \\"\\\\u{1D54E}\\", wopf: \\"\\\\u{1D568}\\", wp: \\"\\\\u2118\\", wr: \\"\\\\u2240\\", wreath: \\"\\\\u2240\\", Wscr: \\"\\\\u{1D4B2}\\", wscr: \\"\\\\u{1D4CC}\\", xcap: \\"\\\\u22C2\\", xcirc: \\"\\\\u25EF\\", xcup: \\"\\\\u22C3\\", xdtri: \\"\\\\u25BD\\", Xfr: \\"\\\\u{1D51B}\\", xfr: \\"\\\\u{1D535}\\", xharr: \\"\\\\u27F7\\", xhArr: \\"\\\\u27FA\\", Xi: \\"\\\\u039E\\", xi: \\"\\\\u03BE\\", xlarr: \\"\\\\u27F5\\", xlArr: \\"\\\\u27F8\\", xmap: \\"\\\\u27FC\\", xnis: \\"\\\\u22FB\\", xodot: \\"\\\\u2A00\\", Xopf: \\"\\\\u{1D54F}\\", xopf: \\"\\\\u{1D569}\\", xoplus: \\"\\\\u2A01\\", xotime: \\"\\\\u2A02\\", xrarr: \\"\\\\u27F6\\", xrArr: \\"\\\\u27F9\\", Xscr: \\"\\\\u{1D4B3}\\", xscr: \\"\\\\u{1D4CD}\\", xsqcup: \\"\\\\u2A06\\", xuplus: \\"\\\\u2A04\\", xutri: \\"\\\\u25B3\\", xvee: \\"\\\\u22C1\\", xwedge: \\"\\\\u22C0\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", YAcy: \\"\\\\u042F\\", yacy: \\"\\\\u044F\\", Ycirc: \\"\\\\u0176\\", ycirc: \\"\\\\u0177\\", Ycy: \\"\\\\u042B\\", ycy: \\"\\\\u044B\\", yen: \\"\\\\xA5\\", Yfr: \\"\\\\u{1D51C}\\", yfr: \\"\\\\u{1D536}\\", YIcy: \\"\\\\u0407\\", yicy: \\"\\\\u0457\\", Yopf: \\"\\\\u{1D550}\\", yopf: \\"\\\\u{1D56A}\\", Yscr: \\"\\\\u{1D4B4}\\", yscr: \\"\\\\u{1D4CE}\\", YUcy: \\"\\\\u042E\\", yucy: \\"\\\\u044E\\", yuml: \\"\\\\xFF\\", Yuml: \\"\\\\u0178\\", Zacute: \\"\\\\u0179\\", zacute: \\"\\\\u017A\\", Zcaron: \\"\\\\u017D\\", zcaron: \\"\\\\u017E\\", Zcy: \\"\\\\u0417\\", zcy: \\"\\\\u0437\\", Zdot: \\"\\\\u017B\\", zdot: \\"\\\\u017C\\", zeetrf: \\"\\\\u2128\\", ZeroWidthSpace: \\"\\\\u200B\\", Zeta: \\"\\\\u0396\\", zeta: \\"\\\\u03B6\\", zfr: \\"\\\\u{1D537}\\", Zfr: \\"\\\\u2128\\", ZHcy: \\"\\\\u0416\\", zhcy: \\"\\\\u0436\\", zigrarr: \\"\\\\u21DD\\", zopf: \\"\\\\u{1D56B}\\", Zopf: \\"\\\\u2124\\", Zscr: \\"\\\\u{1D4B5}\\", zscr: \\"\\\\u{1D4CF}\\", zwj: \\"\\\\u200D\\", zwnj: \\"\\\\u200C\\" }; - } -}); - -// node_modules/entities/lib/maps/legacy.json -var require_legacy = __commonJS({ - \\"node_modules/entities/lib/maps/legacy.json\\"(exports2, module2) { - module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", amp: \\"&\\", AMP: \\"&\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", brvbar: \\"\\\\xA6\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", cedil: \\"\\\\xB8\\", cent: \\"\\\\xA2\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", curren: \\"\\\\xA4\\", deg: \\"\\\\xB0\\", divide: \\"\\\\xF7\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", frac12: \\"\\\\xBD\\", frac14: \\"\\\\xBC\\", frac34: \\"\\\\xBE\\", gt: \\">\\", GT: \\">\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", iexcl: \\"\\\\xA1\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", iquest: \\"\\\\xBF\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", laquo: \\"\\\\xAB\\", lt: \\"<\\", LT: \\"<\\", macr: \\"\\\\xAF\\", micro: \\"\\\\xB5\\", middot: \\"\\\\xB7\\", nbsp: \\"\\\\xA0\\", not: \\"\\\\xAC\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", para: \\"\\\\xB6\\", plusmn: \\"\\\\xB1\\", pound: \\"\\\\xA3\\", quot: '\\"', QUOT: '\\"', raquo: \\"\\\\xBB\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", sect: \\"\\\\xA7\\", shy: \\"\\\\xAD\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", szlig: \\"\\\\xDF\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", times: \\"\\\\xD7\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uml: \\"\\\\xA8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", yen: \\"\\\\xA5\\", yuml: \\"\\\\xFF\\" }; - } -}); - -// node_modules/entities/lib/maps/xml.json -var require_xml = __commonJS({ - \\"node_modules/entities/lib/maps/xml.json\\"(exports2, module2) { - module2.exports = { amp: \\"&\\", apos: \\"'\\", gt: \\">\\", lt: \\"<\\", quot: '\\"' }; - } -}); - -// node_modules/entities/lib/maps/decode.json -var require_decode = __commonJS({ - \\"node_modules/entities/lib/maps/decode.json\\"(exports2, module2) { - module2.exports = { \\"0\\": 65533, \\"128\\": 8364, \\"130\\": 8218, \\"131\\": 402, \\"132\\": 8222, \\"133\\": 8230, \\"134\\": 8224, \\"135\\": 8225, \\"136\\": 710, \\"137\\": 8240, \\"138\\": 352, \\"139\\": 8249, \\"140\\": 338, \\"142\\": 381, \\"145\\": 8216, \\"146\\": 8217, \\"147\\": 8220, \\"148\\": 8221, \\"149\\": 8226, \\"150\\": 8211, \\"151\\": 8212, \\"152\\": 732, \\"153\\": 8482, \\"154\\": 353, \\"155\\": 8250, \\"156\\": 339, \\"158\\": 382, \\"159\\": 376 }; - } -}); - -// node_modules/entities/lib/decode_codepoint.js -var require_decode_codepoint = __commonJS({ - \\"node_modules/entities/lib/decode_codepoint.js\\"(exports2) { - \\"use strict\\"; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var decode_json_1 = __importDefault(require_decode()); - var fromCodePoint = String.fromCodePoint || function(codePoint) { - var output = \\"\\"; - if (codePoint > 65535) { - codePoint -= 65536; - output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296); - codePoint = 56320 | codePoint & 1023; - } - output += String.fromCharCode(codePoint); - return output; - }; - function decodeCodePoint(codePoint) { - if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) { - return \\"\\\\uFFFD\\"; - } - if (codePoint in decode_json_1.default) { - codePoint = decode_json_1.default[codePoint]; - } - return fromCodePoint(codePoint); - } - exports2.default = decodeCodePoint; - } -}); - -// node_modules/entities/lib/decode.js -var require_decode2 = __commonJS({ - \\"node_modules/entities/lib/decode.js\\"(exports2) { - \\"use strict\\"; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decodeHTML = exports2.decodeHTMLStrict = exports2.decodeXML = void 0; - var entities_json_1 = __importDefault(require_entities()); - var legacy_json_1 = __importDefault(require_legacy()); - var xml_json_1 = __importDefault(require_xml()); - var decode_codepoint_1 = __importDefault(require_decode_codepoint()); - var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\\\\da-fA-F]+|#\\\\d+);/g; - exports2.decodeXML = getStrictDecoder(xml_json_1.default); - exports2.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); - function getStrictDecoder(map) { - var replace = getReplacer(map); - return function(str) { - return String(str).replace(strictEntityRe, replace); - }; - } - var sorter = function(a, b) { - return a < b ? 1 : -1; - }; - exports2.decodeHTML = function() { - var legacy = Object.keys(legacy_json_1.default).sort(sorter); - var keys = Object.keys(entities_json_1.default).sort(sorter); - for (var i = 0, j = 0; i < keys.length; i++) { - if (legacy[j] === keys[i]) { - keys[i] += \\";?\\"; - j++; - } else { - keys[i] += \\";\\"; - } - } - var re = new RegExp(\\"&(?:\\" + keys.join(\\"|\\") + \\"|#[xX][\\\\\\\\da-fA-F]+;?|#\\\\\\\\d+;?)\\", \\"g\\"); - var replace = getReplacer(entities_json_1.default); - function replacer(str) { - if (str.substr(-1) !== \\";\\") - str += \\";\\"; - return replace(str); - } - return function(str) { - return String(str).replace(re, replacer); - }; - }(); - function getReplacer(map) { - return function replace(str) { - if (str.charAt(1) === \\"#\\") { - var secondChar = str.charAt(2); - if (secondChar === \\"X\\" || secondChar === \\"x\\") { - return decode_codepoint_1.default(parseInt(str.substr(3), 16)); - } - return decode_codepoint_1.default(parseInt(str.substr(2), 10)); - } - return map[str.slice(1, -1)] || str; - }; - } - } -}); - -// node_modules/entities/lib/encode.js -var require_encode = __commonJS({ - \\"node_modules/entities/lib/encode.js\\"(exports2) { - \\"use strict\\"; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = void 0; - var xml_json_1 = __importDefault(require_xml()); - var inverseXML = getInverseObj(xml_json_1.default); - var xmlReplacer = getInverseReplacer(inverseXML); - exports2.encodeXML = getASCIIEncoder(inverseXML); - var entities_json_1 = __importDefault(require_entities()); - var inverseHTML = getInverseObj(entities_json_1.default); - var htmlReplacer = getInverseReplacer(inverseHTML); - exports2.encodeHTML = getInverse(inverseHTML, htmlReplacer); - exports2.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); - function getInverseObj(obj) { - return Object.keys(obj).sort().reduce(function(inverse, name) { - inverse[obj[name]] = \\"&\\" + name + \\";\\"; - return inverse; - }, {}); - } - function getInverseReplacer(inverse) { - var single = []; - var multiple = []; - for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { - var k = _a[_i]; - if (k.length === 1) { - single.push(\\"\\\\\\\\\\" + k); - } else { - multiple.push(k); - } - } - single.sort(); - for (var start = 0; start < single.length - 1; start++) { - var end = start; - while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { - end += 1; - } - var count = 1 + end - start; - if (count < 3) - continue; - single.splice(start, count, single[start] + \\"-\\" + single[end]); - } - multiple.unshift(\\"[\\" + single.join(\\"\\") + \\"]\\"); - return new RegExp(multiple.join(\\"|\\"), \\"g\\"); - } - var reNonASCII = /(?:[\\\\x80-\\\\uD7FF\\\\uE000-\\\\uFFFF]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF])/g; - var getCodePoint = String.prototype.codePointAt != null ? function(str) { - return str.codePointAt(0); - } : function(c) { - return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; - }; - function singleCharReplacer(c) { - return \\"&#x\\" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + \\";\\"; - } - function getInverse(inverse, re) { - return function(data) { - return data.replace(re, function(name) { - return inverse[name]; - }).replace(reNonASCII, singleCharReplacer); - }; - } - var reEscapeChars = new RegExp(xmlReplacer.source + \\"|\\" + reNonASCII.source, \\"g\\"); - function escape(data) { - return data.replace(reEscapeChars, singleCharReplacer); - } - exports2.escape = escape; - function escapeUTF8(data) { - return data.replace(xmlReplacer, singleCharReplacer); - } - exports2.escapeUTF8 = escapeUTF8; - function getASCIIEncoder(obj) { - return function(data) { - return data.replace(reEscapeChars, function(c) { - return obj[c] || singleCharReplacer(c); - }); - }; - } - } -}); - -// node_modules/entities/lib/index.js -var require_lib = __commonJS({ - \\"node_modules/entities/lib/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decodeXMLStrict = exports2.decodeHTML5Strict = exports2.decodeHTML4Strict = exports2.decodeHTML5 = exports2.decodeHTML4 = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.decodeXML = exports2.encodeHTML5 = exports2.encodeHTML4 = exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = exports2.encode = exports2.decodeStrict = exports2.decode = void 0; - var decode_1 = require_decode2(); - var encode_1 = require_encode(); - function decode(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); - } - exports2.decode = decode; - function decodeStrict(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); - } - exports2.decodeStrict = decodeStrict; - function encode(data, level) { - return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); - } - exports2.encode = encode; - var encode_2 = require_encode(); - Object.defineProperty(exports2, \\"encodeXML\\", { enumerable: true, get: function() { - return encode_2.encodeXML; - } }); - Object.defineProperty(exports2, \\"encodeHTML\\", { enumerable: true, get: function() { - return encode_2.encodeHTML; - } }); - Object.defineProperty(exports2, \\"encodeNonAsciiHTML\\", { enumerable: true, get: function() { - return encode_2.encodeNonAsciiHTML; - } }); - Object.defineProperty(exports2, \\"escape\\", { enumerable: true, get: function() { - return encode_2.escape; - } }); - Object.defineProperty(exports2, \\"escapeUTF8\\", { enumerable: true, get: function() { - return encode_2.escapeUTF8; - } }); - Object.defineProperty(exports2, \\"encodeHTML4\\", { enumerable: true, get: function() { - return encode_2.encodeHTML; - } }); - Object.defineProperty(exports2, \\"encodeHTML5\\", { enumerable: true, get: function() { - return encode_2.encodeHTML; - } }); - var decode_2 = require_decode2(); - Object.defineProperty(exports2, \\"decodeXML\\", { enumerable: true, get: function() { - return decode_2.decodeXML; - } }); - Object.defineProperty(exports2, \\"decodeHTML\\", { enumerable: true, get: function() { - return decode_2.decodeHTML; - } }); - Object.defineProperty(exports2, \\"decodeHTMLStrict\\", { enumerable: true, get: function() { - return decode_2.decodeHTMLStrict; - } }); - Object.defineProperty(exports2, \\"decodeHTML4\\", { enumerable: true, get: function() { - return decode_2.decodeHTML; - } }); - Object.defineProperty(exports2, \\"decodeHTML5\\", { enumerable: true, get: function() { - return decode_2.decodeHTML; - } }); - Object.defineProperty(exports2, \\"decodeHTML4Strict\\", { enumerable: true, get: function() { - return decode_2.decodeHTMLStrict; - } }); - Object.defineProperty(exports2, \\"decodeHTML5Strict\\", { enumerable: true, get: function() { - return decode_2.decodeHTMLStrict; - } }); - Object.defineProperty(exports2, \\"decodeXMLStrict\\", { enumerable: true, get: function() { - return decode_2.decodeXML; - } }); - } -}); - -// node_modules/fast-xml-parser/src/util.js -var require_util = __commonJS({ - \\"node_modules/fast-xml-parser/src/util.js\\"(exports2) { - \\"use strict\\"; - var nameStartChar = \\":A-Za-z_\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\"; - var nameChar = nameStartChar + \\"\\\\\\\\-.\\\\\\\\d\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040\\"; - var nameRegexp = \\"[\\" + nameStartChar + \\"][\\" + nameChar + \\"]*\\"; - var regexName = new RegExp(\\"^\\" + nameRegexp + \\"$\\"); - var getAllMatches = function(string, regex) { - const matches = []; - let match = regex.exec(string); - while (match) { - const allmatches = []; - const len = match.length; - for (let index = 0; index < len; index++) { - allmatches.push(match[index]); - } - matches.push(allmatches); - match = regex.exec(string); - } - return matches; - }; - var isName = function(string) { - const match = regexName.exec(string); - return !(match === null || typeof match === \\"undefined\\"); - }; - exports2.isExist = function(v) { - return typeof v !== \\"undefined\\"; - }; - exports2.isEmptyObject = function(obj) { - return Object.keys(obj).length === 0; - }; - exports2.merge = function(target, a, arrayMode) { - if (a) { - const keys = Object.keys(a); - const len = keys.length; - for (let i = 0; i < len; i++) { - if (arrayMode === \\"strict\\") { - target[keys[i]] = [a[keys[i]]]; - } else { - target[keys[i]] = a[keys[i]]; - } - } - } - }; - exports2.getValue = function(v) { - if (exports2.isExist(v)) { - return v; - } else { - return \\"\\"; - } - }; - exports2.buildOptions = function(options, defaultOptions, props) { - var newOptions = {}; - if (!options) { - return defaultOptions; - } - for (let i = 0; i < props.length; i++) { - if (options[props[i]] !== void 0) { - newOptions[props[i]] = options[props[i]]; - } else { - newOptions[props[i]] = defaultOptions[props[i]]; - } - } - return newOptions; - }; - exports2.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) { - if (arrayMode === false) { - return false; - } else if (arrayMode instanceof RegExp) { - return arrayMode.test(tagName); - } else if (typeof arrayMode === \\"function\\") { - return !!arrayMode(tagName, parentTagName); - } - return arrayMode === \\"strict\\"; - }; - exports2.isName = isName; - exports2.getAllMatches = getAllMatches; - exports2.nameRegexp = nameRegexp; - } -}); - -// node_modules/fast-xml-parser/src/node2json.js -var require_node2json = __commonJS({ - \\"node_modules/fast-xml-parser/src/node2json.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var convertToJson = function(node, options, parentTagName) { - const jObj = {}; - if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { - return util.isExist(node.val) ? node.val : \\"\\"; - } - if (util.isExist(node.val) && !(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { - const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName); - jObj[options.textNodeName] = asArray ? [node.val] : node.val; - } - util.merge(jObj, node.attrsMap, options.arrayMode); - const keys = Object.keys(node.child); - for (let index = 0; index < keys.length; index++) { - const tagName = keys[index]; - if (node.child[tagName] && node.child[tagName].length > 1) { - jObj[tagName] = []; - for (let tag in node.child[tagName]) { - if (node.child[tagName].hasOwnProperty(tag)) { - jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); + else if (v1718(c)) { } + else if (v1719(v1722, c)) { + parser.state = 21; + parser.tagName = c; + } + else if (c === \\"/\\") { + parser.state = 32; + parser.tagName = \\"\\"; + } + else if (c === \\"?\\") { + parser.state = 18; + parser.procInstName = parser.procInstBody = \\"\\"; + } + else { + v1685(parser, \\"Unencoded <\\"); + if (parser.startTagPosition + 1 < parser.position) { + var pad = parser.position - parser.startTagPosition; + c = new v1723(pad).join(\\" \\") + c; + } + parser.textNode += \\"<\\" + c; + parser.state = 2; + } + continue; + case 5: + if ((parser.sgmlDecl + c).toUpperCase() === v1724) { + v1725(parser, \\"onopencdata\\"); + parser.state = 15; + parser.sgmlDecl = \\"\\"; + parser.cdata = \\"\\"; + } + else if (parser.sgmlDecl + c === \\"--\\") { + parser.state = 12; + parser.comment = \\"\\"; + parser.sgmlDecl = \\"\\"; + } + else if ((parser.sgmlDecl + c).toUpperCase() === v1728) { + parser.state = 7; + if (parser.doctype || parser.sawRoot) { + v1685(parser, \\"Inappropriately located doctype declaration\\"); + } + parser.doctype = \\"\\"; + parser.sgmlDecl = \\"\\"; + } + else if (c === \\">\\") { + v1729(parser, \\"onsgmldeclaration\\", parser.sgmlDecl); + parser.sgmlDecl = \\"\\"; + parser.state = 2; + } + else if (v1730(c)) { + parser.state = 6; + parser.sgmlDecl += c; + } + else { + parser.sgmlDecl += c; + } + continue; + case 6: + if (c === parser.q) { + parser.state = 5; + parser.q = \\"\\"; + } + parser.sgmlDecl += c; + continue; + case 7: + if (c === \\">\\") { + parser.state = 2; + v1725(parser, \\"ondoctype\\", parser.doctype); + parser.doctype = true; + } + else { + parser.doctype += c; + if (c === \\"[\\") { + parser.state = 9; + } + else if (v1733(c)) { + parser.state = 8; + parser.q = c; + } + } + continue; + case 8: + parser.doctype += c; + if (c === parser.q) { + parser.q = \\"\\"; + parser.state = 7; + } + continue; + case 9: + parser.doctype += c; + if (c === \\"]\\") { + parser.state = 7; + } + else if (v1733(c)) { + parser.state = 10; + parser.q = c; } - } - } else { - const result = convertToJson(node.child[tagName][0], options, tagName); - const asArray = options.arrayMode === true && typeof result === \\"object\\" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); - jObj[tagName] = asArray ? [result] : result; - } - } - return jObj; - }; - exports2.convertToJson = convertToJson; - } -}); - -// node_modules/fast-xml-parser/src/xmlNode.js -var require_xmlNode = __commonJS({ - \\"node_modules/fast-xml-parser/src/xmlNode.js\\"(exports2, module2) { - \\"use strict\\"; - module2.exports = function(tagname, parent, val) { - this.tagname = tagname; - this.parent = parent; - this.child = {}; - this.attrsMap = {}; - this.val = val; - this.addChild = function(child) { - if (Array.isArray(this.child[child.tagname])) { - this.child[child.tagname].push(child); - } else { - this.child[child.tagname] = [child]; - } - }; - }; - } -}); - -// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js -var require_xmlstr2xmlnode = __commonJS({ - \\"node_modules/fast-xml-parser/src/xmlstr2xmlnode.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var buildOptions = require_util().buildOptions; - var xmlNode = require_xmlNode(); - var regx = \\"<((!\\\\\\\\[CDATA\\\\\\\\[([\\\\\\\\s\\\\\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\\\\\/)(NAME)\\\\\\\\s*>))([^<]*)\\".replace(/NAME/g, util.nameRegexp); - if (!Number.parseInt && window.parseInt) { - Number.parseInt = window.parseInt; - } - if (!Number.parseFloat && window.parseFloat) { - Number.parseFloat = window.parseFloat; - } - var defaultOptions = { - attributeNamePrefix: \\"@_\\", - attrNodeName: false, - textNodeName: \\"#text\\", - ignoreAttributes: true, - ignoreNameSpace: false, - allowBooleanAttributes: false, - parseNodeValue: true, - parseAttributeValue: false, - arrayMode: false, - trimValues: true, - cdataTagName: false, - cdataPositionChar: \\"\\\\\\\\c\\", - tagValueProcessor: function(a, tagName) { - return a; - }, - attrValueProcessor: function(a, attrName) { - return a; - }, - stopNodes: [] - }; - exports2.defaultOptions = defaultOptions; - var props = [ - \\"attributeNamePrefix\\", - \\"attrNodeName\\", - \\"textNodeName\\", - \\"ignoreAttributes\\", - \\"ignoreNameSpace\\", - \\"allowBooleanAttributes\\", - \\"parseNodeValue\\", - \\"parseAttributeValue\\", - \\"arrayMode\\", - \\"trimValues\\", - \\"cdataTagName\\", - \\"cdataPositionChar\\", - \\"tagValueProcessor\\", - \\"attrValueProcessor\\", - \\"parseTrueNumberOnly\\", - \\"stopNodes\\" - ]; - exports2.props = props; - function processTagValue(tagName, val, options) { - if (val) { - if (options.trimValues) { - val = val.trim(); - } - val = options.tagValueProcessor(val, tagName); - val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); - } - return val; - } - function resolveNameSpace(tagname, options) { - if (options.ignoreNameSpace) { - const tags = tagname.split(\\":\\"); - const prefix = tagname.charAt(0) === \\"/\\" ? \\"/\\" : \\"\\"; - if (tags[0] === \\"xmlns\\") { - return \\"\\"; - } - if (tags.length === 2) { - tagname = prefix + tags[1]; - } - } - return tagname; - } - function parseValue(val, shouldParse, parseTrueNumberOnly) { - if (shouldParse && typeof val === \\"string\\") { - let parsed; - if (val.trim() === \\"\\" || isNaN(val)) { - parsed = val === \\"true\\" ? true : val === \\"false\\" ? false : val; - } else { - if (val.indexOf(\\"0x\\") !== -1) { - parsed = Number.parseInt(val, 16); - } else if (val.indexOf(\\".\\") !== -1) { - parsed = Number.parseFloat(val); - val = val.replace(/\\\\.?0+$/, \\"\\"); - } else { - parsed = Number.parseInt(val, 10); - } - if (parseTrueNumberOnly) { - parsed = String(parsed) === val ? parsed : val; - } - } - return parsed; - } else { - if (util.isExist(val)) { - return val; - } else { - return \\"\\"; - } - } - } - var attrsRegx = new RegExp(\`([^\\\\\\\\s=]+)\\\\\\\\s*(=\\\\\\\\s*(['\\"])(.*?)\\\\\\\\3)?\`, \\"g\\"); - function buildAttributesMap(attrStr, options) { - if (!options.ignoreAttributes && typeof attrStr === \\"string\\") { - attrStr = attrStr.replace(/\\\\r?\\\\n/g, \\" \\"); - const matches = util.getAllMatches(attrStr, attrsRegx); - const len = matches.length; - const attrs = {}; - for (let i = 0; i < len; i++) { - const attrName = resolveNameSpace(matches[i][1], options); - if (attrName.length) { - if (matches[i][4] !== void 0) { - if (options.trimValues) { - matches[i][4] = matches[i][4].trim(); - } - matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); - attrs[options.attributeNamePrefix + attrName] = parseValue( - matches[i][4], - options.parseAttributeValue, - options.parseTrueNumberOnly - ); - } else if (options.allowBooleanAttributes) { - attrs[options.attributeNamePrefix + attrName] = true; + continue; + case 10: + parser.doctype += c; + if (c === parser.q) { + parser.state = 9; + parser.q = \\"\\"; } - } - } - if (!Object.keys(attrs).length) { - return; - } - if (options.attrNodeName) { - const attrCollection = {}; - attrCollection[options.attrNodeName] = attrs; - return attrCollection; - } - return attrs; - } - } - var getTraversalObj = function(xmlData, options) { - xmlData = xmlData.replace(/\\\\r\\\\n?/g, \\"\\\\n\\"); - options = buildOptions(options, defaultOptions, props); - const xmlObj = new xmlNode(\\"!xml\\"); - let currentNode = xmlObj; - let textData = \\"\\"; - for (let i = 0; i < xmlData.length; i++) { - const ch = xmlData[i]; - if (ch === \\"<\\") { - if (xmlData[i + 1] === \\"/\\") { - const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"Closing Tag is not closed.\\"); - let tagName = xmlData.substring(i + 2, closeIndex).trim(); - if (options.ignoreNameSpace) { - const colonIndex = tagName.indexOf(\\":\\"); - if (colonIndex !== -1) { - tagName = tagName.substr(colonIndex + 1); - } + continue; + case 12: + if (c === \\"-\\") { + parser.state = 13; + } + else { + parser.comment += c; + } + continue; + case 13: + if (c === \\"-\\") { + parser.state = 14; + parser.comment = v1734(parser.opt, parser.comment); + if (parser.comment) { + v1725(parser, \\"oncomment\\", parser.comment); + } + parser.comment = \\"\\"; + } + else { + parser.comment += \\"-\\" + c; + parser.state = 12; + } + continue; + case 14: + if (c !== \\">\\") { + v1716(parser, \\"Malformed comment\\"); + parser.comment += \\"--\\" + c; + parser.state = 12; + } + else { + parser.state = 2; + } + continue; + case 15: + if (c === \\"]\\") { + parser.state = 16; } - if (currentNode) { - if (currentNode.val) { - currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(tagName, textData, options); - } else { - currentNode.val = processTagValue(tagName, textData, options); - } + else { + parser.cdata += c; } - if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { - currentNode.child = []; - if (currentNode.attrsMap == void 0) { - currentNode.attrsMap = {}; - } - currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1); + continue; + case 16: + if (c === \\"]\\") { + parser.state = 17; } - currentNode = currentNode.parent; - textData = \\"\\"; - i = closeIndex; - } else if (xmlData[i + 1] === \\"?\\") { - i = findClosingIndex(xmlData, \\"?>\\", i, \\"Pi Tag is not closed.\\"); - } else if (xmlData.substr(i + 1, 3) === \\"!--\\") { - i = findClosingIndex(xmlData, \\"-->\\", i, \\"Comment is not closed.\\"); - } else if (xmlData.substr(i + 1, 2) === \\"!D\\") { - const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"DOCTYPE is not closed.\\"); - const tagExp = xmlData.substring(i, closeIndex); - if (tagExp.indexOf(\\"[\\") >= 0) { - i = xmlData.indexOf(\\"]>\\", i) + 1; - } else { - i = closeIndex; + else { + parser.cdata += \\"]\\" + c; + parser.state = 15; } - } else if (xmlData.substr(i + 1, 2) === \\"![\\") { - const closeIndex = findClosingIndex(xmlData, \\"]]>\\", i, \\"CDATA is not closed.\\") - 2; - const tagExp = xmlData.substring(i + 9, closeIndex); - if (textData) { - currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); - textData = \\"\\"; + continue; + case 17: + if (c === \\">\\") { + if (parser.cdata) { + v1735(parser, \\"oncdata\\", parser.cdata); + } + v1735(parser, \\"onclosecdata\\"); + parser.cdata = \\"\\"; + parser.state = 2; } - if (options.cdataTagName) { - const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); - currentNode.addChild(childNode); - currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; - if (tagExp) { - childNode.val = tagExp; - } - } else { - currentNode.val = (currentNode.val || \\"\\") + (tagExp || \\"\\"); + else if (c === \\"]\\") { + parser.cdata += \\"]\\"; } - i = closeIndex + 2; - } else { - const result = closingIndexForOpeningTag(xmlData, i + 1); - let tagExp = result.data; - const closeIndex = result.index; - const separatorIndex = tagExp.indexOf(\\" \\"); - let tagName = tagExp; - let shouldBuildAttributesMap = true; - if (separatorIndex !== -1) { - tagName = tagExp.substr(0, separatorIndex).replace(/\\\\s\\\\s*$/, \\"\\"); - tagExp = tagExp.substr(separatorIndex + 1); + else { + parser.cdata += \\"]]\\" + c; + parser.state = 15; } - if (options.ignoreNameSpace) { - const colonIndex = tagName.indexOf(\\":\\"); - if (colonIndex !== -1) { - tagName = tagName.substr(colonIndex + 1); - shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); - } + continue; + case 18: + if (c === \\"?\\") { + parser.state = 20; } - if (currentNode && textData) { - if (currentNode.tagname !== \\"!xml\\") { - currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); - } + else if (v1713(c)) { + parser.state = 19; } - if (tagExp.length > 0 && tagExp.lastIndexOf(\\"/\\") === tagExp.length - 1) { - if (tagName[tagName.length - 1] === \\"/\\") { - tagName = tagName.substr(0, tagName.length - 1); - tagExp = tagName; - } else { - tagExp = tagExp.substr(0, tagExp.length - 1); - } - const childNode = new xmlNode(tagName, currentNode, \\"\\"); - if (tagName !== tagExp) { - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - } else { - const childNode = new xmlNode(tagName, currentNode); - if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { - childNode.startIndex = closeIndex; - } - if (tagName !== tagExp && shouldBuildAttributesMap) { - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - currentNode = childNode; + else { + parser.procInstName += c; } - textData = \\"\\"; - i = closeIndex; - } - } else { - textData += xmlData[i]; - } - } - return xmlObj; - }; - function closingIndexForOpeningTag(data, i) { - let attrBoundary; - let tagExp = \\"\\"; - for (let index = i; index < data.length; index++) { - let ch = data[index]; - if (attrBoundary) { - if (ch === attrBoundary) - attrBoundary = \\"\\"; - } else if (ch === '\\"' || ch === \\"'\\") { - attrBoundary = ch; - } else if (ch === \\">\\") { - return { - data: tagExp, - index - }; - } else if (ch === \\" \\") { - ch = \\" \\"; - } - tagExp += ch; - } - } - function findClosingIndex(xmlData, str, i, errMsg) { - const closingIndex = xmlData.indexOf(str, i); - if (closingIndex === -1) { - throw new Error(errMsg); - } else { - return closingIndex + str.length - 1; - } - } - exports2.getTraversalObj = getTraversalObj; - } -}); - -// node_modules/fast-xml-parser/src/validator.js -var require_validator = __commonJS({ - \\"node_modules/fast-xml-parser/src/validator.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var defaultOptions = { - allowBooleanAttributes: false - }; - var props = [\\"allowBooleanAttributes\\"]; - exports2.validate = function(xmlData, options) { - options = util.buildOptions(options, defaultOptions, props); - const tags = []; - let tagFound = false; - let reachedRoot = false; - if (xmlData[0] === \\"\\\\uFEFF\\") { - xmlData = xmlData.substr(1); - } - for (let i = 0; i < xmlData.length; i++) { - if (xmlData[i] === \\"<\\" && xmlData[i + 1] === \\"?\\") { - i += 2; - i = readPI(xmlData, i); - if (i.err) - return i; - } else if (xmlData[i] === \\"<\\") { - i++; - if (xmlData[i] === \\"!\\") { - i = readCommentAndCDATA(xmlData, i); continue; - } else { - let closingTag = false; - if (xmlData[i] === \\"/\\") { - closingTag = true; - i++; + case 19: + if (!parser.procInstBody && v1713(c)) { + continue; } - let tagName = \\"\\"; - for (; i < xmlData.length && xmlData[i] !== \\">\\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\"\\\\n\\" && xmlData[i] !== \\"\\\\r\\"; i++) { - tagName += xmlData[i]; + else if (c === \\"?\\") { + parser.state = 20; } - tagName = tagName.trim(); - if (tagName[tagName.length - 1] === \\"/\\") { - tagName = tagName.substring(0, tagName.length - 1); - i--; + else { + parser.procInstBody += c; } - if (!validateTagName(tagName)) { - let msg; - if (tagName.trim().length === 0) { - msg = \\"There is an unnecessary space between tag name and backward slash '\\") { + v1735(parser, \\"onprocessinginstruction\\", { name: parser.procInstName, body: parser.procInstBody }); + parser.procInstName = parser.procInstBody = \\"\\"; + parser.state = 2; + } + else { + parser.procInstBody += \\"?\\" + c; + parser.state = 19; } - const result = readAttributeStr(xmlData, i); - if (result === false) { - return getErrorObject(\\"InvalidAttr\\", \\"Attributes for '\\" + tagName + \\"' have open quote.\\", getLineNumberForPosition(xmlData, i)); + continue; + case 21: + if (v1736(v1737, c)) { + parser.tagName += c; } - let attrStr = result.value; - i = result.index; - if (attrStr[attrStr.length - 1] === \\"/\\") { - attrStr = attrStr.substring(0, attrStr.length - 1); - const isValid = validateAttributeString(attrStr, options); - if (isValid === true) { - tagFound = true; - } else { - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); - } - } else if (closingTag) { - if (!result.tagClosed) { - return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + tagName + \\"' doesn't have proper closing.\\", getLineNumberForPosition(xmlData, i)); - } else if (attrStr.trim().length > 0) { - return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + tagName + \\"' can't have attributes or invalid starting.\\", getLineNumberForPosition(xmlData, i)); - } else { - const otg = tags.pop(); - if (tagName !== otg) { - return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + otg + \\"' is expected inplace of '\\" + tagName + \\"'.\\", getLineNumberForPosition(xmlData, i)); + else { + v1738(parser); + if (c === \\">\\") { + v1742(parser); } - if (tags.length == 0) { - reachedRoot = true; + else if (c === \\"/\\") { + parser.state = 22; } - } - } else { - const isValid = validateAttributeString(attrStr, options); - if (isValid !== true) { - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); - } - if (reachedRoot === true) { - return getErrorObject(\\"InvalidXml\\", \\"Multiple possible root nodes found.\\", getLineNumberForPosition(xmlData, i)); - } else { - tags.push(tagName); - } - tagFound = true; - } - for (i++; i < xmlData.length; i++) { - if (xmlData[i] === \\"<\\") { - if (xmlData[i + 1] === \\"!\\") { - i++; - i = readCommentAndCDATA(xmlData, i); - continue; - } else if (xmlData[i + 1] === \\"?\\") { - i = readPI(xmlData, ++i); - if (i.err) - return i; - } else { - break; + else { + if (!v1713(c)) { + v1716(parser, \\"Invalid character in tag name\\"); + } + parser.state = 23; } - } else if (xmlData[i] === \\"&\\") { - const afterAmp = validateAmpersand(xmlData, i); - if (afterAmp == -1) - return getErrorObject(\\"InvalidChar\\", \\"char '&' is not expected.\\", getLineNumberForPosition(xmlData, i)); - i = afterAmp; - } } - if (xmlData[i] === \\"<\\") { - i--; + continue; + case 22: + if (c === \\">\\") { + v1742(parser, true); + v1754(parser); + } + else { + v1716(parser, \\"Forward-slash in opening tag not followed by >\\"); + parser.state = 23; } - } - } else { - if (xmlData[i] === \\" \\" || xmlData[i] === \\" \\" || xmlData[i] === \\"\\\\n\\" || xmlData[i] === \\"\\\\r\\") { continue; - } - return getErrorObject(\\"InvalidChar\\", \\"char '\\" + xmlData[i] + \\"' is not expected.\\", getLineNumberForPosition(xmlData, i)); - } - } - if (!tagFound) { - return getErrorObject(\\"InvalidXml\\", \\"Start tag expected.\\", 1); - } else if (tags.length > 0) { - return getErrorObject(\\"InvalidXml\\", \\"Invalid '\\" + JSON.stringify(tags, null, 4).replace(/\\\\r?\\\\n/g, \\"\\") + \\"' found.\\", 1); - } - return true; - }; - function readPI(xmlData, i) { - var start = i; - for (; i < xmlData.length; i++) { - if (xmlData[i] == \\"?\\" || xmlData[i] == \\" \\") { - var tagname = xmlData.substr(start, i - start); - if (i > 5 && tagname === \\"xml\\") { - return getErrorObject(\\"InvalidXml\\", \\"XML declaration allowed only at the start of the document.\\", getLineNumberForPosition(xmlData, i)); - } else if (xmlData[i] == \\"?\\" && xmlData[i + 1] == \\">\\") { - i++; - break; - } else { + case 23: + if (v1713(c)) { + continue; + } + else if (c === \\">\\") { + v1742(parser); + } + else if (c === \\"/\\") { + parser.state = 22; + } + else if (v1736(v1722, c)) { + parser.attribName = c; + parser.attribValue = \\"\\"; + parser.state = 24; + } + else { + v1716(parser, \\"Invalid attribute name\\"); + } continue; - } - } - } - return i; - } - function readCommentAndCDATA(xmlData, i) { - if (xmlData.length > i + 5 && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\"-\\") { - for (i += 3; i < xmlData.length; i++) { - if (xmlData[i] === \\"-\\" && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\">\\") { - i += 2; - break; - } - } - } else if (xmlData.length > i + 8 && xmlData[i + 1] === \\"D\\" && xmlData[i + 2] === \\"O\\" && xmlData[i + 3] === \\"C\\" && xmlData[i + 4] === \\"T\\" && xmlData[i + 5] === \\"Y\\" && xmlData[i + 6] === \\"P\\" && xmlData[i + 7] === \\"E\\") { - let angleBracketsCount = 1; - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === \\"<\\") { - angleBracketsCount++; - } else if (xmlData[i] === \\">\\") { - angleBracketsCount--; - if (angleBracketsCount === 0) { - break; + case 24: + if (c === \\"=\\") { + parser.state = 26; + } + else if (c === \\">\\") { + v1716(parser, \\"Attribute without value\\"); + parser.attribValue = parser.attribName; + v1758(parser); + v1742(parser); + } + else if (v1713(c)) { + parser.state = 25; + } + else if (v1736(v1766, c)) { + parser.attribName += c; + } + else { + v1716(parser, \\"Invalid attribute name\\"); } - } - } - } else if (xmlData.length > i + 9 && xmlData[i + 1] === \\"[\\" && xmlData[i + 2] === \\"C\\" && xmlData[i + 3] === \\"D\\" && xmlData[i + 4] === \\"A\\" && xmlData[i + 5] === \\"T\\" && xmlData[i + 6] === \\"A\\" && xmlData[i + 7] === \\"[\\") { - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === \\"]\\" && xmlData[i + 1] === \\"]\\" && xmlData[i + 2] === \\">\\") { - i += 2; - break; - } - } - } - return i; - } - var doubleQuote = '\\"'; - var singleQuote = \\"'\\"; - function readAttributeStr(xmlData, i) { - let attrStr = \\"\\"; - let startChar = \\"\\"; - let tagClosed = false; - for (; i < xmlData.length; i++) { - if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { - if (startChar === \\"\\") { - startChar = xmlData[i]; - } else if (startChar !== xmlData[i]) { continue; - } else { - startChar = \\"\\"; - } - } else if (xmlData[i] === \\">\\") { - if (startChar === \\"\\") { - tagClosed = true; - break; - } - } - attrStr += xmlData[i]; - } - if (startChar !== \\"\\") { - return false; - } - return { - value: attrStr, - index: i, - tagClosed - }; - } - var validAttrStrRegxp = new RegExp(\`(\\\\\\\\s*)([^\\\\\\\\s=]+)(\\\\\\\\s*=)?(\\\\\\\\s*(['\\"])(([\\\\\\\\s\\\\\\\\S])*?)\\\\\\\\5)?\`, \\"g\\"); - function validateAttributeString(attrStr, options) { - const matches = util.getAllMatches(attrStr, validAttrStrRegxp); - const attrNames = {}; - for (let i = 0; i < matches.length; i++) { - if (matches[i][1].length === 0) { - return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + matches[i][2] + \\"' has no space in starting.\\", getPositionFromMatch(attrStr, matches[i][0])); - } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { - return getErrorObject(\\"InvalidAttr\\", \\"boolean attribute '\\" + matches[i][2] + \\"' is not allowed.\\", getPositionFromMatch(attrStr, matches[i][0])); - } - const attrName = matches[i][2]; - if (!validateAttrName(attrName)) { - return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is an invalid name.\\", getPositionFromMatch(attrStr, matches[i][0])); - } - if (!attrNames.hasOwnProperty(attrName)) { - attrNames[attrName] = 1; - } else { - return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is repeated.\\", getPositionFromMatch(attrStr, matches[i][0])); - } - } - return true; - } - function validateNumberAmpersand(xmlData, i) { - let re = /\\\\d/; - if (xmlData[i] === \\"x\\") { - i++; - re = /[\\\\da-fA-F]/; - } - for (; i < xmlData.length; i++) { - if (xmlData[i] === \\";\\") - return i; - if (!xmlData[i].match(re)) - break; - } - return -1; - } - function validateAmpersand(xmlData, i) { - i++; - if (xmlData[i] === \\";\\") - return -1; - if (xmlData[i] === \\"#\\") { - i++; - return validateNumberAmpersand(xmlData, i); - } - let count = 0; - for (; i < xmlData.length; i++, count++) { - if (xmlData[i].match(/\\\\w/) && count < 20) - continue; - if (xmlData[i] === \\";\\") - break; - return -1; - } - return i; - } - function getErrorObject(code, message, lineNumber) { - return { - err: { - code, - msg: message, - line: lineNumber - } - }; - } - function validateAttrName(attrName) { - return util.isName(attrName); - } - function validateTagName(tagname) { - return util.isName(tagname); - } - function getLineNumberForPosition(xmlData, index) { - var lines = xmlData.substring(0, index).split(/\\\\r?\\\\n/); - return lines.length; - } - function getPositionFromMatch(attrStr, match) { - return attrStr.indexOf(match) + match.length; - } - } -}); - -// node_modules/fast-xml-parser/src/nimndata.js -var require_nimndata = __commonJS({ - \\"node_modules/fast-xml-parser/src/nimndata.js\\"(exports2) { - \\"use strict\\"; - var char = function(a) { - return String.fromCharCode(a); - }; - var chars = { - nilChar: char(176), - missingChar: char(201), - nilPremitive: char(175), - missingPremitive: char(200), - emptyChar: char(178), - emptyValue: char(177), - boundryChar: char(179), - objStart: char(198), - arrStart: char(204), - arrayEnd: char(185) - }; - var charsArr = [ - chars.nilChar, - chars.nilPremitive, - chars.missingChar, - chars.missingPremitive, - chars.boundryChar, - chars.emptyChar, - chars.emptyValue, - chars.arrayEnd, - chars.objStart, - chars.arrStart - ]; - var _e = function(node, e_schema, options) { - if (typeof e_schema === \\"string\\") { - if (node && node[0] && node[0].val !== void 0) { - return getValue(node[0].val, e_schema); - } else { - return getValue(node, e_schema); - } - } else { - const hasValidData = hasData(node); - if (hasValidData === true) { - let str = \\"\\"; - if (Array.isArray(e_schema)) { - str += chars.arrStart; - const itemSchema = e_schema[0]; - const arr_len = node.length; - if (typeof itemSchema === \\"string\\") { - for (let arr_i = 0; arr_i < arr_len; arr_i++) { - const r = getValue(node[arr_i].val, itemSchema); - str = processValue(str, r); - } - } else { - for (let arr_i = 0; arr_i < arr_len; arr_i++) { - const r = _e(node[arr_i], itemSchema, options); - str = processValue(str, r); - } + case 25: + if (c === \\"=\\") { + parser.state = 26; } - str += chars.arrayEnd; - } else { - str += chars.objStart; - const keys = Object.keys(e_schema); - if (Array.isArray(node)) { - node = node[0]; + else if (v1713(c)) { + continue; } - for (let i in keys) { - const key = keys[i]; - let r; - if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { - r = _e(node.attrsMap[key], e_schema[key], options); - } else if (key === options.textNodeName) { - r = _e(node.val, e_schema[key], options); - } else { - r = _e(node.child[key], e_schema[key], options); - } - str = processValue(str, r); + else { + v1716(parser, \\"Attribute without value\\"); + parser.tag.attributes[parser.attribName] = \\"\\"; + parser.attribValue = \\"\\"; + v1735(parser, \\"onattribute\\", { name: parser.attribName, value: \\"\\" }); + parser.attribName = \\"\\"; + if (c === \\">\\") { + v1742(parser); + } + else if (v1736(v1722, c)) { + parser.attribName = c; + parser.state = 24; + } + else { + v1716(parser, \\"Invalid attribute name\\"); + parser.state = 23; + } } - } - return str; - } else { - return hasValidData; - } - } - }; - var getValue = function(a) { - switch (a) { - case void 0: - return chars.missingPremitive; - case null: - return chars.nilPremitive; - case \\"\\": - return chars.emptyValue; - default: - return a; - } - }; - var processValue = function(str, r) { - if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { - str += chars.boundryChar; - } - return str + r; - }; - var isAppChar = function(ch) { - return charsArr.indexOf(ch) !== -1; - }; - function hasData(jObj) { - if (jObj === void 0) { - return chars.missingChar; - } else if (jObj === null) { - return chars.nilChar; - } else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) { - return chars.emptyChar; - } else { - return true; - } - } - var x2j = require_xmlstr2xmlnode(); - var buildOptions = require_util().buildOptions; - var convert2nimn = function(node, e_schema, options) { - options = buildOptions(options, x2j.defaultOptions, x2j.props); - return _e(node, e_schema, options); - }; - exports2.convert2nimn = convert2nimn; - } -}); - -// node_modules/fast-xml-parser/src/node2json_str.js -var require_node2json_str = __commonJS({ - \\"node_modules/fast-xml-parser/src/node2json_str.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var buildOptions = require_util().buildOptions; - var x2j = require_xmlstr2xmlnode(); - var convertToJsonString = function(node, options) { - options = buildOptions(options, x2j.defaultOptions, x2j.props); - options.indentBy = options.indentBy || \\"\\"; - return _cToJsonStr(node, options, 0); - }; - var _cToJsonStr = function(node, options, level) { - let jObj = \\"{\\"; - const keys = Object.keys(node.child); - for (let index = 0; index < keys.length; index++) { - var tagname = keys[index]; - if (node.child[tagname] && node.child[tagname].length > 1) { - jObj += '\\"' + tagname + '\\" : [ '; - for (var tag in node.child[tagname]) { - jObj += _cToJsonStr(node.child[tagname][tag], options) + \\" , \\"; - } - jObj = jObj.substr(0, jObj.length - 1) + \\" ] \\"; - } else { - jObj += '\\"' + tagname + '\\" : ' + _cToJsonStr(node.child[tagname][0], options) + \\" ,\\"; - } - } - util.merge(jObj, node.attrsMap); - if (util.isEmptyObject(jObj)) { - return util.isExist(node.val) ? node.val : \\"\\"; - } else { - if (util.isExist(node.val)) { - if (!(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { - jObj += '\\"' + options.textNodeName + '\\" : ' + stringval(node.val); - } - } - } - if (jObj[jObj.length - 1] === \\",\\") { - jObj = jObj.substr(0, jObj.length - 2); - } - return jObj + \\"}\\"; - }; - function stringval(v) { - if (v === true || v === false || !isNaN(v)) { - return v; - } else { - return '\\"' + v + '\\"'; - } - } - exports2.convertToJsonString = convertToJsonString; - } -}); - -// node_modules/fast-xml-parser/src/json2xml.js -var require_json2xml = __commonJS({ - \\"node_modules/fast-xml-parser/src/json2xml.js\\"(exports2, module2) { - \\"use strict\\"; - var buildOptions = require_util().buildOptions; - var defaultOptions = { - attributeNamePrefix: \\"@_\\", - attrNodeName: false, - textNodeName: \\"#text\\", - ignoreAttributes: true, - cdataTagName: false, - cdataPositionChar: \\"\\\\\\\\c\\", - format: false, - indentBy: \\" \\", - supressEmptyNode: false, - tagValueProcessor: function(a) { - return a; - }, - attrValueProcessor: function(a) { - return a; - } - }; - var props = [ - \\"attributeNamePrefix\\", - \\"attrNodeName\\", - \\"textNodeName\\", - \\"ignoreAttributes\\", - \\"cdataTagName\\", - \\"cdataPositionChar\\", - \\"format\\", - \\"indentBy\\", - \\"supressEmptyNode\\", - \\"tagValueProcessor\\", - \\"attrValueProcessor\\" - ]; - function Parser(options) { - this.options = buildOptions(options, defaultOptions, props); - if (this.options.ignoreAttributes || this.options.attrNodeName) { - this.isAttribute = function() { - return false; - }; - } else { - this.attrPrefixLen = this.options.attributeNamePrefix.length; - this.isAttribute = isAttribute; - } - if (this.options.cdataTagName) { - this.isCDATA = isCDATA; - } else { - this.isCDATA = function() { - return false; - }; - } - this.replaceCDATAstr = replaceCDATAstr; - this.replaceCDATAarr = replaceCDATAarr; - if (this.options.format) { - this.indentate = indentate; - this.tagEndChar = \\">\\\\n\\"; - this.newLine = \\"\\\\n\\"; - } else { - this.indentate = function() { - return \\"\\"; - }; - this.tagEndChar = \\">\\"; - this.newLine = \\"\\"; - } - if (this.options.supressEmptyNode) { - this.buildTextNode = buildEmptyTextNode; - this.buildObjNode = buildEmptyObjNode; - } else { - this.buildTextNode = buildTextValNode; - this.buildObjNode = buildObjectNode; - } - this.buildTextValNode = buildTextValNode; - this.buildObjectNode = buildObjectNode; - } - Parser.prototype.parse = function(jObj) { - return this.j2x(jObj, 0).val; - }; - Parser.prototype.j2x = function(jObj, level) { - let attrStr = \\"\\"; - let val = \\"\\"; - const keys = Object.keys(jObj); - const len = keys.length; - for (let i = 0; i < len; i++) { - const key = keys[i]; - if (typeof jObj[key] === \\"undefined\\") { - } else if (jObj[key] === null) { - val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; - } else if (jObj[key] instanceof Date) { - val += this.buildTextNode(jObj[key], key, \\"\\", level); - } else if (typeof jObj[key] !== \\"object\\") { - const attr = this.isAttribute(key); - if (attr) { - attrStr += \\" \\" + attr + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key]) + '\\"'; - } else if (this.isCDATA(key)) { - if (jObj[this.options.textNodeName]) { - val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); - } else { - val += this.replaceCDATAstr(\\"\\", jObj[key]); + continue; + case 26: + if (v1713(c)) { + continue; } - } else { - if (key === this.options.textNodeName) { - if (jObj[this.options.cdataTagName]) { - } else { - val += this.options.tagValueProcessor(\\"\\" + jObj[key]); - } - } else { - val += this.buildTextNode(jObj[key], key, \\"\\", level); + else if (v1733(c)) { + parser.q = c; + parser.state = 27; } - } - } else if (Array.isArray(jObj[key])) { - if (this.isCDATA(key)) { - val += this.indentate(level); - if (jObj[this.options.textNodeName]) { - val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); - } else { - val += this.replaceCDATAarr(\\"\\", jObj[key]); + else { + v1716(parser, \\"Unquoted attribute value\\"); + parser.state = 29; + parser.attribValue = c; } - } else { - const arrLen = jObj[key].length; - for (let j = 0; j < arrLen; j++) { - const item = jObj[key][j]; - if (typeof item === \\"undefined\\") { - } else if (item === null) { - val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; - } else if (typeof item === \\"object\\") { - const result = this.j2x(item, level + 1); - val += this.buildObjNode(result.val, key, result.attrStr, level); - } else { - val += this.buildTextNode(item, key, \\"\\", level); - } + continue; + case 27: + if (c !== parser.q) { + if (c === \\"&\\") { + parser.state = 30; + } + else { + parser.attribValue += c; + } + continue; } - } - } else { - if (this.options.attrNodeName && key === this.options.attrNodeName) { - const Ks = Object.keys(jObj[key]); - const L = Ks.length; - for (let j = 0; j < L; j++) { - attrStr += \\" \\" + Ks[j] + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key][Ks[j]]) + '\\"'; + v1758(parser); + parser.q = \\"\\"; + parser.state = 28; + continue; + case 28: + if (v1713(c)) { + parser.state = 23; } - } else { - const result = this.j2x(jObj[key], level + 1); - val += this.buildObjNode(result.val, key, result.attrStr, level); - } - } - } - return { attrStr, val }; - }; - function replaceCDATAstr(str, cdata) { - str = this.options.tagValueProcessor(\\"\\" + str); - if (this.options.cdataPositionChar === \\"\\" || str === \\"\\") { - return str + \\"\\"); - } - return str + this.newLine; - } - } - function buildObjectNode(val, key, attrStr, level) { - if (attrStr && !val.includes(\\"<\\")) { - return this.indentate(level) + \\"<\\" + key + attrStr + \\">\\" + val + \\"\\" + this.options.tagValueProcessor(val) + \\" { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleRequest(input, context), - Action: \\"AssumeRole\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; - var serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), - Action: \\"AssumeRoleWithSAML\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; - var serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), - Action: \\"AssumeRoleWithWebIdentity\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; - var serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), - Action: \\"DecodeAuthorizationMessage\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; - var serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetAccessKeyInfoRequest(input, context), - Action: \\"GetAccessKeyInfo\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; - var serializeAws_queryGetCallerIdentityCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetCallerIdentityRequest(input, context), - Action: \\"GetCallerIdentity\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; - var serializeAws_queryGetFederationTokenCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetFederationTokenRequest(input, context), - Action: \\"GetFederationToken\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; - var serializeAws_queryGetSessionTokenCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetSessionTokenRequest(input, context), - Action: \\"GetSessionToken\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; - var deserializeAws_queryAssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; - var deserializeAws_queryAssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExpiredTokenException\\": - case \\"com.amazonaws.sts#ExpiredTokenException\\": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; - var deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExpiredTokenException\\": - case \\"com.amazonaws.sts#ExpiredTokenException\\": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case \\"IDPRejectedClaimException\\": - case \\"com.amazonaws.sts#IDPRejectedClaimException\\": - throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); - case \\"InvalidIdentityTokenException\\": - case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": - throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; - var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExpiredTokenException\\": - case \\"com.amazonaws.sts#ExpiredTokenException\\": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case \\"IDPCommunicationErrorException\\": - case \\"com.amazonaws.sts#IDPCommunicationErrorException\\": - throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); - case \\"IDPRejectedClaimException\\": - case \\"com.amazonaws.sts#IDPRejectedClaimException\\": - throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); - case \\"InvalidIdentityTokenException\\": - case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": - throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; - var deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidAuthorizationMessageException\\": - case \\"com.amazonaws.sts#InvalidAuthorizationMessageException\\": - throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; - var deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - }; - var deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetCallerIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; - var deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - }; - var deserializeAws_queryGetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetFederationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; - var deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryGetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetSessionTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; - var deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); - const exception = new models_0_1.ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); - const exception = new models_0_1.IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); - const exception = new models_0_1.IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); - const exception = new models_0_1.InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); - const exception = new models_0_1.InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); - const exception = new models_0_1.MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); - const exception = new models_0_1.PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); - const exception = new models_0_1.RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var serializeAws_queryAssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries[\\"RoleArn\\"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries[\\"RoleSessionName\\"] = input.RoleSessionName; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`Tags.\${key}\`; - entries[loc] = value; - }); - } - if (input.TransitiveTagKeys != null) { - const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`TransitiveTagKeys.\${key}\`; - entries[loc] = value; - }); - } - if (input.ExternalId != null) { - entries[\\"ExternalId\\"] = input.ExternalId; - } - if (input.SerialNumber != null) { - entries[\\"SerialNumber\\"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries[\\"TokenCode\\"] = input.TokenCode; - } - if (input.SourceIdentity != null) { - entries[\\"SourceIdentity\\"] = input.SourceIdentity; - } - return entries; - }; - var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries[\\"RoleArn\\"] = input.RoleArn; - } - if (input.PrincipalArn != null) { - entries[\\"PrincipalArn\\"] = input.PrincipalArn; - } - if (input.SAMLAssertion != null) { - entries[\\"SAMLAssertion\\"] = input.SAMLAssertion; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - return entries; - }; - var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries[\\"RoleArn\\"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries[\\"RoleSessionName\\"] = input.RoleSessionName; - } - if (input.WebIdentityToken != null) { - entries[\\"WebIdentityToken\\"] = input.WebIdentityToken; - } - if (input.ProviderId != null) { - entries[\\"ProviderId\\"] = input.ProviderId; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - return entries; - }; - var serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage != null) { - entries[\\"EncodedMessage\\"] = input.EncodedMessage; - } - return entries; - }; - var serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId != null) { - entries[\\"AccessKeyId\\"] = input.AccessKeyId; - } - return entries; - }; - var serializeAws_queryGetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; - }; - var serializeAws_queryGetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries[\\"Name\\"] = input.Name; - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`Tags.\${key}\`; - entries[loc] = value; - }); - } - return entries; - }; - var serializeAws_queryGetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - if (input.SerialNumber != null) { - entries[\\"SerialNumber\\"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries[\\"TokenCode\\"] = input.TokenCode; - } - return entries; - }; - var serializeAws_querypolicyDescriptorListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[\`member.\${counter}.\${key}\`] = value; - }); - counter++; - } - return entries; - }; - var serializeAws_queryPolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn != null) { - entries[\\"arn\\"] = input.arn; - } - return entries; - }; - var serializeAws_queryTag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries[\\"Key\\"] = input.Key; - } - if (input.Value != null) { - entries[\\"Value\\"] = input.Value; - } - return entries; - }; - var serializeAws_querytagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[\`member.\${counter}\`] = entry; - counter++; - } - return entries; - }; - var serializeAws_querytagListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryTag(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[\`member.\${counter}.\${key}\`] = value; - }); - counter++; - } - return entries; - }; - var deserializeAws_queryAssumedRoleUser = (output, context) => { - const contents = { - AssumedRoleId: void 0, - Arn: void 0 - }; - if (output[\\"AssumedRoleId\\"] !== void 0) { - contents.AssumedRoleId = (0, smithy_client_1.expectString)(output[\\"AssumedRoleId\\"]); - } - if (output[\\"Arn\\"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); - } - return contents; - }; - var deserializeAws_queryAssumeRoleResponse = (output, context) => { - const contents = { - Credentials: void 0, - AssumedRoleUser: void 0, - PackedPolicySize: void 0, - SourceIdentity: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"AssumedRoleUser\\"] !== void 0) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - if (output[\\"SourceIdentity\\"] !== void 0) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); - } - return contents; - }; - var deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { - const contents = { - Credentials: void 0, - AssumedRoleUser: void 0, - PackedPolicySize: void 0, - Subject: void 0, - SubjectType: void 0, - Issuer: void 0, - Audience: void 0, - NameQualifier: void 0, - SourceIdentity: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"AssumedRoleUser\\"] !== void 0) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - if (output[\\"Subject\\"] !== void 0) { - contents.Subject = (0, smithy_client_1.expectString)(output[\\"Subject\\"]); - } - if (output[\\"SubjectType\\"] !== void 0) { - contents.SubjectType = (0, smithy_client_1.expectString)(output[\\"SubjectType\\"]); - } - if (output[\\"Issuer\\"] !== void 0) { - contents.Issuer = (0, smithy_client_1.expectString)(output[\\"Issuer\\"]); - } - if (output[\\"Audience\\"] !== void 0) { - contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); - } - if (output[\\"NameQualifier\\"] !== void 0) { - contents.NameQualifier = (0, smithy_client_1.expectString)(output[\\"NameQualifier\\"]); - } - if (output[\\"SourceIdentity\\"] !== void 0) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); - } - return contents; - }; - var deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = { - Credentials: void 0, - SubjectFromWebIdentityToken: void 0, - AssumedRoleUser: void 0, - PackedPolicySize: void 0, - Provider: void 0, - Audience: void 0, - SourceIdentity: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"SubjectFromWebIdentityToken\\"] !== void 0) { - contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output[\\"SubjectFromWebIdentityToken\\"]); - } - if (output[\\"AssumedRoleUser\\"] !== void 0) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - if (output[\\"Provider\\"] !== void 0) { - contents.Provider = (0, smithy_client_1.expectString)(output[\\"Provider\\"]); - } - if (output[\\"Audience\\"] !== void 0) { - contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); - } - if (output[\\"SourceIdentity\\"] !== void 0) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); - } - return contents; - }; - var deserializeAws_queryCredentials = (output, context) => { - const contents = { - AccessKeyId: void 0, - SecretAccessKey: void 0, - SessionToken: void 0, - Expiration: void 0 - }; - if (output[\\"AccessKeyId\\"] !== void 0) { - contents.AccessKeyId = (0, smithy_client_1.expectString)(output[\\"AccessKeyId\\"]); - } - if (output[\\"SecretAccessKey\\"] !== void 0) { - contents.SecretAccessKey = (0, smithy_client_1.expectString)(output[\\"SecretAccessKey\\"]); - } - if (output[\\"SessionToken\\"] !== void 0) { - contents.SessionToken = (0, smithy_client_1.expectString)(output[\\"SessionToken\\"]); - } - if (output[\\"Expiration\\"] !== void 0) { - contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output[\\"Expiration\\"])); - } - return contents; - }; - var deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { - const contents = { - DecodedMessage: void 0 - }; - if (output[\\"DecodedMessage\\"] !== void 0) { - contents.DecodedMessage = (0, smithy_client_1.expectString)(output[\\"DecodedMessage\\"]); - } - return contents; - }; - var deserializeAws_queryExpiredTokenException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryFederatedUser = (output, context) => { - const contents = { - FederatedUserId: void 0, - Arn: void 0 - }; - if (output[\\"FederatedUserId\\"] !== void 0) { - contents.FederatedUserId = (0, smithy_client_1.expectString)(output[\\"FederatedUserId\\"]); - } - if (output[\\"Arn\\"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); - } - return contents; - }; - var deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { - const contents = { - Account: void 0 - }; - if (output[\\"Account\\"] !== void 0) { - contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); - } - return contents; - }; - var deserializeAws_queryGetCallerIdentityResponse = (output, context) => { - const contents = { - UserId: void 0, - Account: void 0, - Arn: void 0 - }; - if (output[\\"UserId\\"] !== void 0) { - contents.UserId = (0, smithy_client_1.expectString)(output[\\"UserId\\"]); - } - if (output[\\"Account\\"] !== void 0) { - contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); - } - if (output[\\"Arn\\"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); - } - return contents; - }; - var deserializeAws_queryGetFederationTokenResponse = (output, context) => { - const contents = { - Credentials: void 0, - FederatedUser: void 0, - PackedPolicySize: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"FederatedUser\\"] !== void 0) { - contents.FederatedUser = deserializeAws_queryFederatedUser(output[\\"FederatedUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - return contents; - }; - var deserializeAws_queryGetSessionTokenResponse = (output, context) => { - const contents = { - Credentials: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - return contents; - }; - var deserializeAws_queryIDPCommunicationErrorException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryIDPRejectedClaimException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryInvalidIdentityTokenException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryRegionDisabledException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - var collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); - }; - var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: \\"POST\\", - path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, - headers - }; - if (resolvedHostname !== void 0) { - contents.hostname = resolvedHostname; - } - if (body !== void 0) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); - }; - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { - attributeNamePrefix: \\"\\", - ignoreAttributes: false, - parseNodeValue: false, - trimValues: false, - tagValueProcessor: (val) => val.trim() === \\"\\" && val.includes(\\"\\\\n\\") ? \\"\\" : (0, entities_1.decodeHTML)(val) - }); - const textNodeName = \\"#text\\"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; - }); - var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + \\"=\\" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join(\\"&\\"); - var loadQueryErrorCode = (output, data) => { - if (data.Error.Code !== void 0) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return \\"NotFound\\"; - } - }; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js -var require_AssumeRoleCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AssumeRoleCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"AssumeRoleCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); - } - }; - exports2.AssumeRoleCommand = AssumeRoleCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js -var require_AssumeRoleWithSAMLCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AssumeRoleWithSAMLCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleWithSAMLCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"AssumeRoleWithSAMLCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); - } - }; - exports2.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js -var require_AssumeRoleWithWebIdentityCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AssumeRoleWithWebIdentityCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"AssumeRoleWithWebIdentityCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); - } - }; - exports2.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js -var require_DecodeAuthorizationMessageCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DecodeAuthorizationMessageCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var DecodeAuthorizationMessageCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"DecodeAuthorizationMessageCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); - } - }; - exports2.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js -var require_GetAccessKeyInfoCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetAccessKeyInfoCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetAccessKeyInfoCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetAccessKeyInfoCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); - } - }; - exports2.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js -var require_GetCallerIdentityCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetCallerIdentityCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetCallerIdentityCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetCallerIdentityCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); - } - }; - exports2.GetCallerIdentityCommand = GetCallerIdentityCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js -var require_GetFederationTokenCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetFederationTokenCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetFederationTokenCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetFederationTokenCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); - } - }; - exports2.GetFederationTokenCommand = GetFederationTokenCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js -var require_GetSessionTokenCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetSessionTokenCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetSessionTokenCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetSessionTokenCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); - } - }; - exports2.GetSessionTokenCommand = GetSessionTokenCommand; - } -}); - -// node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js -var require_dist_cjs23 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveStsAuthConfig = void 0; - var middleware_signing_1 = require_dist_cjs21(); - var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ - ...input, - stsClientCtor - }); - exports2.resolveStsAuthConfig = resolveStsAuthConfig; - } -}); - -// node_modules/@aws-sdk/client-sts/package.json -var require_package2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/package.json\\"(exports2, module2) { - module2.exports = { - name: \\"@aws-sdk/client-sts\\", - description: \\"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native\\", - version: \\"3.145.0\\", - scripts: { - build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", - \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", - \\"build:docs\\": \\"typedoc\\", - \\"build:es\\": \\"tsc -p tsconfig.es.json\\", - \\"build:types\\": \\"tsc -p tsconfig.types.json\\", - \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", - clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" - }, - main: \\"./dist-cjs/index.js\\", - types: \\"./dist-types/index.d.ts\\", - module: \\"./dist-es/index.js\\", - sideEffects: false, - dependencies: { - \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", - \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", - \\"@aws-sdk/config-resolver\\": \\"3.130.0\\", - \\"@aws-sdk/credential-provider-node\\": \\"3.145.0\\", - \\"@aws-sdk/fetch-http-handler\\": \\"3.131.0\\", - \\"@aws-sdk/hash-node\\": \\"3.127.0\\", - \\"@aws-sdk/invalid-dependency\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-content-length\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-host-header\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-logger\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-recursion-detection\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-retry\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-sdk-sts\\": \\"3.130.0\\", - \\"@aws-sdk/middleware-serde\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-signing\\": \\"3.130.0\\", - \\"@aws-sdk/middleware-stack\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-user-agent\\": \\"3.127.0\\", - \\"@aws-sdk/node-config-provider\\": \\"3.127.0\\", - \\"@aws-sdk/node-http-handler\\": \\"3.127.0\\", - \\"@aws-sdk/protocol-http\\": \\"3.127.0\\", - \\"@aws-sdk/smithy-client\\": \\"3.142.0\\", - \\"@aws-sdk/types\\": \\"3.127.0\\", - \\"@aws-sdk/url-parser\\": \\"3.127.0\\", - \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-browser\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.142.0\\", - \\"@aws-sdk/util-defaults-mode-node\\": \\"3.142.0\\", - \\"@aws-sdk/util-user-agent-browser\\": \\"3.127.0\\", - \\"@aws-sdk/util-user-agent-node\\": \\"3.127.0\\", - \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", - entities: \\"2.2.0\\", - \\"fast-xml-parser\\": \\"3.19.0\\", - tslib: \\"^2.3.1\\" - }, - devDependencies: { - \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", - \\"@tsconfig/recommended\\": \\"1.0.1\\", - \\"@types/node\\": \\"^12.7.5\\", - concurrently: \\"7.0.0\\", - \\"downlevel-dts\\": \\"0.7.0\\", - rimraf: \\"3.0.2\\", - typedoc: \\"0.19.2\\", - typescript: \\"~4.6.2\\" - }, - overrides: { - typedoc: { - typescript: \\"~4.6.2\\" - } - }, - engines: { - node: \\">=12.0.0\\" - }, - typesVersions: { - \\"<4.0\\": { - \\"dist-types/*\\": [ - \\"dist-types/ts3.4/*\\" - ] - } - }, - files: [ - \\"dist-*\\" - ], - author: { - name: \\"AWS SDK for JavaScript Team\\", - url: \\"https://aws.amazon.com/javascript/\\" - }, - license: \\"Apache-2.0\\", - browser: { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" - }, - \\"react-native\\": { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" - }, - homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts\\", - repository: { - type: \\"git\\", - url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", - directory: \\"clients/client-sts\\" - } - }; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js -var require_defaultStsRoleAssumers = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; - var AssumeRoleCommand_1 = require_AssumeRoleCommand(); - var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); - var ASSUME_ROLE_DEFAULT_REGION = \\"us-east-1\\"; - var decorateDefaultRegion = (region) => { - if (typeof region !== \\"function\\") { - return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; - }; - var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...requestHandler ? { requestHandler } : {} - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(\`Invalid response from STS.assumeRole call with role \${params.RoleArn}\`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration - }; - }; - }; - exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; - var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...requestHandler ? { requestHandler } : {} - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(\`Invalid response from STS.assumeRoleWithWebIdentity call with role \${params.RoleArn}\`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration - }; - }; - }; - exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; - var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports2.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input - }); - exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js -var require_fromEnv = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromEnv = exports2.ENV_EXPIRATION = exports2.ENV_SESSION = exports2.ENV_SECRET = exports2.ENV_KEY = void 0; - var property_provider_1 = require_dist_cjs16(); - exports2.ENV_KEY = \\"AWS_ACCESS_KEY_ID\\"; - exports2.ENV_SECRET = \\"AWS_SECRET_ACCESS_KEY\\"; - exports2.ENV_SESSION = \\"AWS_SESSION_TOKEN\\"; - exports2.ENV_EXPIRATION = \\"AWS_CREDENTIAL_EXPIRATION\\"; - var fromEnv = () => async () => { - const accessKeyId = process.env[exports2.ENV_KEY]; - const secretAccessKey = process.env[exports2.ENV_SECRET]; - const sessionToken = process.env[exports2.ENV_SESSION]; - const expiry = process.env[exports2.ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...sessionToken && { sessionToken }, - ...expiry && { expiration: new Date(expiry) } - }; - } - throw new property_provider_1.CredentialsProviderError(\\"Unable to find environment variable credentials.\\"); - }; - exports2.fromEnv = fromEnv; - } -}); - -// node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js -var require_dist_cjs24 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromEnv(), exports2); - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js -var require_getHomeDir = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getHomeDir = void 0; - var os_1 = require(\\"os\\"); - var path_1 = require(\\"path\\"); - var getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = \`C:\${path_1.sep}\` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return \`\${HOMEDRIVE}\${HOMEPATH}\`; - return (0, os_1.homedir)(); - }; - exports2.getHomeDir = getHomeDir; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js -var require_getProfileName = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getProfileName = exports2.DEFAULT_PROFILE = exports2.ENV_PROFILE = void 0; - exports2.ENV_PROFILE = \\"AWS_PROFILE\\"; - exports2.DEFAULT_PROFILE = \\"default\\"; - var getProfileName = (init) => init.profile || process.env[exports2.ENV_PROFILE] || exports2.DEFAULT_PROFILE; - exports2.getProfileName = getProfileName; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js -var require_getSSOTokenFilepath = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSSOTokenFilepath = void 0; - var crypto_1 = require(\\"crypto\\"); - var path_1 = require(\\"path\\"); - var getHomeDir_1 = require_getHomeDir(); - var getSSOTokenFilepath = (ssoStartUrl) => { - const hasher = (0, crypto_1.createHash)(\\"sha1\\"); - const cacheName = hasher.update(ssoStartUrl).digest(\\"hex\\"); - return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"sso\\", \\"cache\\", \`\${cacheName}.json\`); - }; - exports2.getSSOTokenFilepath = getSSOTokenFilepath; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js -var require_getSSOTokenFromFile = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSSOTokenFromFile = void 0; - var fs_1 = require(\\"fs\\"); - var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); - var { readFile } = fs_1.promises; - var getSSOTokenFromFile = async (ssoStartUrl) => { - const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); - const ssoTokenText = await readFile(ssoTokenFilepath, \\"utf8\\"); - return JSON.parse(ssoTokenText); - }; - exports2.getSSOTokenFromFile = getSSOTokenFromFile; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js -var require_getConfigFilepath = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getConfigFilepath = exports2.ENV_CONFIG_PATH = void 0; - var path_1 = require(\\"path\\"); - var getHomeDir_1 = require_getHomeDir(); - exports2.ENV_CONFIG_PATH = \\"AWS_CONFIG_FILE\\"; - var getConfigFilepath = () => process.env[exports2.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"config\\"); - exports2.getConfigFilepath = getConfigFilepath; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js -var require_getCredentialsFilepath = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCredentialsFilepath = exports2.ENV_CREDENTIALS_PATH = void 0; - var path_1 = require(\\"path\\"); - var getHomeDir_1 = require_getHomeDir(); - exports2.ENV_CREDENTIALS_PATH = \\"AWS_SHARED_CREDENTIALS_FILE\\"; - var getCredentialsFilepath = () => process.env[exports2.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"credentials\\"); - exports2.getCredentialsFilepath = getCredentialsFilepath; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js -var require_getProfileData = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getProfileData = void 0; - var profileKeyRegex = /^profile\\\\s([\\"'])?([^\\\\1]+)\\\\1$/; - var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { - ...data.default && { default: data.default } - }); - exports2.getProfileData = getProfileData; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js -var require_parseIni = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseIni = void 0; - var profileNameBlockList = [\\"__proto__\\", \\"profile __proto__\\"]; - var parseIni = (iniData) => { - const map = {}; - let currentSection; - for (let line of iniData.split(/\\\\r?\\\\n/)) { - line = line.split(/(^|\\\\s)[;#]/)[0].trim(); - const isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (profileNameBlockList.includes(currentSection)) { - throw new Error(\`Found invalid profile name \\"\${currentSection}\\"\`); - } - } else if (currentSection) { - const indexOfEqualsSign = line.indexOf(\\"=\\"); - const start = 0; - const end = line.length - 1; - const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - const [name, value] = [ - line.substring(0, indexOfEqualsSign).trim(), - line.substring(indexOfEqualsSign + 1).trim() - ]; - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - } - return map; - }; - exports2.parseIni = parseIni; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js -var require_slurpFile = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.slurpFile = void 0; - var fs_1 = require(\\"fs\\"); - var { readFile } = fs_1.promises; - var filePromisesHash = {}; - var slurpFile = (path) => { - if (!filePromisesHash[path]) { - filePromisesHash[path] = readFile(path, \\"utf8\\"); - } - return filePromisesHash[path]; - }; - exports2.slurpFile = slurpFile; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js -var require_loadSharedConfigFiles = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadSharedConfigFiles = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getCredentialsFilepath_1 = require_getCredentialsFilepath(); - var getProfileData_1 = require_getProfileData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; - const parsedFiles = await Promise.all([ - (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError) - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1] - }; - }; - exports2.loadSharedConfigFiles = loadSharedConfigFiles; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js -var require_parseKnownFiles = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseKnownFiles = void 0; - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); - var parseKnownFiles = async (init) => { - const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); - return { - ...parsedFiles.configFile, - ...parsedFiles.credentialsFile - }; - }; - exports2.parseKnownFiles = parseKnownFiles; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js -var require_types2 = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js -var require_dist_cjs25 = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_getHomeDir(), exports2); - tslib_1.__exportStar(require_getProfileName(), exports2); - tslib_1.__exportStar(require_getSSOTokenFilepath(), exports2); - tslib_1.__exportStar(require_getSSOTokenFromFile(), exports2); - tslib_1.__exportStar(require_loadSharedConfigFiles(), exports2); - tslib_1.__exportStar(require_parseKnownFiles(), exports2); - tslib_1.__exportStar(require_types2(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js -var require_httpRequest2 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.httpRequest = void 0; - var property_provider_1 = require_dist_cjs16(); - var buffer_1 = require(\\"buffer\\"); - var http_1 = require(\\"http\\"); - function httpRequest(options) { - return new Promise((resolve, reject) => { - var _a; - const req = (0, http_1.request)({ - method: \\"GET\\", - ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\\\\[(.+)\\\\]$/, \\"$1\\") - }); - req.on(\\"error\\", (err) => { - reject(Object.assign(new property_provider_1.ProviderError(\\"Unable to connect to instance metadata service\\"), err)); - req.destroy(); - }); - req.on(\\"timeout\\", () => { - reject(new property_provider_1.ProviderError(\\"TimeoutError from instance metadata service\\")); - req.destroy(); - }); - req.on(\\"response\\", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError(\\"Error response received from instance metadata service\\"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on(\\"data\\", (chunk) => { - chunks.push(chunk); - }); - res.on(\\"end\\", () => { - resolve(buffer_1.Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); - } - exports2.httpRequest = httpRequest; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js -var require_ImdsCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromImdsCredentials = exports2.isImdsCredentials = void 0; - var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.AccessKeyId === \\"string\\" && typeof arg.SecretAccessKey === \\"string\\" && typeof arg.Token === \\"string\\" && typeof arg.Expiration === \\"string\\"; - exports2.isImdsCredentials = isImdsCredentials; - var fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration) - }); - exports2.fromImdsCredentials = fromImdsCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js -var require_RemoteProviderInit = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.providerConfigFromInit = exports2.DEFAULT_MAX_RETRIES = exports2.DEFAULT_TIMEOUT = void 0; - exports2.DEFAULT_TIMEOUT = 1e3; - exports2.DEFAULT_MAX_RETRIES = 0; - var providerConfigFromInit = ({ maxRetries = exports2.DEFAULT_MAX_RETRIES, timeout = exports2.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); - exports2.providerConfigFromInit = providerConfigFromInit; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js -var require_retry = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.retry = void 0; - var retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; - }; - exports2.retry = retry; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js -var require_fromContainerMetadata = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromContainerMetadata = exports2.ENV_CMDS_AUTH_TOKEN = exports2.ENV_CMDS_RELATIVE_URI = exports2.ENV_CMDS_FULL_URI = void 0; - var property_provider_1 = require_dist_cjs16(); - var url_1 = require(\\"url\\"); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry(); - exports2.ENV_CMDS_FULL_URI = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; - exports2.ENV_CMDS_RELATIVE_URI = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; - exports2.ENV_CMDS_AUTH_TOKEN = \\"AWS_CONTAINER_AUTHORIZATION_TOKEN\\"; - var fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - return () => (0, retry_1.retry)(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }, maxRetries); - }; - exports2.fromContainerMetadata = fromContainerMetadata; - var requestFromEcsImds = async (timeout, options) => { - if (process.env[exports2.ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[exports2.ENV_CMDS_AUTH_TOKEN] - }; - } - const buffer = await (0, httpRequest_1.httpRequest)({ - ...options, - timeout - }); - return buffer.toString(); - }; - var CMDS_IP = \\"169.254.170.2\\"; - var GREENGRASS_HOSTS = { - localhost: true, - \\"127.0.0.1\\": true - }; - var GREENGRASS_PROTOCOLS = { - \\"http:\\": true, - \\"https:\\": true - }; - var getCmdsUri = async () => { - if (process.env[exports2.ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[exports2.ENV_CMDS_RELATIVE_URI] - }; - } - if (process.env[exports2.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports2.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(\`\${parsed.hostname} is not a valid container metadata service hostname\`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(\`\${parsed.protocol} is not a valid container metadata service protocol\`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : void 0 - }; - } - throw new property_provider_1.CredentialsProviderError(\`The container metadata credential provider cannot be used unless the \${exports2.ENV_CMDS_RELATIVE_URI} or \${exports2.ENV_CMDS_FULL_URI} environment variable is set\`, false); - }; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js -var require_fromEnv2 = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromEnv = void 0; - var property_provider_1 = require_dist_cjs16(); - var fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === void 0) { - throw new Error(); - } - return config; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config from environment variables with getter: \${envVarSelector}\`); - } - }; - exports2.fromEnv = fromEnv; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js -var require_fromSharedConfigFiles = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromSharedConfigFiles = void 0; - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var fromSharedConfigFiles = (configSelector, { preferredFile = \\"config\\", ...init } = {}) => async () => { - const profile = (0, shared_ini_file_loader_1.getProfileName)(init); - const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === \\"config\\" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; - try { - const configValue = configSelector(mergedProfile); - if (configValue === void 0) { - throw new Error(); - } - return configValue; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config for profile \${profile} in SDK configuration files with getter: \${configSelector}\`); - } - }; - exports2.fromSharedConfigFiles = fromSharedConfigFiles; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js -var require_fromStatic2 = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromStatic = void 0; - var property_provider_1 = require_dist_cjs16(); - var isFunction = (func) => typeof func === \\"function\\"; - var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); - exports2.fromStatic = fromStatic; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js -var require_configLoader = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadConfig = void 0; - var property_provider_1 = require_dist_cjs16(); - var fromEnv_1 = require_fromEnv2(); - var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); - var fromStatic_1 = require_fromStatic2(); - var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); - exports2.loadConfig = loadConfig; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js -var require_dist_cjs26 = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configLoader(), exports2); - } -}); - -// node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js -var require_dist_cjs27 = __commonJS({ - \\"node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseQueryString = void 0; - function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\\\\?/, \\"\\"); - if (querystring) { - for (const pair of querystring.split(\\"&\\")) { - let [key, value = null] = pair.split(\\"=\\"); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } else if (Array.isArray(query[key])) { - query[key].push(value); - } else { - query[key] = [query[key], value]; - } - } - } - return query; - } - exports2.parseQueryString = parseQueryString; - } -}); - -// node_modules/@aws-sdk/url-parser/dist-cjs/index.js -var require_dist_cjs28 = __commonJS({ - \\"node_modules/@aws-sdk/url-parser/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseUrl = void 0; - var querystring_parser_1 = require_dist_cjs27(); - var parseUrl = (url) => { - const { hostname, pathname, port, protocol, search } = new URL(url); - let query; - if (search) { - query = (0, querystring_parser_1.parseQueryString)(search); - } - return { - hostname, - port: port ? parseInt(port) : void 0, - protocol, - path: pathname, - query - }; - }; - exports2.parseUrl = parseUrl; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js -var require_Endpoint2 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Endpoint = void 0; - var Endpoint; - (function(Endpoint2) { - Endpoint2[\\"IPv4\\"] = \\"http://169.254.169.254\\"; - Endpoint2[\\"IPv6\\"] = \\"http://[fd00:ec2::254]\\"; - })(Endpoint = exports2.Endpoint || (exports2.Endpoint = {})); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js -var require_EndpointConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ENDPOINT_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_NAME = exports2.ENV_ENDPOINT_NAME = void 0; - exports2.ENV_ENDPOINT_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT\\"; - exports2.CONFIG_ENDPOINT_NAME = \\"ec2_metadata_service_endpoint\\"; - exports2.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_NAME], - default: void 0 - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js -var require_EndpointMode = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.EndpointMode = void 0; - var EndpointMode; - (function(EndpointMode2) { - EndpointMode2[\\"IPv4\\"] = \\"IPv4\\"; - EndpointMode2[\\"IPv6\\"] = \\"IPv6\\"; - })(EndpointMode = exports2.EndpointMode || (exports2.EndpointMode = {})); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js -var require_EndpointModeConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ENDPOINT_MODE_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_MODE_NAME = exports2.ENV_ENDPOINT_MODE_NAME = void 0; - var EndpointMode_1 = require_EndpointMode(); - exports2.ENV_ENDPOINT_MODE_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE\\"; - exports2.CONFIG_ENDPOINT_MODE_NAME = \\"ec2_metadata_service_endpoint_mode\\"; - exports2.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4 - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js -var require_getInstanceMetadataEndpoint = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getInstanceMetadataEndpoint = void 0; - var node_config_provider_1 = require_dist_cjs26(); - var url_parser_1 = require_dist_cjs28(); - var Endpoint_1 = require_Endpoint2(); - var EndpointConfigOptions_1 = require_EndpointConfigOptions(); - var EndpointMode_1 = require_EndpointMode(); - var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); - var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); - exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; - var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); - var getFromEndpointModeConfig = async () => { - const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; - default: - throw new Error(\`Unsupported endpoint mode: \${endpointMode}. Select from \${Object.values(EndpointMode_1.EndpointMode)}\`); - } - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js -var require_getExtendedInstanceMetadataCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getExtendedInstanceMetadataCredentials = void 0; - var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; - var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; - var STATIC_STABILITY_DOC_URL = \\"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\\"; - var getExtendedInstanceMetadataCredentials = (credentials, logger) => { - var _a; - const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); - const newExpiration = new Date(Date.now() + refreshInterval * 1e3); - logger.warn(\\"Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after \${new Date(newExpiration)}.\\\\nFor more information, please visit: \\" + STATIC_STABILITY_DOC_URL); - const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; - return { - ...credentials, - ...originalExpiration ? { originalExpiration } : {}, - expiration: newExpiration - }; - }; - exports2.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js -var require_staticStabilityProvider = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.staticStabilityProvider = void 0; - var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); - var staticStabilityProvider = (provider, options = {}) => { - const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; - let pastCredentials; - return async () => { - let credentials; - try { - credentials = await provider(); - if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); - } - } catch (e) { - if (pastCredentials) { - logger.warn(\\"Credential renew failed: \\", e); - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); - } else { - throw e; - } - } - pastCredentials = credentials; - return credentials; - }; - }; - exports2.staticStabilityProvider = staticStabilityProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js -var require_fromInstanceMetadata = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromInstanceMetadata = void 0; - var property_provider_1 = require_dist_cjs16(); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry(); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - var staticStabilityProvider_1 = require_staticStabilityProvider(); - var IMDS_PATH = \\"/latest/meta-data/iam/security-credentials/\\"; - var IMDS_TOKEN_PATH = \\"/latest/api/token\\"; - var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); - exports2.fromInstanceMetadata = fromInstanceMetadata; - var getInstanceImdsProvider = (init) => { - let disableFetchToken = false; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries2, options) => { - const profile = (await (0, retry_1.retry)(async () => { - let profile2; - try { - profile2 = await getProfile(options); - } catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; + else if (c === \\">\\") { + v1742(parser); } - throw err; - } - return profile2; - }, maxRetries2)).trim(); - return (0, retry_1.retry)(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(profile, options); - } catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; + else if (c === \\"/\\") { + parser.state = 22; } - throw err; - } - return creds; - }, maxRetries2); - }; - return async () => { - const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); - if (disableFetchToken) { - return getCredentials(maxRetries, { ...endpoint, timeout }); - } else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { - throw Object.assign(error, { - message: \\"EC2 Metadata token request returned error\\" - }); - } else if (error.message === \\"TimeoutError\\" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; + else if (v1736(v1722, c)) { + v1716(parser, \\"No whitespace between attributes\\"); + parser.attribName = c; + parser.attribValue = \\"\\"; + parser.state = 24; } - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - \\"x-aws-ec2-metadata-token\\": token - }, - timeout - }); - } - }; - }; - var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_TOKEN_PATH, - method: \\"PUT\\", - headers: { - \\"x-aws-ec2-metadata-token-ttl-seconds\\": \\"21600\\" - } - }); - var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); - var getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_PATH + profile - })).toString()); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js -var require_types3 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js -var require_dist_cjs29 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getInstanceMetadataEndpoint = exports2.httpRequest = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromContainerMetadata(), exports2); - tslib_1.__exportStar(require_fromInstanceMetadata(), exports2); - tslib_1.__exportStar(require_RemoteProviderInit(), exports2); - tslib_1.__exportStar(require_types3(), exports2); - var httpRequest_1 = require_httpRequest2(); - Object.defineProperty(exports2, \\"httpRequest\\", { enumerable: true, get: function() { - return httpRequest_1.httpRequest; - } }); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - Object.defineProperty(exports2, \\"getInstanceMetadataEndpoint\\", { enumerable: true, get: function() { - return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; - } }); - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js -var require_resolveCredentialSource = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveCredentialSource = void 0; - var credential_provider_env_1 = require_dist_cjs24(); - var credential_provider_imds_1 = require_dist_cjs29(); - var property_provider_1 = require_dist_cjs16(); - var resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } else { - throw new property_provider_1.CredentialsProviderError(\`Unsupported credential source in profile \${profileName}. Got \${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.\`); - } - }; - exports2.resolveCredentialSource = resolveCredentialSource; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js -var require_resolveAssumeRoleCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveAssumeRoleCredentials = exports2.isAssumeRoleProfile = void 0; - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var resolveCredentialSource_1 = require_resolveCredentialSource(); - var resolveProfileData_1 = require_resolveProfileData(); - var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.external_id) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); - exports2.isAssumeRoleProfile = isAssumeRoleProfile; - var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === \\"string\\" && typeof arg.credential_source === \\"undefined\\"; - var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === \\"string\\" && typeof arg.source_profile === \\"undefined\\"; - var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires a role to be assumed, but no role assumption callback was provided.\`, false); - } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(\`Detected a cycle attempting to resolve credentials for profile \${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: \` + Object.keys(visitedProfiles).join(\\", \\"), false); - } - const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true - }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || \`aws-sdk-js-\${Date.now()}\`, - ExternalId: data.external_id - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires multi-factor authentication, but no MFA code callback was provided.\`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); - } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); - }; - exports2.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js -var require_isSsoProfile = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isSsoProfile = void 0; - var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === \\"string\\" || typeof arg.sso_account_id === \\"string\\" || typeof arg.sso_region === \\"string\\" || typeof arg.sso_role_name === \\"string\\"); - exports2.isSsoProfile = isSsoProfile; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js -var require_SSOServiceException = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSOServiceException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var SSOServiceException = class extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); - } - }; - exports2.SSOServiceException = SSOServiceException; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js -var require_models_03 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.LogoutRequestFilterSensitiveLog = exports2.ListAccountsResponseFilterSensitiveLog = exports2.ListAccountsRequestFilterSensitiveLog = exports2.ListAccountRolesResponseFilterSensitiveLog = exports2.RoleInfoFilterSensitiveLog = exports2.ListAccountRolesRequestFilterSensitiveLog = exports2.GetRoleCredentialsResponseFilterSensitiveLog = exports2.RoleCredentialsFilterSensitiveLog = exports2.GetRoleCredentialsRequestFilterSensitiveLog = exports2.AccountInfoFilterSensitiveLog = exports2.UnauthorizedException = exports2.TooManyRequestsException = exports2.ResourceNotFoundException = exports2.InvalidRequestException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var SSOServiceException_1 = require_SSOServiceException(); - var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"InvalidRequestException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidRequestException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); - } - }; - exports2.InvalidRequestException = InvalidRequestException; - var ResourceNotFoundException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"ResourceNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ResourceNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } - }; - exports2.ResourceNotFoundException = ResourceNotFoundException; - var TooManyRequestsException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"TooManyRequestsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TooManyRequestsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); - } - }; - exports2.TooManyRequestsException = TooManyRequestsException; - var UnauthorizedException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"UnauthorizedException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"UnauthorizedException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); - } - }; - exports2.UnauthorizedException = UnauthorizedException; - var AccountInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; - var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; - var RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, - ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; - var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.roleCredentials && { roleCredentials: (0, exports2.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } - }); - exports2.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; - var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; - var RoleInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; - var ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; - var ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; - var ListAccountsResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; - var LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js -var require_Aws_restJson1 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.deserializeAws_restJson1LogoutCommand = exports2.deserializeAws_restJson1ListAccountsCommand = exports2.deserializeAws_restJson1ListAccountRolesCommand = exports2.deserializeAws_restJson1GetRoleCredentialsCommand = exports2.serializeAws_restJson1LogoutCommand = exports2.serializeAws_restJson1ListAccountsCommand = exports2.serializeAws_restJson1ListAccountRolesCommand = exports2.serializeAws_restJson1GetRoleCredentialsCommand = void 0; - var protocol_http_1 = require_dist_cjs4(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var SSOServiceException_1 = require_SSOServiceException(); - var serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/federation/credentials\`; - const query = map({ - role_name: [, input.roleName], - account_id: [, input.accountId] - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"GET\\", - headers, - path: resolvedPath, - query, - body - }); - }; - exports2.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; - var serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/roles\`; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, input.accountId] - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"GET\\", - headers, - path: resolvedPath, - query, - body - }); - }; - exports2.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; - var serializeAws_restJson1ListAccountsCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/accounts\`; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()] - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"GET\\", - headers, - path: resolvedPath, - query, - body - }); - }; - exports2.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; - var serializeAws_restJson1LogoutCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/logout\`; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"POST\\", - headers, - path: resolvedPath, - body - }); - }; - exports2.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; - var deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); - if (data.roleCredentials != null) { - contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); - } - return contents; - }; - exports2.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; - var deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.sso#ResourceNotFoundException\\": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountRolesCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); - if (data.nextToken != null) { - contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); - } - if (data.roleList != null) { - contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); - } - return contents; - }; - exports2.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; - var deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.sso#ResourceNotFoundException\\": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var deserializeAws_restJson1ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); - if (data.accountList != null) { - contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); - } - if (data.nextToken != null) { - contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); - } - return contents; - }; - exports2.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; - var deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.sso#ResourceNotFoundException\\": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var deserializeAws_restJson1LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1LogoutCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - await collectBody(output.body, context); - return contents; - }; - exports2.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; - var deserializeAws_restJson1LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var map = smithy_client_1.map; - var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1AccountInfo = (output, context) => { - return { - accountId: (0, smithy_client_1.expectString)(output.accountId), - accountName: (0, smithy_client_1.expectString)(output.accountName), - emailAddress: (0, smithy_client_1.expectString)(output.emailAddress) - }; - }; - var deserializeAws_restJson1AccountListType = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1AccountInfo(entry, context); - }); - return retVal; - }; - var deserializeAws_restJson1RoleCredentials = (output, context) => { - return { - accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), - expiration: (0, smithy_client_1.expectLong)(output.expiration), - secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), - sessionToken: (0, smithy_client_1.expectString)(output.sessionToken) - }; - }; - var deserializeAws_restJson1RoleInfo = (output, context) => { - return { - accountId: (0, smithy_client_1.expectString)(output.accountId), - roleName: (0, smithy_client_1.expectString)(output.roleName) - }; - }; - var deserializeAws_restJson1RoleListType = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1RoleInfo(entry, context); - }); - return retVal; - }; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - var collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); - }; - var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== \\"\\" && (!Object.getOwnPropertyNames(value).includes(\\"length\\") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes(\\"size\\") || value.size != 0); - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; - }); - var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === \\"number\\") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(\\":\\") >= 0) { - cleanValue = cleanValue.split(\\":\\")[0]; - } - if (cleanValue.indexOf(\\"#\\") >= 0) { - cleanValue = cleanValue.split(\\"#\\")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data[\\"__type\\"] !== void 0) { - return sanitizeErrorCode(data[\\"__type\\"]); - } - }; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js -var require_GetRoleCredentialsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetRoleCredentialsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var GetRoleCredentialsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"GetRoleCredentialsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); - } - }; - exports2.GetRoleCredentialsCommand = GetRoleCredentialsCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js -var require_ListAccountRolesCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListAccountRolesCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var ListAccountRolesCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"ListAccountRolesCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); - } - }; - exports2.ListAccountRolesCommand = ListAccountRolesCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js -var require_ListAccountsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListAccountsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var ListAccountsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"ListAccountsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); - } - }; - exports2.ListAccountsCommand = ListAccountsCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js -var require_LogoutCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.LogoutCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var LogoutCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"LogoutCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); - } - }; - exports2.LogoutCommand = LogoutCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/package.json -var require_package3 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/package.json\\"(exports2, module2) { - module2.exports = { - name: \\"@aws-sdk/client-sso\\", - description: \\"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native\\", - version: \\"3.145.0\\", - scripts: { - build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", - \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", - \\"build:docs\\": \\"typedoc\\", - \\"build:es\\": \\"tsc -p tsconfig.es.json\\", - \\"build:types\\": \\"tsc -p tsconfig.types.json\\", - \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", - clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" - }, - main: \\"./dist-cjs/index.js\\", - types: \\"./dist-types/index.d.ts\\", - module: \\"./dist-es/index.js\\", - sideEffects: false, - dependencies: { - \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", - \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", - \\"@aws-sdk/config-resolver\\": \\"3.130.0\\", - \\"@aws-sdk/fetch-http-handler\\": \\"3.131.0\\", - \\"@aws-sdk/hash-node\\": \\"3.127.0\\", - \\"@aws-sdk/invalid-dependency\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-content-length\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-host-header\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-logger\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-recursion-detection\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-retry\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-serde\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-stack\\": \\"3.127.0\\", - \\"@aws-sdk/middleware-user-agent\\": \\"3.127.0\\", - \\"@aws-sdk/node-config-provider\\": \\"3.127.0\\", - \\"@aws-sdk/node-http-handler\\": \\"3.127.0\\", - \\"@aws-sdk/protocol-http\\": \\"3.127.0\\", - \\"@aws-sdk/smithy-client\\": \\"3.142.0\\", - \\"@aws-sdk/types\\": \\"3.127.0\\", - \\"@aws-sdk/url-parser\\": \\"3.127.0\\", - \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-browser\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.142.0\\", - \\"@aws-sdk/util-defaults-mode-node\\": \\"3.142.0\\", - \\"@aws-sdk/util-user-agent-browser\\": \\"3.127.0\\", - \\"@aws-sdk/util-user-agent-node\\": \\"3.127.0\\", - \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", - tslib: \\"^2.3.1\\" - }, - devDependencies: { - \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", - \\"@tsconfig/recommended\\": \\"1.0.1\\", - \\"@types/node\\": \\"^12.7.5\\", - concurrently: \\"7.0.0\\", - \\"downlevel-dts\\": \\"0.7.0\\", - rimraf: \\"3.0.2\\", - typedoc: \\"0.19.2\\", - typescript: \\"~4.6.2\\" - }, - overrides: { - typedoc: { - typescript: \\"~4.6.2\\" - } - }, - engines: { - node: \\">=12.0.0\\" - }, - typesVersions: { - \\"<4.0\\": { - \\"dist-types/*\\": [ - \\"dist-types/ts3.4/*\\" - ] - } - }, - files: [ - \\"dist-*\\" - ], - author: { - name: \\"AWS SDK for JavaScript Team\\", - url: \\"https://aws.amazon.com/javascript/\\" - }, - license: \\"Apache-2.0\\", - browser: { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" - }, - \\"react-native\\": { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" - }, - homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso\\", - repository: { - type: \\"git\\", - url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", - directory: \\"clients/client-sso\\" - } - }; - } -}); - -// node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js -var require_dist_cjs30 = __commonJS({ - \\"node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromString = exports2.fromArrayBuffer = void 0; - var is_array_buffer_1 = require_dist_cjs19(); - var buffer_1 = require(\\"buffer\\"); - var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { - throw new TypeError(\`The \\"input\\" argument must be ArrayBuffer. Received type \${typeof input} (\${input})\`); - } - return buffer_1.Buffer.from(input, offset, length); - }; - exports2.fromArrayBuffer = fromArrayBuffer; - var fromString = (input, encoding) => { - if (typeof input !== \\"string\\") { - throw new TypeError(\`The \\"input\\" argument must be of type string. Received type \${typeof input} (\${input})\`); - } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); - }; - exports2.fromString = fromString; - } -}); - -// node_modules/@aws-sdk/hash-node/dist-cjs/index.js -var require_dist_cjs31 = __commonJS({ - \\"node_modules/@aws-sdk/hash-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Hash = void 0; - var util_buffer_from_1 = require_dist_cjs30(); - var buffer_1 = require(\\"buffer\\"); - var crypto_1 = require(\\"crypto\\"); - var Hash = class { - constructor(algorithmIdentifier, secret) { - this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); - } - update(toHash, encoding) { - this.hash.update(castSourceData(toHash, encoding)); - } - digest() { - return Promise.resolve(this.hash.digest()); - } - }; - exports2.Hash = Hash; - function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === \\"string\\") { - return (0, util_buffer_from_1.fromString)(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return (0, util_buffer_from_1.fromArrayBuffer)(toCast); - } - } -}); - -// node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js -var require_dist_cjs32 = __commonJS({ - \\"node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.buildQueryString = void 0; - var util_uri_escape_1 = require_dist_cjs18(); - function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = (0, util_uri_escape_1.escapeUri)(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(\`\${key}=\${(0, util_uri_escape_1.escapeUri)(value[i])}\`); - } - } else { - let qsEntry = key; - if (value || typeof value === \\"string\\") { - qsEntry += \`=\${(0, util_uri_escape_1.escapeUri)(value)}\`; - } - parts.push(qsEntry); - } - } - return parts.join(\\"&\\"); - } - exports2.buildQueryString = buildQueryString; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js -var require_constants6 = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODEJS_TIMEOUT_ERROR_CODES = void 0; - exports2.NODEJS_TIMEOUT_ERROR_CODES = [\\"ECONNRESET\\", \\"EPIPE\\", \\"ETIMEDOUT\\"]; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js -var require_get_transformed_headers = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getTransformedHeaders = void 0; - var getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(\\",\\") : headerValues; - } - return transformedHeaders; - }; - exports2.getTransformedHeaders = getTransformedHeaders; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js -var require_set_connection_timeout = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.setConnectionTimeout = void 0; - var setConnectionTimeout = (request, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; - } - request.on(\\"socket\\", (socket) => { - if (socket.connecting) { - const timeoutId = setTimeout(() => { - request.destroy(); - reject(Object.assign(new Error(\`Socket timed out without establishing a connection within \${timeoutInMs} ms\`), { - name: \\"TimeoutError\\" - })); - }, timeoutInMs); - socket.on(\\"connect\\", () => { - clearTimeout(timeoutId); - }); - } - }); - }; - exports2.setConnectionTimeout = setConnectionTimeout; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js -var require_set_socket_timeout = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.setSocketTimeout = void 0; - var setSocketTimeout = (request, reject, timeoutInMs = 0) => { - request.setTimeout(timeoutInMs, () => { - request.destroy(); - reject(Object.assign(new Error(\`Connection timed out after \${timeoutInMs} ms\`), { name: \\"TimeoutError\\" })); - }); - }; - exports2.setSocketTimeout = setSocketTimeout; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js -var require_write_request_body = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.writeRequestBody = void 0; - var stream_1 = require(\\"stream\\"); - function writeRequestBody(httpRequest, request) { - const expect = request.headers[\\"Expect\\"] || request.headers[\\"expect\\"]; - if (expect === \\"100-continue\\") { - httpRequest.on(\\"continue\\", () => { - writeBody(httpRequest, request.body); - }); - } else { - writeBody(httpRequest, request.body); - } - } - exports2.writeRequestBody = writeRequestBody; - function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { - body.pipe(httpRequest); - } else if (body) { - httpRequest.end(Buffer.from(body)); - } else { - httpRequest.end(); - } - } - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js -var require_node_http_handler = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NodeHttpHandler = void 0; - var protocol_http_1 = require_dist_cjs4(); - var querystring_builder_1 = require_dist_cjs32(); - var http_1 = require(\\"http\\"); - var https_1 = require(\\"https\\"); - var constants_1 = require_constants6(); - var get_transformed_headers_1 = require_get_transformed_headers(); - var set_connection_timeout_1 = require_set_connection_timeout(); - var set_socket_timeout_1 = require_set_socket_timeout(); - var write_request_body_1 = require_write_request_body(); - var NodeHttpHandler = class { - constructor(options) { - this.metadata = { handlerProtocol: \\"http/1.1\\" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === \\"function\\") { - options().then((_options) => { - resolve(this.resolveDefaultConfig(_options)); - }).catch(reject); - } else { - resolve(this.resolveDefaultConfig(options)); - } - }); - } - resolveDefaultConfig(options) { - const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; - const keepAlive = true; - const maxSockets = 50; - return { - connectionTimeout, - socketTimeout, - httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) - }; - } - destroy() { - var _a, _b, _c, _d; - (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); - (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - return new Promise((resolve, reject) => { - if (!this.config) { - throw new Error(\\"Node HTTP request handler config is not resolved\\"); - } - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - reject(abortError); - return; - } - const isSSL = request.protocol === \\"https:\\"; - const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); - const nodeHttpsOptions = { - headers: request.headers, - host: request.hostname, - method: request.method, - path: queryString ? \`\${request.path}?\${queryString}\` : request.path, - port: request.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent - }; - const requestFunc = isSSL ? https_1.request : http_1.request; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: res.statusCode || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), - body: res - }); - resolve({ response: httpResponse }); - }); - req.on(\\"error\\", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: \\"TimeoutError\\" })); - } else { - reject(err); + else { + v1716(parser, \\"Invalid attribute name\\"); } - }); - (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); - (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - reject(abortError); - }; - } - (0, write_request_body_1.writeRequestBody)(req, request); - }); - } - }; - exports2.NodeHttpHandler = NodeHttpHandler; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js -var require_node_http2_handler = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NodeHttp2Handler = void 0; - var protocol_http_1 = require_dist_cjs4(); - var querystring_builder_1 = require_dist_cjs32(); - var http2_1 = require(\\"http2\\"); - var get_transformed_headers_1 = require_get_transformed_headers(); - var write_request_body_1 = require_write_request_body(); - var NodeHttp2Handler = class { - constructor(options) { - this.metadata = { handlerProtocol: \\"h2\\" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === \\"function\\") { - options().then((opts) => { - resolve(opts || {}); - }).catch(reject); - } else { - resolve(options || {}); - } - }); - this.sessionCache = /* @__PURE__ */ new Map(); - } - destroy() { - for (const sessions of this.sessionCache.values()) { - sessions.forEach((session) => this.destroySession(session)); - } - this.sessionCache.clear(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - const { requestTimeout, disableConcurrentStreams } = this.config; - return new Promise((resolve, rejectOriginal) => { - let fulfilled = false; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - fulfilled = true; - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - rejectOriginal(abortError); - return; - } - const { hostname, method, port, protocol, path, query } = request; - const authority = \`\${protocol}//\${hostname}\${port ? \`:\${port}\` : \\"\\"}\`; - const session = this.getSession(authority, disableConcurrentStreams || false); - const reject = (err) => { - if (disableConcurrentStreams) { - this.destroySession(session); + continue; + case 29: + if (!v1767(c)) { + if (c === \\"&\\") { + parser.state = 31; + } + else { + parser.attribValue += c; + } + continue; } - fulfilled = true; - rejectOriginal(err); - }; - const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); - const req = session.request({ - ...request.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? \`\${path}?\${queryString}\` : path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method - }); - session.ref(); - req.on(\\"response\\", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: headers[\\":status\\"] || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), - body: req - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (disableConcurrentStreams) { - session.close(); - this.deleteSessionFromCache(authority, session); + v1758(parser); + if (c === \\">\\") { + v1742(parser); } - }); - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(\`Stream timed out because of no activity for \${requestTimeout} ms\`); - timeoutError.name = \\"TimeoutError\\"; - reject(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - reject(abortError); - }; - } - req.on(\\"frameError\\", (type, code, id) => { - reject(new Error(\`Frame type id \${type} in stream id \${id} has failed with code \${code}.\`)); - }); - req.on(\\"error\\", reject); - req.on(\\"aborted\\", () => { - reject(new Error(\`HTTP/2 stream is abnormally aborted in mid-communication with result code \${req.rstCode}.\`)); - }); - req.on(\\"close\\", () => { - session.unref(); - if (disableConcurrentStreams) { - session.destroy(); + else { + parser.state = 23; } - if (!fulfilled) { - reject(new Error(\\"Unexpected error: http2 request did not get a response\\")); + continue; + case 32: + if (!parser.tagName) { + if (v1713(c)) { + continue; + } + else if (v1771(v1722, c)) { + if (parser.script) { + parser.script += \\" 0 && !disableConcurrentStreams) - return existingSessions[0]; - const newSession = (0, http2_1.connect)(authority); - newSession.unref(); - const destroySessionCb = () => { - this.destroySession(newSession); - this.deleteSessionFromCache(authority, newSession); - }; - newSession.on(\\"goaway\\", destroySessionCb); - newSession.on(\\"error\\", destroySessionCb); - newSession.on(\\"frameError\\", destroySessionCb); - newSession.on(\\"close\\", () => this.deleteSessionFromCache(authority, newSession)); - if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { - newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); - } - existingSessions.push(newSession); - sessionCache.set(authority, existingSessions); - return newSession; - } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } - } - deleteSessionFromCache(authority, session) { - const existingSessions = this.sessionCache.get(authority) || []; - if (!existingSessions.includes(session)) { - return; - } - this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); - } - }; - exports2.NodeHttp2Handler = NodeHttp2Handler; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js -var require_collector = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Collector = void 0; - var stream_1 = require(\\"stream\\"); - var Collector = class extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } - }; - exports2.Collector = Collector; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js -var require_stream_collector = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.streamCollector = void 0; - var collector_1 = require_collector(); - var streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); - stream.pipe(collector); - stream.on(\\"error\\", (err) => { - collector.end(); - reject(err); - }); - collector.on(\\"error\\", reject); - collector.on(\\"finish\\", function() { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); - }); - exports2.streamCollector = streamCollector; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js -var require_dist_cjs33 = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_node_http_handler(), exports2); - tslib_1.__exportStar(require_node_http2_handler(), exports2); - tslib_1.__exportStar(require_stream_collector(), exports2); - } -}); - -// node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js -var require_dist_cjs34 = __commonJS({ - \\"node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toBase64 = exports2.fromBase64 = void 0; - var util_buffer_from_1 = require_dist_cjs30(); - var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; - function fromBase64(input) { - if (input.length * 3 % 4 !== 0) { - throw new TypeError(\`Incorrect padding on base64 string.\`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(\`Invalid base64 string.\`); - } - const buffer = (0, util_buffer_from_1.fromString)(input, \\"base64\\"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); - } - exports2.fromBase64 = fromBase64; - function toBase64(input) { - return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"base64\\"); - } - exports2.toBase64 = toBase64; - } -}); - -// node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js -var require_calculateBodyLength = __commonJS({ - \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.calculateBodyLength = void 0; - var fs_1 = require(\\"fs\\"); - var calculateBodyLength = (body) => { - if (!body) { - return 0; - } - if (typeof body === \\"string\\") { - return Buffer.from(body).length; - } else if (typeof body.byteLength === \\"number\\") { - return body.byteLength; - } else if (typeof body.size === \\"number\\") { - return body.size; - } else if (typeof body.path === \\"string\\" || Buffer.isBuffer(body.path)) { - return (0, fs_1.lstatSync)(body.path).size; - } else if (typeof body.fd === \\"number\\") { - return (0, fs_1.fstatSync)(body.fd).size; - } - throw new Error(\`Body Length computation failed for \${body}\`); - }; - exports2.calculateBodyLength = calculateBodyLength; - } -}); - -// node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js -var require_dist_cjs35 = __commonJS({ - \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_calculateBodyLength(), exports2); - } -}); - -// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js -var require_is_crt_available = __commonJS({ - \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js\\"(exports2, module2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isCrtAvailable = void 0; - var isCrtAvailable = () => { - try { - if (typeof require === \\"function\\" && typeof module2 !== \\"undefined\\" && module2.require && require(\\"aws-crt\\")) { - return [\\"md/crt-avail\\"]; - } - return null; - } catch (e) { - return null; - } - }; - exports2.isCrtAvailable = isCrtAvailable; - } -}); - -// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js -var require_dist_cjs36 = __commonJS({ - \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultUserAgent = exports2.UA_APP_ID_INI_NAME = exports2.UA_APP_ID_ENV_NAME = void 0; - var node_config_provider_1 = require_dist_cjs26(); - var os_1 = require(\\"os\\"); - var process_1 = require(\\"process\\"); - var is_crt_available_1 = require_is_crt_available(); - exports2.UA_APP_ID_ENV_NAME = \\"AWS_SDK_UA_APP_ID\\"; - exports2.UA_APP_ID_INI_NAME = \\"sdk-ua-app-id\\"; - var defaultUserAgent = ({ serviceId, clientVersion }) => { - const sections = [ - [\\"aws-sdk-js\\", clientVersion], - [\`os/\${(0, os_1.platform)()}\`, (0, os_1.release)()], - [\\"lang/js\\"], - [\\"md/nodejs\\", \`\${process_1.versions.node}\`] - ]; - const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); - if (crtAvailable) { - sections.push(crtAvailable); - } - if (serviceId) { - sections.push([\`api/\${serviceId}\`, clientVersion]); - } - if (process_1.env.AWS_EXECUTION_ENV) { - sections.push([\`exec-env/\${process_1.env.AWS_EXECUTION_ENV}\`]); - } - const appIdPromise = (0, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => env[exports2.UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[exports2.UA_APP_ID_INI_NAME], - default: void 0 - })(); - let resolvedUserAgent = void 0; - return async () => { - if (!resolvedUserAgent) { - const appId = await appIdPromise; - resolvedUserAgent = appId ? [...sections, [\`app/\${appId}\`]] : [...sections]; - } - return resolvedUserAgent; - }; - }; - exports2.defaultUserAgent = defaultUserAgent; - } -}); - -// node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js -var require_dist_cjs37 = __commonJS({ - \\"node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toUtf8 = exports2.fromUtf8 = void 0; - var util_buffer_from_1 = require_dist_cjs30(); - var fromUtf8 = (input) => { - const buf = (0, util_buffer_from_1.fromString)(input, \\"utf8\\"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); - }; - exports2.fromUtf8 = fromUtf8; - var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"utf8\\"); - exports2.toUtf8 = toUtf8; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js -var require_endpoints = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRegionInfoProvider = void 0; - var config_resolver_1 = require_dist_cjs7(); - var regionHash = { - \\"ap-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-east-1\\" - }, - \\"ap-northeast-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-northeast-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-northeast-1\\" - }, - \\"ap-northeast-2\\": { - variants: [ - { - hostname: \\"portal.sso.ap-northeast-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-northeast-2\\" - }, - \\"ap-northeast-3\\": { - variants: [ - { - hostname: \\"portal.sso.ap-northeast-3.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-northeast-3\\" - }, - \\"ap-south-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-south-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-south-1\\" - }, - \\"ap-southeast-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-southeast-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-southeast-1\\" - }, - \\"ap-southeast-2\\": { - variants: [ - { - hostname: \\"portal.sso.ap-southeast-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-southeast-2\\" - }, - \\"ca-central-1\\": { - variants: [ - { - hostname: \\"portal.sso.ca-central-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ca-central-1\\" - }, - \\"eu-central-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-central-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-central-1\\" - }, - \\"eu-north-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-north-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-north-1\\" - }, - \\"eu-south-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-south-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-south-1\\" - }, - \\"eu-west-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-west-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-west-1\\" - }, - \\"eu-west-2\\": { - variants: [ - { - hostname: \\"portal.sso.eu-west-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-west-2\\" - }, - \\"eu-west-3\\": { - variants: [ - { - hostname: \\"portal.sso.eu-west-3.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-west-3\\" - }, - \\"me-south-1\\": { - variants: [ - { - hostname: \\"portal.sso.me-south-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"me-south-1\\" - }, - \\"sa-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.sa-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"sa-east-1\\" - }, - \\"us-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.us-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-east-1\\" - }, - \\"us-east-2\\": { - variants: [ - { - hostname: \\"portal.sso.us-east-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-east-2\\" - }, - \\"us-gov-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.us-gov-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-gov-east-1\\" - }, - \\"us-gov-west-1\\": { - variants: [ - { - hostname: \\"portal.sso.us-gov-west-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-gov-west-1\\" - }, - \\"us-west-2\\": { - variants: [ - { - hostname: \\"portal.sso.us-west-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-west-2\\" - } - }; - var partitionHash = { - aws: { - regions: [ - \\"af-south-1\\", - \\"ap-east-1\\", - \\"ap-northeast-1\\", - \\"ap-northeast-2\\", - \\"ap-northeast-3\\", - \\"ap-south-1\\", - \\"ap-southeast-1\\", - \\"ap-southeast-2\\", - \\"ap-southeast-3\\", - \\"ca-central-1\\", - \\"eu-central-1\\", - \\"eu-north-1\\", - \\"eu-south-1\\", - \\"eu-west-1\\", - \\"eu-west-2\\", - \\"eu-west-3\\", - \\"me-south-1\\", - \\"sa-east-1\\", - \\"us-east-1\\", - \\"us-east-2\\", - \\"us-west-1\\", - \\"us-west-2\\" - ], - regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"portal.sso-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"portal.sso.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-cn\\": { - regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], - regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.amazonaws.com.cn\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.amazonaws.com.cn\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"portal.sso-fips.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"portal.sso.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-iso\\": { - regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], - regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.c2s.ic.gov\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.c2s.ic.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-iso-b\\": { - regions: [\\"us-isob-east-1\\"], - regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.sc2s.sgov.gov\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.sc2s.sgov.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-us-gov\\": { - regions: [\\"us-gov-east-1\\", \\"us-gov-west-1\\"], - regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"portal.sso-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"portal.sso.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - } - }; - var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: \\"awsssoportal\\", - regionHash, - partitionHash - }); - exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var url_parser_1 = require_dist_cjs28(); - var endpoints_1 = require_endpoints(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return { - apiVersion: \\"2019-06-10\\", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"SSO\\", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js -var require_constants7 = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.IMDS_REGION_PATH = exports2.DEFAULTS_MODE_OPTIONS = exports2.ENV_IMDS_DISABLED = exports2.AWS_DEFAULT_REGION_ENV = exports2.AWS_REGION_ENV = exports2.AWS_EXECUTION_ENV = void 0; - exports2.AWS_EXECUTION_ENV = \\"AWS_EXECUTION_ENV\\"; - exports2.AWS_REGION_ENV = \\"AWS_REGION\\"; - exports2.AWS_DEFAULT_REGION_ENV = \\"AWS_DEFAULT_REGION\\"; - exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; - exports2.DEFAULTS_MODE_OPTIONS = [\\"in-region\\", \\"cross-region\\", \\"mobile\\", \\"standard\\", \\"legacy\\"]; - exports2.IMDS_REGION_PATH = \\"/latest/meta-data/placement/region\\"; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js -var require_defaultsModeConfig = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; - var AWS_DEFAULTS_MODE_ENV = \\"AWS_DEFAULTS_MODE\\"; - var AWS_DEFAULTS_MODE_CONFIG = \\"defaults_mode\\"; - exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: \\"legacy\\" - }; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js -var require_resolveDefaultsModeConfig = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveDefaultsModeConfig = void 0; - var config_resolver_1 = require_dist_cjs7(); - var credential_provider_imds_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs26(); - var property_provider_1 = require_dist_cjs16(); - var constants_1 = require_constants7(); - var defaultsModeConfig_1 = require_defaultsModeConfig(); - var resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, property_provider_1.memoize)(async () => { - const mode = typeof defaultsMode === \\"function\\" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { - case \\"auto\\": - return resolveNodeDefaultsModeAuto(region); - case \\"in-region\\": - case \\"cross-region\\": - case \\"mobile\\": - case \\"standard\\": - case \\"legacy\\": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); - case void 0: - return Promise.resolve(\\"legacy\\"); - default: - throw new Error(\`Invalid parameter for \\"defaultsMode\\", expect \${constants_1.DEFAULTS_MODE_OPTIONS.join(\\", \\")}, got \${mode}\`); - } - }); - exports2.resolveDefaultsModeConfig = resolveDefaultsModeConfig; - var resolveNodeDefaultsModeAuto = async (clientRegion) => { - if (clientRegion) { - const resolvedRegion = typeof clientRegion === \\"function\\" ? await clientRegion() : clientRegion; - const inferredRegion = await inferPhysicalRegion(); - if (!inferredRegion) { - return \\"standard\\"; - } - if (resolvedRegion === inferredRegion) { - return \\"in-region\\"; - } else { - return \\"cross-region\\"; - } - } - return \\"standard\\"; - }; - var inferPhysicalRegion = async () => { - var _a; - if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { - return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; - } - if (!process.env[constants_1.ENV_IMDS_DISABLED]) { - try { - const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); - return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); - } catch (e) { - } - } - }; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js -var require_dist_cjs38 = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js -var require_runtimeConfig = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var tslib_1 = require_tslib(); - var package_json_1 = tslib_1.__importDefault(require_package3()); - var config_resolver_1 = require_dist_cjs7(); - var hash_node_1 = require_dist_cjs31(); - var middleware_retry_1 = require_dist_cjs15(); - var node_config_provider_1 = require_dist_cjs26(); - var node_http_handler_1 = require_dist_cjs33(); - var util_base64_node_1 = require_dist_cjs34(); - var util_body_length_node_1 = require_dist_cjs35(); - var util_user_agent_node_1 = require_dist_cjs36(); - var util_utf8_node_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared(); - var smithy_client_1 = require_dist_cjs3(); - var util_defaults_mode_node_1 = require_dist_cjs38(); - var smithy_client_2 = require_dist_cjs3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: \\"node\\", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, \\"sha256\\"), - streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, - utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8 - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js -var require_SSOClient = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSOClient = void 0; - var config_resolver_1 = require_dist_cjs7(); - var middleware_content_length_1 = require_dist_cjs8(); - var middleware_host_header_1 = require_dist_cjs11(); - var middleware_logger_1 = require_dist_cjs12(); - var middleware_recursion_detection_1 = require_dist_cjs13(); - var middleware_retry_1 = require_dist_cjs15(); - var middleware_user_agent_1 = require_dist_cjs22(); - var smithy_client_1 = require_dist_cjs3(); - var runtimeConfig_1 = require_runtimeConfig(); - var SSOClient = class extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); - super(_config_5); - this.config = _config_5; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } - }; - exports2.SSOClient = SSOClient; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js -var require_SSO = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSO = void 0; - var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); - var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); - var ListAccountsCommand_1 = require_ListAccountsCommand(); - var LogoutCommand_1 = require_LogoutCommand(); - var SSOClient_1 = require_SSOClient(); - var SSO = class extends SSOClient_1.SSOClient { - getRoleCredentials(args, optionsOrCb, cb) { - const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else if (c === \\">\\") { + v1754(parser); + } + else if (v1736(v1766, c)) { + parser.tagName += c; + } + else if (parser.script) { + parser.script += \\"\\") { + v1754(parser); + } + else { + v1716(parser, \\"Invalid characters in closing tag\\"); + } + continue; + case 3: + case 30: + case 31: + var returnState; + var buffer; + switch (parser.state) { + case 3: + returnState = 2; + buffer = \\"textNode\\"; + break; + case 30: + returnState = 27; + buffer = \\"attribValue\\"; + break; + case 31: + returnState = 29; + buffer = \\"attribValue\\"; + break; + } + if (c === \\";\\") { + parser[v1775] += v1776(parser); + parser.entity = \\"\\"; + parser.state = v1783; + } + else if (v1736(parser.entity.length ? v1784 : v1785, c)) { + parser.entity += c; + } + else { + v1716(parser, \\"Invalid character in entity name\\"); + parser[v1775] += \\"&\\" + parser.entity + c; + parser.entity = \\"\\"; + parser.state = v1783; + } + continue; + default: throw new v1786(parser, \\"Unknown state: \\" + parser.state); + } +} if (parser.position >= parser.bufferCheckPosition) { + v1787(parser); +} return parser; }; +const v1794 = {}; +v1794.constructor = v1706; +v1706.prototype = v1794; +v1681.write = v1706; +var v1795; +v1795 = function () { this.error = null; return this; }; +const v1796 = {}; +v1796.constructor = v1795; +v1795.prototype = v1796; +v1681.resume = v1795; +var v1797; +v1797 = function () { return this.write(null); }; +const v1798 = {}; +v1798.constructor = v1797; +v1797.prototype = v1798; +v1681.close = v1797; +var v1799; +var v1801; +var v1802 = v1726; +v1801 = function flushBuffers(parser) { v1691(parser); if (parser.cdata !== \\"\\") { + v1802(parser, \\"oncdata\\", parser.cdata); + parser.cdata = \\"\\"; +} if (parser.script !== \\"\\") { + v1802(parser, \\"onscript\\", parser.script); + parser.script = \\"\\"; +} }; +const v1803 = {}; +v1803.constructor = v1801; +v1801.prototype = v1803; +var v1800 = v1801; +v1799 = function () { v1800(this); }; +const v1804 = {}; +v1804.constructor = v1799; +v1799.prototype = v1804; +v1681.flush = v1799; +v1666.prototype = v1681; +var v1665 = v1666; +v1664 = function (strict, opt) { return new v1665(strict, opt); }; +const v1805 = {}; +v1805.constructor = v1664; +v1664.prototype = v1805; +v1663.parser = v1664; +v1663.SAXParser = v1666; +var v1806; +const v1808 = require(\\"stream\\"); +var v1807 = v1808; +const v1810 = []; +v1810.push(\\"text\\", \\"processinginstruction\\", \\"sgmldeclaration\\", \\"doctype\\", \\"comment\\", \\"opentagstart\\", \\"attribute\\", \\"opentag\\", \\"closetag\\", \\"opencdata\\", \\"cdata\\", \\"closecdata\\", \\"ready\\", \\"script\\", \\"opennamespace\\", \\"closenamespace\\"); +var v1809 = v1810; +var v1811 = v31; +v1806 = function SAXStream(strict, opt) { if (!(this instanceof SAXStream)) { + return new SAXStream(strict, opt); +} v1807.apply(this); this._parser = new v1687(strict, opt); this.writable = true; this.readable = true; var me = this; this._parser.onend = function () { me.emit(\\"end\\"); }; this._parser.onerror = function (er) { me.emit(\\"error\\", er); me._parser.error = null; }; this._decoder = null; v1809.forEach(function (ev) { v1811.defineProperty(me, \\"on\\" + ev, { get: function () { return me._parser[\\"on\\" + ev]; }, set: function (h) { if (!h) { + me.removeAllListeners(ev); + me._parser[\\"on\\" + ev] = h; + return h; + } me.on(ev, h); }, enumerable: true, configurable: false }); }); }; +const v1812 = require(\\"stream\\").prototype; +const v1813 = Object.create(v1812); +var v1814; +const v1816 = Buffer; +var v1815 = v1816; +var v1817 = require; +v1814 = function (data) { if (typeof v1815 === \\"function\\" && typeof v1815.isBuffer === \\"function\\" && v1815.isBuffer(data)) { + if (!this._decoder) { + var SD = v1817(\\"string_decoder\\").StringDecoder; + this._decoder = new SD(\\"utf8\\"); + } + data = this._decoder.write(data); +} this._parser.write(data.toString()); this.emit(\\"data\\", data); return true; }; +const v1818 = {}; +v1818.constructor = v1814; +v1814.prototype = v1818; +v1813.write = v1814; +var v1819; +v1819 = function (chunk) { if (chunk && chunk.length) { + this.write(chunk); +} this._parser.end(); return true; }; +const v1820 = {}; +v1820.constructor = v1819; +v1819.prototype = v1820; +v1813.end = v1819; +var v1821; +var v1822 = v1810; +var v1823 = v33; +v1821 = function (ev, handler) { var me = this; if (!me._parser[\\"on\\" + ev] && v1822.indexOf(ev) !== -1) { + me._parser[\\"on\\" + ev] = function () { var args = arguments.length === 1 ? [arguments[0]] : v1823.apply(null, arguments); args.splice(0, 0, ev); me.emit.apply(me, args); }; +} return v1812.on.call(me, ev, handler); }; +const v1824 = {}; +v1824.constructor = v1821; +v1821.prototype = v1824; +v1813.on = v1821; +v1806.prototype = v1813; +v1663.SAXStream = v1806; +var v1825; +var v1826 = v1806; +v1825 = function createStream(strict, opt) { return new v1826(strict, opt); }; +const v1827 = {}; +v1827.constructor = v1825; +v1825.prototype = v1827; +v1663.createStream = v1825; +v1663.MAX_BUFFER_LENGTH = 65536; +const v1828 = []; +v1828.push(\\"text\\", \\"processinginstruction\\", \\"sgmldeclaration\\", \\"doctype\\", \\"comment\\", \\"opentagstart\\", \\"attribute\\", \\"opentag\\", \\"closetag\\", \\"opencdata\\", \\"cdata\\", \\"closecdata\\", \\"error\\", \\"end\\", \\"ready\\", \\"script\\", \\"opennamespace\\", \\"closenamespace\\"); +v1663.EVENTS = v1828; +const v1829 = {}; +v1829[\\"0\\"] = \\"BEGIN\\"; +v1829[\\"1\\"] = \\"BEGIN_WHITESPACE\\"; +v1829[\\"2\\"] = \\"TEXT\\"; +v1829[\\"3\\"] = \\"TEXT_ENTITY\\"; +v1829[\\"4\\"] = \\"OPEN_WAKA\\"; +v1829[\\"5\\"] = \\"SGML_DECL\\"; +v1829[\\"6\\"] = \\"SGML_DECL_QUOTED\\"; +v1829[\\"7\\"] = \\"DOCTYPE\\"; +v1829[\\"8\\"] = \\"DOCTYPE_QUOTED\\"; +v1829[\\"9\\"] = \\"DOCTYPE_DTD\\"; +v1829[\\"10\\"] = \\"DOCTYPE_DTD_QUOTED\\"; +v1829[\\"11\\"] = \\"COMMENT_STARTING\\"; +v1829[\\"12\\"] = \\"COMMENT\\"; +v1829[\\"13\\"] = \\"COMMENT_ENDING\\"; +v1829[\\"14\\"] = \\"COMMENT_ENDED\\"; +v1829[\\"15\\"] = \\"CDATA\\"; +v1829[\\"16\\"] = \\"CDATA_ENDING\\"; +v1829[\\"17\\"] = \\"CDATA_ENDING_2\\"; +v1829[\\"18\\"] = \\"PROC_INST\\"; +v1829[\\"19\\"] = \\"PROC_INST_BODY\\"; +v1829[\\"20\\"] = \\"PROC_INST_ENDING\\"; +v1829[\\"21\\"] = \\"OPEN_TAG\\"; +v1829[\\"22\\"] = \\"OPEN_TAG_SLASH\\"; +v1829[\\"23\\"] = \\"ATTRIB\\"; +v1829[\\"24\\"] = \\"ATTRIB_NAME\\"; +v1829[\\"25\\"] = \\"ATTRIB_NAME_SAW_WHITE\\"; +v1829[\\"26\\"] = \\"ATTRIB_VALUE\\"; +v1829[\\"27\\"] = \\"ATTRIB_VALUE_QUOTED\\"; +v1829[\\"28\\"] = \\"ATTRIB_VALUE_CLOSED\\"; +v1829[\\"29\\"] = \\"ATTRIB_VALUE_UNQUOTED\\"; +v1829[\\"30\\"] = \\"ATTRIB_VALUE_ENTITY_Q\\"; +v1829[\\"31\\"] = \\"ATTRIB_VALUE_ENTITY_U\\"; +v1829[\\"32\\"] = \\"CLOSE_TAG\\"; +v1829[\\"33\\"] = \\"CLOSE_TAG_SAW_WHITE\\"; +v1829[\\"34\\"] = \\"SCRIPT\\"; +v1829[\\"35\\"] = \\"SCRIPT_ENDING\\"; +v1829.BEGIN = 0; +v1829.BEGIN_WHITESPACE = 1; +v1829.TEXT = 2; +v1829.TEXT_ENTITY = 3; +v1829.OPEN_WAKA = 4; +v1829.SGML_DECL = 5; +v1829.SGML_DECL_QUOTED = 6; +v1829.DOCTYPE = 7; +v1829.DOCTYPE_QUOTED = 8; +v1829.DOCTYPE_DTD = 9; +v1829.DOCTYPE_DTD_QUOTED = 10; +v1829.COMMENT_STARTING = 11; +v1829.COMMENT = 12; +v1829.COMMENT_ENDING = 13; +v1829.COMMENT_ENDED = 14; +v1829.CDATA = 15; +v1829.CDATA_ENDING = 16; +v1829.CDATA_ENDING_2 = 17; +v1829.PROC_INST = 18; +v1829.PROC_INST_BODY = 19; +v1829.PROC_INST_ENDING = 20; +v1829.OPEN_TAG = 21; +v1829.OPEN_TAG_SLASH = 22; +v1829.ATTRIB = 23; +v1829.ATTRIB_NAME = 24; +v1829.ATTRIB_NAME_SAW_WHITE = 25; +v1829.ATTRIB_VALUE = 26; +v1829.ATTRIB_VALUE_QUOTED = 27; +v1829.ATTRIB_VALUE_CLOSED = 28; +v1829.ATTRIB_VALUE_UNQUOTED = 29; +v1829.ATTRIB_VALUE_ENTITY_Q = 30; +v1829.ATTRIB_VALUE_ENTITY_U = 31; +v1829.CLOSE_TAG = 32; +v1829.CLOSE_TAG_SAW_WHITE = 33; +v1829.SCRIPT = 34; +v1829.SCRIPT_ENDING = 35; +v1663.STATE = v1829; +v1663.XML_ENTITIES = v1673; +v1663.ENTITIES = v1675; +var v1662 = v1663; +var v1830 = v1030; +var v1832; +v1832 = function (processors, item, key) { var i, len, process; for (i = 0, len = processors.length; i < len; i++) { + process = processors[i]; + item = process(item, key); +} return item; }; +const v1833 = {}; +v1833.constructor = v1832; +v1832.prototype = v1833; +var v1831 = v1832; +var v1834 = v31; +var v1836; +var v1837 = v31; +v1836 = function (thing) { return typeof thing === \\"object\\" && (thing != null) && v1837.keys(thing).length === 0; }; +const v1838 = {}; +v1838.constructor = v1836; +v1836.prototype = v1838; +var v1835 = v1836; +v1661 = function () { var attrkey, charkey, ontext, stack; this.removeAllListeners(); this.saxParser = v1662.parser(this.options.strict, { trim: false, normalize: false, xmlns: this.options.xmlns }); this.saxParser.errThrown = false; this.saxParser.onerror = (function (_this) { return function (error) { _this.saxParser.resume(); if (!_this.saxParser.errThrown) { + _this.saxParser.errThrown = true; + return _this.emit(\\"error\\", error); +} }; })(this); this.saxParser.onend = (function (_this) { return function () { if (!_this.saxParser.ended) { + _this.saxParser.ended = true; + return _this.emit(\\"end\\", _this.resultObject); +} }; })(this); this.saxParser.ended = false; this.EXPLICIT_CHARKEY = this.options.explicitCharkey; this.resultObject = null; stack = []; attrkey = this.options.attrkey; charkey = this.options.charkey; this.saxParser.onopentag = (function (_this) { return function (node) { var key, newValue, obj, processedKey, ref; obj = {}; obj[charkey] = \\"\\"; if (!_this.options.ignoreAttrs) { + ref = node.attributes; + for (key in ref) { + if (!v1830.call(ref, key)) + continue; + if (!(attrkey in obj) && !_this.options.mergeAttrs) { + obj[attrkey] = {}; } - } - listAccountRoles(args, optionsOrCb, cb) { - const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + newValue = _this.options.attrValueProcessors ? v1831(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key]; + processedKey = _this.options.attrNameProcessors ? v1831(_this.options.attrNameProcessors, key) : key; + if (_this.options.mergeAttrs) { + _this.assignOrPush(obj, processedKey, newValue); } - } - listAccounts(args, optionsOrCb, cb) { - const command = new ListAccountsCommand_1.ListAccountsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else { + obj[attrkey][processedKey] = newValue; } - } - logout(args, optionsOrCb, cb) { - const command = new LogoutCommand_1.LogoutCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} obj[\\"#name\\"] = _this.options.tagNameProcessors ? v1831(_this.options.tagNameProcessors, node.name) : node.name; if (_this.options.xmlns) { + obj[_this.options.xmlnskey] = { uri: node.uri, local: node.local }; +} return stack.push(obj); }; })(this); this.saxParser.onclosetag = (function (_this) { return function () { var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s, xpath; obj = stack.pop(); nodeName = obj[\\"#name\\"]; if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) { + delete obj[\\"#name\\"]; +} if (obj.cdata === true) { + cdata = obj.cdata; + delete obj.cdata; +} s = stack[stack.length - 1]; if (obj[charkey].match(/^\\\\s*$/) && !cdata) { + emptyStr = obj[charkey]; + delete obj[charkey]; +} +else { + if (_this.options.trim) { + obj[charkey] = obj[charkey].trim(); + } + if (_this.options.normalize) { + obj[charkey] = obj[charkey].replace(/\\\\s{2,}/g, \\" \\").trim(); + } + obj[charkey] = _this.options.valueProcessors ? v1831(_this.options.valueProcessors, obj[charkey], nodeName) : obj[charkey]; + if (v1834.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) { + obj = obj[charkey]; + } +} if (v1835(obj)) { + obj = _this.options.emptyTag !== \\"\\" ? _this.options.emptyTag : emptyStr; +} if (_this.options.validator != null) { + xpath = \\"/\\" + ((function () { var i, len, results; results = []; for (i = 0, len = stack.length; i < len; i++) { + node = stack[i]; + results.push(node[\\"#name\\"]); + } return results; })()).concat(nodeName).join(\\"/\\"); + (function () { var err; try { + return obj = _this.options.validator(xpath, s && s[nodeName], obj); + } + catch (error1) { + err = error1; + return _this.emit(\\"error\\", err); + } })(); +} if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === \\"object\\") { + if (!_this.options.preserveChildrenOrder) { + node = {}; + if (_this.options.attrkey in obj) { + node[_this.options.attrkey] = obj[_this.options.attrkey]; + delete obj[_this.options.attrkey]; + } + if (!_this.options.charsAsChildren && _this.options.charkey in obj) { + node[_this.options.charkey] = obj[_this.options.charkey]; + delete obj[_this.options.charkey]; + } + if (v1834.getOwnPropertyNames(obj).length > 0) { + node[_this.options.childkey] = obj; + } + obj = node; + } + else if (s) { + s[_this.options.childkey] = s[_this.options.childkey] || []; + objClone = {}; + for (key in obj) { + if (!v1650.call(obj, key)) + continue; + objClone[key] = obj[key]; + } + s[_this.options.childkey].push(objClone); + delete obj[\\"#name\\"]; + if (v1834.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) { + obj = obj[charkey]; } - } - }; - exports2.SSO = SSO; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js -var require_commands = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports2); - tslib_1.__exportStar(require_ListAccountRolesCommand(), exports2); - tslib_1.__exportStar(require_ListAccountsCommand(), exports2); - tslib_1.__exportStar(require_LogoutCommand(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js -var require_models = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_models_03(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js -var require_Interfaces = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js -var require_ListAccountRolesPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListAccountRoles = void 0; - var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); - var SSO_1 = require_SSO(); - var SSOClient_1 = require_SSOClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listAccountRoles(input, ...args); - }; - async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input[\\"maxResults\\"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); + } +} if (stack.length > 0) { + return _this.assignOrPush(s, nodeName, obj); +} +else { + if (_this.options.explicitRoot) { + old = obj; + obj = {}; + obj[nodeName] = old; + } + _this.resultObject = obj; + _this.saxParser.ended = true; + return _this.emit(\\"end\\", _this.resultObject); +} }; })(this); ontext = (function (_this) { return function (text) { var charChild, s; s = stack[stack.length - 1]; if (s) { + s[charkey] += text; + if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text.replace(/\\\\\\\\n/g, \\"\\").trim() !== \\"\\")) { + s[_this.options.childkey] = s[_this.options.childkey] || []; + charChild = { \\"#name\\": \\"__text__\\" }; + charChild[charkey] = text; + if (_this.options.normalize) { + charChild[charkey] = charChild[charkey].replace(/\\\\s{2,}/g, \\" \\").trim(); + } + s[_this.options.childkey].push(charChild); + } + return s; +} }; })(this); this.saxParser.ontext = ontext; return this.saxParser.oncdata = (function (_this) { return function (text) { var s; s = ontext(text); if (s) { + return s.cdata = true; +} }; })(this); }; +const v1839 = {}; +v1839.constructor = v1661; +v1661.prototype = v1839; +v1653.reset = v1661; +var v1840; +const v1842 = Object.create(v646); +var v1843; +v1843 = function (str) { if (str[0] === \\"\\\\uFEFF\\") { + return str.substring(1); +} +else { + return str; +} }; +const v1844 = {}; +v1844.constructor = v1843; +v1843.prototype = v1844; +v1842.stripBOM = v1843; +var v1841 = v1842; +var v1845 = v1656; +v1840 = function (str, cb) { var err; if ((cb != null) && typeof cb === \\"function\\") { + this.on(\\"end\\", function (result) { this.reset(); return cb(null, result); }); + this.on(\\"error\\", function (err) { this.reset(); return cb(err); }); +} try { + str = str.toString(); + if (str.trim() === \\"\\") { + this.emit(\\"end\\", null); + return true; + } + str = v1841.stripBOM(str); + if (this.options.async) { + this.remaining = str; + v1845(this.processAsync); + return this.saxParser; + } + return this.saxParser.write(str).close(); +} +catch (error1) { + err = error1; + if (!(this.saxParser.errThrown || this.saxParser.ended)) { + this.emit(\\"error\\", err); + return this.saxParser.errThrown = true; + } + else if (this.saxParser.ended) { + throw err; + } +} }; +const v1846 = {}; +v1846.constructor = v1840; +v1840.prototype = v1846; +v1653.parseString = v1840; +v1636.prototype = v1653; +const v1847 = process.__signal_exit_emitter__.constructor.once; +v1636.once = v1847; +const v1848 = process.__signal_exit_emitter__.constructor.on; +v1636.on = v1848; +const v1849 = process.__signal_exit_emitter__.constructor.getEventListeners; +v1636.getEventListeners = v1849; +const v1850 = process.__signal_exit_emitter__.constructor; +v1636.EventEmitter = v1850; +v1636.usingDomains = true; +const v1851 = Symbol; +v1636.captureRejectionSymbol = v1851.for(\\"nodejs.rejection\\"); +v1636.captureRejections = false; +const v1852 = require(\\"events\\").EventEmitterAsyncResource; +v1636.EventEmitterAsyncResource = v1852; +v1636.errorMonitor = v1851(\\"events.errorMonitor\\"); +v1636.defaultMaxListeners = 10; +const v1853 = process.__signal_exit_emitter__.constructor.setMaxListeners; +v1636.setMaxListeners = v1853; +const v1854 = process.__signal_exit_emitter__.constructor.init; +v1636.init = v1854; +const v1855 = process.__signal_exit_emitter__.constructor.listenerCount; +v1636.listenerCount = v1855; +v1636.__super__ = v1652; +v1001.Parser = v1636; +v1001.parseString = v1645; +var v1000 = v1001; +const v1857 = {}; +v1857.explicitCharkey = false; +v1857.trim = false; +v1857.normalize = false; +v1857.explicitRoot = false; +v1857.emptyTag = null; +v1857.explicitArray = true; +v1857.ignoreAttrs = false; +v1857.mergeAttrs = false; +v1857.validator = null; +var v1856 = v1857; +var v1859; +var v1861; +var v1862 = v3; +var v1863 = v33; +var v1864 = v1859; +var v1866; +var v1867 = v855; +v1866 = function parseScalar(text, shape) { if (text && text.$ && text.$.encoding === \\"base64\\") { + shape = new v1867.create({ type: text.$.encoding }); +} if (text && text._) + text = text._; if (typeof shape.toType === \\"function\\") { + return shape.toType(text); +} +else { + return text; +} }; +const v1868 = {}; +v1868.constructor = v1866; +v1866.prototype = v1868; +var v1865 = v1866; +v1861 = function parseStructure(xml, shape) { var data = {}; if (xml === null) + return data; v1862.each(shape.members, function (memberName, memberShape) { var xmlName = memberShape.name; if (v113.hasOwnProperty.call(xml, xmlName) && v1863.isArray(xml[xmlName])) { + var xmlChild = xml[xmlName]; + if (!memberShape.flattened) + xmlChild = xmlChild[0]; + data[memberName] = v1864(xmlChild, memberShape); +} +else if (memberShape.isXmlAttribute && xml.$ && v113.hasOwnProperty.call(xml.$, xmlName)) { + data[memberName] = v1865(xml.$[xmlName], memberShape); +} +else if (memberShape.type === \\"list\\" && !shape.api.xmlNoDefaultLists) { + data[memberName] = memberShape.defaultValue; +} }); return data; }; +const v1869 = {}; +v1869.constructor = v1861; +v1861.prototype = v1869; +var v1860 = v1861; +var v1871; +var v1872 = v33; +var v1873 = v3; +var v1874 = v1859; +v1871 = function parseMap(xml, shape) { var data = {}; if (xml === null) + return data; var xmlKey = shape.key.name || \\"key\\"; var xmlValue = shape.value.name || \\"value\\"; var iterable = shape.flattened ? xml : xml.entry; if (v1872.isArray(iterable)) { + v1873.arrayEach(iterable, function (child) { data[child[xmlKey][0]] = v1874(child[xmlValue][0], shape.value); }); +} return data; }; +const v1875 = {}; +v1875.constructor = v1871; +v1871.prototype = v1875; +var v1870 = v1871; +var v1877; +var v1878 = v3; +var v1879 = v33; +v1877 = function parseList(xml, shape) { var data = []; var name = shape.member.name || \\"member\\"; if (shape.flattened) { + v1878.arrayEach(xml, function (xmlChild) { data.push(v1874(xmlChild, shape.member)); }); +} +else if (xml && v1879.isArray(xml[name])) { + v1873.arrayEach(xml[name], function (child) { data.push(v1874(child, shape.member)); }); +} return data; }; +const v1880 = {}; +v1880.constructor = v1877; +v1877.prototype = v1880; +var v1876 = v1877; +var v1882; +var v1883 = v33; +var v1884 = v1859; +var v1885 = v31; +var v1886 = v1877; +var v1887 = v1859; +v1882 = function parseUnknown(xml) { if (xml === undefined || xml === null) + return \\"\\"; if (typeof xml === \\"string\\") + return xml; if (v1883.isArray(xml)) { + var arr = []; + for (i = 0; i < xml.length; i++) { + arr.push(v1884(xml[i], {})); + } + return arr; +} var keys = v1885.keys(xml), i; if (keys.length === 0 || (keys.length === 1 && keys[0] === \\"$\\")) { + return {}; +} var data = {}; for (i = 0; i < keys.length; i++) { + var key = keys[i], value = xml[key]; + if (key === \\"$\\") + continue; + if (value.length > 1) { + data[key] = v1886(value, { member: {} }); + } + else { + data[key] = v1887(value[0], {}); + } +} return data; }; +const v1888 = {}; +v1888.constructor = v1882; +v1882.prototype = v1888; +var v1881 = v1882; +var v1889 = v1866; +v1859 = function parseXml(xml, shape) { switch (shape.type) { + case \\"structure\\": return v1860(xml, shape); + case \\"map\\": return v1870(xml, shape); + case \\"list\\": return v1876(xml, shape); + case undefined: + case null: return v1881(xml); + default: return v1889(xml, shape); +} }; +const v1890 = {}; +v1890.constructor = v1859; +v1859.prototype = v1890; +var v1858 = v1859; +var v1891 = v3; +var v1892 = v1859; +v999 = function (xml, shape) { shape = shape || {}; var result = null; var error = null; var parser = new v1000.Parser(v1856); parser.parseString(xml, function (e, r) { error = e; result = r; }); if (result) { + var data = v1858(result, shape); + if (result.ResponseMetadata) { + data.ResponseMetadata = v1887(result.ResponseMetadata[0], {}); + } + return data; +} +else if (error) { + throw v1891.error(error, { code: \\"XMLParserError\\", retryable: true }); +} +else { + return v1892({}, shape); +} }; +const v1893 = {}; +v1893.constructor = v999; +v999.prototype = v1893; +v998.parse = v999; +v997.prototype = v998; +v937.Parser = v997; +var v1894 = v855; +var v1895 = v3; +v853 = function extractData(resp) { var req = resp.request; var operation = req.service.api.operations[req.operation]; var shape = operation.output || {}; var origRules = shape; if (origRules.resultWrapper) { + var tmp = v854.create({ type: \\"structure\\" }); + tmp.members[origRules.resultWrapper] = shape; + tmp.memberNames = [origRules.resultWrapper]; + v936.property(shape, \\"name\\", shape.resultWrapper); + shape = tmp; +} var parser = new v937.Parser(); if (shape && shape.members && !shape.members._XAMZRequestId) { + var requestIdShape = v1894.create({ type: \\"string\\" }, { api: { protocol: \\"query\\" } }, \\"requestId\\"); + shape.members._XAMZRequestId = requestIdShape; +} var data = parser.parse(resp.httpResponse.body.toString(), shape); resp.requestId = data._XAMZRequestId || data.requestId; if (data._XAMZRequestId) + delete data._XAMZRequestId; if (origRules.resultWrapper) { + if (data[origRules.resultWrapper]) { + v1895.update(data, data[origRules.resultWrapper]); + delete data[origRules.resultWrapper]; + } +} resp.data = data; }; +const v1896 = {}; +v1896.constructor = v853; +v853.prototype = v1896; +v852.push(v853); +v798.extractData = v852; +const v1897 = []; +var v1898; +var v1899 = v40; +var v1900 = v3; +var v1901 = v40; +v1898 = function extractError(resp) { var data, body = resp.httpResponse.body.toString(); if (body.match(\\" 0) { + try { + var e = v1968.parse(httpResponse.body.toString()); + var code = e.__type || e.code || e.Code; + if (code) { + error.code = code.split(\\"#\\").pop(); + } + if (error.code === \\"RequestEntityTooLarge\\") { + error.message = \\"Request body must be less than 1 MB\\"; + } + else { + error.message = (e.message || e.Message || null); } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListAccountRoles = paginateListAccountRoles; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js -var require_ListAccountsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListAccounts = void 0; - var ListAccountsCommand_1 = require_ListAccountsCommand(); - var SSO_1 = require_SSO(); - var SSOClient_1 = require_SSOClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listAccounts(input, ...args); - }; - async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input[\\"maxResults\\"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); + } + catch (e) { + error.statusCode = httpResponse.statusCode; + error.message = httpResponse.statusMessage; + } +} +else { + error.statusCode = httpResponse.statusCode; + error.message = httpResponse.statusCode.toString(); +} resp.error = v1969.error(new v1970(), error); }; +const v1971 = {}; +v1971.constructor = v1967; +v1967.prototype = v1971; +v1966.push(v1967); +v1904.extractError = v1966; +v1903._events = v1904; +v1903.BUILD = v1906; +v1903.EXTRACT_DATA = v1937; +v1903.EXTRACT_ERROR = v1967; +const v1972 = Object.create(v401); +const v1973 = {}; +const v1974 = []; +var v1975; +const v1977 = {}; +var v1978; +var v1980; +v1980 = function populateMethod(req) { req.httpRequest.method = req.service.api.operations[req.operation].httpMethod; }; +const v1981 = {}; +v1981.constructor = v1980; +v1980.prototype = v1981; +var v1979 = v1980; +var v1983; +var v1985; +var v1986 = v3; +var v1987 = v373; +var v1988 = v3; +var v1989 = v3; +var v1990 = v136; +var v1991 = v3; +var v1992 = v3; +var v1993 = v33; +var v1994 = v136; +var v1995 = v3; +var v1996 = v136; +var v1997 = v3; +var v1998 = v31; +var v1999 = v33; +var v2000 = v3; +var v2001 = v136; +v1985 = function generateURI(endpointPath, operationPath, input, params) { var uri = [endpointPath, operationPath].join(\\"/\\"); uri = uri.replace(/\\\\/+/g, \\"/\\"); var queryString = {}, queryStringSet = false; v1986.each(input.members, function (name, member) { var paramValue = params[name]; if (paramValue === null || paramValue === undefined) + return; if (member.location === \\"uri\\") { + var regex = new v1987(\\"\\\\\\\\{\\" + member.name + \\"(\\\\\\\\+)?\\\\\\\\}\\"); + uri = uri.replace(regex, function (_, plus) { var fn = plus ? v1988.uriEscapePath : v1989.uriEscape; return fn(v1990(paramValue)); }); +} +else if (member.location === \\"querystring\\") { + queryStringSet = true; + if (member.type === \\"list\\") { + queryString[member.name] = paramValue.map(function (val) { return v1991.uriEscape(member.member.toWireFormat(val).toString()); }); + } + else if (member.type === \\"map\\") { + v1992.each(paramValue, function (key, value) { if (v1993.isArray(value)) { + queryString[key] = value.map(function (val) { return v1989.uriEscape(v1994(val)); }); } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListAccounts = paginateListAccounts; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js -var require_pagination = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_Interfaces(), exports2); - tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports2); - tslib_1.__exportStar(require_ListAccountsPaginator(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/index.js -var require_dist_cjs39 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSOServiceException = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_SSO(), exports2); - tslib_1.__exportStar(require_SSOClient(), exports2); - tslib_1.__exportStar(require_commands(), exports2); - tslib_1.__exportStar(require_models(), exports2); - tslib_1.__exportStar(require_pagination(), exports2); - var SSOServiceException_1 = require_SSOServiceException(); - Object.defineProperty(exports2, \\"SSOServiceException\\", { enumerable: true, get: function() { - return SSOServiceException_1.SSOServiceException; + else { + queryString[key] = v1995.uriEscape(v1996(value)); + } }); + } + else { + queryString[member.name] = v1991.uriEscape(member.toWireFormat(paramValue).toString()); + } +} }); if (queryStringSet) { + uri += (uri.indexOf(\\"?\\") >= 0 ? \\"&\\" : \\"?\\"); + var parts = []; + v1997.arrayEach(v1998.keys(queryString).sort(), function (key) { if (!v1999.isArray(queryString[key])) { + queryString[key] = [queryString[key]]; + } for (var i = 0; i < queryString[key].length; i++) { + parts.push(v2000.uriEscape(v2001(key)) + \\"=\\" + queryString[key][i]); } }); - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js -var require_resolveSSOCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveSSOCredentials = void 0; - var client_sso_1 = require_dist_cjs39(); - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; - var SHOULD_FAIL_CREDENTIAL_CHAIN = false; - var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => { - let token; - const refreshMessage = \`To refresh this SSO session run aws sso login with the corresponding profile.\`; - try { - token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); - } catch (e) { - throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile is invalid. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { - throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile has expired. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken - })); - } catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError(\\"SSO returns an invalid temporary credential.\\", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; - }; - exports2.resolveSSOCredentials = resolveSSOCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js -var require_validateSsoProfile = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.validateSsoProfile = void 0; - var property_provider_1 = require_dist_cjs16(); - var validateSsoProfile = (profile) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; - if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { - throw new property_provider_1.CredentialsProviderError(\`Profile is configured with invalid SSO credentials. Required parameters \\"sso_account_id\\", \\"sso_region\\", \\"sso_role_name\\", \\"sso_start_url\\". Got \${Object.keys(profile).join(\\", \\")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html\`, false); - } - return profile; - }; - exports2.validateSsoProfile = validateSsoProfile; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js -var require_fromSSO = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromSSO = void 0; - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var isSsoProfile_1 = require_isSsoProfile(); - var resolveSSOCredentials_1 = require_resolveSSOCredentials(); - var validateSsoProfile_1 = require_validateSsoProfile(); - var fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - const profile = profiles[profileName]; - if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} is not configured with SSO credentials.\`); - } - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient - }); - } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include \\"ssoStartUrl\\", \\"ssoAccountId\\", \\"ssoRegion\\", \\"ssoRoleName\\"'); - } else { - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); - } - }; - exports2.fromSSO = fromSSO; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js -var require_types4 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js -var require_dist_cjs40 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromSSO(), exports2); - tslib_1.__exportStar(require_isSsoProfile(), exports2); - tslib_1.__exportStar(require_types4(), exports2); - tslib_1.__exportStar(require_validateSsoProfile(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js -var require_resolveSsoCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveSsoCredentials = exports2.isSsoProfile = void 0; - var credential_provider_sso_1 = require_dist_cjs40(); - var credential_provider_sso_2 = require_dist_cjs40(); - Object.defineProperty(exports2, \\"isSsoProfile\\", { enumerable: true, get: function() { - return credential_provider_sso_2.isSsoProfile; + uri += parts.join(\\"&\\"); +} return uri; }; +const v2002 = {}; +v2002.constructor = v1985; +v1985.prototype = v2002; +var v1984 = v1985; +v1983 = function populateURI(req) { var operation = req.service.api.operations[req.operation]; var input = operation.input; var uri = v1984(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); req.httpRequest.path = uri; }; +const v2003 = {}; +v2003.constructor = v1983; +v1983.prototype = v2003; +var v1982 = v1983; +var v2005; +var v2006 = v3; +v2005 = function populateHeaders(req) { var operation = req.service.api.operations[req.operation]; v2000.each(operation.input.members, function (name, member) { var value = req.params[name]; if (value === null || value === undefined) + return; if (member.location === \\"headers\\" && member.type === \\"map\\") { + v2006.each(value, function (key, memberValue) { req.httpRequest.headers[member.name + key] = memberValue; }); +} +else if (member.location === \\"header\\") { + value = member.toWireFormat(value).toString(); + if (member.isJsonValue) { + value = v37.encode(value); + } + req.httpRequest.headers[member.name] = value; +} }); }; +const v2007 = {}; +v2007.constructor = v2005; +v2005.prototype = v2007; +var v2004 = v2005; +var v2008 = v830; +v1978 = function buildRequest(req) { v1979(req); v1982(req); v2004(req); v2008(req); }; +const v2009 = {}; +v2009.constructor = v1978; +v1978.prototype = v2009; +v1977.buildRequest = v1978; +var v2010; +v2010 = function extractError() { }; +const v2011 = {}; +v2011.constructor = v2010; +v2010.prototype = v2011; +v1977.extractError = v2010; +var v2012; +var v2013 = v3; +var v2014 = v373; +var v2015 = v3; +var v2016 = v117; +v2012 = function extractData(resp) { var req = resp.request; var data = {}; var r = resp.httpResponse; var operation = req.service.api.operations[req.operation]; var output = operation.output; var headers = {}; v2013.each(r.headers, function (k, v) { headers[k.toLowerCase()] = v; }); v2013.each(output.members, function (name, member) { var header = (member.name || name).toLowerCase(); if (member.location === \\"headers\\" && member.type === \\"map\\") { + data[name] = {}; + var location = member.isLocationName ? member.name : \\"\\"; + var pattern = new v2014(\\"^\\" + location + \\"(.+)\\", \\"i\\"); + v2015.each(r.headers, function (k, v) { var result = k.match(pattern); if (result !== null) { + data[name][result[1]] = v; } }); - var resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); - return (0, credential_provider_sso_1.fromSSO)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name - })(); - }; - exports2.resolveSsoCredentials = resolveSsoCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js -var require_resolveStaticCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveStaticCredentials = exports2.isStaticCredsProfile = void 0; - var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.aws_access_key_id === \\"string\\" && typeof arg.aws_secret_access_key === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.aws_session_token) > -1; - exports2.isStaticCredsProfile = isStaticCredsProfile; - var resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token - }); - exports2.resolveStaticCredentials = resolveStaticCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js -var require_fromWebToken = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromWebToken = void 0; - var property_provider_1 = require_dist_cjs16(); - var fromWebToken = (init) => () => { - const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; - if (!roleAssumerWithWebIdentity) { - throw new property_provider_1.CredentialsProviderError(\`Role Arn '\${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.\`, false); - } - return roleAssumerWithWebIdentity({ - RoleArn: roleArn, - RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : \`aws-sdk-js-session-\${Date.now()}\`, - WebIdentityToken: webIdentityToken, - ProviderId: providerId, - PolicyArns: policyArns, - Policy: policy, - DurationSeconds: durationSeconds - }); - }; - exports2.fromWebToken = fromWebToken; - } -}); - -// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js -var require_fromTokenFile = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromTokenFile = void 0; - var property_provider_1 = require_dist_cjs16(); - var fs_1 = require(\\"fs\\"); - var fromWebToken_1 = require_fromWebToken(); - var ENV_TOKEN_FILE = \\"AWS_WEB_IDENTITY_TOKEN_FILE\\"; - var ENV_ROLE_ARN = \\"AWS_ROLE_ARN\\"; - var ENV_ROLE_SESSION_NAME = \\"AWS_ROLE_SESSION_NAME\\"; - var fromTokenFile = (init = {}) => async () => { - return resolveTokenFile(init); - }; - exports2.fromTokenFile = fromTokenFile; - var resolveTokenFile = (init) => { - var _a, _b, _c; - const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; - const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; - const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; - if (!webIdentityTokenFile || !roleArn) { - throw new property_provider_1.CredentialsProviderError(\\"Web identity configuration not specified\\"); - } - return (0, fromWebToken_1.fromWebToken)({ - ...init, - webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: \\"ascii\\" }), - roleArn, - roleSessionName - })(); - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js -var require_dist_cjs41 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromTokenFile(), exports2); - tslib_1.__exportStar(require_fromWebToken(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js -var require_resolveWebIdentityCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveWebIdentityCredentials = exports2.isWebIdentityProfile = void 0; - var credential_provider_web_identity_1 = require_dist_cjs41(); - var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.web_identity_token_file === \\"string\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1; - exports2.isWebIdentityProfile = isWebIdentityProfile; - var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity - })(); - exports2.resolveWebIdentityCredentials = resolveWebIdentityCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js -var require_resolveProfileData = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveProfileData = void 0; - var property_provider_1 = require_dist_cjs16(); - var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); - var resolveSsoCredentials_1 = require_resolveSsoCredentials(); - var resolveStaticCredentials_1 = require_resolveStaticCredentials(); - var resolveWebIdentityCredentials_1 = require_resolveWebIdentityCredentials(); - var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { - return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); - } - if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { - return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); - } - if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { - return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); - } - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found or parsed in shared credentials file.\`); - }; - exports2.resolveProfileData = resolveProfileData; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js -var require_fromIni = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromIni = void 0; - var shared_ini_file_loader_1 = require_dist_cjs25(); - var resolveProfileData_1 = require_resolveProfileData(); - var fromIni = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); - }; - exports2.fromIni = fromIni; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js -var require_dist_cjs42 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromIni(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js -var require_getValidatedProcessCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getValidatedProcessCredentials = void 0; - var getValidatedProcessCredentials = (profileName, data) => { - if (data.Version !== 1) { - throw Error(\`Profile \${profileName} credential_process did not return Version 1.\`); - } - if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { - throw Error(\`Profile \${profileName} credential_process returned invalid credentials.\`); - } - if (data.Expiration) { - const currentTime = new Date(); - const expireTime = new Date(data.Expiration); - if (expireTime < currentTime) { - throw Error(\`Profile \${profileName} credential_process returned expired credentials.\`); - } - } - return { - accessKeyId: data.AccessKeyId, - secretAccessKey: data.SecretAccessKey, - ...data.SessionToken && { sessionToken: data.SessionToken }, - ...data.Expiration && { expiration: new Date(data.Expiration) } - }; - }; - exports2.getValidatedProcessCredentials = getValidatedProcessCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js -var require_resolveProcessCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveProcessCredentials = void 0; - var property_provider_1 = require_dist_cjs16(); - var child_process_1 = require(\\"child_process\\"); - var util_1 = require(\\"util\\"); - var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); - var resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile[\\"credential_process\\"]; - if (credentialProcess !== void 0) { - const execPromise = (0, util_1.promisify)(child_process_1.exec); - try { - const { stdout } = await execPromise(credentialProcess); - let data; - try { - data = JSON.parse(stdout.trim()); - } catch (_a) { - throw Error(\`Profile \${profileName} credential_process returned invalid JSON.\`); - } - return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); - } catch (error) { - throw new property_provider_1.CredentialsProviderError(error.message); - } - } else { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} did not contain credential_process.\`); - } - } else { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found in shared credentials file.\`); - } - }; - exports2.resolveProcessCredentials = resolveProcessCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js -var require_fromProcess = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromProcess = void 0; - var shared_ini_file_loader_1 = require_dist_cjs25(); - var resolveProcessCredentials_1 = require_resolveProcessCredentials(); - var fromProcess = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); - }; - exports2.fromProcess = fromProcess; - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs43 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromProcess(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js -var require_remoteProvider = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.remoteProvider = exports2.ENV_IMDS_DISABLED = void 0; - var credential_provider_imds_1 = require_dist_cjs29(); - var property_provider_1 = require_dist_cjs16(); - exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; - var remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return (0, credential_provider_imds_1.fromContainerMetadata)(init); - } - if (process.env[exports2.ENV_IMDS_DISABLED]) { - return async () => { - throw new property_provider_1.CredentialsProviderError(\\"EC2 Instance Metadata Service access disabled\\"); - }; - } - return (0, credential_provider_imds_1.fromInstanceMetadata)(init); - }; - exports2.remoteProvider = remoteProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js -var require_defaultProvider = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultProvider = void 0; - var credential_provider_env_1 = require_dist_cjs24(); - var credential_provider_ini_1 = require_dist_cjs42(); - var credential_provider_process_1 = require_dist_cjs43(); - var credential_provider_sso_1 = require_dist_cjs40(); - var credential_provider_web_identity_1 = require_dist_cjs41(); - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var remoteProvider_1 = require_remoteProvider(); - var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { - throw new property_provider_1.CredentialsProviderError(\\"Could not load credentials from any providers\\", false); - }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); - exports2.defaultProvider = defaultProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js -var require_dist_cjs44 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_defaultProvider(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js -var require_endpoints2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRegionInfoProvider = void 0; - var config_resolver_1 = require_dist_cjs7(); - var regionHash = { - \\"aws-global\\": { - variants: [ - { - hostname: \\"sts.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-east-1\\" - }, - \\"us-east-1\\": { - variants: [ - { - hostname: \\"sts-fips.us-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-east-2\\": { - variants: [ - { - hostname: \\"sts-fips.us-east-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-east-1\\": { - variants: [ - { - hostname: \\"sts.us-gov-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-west-1\\": { - variants: [ - { - hostname: \\"sts.us-gov-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-1\\": { - variants: [ - { - hostname: \\"sts-fips.us-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-2\\": { - variants: [ - { - hostname: \\"sts-fips.us-west-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - } - }; - var partitionHash = { - aws: { - regions: [ - \\"af-south-1\\", - \\"ap-east-1\\", - \\"ap-northeast-1\\", - \\"ap-northeast-2\\", - \\"ap-northeast-3\\", - \\"ap-south-1\\", - \\"ap-southeast-1\\", - \\"ap-southeast-2\\", - \\"ap-southeast-3\\", - \\"aws-global\\", - \\"ca-central-1\\", - \\"eu-central-1\\", - \\"eu-north-1\\", - \\"eu-south-1\\", - \\"eu-west-1\\", - \\"eu-west-2\\", - \\"eu-west-3\\", - \\"me-south-1\\", - \\"sa-east-1\\", - \\"us-east-1\\", - \\"us-east-1-fips\\", - \\"us-east-2\\", - \\"us-east-2-fips\\", - \\"us-west-1\\", - \\"us-west-1-fips\\", - \\"us-west-2\\", - \\"us-west-2-fips\\" - ], - regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"sts-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"sts.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-cn\\": { - regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], - regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.amazonaws.com.cn\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.amazonaws.com.cn\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"sts-fips.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"sts.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-iso\\": { - regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], - regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.c2s.ic.gov\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.c2s.ic.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-iso-b\\": { - regions: [\\"us-isob-east-1\\"], - regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.sc2s.sgov.gov\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.sc2s.sgov.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-us-gov\\": { - regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], - regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"sts.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"sts-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"sts.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - } - }; - var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: \\"sts\\", - regionHash, - partitionHash - }); - exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var url_parser_1 = require_dist_cjs28(); - var endpoints_1 = require_endpoints2(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return { - apiVersion: \\"2011-06-15\\", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"STS\\", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js -var require_runtimeConfig2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var tslib_1 = require_tslib(); - var package_json_1 = tslib_1.__importDefault(require_package2()); - var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); - var config_resolver_1 = require_dist_cjs7(); - var credential_provider_node_1 = require_dist_cjs44(); - var hash_node_1 = require_dist_cjs31(); - var middleware_retry_1 = require_dist_cjs15(); - var node_config_provider_1 = require_dist_cjs26(); - var node_http_handler_1 = require_dist_cjs33(); - var util_base64_node_1 = require_dist_cjs34(); - var util_body_length_node_1 = require_dist_cjs35(); - var util_user_agent_node_1 = require_dist_cjs36(); - var util_utf8_node_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); - var smithy_client_1 = require_dist_cjs3(); - var util_defaults_mode_node_1 = require_dist_cjs38(); - var smithy_client_2 = require_dist_cjs3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: \\"node\\", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, \\"sha256\\"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js -var require_STSClient = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STSClient = void 0; - var config_resolver_1 = require_dist_cjs7(); - var middleware_content_length_1 = require_dist_cjs8(); - var middleware_host_header_1 = require_dist_cjs11(); - var middleware_logger_1 = require_dist_cjs12(); - var middleware_recursion_detection_1 = require_dist_cjs13(); - var middleware_retry_1 = require_dist_cjs15(); - var middleware_sdk_sts_1 = require_dist_cjs23(); - var middleware_user_agent_1 = require_dist_cjs22(); - var smithy_client_1 = require_dist_cjs3(); - var runtimeConfig_1 = require_runtimeConfig2(); - var STSClient = class extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } - }; - exports2.STSClient = STSClient; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/STS.js -var require_STS = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/STS.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STS = void 0; - var AssumeRoleCommand_1 = require_AssumeRoleCommand(); - var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); - var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); - var DecodeAuthorizationMessageCommand_1 = require_DecodeAuthorizationMessageCommand(); - var GetAccessKeyInfoCommand_1 = require_GetAccessKeyInfoCommand(); - var GetCallerIdentityCommand_1 = require_GetCallerIdentityCommand(); - var GetFederationTokenCommand_1 = require_GetFederationTokenCommand(); - var GetSessionTokenCommand_1 = require_GetSessionTokenCommand(); - var STSClient_1 = require_STSClient(); - var STS = class extends STSClient_1.STSClient { - assumeRole(args, optionsOrCb, cb) { - const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithSAML(args, optionsOrCb, cb) { - const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); +} +else if (member.location === \\"header\\") { + if (headers[header] !== undefined) { + var value = member.isJsonValue ? v37.decode(headers[header]) : headers[header]; + data[name] = member.toType(value); + } +} +else if (member.location === \\"statusCode\\") { + data[name] = v2016(r.statusCode, 10); +} }); resp.data = data; }; +const v2017 = {}; +v2017.constructor = v2012; +v2012.prototype = v2017; +v1977.extractData = v2012; +v1977.generateURI = v1985; +var v1976 = v1977; +var v2019; +var v2020 = v1908; +var v2022; +v2022 = function applyContentTypeHeader(req, isBinary) { if (!req.httpRequest.headers[\\"Content-Type\\"]) { + var type = isBinary ? \\"binary/octet-stream\\" : \\"application/json\\"; + req.httpRequest.headers[\\"Content-Type\\"] = type; +} }; +const v2023 = {}; +v2023.constructor = v2022; +v2022.prototype = v2023; +var v2021 = v2022; +var v2024 = v2022; +v2019 = function populateBody(req) { var builder = new v2020(); var input = req.service.api.operations[req.operation].input; if (input.payload) { + var params = {}; + var payloadShape = input.members[input.payload]; + params = req.params[input.payload]; + if (payloadShape.type === \\"structure\\") { + req.httpRequest.body = builder.build(params || {}, payloadShape); + v2021(req); + } + else if (params !== undefined) { + req.httpRequest.body = params; + if (payloadShape.type === \\"binary\\" || payloadShape.isStreaming) { + v2021(req, true); } - } - assumeRoleWithWebIdentity(args, optionsOrCb, cb) { - const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} +else { + req.httpRequest.body = builder.build(req.params, input); + v2024(req); +} }; +const v2025 = {}; +v2025.constructor = v2019; +v2019.prototype = v2025; +var v2018 = v2019; +v1975 = function buildRequest(req) { v1976.buildRequest(req); if ([\\"GET\\", \\"HEAD\\", \\"DELETE\\"].indexOf(req.httpRequest.method) < 0) { + v2018(req); +} }; +const v2026 = {}; +v2026.constructor = v1975; +v1975.prototype = v2026; +v1974.push(v1975); +v1973.build = v1974; +const v2027 = []; +var v2028; +var v2029 = v1977; +var v2030 = v1940; +var v2031 = undefined; +var v2032 = v3; +var v2033 = v1940; +const v2035 = {}; +v2035.buildRequest = v1906; +v2035.extractError = v1967; +v2035.extractData = v1937; +var v2034 = v2035; +var v2036 = v3; +v2028 = function extractData(resp) { v2029.extractData(resp); var req = resp.request; var operation = req.service.api.operations[req.operation]; var rules = req.service.api.operations[req.operation].output || {}; var parser; var hasEventOutput = operation.hasEventOutput; if (rules.payload) { + var payloadMember = rules.members[rules.payload]; + var body = resp.httpResponse.body; + if (payloadMember.isEventStream) { + parser = new v2030(); + resp.data[v2031] = v2032.createEventStream(undefined === 2 ? resp.httpResponse.stream : body, parser, payloadMember); + } + else if (payloadMember.type === \\"structure\\" || payloadMember.type === \\"list\\") { + var parser = new v2033(); + resp.data[rules.payload] = parser.parse(body, payloadMember); + } + else if (payloadMember.type === \\"binary\\" || payloadMember.isStreaming) { + resp.data[rules.payload] = body; + } + else { + resp.data[rules.payload] = payloadMember.toType(body); + } +} +else { + var data = resp.data; + v2034.extractData(resp); + resp.data = v2036.merge(data, resp.data); +} }; +const v2037 = {}; +v2037.constructor = v2028; +v2028.prototype = v2037; +v2027.push(v2028); +v1973.extractData = v2027; +const v2038 = []; +var v2039; +var v2040 = v2035; +v2039 = function extractError(resp) { v2040.extractError(resp); }; +const v2041 = {}; +v2041.constructor = v2039; +v2039.prototype = v2041; +v2038.push(v2039); +v1973.extractError = v2038; +v1972._events = v1973; +v1972.BUILD = v1975; +v1972.EXTRACT_DATA = v2028; +v1972.EXTRACT_ERROR = v2039; +const v2042 = Object.create(v401); +const v2043 = {}; +const v2044 = []; +var v2045; +var v2046 = v1977; +var v2048; +v2048 = function populateBody(req) { var input = req.service.api.operations[req.operation].input; var builder = new v937.Builder(); var params = req.params; var payload = input.payload; if (payload) { + var payloadMember = input.members[payload]; + params = params[payload]; + if (params === undefined) + return; + if (payloadMember.type === \\"structure\\") { + var rootElement = payloadMember.name; + req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true); + } + else { + req.httpRequest.body = params; + } +} +else { + req.httpRequest.body = builder.toXML(params, input, input.name || input.shape || v55.upperFirst(req.operation) + \\"Request\\"); +} }; +const v2049 = {}; +v2049.constructor = v2048; +v2048.prototype = v2049; +var v2047 = v2048; +v2045 = function buildRequest(req) { v2046.buildRequest(req); if ([\\"GET\\", \\"HEAD\\"].indexOf(req.httpRequest.method) < 0) { + v2047(req); +} }; +const v2050 = {}; +v2050.constructor = v2045; +v2045.prototype = v2050; +v2044.push(v2045); +v2043.build = v2044; +const v2051 = []; +var v2052; +var v2053 = v1977; +var v2054 = v3; +var v2055 = v3; +v2052 = function extractData(resp) { v2053.extractData(resp); var parser; var req = resp.request; var body = resp.httpResponse.body; var operation = req.service.api.operations[req.operation]; var output = operation.output; var hasEventOutput = operation.hasEventOutput; var payload = output.payload; if (payload) { + var payloadMember = output.members[payload]; + if (payloadMember.isEventStream) { + parser = new v937.Parser(); + resp.data[payload] = v2054.createEventStream(2 === 2 ? resp.httpResponse.stream : resp.httpResponse.body, parser, payloadMember); + } + else if (payloadMember.type === \\"structure\\") { + parser = new v937.Parser(); + resp.data[payload] = parser.parse(body.toString(), payloadMember); + } + else if (payloadMember.type === \\"binary\\" || payloadMember.isStreaming) { + resp.data[payload] = body; + } + else { + resp.data[payload] = payloadMember.toType(body); + } +} +else if (body.length > 0) { + parser = new v937.Parser(); + var data = parser.parse(body.toString(), output); + v2055.update(resp.data, data); +} }; +const v2056 = {}; +v2056.constructor = v2052; +v2052.prototype = v2056; +v2051.push(v2052); +v2043.extractData = v2051; +const v2057 = []; +var v2058; +var v2059 = v1977; +var v2060 = v3; +var v2061 = v40; +var v2062 = v3; +var v2063 = v40; +v2058 = function extractError(resp) { v2059.extractError(resp); var data; try { + data = new v937.Parser().parse(resp.httpResponse.body.toString()); +} +catch (e) { + data = { Code: resp.httpResponse.statusCode, Message: resp.httpResponse.statusMessage }; +} if (data.Errors) + data = data.Errors; if (data.Error) + data = data.Error; if (data.Code) { + resp.error = v2060.error(new v2061(), { code: data.Code, message: data.Message }); +} +else { + resp.error = v2062.error(new v2063(), { code: resp.httpResponse.statusCode, message: null }); +} }; +const v2064 = {}; +v2064.constructor = v2058; +v2058.prototype = v2064; +v2057.push(v2058); +v2043.extractError = v2057; +v2042._events = v2043; +v2042.BUILD = v2045; +v2042.EXTRACT_DATA = v2052; +v2042.EXTRACT_ERROR = v2058; +v796 = function serviceInterface() { switch (this.api.protocol) { + case \\"ec2\\": return v797; + case \\"query\\": return v797; + case \\"json\\": return v1903; + case \\"rest-json\\": return v1972; + case \\"rest-xml\\": return v2042; +} if (this.api.protocol) { + throw new v389(\\"Invalid service \`protocol' \\" + this.api.protocol + \\" in API config\\"); +} }; +const v2065 = {}; +v2065.constructor = v796; +v796.prototype = v2065; +v309.serviceInterface = v796; +var v2066; +v2066 = function successfulResponse(resp) { return resp.httpResponse.statusCode < 300; }; +const v2067 = {}; +v2067.constructor = v2066; +v2066.prototype = v2067; +v309.successfulResponse = v2066; +var v2068; +v2068 = function numRetries() { if (this.config.maxRetries !== undefined) { + return this.config.maxRetries; +} +else { + return this.defaultRetryCount; +} }; +const v2069 = {}; +v2069.constructor = v2068; +v2068.prototype = v2069; +v309.numRetries = v2068; +var v2070; +v2070 = function retryDelays(retryCount, err) { return v3.calculateRetryDelay(retryCount, this.config.retryDelayOptions, err); }; +const v2071 = {}; +v2071.constructor = v2070; +v2070.prototype = v2071; +v309.retryDelays = v2070; +var v2072; +v2072 = function retryableError(error) { if (this.timeoutError(error)) + return true; if (this.networkingError(error)) + return true; if (this.expiredCredentialsError(error)) + return true; if (this.throttledError(error)) + return true; if (error.statusCode >= 500) + return true; return false; }; +const v2073 = {}; +v2073.constructor = v2072; +v2072.prototype = v2073; +v309.retryableError = v2072; +var v2074; +v2074 = function networkingError(error) { return error.code === \\"NetworkingError\\"; }; +const v2075 = {}; +v2075.constructor = v2074; +v2074.prototype = v2075; +v309.networkingError = v2074; +var v2076; +v2076 = function timeoutError(error) { return error.code === \\"TimeoutError\\"; }; +const v2077 = {}; +v2077.constructor = v2076; +v2076.prototype = v2077; +v309.timeoutError = v2076; +var v2078; +v2078 = function expiredCredentialsError(error) { return (error.code === \\"ExpiredTokenException\\"); }; +const v2079 = {}; +v2079.constructor = v2078; +v2078.prototype = v2079; +v309.expiredCredentialsError = v2078; +var v2080; +v2080 = function clockSkewError(error) { switch (error.code) { + case \\"RequestTimeTooSkewed\\": + case \\"RequestExpired\\": + case \\"InvalidSignatureException\\": + case \\"SignatureDoesNotMatch\\": + case \\"AuthFailure\\": + case \\"RequestInTheFuture\\": return true; + default: return false; +} }; +const v2081 = {}; +v2081.constructor = v2080; +v2080.prototype = v2081; +v309.clockSkewError = v2080; +var v2082; +v2082 = function getSkewCorrectedDate() { return new v386(v386.now() + this.config.systemClockOffset); }; +const v2083 = {}; +v2083.constructor = v2082; +v2082.prototype = v2083; +v309.getSkewCorrectedDate = v2082; +var v2084; +v2084 = function applyClockOffset(newServerTime) { if (newServerTime) { + this.config.systemClockOffset = newServerTime - v386.now(); +} }; +const v2085 = {}; +v2085.constructor = v2084; +v2084.prototype = v2085; +v309.applyClockOffset = v2084; +var v2086; +var v2087 = v787; +v2086 = function isClockSkewed(newServerTime) { if (newServerTime) { + return v2087.abs(this.getSkewCorrectedDate().getTime() - newServerTime) >= 300000; +} }; +const v2088 = {}; +v2088.constructor = v2086; +v2086.prototype = v2088; +v309.isClockSkewed = v2086; +var v2089; +v2089 = function throttledError(error) { if (error.statusCode === 429) + return true; switch (error.code) { + case \\"ProvisionedThroughputExceededException\\": + case \\"Throttling\\": + case \\"ThrottlingException\\": + case \\"RequestLimitExceeded\\": + case \\"RequestThrottled\\": + case \\"RequestThrottledException\\": + case \\"TooManyRequestsException\\": + case \\"TransactionInProgressException\\": + case \\"EC2ThrottledException\\": return true; + default: return false; +} }; +const v2090 = {}; +v2090.constructor = v2089; +v2089.prototype = v2090; +v309.throttledError = v2089; +var v2091; +v2091 = function endpointFromTemplate(endpoint) { if (typeof endpoint !== \\"string\\") + return endpoint; var e = endpoint; e = e.replace(/\\\\{service\\\\}/g, this.api.endpointPrefix); e = e.replace(/\\\\{region\\\\}/g, this.config.region); e = e.replace(/\\\\{scheme\\\\}/g, this.config.sslEnabled ? \\"https\\" : \\"http\\"); return e; }; +const v2092 = {}; +v2092.constructor = v2091; +v2091.prototype = v2092; +v309.endpointFromTemplate = v2091; +var v2093; +v2093 = function setEndpoint(endpoint) { this.endpoint = new v375.Endpoint(endpoint, this.config); }; +const v2094 = {}; +v2094.constructor = v2093; +v2093.prototype = v2094; +v309.setEndpoint = v2093; +var v2095; +v2095 = function paginationConfig(operation, throwException) { var paginator = this.api.operations[operation].paginator; if (!paginator) { + if (throwException) { + var e = new v389(); + throw v3.error(e, \\"No pagination configuration for \\" + operation); + } + return null; +} return paginator; }; +const v2096 = {}; +v2096.constructor = v2095; +v2095.prototype = v2096; +v309.paginationConfig = v2095; +v309.listeners = v403; +v309.on = v405; +v309.onAsync = v407; +v309.removeListener = v409; +v309.removeAllListeners = v411; +v309.emit = v413; +v309.callListeners = v415; +v309.addListeners = v418; +v309.addNamedListener = v420; +v309.addNamedAsyncListener = v422; +v309.addNamedListeners = v424; +v309.addListener = v405; +const v2097 = {}; +v309._events = v2097; +const v2098 = {}; +var v2099; +v2099 = function Publisher(options) { options = options || {}; this.enabled = options.enabled || false; this.port = options.port || 31000; this.clientId = options.clientId || \\"\\"; this.address = options.host || \\"127.0.0.1\\"; if (this.clientId.length > 255) { + this.clientId = this.clientId.substr(0, 255); +} this.messagesInFlight = 0; }; +v2099.prototype = v2098; +v2098.constructor = v2099; +const v2100 = {}; +v2100.UserAgent = 256; +v2100.SdkException = 128; +v2100.SdkExceptionMessage = 512; +v2100.AwsException = 128; +v2100.AwsExceptionMessage = 512; +v2100.FinalSdkException = 128; +v2100.FinalSdkExceptionMessage = 512; +v2100.FinalAwsException = 128; +v2100.FinalAwsExceptionMessage = 512; +v2098.fieldsToTrim = v2100; +var v2101; +var v2102 = v31; +v2101 = function (event) { var trimmableFields = v2102.keys(this.fieldsToTrim); for (var i = 0, iLen = trimmableFields.length; i < iLen; i++) { + var field = trimmableFields[i]; + if (event.hasOwnProperty(field)) { + var maxLength = this.fieldsToTrim[field]; + var value = event[field]; + if (value && value.length > maxLength) { + event[field] = value.substr(0, maxLength); } - } - decodeAuthorizationMessage(args, optionsOrCb, cb) { - const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} return event; }; +const v2103 = {}; +v2103.constructor = v2101; +v2101.prototype = v2103; +v2098.trimFields = v2101; +var v2104; +var v2105 = v42; +var v2106 = v163; +var v2107 = 8192; +v2104 = function (event) { event.ClientId = this.clientId; this.trimFields(event); var message = v2105(v2106.stringify(event)); if (!this.enabled || message.length > v2107) { + return; +} this.publishDatagram(message); }; +const v2108 = {}; +v2108.constructor = v2104; +v2104.prototype = v2108; +v2098.eventHandler = v2104; +var v2109; +v2109 = function (message) { var self = this; var client = this.getClient(); this.messagesInFlight++; this.client.send(message, 0, message.length, this.port, this.address, function (err, bytes) { if (--self.messagesInFlight <= 0) { + self.destroyClient(); +} }); }; +const v2110 = {}; +v2110.constructor = v2109; +v2109.prototype = v2110; +v2098.publishDatagram = v2109; +var v2111; +const v2113 = require(\\"dgram\\"); +var v2112 = v2113; +v2111 = function () { if (!this.client) { + this.client = v2112.createSocket(\\"udp4\\"); +} return this.client; }; +const v2114 = {}; +v2114.constructor = v2111; +v2111.prototype = v2114; +v2098.getClient = v2111; +var v2115; +v2115 = function () { if (this.client) { + this.client.close(); + this.client = void 0; +} }; +const v2116 = {}; +v2116.constructor = v2115; +v2115.prototype = v2116; +v2098.destroyClient = v2115; +const v2117 = Object.create(v2098); +v2117.enabled = false; +v2117.port = 31000; +v2117.clientId = \\"\\"; +v2117.address = \\"127.0.0.1\\"; +v2117.messagesInFlight = 0; +v309.publisher = v2117; +v299.prototype = v309; +v299.__super__ = v31; +var v2118; +v2118 = function defineMethods(svc) { v3.each(svc.prototype.api.operations, function iterator(method) { if (svc.prototype[method]) + return; var operation = svc.prototype.api.operations[method]; if (operation.authtype === \\"none\\") { + svc.prototype[method] = function (params, callback) { return this.makeUnauthenticatedRequest(method, params, callback); }; +} +else { + svc.prototype[method] = function (params, callback) { return this.makeRequest(method, params, callback); }; +} }); }; +const v2119 = {}; +v2119.constructor = v2118; +v2118.prototype = v2119; +v299.defineMethods = v2118; +var v2120; +const v2121 = {}; +v2121.sts = true; +v2121.cognitoidentity = true; +v2121.acm = true; +v2121.apigateway = true; +v2121.applicationautoscaling = true; +v2121.appstream = true; +v2121.autoscaling = true; +v2121.batch = true; +v2121.budgets = true; +v2121.clouddirectory = true; +v2121.cloudformation = true; +v2121.cloudfront = true; +v2121.cloudhsm = true; +v2121.cloudsearch = true; +v2121.cloudsearchdomain = true; +v2121.cloudtrail = true; +v2121.cloudwatch = true; +v2121.cloudwatchevents = true; +v2121.cloudwatchlogs = true; +v2121.codebuild = true; +v2121.codecommit = true; +v2121.codedeploy = true; +v2121.codepipeline = true; +v2121.cognitoidentityserviceprovider = true; +v2121.cognitosync = true; +v2121.configservice = true; +v2121.cur = true; +v2121.datapipeline = true; +v2121.devicefarm = true; +v2121.directconnect = true; +v2121.directoryservice = true; +v2121.discovery = true; +v2121.dms = true; +v2121.dynamodb = true; +v2121.dynamodbstreams = true; +v2121.ec2 = true; +v2121.ecr = true; +v2121.ecs = true; +v2121.efs = true; +v2121.elasticache = true; +v2121.elasticbeanstalk = true; +v2121.elb = true; +v2121.elbv2 = true; +v2121.emr = true; +v2121.es = true; +v2121.elastictranscoder = true; +v2121.firehose = true; +v2121.gamelift = true; +v2121.glacier = true; +v2121.health = true; +v2121.iam = true; +v2121.importexport = true; +v2121.inspector = true; +v2121.iot = true; +v2121.iotdata = true; +v2121.kinesis = true; +v2121.kinesisanalytics = true; +v2121.kms = true; +v2121.lambda = true; +v2121.lexruntime = true; +v2121.lightsail = true; +v2121.machinelearning = true; +v2121.marketplacecommerceanalytics = true; +v2121.marketplacemetering = true; +v2121.mturk = true; +v2121.mobileanalytics = true; +v2121.opsworks = true; +v2121.opsworkscm = true; +v2121.organizations = true; +v2121.pinpoint = true; +v2121.polly = true; +v2121.rds = true; +v2121.redshift = true; +v2121.rekognition = true; +v2121.resourcegroupstaggingapi = true; +v2121.route53 = true; +v2121.route53domains = true; +v2121.s3 = true; +v2121.s3control = true; +v2121.servicecatalog = true; +v2121.ses = true; +v2121.shield = true; +v2121.simpledb = true; +v2121.sms = true; +v2121.snowball = true; +v2121.sns = true; +v2121.sqs = true; +v2121.ssm = true; +v2121.storagegateway = true; +v2121.stepfunctions = true; +v2121.support = true; +v2121.swf = true; +v2121.xray = true; +v2121.waf = true; +v2121.wafregional = true; +v2121.workdocs = true; +v2121.workspaces = true; +v2121.codestar = true; +v2121.lexmodelbuildingservice = true; +v2121.marketplaceentitlementservice = true; +v2121.athena = true; +v2121.greengrass = true; +v2121.dax = true; +v2121.migrationhub = true; +v2121.cloudhsmv2 = true; +v2121.glue = true; +v2121.mobile = true; +v2121.pricing = true; +v2121.costexplorer = true; +v2121.mediaconvert = true; +v2121.medialive = true; +v2121.mediapackage = true; +v2121.mediastore = true; +v2121.mediastoredata = true; +v2121.appsync = true; +v2121.guardduty = true; +v2121.mq = true; +v2121.comprehend = true; +v2121.iotjobsdataplane = true; +v2121.kinesisvideoarchivedmedia = true; +v2121.kinesisvideomedia = true; +v2121.kinesisvideo = true; +v2121.sagemakerruntime = true; +v2121.sagemaker = true; +v2121.translate = true; +v2121.resourcegroups = true; +v2121.alexaforbusiness = true; +v2121.cloud9 = true; +v2121.serverlessapplicationrepository = true; +v2121.servicediscovery = true; +v2121.workmail = true; +v2121.autoscalingplans = true; +v2121.transcribeservice = true; +v2121.connect = true; +v2121.acmpca = true; +v2121.fms = true; +v2121.secretsmanager = true; +v2121.iotanalytics = true; +v2121.iot1clickdevicesservice = true; +v2121.iot1clickprojects = true; +v2121.pi = true; +v2121.neptune = true; +v2121.mediatailor = true; +v2121.eks = true; +v2121.macie = true; +v2121.dlm = true; +v2121.signer = true; +v2121.chime = true; +v2121.pinpointemail = true; +v2121.ram = true; +v2121.route53resolver = true; +v2121.pinpointsmsvoice = true; +v2121.quicksight = true; +v2121.rdsdataservice = true; +v2121.amplify = true; +v2121.datasync = true; +v2121.robomaker = true; +v2121.transfer = true; +v2121.globalaccelerator = true; +v2121.comprehendmedical = true; +v2121.kinesisanalyticsv2 = true; +v2121.mediaconnect = true; +v2121.fsx = true; +v2121.securityhub = true; +v2121.appmesh = true; +v2121.licensemanager = true; +v2121.kafka = true; +v2121.apigatewaymanagementapi = true; +v2121.apigatewayv2 = true; +v2121.docdb = true; +v2121.backup = true; +v2121.worklink = true; +v2121.textract = true; +v2121.managedblockchain = true; +v2121.mediapackagevod = true; +v2121.groundstation = true; +v2121.iotthingsgraph = true; +v2121.iotevents = true; +v2121.ioteventsdata = true; +v2121.personalize = true; +v2121.personalizeevents = true; +v2121.personalizeruntime = true; +v2121.applicationinsights = true; +v2121.servicequotas = true; +v2121.ec2instanceconnect = true; +v2121.eventbridge = true; +v2121.lakeformation = true; +v2121.forecastservice = true; +v2121.forecastqueryservice = true; +v2121.qldb = true; +v2121.qldbsession = true; +v2121.workmailmessageflow = true; +v2121.codestarnotifications = true; +v2121.savingsplans = true; +v2121.sso = true; +v2121.ssooidc = true; +v2121.marketplacecatalog = true; +v2121.dataexchange = true; +v2121.sesv2 = true; +v2121.migrationhubconfig = true; +v2121.connectparticipant = true; +v2121.appconfig = true; +v2121.iotsecuretunneling = true; +v2121.wafv2 = true; +v2121.elasticinference = true; +v2121.imagebuilder = true; +v2121.schemas = true; +v2121.accessanalyzer = true; +v2121.codegurureviewer = true; +v2121.codeguruprofiler = true; +v2121.computeoptimizer = true; +v2121.frauddetector = true; +v2121.kendra = true; +v2121.networkmanager = true; +v2121.outposts = true; +v2121.augmentedairuntime = true; +v2121.ebs = true; +v2121.kinesisvideosignalingchannels = true; +v2121.detective = true; +v2121.codestarconnections = true; +v2121.synthetics = true; +v2121.iotsitewise = true; +v2121.macie2 = true; +v2121.codeartifact = true; +v2121.honeycode = true; +v2121.ivs = true; +v2121.braket = true; +v2121.identitystore = true; +v2121.appflow = true; +v2121.redshiftdata = true; +v2121.ssoadmin = true; +v2121.timestreamquery = true; +v2121.timestreamwrite = true; +v2121.s3outposts = true; +v2121.databrew = true; +v2121.servicecatalogappregistry = true; +v2121.networkfirewall = true; +v2121.mwaa = true; +v2121.amplifybackend = true; +v2121.appintegrations = true; +v2121.connectcontactlens = true; +v2121.devopsguru = true; +v2121.ecrpublic = true; +v2121.lookoutvision = true; +v2121.sagemakerfeaturestoreruntime = true; +v2121.customerprofiles = true; +v2121.auditmanager = true; +v2121.emrcontainers = true; +v2121.healthlake = true; +v2121.sagemakeredge = true; +v2121.amp = true; +v2121.greengrassv2 = true; +v2121.iotdeviceadvisor = true; +v2121.iotfleethub = true; +v2121.iotwireless = true; +v2121.location = true; +v2121.wellarchitected = true; +v2121.lexmodelsv2 = true; +v2121.lexruntimev2 = true; +v2121.fis = true; +v2121.lookoutmetrics = true; +v2121.mgn = true; +v2121.lookoutequipment = true; +v2121.nimble = true; +v2121.finspace = true; +v2121.finspacedata = true; +v2121.ssmcontacts = true; +v2121.ssmincidents = true; +v2121.applicationcostprofiler = true; +v2121.apprunner = true; +v2121.proton = true; +v2121.route53recoverycluster = true; +v2121.route53recoverycontrolconfig = true; +v2121.route53recoveryreadiness = true; +v2121.chimesdkidentity = true; +v2121.chimesdkmessaging = true; +v2121.snowdevicemanagement = true; +v2121.memorydb = true; +v2121.opensearch = true; +v2121.kafkaconnect = true; +v2121.voiceid = true; +v2121.wisdom = true; +v2121.account = true; +v2121.cloudcontrol = true; +v2121.grafana = true; +v2121.panorama = true; +v2121.chimesdkmeetings = true; +v2121.resiliencehub = true; +v2121.migrationhubstrategy = true; +v2121.appconfigdata = true; +v2121.drs = true; +v2121.migrationhubrefactorspaces = true; +v2121.evidently = true; +v2121.inspector2 = true; +v2121.rbin = true; +v2121.rum = true; +v2121.backupgateway = true; +v2121.iottwinmaker = true; +v2121.workspacesweb = true; +v2121.amplifyuibuilder = true; +v2121.keyspaces = true; +v2121.billingconductor = true; +v2121.gamesparks = true; +v2121.pinpointsmsvoicev2 = true; +v2121.ivschat = true; +v2121.chimesdkmediapipelines = true; +v2121.emrserverless = true; +v2121.m2 = true; +v2121.connectcampaigns = true; +v2121.redshiftserverless = true; +v2121.rolesanywhere = true; +v2121.licensemanagerusersubscriptions = true; +v2121.backupstorage = true; +v2121.privatenetworks = true; +var v2122 = v33; +var v2123 = v138; +var v2124 = v2; +const v2125 = {}; +v2125.Publisher = v2099; +var v2126; +var v2128; +var v2129 = v8; +var v2130 = v8; +var v2131 = v8; +v2128 = function fromEnvironment(config) { config.port = config.port || v2129.env.AWS_CSM_PORT; config.enabled = config.enabled || v2130.env.AWS_CSM_ENABLED; config.clientId = config.clientId || v2129.env.AWS_CSM_CLIENT_ID; config.host = config.host || v2131.env.AWS_CSM_HOST; return config.port && config.enabled && config.clientId && config.host || [\\"false\\", \\"0\\"].indexOf(config.enabled) >= 0; }; +const v2132 = {}; +v2132.constructor = v2128; +v2128.prototype = v2132; +var v2127 = v2128; +var v2134; +var v2135 = v8; +v2134 = function fromConfigFile(config) { var sharedFileConfig; try { + var configFile = v200.loadFrom({ isConfig: true, filename: v2135.env[\\"AWS_CONFIG_FILE\\"] }); + var sharedFileConfig = configFile[v2131.env.AWS_PROFILE || \\"default\\"]; +} +catch (err) { + return false; +} if (!sharedFileConfig) + return config; config.port = config.port || sharedFileConfig.csm_port; config.enabled = config.enabled || sharedFileConfig.csm_enabled; config.clientId = config.clientId || sharedFileConfig.csm_client_id; config.host = config.host || sharedFileConfig.csm_host; return config.port && config.enabled && config.clientId && config.host; }; +const v2136 = {}; +v2136.constructor = v2134; +v2134.prototype = v2136; +var v2133 = v2134; +var v2138; +var v2139 = v117; +v2138 = function toJSType(config) { var falsyNotations = [\\"false\\", \\"0\\", undefined]; if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) { + config.enabled = false; +} +else { + config.enabled = true; +} config.port = config.port ? v2139(config.port, 10) : undefined; return config; }; +const v2140 = {}; +v2140.constructor = v2138; +v2138.prototype = v2140; +var v2137 = v2138; +var v2141 = v2138; +v2126 = function resolveMonitoringConfig() { var config = { port: undefined, clientId: undefined, enabled: undefined, host: undefined }; if (v2127(config) || v2133(config)) + return v2137(config); return v2141(config); }; +const v2142 = {}; +v2142.constructor = v2126; +v2126.prototype = v2142; +v2125.configProvider = v2126; +v2120 = function defineService(serviceIdentifier, versions, features) { v2121[serviceIdentifier] = true; if (!v2122.isArray(versions)) { + features = versions; + versions = []; +} var svc = v2123(v381.Service, features || {}); if (typeof serviceIdentifier === \\"string\\") { + v2124.Service.addVersions(svc, versions); + var identifier = svc.serviceIdentifier || serviceIdentifier; + svc.serviceIdentifier = identifier; +} +else { + svc.prototype.api = serviceIdentifier; + v375.Service.defineMethods(svc); +} v375.SequentialExecutor.call(this.prototype); if (!this.prototype.publisher && v2125) { + var Publisher = v2125.Publisher; + var configProvider = v2125.configProvider; + var publisherConfig = configProvider(); + this.prototype.publisher = new Publisher(publisherConfig); + if (publisherConfig.enabled) { + undefined = true; + } +} v381.SequentialExecutor.call(svc.prototype); v381.Service.addDefaultMonitoringListeners(svc.prototype); return svc; }; +const v2143 = {}; +v2143.constructor = v2120; +v2120.prototype = v2143; +v299.defineService = v2120; +var v2144; +var v2145 = v31; +v2144 = function addVersions(svc, versions) { if (!v2122.isArray(versions)) + versions = [versions]; svc.services = svc.services || {}; for (var i = 0; i < versions.length; i++) { + if (svc.services[versions[i]] === undefined) { + svc.services[versions[i]] = null; + } +} svc.apiVersions = v2145.keys(svc.services).sort(); }; +const v2146 = {}; +v2146.constructor = v2144; +v2144.prototype = v2146; +v299.addVersions = v2144; +var v2147; +var v2148 = v138; +var v2150; +var v2151 = v144; +var v2152 = v144; +var v2153 = v144; +var v2154 = v144; +var v2155 = v144; +var v2156 = v144; +var v2157 = v144; +var v2158 = v144; +var v2159 = v144; +const v2161 = {}; +const v2162 = {}; +v2162.name = \\"ACM\\"; +v2162.cors = true; +v2161.acm = v2162; +const v2163 = {}; +v2163.name = \\"APIGateway\\"; +v2163.cors = true; +v2161.apigateway = v2163; +const v2164 = {}; +v2164.prefix = \\"application-autoscaling\\"; +v2164.name = \\"ApplicationAutoScaling\\"; +v2164.cors = true; +v2161.applicationautoscaling = v2164; +const v2165 = {}; +v2165.name = \\"AppStream\\"; +v2161.appstream = v2165; +const v2166 = {}; +v2166.name = \\"AutoScaling\\"; +v2166.cors = true; +v2161.autoscaling = v2166; +const v2167 = {}; +v2167.name = \\"Batch\\"; +v2161.batch = v2167; +const v2168 = {}; +v2168.name = \\"Budgets\\"; +v2161.budgets = v2168; +const v2169 = {}; +v2169.name = \\"CloudDirectory\\"; +const v2170 = []; +v2170.push(\\"2016-05-10*\\"); +v2169.versions = v2170; +v2161.clouddirectory = v2169; +const v2171 = {}; +v2171.name = \\"CloudFormation\\"; +v2171.cors = true; +v2161.cloudformation = v2171; +const v2172 = {}; +v2172.name = \\"CloudFront\\"; +const v2173 = []; +v2173.push(\\"2013-05-12*\\", \\"2013-11-11*\\", \\"2014-05-31*\\", \\"2014-10-21*\\", \\"2014-11-06*\\", \\"2015-04-17*\\", \\"2015-07-27*\\", \\"2015-09-17*\\", \\"2016-01-13*\\", \\"2016-01-28*\\", \\"2016-08-01*\\", \\"2016-08-20*\\", \\"2016-09-07*\\", \\"2016-09-29*\\", \\"2016-11-25*\\", \\"2017-03-25*\\", \\"2017-10-30*\\", \\"2018-06-18*\\", \\"2018-11-05*\\", \\"2019-03-26*\\"); +v2172.versions = v2173; +v2172.cors = true; +v2161.cloudfront = v2172; +const v2174 = {}; +v2174.name = \\"CloudHSM\\"; +v2174.cors = true; +v2161.cloudhsm = v2174; +const v2175 = {}; +v2175.name = \\"CloudSearch\\"; +v2161.cloudsearch = v2175; +const v2176 = {}; +v2176.name = \\"CloudSearchDomain\\"; +v2161.cloudsearchdomain = v2176; +const v2177 = {}; +v2177.name = \\"CloudTrail\\"; +v2177.cors = true; +v2161.cloudtrail = v2177; +const v2178 = {}; +v2178.prefix = \\"monitoring\\"; +v2178.name = \\"CloudWatch\\"; +v2178.cors = true; +v2161.cloudwatch = v2178; +const v2179 = {}; +v2179.prefix = \\"events\\"; +v2179.name = \\"CloudWatchEvents\\"; +const v2180 = []; +v2180.push(\\"2014-02-03*\\"); +v2179.versions = v2180; +v2179.cors = true; +v2161.cloudwatchevents = v2179; +const v2181 = {}; +v2181.prefix = \\"logs\\"; +v2181.name = \\"CloudWatchLogs\\"; +v2181.cors = true; +v2161.cloudwatchlogs = v2181; +const v2182 = {}; +v2182.name = \\"CodeBuild\\"; +v2182.cors = true; +v2161.codebuild = v2182; +const v2183 = {}; +v2183.name = \\"CodeCommit\\"; +v2183.cors = true; +v2161.codecommit = v2183; +const v2184 = {}; +v2184.name = \\"CodeDeploy\\"; +v2184.cors = true; +v2161.codedeploy = v2184; +const v2185 = {}; +v2185.name = \\"CodePipeline\\"; +v2185.cors = true; +v2161.codepipeline = v2185; +const v2186 = {}; +v2186.prefix = \\"cognito-identity\\"; +v2186.name = \\"CognitoIdentity\\"; +v2186.cors = true; +v2161.cognitoidentity = v2186; +const v2187 = {}; +v2187.prefix = \\"cognito-idp\\"; +v2187.name = \\"CognitoIdentityServiceProvider\\"; +v2187.cors = true; +v2161.cognitoidentityserviceprovider = v2187; +const v2188 = {}; +v2188.prefix = \\"cognito-sync\\"; +v2188.name = \\"CognitoSync\\"; +v2188.cors = true; +v2161.cognitosync = v2188; +const v2189 = {}; +v2189.prefix = \\"config\\"; +v2189.name = \\"ConfigService\\"; +v2189.cors = true; +v2161.configservice = v2189; +const v2190 = {}; +v2190.name = \\"CUR\\"; +v2190.cors = true; +v2161.cur = v2190; +const v2191 = {}; +v2191.name = \\"DataPipeline\\"; +v2161.datapipeline = v2191; +const v2192 = {}; +v2192.name = \\"DeviceFarm\\"; +v2192.cors = true; +v2161.devicefarm = v2192; +const v2193 = {}; +v2193.name = \\"DirectConnect\\"; +v2193.cors = true; +v2161.directconnect = v2193; +const v2194 = {}; +v2194.prefix = \\"ds\\"; +v2194.name = \\"DirectoryService\\"; +v2161.directoryservice = v2194; +const v2195 = {}; +v2195.name = \\"Discovery\\"; +v2161.discovery = v2195; +const v2196 = {}; +v2196.name = \\"DMS\\"; +v2161.dms = v2196; +const v2197 = {}; +v2197.name = \\"DynamoDB\\"; +v2197.cors = true; +v2161.dynamodb = v2197; +const v2198 = {}; +v2198.prefix = \\"streams.dynamodb\\"; +v2198.name = \\"DynamoDBStreams\\"; +v2198.cors = true; +v2161.dynamodbstreams = v2198; +const v2199 = {}; +v2199.name = \\"EC2\\"; +const v2200 = []; +v2200.push(\\"2013-06-15*\\", \\"2013-10-15*\\", \\"2014-02-01*\\", \\"2014-05-01*\\", \\"2014-06-15*\\", \\"2014-09-01*\\", \\"2014-10-01*\\", \\"2015-03-01*\\", \\"2015-04-15*\\", \\"2015-10-01*\\", \\"2016-04-01*\\", \\"2016-09-15*\\"); +v2199.versions = v2200; +v2199.cors = true; +v2161.ec2 = v2199; +const v2201 = {}; +v2201.name = \\"ECR\\"; +v2201.cors = true; +v2161.ecr = v2201; +const v2202 = {}; +v2202.name = \\"ECS\\"; +v2202.cors = true; +v2161.ecs = v2202; +const v2203 = {}; +v2203.prefix = \\"elasticfilesystem\\"; +v2203.name = \\"EFS\\"; +v2203.cors = true; +v2161.efs = v2203; +const v2204 = {}; +v2204.name = \\"ElastiCache\\"; +const v2205 = []; +v2205.push(\\"2012-11-15*\\", \\"2014-03-24*\\", \\"2014-07-15*\\", \\"2014-09-30*\\"); +v2204.versions = v2205; +v2204.cors = true; +v2161.elasticache = v2204; +const v2206 = {}; +v2206.name = \\"ElasticBeanstalk\\"; +v2206.cors = true; +v2161.elasticbeanstalk = v2206; +const v2207 = {}; +v2207.prefix = \\"elasticloadbalancing\\"; +v2207.name = \\"ELB\\"; +v2207.cors = true; +v2161.elb = v2207; +const v2208 = {}; +v2208.prefix = \\"elasticloadbalancingv2\\"; +v2208.name = \\"ELBv2\\"; +v2208.cors = true; +v2161.elbv2 = v2208; +const v2209 = {}; +v2209.prefix = \\"elasticmapreduce\\"; +v2209.name = \\"EMR\\"; +v2209.cors = true; +v2161.emr = v2209; +const v2210 = {}; +v2210.name = \\"ES\\"; +v2161.es = v2210; +const v2211 = {}; +v2211.name = \\"ElasticTranscoder\\"; +v2211.cors = true; +v2161.elastictranscoder = v2211; +const v2212 = {}; +v2212.name = \\"Firehose\\"; +v2212.cors = true; +v2161.firehose = v2212; +const v2213 = {}; +v2213.name = \\"GameLift\\"; +v2213.cors = true; +v2161.gamelift = v2213; +const v2214 = {}; +v2214.name = \\"Glacier\\"; +v2161.glacier = v2214; +const v2215 = {}; +v2215.name = \\"Health\\"; +v2161.health = v2215; +const v2216 = {}; +v2216.name = \\"IAM\\"; +v2216.cors = true; +v2161.iam = v2216; +const v2217 = {}; +v2217.name = \\"ImportExport\\"; +v2161.importexport = v2217; +const v2218 = {}; +v2218.name = \\"Inspector\\"; +const v2219 = []; +v2219.push(\\"2015-08-18*\\"); +v2218.versions = v2219; +v2218.cors = true; +v2161.inspector = v2218; +const v2220 = {}; +v2220.name = \\"Iot\\"; +v2220.cors = true; +v2161.iot = v2220; +const v2221 = {}; +v2221.prefix = \\"iot-data\\"; +v2221.name = \\"IotData\\"; +v2221.cors = true; +v2161.iotdata = v2221; +const v2222 = {}; +v2222.name = \\"Kinesis\\"; +v2222.cors = true; +v2161.kinesis = v2222; +const v2223 = {}; +v2223.name = \\"KinesisAnalytics\\"; +v2161.kinesisanalytics = v2223; +const v2224 = {}; +v2224.name = \\"KMS\\"; +v2224.cors = true; +v2161.kms = v2224; +const v2225 = {}; +v2225.name = \\"Lambda\\"; +v2225.cors = true; +v2161.lambda = v2225; +const v2226 = {}; +v2226.prefix = \\"runtime.lex\\"; +v2226.name = \\"LexRuntime\\"; +v2226.cors = true; +v2161.lexruntime = v2226; +const v2227 = {}; +v2227.name = \\"Lightsail\\"; +v2161.lightsail = v2227; +const v2228 = {}; +v2228.name = \\"MachineLearning\\"; +v2228.cors = true; +v2161.machinelearning = v2228; +const v2229 = {}; +v2229.name = \\"MarketplaceCommerceAnalytics\\"; +v2229.cors = true; +v2161.marketplacecommerceanalytics = v2229; +const v2230 = {}; +v2230.prefix = \\"meteringmarketplace\\"; +v2230.name = \\"MarketplaceMetering\\"; +v2161.marketplacemetering = v2230; +const v2231 = {}; +v2231.prefix = \\"mturk-requester\\"; +v2231.name = \\"MTurk\\"; +v2231.cors = true; +v2161.mturk = v2231; +const v2232 = {}; +v2232.name = \\"MobileAnalytics\\"; +v2232.cors = true; +v2161.mobileanalytics = v2232; +const v2233 = {}; +v2233.name = \\"OpsWorks\\"; +v2233.cors = true; +v2161.opsworks = v2233; +const v2234 = {}; +v2234.name = \\"OpsWorksCM\\"; +v2161.opsworkscm = v2234; +const v2235 = {}; +v2235.name = \\"Organizations\\"; +v2161.organizations = v2235; +const v2236 = {}; +v2236.name = \\"Pinpoint\\"; +v2161.pinpoint = v2236; +const v2237 = {}; +v2237.name = \\"Polly\\"; +v2237.cors = true; +v2161.polly = v2237; +const v2238 = {}; +v2238.name = \\"RDS\\"; +const v2239 = []; +v2239.push(\\"2014-09-01*\\"); +v2238.versions = v2239; +v2238.cors = true; +v2161.rds = v2238; +const v2240 = {}; +v2240.name = \\"Redshift\\"; +v2240.cors = true; +v2161.redshift = v2240; +const v2241 = {}; +v2241.name = \\"Rekognition\\"; +v2241.cors = true; +v2161.rekognition = v2241; +const v2242 = {}; +v2242.name = \\"ResourceGroupsTaggingAPI\\"; +v2161.resourcegroupstaggingapi = v2242; +const v2243 = {}; +v2243.name = \\"Route53\\"; +v2243.cors = true; +v2161.route53 = v2243; +const v2244 = {}; +v2244.name = \\"Route53Domains\\"; +v2244.cors = true; +v2161.route53domains = v2244; +const v2245 = {}; +v2245.name = \\"S3\\"; +v2245.dualstackAvailable = true; +v2245.cors = true; +v2161.s3 = v2245; +const v2246 = {}; +v2246.name = \\"S3Control\\"; +v2246.dualstackAvailable = true; +v2246.xmlNoDefaultLists = true; +v2161.s3control = v2246; +const v2247 = {}; +v2247.name = \\"ServiceCatalog\\"; +v2247.cors = true; +v2161.servicecatalog = v2247; +const v2248 = {}; +v2248.prefix = \\"email\\"; +v2248.name = \\"SES\\"; +v2248.cors = true; +v2161.ses = v2248; +const v2249 = {}; +v2249.name = \\"Shield\\"; +v2161.shield = v2249; +const v2250 = {}; +v2250.prefix = \\"sdb\\"; +v2250.name = \\"SimpleDB\\"; +v2161.simpledb = v2250; +const v2251 = {}; +v2251.name = \\"SMS\\"; +v2161.sms = v2251; +const v2252 = {}; +v2252.name = \\"Snowball\\"; +v2161.snowball = v2252; +const v2253 = {}; +v2253.name = \\"SNS\\"; +v2253.cors = true; +v2161.sns = v2253; +const v2254 = {}; +v2254.name = \\"SQS\\"; +v2254.cors = true; +v2161.sqs = v2254; +const v2255 = {}; +v2255.name = \\"SSM\\"; +v2255.cors = true; +v2161.ssm = v2255; +const v2256 = {}; +v2256.name = \\"StorageGateway\\"; +v2256.cors = true; +v2161.storagegateway = v2256; +const v2257 = {}; +v2257.prefix = \\"states\\"; +v2257.name = \\"StepFunctions\\"; +v2161.stepfunctions = v2257; +const v2258 = {}; +v2258.name = \\"STS\\"; +v2258.cors = true; +v2161.sts = v2258; +const v2259 = {}; +v2259.name = \\"Support\\"; +v2161.support = v2259; +const v2260 = {}; +v2260.name = \\"SWF\\"; +v2161.swf = v2260; +const v2261 = {}; +v2261.name = \\"XRay\\"; +v2261.cors = true; +v2161.xray = v2261; +const v2262 = {}; +v2262.name = \\"WAF\\"; +v2262.cors = true; +v2161.waf = v2262; +const v2263 = {}; +v2263.prefix = \\"waf-regional\\"; +v2263.name = \\"WAFRegional\\"; +v2161.wafregional = v2263; +const v2264 = {}; +v2264.name = \\"WorkDocs\\"; +v2264.cors = true; +v2161.workdocs = v2264; +const v2265 = {}; +v2265.name = \\"WorkSpaces\\"; +v2161.workspaces = v2265; +const v2266 = {}; +v2266.name = \\"CodeStar\\"; +v2161.codestar = v2266; +const v2267 = {}; +v2267.prefix = \\"lex-models\\"; +v2267.name = \\"LexModelBuildingService\\"; +v2267.cors = true; +v2161.lexmodelbuildingservice = v2267; +const v2268 = {}; +v2268.prefix = \\"entitlement.marketplace\\"; +v2268.name = \\"MarketplaceEntitlementService\\"; +v2161.marketplaceentitlementservice = v2268; +const v2269 = {}; +v2269.name = \\"Athena\\"; +v2269.cors = true; +v2161.athena = v2269; +const v2270 = {}; +v2270.name = \\"Greengrass\\"; +v2161.greengrass = v2270; +const v2271 = {}; +v2271.name = \\"DAX\\"; +v2161.dax = v2271; +const v2272 = {}; +v2272.prefix = \\"AWSMigrationHub\\"; +v2272.name = \\"MigrationHub\\"; +v2161.migrationhub = v2272; +const v2273 = {}; +v2273.name = \\"CloudHSMV2\\"; +v2273.cors = true; +v2161.cloudhsmv2 = v2273; +const v2274 = {}; +v2274.name = \\"Glue\\"; +v2161.glue = v2274; +const v2275 = {}; +v2275.name = \\"Mobile\\"; +v2161.mobile = v2275; +const v2276 = {}; +v2276.name = \\"Pricing\\"; +v2276.cors = true; +v2161.pricing = v2276; +const v2277 = {}; +v2277.prefix = \\"ce\\"; +v2277.name = \\"CostExplorer\\"; +v2277.cors = true; +v2161.costexplorer = v2277; +const v2278 = {}; +v2278.name = \\"MediaConvert\\"; +v2161.mediaconvert = v2278; +const v2279 = {}; +v2279.name = \\"MediaLive\\"; +v2161.medialive = v2279; +const v2280 = {}; +v2280.name = \\"MediaPackage\\"; +v2161.mediapackage = v2280; +const v2281 = {}; +v2281.name = \\"MediaStore\\"; +v2161.mediastore = v2281; +const v2282 = {}; +v2282.prefix = \\"mediastore-data\\"; +v2282.name = \\"MediaStoreData\\"; +v2282.cors = true; +v2161.mediastoredata = v2282; +const v2283 = {}; +v2283.name = \\"AppSync\\"; +v2161.appsync = v2283; +const v2284 = {}; +v2284.name = \\"GuardDuty\\"; +v2161.guardduty = v2284; +const v2285 = {}; +v2285.name = \\"MQ\\"; +v2161.mq = v2285; +const v2286 = {}; +v2286.name = \\"Comprehend\\"; +v2286.cors = true; +v2161.comprehend = v2286; +const v2287 = {}; +v2287.prefix = \\"iot-jobs-data\\"; +v2287.name = \\"IoTJobsDataPlane\\"; +v2161.iotjobsdataplane = v2287; +const v2288 = {}; +v2288.prefix = \\"kinesis-video-archived-media\\"; +v2288.name = \\"KinesisVideoArchivedMedia\\"; +v2288.cors = true; +v2161.kinesisvideoarchivedmedia = v2288; +const v2289 = {}; +v2289.prefix = \\"kinesis-video-media\\"; +v2289.name = \\"KinesisVideoMedia\\"; +v2289.cors = true; +v2161.kinesisvideomedia = v2289; +const v2290 = {}; +v2290.name = \\"KinesisVideo\\"; +v2290.cors = true; +v2161.kinesisvideo = v2290; +const v2291 = {}; +v2291.prefix = \\"runtime.sagemaker\\"; +v2291.name = \\"SageMakerRuntime\\"; +v2161.sagemakerruntime = v2291; +const v2292 = {}; +v2292.name = \\"SageMaker\\"; +v2161.sagemaker = v2292; +const v2293 = {}; +v2293.name = \\"Translate\\"; +v2293.cors = true; +v2161.translate = v2293; +const v2294 = {}; +v2294.prefix = \\"resource-groups\\"; +v2294.name = \\"ResourceGroups\\"; +v2294.cors = true; +v2161.resourcegroups = v2294; +const v2295 = {}; +v2295.name = \\"AlexaForBusiness\\"; +v2161.alexaforbusiness = v2295; +const v2296 = {}; +v2296.name = \\"Cloud9\\"; +v2161.cloud9 = v2296; +const v2297 = {}; +v2297.prefix = \\"serverlessrepo\\"; +v2297.name = \\"ServerlessApplicationRepository\\"; +v2161.serverlessapplicationrepository = v2297; +const v2298 = {}; +v2298.name = \\"ServiceDiscovery\\"; +v2161.servicediscovery = v2298; +const v2299 = {}; +v2299.name = \\"WorkMail\\"; +v2161.workmail = v2299; +const v2300 = {}; +v2300.prefix = \\"autoscaling-plans\\"; +v2300.name = \\"AutoScalingPlans\\"; +v2161.autoscalingplans = v2300; +const v2301 = {}; +v2301.prefix = \\"transcribe\\"; +v2301.name = \\"TranscribeService\\"; +v2161.transcribeservice = v2301; +const v2302 = {}; +v2302.name = \\"Connect\\"; +v2302.cors = true; +v2161.connect = v2302; +const v2303 = {}; +v2303.prefix = \\"acm-pca\\"; +v2303.name = \\"ACMPCA\\"; +v2161.acmpca = v2303; +const v2304 = {}; +v2304.name = \\"FMS\\"; +v2161.fms = v2304; +const v2305 = {}; +v2305.name = \\"SecretsManager\\"; +v2305.cors = true; +v2161.secretsmanager = v2305; +const v2306 = {}; +v2306.name = \\"IoTAnalytics\\"; +v2306.cors = true; +v2161.iotanalytics = v2306; +const v2307 = {}; +v2307.prefix = \\"iot1click-devices\\"; +v2307.name = \\"IoT1ClickDevicesService\\"; +v2161.iot1clickdevicesservice = v2307; +const v2308 = {}; +v2308.prefix = \\"iot1click-projects\\"; +v2308.name = \\"IoT1ClickProjects\\"; +v2161.iot1clickprojects = v2308; +const v2309 = {}; +v2309.name = \\"PI\\"; +v2161.pi = v2309; +const v2310 = {}; +v2310.name = \\"Neptune\\"; +v2161.neptune = v2310; +const v2311 = {}; +v2311.name = \\"MediaTailor\\"; +v2161.mediatailor = v2311; +const v2312 = {}; +v2312.name = \\"EKS\\"; +v2161.eks = v2312; +const v2313 = {}; +v2313.name = \\"Macie\\"; +v2161.macie = v2313; +const v2314 = {}; +v2314.name = \\"DLM\\"; +v2161.dlm = v2314; +const v2315 = {}; +v2315.name = \\"Signer\\"; +v2161.signer = v2315; +const v2316 = {}; +v2316.name = \\"Chime\\"; +v2161.chime = v2316; +const v2317 = {}; +v2317.prefix = \\"pinpoint-email\\"; +v2317.name = \\"PinpointEmail\\"; +v2161.pinpointemail = v2317; +const v2318 = {}; +v2318.name = \\"RAM\\"; +v2161.ram = v2318; +const v2319 = {}; +v2319.name = \\"Route53Resolver\\"; +v2161.route53resolver = v2319; +const v2320 = {}; +v2320.prefix = \\"sms-voice\\"; +v2320.name = \\"PinpointSMSVoice\\"; +v2161.pinpointsmsvoice = v2320; +const v2321 = {}; +v2321.name = \\"QuickSight\\"; +v2161.quicksight = v2321; +const v2322 = {}; +v2322.prefix = \\"rds-data\\"; +v2322.name = \\"RDSDataService\\"; +v2161.rdsdataservice = v2322; +const v2323 = {}; +v2323.name = \\"Amplify\\"; +v2161.amplify = v2323; +const v2324 = {}; +v2324.name = \\"DataSync\\"; +v2161.datasync = v2324; +const v2325 = {}; +v2325.name = \\"RoboMaker\\"; +v2161.robomaker = v2325; +const v2326 = {}; +v2326.name = \\"Transfer\\"; +v2161.transfer = v2326; +const v2327 = {}; +v2327.name = \\"GlobalAccelerator\\"; +v2161.globalaccelerator = v2327; +const v2328 = {}; +v2328.name = \\"ComprehendMedical\\"; +v2328.cors = true; +v2161.comprehendmedical = v2328; +const v2329 = {}; +v2329.name = \\"KinesisAnalyticsV2\\"; +v2161.kinesisanalyticsv2 = v2329; +const v2330 = {}; +v2330.name = \\"MediaConnect\\"; +v2161.mediaconnect = v2330; +const v2331 = {}; +v2331.name = \\"FSx\\"; +v2161.fsx = v2331; +const v2332 = {}; +v2332.name = \\"SecurityHub\\"; +v2161.securityhub = v2332; +const v2333 = {}; +v2333.name = \\"AppMesh\\"; +const v2334 = []; +v2334.push(\\"2018-10-01*\\"); +v2333.versions = v2334; +v2161.appmesh = v2333; +const v2335 = {}; +v2335.prefix = \\"license-manager\\"; +v2335.name = \\"LicenseManager\\"; +v2161.licensemanager = v2335; +const v2336 = {}; +v2336.name = \\"Kafka\\"; +v2161.kafka = v2336; +const v2337 = {}; +v2337.name = \\"ApiGatewayManagementApi\\"; +v2161.apigatewaymanagementapi = v2337; +const v2338 = {}; +v2338.name = \\"ApiGatewayV2\\"; +v2161.apigatewayv2 = v2338; +const v2339 = {}; +v2339.name = \\"DocDB\\"; +v2161.docdb = v2339; +const v2340 = {}; +v2340.name = \\"Backup\\"; +v2161.backup = v2340; +const v2341 = {}; +v2341.name = \\"WorkLink\\"; +v2161.worklink = v2341; +const v2342 = {}; +v2342.name = \\"Textract\\"; +v2161.textract = v2342; +const v2343 = {}; +v2343.name = \\"ManagedBlockchain\\"; +v2161.managedblockchain = v2343; +const v2344 = {}; +v2344.prefix = \\"mediapackage-vod\\"; +v2344.name = \\"MediaPackageVod\\"; +v2161.mediapackagevod = v2344; +const v2345 = {}; +v2345.name = \\"GroundStation\\"; +v2161.groundstation = v2345; +const v2346 = {}; +v2346.name = \\"IoTThingsGraph\\"; +v2161.iotthingsgraph = v2346; +const v2347 = {}; +v2347.name = \\"IoTEvents\\"; +v2161.iotevents = v2347; +const v2348 = {}; +v2348.prefix = \\"iotevents-data\\"; +v2348.name = \\"IoTEventsData\\"; +v2161.ioteventsdata = v2348; +const v2349 = {}; +v2349.name = \\"Personalize\\"; +v2349.cors = true; +v2161.personalize = v2349; +const v2350 = {}; +v2350.prefix = \\"personalize-events\\"; +v2350.name = \\"PersonalizeEvents\\"; +v2350.cors = true; +v2161.personalizeevents = v2350; +const v2351 = {}; +v2351.prefix = \\"personalize-runtime\\"; +v2351.name = \\"PersonalizeRuntime\\"; +v2351.cors = true; +v2161.personalizeruntime = v2351; +const v2352 = {}; +v2352.prefix = \\"application-insights\\"; +v2352.name = \\"ApplicationInsights\\"; +v2161.applicationinsights = v2352; +const v2353 = {}; +v2353.prefix = \\"service-quotas\\"; +v2353.name = \\"ServiceQuotas\\"; +v2161.servicequotas = v2353; +const v2354 = {}; +v2354.prefix = \\"ec2-instance-connect\\"; +v2354.name = \\"EC2InstanceConnect\\"; +v2161.ec2instanceconnect = v2354; +const v2355 = {}; +v2355.name = \\"EventBridge\\"; +v2161.eventbridge = v2355; +const v2356 = {}; +v2356.name = \\"LakeFormation\\"; +v2161.lakeformation = v2356; +const v2357 = {}; +v2357.prefix = \\"forecast\\"; +v2357.name = \\"ForecastService\\"; +v2357.cors = true; +v2161.forecastservice = v2357; +const v2358 = {}; +v2358.prefix = \\"forecastquery\\"; +v2358.name = \\"ForecastQueryService\\"; +v2358.cors = true; +v2161.forecastqueryservice = v2358; +const v2359 = {}; +v2359.name = \\"QLDB\\"; +v2161.qldb = v2359; +const v2360 = {}; +v2360.prefix = \\"qldb-session\\"; +v2360.name = \\"QLDBSession\\"; +v2161.qldbsession = v2360; +const v2361 = {}; +v2361.name = \\"WorkMailMessageFlow\\"; +v2161.workmailmessageflow = v2361; +const v2362 = {}; +v2362.prefix = \\"codestar-notifications\\"; +v2362.name = \\"CodeStarNotifications\\"; +v2161.codestarnotifications = v2362; +const v2363 = {}; +v2363.name = \\"SavingsPlans\\"; +v2161.savingsplans = v2363; +const v2364 = {}; +v2364.name = \\"SSO\\"; +v2161.sso = v2364; +const v2365 = {}; +v2365.prefix = \\"sso-oidc\\"; +v2365.name = \\"SSOOIDC\\"; +v2161.ssooidc = v2365; +const v2366 = {}; +v2366.prefix = \\"marketplace-catalog\\"; +v2366.name = \\"MarketplaceCatalog\\"; +v2161.marketplacecatalog = v2366; +const v2367 = {}; +v2367.name = \\"DataExchange\\"; +v2161.dataexchange = v2367; +const v2368 = {}; +v2368.name = \\"SESV2\\"; +v2161.sesv2 = v2368; +const v2369 = {}; +v2369.prefix = \\"migrationhub-config\\"; +v2369.name = \\"MigrationHubConfig\\"; +v2161.migrationhubconfig = v2369; +const v2370 = {}; +v2370.name = \\"ConnectParticipant\\"; +v2161.connectparticipant = v2370; +const v2371 = {}; +v2371.name = \\"AppConfig\\"; +v2161.appconfig = v2371; +const v2372 = {}; +v2372.name = \\"IoTSecureTunneling\\"; +v2161.iotsecuretunneling = v2372; +const v2373 = {}; +v2373.name = \\"WAFV2\\"; +v2161.wafv2 = v2373; +const v2374 = {}; +v2374.prefix = \\"elastic-inference\\"; +v2374.name = \\"ElasticInference\\"; +v2161.elasticinference = v2374; +const v2375 = {}; +v2375.name = \\"Imagebuilder\\"; +v2161.imagebuilder = v2375; +const v2376 = {}; +v2376.name = \\"Schemas\\"; +v2161.schemas = v2376; +const v2377 = {}; +v2377.name = \\"AccessAnalyzer\\"; +v2161.accessanalyzer = v2377; +const v2378 = {}; +v2378.prefix = \\"codeguru-reviewer\\"; +v2378.name = \\"CodeGuruReviewer\\"; +v2161.codegurureviewer = v2378; +const v2379 = {}; +v2379.name = \\"CodeGuruProfiler\\"; +v2161.codeguruprofiler = v2379; +const v2380 = {}; +v2380.prefix = \\"compute-optimizer\\"; +v2380.name = \\"ComputeOptimizer\\"; +v2161.computeoptimizer = v2380; +const v2381 = {}; +v2381.name = \\"FraudDetector\\"; +v2161.frauddetector = v2381; +const v2382 = {}; +v2382.name = \\"Kendra\\"; +v2161.kendra = v2382; +const v2383 = {}; +v2383.name = \\"NetworkManager\\"; +v2161.networkmanager = v2383; +const v2384 = {}; +v2384.name = \\"Outposts\\"; +v2161.outposts = v2384; +const v2385 = {}; +v2385.prefix = \\"sagemaker-a2i-runtime\\"; +v2385.name = \\"AugmentedAIRuntime\\"; +v2161.augmentedairuntime = v2385; +const v2386 = {}; +v2386.name = \\"EBS\\"; +v2161.ebs = v2386; +const v2387 = {}; +v2387.prefix = \\"kinesis-video-signaling\\"; +v2387.name = \\"KinesisVideoSignalingChannels\\"; +v2387.cors = true; +v2161.kinesisvideosignalingchannels = v2387; +const v2388 = {}; +v2388.name = \\"Detective\\"; +v2161.detective = v2388; +const v2389 = {}; +v2389.prefix = \\"codestar-connections\\"; +v2389.name = \\"CodeStarconnections\\"; +v2161.codestarconnections = v2389; +const v2390 = {}; +v2390.name = \\"Synthetics\\"; +v2161.synthetics = v2390; +const v2391 = {}; +v2391.name = \\"IoTSiteWise\\"; +v2161.iotsitewise = v2391; +const v2392 = {}; +v2392.name = \\"Macie2\\"; +v2161.macie2 = v2392; +const v2393 = {}; +v2393.name = \\"CodeArtifact\\"; +v2161.codeartifact = v2393; +const v2394 = {}; +v2394.name = \\"Honeycode\\"; +v2161.honeycode = v2394; +const v2395 = {}; +v2395.name = \\"IVS\\"; +v2161.ivs = v2395; +const v2396 = {}; +v2396.name = \\"Braket\\"; +v2161.braket = v2396; +const v2397 = {}; +v2397.name = \\"IdentityStore\\"; +v2161.identitystore = v2397; +const v2398 = {}; +v2398.name = \\"Appflow\\"; +v2161.appflow = v2398; +const v2399 = {}; +v2399.prefix = \\"redshift-data\\"; +v2399.name = \\"RedshiftData\\"; +v2161.redshiftdata = v2399; +const v2400 = {}; +v2400.prefix = \\"sso-admin\\"; +v2400.name = \\"SSOAdmin\\"; +v2161.ssoadmin = v2400; +const v2401 = {}; +v2401.prefix = \\"timestream-query\\"; +v2401.name = \\"TimestreamQuery\\"; +v2161.timestreamquery = v2401; +const v2402 = {}; +v2402.prefix = \\"timestream-write\\"; +v2402.name = \\"TimestreamWrite\\"; +v2161.timestreamwrite = v2402; +const v2403 = {}; +v2403.name = \\"S3Outposts\\"; +v2161.s3outposts = v2403; +const v2404 = {}; +v2404.name = \\"DataBrew\\"; +v2161.databrew = v2404; +const v2405 = {}; +v2405.prefix = \\"servicecatalog-appregistry\\"; +v2405.name = \\"ServiceCatalogAppRegistry\\"; +v2161.servicecatalogappregistry = v2405; +const v2406 = {}; +v2406.prefix = \\"network-firewall\\"; +v2406.name = \\"NetworkFirewall\\"; +v2161.networkfirewall = v2406; +const v2407 = {}; +v2407.name = \\"MWAA\\"; +v2161.mwaa = v2407; +const v2408 = {}; +v2408.name = \\"AmplifyBackend\\"; +v2161.amplifybackend = v2408; +const v2409 = {}; +v2409.name = \\"AppIntegrations\\"; +v2161.appintegrations = v2409; +const v2410 = {}; +v2410.prefix = \\"connect-contact-lens\\"; +v2410.name = \\"ConnectContactLens\\"; +v2161.connectcontactlens = v2410; +const v2411 = {}; +v2411.prefix = \\"devops-guru\\"; +v2411.name = \\"DevOpsGuru\\"; +v2161.devopsguru = v2411; +const v2412 = {}; +v2412.prefix = \\"ecr-public\\"; +v2412.name = \\"ECRPUBLIC\\"; +v2161.ecrpublic = v2412; +const v2413 = {}; +v2413.name = \\"LookoutVision\\"; +v2161.lookoutvision = v2413; +const v2414 = {}; +v2414.prefix = \\"sagemaker-featurestore-runtime\\"; +v2414.name = \\"SageMakerFeatureStoreRuntime\\"; +v2161.sagemakerfeaturestoreruntime = v2414; +const v2415 = {}; +v2415.prefix = \\"customer-profiles\\"; +v2415.name = \\"CustomerProfiles\\"; +v2161.customerprofiles = v2415; +const v2416 = {}; +v2416.name = \\"AuditManager\\"; +v2161.auditmanager = v2416; +const v2417 = {}; +v2417.prefix = \\"emr-containers\\"; +v2417.name = \\"EMRcontainers\\"; +v2161.emrcontainers = v2417; +const v2418 = {}; +v2418.name = \\"HealthLake\\"; +v2161.healthlake = v2418; +const v2419 = {}; +v2419.prefix = \\"sagemaker-edge\\"; +v2419.name = \\"SagemakerEdge\\"; +v2161.sagemakeredge = v2419; +const v2420 = {}; +v2420.name = \\"Amp\\"; +v2161.amp = v2420; +const v2421 = {}; +v2421.name = \\"GreengrassV2\\"; +v2161.greengrassv2 = v2421; +const v2422 = {}; +v2422.name = \\"IotDeviceAdvisor\\"; +v2161.iotdeviceadvisor = v2422; +const v2423 = {}; +v2423.name = \\"IoTFleetHub\\"; +v2161.iotfleethub = v2423; +const v2424 = {}; +v2424.name = \\"IoTWireless\\"; +v2161.iotwireless = v2424; +const v2425 = {}; +v2425.name = \\"Location\\"; +v2425.cors = true; +v2161.location = v2425; +const v2426 = {}; +v2426.name = \\"WellArchitected\\"; +v2161.wellarchitected = v2426; +const v2427 = {}; +v2427.prefix = \\"models.lex.v2\\"; +v2427.name = \\"LexModelsV2\\"; +v2161.lexmodelsv2 = v2427; +const v2428 = {}; +v2428.prefix = \\"runtime.lex.v2\\"; +v2428.name = \\"LexRuntimeV2\\"; +v2428.cors = true; +v2161.lexruntimev2 = v2428; +const v2429 = {}; +v2429.name = \\"Fis\\"; +v2161.fis = v2429; +const v2430 = {}; +v2430.name = \\"LookoutMetrics\\"; +v2161.lookoutmetrics = v2430; +const v2431 = {}; +v2431.name = \\"Mgn\\"; +v2161.mgn = v2431; +const v2432 = {}; +v2432.name = \\"LookoutEquipment\\"; +v2161.lookoutequipment = v2432; +const v2433 = {}; +v2433.name = \\"Nimble\\"; +v2161.nimble = v2433; +const v2434 = {}; +v2434.name = \\"Finspace\\"; +v2161.finspace = v2434; +const v2435 = {}; +v2435.prefix = \\"finspace-data\\"; +v2435.name = \\"Finspacedata\\"; +v2161.finspacedata = v2435; +const v2436 = {}; +v2436.prefix = \\"ssm-contacts\\"; +v2436.name = \\"SSMContacts\\"; +v2161.ssmcontacts = v2436; +const v2437 = {}; +v2437.prefix = \\"ssm-incidents\\"; +v2437.name = \\"SSMIncidents\\"; +v2161.ssmincidents = v2437; +const v2438 = {}; +v2438.name = \\"ApplicationCostProfiler\\"; +v2161.applicationcostprofiler = v2438; +const v2439 = {}; +v2439.name = \\"AppRunner\\"; +v2161.apprunner = v2439; +const v2440 = {}; +v2440.name = \\"Proton\\"; +v2161.proton = v2440; +const v2441 = {}; +v2441.prefix = \\"route53-recovery-cluster\\"; +v2441.name = \\"Route53RecoveryCluster\\"; +v2161.route53recoverycluster = v2441; +const v2442 = {}; +v2442.prefix = \\"route53-recovery-control-config\\"; +v2442.name = \\"Route53RecoveryControlConfig\\"; +v2161.route53recoverycontrolconfig = v2442; +const v2443 = {}; +v2443.prefix = \\"route53-recovery-readiness\\"; +v2443.name = \\"Route53RecoveryReadiness\\"; +v2161.route53recoveryreadiness = v2443; +const v2444 = {}; +v2444.prefix = \\"chime-sdk-identity\\"; +v2444.name = \\"ChimeSDKIdentity\\"; +v2161.chimesdkidentity = v2444; +const v2445 = {}; +v2445.prefix = \\"chime-sdk-messaging\\"; +v2445.name = \\"ChimeSDKMessaging\\"; +v2161.chimesdkmessaging = v2445; +const v2446 = {}; +v2446.prefix = \\"snow-device-management\\"; +v2446.name = \\"SnowDeviceManagement\\"; +v2161.snowdevicemanagement = v2446; +const v2447 = {}; +v2447.name = \\"MemoryDB\\"; +v2161.memorydb = v2447; +const v2448 = {}; +v2448.name = \\"OpenSearch\\"; +v2161.opensearch = v2448; +const v2449 = {}; +v2449.name = \\"KafkaConnect\\"; +v2161.kafkaconnect = v2449; +const v2450 = {}; +v2450.prefix = \\"voice-id\\"; +v2450.name = \\"VoiceID\\"; +v2161.voiceid = v2450; +const v2451 = {}; +v2451.name = \\"Wisdom\\"; +v2161.wisdom = v2451; +const v2452 = {}; +v2452.name = \\"Account\\"; +v2161.account = v2452; +const v2453 = {}; +v2453.name = \\"CloudControl\\"; +v2161.cloudcontrol = v2453; +const v2454 = {}; +v2454.name = \\"Grafana\\"; +v2161.grafana = v2454; +const v2455 = {}; +v2455.name = \\"Panorama\\"; +v2161.panorama = v2455; +const v2456 = {}; +v2456.prefix = \\"chime-sdk-meetings\\"; +v2456.name = \\"ChimeSDKMeetings\\"; +v2161.chimesdkmeetings = v2456; +const v2457 = {}; +v2457.name = \\"Resiliencehub\\"; +v2161.resiliencehub = v2457; +const v2458 = {}; +v2458.name = \\"MigrationHubStrategy\\"; +v2161.migrationhubstrategy = v2458; +const v2459 = {}; +v2459.name = \\"AppConfigData\\"; +v2161.appconfigdata = v2459; +const v2460 = {}; +v2460.name = \\"Drs\\"; +v2161.drs = v2460; +const v2461 = {}; +v2461.prefix = \\"migration-hub-refactor-spaces\\"; +v2461.name = \\"MigrationHubRefactorSpaces\\"; +v2161.migrationhubrefactorspaces = v2461; +const v2462 = {}; +v2462.name = \\"Evidently\\"; +v2161.evidently = v2462; +const v2463 = {}; +v2463.name = \\"Inspector2\\"; +v2161.inspector2 = v2463; +const v2464 = {}; +v2464.name = \\"Rbin\\"; +v2161.rbin = v2464; +const v2465 = {}; +v2465.name = \\"RUM\\"; +v2161.rum = v2465; +const v2466 = {}; +v2466.prefix = \\"backup-gateway\\"; +v2466.name = \\"BackupGateway\\"; +v2161.backupgateway = v2466; +const v2467 = {}; +v2467.name = \\"IoTTwinMaker\\"; +v2161.iottwinmaker = v2467; +const v2468 = {}; +v2468.prefix = \\"workspaces-web\\"; +v2468.name = \\"WorkSpacesWeb\\"; +v2161.workspacesweb = v2468; +const v2469 = {}; +v2469.name = \\"AmplifyUIBuilder\\"; +v2161.amplifyuibuilder = v2469; +const v2470 = {}; +v2470.name = \\"Keyspaces\\"; +v2161.keyspaces = v2470; +const v2471 = {}; +v2471.name = \\"Billingconductor\\"; +v2161.billingconductor = v2471; +const v2472 = {}; +v2472.name = \\"GameSparks\\"; +v2161.gamesparks = v2472; +const v2473 = {}; +v2473.prefix = \\"pinpoint-sms-voice-v2\\"; +v2473.name = \\"PinpointSMSVoiceV2\\"; +v2161.pinpointsmsvoicev2 = v2473; +const v2474 = {}; +v2474.name = \\"Ivschat\\"; +v2161.ivschat = v2474; +const v2475 = {}; +v2475.prefix = \\"chime-sdk-media-pipelines\\"; +v2475.name = \\"ChimeSDKMediaPipelines\\"; +v2161.chimesdkmediapipelines = v2475; +const v2476 = {}; +v2476.prefix = \\"emr-serverless\\"; +v2476.name = \\"EMRServerless\\"; +v2161.emrserverless = v2476; +const v2477 = {}; +v2477.name = \\"M2\\"; +v2161.m2 = v2477; +const v2478 = {}; +v2478.name = \\"ConnectCampaigns\\"; +v2161.connectcampaigns = v2478; +const v2479 = {}; +v2479.prefix = \\"redshift-serverless\\"; +v2479.name = \\"RedshiftServerless\\"; +v2161.redshiftserverless = v2479; +const v2480 = {}; +v2480.name = \\"RolesAnywhere\\"; +v2161.rolesanywhere = v2480; +const v2481 = {}; +v2481.prefix = \\"license-manager-user-subscriptions\\"; +v2481.name = \\"LicenseManagerUserSubscriptions\\"; +v2161.licensemanagerusersubscriptions = v2481; +const v2482 = {}; +v2482.name = \\"BackupStorage\\"; +v2161.backupstorage = v2482; +const v2483 = {}; +v2483.name = \\"PrivateNetworks\\"; +v2161.privatenetworks = v2483; +var v2160 = v2161; +var v2484 = v144; +var v2485 = v146; +var v2486 = v883; +var v2488; +var v2489 = v144; +var v2490 = v144; +var v2491 = v144; +var v2492 = v144; +var v2493 = v144; +var v2494 = v144; +var v2495 = v146; +var v2496 = v855; +var v2497 = v855; +var v2498 = v146; +var v2499 = v855; +var v2500 = v855; +var v2501 = v146; +var v2502 = v855; +var v2503 = v144; +var v2504 = v144; +var v2505 = v146; +var v2506 = v146; +var v2508; +v2508 = function hasEventStream(topLevelShape) { var members = topLevelShape.members; var payload = topLevelShape.payload; if (!topLevelShape.members) { + return false; +} if (payload) { + var payloadMember = members[payload]; + return payloadMember.isEventStream; +} for (var name in members) { + if (!members.hasOwnProperty(name)) { + if (members[name].isEventStream === true) { + return true; } - } - getAccessKeyInfo(args, optionsOrCb, cb) { - const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} return false; }; +const v2509 = {}; +v2509.constructor = v2508; +v2508.prototype = v2509; +var v2507 = v2508; +v2488 = function Operation(name, operation, options) { var self = this; options = options || {}; v2489(this, \\"name\\", operation.name || name); v2490(this, \\"api\\", options.api, false); operation.http = operation.http || {}; v2491(this, \\"endpoint\\", operation.endpoint); v2489(this, \\"httpMethod\\", operation.http.method || \\"POST\\"); v2492(this, \\"httpPath\\", operation.http.requestUri || \\"/\\"); v2493(this, \\"authtype\\", operation.authtype || \\"\\"); v2492(this, \\"endpointDiscoveryRequired\\", operation.endpointdiscovery ? (operation.endpointdiscovery.required ? \\"REQUIRED\\" : \\"OPTIONAL\\") : \\"NULL\\"); var httpChecksumRequired = operation.httpChecksumRequired || (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired); v2494(this, \\"httpChecksumRequired\\", httpChecksumRequired, false); v2495(this, \\"input\\", function () { if (!operation.input) { + return new v2496.create({ type: \\"structure\\" }, options); +} return v2497.create(operation.input, options); }); v2498(this, \\"output\\", function () { if (!operation.output) { + return new v2499.create({ type: \\"structure\\" }, options); +} return v2500.create(operation.output, options); }); v2501(this, \\"errors\\", function () { var list = []; if (!operation.errors) + return null; for (var i = 0; i < operation.errors.length; i++) { + list.push(v2502.create(operation.errors[i], options)); +} return list; }); v2501(this, \\"paginator\\", function () { return options.api.paginators[name]; }); if (options.documentation) { + v2503(this, \\"documentation\\", operation.documentation); + v2504(this, \\"documentationUrl\\", operation.documentationUrl); +} v2505(this, \\"idempotentMembers\\", function () { var idempotentMembers = []; var input = self.input; var members = input.members; if (!input.members) { + return idempotentMembers; +} for (var name in members) { + if (!members.hasOwnProperty(name)) { + continue; + } + if (members[name].isIdempotent === true) { + idempotentMembers.push(name); + } +} return idempotentMembers; }); v2506(this, \\"hasEventOutput\\", function () { var output = self.output; return v2507(output); }); }; +const v2510 = {}; +v2510.constructor = v2488; +v2488.prototype = v2510; +var v2487 = v2488; +var v2511 = v144; +var v2512 = v883; +var v2513 = v855; +var v2514 = v144; +var v2515 = v883; +var v2517; +var v2518 = v144; +var v2519 = v144; +var v2520 = v144; +var v2521 = v144; +v2517 = function Paginator(name, paginator) { v2518(this, \\"inputToken\\", paginator.input_token); v2519(this, \\"limitKey\\", paginator.limit_key); v2520(this, \\"moreResults\\", paginator.more_results); v2518(this, \\"outputToken\\", paginator.output_token); v2521(this, \\"resultKey\\", paginator.result_key); }; +const v2522 = {}; +v2522.constructor = v2517; +v2517.prototype = v2522; +var v2516 = v2517; +var v2523 = v144; +var v2525; +var v2526 = v144; +var v2527 = v144; +var v2528 = v144; +var v2529 = v144; +v2525 = function ResourceWaiter(name, waiter, options) { options = options || {}; v2526(this, \\"name\\", name); v2527(this, \\"api\\", options.api, false); if (waiter.operation) { + v2528(this, \\"operation\\", v55.lowerFirst(waiter.operation)); +} var self = this; var keys = [\\"type\\", \\"description\\", \\"delay\\", \\"maxAttempts\\", \\"acceptors\\"]; keys.forEach(function (key) { var value = waiter[key]; if (value) { + v2529(self, key, value); +} }); }; +const v2530 = {}; +v2530.constructor = v2525; +v2525.prototype = v2530; +var v2524 = v2525; +var v2531 = v144; +v2150 = function Api(api, options) { var self = this; api = api || {}; options = options || {}; options.api = this; api.metadata = api.metadata || {}; var serviceIdentifier = options.serviceIdentifier; delete options.serviceIdentifier; v2151(this, \\"isApi\\", true, false); v2152(this, \\"apiVersion\\", api.metadata.apiVersion); v2153(this, \\"endpointPrefix\\", api.metadata.endpointPrefix); v2151(this, \\"signingName\\", api.metadata.signingName); v2154(this, \\"globalEndpoint\\", api.metadata.globalEndpoint); v2155(this, \\"signatureVersion\\", api.metadata.signatureVersion); v2154(this, \\"jsonVersion\\", api.metadata.jsonVersion); v2156(this, \\"targetPrefix\\", api.metadata.targetPrefix); v2152(this, \\"protocol\\", api.metadata.protocol); v2157(this, \\"timestampFormat\\", api.metadata.timestampFormat); v2158(this, \\"xmlNamespaceUri\\", api.metadata.xmlNamespace); v2156(this, \\"abbreviation\\", api.metadata.serviceAbbreviation); v2155(this, \\"fullName\\", api.metadata.serviceFullName); v2159(this, \\"serviceId\\", api.metadata.serviceId); if (serviceIdentifier && v2160[serviceIdentifier]) { + v2484(this, \\"xmlNoDefaultLists\\", v2160[serviceIdentifier].xmlNoDefaultLists, false); +} v2485(this, \\"className\\", function () { var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName; if (!name) + return null; name = name.replace(/^Amazon|AWS\\\\s*|\\\\(.*|\\\\s+|\\\\W+/g, \\"\\"); if (name === \\"ElasticLoadBalancing\\") + name = \\"ELB\\"; return name; }); function addEndpointOperation(name, operation) { if (operation.endpointoperation === true) { + v2484(self, \\"endpointOperation\\", v55.lowerFirst(name)); +} if (operation.endpointdiscovery && !self.hasRequiredEndpointDiscovery) { + v2159(self, \\"hasRequiredEndpointDiscovery\\", operation.endpointdiscovery.required === true); +} } v2159(this, \\"operations\\", new v2486(api.operations, options, function (name, operation) { return new v2487(name, operation, options); }, v55.lowerFirst, addEndpointOperation)); v2511(this, \\"shapes\\", new v2512(api.shapes, options, function (name, shape) { return v2513.create(shape, options); })); v2514(this, \\"paginators\\", new v2515(api.paginators, options, function (name, paginator) { return new v2516(name, paginator, options); })); v2523(this, \\"waiters\\", new v2512(api.waiters, options, function (name, waiter) { return new v2524(name, waiter, options); }, v55.lowerFirst)); if (options.documentation) { + v2531(this, \\"documentation\\", api.documentation); + v2523(this, \\"documentationUrl\\", api.documentationUrl); +} v2511(this, \\"errorCodeMapping\\", api.awsQueryCompatible); }; +const v2532 = {}; +v2532.constructor = v2150; +v2150.prototype = v2532; +var v2149 = v2150; +v2147 = function defineServiceApi(superclass, version, apiConfig) { var svc = v2148(superclass, { serviceIdentifier: superclass.serviceIdentifier }); function setApi(api) { if (api.isApi) { + svc.prototype.api = api; +} +else { + svc.prototype.api = new v2149(api, { serviceIdentifier: superclass.serviceIdentifier }); +} } if (typeof version === \\"string\\") { + if (apiConfig) { + setApi(apiConfig); + } + else { + try { + setApi(v2124.apiLoader(superclass.serviceIdentifier, version)); } - } - getCallerIdentity(args, optionsOrCb, cb) { - const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + catch (err) { + throw v3.error(err, { message: \\"Could not find API configuration \\" + superclass.serviceIdentifier + \\"-\\" + version }); } - } - getFederationToken(args, optionsOrCb, cb) { - const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + if (!v113.hasOwnProperty.call(superclass.services, version)) { + superclass.apiVersions = superclass.apiVersions.concat(version).sort(); + } + superclass.services[version] = svc; +} +else { + setApi(version); +} v375.Service.defineMethods(svc); return svc; }; +const v2533 = {}; +v2533.constructor = v2147; +v2147.prototype = v2533; +v299.defineServiceApi = v2147; +var v2534; +v2534 = function (identifier) { return v113.hasOwnProperty.call(v2121, identifier); }; +const v2535 = {}; +v2535.constructor = v2534; +v2534.prototype = v2535; +v299.hasService = v2534; +var v2536; +v2536 = function addDefaultMonitoringListeners(attachOn) { attachOn.addNamedListener(\\"MONITOR_EVENTS_BUBBLE\\", \\"apiCallAttempt\\", function EVENTS_BUBBLE(event) { var baseClass = v2145.getPrototypeOf(attachOn); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }); attachOn.addNamedListener(\\"CALL_EVENTS_BUBBLE\\", \\"apiCall\\", function CALL_EVENTS_BUBBLE(event) { var baseClass = v307.getPrototypeOf(attachOn); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }); }; +const v2537 = {}; +v2537.constructor = v2536; +v2536.prototype = v2537; +v299.addDefaultMonitoringListeners = v2536; +v299._serviceMap = v2121; +var v298 = v299; +var v2538 = v31; +var v2539 = v299; +v297 = function () { if (v298 !== v2538) { + return v2539.apply(this, arguments); +} }; +const v2540 = Object.create(v309); +v2540.constructor = v297; +const v2541 = {}; +const v2542 = []; +var v2543; +var v2544 = v2540; +v2543 = function EVENTS_BUBBLE(event) { var baseClass = v307.getPrototypeOf(v2544); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v2545 = {}; +v2545.constructor = v2543; +v2543.prototype = v2545; +v2542.push(v2543); +v2541.apiCallAttempt = v2542; +const v2546 = []; +var v2547; +v2547 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v2145.getPrototypeOf(v2544); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v2548 = {}; +v2548.constructor = v2547; +v2547.prototype = v2548; +v2546.push(v2547); +v2541.apiCall = v2546; +v2540._events = v2541; +v2540.MONITOR_EVENTS_BUBBLE = v2543; +v2540.CALL_EVENTS_BUBBLE = v2547; +var v2549; +var v2550 = v2; +v2549 = function credentialsFrom(data, credentials) { if (!data) + return null; if (!credentials) + credentials = new v2550.TemporaryCredentials(); credentials.expired = false; credentials.accessKeyId = data.Credentials.AccessKeyId; credentials.secretAccessKey = data.Credentials.SecretAccessKey; credentials.sessionToken = data.Credentials.SessionToken; credentials.expireTime = data.Credentials.Expiration; return credentials; }; +const v2551 = {}; +v2551.constructor = v2549; +v2549.prototype = v2551; +v2540.credentialsFrom = v2549; +var v2552; +v2552 = function assumeRoleWithWebIdentity(params, callback) { return this.makeUnauthenticatedRequest(\\"assumeRoleWithWebIdentity\\", params, callback); }; +const v2553 = {}; +v2553.constructor = v2552; +v2552.prototype = v2553; +v2540.assumeRoleWithWebIdentity = v2552; +var v2554; +v2554 = function assumeRoleWithSAML(params, callback) { return this.makeUnauthenticatedRequest(\\"assumeRoleWithSAML\\", params, callback); }; +const v2555 = {}; +v2555.constructor = v2554; +v2554.prototype = v2555; +v2540.assumeRoleWithSAML = v2554; +var v2556; +v2556 = function setupRequestListeners(request) { request.addListener(\\"validate\\", this.optInRegionalEndpoint, true); }; +const v2557 = {}; +v2557.constructor = v2556; +v2556.prototype = v2557; +v2540.setupRequestListeners = v2556; +var v2558; +var v2560; +var v2562; +var v2563 = v40; +v2562 = function validateRegionalEndpointsFlagValue(configValue, errorOptions) { if (typeof configValue !== \\"string\\") + return undefined; +else if ([\\"legacy\\", \\"regional\\"].indexOf(configValue.toLowerCase()) >= 0) { + return configValue.toLowerCase(); +} +else { + throw v3.error(new v2563(), errorOptions); +} }; +const v2564 = {}; +v2564.constructor = v2562; +v2562.prototype = v2564; +var v2561 = v2562; +var v2565 = v8; +var v2566 = v8; +var v2567 = v2562; +var v2568 = v8; +var v2569 = v8; +var v2570 = v2562; +v2560 = function resolveRegionalEndpointsFlag(originalConfig, options) { originalConfig = originalConfig || {}; var resolved; if (originalConfig[options.clientConfig]) { + resolved = v2561(originalConfig[options.clientConfig], { code: \\"InvalidConfiguration\\", message: \\"invalid \\\\\\"\\" + options.clientConfig + \\"\\\\\\" configuration. Expect \\\\\\"legacy\\\\\\" \\" + \\" or \\\\\\"regional\\\\\\". Got \\\\\\"\\" + originalConfig[options.clientConfig] + \\"\\\\\\".\\" }); + if (resolved) + return resolved; +} if (!v3.isNode()) + return resolved; if (v113.hasOwnProperty.call(v2565.env, options.env)) { + var envFlag = v2566.env[options.env]; + resolved = v2567(envFlag, { code: \\"InvalidEnvironmentalVariable\\", message: \\"invalid \\" + options.env + \\" environmental variable. Expect \\\\\\"legacy\\\\\\" \\" + \\" or \\\\\\"regional\\\\\\". Got \\\\\\"\\" + v2568.env[options.env] + \\"\\\\\\".\\" }); + if (resolved) + return resolved; +} var profile = {}; try { + var profiles = v3.getProfilesFromSharedConfig(v200); + profile = profiles[v2569.env.AWS_PROFILE || \\"default\\"]; +} +catch (e) { } if (profile && v113.hasOwnProperty.call(profile, options.sharedConfig)) { + var fileFlag = profile[options.sharedConfig]; + resolved = v2570(fileFlag, { code: \\"InvalidConfiguration\\", message: \\"invalid \\" + options.sharedConfig + \\" profile config. Expect \\\\\\"legacy\\\\\\" \\" + \\" or \\\\\\"regional\\\\\\". Got \\\\\\"\\" + profile[options.sharedConfig] + \\"\\\\\\".\\" }); + if (resolved) + return resolved; +} return resolved; }; +const v2571 = {}; +v2571.constructor = v2560; +v2560.prototype = v2571; +var v2559 = v2560; +var v2572 = \\"AWS_STS_REGIONAL_ENDPOINTS\\"; +var v2573 = \\"sts_regional_endpoints\\"; +var v2574 = v40; +v2558 = function optInRegionalEndpoint(req) { var service = req.service; var config = service.config; config.stsRegionalEndpoints = v2559(service._originalConfig, { env: v2572, sharedConfig: v2573, clientConfig: \\"stsRegionalEndpoints\\" }); if (config.stsRegionalEndpoints === \\"regional\\" && service.isGlobalEndpoint) { + if (!config.region) { + throw v3.error(new v2574(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); + } + var insertPoint = config.endpoint.indexOf(\\".amazonaws.com\\"); + var regionalEndpoint = config.endpoint.substring(0, insertPoint) + \\".\\" + config.region + config.endpoint.substring(insertPoint); + req.httpRequest.updateEndpoint(regionalEndpoint); + req.httpRequest.region = config.region; +} }; +const v2575 = {}; +v2575.constructor = v2558; +v2558.prototype = v2575; +v2540.optInRegionalEndpoint = v2558; +v297.prototype = v2540; +v297.__super__ = v299; +const v2576 = {}; +v2576[\\"2011-06-15\\"] = null; +v297.services = v2576; +const v2577 = []; +v2577.push(\\"2011-06-15\\"); +v297.apiVersions = v2577; +v297.serviceIdentifier = \\"sts\\"; +var v296 = v297; +var v2578 = v77; +var v2579 = v40; +var v2580 = v40; +v293 = function loadRoleProfile(creds, roleProfile, callback) { if (this.disableAssumeRole) { + throw v3.error(new v287(\\"Role assumption profiles are disabled. \\" + \\"Failed to load profile \\" + this.profile + \\" from \\" + creds.filename), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); +} var self = this; var roleArn = roleProfile[\\"role_arn\\"]; var roleSessionName = roleProfile[\\"role_session_name\\"]; var externalId = roleProfile[\\"external_id\\"]; var mfaSerial = roleProfile[\\"mfa_serial\\"]; var sourceProfileName = roleProfile[\\"source_profile\\"]; var profileRegion = roleProfile[\\"region\\"] || v294; if (!sourceProfileName) { + throw v3.error(new v288(\\"source_profile is not set using profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); +} var sourceProfileExistanceTest = creds[sourceProfileName]; if (typeof sourceProfileExistanceTest !== \\"object\\") { + throw v3.error(new v295(\\"source_profile \\" + sourceProfileName + \\" using profile \\" + this.profile + \\" does not exist\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); +} var sourceCredentials = new v279.SharedIniFileCredentials(v3.merge(this.options || {}, { profile: sourceProfileName, preferStaticCredentials: true })); this.roleArn = roleArn; var sts = new v296({ credentials: sourceCredentials, region: profileRegion, httpOptions: this.httpOptions }); var roleParams = { RoleArn: roleArn, RoleSessionName: roleSessionName || \\"aws-sdk-js-\\" + v2578.now() }; if (externalId) { + roleParams.ExternalId = externalId; +} if (mfaSerial && self.tokenCodeFn) { + roleParams.SerialNumber = mfaSerial; + self.tokenCodeFn(mfaSerial, function (err, token) { if (err) { + var message; + if (err instanceof v2579) { + message = err.message; + } + else { + message = err; + } + callback(v3.error(new v2580(\\"Error fetching MFA token: \\" + message), { code: \\"SharedIniFileCredentialsProviderFailure\\" })); + return; + } roleParams.TokenCode = token; sts.assumeRole(roleParams, callback); }); + return; +} sts.assumeRole(roleParams, callback); }; +const v2581 = {}; +v2581.constructor = v293; +v293.prototype = v2581; +v277.loadRoleProfile = v293; +const v2582 = Object.create(v277); +v2582.secretAccessKey = \\"hFtbgbtjmEVRnPRGHIeunft+g7PBUUYISFrP5ksw\\"; +v2582.expired = false; +v2582.expireTime = null; +const v2583 = []; +v2583.push(); +v2582.refreshCallbacks = v2583; +v2582.accessKeyId = \\"AKIA2PTXRDHQCY72R4HM\\"; +v2582.sessionToken = undefined; +v2582.filename = undefined; +v2582.profile = \\"default\\"; +v2582.disableAssumeRole = true; +v2582.preferStaticCredentials = false; +v2582.tokenCodeFn = null; +v2582.httpOptions = null; +v251.credentials = v2582; +const v2584 = Object.create(v252); +var v2585; +const v2586 = []; +var v2587; +var v2588 = v2; +v2587 = function () { return new v2588.EnvironmentCredentials(\\"AWS\\"); }; +const v2589 = {}; +v2589.constructor = v2587; +v2587.prototype = v2589; +var v2590; +var v2591 = v2; +v2590 = function () { return new v2591.EnvironmentCredentials(\\"AMAZON\\"); }; +const v2592 = {}; +v2592.constructor = v2590; +v2590.prototype = v2592; +var v2593; +var v2594 = v2; +v2593 = function () { return new v2594.SsoCredentials(); }; +const v2595 = {}; +v2595.constructor = v2593; +v2593.prototype = v2595; +var v2596; +var v2597 = v2; +v2596 = function () { return new v2597.SharedIniFileCredentials(); }; +const v2598 = {}; +v2598.constructor = v2596; +v2596.prototype = v2598; +var v2599; +v2599 = function () { return new v2588.ECSCredentials(); }; +const v2600 = {}; +v2600.constructor = v2599; +v2599.prototype = v2600; +var v2601; +var v2602 = v2; +v2601 = function () { return new v2602.ProcessCredentials(); }; +const v2603 = {}; +v2603.constructor = v2601; +v2601.prototype = v2603; +var v2604; +var v2605 = v2; +v2604 = function () { return new v2605.TokenFileWebIdentityCredentials(); }; +const v2606 = {}; +v2606.constructor = v2604; +v2604.prototype = v2606; +var v2607; +var v2608 = v2; +v2607 = function () { return new v2608.EC2MetadataCredentials(); }; +const v2609 = {}; +v2609.constructor = v2607; +v2607.prototype = v2609; +v2586.push(v2587, v2590, v2593, v2596, v2599, v2601, v2604, v2607); +v2585 = function CredentialProviderChain(providers) { if (providers) { + this.providers = providers; +} +else { + this.providers = v2586.slice(0); +} this.resolveCallbacks = []; }; +v2585.prototype = v2584; +v2585.__super__ = v253; +v2585.defaultProviders = v2586; +var v2610; +v2610 = function addPromisesToClass(PromiseDependency) { this.prototype.resolvePromise = v3.promisifyMethod(\\"resolve\\", PromiseDependency); }; +const v2611 = {}; +v2611.constructor = v2610; +v2610.prototype = v2611; +v2585.addPromisesToClass = v2610; +var v2612; +v2612 = function deletePromisesFromClass() { delete this.prototype.resolvePromise; }; +const v2613 = {}; +v2613.constructor = v2612; +v2612.prototype = v2613; +v2585.deletePromisesFromClass = v2612; +v2584.constructor = v2585; +var v2614; +var v2615 = v40; +v2614 = function resolve(callback) { var self = this; if (self.providers.length === 0) { + callback(new v2615(\\"No providers\\")); + return self; +} if (self.resolveCallbacks.push(callback) === 1) { + var index = 0; + var providers = self.providers.slice(0); + function resolveNext(err, creds) { if ((!err && creds) || index === providers.length) { + v3.arrayEach(self.resolveCallbacks, function (callback) { callback(err, creds); }); + self.resolveCallbacks.length = 0; + return; + } var provider = providers[index++]; if (typeof provider === \\"function\\") { + creds = provider.call(); + } + else { + creds = provider; + } if (creds.get) { + creds.get(function (getErr) { resolveNext(getErr, getErr ? null : creds); }); + } + else { + resolveNext(null, creds); + } } + resolveNext(); +} return self; }; +const v2616 = {}; +v2616.constructor = v2614; +v2614.prototype = v2616; +v2584.resolve = v2614; +var v2617; +var v2618 = v244; +var v2619 = \\"resolve\\"; +v2617 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v2618(function (resolve, reject) { args.push(function (err, data) { if (err) { + reject(err); +} +else { + resolve(data); +} }); self[v2619].apply(self, args); }); }; +const v2620 = {}; +v2620.constructor = v2617; +v2617.prototype = v2620; +v2584.resolvePromise = v2617; +const v2621 = Object.create(v2584); +const v2622 = []; +v2622.push(v2587, v2590, v2593, v2596, v2599, v2601, v2604, v2607); +v2621.providers = v2622; +const v2623 = []; +v2623.push(); +v2621.resolveCallbacks = v2623; +v251.credentialProvider = v2621; +v251.region = undefined; +v251.logger = null; +v251.apiVersions = v212; +v251.apiVersion = null; +v251.endpoint = undefined; +v251.httpOptions = v213; +v251.maxRetries = undefined; +v251.maxRedirects = 10; +v251.paramValidation = true; +v251.sslEnabled = true; +v251.s3ForcePathStyle = false; +v251.s3BucketEndpoint = false; +v251.s3DisableBodySigning = true; +v251.s3UsEast1RegionalEndpoint = \\"legacy\\"; +v251.s3UseArnRegion = undefined; +v251.computeChecksums = true; +v251.convertResponseTypes = true; +v251.correctClockSkew = false; +v251.customUserAgent = null; +v251.dynamoDbCrc32 = true; +v251.systemClockOffset = 0; +v251.signatureVersion = null; +v251.signatureCache = true; +v251.retryDelayOptions = v214; +v251.useAccelerateEndpoint = false; +v251.clientSideMonitoring = false; +v251.endpointDiscoveryEnabled = undefined; +v251.endpointCacheSize = 1000; +v251.hostPrefixEnabled = true; +v251.stsRegionalEndpoints = \\"legacy\\"; +v251.useFipsEndpoint = false; +v251.useDualstackEndpoint = false; +var v2624 = v787; +v152 = function isClockSkewed(serverTime) { if (serverTime) { + v5.property(v251, \\"isClockSkewed\\", v2624.abs(new v76().getTime() - serverTime) >= 300000, false); + return undefined; +} }; +const v2625 = {}; +v2625.constructor = v152; +v152.prototype = v2625; +v3.isClockSkewed = v152; +var v2626; +v2626 = function applyClockOffset(serverTime) { if (serverTime) + 0 = serverTime - new v76().getTime(); }; +const v2627 = {}; +v2627.constructor = v2626; +v2626.prototype = v2627; +v3.applyClockOffset = v2626; +v3.extractRequestId = v756; +var v2628; +var v2629 = v244; +v2628 = function addPromises(constructors, PromiseDependency) { var deletePromises = false; if (PromiseDependency === undefined && v75 && v251) { + PromiseDependency = v251.getPromisesDependency(); +} if (PromiseDependency === undefined && typeof v2629 !== \\"undefined\\") { + PromiseDependency = v2629; +} if (typeof PromiseDependency !== \\"function\\") + deletePromises = true; if (!v32.isArray(constructors)) + constructors = [constructors]; for (var ind = 0; ind < constructors.length; ind++) { + var constructor = constructors[ind]; + if (deletePromises) { + if (constructor.deletePromisesFromClass) { + constructor.deletePromisesFromClass(); } - } - getSessionToken(args, optionsOrCb, cb) { - const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + else if (constructor.addPromisesToClass) { + constructor.addPromisesToClass(PromiseDependency); + } +} }; +const v2630 = {}; +v2630.constructor = v2628; +v2628.prototype = v2630; +v3.addPromises = v2628; +var v2631; +v2631 = function promisifyMethod(methodName, PromiseDependency) { return function promise() { var self = this; var args = v71.slice.call(arguments); return new PromiseDependency(function (resolve, reject) { args.push(function (err, data) { if (err) { + reject(err); +} +else { + resolve(data); +} }); self[methodName].apply(self, args); }); }; }; +const v2632 = {}; +v2632.constructor = v2631; +v2631.prototype = v2632; +v3.promisifyMethod = v2631; +var v2633; +v2633 = function isDualstackAvailable(service) { if (!service) + return false; var metadata = v11(\\"../apis/metadata.json\\"); if (typeof service !== \\"string\\") + service = service.serviceIdentifier; if (typeof service !== \\"string\\" || !metadata.hasOwnProperty(service)) + return false; return !!metadata[service].dualstackAvailable; }; +const v2634 = {}; +v2634.constructor = v2633; +v2633.prototype = v2634; +v3.isDualstackAvailable = v2633; +var v2635; +v2635 = function calculateRetryDelay(retryCount, retryDelayOptions, err) { if (!retryDelayOptions) + retryDelayOptions = {}; var customBackoff = retryDelayOptions.customBackoff || null; if (typeof customBackoff === \\"function\\") { + return customBackoff(retryCount, err); +} var base = typeof retryDelayOptions.base === \\"number\\" ? retryDelayOptions.base : 100; var delay = v2624.random() * (v2624.pow(2, retryCount) * base); return delay; }; +const v2636 = {}; +v2636.constructor = v2635; +v2635.prototype = v2636; +v3.calculateRetryDelay = v2635; +var v2637; +var v2638 = v2; +var v2639 = v751; +var v2640 = v117; +var v2641 = v40; +v2637 = function handleRequestWithRetries(httpRequest, options, cb) { if (!options) + options = {}; var http = v2638.HttpClient.getInstance(); var httpOptions = options.httpOptions || {}; var retryCount = 0; var errCallback = function (err) { var maxRetries = options.maxRetries || 0; if (err && err.code === \\"TimeoutError\\") + err.retryable = true; if (err && err.retryable && retryCount < maxRetries) { + var delay = v5.calculateRetryDelay(retryCount, options.retryDelayOptions, err); + if (delay >= 0) { + retryCount++; + v2639(sendRequest, delay + (err.retryAfter || 0)); + return; + } +} cb(err); }; var sendRequest = function () { var data = \\"\\"; http.handleRequest(httpRequest, httpOptions, function (httpResponse) { httpResponse.on(\\"data\\", function (chunk) { data += chunk.toString(); }); httpResponse.on(\\"end\\", function () { var statusCode = httpResponse.statusCode; if (statusCode < 300) { + cb(null, data); +} +else { + var retryAfter = v2640(httpResponse.headers[\\"retry-after\\"], 10) * 1000 || 0; + var err = v122.error(new v2641(), { statusCode: statusCode, retryable: statusCode >= 500 || statusCode === 429 }); + if (retryAfter && err.retryable) + err.retryAfter = retryAfter; + errCallback(err); +} }); }, errCallback); }; v3.defer(sendRequest); }; +const v2642 = {}; +v2642.constructor = v2637; +v2637.prototype = v2642; +v3.handleRequestWithRetries = v2637; +v3.uuid = v439; +var v2643; +v2643 = function convertPayloadToString(resp) { var req = resp.request; var operation = req.operation; var rules = req.service.api.operations[operation].output || {}; if (rules.payload && resp.data[rules.payload]) { + resp.data[rules.payload] = resp.data[rules.payload].toString(); +} }; +const v2644 = {}; +v2644.constructor = v2643; +v2643.prototype = v2644; +v3.convertPayloadToString = v2643; +var v2645; +var v2646 = v8; +var v2647 = v1656; +var v2648 = v751; +v2645 = function defer(callback) { if (typeof v2646 === \\"object\\" && typeof v7.nextTick === \\"function\\") { + v7.nextTick(callback); +} +else if (typeof v2647 === \\"function\\") { + v2647(callback); +} +else { + v2648(callback, 0); +} }; +const v2649 = {}; +v2649.constructor = v2645; +v2645.prototype = v2649; +v3.defer = v2645; +var v2650; +v2650 = function getRequestPayloadShape(req) { var operations = req.service.api.operations; if (!operations) + return undefined; var operation = (operations || {})[req.operation]; if (!operation || !operation.input || !operation.input.payload) + return undefined; return operation.input.members[operation.input.payload]; }; +const v2651 = {}; +v2651.constructor = v2650; +v2650.prototype = v2651; +v3.getRequestPayloadShape = v2650; +var v2652; +v2652 = function getProfilesFromSharedConfig(iniLoader, filename) { var profiles = {}; var profilesFromConfig = {}; if (v2646.env[\\"AWS_SDK_LOAD_CONFIG\\"]) { + var profilesFromConfig = iniLoader.loadFrom({ isConfig: true, filename: v7.env[\\"AWS_CONFIG_FILE\\"] }); +} var profilesFromCreds = {}; try { + var profilesFromCreds = iniLoader.loadFrom({ filename: filename || (v2646.env[\\"AWS_SDK_LOAD_CONFIG\\"] && v7.env[\\"AWS_SHARED_CREDENTIALS_FILE\\"]) }); +} +catch (error) { + if (!v7.env[\\"AWS_SDK_LOAD_CONFIG\\"]) + throw error; +} for (var i = 0, profileNames = v30.keys(profilesFromConfig); i < profileNames.length; i++) { + profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromConfig[profileNames[i]]); +} for (var i = 0, profileNames = v471.keys(profilesFromCreds); i < profileNames.length; i++) { + profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromCreds[profileNames[i]]); +} return profiles; function objectAssign(target, source) { for (var i = 0, keys = v471.keys(source); i < keys.length; i++) { + target[keys[i]] = source[keys[i]]; +} return target; } }; +const v2653 = {}; +v2653.constructor = v2652; +v2652.prototype = v2653; +v3.getProfilesFromSharedConfig = v2652; +const v2654 = {}; +var v2655; +v2655 = function validateARN(str) { return str && str.indexOf(\\"arn:\\") === 0 && str.split(\\":\\").length >= 6; }; +const v2656 = {}; +v2656.constructor = v2655; +v2655.prototype = v2656; +v2654.validate = v2655; +var v2657; +v2657 = function parseARN(arn) { var matched = arn.split(\\":\\"); return { partition: matched[1], service: matched[2], region: matched[3], accountId: matched[4], resource: matched.slice(5).join(\\":\\") }; }; +const v2658 = {}; +v2658.constructor = v2657; +v2657.prototype = v2658; +v2654.parse = v2657; +var v2659; +v2659 = function buildARN(arnObject) { if (arnObject.service === undefined || arnObject.region === undefined || arnObject.accountId === undefined || arnObject.resource === undefined) + throw v5.error(new v2641(\\"Input ARN object is invalid\\")); return \\"arn:\\" + (arnObject.partition || \\"aws\\") + \\":\\" + arnObject.service + \\":\\" + arnObject.region + \\":\\" + arnObject.accountId + \\":\\" + arnObject.resource; }; +const v2660 = {}; +v2660.constructor = v2659; +v2659.prototype = v2660; +v2654.build = v2659; +v3.ARN = v2654; +v3.defaultProfile = \\"default\\"; +v3.configOptInEnv = \\"AWS_SDK_LOAD_CONFIG\\"; +v3.sharedCredentialsFileEnv = \\"AWS_SHARED_CREDENTIALS_FILE\\"; +v3.sharedConfigFileEnv = \\"AWS_CONFIG_FILE\\"; +v3.imdsDisabledEnv = \\"AWS_EC2_METADATA_DISABLED\\"; +var v2661; +v2661 = function () { return false; }; +const v2662 = {}; +v2662.constructor = v2661; +v2661.prototype = v2662; +v3.isBrowser = v2661; +var v2663; +v2663 = function () { return true; }; +const v2664 = {}; +v2664.constructor = v2663; +v2663.prototype = v2664; +v3.isNode = v2663; +v3.Buffer = v1816; +const v2665 = require(\\"domain\\"); +v3.domain = v2665; +v3.stream = v1808; +v3.url = v22; +v3.querystring = v27; +var v2666; +var v2668; +const v2670 = require(\\"stream\\").Transform; +var v2669 = v2670; +v2668 = function EventUnmarshallerStream(options) { options = options || {}; options.readableObjectMode = true; v2669.call(this, options); this._readableState.objectMode = true; this.parser = options.parser; this.eventStreamModel = options.eventStreamModel; }; +const v2671 = require(\\"stream\\").Transform.prototype; +const v2672 = Object.create(v2671); +var v2673; +var v2675; +var v2677; +var v2679; +var v2680 = v3; +var v2681 = v42; +var v2682 = 16; +var v2683 = v40; +var v2684 = v40; +var v2685 = 8; +var v2686 = 8; +var v2687 = v40; +var v2688 = 4; +var v2689 = 4; +var v2690 = v40; +var v2691 = 8; +var v2692 = 4; +var v2693 = 4; +var v2694 = 4; +v2679 = function splitMessage(message) { if (!v2680.Buffer.isBuffer(message)) + message = v2681(message); if (message.length < v2682) { + throw new v2683(\\"Provided message too short to accommodate event stream message overhead\\"); +} if (message.length !== message.readUInt32BE(0)) { + throw new v2684(\\"Reported message length does not match received message length\\"); +} var expectedPreludeChecksum = message.readUInt32BE(v2685); if (expectedPreludeChecksum !== v91.crc32(message.slice(0, v2686))) { + throw new v2687(\\"The prelude checksum specified in the message (\\" + expectedPreludeChecksum + \\") does not match the calculated CRC32 checksum.\\"); +} var expectedMessageChecksum = message.readUInt32BE(message.length - v2688); if (expectedMessageChecksum !== v91.crc32(message.slice(0, message.length - v2689))) { + throw new v2690(\\"The message checksum did not match the expected value of \\" + expectedMessageChecksum); +} var headersStart = v2691 + v2692; var headersEnd = headersStart + message.readUInt32BE(v2693); return { headers: message.slice(headersStart, headersEnd), body: message.slice(headersEnd, message.length - v2694) }; }; +const v2695 = {}; +v2695.constructor = v2679; +v2679.prototype = v2695; +var v2678 = v2679; +var v2697; +var v2698 = \\"boolean\\"; +var v2699 = \\"boolean\\"; +var v2700 = \\"byte\\"; +var v2701 = \\"short\\"; +var v2702 = \\"integer\\"; +var v2703 = \\"long\\"; +var v2705; +var v2706 = v40; +var v2707 = v3; +var v2708 = v42; +v2705 = function Int64(bytes) { if (bytes.length !== 8) { + throw new v2706(\\"Int64 buffers must be exactly 8 bytes\\"); +} if (!v2707.Buffer.isBuffer(bytes)) + bytes = v2708(bytes); this.bytes = bytes; }; +const v2709 = {}; +v2709.constructor = v2705; +var v2710; +var v2712; +v2712 = function negate(bytes) { for (var i = 0; i < 8; i++) { + bytes[i] ^= 255; +} for (var i = 7; i > -1; i--) { + bytes[i]++; + if (bytes[i] !== 0) { + break; + } +} }; +const v2713 = {}; +v2713.constructor = v2712; +v2712.prototype = v2713; +var v2711 = v2712; +var v2714 = v117; +v2710 = function () { var bytes = this.bytes.slice(0); var negative = bytes[0] && 128; if (negative) { + v2711(bytes); +} return v2714(bytes.toString(\\"hex\\"), 16) * (negative ? -1 : 1); }; +const v2715 = {}; +v2715.constructor = v2710; +v2710.prototype = v2715; +v2709.valueOf = v2710; +var v2716; +var v2717 = v136; +v2716 = function () { return v2717(this.valueOf()); }; +const v2718 = {}; +v2718.constructor = v2716; +v2716.prototype = v2718; +v2709.toString = v2716; +v2705.prototype = v2709; +var v2719; +var v2720 = v40; +var v2721 = v44; +var v2722 = v787; +var v2723 = v787; +var v2724 = v2712; +var v2725 = v2705; +v2719 = function (number) { if (number > 9223372036854776000 || number < -9223372036854776000) { + throw new v2720(number + \\" is too large (or, if negative, too small) to represent as an Int64\\"); +} var bytes = new v2721(8); for (var i = 7, remaining = v2722.abs(v2723.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { + bytes[i] = remaining; +} if (number < 0) { + v2724(bytes); +} return new v2725(bytes); }; +const v2726 = {}; +v2726.constructor = v2719; +v2719.prototype = v2726; +v2705.fromNumber = v2719; +var v2704 = v2705; +var v2727 = \\"binary\\"; +var v2728 = undefined; +var v2729 = undefined; +var v2730 = \\"string\\"; +var v2731 = undefined; +var v2732 = undefined; +var v2733 = \\"timestamp\\"; +var v2734 = v77; +var v2735 = v2705; +var v2736 = \\"uuid\\"; +var v2737 = v40; +v2697 = function parseHeaders(headers) { var out = {}; var position = 0; while (position < headers.length) { + var nameLength = headers.readUInt8(position++); + var name = headers.slice(position, position + nameLength).toString(); + position += nameLength; + switch (headers.readUInt8(position++)) { + case 0: + out[name] = { type: v2698, value: true }; + break; + case 1: + out[name] = { type: v2699, value: false }; + break; + case 2: + out[name] = { type: v2700, value: headers.readInt8(position++) }; + break; + case 3: + out[name] = { type: v2701, value: headers.readInt16BE(position) }; + position += 2; + break; + case 4: + out[name] = { type: v2702, value: headers.readInt32BE(position) }; + position += 4; + break; + case 5: + out[name] = { type: v2703, value: new v2704(headers.slice(position, position + 8)) }; + position += 8; + break; + case 6: + var binaryLength = headers.readUInt16BE(position); + position += 2; + out[name] = { type: v2727, value: headers.slice(position, position + v2728) }; + position += v2729; + break; + case 7: + var stringLength = headers.readUInt16BE(position); + position += 2; + out[name] = { type: v2730, value: headers.slice(position, position + v2731).toString() }; + position += v2732; + break; + case 8: + out[name] = { type: v2733, value: new v2734(new v2735(headers.slice(position, position + 8)).valueOf()) }; + position += 8; + break; + case 9: + var uuidChars = headers.slice(position, position + 16).toString(\\"hex\\"); + position += 16; + out[name] = { type: v2736, value: undefined(0, 8) + \\"-\\" + undefined(8, 4) + \\"-\\" + undefined(12, 4) + \\"-\\" + undefined(16, 4) + \\"-\\" + undefined(20) }; + break; + default: throw new v2737(\\"Unrecognized header type tag\\"); + } +} return out; }; +const v2738 = {}; +v2738.constructor = v2697; +v2697.prototype = v2738; +var v2696 = v2697; +v2677 = function parseMessage(message) { var parsed = v2678(message); return { headers: v2696(parsed.headers), body: parsed.body }; }; +const v2739 = {}; +v2739.constructor = v2677; +v2677.prototype = v2739; +var v2676 = v2677; +var v2741; +var v2742 = v40; +v2741 = function parseError(message) { var errorCode = message.headers[\\":error-code\\"]; var errorMessage = message.headers[\\":error-message\\"]; var error = new v2742(errorMessage.value || errorMessage); error.code = error.name = errorCode.value || errorCode; return error; }; +const v2743 = {}; +v2743.constructor = v2741; +v2741.prototype = v2743; +var v2740 = v2741; +v2675 = function parseEvent(parser, message, shape) { var parsedMessage = v2676(message); var messageType = parsedMessage.headers[\\":message-type\\"]; if (messageType) { + if (messageType.value === \\"error\\") { + throw v2740(parsedMessage); + } + else if (messageType.value !== \\"event\\") { + return; + } +} var eventType = parsedMessage.headers[\\":event-type\\"]; var eventModel = shape.members[eventType.value]; if (!eventModel) { + return; +} var result = {}; var eventPayloadMemberName = eventModel.eventPayloadMemberName; if (eventPayloadMemberName) { + var payloadShape = eventModel.members[eventPayloadMemberName]; + if (payloadShape.type === \\"binary\\") { + result[eventPayloadMemberName] = parsedMessage.body; + } + else { + result[eventPayloadMemberName] = parser.parse(parsedMessage.body.toString(), payloadShape); + } +} var eventHeaderNames = eventModel.eventHeaderMemberNames; for (var i = 0; i < eventHeaderNames.length; i++) { + var name = eventHeaderNames[i]; + if (parsedMessage.headers[name]) { + result[name] = eventModel.members[name].toType(parsedMessage.headers[name].value); + } +} var output = {}; output[eventType.value] = result; return output; }; +const v2744 = {}; +v2744.constructor = v2675; +v2675.prototype = v2744; +var v2674 = v2675; +v2673 = function (chunk, encoding, callback) { try { + var event = v2674(this.parser, chunk, this.eventStreamModel); + this.push(event); + return callback(); +} +catch (err) { + callback(err); +} }; +const v2745 = {}; +v2745.constructor = v2673; +v2673.prototype = v2745; +v2672._transform = v2673; +v2668.prototype = v2672; +var v2667 = v2668; +var v2747; +var v2748 = v2670; +v2747 = function EventMessageChunkerStream(options) { v2748.call(this, options); this.currentMessageTotalLength = 0; this.currentMessagePendingLength = 0; this.currentMessage = null; this.messageLengthBuffer = null; }; +const v2749 = Object.create(v2671); +var v2750; +var v2751 = v46; +var v2752 = v787; +var v2753 = v787; +v2750 = function (chunk, encoding, callback) { var chunkLength = chunk.length; var currentOffset = 0; while (currentOffset < chunkLength) { + if (!this.currentMessage) { + var bytesRemaining = chunkLength - currentOffset; + if (!this.messageLengthBuffer) { + this.messageLengthBuffer = v2751(4); + } + var numBytesForTotal = v2752.min(4 - this.currentMessagePendingLength, bytesRemaining); + chunk.copy(this.messageLengthBuffer, this.currentMessagePendingLength, currentOffset, currentOffset + numBytesForTotal); + this.currentMessagePendingLength += numBytesForTotal; + currentOffset += numBytesForTotal; + if (this.currentMessagePendingLength < 4) { + break; } - } - }; - exports2.STS = STS; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js -var require_commands2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_AssumeRoleCommand(), exports2); - tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports2); - tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports2); - tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports2); - tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports2); - tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports2); - tslib_1.__exportStar(require_GetFederationTokenCommand(), exports2); - tslib_1.__exportStar(require_GetSessionTokenCommand(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js -var require_defaultRoleAssumers = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; - var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); - var STSClient_1 = require_STSClient(); - var getDefaultRoleAssumer = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, STSClient_1.STSClient); - exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; - var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, STSClient_1.STSClient); - exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; - var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports2.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input), - ...input - }); - exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js -var require_models2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_models_02(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/index.js -var require_dist_cjs45 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STSServiceException = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_STS(), exports2); - tslib_1.__exportStar(require_STSClient(), exports2); - tslib_1.__exportStar(require_commands2(), exports2); - tslib_1.__exportStar(require_defaultRoleAssumers(), exports2); - tslib_1.__exportStar(require_models2(), exports2); - var STSServiceException_1 = require_STSServiceException(); - Object.defineProperty(exports2, \\"STSServiceException\\", { enumerable: true, get: function() { - return STSServiceException_1.STSServiceException; + this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)); + this.messageLengthBuffer = null; + } + var numBytesToWrite = v2753.min(this.currentMessageTotalLength - this.currentMessagePendingLength, chunkLength - currentOffset); + chunk.copy(this.currentMessage, this.currentMessagePendingLength, currentOffset, currentOffset + numBytesToWrite); + this.currentMessagePendingLength += numBytesToWrite; + currentOffset += numBytesToWrite; + if (this.currentMessageTotalLength && this.currentMessageTotalLength === this.currentMessagePendingLength) { + this.push(this.currentMessage); + this.currentMessage = null; + this.currentMessageTotalLength = 0; + this.currentMessagePendingLength = 0; + } +} callback(); }; +const v2754 = {}; +v2754.constructor = v2750; +v2750.prototype = v2754; +v2749._transform = v2750; +var v2755; +var v2756 = v40; +v2755 = function (callback) { if (this.currentMessageTotalLength) { + if (this.currentMessageTotalLength === this.currentMessagePendingLength) { + callback(null, this.currentMessage); + } + else { + callback(new v2756(\\"Truncated event message received.\\")); + } +} +else { + callback(); +} }; +const v2757 = {}; +v2757.constructor = v2755; +v2755.prototype = v2757; +v2749._flush = v2755; +var v2758; +var v2759 = v40; +var v2760 = v46; +v2758 = function (size) { if (typeof size !== \\"number\\") { + throw new v2759(\\"Attempted to allocate an event message where size was not a number: \\" + size); +} this.currentMessageTotalLength = size; this.currentMessagePendingLength = 4; this.currentMessage = v2760(size); this.currentMessage.writeUInt32BE(size, 0); }; +const v2761 = {}; +v2761.constructor = v2758; +v2758.prototype = v2761; +v2749.allocateMessage = v2758; +v2747.prototype = v2749; +var v2746 = v2747; +v2666 = function createEventStream(stream, parser, model) { var eventStream = new v2667({ parser: parser, eventStreamModel: model }); var eventMessageChunker = new v2746(); stream.pipe(eventMessageChunker).pipe(eventStream); stream.on(\\"error\\", function (err) { eventMessageChunker.emit(\\"error\\", err); }); eventMessageChunker.on(\\"error\\", function (err) { eventStream.emit(\\"error\\", err); }); return eventStream; }; +const v2762 = {}; +v2762.constructor = v2666; +v2666.prototype = v2762; +v3.createEventStream = v2666; +v3.realClock = v781; +v3.clientSideMonitoring = v2125; +v3.iniLoader = v200; +const v2763 = require(\\"util\\").getSystemErrorName; +v3.getSystemErrorName = v2763; +var v2764; +var v2765 = v8; +var v2766 = v8; +var v2767 = v8; +v2764 = function (options) { var envValue = options.environmentVariableSelector(v2765.env); if (envValue !== undefined) { + return envValue; +} var configFile = {}; try { + configFile = v200 ? v200.loadFrom({ isConfig: true, filename: v2766.env[\\"AWS_CONFIG_FILE\\"] }) : {}; +} +catch (e) { } var sharedFileConfig = configFile[v2767.env.AWS_PROFILE || \\"default\\"] || {}; var configValue = options.configFileSelector(sharedFileConfig); if (configValue !== undefined) { + return configValue; +} if (typeof options.default === \\"function\\") { + return options.default(); +} return options.default; }; +const v2768 = {}; +v2768.constructor = v2764; +v2764.prototype = v2768; +v3.loadConfig = v2764; +v2.util = v3; +v2.VERSION = \\"2.1193.0\\"; +v2.Signers = v450; +const v2769 = {}; +v2769.Json = v2035; +const v2770 = {}; +v2770.buildRequest = v800; +v2770.extractError = v1898; +v2770.extractData = v853; +v2769.Query = v2770; +v2769.Rest = v1977; +const v2771 = {}; +v2771.buildRequest = v1975; +v2771.extractError = v2039; +v2771.extractData = v2028; +v2769.RestJson = v2771; +const v2772 = {}; +v2772.buildRequest = v2045; +v2772.extractError = v2058; +v2772.extractData = v2052; +v2769.RestXml = v2772; +v2.Protocol = v2769; +v2.XML = v937; +const v2773 = {}; +v2773.Builder = v1908; +v2773.Parser = v1940; +v2.JSON = v2773; +const v2774 = {}; +v2774.Api = v2150; +v2774.Operation = v2488; +v2774.Shape = v855; +v2774.Paginator = v2517; +v2774.ResourceWaiter = v2525; +v2.Model = v2774; +var v2775; +var v2776 = v40; +v2775 = function apiLoader(svc, version) { if (!apiLoader.services.hasOwnProperty(svc)) { + throw new v2776(\\"InvalidService: Failed to load api for \\" + svc); +} return apiLoader.services[svc][version]; }; +const v2777 = {}; +v2777.constructor = v2775; +v2775.prototype = v2777; +const v2778 = {}; +const v2779 = {}; +v2778.sts = v2779; +const v2780 = {}; +v2778.cognitoidentity = v2780; +const v2781 = {}; +v2778.acm = v2781; +const v2782 = {}; +v2778.apigateway = v2782; +const v2783 = {}; +v2778.applicationautoscaling = v2783; +const v2784 = {}; +v2778.appstream = v2784; +const v2785 = {}; +v2778.autoscaling = v2785; +const v2786 = {}; +v2778.batch = v2786; +const v2787 = {}; +v2778.budgets = v2787; +const v2788 = {}; +v2778.clouddirectory = v2788; +const v2789 = {}; +v2778.cloudformation = v2789; +const v2790 = {}; +v2778.cloudfront = v2790; +const v2791 = {}; +v2778.cloudhsm = v2791; +const v2792 = {}; +v2778.cloudsearch = v2792; +const v2793 = {}; +v2778.cloudsearchdomain = v2793; +const v2794 = {}; +v2778.cloudtrail = v2794; +const v2795 = {}; +v2778.cloudwatch = v2795; +const v2796 = {}; +v2778.cloudwatchevents = v2796; +const v2797 = {}; +v2778.cloudwatchlogs = v2797; +const v2798 = {}; +v2778.codebuild = v2798; +const v2799 = {}; +v2778.codecommit = v2799; +const v2800 = {}; +v2778.codedeploy = v2800; +const v2801 = {}; +v2778.codepipeline = v2801; +const v2802 = {}; +v2778.cognitoidentityserviceprovider = v2802; +const v2803 = {}; +v2778.cognitosync = v2803; +const v2804 = {}; +v2778.configservice = v2804; +const v2805 = {}; +v2778.cur = v2805; +const v2806 = {}; +v2778.datapipeline = v2806; +const v2807 = {}; +v2778.devicefarm = v2807; +const v2808 = {}; +v2778.directconnect = v2808; +const v2809 = {}; +v2778.directoryservice = v2809; +const v2810 = {}; +v2778.discovery = v2810; +const v2811 = {}; +v2778.dms = v2811; +const v2812 = {}; +v2778.dynamodb = v2812; +const v2813 = {}; +v2778.dynamodbstreams = v2813; +const v2814 = {}; +v2778.ec2 = v2814; +const v2815 = {}; +v2778.ecr = v2815; +const v2816 = {}; +v2778.ecs = v2816; +const v2817 = {}; +v2778.efs = v2817; +const v2818 = {}; +v2778.elasticache = v2818; +const v2819 = {}; +v2778.elasticbeanstalk = v2819; +const v2820 = {}; +v2778.elb = v2820; +const v2821 = {}; +v2778.elbv2 = v2821; +const v2822 = {}; +v2778.emr = v2822; +const v2823 = {}; +v2778.es = v2823; +const v2824 = {}; +v2778.elastictranscoder = v2824; +const v2825 = {}; +v2778.firehose = v2825; +const v2826 = {}; +v2778.gamelift = v2826; +const v2827 = {}; +v2778.glacier = v2827; +const v2828 = {}; +v2778.health = v2828; +const v2829 = {}; +v2778.iam = v2829; +const v2830 = {}; +v2778.importexport = v2830; +const v2831 = {}; +v2778.inspector = v2831; +const v2832 = {}; +v2778.iot = v2832; +const v2833 = {}; +v2778.iotdata = v2833; +const v2834 = {}; +v2778.kinesis = v2834; +const v2835 = {}; +v2778.kinesisanalytics = v2835; +const v2836 = {}; +v2778.kms = v2836; +const v2837 = {}; +v2778.lambda = v2837; +const v2838 = {}; +v2778.lexruntime = v2838; +const v2839 = {}; +v2778.lightsail = v2839; +const v2840 = {}; +v2778.machinelearning = v2840; +const v2841 = {}; +v2778.marketplacecommerceanalytics = v2841; +const v2842 = {}; +v2778.marketplacemetering = v2842; +const v2843 = {}; +v2778.mturk = v2843; +const v2844 = {}; +v2778.mobileanalytics = v2844; +const v2845 = {}; +v2778.opsworks = v2845; +const v2846 = {}; +v2778.opsworkscm = v2846; +const v2847 = {}; +v2778.organizations = v2847; +const v2848 = {}; +v2778.pinpoint = v2848; +const v2849 = {}; +v2778.polly = v2849; +const v2850 = {}; +v2778.rds = v2850; +const v2851 = {}; +v2778.redshift = v2851; +const v2852 = {}; +v2778.rekognition = v2852; +const v2853 = {}; +v2778.resourcegroupstaggingapi = v2853; +const v2854 = {}; +v2778.route53 = v2854; +const v2855 = {}; +v2778.route53domains = v2855; +const v2856 = {}; +v2778.s3 = v2856; +const v2857 = {}; +v2778.s3control = v2857; +const v2858 = {}; +v2778.servicecatalog = v2858; +const v2859 = {}; +v2778.ses = v2859; +const v2860 = {}; +v2778.shield = v2860; +const v2861 = {}; +v2778.simpledb = v2861; +const v2862 = {}; +v2778.sms = v2862; +const v2863 = {}; +v2778.snowball = v2863; +const v2864 = {}; +v2778.sns = v2864; +const v2865 = {}; +v2778.sqs = v2865; +const v2866 = {}; +v2778.ssm = v2866; +const v2867 = {}; +v2778.storagegateway = v2867; +const v2868 = {}; +v2778.stepfunctions = v2868; +const v2869 = {}; +v2778.support = v2869; +const v2870 = {}; +v2778.swf = v2870; +const v2871 = {}; +v2778.xray = v2871; +const v2872 = {}; +v2778.waf = v2872; +const v2873 = {}; +v2778.wafregional = v2873; +const v2874 = {}; +v2778.workdocs = v2874; +const v2875 = {}; +v2778.workspaces = v2875; +const v2876 = {}; +v2778.codestar = v2876; +const v2877 = {}; +v2778.lexmodelbuildingservice = v2877; +const v2878 = {}; +v2778.marketplaceentitlementservice = v2878; +const v2879 = {}; +v2778.athena = v2879; +const v2880 = {}; +v2778.greengrass = v2880; +const v2881 = {}; +v2778.dax = v2881; +const v2882 = {}; +v2778.migrationhub = v2882; +const v2883 = {}; +v2778.cloudhsmv2 = v2883; +const v2884 = {}; +v2778.glue = v2884; +const v2885 = {}; +v2778.mobile = v2885; +const v2886 = {}; +v2778.pricing = v2886; +const v2887 = {}; +v2778.costexplorer = v2887; +const v2888 = {}; +v2778.mediaconvert = v2888; +const v2889 = {}; +v2778.medialive = v2889; +const v2890 = {}; +v2778.mediapackage = v2890; +const v2891 = {}; +v2778.mediastore = v2891; +const v2892 = {}; +v2778.mediastoredata = v2892; +const v2893 = {}; +v2778.appsync = v2893; +const v2894 = {}; +v2778.guardduty = v2894; +const v2895 = {}; +v2778.mq = v2895; +const v2896 = {}; +v2778.comprehend = v2896; +const v2897 = {}; +v2778.iotjobsdataplane = v2897; +const v2898 = {}; +v2778.kinesisvideoarchivedmedia = v2898; +const v2899 = {}; +v2778.kinesisvideomedia = v2899; +const v2900 = {}; +v2778.kinesisvideo = v2900; +const v2901 = {}; +v2778.sagemakerruntime = v2901; +const v2902 = {}; +v2778.sagemaker = v2902; +const v2903 = {}; +v2778.translate = v2903; +const v2904 = {}; +v2778.resourcegroups = v2904; +const v2905 = {}; +v2778.alexaforbusiness = v2905; +const v2906 = {}; +v2778.cloud9 = v2906; +const v2907 = {}; +v2778.serverlessapplicationrepository = v2907; +const v2908 = {}; +v2778.servicediscovery = v2908; +const v2909 = {}; +v2778.workmail = v2909; +const v2910 = {}; +v2778.autoscalingplans = v2910; +const v2911 = {}; +v2778.transcribeservice = v2911; +const v2912 = {}; +v2778.connect = v2912; +const v2913 = {}; +v2778.acmpca = v2913; +const v2914 = {}; +v2778.fms = v2914; +const v2915 = {}; +v2778.secretsmanager = v2915; +const v2916 = {}; +v2778.iotanalytics = v2916; +const v2917 = {}; +v2778.iot1clickdevicesservice = v2917; +const v2918 = {}; +v2778.iot1clickprojects = v2918; +const v2919 = {}; +v2778.pi = v2919; +const v2920 = {}; +v2778.neptune = v2920; +const v2921 = {}; +v2778.mediatailor = v2921; +const v2922 = {}; +v2778.eks = v2922; +const v2923 = {}; +v2778.macie = v2923; +const v2924 = {}; +v2778.dlm = v2924; +const v2925 = {}; +v2778.signer = v2925; +const v2926 = {}; +v2778.chime = v2926; +const v2927 = {}; +v2778.pinpointemail = v2927; +const v2928 = {}; +v2778.ram = v2928; +const v2929 = {}; +v2778.route53resolver = v2929; +const v2930 = {}; +v2778.pinpointsmsvoice = v2930; +const v2931 = {}; +v2778.quicksight = v2931; +const v2932 = {}; +v2778.rdsdataservice = v2932; +const v2933 = {}; +v2778.amplify = v2933; +const v2934 = {}; +v2778.datasync = v2934; +const v2935 = {}; +v2778.robomaker = v2935; +const v2936 = {}; +v2778.transfer = v2936; +const v2937 = {}; +v2778.globalaccelerator = v2937; +const v2938 = {}; +v2778.comprehendmedical = v2938; +const v2939 = {}; +v2778.kinesisanalyticsv2 = v2939; +const v2940 = {}; +v2778.mediaconnect = v2940; +const v2941 = {}; +v2778.fsx = v2941; +const v2942 = {}; +v2778.securityhub = v2942; +const v2943 = {}; +v2778.appmesh = v2943; +const v2944 = {}; +v2778.licensemanager = v2944; +const v2945 = {}; +v2778.kafka = v2945; +const v2946 = {}; +v2778.apigatewaymanagementapi = v2946; +const v2947 = {}; +v2778.apigatewayv2 = v2947; +const v2948 = {}; +v2778.docdb = v2948; +const v2949 = {}; +v2778.backup = v2949; +const v2950 = {}; +v2778.worklink = v2950; +const v2951 = {}; +v2778.textract = v2951; +const v2952 = {}; +v2778.managedblockchain = v2952; +const v2953 = {}; +v2778.mediapackagevod = v2953; +const v2954 = {}; +v2778.groundstation = v2954; +const v2955 = {}; +v2778.iotthingsgraph = v2955; +const v2956 = {}; +v2778.iotevents = v2956; +const v2957 = {}; +v2778.ioteventsdata = v2957; +const v2958 = {}; +v2778.personalize = v2958; +const v2959 = {}; +v2778.personalizeevents = v2959; +const v2960 = {}; +v2778.personalizeruntime = v2960; +const v2961 = {}; +v2778.applicationinsights = v2961; +const v2962 = {}; +v2778.servicequotas = v2962; +const v2963 = {}; +v2778.ec2instanceconnect = v2963; +const v2964 = {}; +v2778.eventbridge = v2964; +const v2965 = {}; +v2778.lakeformation = v2965; +const v2966 = {}; +v2778.forecastservice = v2966; +const v2967 = {}; +v2778.forecastqueryservice = v2967; +const v2968 = {}; +v2778.qldb = v2968; +const v2969 = {}; +v2778.qldbsession = v2969; +const v2970 = {}; +v2778.workmailmessageflow = v2970; +const v2971 = {}; +v2778.codestarnotifications = v2971; +const v2972 = {}; +v2778.savingsplans = v2972; +const v2973 = {}; +v2778.sso = v2973; +const v2974 = {}; +v2778.ssooidc = v2974; +const v2975 = {}; +v2778.marketplacecatalog = v2975; +const v2976 = {}; +v2778.dataexchange = v2976; +const v2977 = {}; +v2778.sesv2 = v2977; +const v2978 = {}; +v2778.migrationhubconfig = v2978; +const v2979 = {}; +v2778.connectparticipant = v2979; +const v2980 = {}; +v2778.appconfig = v2980; +const v2981 = {}; +v2778.iotsecuretunneling = v2981; +const v2982 = {}; +v2778.wafv2 = v2982; +const v2983 = {}; +v2778.elasticinference = v2983; +const v2984 = {}; +v2778.imagebuilder = v2984; +const v2985 = {}; +v2778.schemas = v2985; +const v2986 = {}; +v2778.accessanalyzer = v2986; +const v2987 = {}; +v2778.codegurureviewer = v2987; +const v2988 = {}; +v2778.codeguruprofiler = v2988; +const v2989 = {}; +v2778.computeoptimizer = v2989; +const v2990 = {}; +v2778.frauddetector = v2990; +const v2991 = {}; +v2778.kendra = v2991; +const v2992 = {}; +v2778.networkmanager = v2992; +const v2993 = {}; +v2778.outposts = v2993; +const v2994 = {}; +v2778.augmentedairuntime = v2994; +const v2995 = {}; +v2778.ebs = v2995; +const v2996 = {}; +v2778.kinesisvideosignalingchannels = v2996; +const v2997 = {}; +v2778.detective = v2997; +const v2998 = {}; +v2778.codestarconnections = v2998; +const v2999 = {}; +v2778.synthetics = v2999; +const v3000 = {}; +v2778.iotsitewise = v3000; +const v3001 = {}; +v2778.macie2 = v3001; +const v3002 = {}; +v2778.codeartifact = v3002; +const v3003 = {}; +v2778.honeycode = v3003; +const v3004 = {}; +v2778.ivs = v3004; +const v3005 = {}; +v2778.braket = v3005; +const v3006 = {}; +v2778.identitystore = v3006; +const v3007 = {}; +v2778.appflow = v3007; +const v3008 = {}; +v2778.redshiftdata = v3008; +const v3009 = {}; +v2778.ssoadmin = v3009; +const v3010 = {}; +v2778.timestreamquery = v3010; +const v3011 = {}; +v2778.timestreamwrite = v3011; +const v3012 = {}; +v2778.s3outposts = v3012; +const v3013 = {}; +v2778.databrew = v3013; +const v3014 = {}; +v2778.servicecatalogappregistry = v3014; +const v3015 = {}; +v2778.networkfirewall = v3015; +const v3016 = {}; +v2778.mwaa = v3016; +const v3017 = {}; +v2778.amplifybackend = v3017; +const v3018 = {}; +v2778.appintegrations = v3018; +const v3019 = {}; +v2778.connectcontactlens = v3019; +const v3020 = {}; +v2778.devopsguru = v3020; +const v3021 = {}; +v2778.ecrpublic = v3021; +const v3022 = {}; +v2778.lookoutvision = v3022; +const v3023 = {}; +v2778.sagemakerfeaturestoreruntime = v3023; +const v3024 = {}; +v2778.customerprofiles = v3024; +const v3025 = {}; +v2778.auditmanager = v3025; +const v3026 = {}; +v2778.emrcontainers = v3026; +const v3027 = {}; +v2778.healthlake = v3027; +const v3028 = {}; +v2778.sagemakeredge = v3028; +const v3029 = {}; +v2778.amp = v3029; +const v3030 = {}; +v2778.greengrassv2 = v3030; +const v3031 = {}; +v2778.iotdeviceadvisor = v3031; +const v3032 = {}; +v2778.iotfleethub = v3032; +const v3033 = {}; +v2778.iotwireless = v3033; +const v3034 = {}; +v2778.location = v3034; +const v3035 = {}; +v2778.wellarchitected = v3035; +const v3036 = {}; +v2778.lexmodelsv2 = v3036; +const v3037 = {}; +v2778.lexruntimev2 = v3037; +const v3038 = {}; +v2778.fis = v3038; +const v3039 = {}; +v2778.lookoutmetrics = v3039; +const v3040 = {}; +v2778.mgn = v3040; +const v3041 = {}; +v2778.lookoutequipment = v3041; +const v3042 = {}; +v2778.nimble = v3042; +const v3043 = {}; +v2778.finspace = v3043; +const v3044 = {}; +v2778.finspacedata = v3044; +const v3045 = {}; +v2778.ssmcontacts = v3045; +const v3046 = {}; +v2778.ssmincidents = v3046; +const v3047 = {}; +v2778.applicationcostprofiler = v3047; +const v3048 = {}; +v2778.apprunner = v3048; +const v3049 = {}; +v2778.proton = v3049; +const v3050 = {}; +v2778.route53recoverycluster = v3050; +const v3051 = {}; +v2778.route53recoverycontrolconfig = v3051; +const v3052 = {}; +v2778.route53recoveryreadiness = v3052; +const v3053 = {}; +v2778.chimesdkidentity = v3053; +const v3054 = {}; +v2778.chimesdkmessaging = v3054; +const v3055 = {}; +v2778.snowdevicemanagement = v3055; +const v3056 = {}; +v2778.memorydb = v3056; +const v3057 = {}; +v2778.opensearch = v3057; +const v3058 = {}; +v2778.kafkaconnect = v3058; +const v3059 = {}; +v2778.voiceid = v3059; +const v3060 = {}; +v2778.wisdom = v3060; +const v3061 = {}; +v2778.account = v3061; +const v3062 = {}; +v2778.cloudcontrol = v3062; +const v3063 = {}; +v2778.grafana = v3063; +const v3064 = {}; +v2778.panorama = v3064; +const v3065 = {}; +v2778.chimesdkmeetings = v3065; +const v3066 = {}; +v2778.resiliencehub = v3066; +const v3067 = {}; +v2778.migrationhubstrategy = v3067; +const v3068 = {}; +v2778.appconfigdata = v3068; +const v3069 = {}; +v2778.drs = v3069; +const v3070 = {}; +v2778.migrationhubrefactorspaces = v3070; +const v3071 = {}; +v2778.evidently = v3071; +const v3072 = {}; +v2778.inspector2 = v3072; +const v3073 = {}; +v2778.rbin = v3073; +const v3074 = {}; +v2778.rum = v3074; +const v3075 = {}; +v2778.backupgateway = v3075; +const v3076 = {}; +v2778.iottwinmaker = v3076; +const v3077 = {}; +v2778.workspacesweb = v3077; +const v3078 = {}; +v2778.amplifyuibuilder = v3078; +const v3079 = {}; +v2778.keyspaces = v3079; +const v3080 = {}; +v2778.billingconductor = v3080; +const v3081 = {}; +v2778.gamesparks = v3081; +const v3082 = {}; +v2778.pinpointsmsvoicev2 = v3082; +const v3083 = {}; +v2778.ivschat = v3083; +const v3084 = {}; +v2778.chimesdkmediapipelines = v3084; +const v3085 = {}; +v2778.emrserverless = v3085; +const v3086 = {}; +v2778.m2 = v3086; +const v3087 = {}; +v2778.connectcampaigns = v3087; +const v3088 = {}; +v2778.redshiftserverless = v3088; +const v3089 = {}; +v2778.rolesanywhere = v3089; +const v3090 = {}; +v2778.licensemanagerusersubscriptions = v3090; +const v3091 = {}; +v2778.backupstorage = v3091; +const v3092 = {}; +v2778.privatenetworks = v3092; +v2775.services = v2778; +v2.apiLoader = v2775; +v2.EndpointCache = v643; +v2.SequentialExecutor = v402; +v2.Service = v299; +v2.Credentials = v253; +v2.CredentialProviderChain = v2585; +v2.Config = v154; +v2.config = v251; +var v3093; +var v3094 = v40; +var v3095 = v117; +v3093 = function Endpoint(endpoint, config) { v3.hideProperties(this, [\\"slashes\\", \\"auth\\", \\"hash\\", \\"search\\", \\"query\\"]); if (typeof endpoint === \\"undefined\\" || endpoint === null) { + throw new v3094(\\"Invalid endpoint: \\" + endpoint); +} +else if (typeof endpoint !== \\"string\\") { + return v3.copy(endpoint); +} if (!endpoint.match(/^http/)) { + var useSSL = config && config.sslEnabled !== undefined ? config.sslEnabled : true; + endpoint = (useSSL ? \\"https\\" : \\"http\\") + \\"://\\" + endpoint; +} v3.update(this, v3.urlParse(endpoint)); if (this.port) { + this.port = v3095(this.port, 10); +} +else { + this.port = this.protocol === \\"https:\\" ? 443 : 80; +} }; +const v3096 = {}; +v3096.constructor = v3093; +v3093.prototype = v3096; +v3093.__super__ = v31; +v2.Endpoint = v3093; +var v3097; +var v3098 = v2; +v3097 = function HttpRequest(endpoint, region) { endpoint = new v3098.Endpoint(endpoint); this.method = \\"POST\\"; this.path = endpoint.path || \\"/\\"; this.headers = {}; this.body = \\"\\"; this.endpoint = endpoint; this.region = region; this._userAgent = \\"\\"; this.setUserAgent(); }; +const v3099 = {}; +v3099.constructor = v3097; +var v3100; +v3100 = function setUserAgent() { this._userAgent = this.headers[this.getUserAgentHeaderName()] = v3.userAgent(); }; +const v3101 = {}; +v3101.constructor = v3100; +v3100.prototype = v3101; +v3099.setUserAgent = v3100; +var v3102; +v3102 = function getUserAgentHeaderName() { var prefix = v3.isBrowser() ? \\"X-Amz-\\" : \\"\\"; return prefix + \\"User-Agent\\"; }; +const v3103 = {}; +v3103.constructor = v3102; +v3102.prototype = v3103; +v3099.getUserAgentHeaderName = v3102; +var v3104; +v3104 = function appendToUserAgent(agentPartial) { if (typeof agentPartial === \\"string\\" && agentPartial) { + this._userAgent += \\" \\" + agentPartial; +} this.headers[this.getUserAgentHeaderName()] = this._userAgent; }; +const v3105 = {}; +v3105.constructor = v3104; +v3104.prototype = v3105; +v3099.appendToUserAgent = v3104; +var v3106; +v3106 = function getUserAgent() { return this._userAgent; }; +const v3107 = {}; +v3107.constructor = v3106; +v3106.prototype = v3107; +v3099.getUserAgent = v3106; +var v3108; +v3108 = function pathname() { return this.path.split(\\"?\\", 1)[0]; }; +const v3109 = {}; +v3109.constructor = v3108; +v3108.prototype = v3109; +v3099.pathname = v3108; +var v3110; +v3110 = function search() { var query = this.path.split(\\"?\\", 2)[1]; if (query) { + query = v3.queryStringParse(query); + return v3.queryParamsToString(query); +} return \\"\\"; }; +const v3111 = {}; +v3111.constructor = v3110; +v3110.prototype = v3111; +v3099.search = v3110; +var v3112; +var v3113 = v2; +v3112 = function updateEndpoint(endpointStr) { var newEndpoint = new v3113.Endpoint(endpointStr); this.endpoint = newEndpoint; this.path = newEndpoint.path || \\"/\\"; if (this.headers[\\"Host\\"]) { + this.headers[\\"Host\\"] = newEndpoint.host; +} }; +const v3114 = {}; +v3114.constructor = v3112; +v3112.prototype = v3114; +v3099.updateEndpoint = v3112; +v3097.prototype = v3099; +v3097.__super__ = v31; +v2.HttpRequest = v3097; +var v3115; +v3115 = function HttpResponse() { this.statusCode = undefined; this.headers = {}; this.body = undefined; this.streaming = false; this.stream = null; }; +const v3116 = {}; +v3116.constructor = v3115; +var v3117; +v3117 = function createUnbufferedStream() { this.streaming = true; return this.stream; }; +const v3118 = {}; +v3118.constructor = v3117; +v3117.prototype = v3118; +v3116.createUnbufferedStream = v3117; +v3115.prototype = v3116; +v3115.__super__ = v31; +v2.HttpResponse = v3115; +var v3119; +var v3120 = v31; +var v3121 = v31; +v3119 = function () { if (v3120 !== v3121) { + return v3120.apply(this, arguments); +} }; +const v3122 = {}; +var v3123; +var v3124 = v2; +var v3125 = require; +var v3126 = require; +var v3127 = v8; +var v3128 = \\"AWS_NODEJS_CONNECTION_REUSE_ENABLED\\"; +var v3129 = v751; +var v3130 = v40; +const v3132 = require(\\"timers\\").clearTimeout; +var v3131 = v3132; +var v3133 = v40; +var v3134 = undefined; +var v3135 = v3132; +var v3136 = undefined; +v3123 = function handleRequest(httpRequest, httpOptions, callback, errCallback) { var self = this; var endpoint = httpRequest.endpoint; var pathPrefix = \\"\\"; if (!httpOptions) + httpOptions = {}; if (httpOptions.proxy) { + pathPrefix = endpoint.protocol + \\"//\\" + endpoint.hostname; + if (endpoint.port !== 80 && endpoint.port !== 443) { + pathPrefix += \\":\\" + endpoint.port; + } + endpoint = new v3124.Endpoint(httpOptions.proxy); +} var useSSL = endpoint.protocol === \\"https:\\"; var http = useSSL ? v3125(\\"https\\") : v3126(\\"http\\"); var options = { host: endpoint.hostname, port: endpoint.port, method: httpRequest.method, headers: httpRequest.headers, path: pathPrefix + httpRequest.path }; if (!httpOptions.agent) { + options.agent = this.getAgent(useSSL, { keepAlive: v3127.env[v3128] === \\"1\\" ? true : false }); +} v3.update(options, httpOptions); delete options.proxy; delete options.timeout; var stream = http.request(options, function (httpResp) { if (stream.didCallback) + return; callback(httpResp); httpResp.emit(\\"headers\\", httpResp.statusCode, httpResp.headers, httpResp.statusMessage); }); httpRequest.stream = stream; stream.didCallback = false; if (httpOptions.connectTimeout) { + var connectTimeoutId; + stream.on(\\"socket\\", function (socket) { if (socket.connecting) { + connectTimeoutId = v3129(function connectTimeout() { if (stream.didCallback) + return; stream.didCallback = true; stream.abort(); errCallback(v3.error(new v3130(\\"Socket timed out without establishing a connection\\"), { code: \\"TimeoutError\\" })); }, httpOptions.connectTimeout); + socket.on(\\"connect\\", function () { v3131(connectTimeoutId); connectTimeoutId = null; }); } }); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js -var require_endpoints3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRegionInfoProvider = void 0; - var config_resolver_1 = require_dist_cjs7(); - var regionHash = { - \\"ca-central-1\\": { - variants: [ - { - hostname: \\"dynamodb-fips.ca-central-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - local: { - variants: [ - { - hostname: \\"localhost:8000\\", - tags: [] - } - ], - signingRegion: \\"us-east-1\\" - }, - \\"us-east-1\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-east-2\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-east-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-east-1\\": { - variants: [ - { - hostname: \\"dynamodb.us-gov-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-west-1\\": { - variants: [ - { - hostname: \\"dynamodb.us-gov-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-1\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-2\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-west-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - } - }; - var partitionHash = { - aws: { - regions: [ - \\"af-south-1\\", - \\"ap-east-1\\", - \\"ap-northeast-1\\", - \\"ap-northeast-2\\", - \\"ap-northeast-3\\", - \\"ap-south-1\\", - \\"ap-southeast-1\\", - \\"ap-southeast-2\\", - \\"ap-southeast-3\\", - \\"ca-central-1\\", - \\"ca-central-1-fips\\", - \\"eu-central-1\\", - \\"eu-north-1\\", - \\"eu-south-1\\", - \\"eu-west-1\\", - \\"eu-west-2\\", - \\"eu-west-3\\", - \\"local\\", - \\"me-south-1\\", - \\"sa-east-1\\", - \\"us-east-1\\", - \\"us-east-1-fips\\", - \\"us-east-2\\", - \\"us-east-2-fips\\", - \\"us-west-1\\", - \\"us-west-1-fips\\", - \\"us-west-2\\", - \\"us-west-2-fips\\" - ], - regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"dynamodb-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"dynamodb.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-cn\\": { - regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], - regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.amazonaws.com.cn\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.amazonaws.com.cn\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"dynamodb-fips.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"dynamodb.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-iso\\": { - regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], - regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.c2s.ic.gov\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.c2s.ic.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-iso-b\\": { - regions: [\\"us-isob-east-1\\"], - regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.sc2s.sgov.gov\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.sc2s.sgov.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-us-gov\\": { - regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], - regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"dynamodb.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"dynamodb-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"dynamodb.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - } - }; - var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: \\"dynamodb\\", - regionHash, - partitionHash - }); - exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var url_parser_1 = require_dist_cjs28(); - var endpoints_1 = require_endpoints3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return { - apiVersion: \\"2012-08-10\\", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"DynamoDB\\", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js -var require_runtimeConfig3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var tslib_1 = require_tslib(); - var package_json_1 = tslib_1.__importDefault(require_package()); - var client_sts_1 = require_dist_cjs45(); - var config_resolver_1 = require_dist_cjs7(); - var credential_provider_node_1 = require_dist_cjs44(); - var hash_node_1 = require_dist_cjs31(); - var middleware_endpoint_discovery_1 = require_dist_cjs10(); - var middleware_retry_1 = require_dist_cjs15(); - var node_config_provider_1 = require_dist_cjs26(); - var node_http_handler_1 = require_dist_cjs33(); - var util_base64_node_1 = require_dist_cjs34(); - var util_body_length_node_1 = require_dist_cjs35(); - var util_user_agent_node_1 = require_dist_cjs36(); - var util_utf8_node_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); - var smithy_client_1 = require_dist_cjs3(); - var util_defaults_mode_node_1 = require_dist_cjs38(); - var smithy_client_2 = require_dist_cjs3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: \\"node\\", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), - maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, \\"sha256\\"), - streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8, - utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8 - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js -var require_DynamoDBClient = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDBClient = void 0; - var config_resolver_1 = require_dist_cjs7(); - var middleware_content_length_1 = require_dist_cjs8(); - var middleware_endpoint_discovery_1 = require_dist_cjs10(); - var middleware_host_header_1 = require_dist_cjs11(); - var middleware_logger_1 = require_dist_cjs12(); - var middleware_recursion_detection_1 = require_dist_cjs13(); - var middleware_retry_1 = require_dist_cjs15(); - var middleware_signing_1 = require_dist_cjs21(); - var middleware_user_agent_1 = require_dist_cjs22(); - var smithy_client_1 = require_dist_cjs3(); - var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); - var runtimeConfig_1 = require_runtimeConfig3(); - var DynamoDBClient = class extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = (0, middleware_endpoint_discovery_1.resolveEndpointDiscoveryConfig)(_config_6, { - endpointDiscoveryCommandCtor: DescribeEndpointsCommand_1.DescribeEndpointsCommand - }); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } - }; - exports2.DynamoDBClient = DynamoDBClient; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js -var require_DynamoDB = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDB = void 0; - var BatchExecuteStatementCommand_1 = require_BatchExecuteStatementCommand(); - var BatchGetItemCommand_1 = require_BatchGetItemCommand(); - var BatchWriteItemCommand_1 = require_BatchWriteItemCommand(); - var CreateBackupCommand_1 = require_CreateBackupCommand(); - var CreateGlobalTableCommand_1 = require_CreateGlobalTableCommand(); - var CreateTableCommand_1 = require_CreateTableCommand(); - var DeleteBackupCommand_1 = require_DeleteBackupCommand(); - var DeleteItemCommand_1 = require_DeleteItemCommand(); - var DeleteTableCommand_1 = require_DeleteTableCommand(); - var DescribeBackupCommand_1 = require_DescribeBackupCommand(); - var DescribeContinuousBackupsCommand_1 = require_DescribeContinuousBackupsCommand(); - var DescribeContributorInsightsCommand_1 = require_DescribeContributorInsightsCommand(); - var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); - var DescribeExportCommand_1 = require_DescribeExportCommand(); - var DescribeGlobalTableCommand_1 = require_DescribeGlobalTableCommand(); - var DescribeGlobalTableSettingsCommand_1 = require_DescribeGlobalTableSettingsCommand(); - var DescribeKinesisStreamingDestinationCommand_1 = require_DescribeKinesisStreamingDestinationCommand(); - var DescribeLimitsCommand_1 = require_DescribeLimitsCommand(); - var DescribeTableCommand_1 = require_DescribeTableCommand(); - var DescribeTableReplicaAutoScalingCommand_1 = require_DescribeTableReplicaAutoScalingCommand(); - var DescribeTimeToLiveCommand_1 = require_DescribeTimeToLiveCommand(); - var DisableKinesisStreamingDestinationCommand_1 = require_DisableKinesisStreamingDestinationCommand(); - var EnableKinesisStreamingDestinationCommand_1 = require_EnableKinesisStreamingDestinationCommand(); - var ExecuteStatementCommand_1 = require_ExecuteStatementCommand(); - var ExecuteTransactionCommand_1 = require_ExecuteTransactionCommand(); - var ExportTableToPointInTimeCommand_1 = require_ExportTableToPointInTimeCommand(); - var GetItemCommand_1 = require_GetItemCommand(); - var ListBackupsCommand_1 = require_ListBackupsCommand(); - var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); - var ListExportsCommand_1 = require_ListExportsCommand(); - var ListGlobalTablesCommand_1 = require_ListGlobalTablesCommand(); - var ListTablesCommand_1 = require_ListTablesCommand(); - var ListTagsOfResourceCommand_1 = require_ListTagsOfResourceCommand(); - var PutItemCommand_1 = require_PutItemCommand(); - var QueryCommand_1 = require_QueryCommand(); - var RestoreTableFromBackupCommand_1 = require_RestoreTableFromBackupCommand(); - var RestoreTableToPointInTimeCommand_1 = require_RestoreTableToPointInTimeCommand(); - var ScanCommand_1 = require_ScanCommand(); - var TagResourceCommand_1 = require_TagResourceCommand(); - var TransactGetItemsCommand_1 = require_TransactGetItemsCommand(); - var TransactWriteItemsCommand_1 = require_TransactWriteItemsCommand(); - var UntagResourceCommand_1 = require_UntagResourceCommand(); - var UpdateContinuousBackupsCommand_1 = require_UpdateContinuousBackupsCommand(); - var UpdateContributorInsightsCommand_1 = require_UpdateContributorInsightsCommand(); - var UpdateGlobalTableCommand_1 = require_UpdateGlobalTableCommand(); - var UpdateGlobalTableSettingsCommand_1 = require_UpdateGlobalTableSettingsCommand(); - var UpdateItemCommand_1 = require_UpdateItemCommand(); - var UpdateTableCommand_1 = require_UpdateTableCommand(); - var UpdateTableReplicaAutoScalingCommand_1 = require_UpdateTableReplicaAutoScalingCommand(); - var UpdateTimeToLiveCommand_1 = require_UpdateTimeToLiveCommand(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var DynamoDB = class extends DynamoDBClient_1.DynamoDBClient { - batchExecuteStatement(args, optionsOrCb, cb) { - const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - batchGetItem(args, optionsOrCb, cb) { - const command = new BatchGetItemCommand_1.BatchGetItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); +} stream.setTimeout(httpOptions.timeout || 0, function () { if (stream.didCallback) + return; stream.didCallback = true; var msg = \\"Connection timed out after \\" + httpOptions.timeout + \\"ms\\"; errCallback(v3.error(new v3133(msg), { code: \\"TimeoutError\\" })); stream.abort(); }); stream.on(\\"error\\", function (err) { if (v3134) { + v3135(v3136); + connectTimeoutId = null; +} if (stream.didCallback) + return; stream.didCallback = true; if (\\"ECONNRESET\\" === err.code || \\"EPIPE\\" === err.code || \\"ETIMEDOUT\\" === err.code) { + errCallback(v3.error(err, { code: \\"TimeoutError\\" })); +} +else { + errCallback(err); +} }); var expect = httpRequest.headers.Expect || httpRequest.headers.expect; if (expect === \\"100-continue\\") { + stream.once(\\"continue\\", function () { self.writeBody(stream, httpRequest); }); +} +else { + this.writeBody(stream, httpRequest); +} return stream; }; +const v3137 = {}; +v3137.constructor = v3123; +v3123.prototype = v3137; +v3122.handleRequest = v3123; +var v3138; +var v3139 = v117; +var v3140 = v1808; +v3138 = function writeBody(stream, httpRequest) { var body = httpRequest.body; var totalBytes = v3139(httpRequest.headers[\\"Content-Length\\"], 10); if (body instanceof v3140) { + var progressStream = this.progressStream(stream, totalBytes); + if (progressStream) { + body.pipe(progressStream).pipe(stream); + } + else { + body.pipe(stream); + } +} +else if (body) { + stream.once(\\"finish\\", function () { stream.emit(\\"sendProgress\\", { loaded: totalBytes, total: totalBytes }); }); + stream.end(body); +} +else { + stream.end(); +} }; +const v3141 = {}; +v3141.constructor = v3138; +v3138.prototype = v3141; +v3122.writeBody = v3138; +var v3142; +var v3143 = require; +var v3144 = require; +var v3145 = v8; +var v3146 = v31; +var v3147 = Infinity; +v3142 = function getAgent(useSSL, agentOptions) { var http = useSSL ? v3143(\\"https\\") : v3144(\\"http\\"); if (useSSL) { + if (!undefined) { + undefined = new http.Agent(v3.merge({ rejectUnauthorized: v3145.env.NODE_TLS_REJECT_UNAUTHORIZED === \\"0\\" ? false : true }, agentOptions || {})); + undefined(0); + v3146.defineProperty(undefined, \\"maxSockets\\", { enumerable: true, get: function () { var defaultMaxSockets = 50; var globalAgent = http.globalAgent; if (globalAgent && globalAgent.maxSockets !== v3147 && typeof globalAgent.maxSockets === \\"number\\") { + return globalAgent.maxSockets; + } return defaultMaxSockets; } }); + } + return undefined; +} +else { + if (!undefined) { + undefined = new http.Agent(agentOptions); + } + return undefined; +} }; +const v3148 = {}; +v3148.constructor = v3142; +v3142.prototype = v3148; +v3122.getAgent = v3142; +var v3149; +var v3150 = v2670; +v3149 = function progressStream(stream, totalBytes) { if (typeof v3150 === \\"undefined\\") { + return; +} var loadedBytes = 0; var reporter = new v3150(); reporter._transform = function (chunk, encoding, callback) { if (chunk) { + loadedBytes += chunk.length; + stream.emit(\\"sendProgress\\", { loaded: loadedBytes, total: totalBytes }); +} callback(null, chunk); }; return reporter; }; +const v3151 = {}; +v3151.constructor = v3149; +v3149.prototype = v3151; +v3122.progressStream = v3149; +v3122.emitter = null; +var v3152; +var v3153 = v31; +var v3154 = v31; +v3152 = function () { if (v3153 !== v3154) { + return v3153.apply(this, arguments); +} }; +v3152.prototype = v3122; +v3152.__super__ = v31; +v3122.constructor = v3152; +v3119.prototype = v3122; +v3119.__super__ = v31; +var v3155; +v3155 = function getInstance() { if (this.singleton === undefined) { + this.singleton = new this(); +} return this.singleton; }; +const v3156 = {}; +v3156.constructor = v3155; +v3155.prototype = v3156; +v3119.getInstance = v3155; +v3119.streamsApiVersion = 2; +v2.HttpClient = v3119; +const v3157 = {}; +v3157.Core = v428; +v3157.CorePost = v753; +v3157.Logger = v763; +v3157.Json = v1903; +const v3158 = Object.create(v401); +const v3159 = {}; +const v3160 = []; +v3160.push(v1978); +v3159.build = v3160; +const v3161 = []; +v3161.push(v2012); +v3159.extractData = v3161; +const v3162 = []; +v3162.push(v2010); +v3159.extractError = v3162; +v3158._events = v3159; +v3158.BUILD = v1978; +v3158.EXTRACT_DATA = v2012; +v3158.EXTRACT_ERROR = v2010; +v3157.Rest = v3158; +v3157.RestJson = v1972; +v3157.RestXml = v2042; +v3157.Query = v797; +v2.EventListeners = v3157; +var v3163; +var v3164 = v2665; +var v3165 = v2; +var v3166 = v2; +var v3168; +v3168 = function AcceptorStateMachine(states, state) { this.currentState = state || null; this.states = states || {}; }; +const v3169 = {}; +v3169.constructor = v3168; +var v3170; +v3170 = function runTo(finalState, done, bindObject, inputError) { if (typeof finalState === \\"function\\") { + inputError = bindObject; + bindObject = done; + done = finalState; + finalState = null; +} var self = this; var state = self.states[self.currentState]; state.fn.call(bindObject || self, inputError, function (err) { if (err) { + if (state.fail) + self.currentState = state.fail; + else + return done ? done.call(bindObject, err) : null; +} +else { + if (state.accept) + self.currentState = state.accept; + else + return done ? done.call(bindObject) : null; +} if (self.currentState === finalState) { + return done ? done.call(bindObject, err) : null; +} self.runTo(finalState, done, bindObject, err); }); }; +const v3171 = {}; +v3171.constructor = v3170; +v3170.prototype = v3171; +v3169.runTo = v3170; +var v3172; +v3172 = function addState(name, acceptState, failState, fn) { if (typeof acceptState === \\"function\\") { + fn = acceptState; + acceptState = null; + failState = null; +} +else if (typeof failState === \\"function\\") { + fn = failState; + failState = null; +} if (!this.currentState) + this.currentState = name; this.states[name] = { accept: acceptState, fail: failState, fn: fn }; return this; }; +const v3173 = {}; +v3173.constructor = v3172; +v3172.prototype = v3173; +v3169.addState = v3172; +v3168.prototype = v3169; +var v3167 = v3168; +const v3174 = {}; +const v3175 = {}; +v3175.accept = \\"build\\"; +v3175.fail = \\"error\\"; +var v3176; +var v3178; +const v3180 = {}; +v3180.success = 1; +v3180.error = 1; +v3180.complete = 1; +var v3179 = v3180; +v3178 = function isTerminalState(machine) { return v113.hasOwnProperty.call(v3179, machine._asm.currentState); }; +const v3181 = {}; +v3181.constructor = v3178; +v3178.prototype = v3181; +var v3177 = v3178; +var v3182 = v2665; +var v3183 = v2665; +v3176 = function (_, done) { var self = this; self._haltHandlersOnError = false; self.emit(self._asm.currentState, function (err) { if (err) { + if (v3177(self)) { + if (v3182 && self.domain instanceof v3183.Domain) { + err.domainEmitter = self; + err.domain = self.domain; + err.domainThrown = false; + self.domain.emit(\\"error\\", err); + } + else { + throw err; } - } - batchWriteItem(args, optionsOrCb, cb) { - const command = new BatchWriteItemCommand_1.BatchWriteItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + else { + self.response.error = err; + done(err); + } +} +else { + done(self.response.error); +} }); }; +const v3184 = {}; +v3184.constructor = v3176; +v3176.prototype = v3184; +v3175.fn = v3176; +v3174.validate = v3175; +const v3185 = {}; +v3185.accept = \\"afterBuild\\"; +v3185.fail = \\"restart\\"; +v3185.fn = v3176; +v3174.build = v3185; +const v3186 = {}; +v3186.accept = \\"sign\\"; +v3186.fail = \\"restart\\"; +v3186.fn = v3176; +v3174.afterBuild = v3186; +const v3187 = {}; +v3187.accept = \\"send\\"; +v3187.fail = \\"retry\\"; +v3187.fn = v3176; +v3174.sign = v3187; +const v3188 = {}; +v3188.accept = \\"afterRetry\\"; +v3188.fail = \\"afterRetry\\"; +v3188.fn = v3176; +v3174.retry = v3188; +const v3189 = {}; +v3189.accept = \\"sign\\"; +v3189.fail = \\"error\\"; +v3189.fn = v3176; +v3174.afterRetry = v3189; +const v3190 = {}; +v3190.accept = \\"validateResponse\\"; +v3190.fail = \\"retry\\"; +v3190.fn = v3176; +v3174.send = v3190; +const v3191 = {}; +v3191.accept = \\"extractData\\"; +v3191.fail = \\"extractError\\"; +v3191.fn = v3176; +v3174.validateResponse = v3191; +const v3192 = {}; +v3192.accept = \\"extractData\\"; +v3192.fail = \\"retry\\"; +v3192.fn = v3176; +v3174.extractError = v3192; +const v3193 = {}; +v3193.accept = \\"success\\"; +v3193.fail = \\"retry\\"; +v3193.fn = v3176; +v3174.extractData = v3193; +const v3194 = {}; +v3194.accept = \\"build\\"; +v3194.fail = \\"error\\"; +v3194.fn = v3176; +v3174.restart = v3194; +const v3195 = {}; +v3195.accept = \\"complete\\"; +v3195.fail = \\"complete\\"; +v3195.fn = v3176; +v3174.success = v3195; +const v3196 = {}; +v3196.accept = \\"complete\\"; +v3196.fail = \\"complete\\"; +v3196.fn = v3176; +v3174.error = v3196; +const v3197 = {}; +v3197.accept = null; +v3197.fail = null; +v3197.fn = v3176; +v3174.complete = v3197; +var v3198 = v2; +v3163 = function Request(service, operation, params) { var endpoint = service.endpoint; var region = service.config.region; var customUserAgent = service.config.customUserAgent; if (service.signingRegion) { + region = service.signingRegion; +} +else if (service.isGlobalEndpoint) { + region = \\"us-east-1\\"; +} this.domain = v3164 && null; this.service = service; this.operation = operation; this.params = params || {}; this.httpRequest = new v3165.HttpRequest(endpoint, region); this.httpRequest.appendToUserAgent(customUserAgent); this.startTime = service.getSkewCorrectedDate(); this.response = new v3166.Response(this); this._asm = new v3167(v3174, \\"validate\\"); this._haltHandlersOnError = false; v3198.SequentialExecutor.call(this); this.emit = this.emitEvent; }; +const v3199 = {}; +v3199.constructor = v3163; +var v3200; +v3200 = function send(callback) { if (callback) { + this.httpRequest.appendToUserAgent(\\"callback\\"); + this.on(\\"complete\\", function (resp) { callback.call(resp, resp.error, resp.data); }); +} this.runTo(); return this.response; }; +const v3201 = {}; +v3201.constructor = v3200; +v3200.prototype = v3201; +v3199.send = v3200; +var v3202; +v3202 = function build(callback) { return this.runTo(\\"send\\", callback); }; +const v3203 = {}; +v3203.constructor = v3202; +v3202.prototype = v3203; +v3199.build = v3202; +var v3204; +v3204 = function runTo(state, done) { this._asm.runTo(state, done, this); return this; }; +const v3205 = {}; +v3205.constructor = v3204; +v3204.prototype = v3205; +v3199.runTo = v3204; +var v3206; +var v3207 = v40; +v3206 = function abort() { this.removeAllListeners(\\"validateResponse\\"); this.removeAllListeners(\\"extractError\\"); this.on(\\"validateResponse\\", function addAbortedError(resp) { resp.error = v3.error(new v3207(\\"Request aborted by user\\"), { code: \\"RequestAbortedError\\", retryable: false }); }); if (this.httpRequest.stream && !this.httpRequest.stream.didCallback) { + this.httpRequest.stream.abort(); + if (this.httpRequest._abortCallback) { + this.httpRequest._abortCallback(); + } + else { + this.removeAllListeners(\\"send\\"); + } +} return this; }; +const v3208 = {}; +v3208.constructor = v3206; +v3206.prototype = v3208; +v3199.abort = v3206; +var v3209; +v3209 = function eachPage(callback) { callback = v65.makeAsync(callback, 3); function wrappedCallback(response) { callback.call(response, response.error, response.data, function (result) { if (result === false) + return; if (response.hasNextPage()) { + response.nextPage().on(\\"complete\\", wrappedCallback).send(); +} +else { + callback.call(response, null, null, v65.noop); +} }); } this.on(\\"complete\\", wrappedCallback).send(); }; +const v3210 = {}; +v3210.constructor = v3209; +v3209.prototype = v3210; +v3199.eachPage = v3209; +var v3211; +var v3212 = v33; +const v3214 = Object.create(v646); +var v3215; +var v3217; +v3217 = function Lexer() { }; +const v3218 = {}; +var v3219; +var v3221; +v3221 = function isAlpha(ch) { return (ch >= \\"a\\" && ch <= \\"z\\") || (ch >= \\"A\\" && ch <= \\"Z\\") || ch === \\"_\\"; }; +const v3222 = {}; +v3222.constructor = v3221; +v3221.prototype = v3222; +var v3220 = v3221; +var v3223 = \\"UnquotedIdentifier\\"; +const v3225 = {}; +v3225[\\".\\"] = \\"Dot\\"; +v3225[\\"*\\"] = \\"Star\\"; +v3225[\\",\\"] = \\"Comma\\"; +v3225[\\":\\"] = \\"Colon\\"; +v3225[\\"{\\"] = \\"Lbrace\\"; +v3225[\\"}\\"] = \\"Rbrace\\"; +v3225[\\"]\\"] = \\"Rbracket\\"; +v3225[\\"(\\"] = \\"Lparen\\"; +v3225[\\")\\"] = \\"Rparen\\"; +v3225[\\"@\\"] = \\"Current\\"; +var v3224 = v3225; +var v3226 = v3225; +var v3228; +v3228 = function isNum(ch) { return (ch >= \\"0\\" && ch <= \\"9\\") || ch === \\"-\\"; }; +const v3229 = {}; +v3229.constructor = v3228; +v3228.prototype = v3229; +var v3227 = v3228; +var v3230 = \\"QuotedIdentifier\\"; +var v3231 = \\"Literal\\"; +var v3232 = \\"Literal\\"; +const v3234 = {}; +v3234[\\"<\\"] = true; +v3234[\\">\\"] = true; +v3234[\\"=\\"] = true; +v3234[\\"!\\"] = true; +var v3233 = v3234; +const v3236 = {}; +v3236[\\" \\"] = true; +v3236[\\"\\\\t\\"] = true; +v3236[\\"\\\\n\\"] = true; +var v3235 = v3236; +var v3237 = \\"And\\"; +var v3238 = \\"Expref\\"; +var v3239 = \\"Or\\"; +var v3240 = \\"Pipe\\"; +var v3241 = v40; +v3219 = function (stream) { var tokens = []; this._current = 0; var start; var identifier; var token; while (this._current < stream.length) { + if (v3220(stream[this._current])) { + start = this._current; + identifier = this._consumeUnquotedIdentifier(stream); + tokens.push({ type: v3223, value: identifier, start: start }); + } + else if (v3224[stream[this._current]] !== undefined) { + tokens.push({ type: v3226[stream[this._current]], value: stream[this._current], start: this._current }); + this._current++; + } + else if (v3227(stream[this._current])) { + token = this._consumeNumber(stream); + tokens.push(token); + } + else if (stream[this._current] === \\"[\\") { + token = this._consumeLBracket(stream); + tokens.push(token); + } + else if (stream[this._current] === \\"\\\\\\"\\") { + start = this._current; + identifier = this._consumeQuotedIdentifier(stream); + tokens.push({ type: v3230, value: identifier, start: start }); + } + else if (stream[this._current] === \\"'\\") { + start = this._current; + identifier = this._consumeRawStringLiteral(stream); + tokens.push({ type: v3231, value: identifier, start: start }); + } + else if (stream[this._current] === \\"\`\\") { + start = this._current; + var literal = this._consumeLiteral(stream); + tokens.push({ type: v3232, value: literal, start: start }); + } + else if (v3233[stream[this._current]] !== undefined) { + tokens.push(this._consumeOperator(stream)); + } + else if (v3235[stream[this._current]] !== undefined) { + this._current++; + } + else if (stream[this._current] === \\"&\\") { + start = this._current; + this._current++; + if (stream[this._current] === \\"&\\") { + this._current++; + tokens.push({ type: v3237, value: \\"&&\\", start: start }); } - } - createBackup(args, optionsOrCb, cb) { - const command = new CreateBackupCommand_1.CreateBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else { + tokens.push({ type: v3238, value: \\"&\\", start: start }); } - } - createGlobalTable(args, optionsOrCb, cb) { - const command = new CreateGlobalTableCommand_1.CreateGlobalTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + else if (stream[this._current] === \\"|\\") { + start = this._current; + this._current++; + if (stream[this._current] === \\"|\\") { + this._current++; + tokens.push({ type: v3239, value: \\"||\\", start: start }); } - } - createTable(args, optionsOrCb, cb) { - const command = new CreateTableCommand_1.CreateTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else { + tokens.push({ type: v3240, value: \\"|\\", start: start }); } - } - deleteBackup(args, optionsOrCb, cb) { - const command = new DeleteBackupCommand_1.DeleteBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + else { + var error = new v3241(\\"Unknown character:\\" + stream[this._current]); + error.name = \\"LexerError\\"; + throw error; + } +} return tokens; }; +const v3242 = {}; +v3242.constructor = v3219; +v3219.prototype = v3242; +v3218.tokenize = v3219; +var v3243; +var v3245; +v3245 = function isAlphaNum(ch) { return (ch >= \\"a\\" && ch <= \\"z\\") || (ch >= \\"A\\" && ch <= \\"Z\\") || (ch >= \\"0\\" && ch <= \\"9\\") || ch === \\"_\\"; }; +const v3246 = {}; +v3246.constructor = v3245; +v3245.prototype = v3246; +var v3244 = v3245; +v3243 = function (stream) { var start = this._current; this._current++; while (this._current < stream.length && v3244(stream[this._current])) { + this._current++; +} return stream.slice(start, this._current); }; +const v3247 = {}; +v3247.constructor = v3243; +v3243.prototype = v3247; +v3218._consumeUnquotedIdentifier = v3243; +var v3248; +var v3249 = v163; +v3248 = function (stream) { var start = this._current; this._current++; var maxLength = stream.length; while (stream[this._current] !== \\"\\\\\\"\\" && this._current < maxLength) { + var current = this._current; + if (stream[current] === \\"\\\\\\\\\\" && (stream[current + 1] === \\"\\\\\\\\\\" || stream[current + 1] === \\"\\\\\\"\\")) { + current += 2; + } + else { + current++; + } + this._current = current; +} this._current++; return v3249.parse(stream.slice(start, this._current)); }; +const v3250 = {}; +v3250.constructor = v3248; +v3248.prototype = v3250; +v3218._consumeQuotedIdentifier = v3248; +var v3251; +v3251 = function (stream) { var start = this._current; this._current++; var maxLength = stream.length; while (stream[this._current] !== \\"'\\" && this._current < maxLength) { + var current = this._current; + if (stream[current] === \\"\\\\\\\\\\" && (stream[current + 1] === \\"\\\\\\\\\\" || stream[current + 1] === \\"'\\")) { + current += 2; + } + else { + current++; + } + this._current = current; +} this._current++; var literal = stream.slice(start + 1, this._current - 1); return literal.replace(\\"\\\\\\\\'\\", \\"'\\"); }; +const v3252 = {}; +v3252.constructor = v3251; +v3251.prototype = v3252; +v3218._consumeRawStringLiteral = v3251; +var v3253; +var v3254 = v3228; +var v3255 = v117; +var v3256 = \\"Number\\"; +v3253 = function (stream) { var start = this._current; this._current++; var maxLength = stream.length; while (v3254(stream[this._current]) && this._current < maxLength) { + this._current++; +} var value = v3255(stream.slice(start, this._current)); return { type: v3256, value: value, start: start }; }; +const v3257 = {}; +v3257.constructor = v3253; +v3253.prototype = v3257; +v3218._consumeNumber = v3253; +var v3258; +var v3259 = \\"Filter\\"; +var v3260 = \\"Flatten\\"; +var v3261 = \\"Lbracket\\"; +v3258 = function (stream) { var start = this._current; this._current++; if (stream[this._current] === \\"?\\") { + this._current++; + return { type: v3259, value: \\"[?\\", start: start }; +} +else if (stream[this._current] === \\"]\\") { + this._current++; + return { type: v3260, value: \\"[]\\", start: start }; +} +else { + return { type: v3261, value: \\"[\\", start: start }; +} }; +const v3262 = {}; +v3262.constructor = v3258; +v3258.prototype = v3262; +v3218._consumeLBracket = v3258; +var v3263; +var v3264 = \\"NE\\"; +var v3265 = \\"Not\\"; +var v3266 = \\"LTE\\"; +var v3267 = \\"LT\\"; +var v3268 = \\"GTE\\"; +var v3269 = \\"GT\\"; +var v3270 = \\"EQ\\"; +v3263 = function (stream) { var start = this._current; var startingChar = stream[start]; this._current++; if (startingChar === \\"!\\") { + if (stream[this._current] === \\"=\\") { + this._current++; + return { type: v3264, value: \\"!=\\", start: start }; + } + else { + return { type: v3265, value: \\"!\\", start: start }; + } +} +else if (startingChar === \\"<\\") { + if (stream[this._current] === \\"=\\") { + this._current++; + return { type: v3266, value: \\"<=\\", start: start }; + } + else { + return { type: v3267, value: \\"<\\", start: start }; + } +} +else if (startingChar === \\">\\") { + if (stream[this._current] === \\"=\\") { + this._current++; + return { type: v3268, value: \\">=\\", start: start }; + } + else { + return { type: v3269, value: \\">\\", start: start }; + } +} +else if (startingChar === \\"=\\") { + if (stream[this._current] === \\"=\\") { + this._current++; + return { type: v3270, value: \\"==\\", start: start }; + } +} }; +const v3271 = {}; +v3271.constructor = v3263; +v3263.prototype = v3271; +v3218._consumeOperator = v3263; +var v3272; +var v3274; +v3274 = function (str) { return str.trimLeft(); }; +const v3275 = {}; +v3275.constructor = v3274; +v3274.prototype = v3275; +var v3273 = v3274; +var v3276 = v163; +v3272 = function (stream) { this._current++; var start = this._current; var maxLength = stream.length; var literal; while (stream[this._current] !== \\"\`\\" && this._current < maxLength) { + var current = this._current; + if (stream[current] === \\"\\\\\\\\\\" && (stream[current + 1] === \\"\\\\\\\\\\" || stream[current + 1] === \\"\`\\")) { + current += 2; + } + else { + current++; + } + this._current = current; +} var literalString = v3273(stream.slice(start, this._current)); literalString = literalString.replace(\\"\\\\\\\\\`\\", \\"\`\\"); if (this._looksLikeJSON(literalString)) { + literal = v3276.parse(literalString); +} +else { + literal = v3276.parse(\\"\\\\\\"\\" + literalString + \\"\\\\\\"\\"); +} this._current++; return literal; }; +const v3277 = {}; +v3277.constructor = v3272; +v3272.prototype = v3277; +v3218._consumeLiteral = v3272; +var v3278; +v3278 = function (literalString) { var startingChars = \\"[{\\\\\\"\\"; var jsonLiterals = [\\"true\\", \\"false\\", \\"null\\"]; var numberLooking = \\"-0123456789\\"; if (literalString === \\"\\") { + return false; +} +else if (startingChars.indexOf(literalString[0]) >= 0) { + return true; +} +else if (jsonLiterals.indexOf(literalString) >= 0) { + return true; +} +else if (numberLooking.indexOf(literalString[0]) >= 0) { + try { + v3276.parse(literalString); + return true; + } + catch (ex) { + return false; + } +} +else { + return false; +} }; +const v3279 = {}; +v3279.constructor = v3278; +v3278.prototype = v3279; +v3218._looksLikeJSON = v3278; +v3217.prototype = v3218; +var v3216 = v3217; +v3215 = function tokenize(stream) { var lexer = new v3216(); return lexer.tokenize(stream); }; +const v3280 = {}; +v3280.constructor = v3215; +v3215.prototype = v3280; +v3214.tokenize = v3215; +var v3281; +var v3283; +v3283 = function Parser() { }; +const v3284 = {}; +var v3285; +var v3286 = \\"EOF\\"; +var v3287 = v40; +v3285 = function (expression) { this._loadTokens(expression); this.index = 0; var ast = this.expression(0); if (this._lookahead(0) !== v3286) { + var t = this._lookaheadToken(0); + var error = new v3287(\\"Unexpected token type: \\" + t.type + \\", value: \\" + t.value); + error.name = \\"ParserError\\"; + throw error; +} return ast; }; +const v3288 = {}; +v3288.constructor = v3285; +v3285.prototype = v3288; +v3284.parse = v3285; +var v3289; +var v3290 = v3217; +var v3291 = \\"EOF\\"; +v3289 = function (expression) { var lexer = new v3290(); var tokens = lexer.tokenize(expression); tokens.push({ type: v3291, value: \\"\\", start: expression.length }); this.tokens = tokens; }; +const v3292 = {}; +v3292.constructor = v3289; +v3289.prototype = v3292; +v3284._loadTokens = v3289; +var v3293; +const v3295 = {}; +v3295.EOF = 0; +v3295.UnquotedIdentifier = 0; +v3295.QuotedIdentifier = 0; +v3295.Rbracket = 0; +v3295.Rparen = 0; +v3295.Comma = 0; +v3295.Rbrace = 0; +v3295.Number = 0; +v3295.Current = 0; +v3295.Expref = 0; +v3295.Pipe = 1; +v3295.Or = 2; +v3295.And = 3; +v3295.EQ = 5; +v3295.GT = 5; +v3295.LT = 5; +v3295.GTE = 5; +v3295.LTE = 5; +v3295.NE = 5; +v3295.Flatten = 9; +v3295.Star = 20; +v3295.Filter = 21; +v3295.Dot = 40; +v3295.Not = 45; +v3295.Lbrace = 50; +v3295.Lbracket = 55; +v3295.Lparen = 60; +var v3294 = v3295; +v3293 = function (rbp) { var leftToken = this._lookaheadToken(0); this._advance(); var left = this.nud(leftToken); var currentToken = this._lookahead(0); while (rbp < v3294[currentToken]) { + this._advance(); + left = this.led(currentToken, left); + currentToken = this._lookahead(0); +} return left; }; +const v3296 = {}; +v3296.constructor = v3293; +v3293.prototype = v3296; +v3284.expression = v3293; +var v3297; +v3297 = function (number) { return this.tokens[this.index + number].type; }; +const v3298 = {}; +v3298.constructor = v3297; +v3297.prototype = v3298; +v3284._lookahead = v3297; +var v3299; +v3299 = function (number) { return this.tokens[this.index + number]; }; +const v3300 = {}; +v3300.constructor = v3299; +v3299.prototype = v3300; +v3284._lookaheadToken = v3299; +var v3301; +v3301 = function () { this.index++; }; +const v3302 = {}; +v3302.constructor = v3301; +v3301.prototype = v3302; +v3284._advance = v3301; +var v3303; +var v3304 = \\"UnquotedIdentifier\\"; +var v3305 = \\"Lparen\\"; +var v3306 = v40; +var v3307 = undefined; +var v3308 = \\"Not\\"; +var v3309 = \\"Star\\"; +var v3310 = \\"Rbracket\\"; +var v3311 = \\"Filter\\"; +var v3312 = \\"Lbrace\\"; +var v3313 = \\"Flatten\\"; +var v3314 = \\"Flatten\\"; +var v3315 = \\"Lbracket\\"; +var v3316 = \\"Number\\"; +var v3317 = \\"Colon\\"; +var v3318 = \\"Current\\"; +var v3319 = \\"Current\\"; +var v3320 = \\"Lparen\\"; +var v3321 = \\"Rparen\\"; +var v3322 = \\"Current\\"; +var v3323 = undefined; +v3303 = function (token) { var left; var right; var expression; switch (token.type) { + case v3232: return { type: \\"Literal\\", value: token.value }; + case v3304: return { type: \\"Field\\", name: token.value }; + case v3230: + var node = { type: \\"Field\\", name: token.value }; + if (this._lookahead(0) === v3305) { + throw new v3306(\\"Quoted identifier not allowed for function names.\\"); + } + return v3307; + case v3308: + right = this.expression(45); + return { type: \\"NotExpression\\", children: [right] }; + case v3309: + left = { type: \\"Identity\\" }; + right = null; + if (this._lookahead(0) === v3310) { + right = { type: \\"Identity\\" }; + } + else { + right = this._parseProjectionRHS(20); + } + return { type: \\"ValueProjection\\", children: [left, right] }; + case v3311: return this.led(token.type, { type: \\"Identity\\" }); + case v3312: return this._parseMultiselectHash(); + case v3313: + left = { type: v3314, children: [{ type: \\"Identity\\" }] }; + right = this._parseProjectionRHS(9); + return { type: \\"Projection\\", children: [left, right] }; + case v3315: + if (this._lookahead(0) === v3316 || this._lookahead(0) === v3317) { + right = this._parseIndexExpression(); + return this._projectIfSlice({ type: \\"Identity\\" }, right); + } + else if (this._lookahead(0) === v3309 && this._lookahead(1) === v3310) { + this._advance(); + this._advance(); + right = this._parseProjectionRHS(20); + return { type: \\"Projection\\", children: [{ type: \\"Identity\\" }, right] }; + } + return this._parseMultiselectList(); + case v3318: return { type: v3319 }; + case v3238: + expression = this.expression(0); + return { type: \\"ExpressionReference\\", children: [expression] }; + case v3320: + var args = []; + while (this._lookahead(0) !== v3321) { + if (this._lookahead(0) === v3318) { + expression = { type: v3322 }; + this._advance(); + } + else { + expression = this.expression(0); + } + undefined(expression); + } + this._match(v3321); + return v3323[0]; + default: this._errorToken(token); +} }; +const v3324 = {}; +v3324.constructor = v3303; +v3303.prototype = v3324; +v3284.nud = v3303; +var v3325; +var v3326 = \\"Dot\\"; +var v3327 = undefined; +var v3328 = \\"Pipe\\"; +var v3329 = \\"Pipe\\"; +var v3330 = \\"And\\"; +var v3331 = \\"Rparen\\"; +var v3332 = \\"Comma\\"; +var v3333 = \\"Comma\\"; +var v3334 = undefined; +var v3335 = undefined; +var v3336 = undefined; +var v3337 = undefined; +var v3338 = \\"Rbracket\\"; +var v3339 = undefined; +var v3340 = undefined; +var v3341 = undefined; +var v3342 = \\"EQ\\"; +var v3343 = \\"NE\\"; +var v3344 = \\"LT\\"; +var v3345 = \\"LTE\\"; +var v3346 = \\"Number\\"; +var v3347 = \\"Colon\\"; +var v3348 = \\"Star\\"; +var v3349 = \\"Rbracket\\"; +v3325 = function (tokenName, left) { var right; switch (tokenName) { + case v3326: + var rbp = 40; + if (this._lookahead(0) !== v3309) { + right = this._parseDotRHS(v3327); + return { type: \\"Subexpression\\", children: [left, right] }; + } + this._advance(); + right = this._parseProjectionRHS(v3327); + return { type: \\"ValueProjection\\", children: [left, right] }; + case v3328: + right = this.expression(1); + return { type: v3329, children: [left, right] }; + case v3239: + right = this.expression(2); + return { type: \\"OrExpression\\", children: [left, right] }; + case v3330: + right = this.expression(3); + return { type: \\"AndExpression\\", children: [left, right] }; + case v3305: + var name = left.name; + var args = []; + var expression, node; + while (this._lookahead(0) !== v3331) { + if (this._lookahead(0) === v3318) { + expression = { type: v3319 }; + this._advance(); + } + else { + expression = this.expression(0); + } + if (this._lookahead(0) === v3332) { + this._match(v3333); + } + undefined(v3334); + } + this._match(v3331); + node = { type: \\"Function\\", name: v3335, children: v3336 }; + return v3337; + case v3311: + var condition = this.expression(0); + this._match(v3338); + if (this._lookahead(0) === v3314) { + right = { type: \\"Identity\\" }; + } + else { + right = this._parseProjectionRHS(21); + } + return { type: \\"FilterProjection\\", children: [left, right, v3339] }; + case v3314: + var leftNode = { type: v3314, children: [left] }; + var rightNode = this._parseProjectionRHS(9); + return { type: \\"Projection\\", children: [v3340, v3341] }; + case v3342: + case v3343: + case v3269: + case v3268: + case v3344: + case v3345: return this._parseComparator(left, tokenName); + case v3315: + var token = this._lookaheadToken(0); + if (undefined === v3346 || undefined === v3347) { + right = this._parseIndexExpression(); + return this._projectIfSlice(left, right); + } + this._match(v3348); + this._match(v3349); + right = this._parseProjectionRHS(20); + return { type: \\"Projection\\", children: [left, right] }; + default: this._errorToken(this._lookaheadToken(0)); +} }; +const v3350 = {}; +v3350.constructor = v3325; +v3325.prototype = v3350; +v3284.led = v3325; +var v3351; +v3351 = function (tokenType) { if (this._lookahead(0) === tokenType) { + this._advance(); +} +else { + var t = this._lookaheadToken(0); + var error = new v3306(\\"Expected \\" + tokenType + \\", got: \\" + t.type); + error.name = \\"ParserError\\"; + throw error; +} }; +const v3352 = {}; +v3352.constructor = v3351; +v3351.prototype = v3352; +v3284._match = v3351; +var v3353; +v3353 = function (token) { var error = new v3306(\\"Invalid token (\\" + token.type + \\"): \\\\\\"\\" + token.value + \\"\\\\\\"\\"); error.name = \\"ParserError\\"; throw error; }; +const v3354 = {}; +v3354.constructor = v3353; +v3353.prototype = v3354; +v3284._errorToken = v3353; +var v3355; +v3355 = function () { if (this._lookahead(0) === v3347 || this._lookahead(1) === v3347) { + return this._parseSliceExpression(); +} +else { + var node = { type: \\"Index\\", value: this._lookaheadToken(0).value }; + this._advance(); + this._match(v3349); + return node; +} }; +const v3356 = {}; +v3356.constructor = v3355; +v3355.prototype = v3356; +v3284._parseIndexExpression = v3355; +var v3357; +v3357 = function (left, right) { var indexExpr = { type: \\"IndexExpression\\", children: [left, right] }; if (right.type === \\"Slice\\") { + return { type: \\"Projection\\", children: [indexExpr, this._parseProjectionRHS(20)] }; +} +else { + return indexExpr; +} }; +const v3358 = {}; +v3358.constructor = v3357; +v3357.prototype = v3358; +v3284._projectIfSlice = v3357; +var v3359; +v3359 = function () { var parts = [null, null, null]; var index = 0; var currentToken = this._lookahead(0); while (currentToken !== v3338 && index < 3) { + if (currentToken === v3347) { + index++; + this._advance(); + } + else if (currentToken === v3346) { + parts[index] = this._lookaheadToken(0).value; + this._advance(); + } + else { + var t = this._lookahead(0); + var error = new v3287(\\"Syntax error, unexpected token: \\" + t.value + \\"(\\" + t.type + \\")\\"); + error.name = \\"Parsererror\\"; + throw error; + } + currentToken = this._lookahead(0); +} this._match(v3338); return { type: \\"Slice\\", children: parts }; }; +const v3360 = {}; +v3360.constructor = v3359; +v3359.prototype = v3360; +v3284._parseSliceExpression = v3359; +var v3361; +var v3362 = v3295; +v3361 = function (left, comparator) { var right = this.expression(v3362[comparator]); return { type: \\"Comparator\\", name: comparator, children: [left, right] }; }; +const v3363 = {}; +v3363.constructor = v3361; +v3361.prototype = v3363; +v3284._parseComparator = v3361; +var v3364; +var v3365 = \\"UnquotedIdentifier\\"; +var v3366 = \\"Lbracket\\"; +v3364 = function (rbp) { var lookahead = this._lookahead(0); var exprTokens = [v3365, v3230, v3348]; if (exprTokens.indexOf(lookahead) >= 0) { + return this.expression(rbp); +} +else if (lookahead === v3366) { + this._match(v3315); + return this._parseMultiselectList(); +} +else if (lookahead === v3312) { + this._match(v3312); + return this._parseMultiselectHash(); +} }; +const v3367 = {}; +v3367.constructor = v3364; +v3364.prototype = v3367; +v3284._parseDotRHS = v3364; +var v3368; +v3368 = function (rbp) { var right; if (v3362[this._lookahead(0)] < 10) { + right = { type: \\"Identity\\" }; +} +else if (this._lookahead(0) === v3315) { + right = this.expression(rbp); +} +else if (this._lookahead(0) === v3311) { + right = this.expression(rbp); +} +else if (this._lookahead(0) === v3326) { + this._match(v3326); + right = this._parseDotRHS(rbp); +} +else { + var t = this._lookaheadToken(0); + var error = new v3287(\\"Sytanx error, unexpected token: \\" + t.value + \\"(\\" + t.type + \\")\\"); + error.name = \\"ParserError\\"; + throw error; +} return right; }; +const v3369 = {}; +v3369.constructor = v3368; +v3368.prototype = v3369; +v3284._parseProjectionRHS = v3368; +var v3370; +v3370 = function () { var expressions = []; while (this._lookahead(0) !== v3338) { + var expression = this.expression(0); + expressions.push(expression); + if (this._lookahead(0) === v3332) { + this._match(v3333); + if (this._lookahead(0) === v3310) { + throw new v3306(\\"Unexpected token Rbracket\\"); } - } - deleteItem(args, optionsOrCb, cb) { - const command = new DeleteItemCommand_1.DeleteItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} this._match(v3338); return { type: \\"MultiSelectList\\", children: expressions }; }; +const v3371 = {}; +v3371.constructor = v3370; +v3370.prototype = v3371; +v3284._parseMultiselectList = v3370; +var v3372; +var v3373 = \\"QuotedIdentifier\\"; +var v3374 = \\"Rbrace\\"; +v3372 = function () { var pairs = []; var identifierTypes = [v3365, v3373]; var keyToken, keyName, value, node; for (;;) { + keyToken = this._lookaheadToken(0); + if (identifierTypes.indexOf(keyToken.type) < 0) { + throw new v3287(\\"Expecting an identifier token, got: \\" + keyToken.type); + } + keyName = keyToken.value; + this._advance(); + this._match(v3317); + value = this.expression(0); + node = { type: \\"KeyValuePair\\", name: keyName, value: value }; + pairs.push(node); + if (this._lookahead(0) === v3333) { + this._match(v3333); + } + else if (this._lookahead(0) === v3374) { + this._match(v3374); + break; + } +} return { type: \\"MultiSelectHash\\", children: pairs }; }; +const v3375 = {}; +v3375.constructor = v3372; +v3372.prototype = v3375; +v3284._parseMultiselectHash = v3372; +v3283.prototype = v3284; +var v3282 = v3283; +v3281 = function compile(stream) { var parser = new v3282(); var ast = parser.parse(stream); return ast; }; +const v3376 = {}; +v3376.constructor = v3281; +v3281.prototype = v3376; +v3214.compile = v3281; +var v3377; +var v3378 = v3283; +var v3380; +var v3381 = 0; +var v3382 = 8; +var v3383 = 0; +var v3384 = 2; +var v3385 = 3; +var v3386 = 1; +var v3387 = 2; +var v3388 = 2; +var v3389 = 3; +var v3390 = 4; +var v3391 = 6; +var v3392 = 3; +var v3393 = 8; +var v3394 = 9; +var v3395 = 4; +var v3396 = 3; +var v3397 = 6; +var v3398 = 9; +var v3399 = 6; +var v3400 = 1; +var v3401 = 4; +var v3402 = 4; +var v3403 = 8; +v3380 = function Runtime(interpreter) { this._interpreter = interpreter; this.functionTable = { abs: { _func: this._functionAbs, _signature: [{ types: [v3381] }] }, avg: { _func: this._functionAvg, _signature: [{ types: [v3382] }] }, ceil: { _func: this._functionCeil, _signature: [{ types: [v3383] }] }, contains: { _func: this._functionContains, _signature: [{ types: [v3384, v3385] }, { types: [v3386] }] }, \\"ends_with\\": { _func: this._functionEndsWith, _signature: [{ types: [v3387] }, { types: [v3387] }] }, floor: { _func: this._functionFloor, _signature: [{ types: [v3381] }] }, length: { _func: this._functionLength, _signature: [{ types: [v3388, v3389, v3390] }] }, map: { _func: this._functionMap, _signature: [{ types: [v3391] }, { types: [v3392] }] }, max: { _func: this._functionMax, _signature: [{ types: [v3393, v3394] }] }, \\"merge\\": { _func: this._functionMerge, _signature: [{ types: [v3395], variadic: true }] }, \\"max_by\\": { _func: this._functionMaxBy, _signature: [{ types: [v3396] }, { types: [v3397] }] }, sum: { _func: this._functionSum, _signature: [{ types: [v3393] }] }, \\"starts_with\\": { _func: this._functionStartsWith, _signature: [{ types: [v3384] }, { types: [v3384] }] }, min: { _func: this._functionMin, _signature: [{ types: [v3393, v3398] }] }, \\"min_by\\": { _func: this._functionMinBy, _signature: [{ types: [v3385] }, { types: [v3399] }] }, type: { _func: this._functionType, _signature: [{ types: [v3400] }] }, keys: { _func: this._functionKeys, _signature: [{ types: [v3401] }] }, values: { _func: this._functionValues, _signature: [{ types: [v3402] }] }, sort: { _func: this._functionSort, _signature: [{ types: [v3398, v3403] }] }, \\"sort_by\\": { _func: this._functionSortBy, _signature: [{ types: [v3385] }, { types: [v3391] }] }, join: { _func: this._functionJoin, _signature: [{ types: [v3384] }, { types: [v3394] }] }, reverse: { _func: this._functionReverse, _signature: [{ types: [v3388, v3385] }] }, \\"to_array\\": { _func: this._functionToArray, _signature: [{ types: [v3386] }] }, \\"to_string\\": { _func: this._functionToString, _signature: [{ types: [v3400] }] }, \\"to_number\\": { _func: this._functionToNumber, _signature: [{ types: [v3386] }] }, \\"not_null\\": { _func: this._functionNotNull, _signature: [{ types: [v3400], variadic: true }] } }; }; +const v3404 = {}; +var v3405; +v3405 = function (name, resolvedArgs) { var functionEntry = this.functionTable[name]; if (functionEntry === undefined) { + throw new v3287(\\"Unknown function: \\" + name + \\"()\\"); +} this._validateArgs(name, resolvedArgs, functionEntry._signature); return functionEntry._func.call(this, resolvedArgs); }; +const v3406 = {}; +v3406.constructor = v3405; +v3405.prototype = v3406; +v3404.callFunction = v3405; +var v3407; +const v3409 = {}; +v3409[\\"0\\"] = \\"number\\"; +v3409[\\"1\\"] = \\"any\\"; +v3409[\\"2\\"] = \\"string\\"; +v3409[\\"3\\"] = \\"array\\"; +v3409[\\"4\\"] = \\"object\\"; +v3409[\\"5\\"] = \\"boolean\\"; +v3409[\\"6\\"] = \\"expression\\"; +v3409[\\"7\\"] = \\"null\\"; +v3409[\\"8\\"] = \\"Array\\"; +v3409[\\"9\\"] = \\"Array\\"; +var v3408 = v3409; +v3407 = function (name, args, signature) { var pluralized; if (signature[signature.length - 1].variadic) { + if (args.length < signature.length) { + pluralized = signature.length === 1 ? \\" argument\\" : \\" arguments\\"; + throw new v3287(\\"ArgumentError: \\" + name + \\"() \\" + \\"takes at least\\" + signature.length + pluralized + \\" but received \\" + args.length); + } +} +else if (args.length !== signature.length) { + pluralized = signature.length === 1 ? \\" argument\\" : \\" arguments\\"; + throw new v3287(\\"ArgumentError: \\" + name + \\"() \\" + \\"takes \\" + signature.length + pluralized + \\" but received \\" + args.length); +} var currentSpec; var actualType; var typeMatched; for (var i = 0; i < signature.length; i++) { + typeMatched = false; + currentSpec = signature[i].types; + actualType = this._getTypeName(args[i]); + for (var j = 0; j < currentSpec.length; j++) { + if (this._typeMatches(actualType, currentSpec[j], args[i])) { + typeMatched = true; + break; } - } - deleteTable(args, optionsOrCb, cb) { - const command = new DeleteTableCommand_1.DeleteTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + if (!typeMatched) { + var expected = currentSpec.map(function (typeIdentifier) { return v3408[typeIdentifier]; }).join(\\",\\"); + throw new v3287(\\"TypeError: \\" + name + \\"() \\" + \\"expected argument \\" + (i + 1) + \\" to be type \\" + expected + \\" but received type \\" + v3408[actualType] + \\" instead.\\"); + } +} }; +const v3410 = {}; +v3410.constructor = v3407; +v3407.prototype = v3410; +v3404._validateArgs = v3407; +var v3411; +var v3412 = 9; +var v3413 = 0; +var v3414 = 2; +v3411 = function (actual, expected, argValue) { if (expected === v3400) { + return true; +} if (expected === v3412 || expected === v3403 || expected === v3392) { + if (expected === v3392) { + return actual === v3392; + } + else if (actual === v3392) { + var subtype; + if (expected === v3403) { + subtype = v3413; } - } - describeBackup(args, optionsOrCb, cb) { - const command = new DescribeBackupCommand_1.DescribeBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else if (expected === v3412) { + subtype = v3414; } - } - describeContinuousBackups(args, optionsOrCb, cb) { - const command = new DescribeContinuousBackupsCommand_1.DescribeContinuousBackupsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + for (var i = 0; i < argValue.length; i++) { + if (!this._typeMatches(this._getTypeName(argValue[i]), subtype, argValue[i])) { + return false; + } } - } - describeContributorInsights(args, optionsOrCb, cb) { - const command = new DescribeContributorInsightsCommand_1.DescribeContributorInsightsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return true; + } +} +else { + return actual === expected; +} }; +const v3415 = {}; +v3415.constructor = v3411; +v3411.prototype = v3415; +v3404._typeMatches = v3411; +var v3416; +var v3417 = 5; +var v3418 = 7; +var v3419 = \\"Expref\\"; +var v3420 = 6; +v3416 = function (obj) { switch (v113.toString.call(obj)) { + case \\"[object String]\\": return v3414; + case \\"[object Number]\\": return v3413; + case \\"[object Array]\\": return v3392; + case \\"[object Boolean]\\": return v3417; + case \\"[object Null]\\": return v3418; + case \\"[object Object]\\": if (obj.jmespathType === v3419) { + return v3420; + } + else { + return v3402; + } +} }; +const v3421 = {}; +v3421.constructor = v3416; +v3416.prototype = v3421; +v3404._getTypeName = v3416; +var v3422; +v3422 = function (resolvedArgs) { return resolvedArgs[0].lastIndexOf(resolvedArgs[1]) === 0; }; +const v3423 = {}; +v3423.constructor = v3422; +v3422.prototype = v3423; +v3404._functionStartsWith = v3422; +var v3424; +v3424 = function (resolvedArgs) { var searchStr = resolvedArgs[0]; var suffix = resolvedArgs[1]; return searchStr.indexOf(suffix, searchStr.length - suffix.length) !== -1; }; +const v3425 = {}; +v3425.constructor = v3424; +v3424.prototype = v3425; +v3404._functionEndsWith = v3424; +var v3426; +v3426 = function (resolvedArgs) { var typeName = this._getTypeName(resolvedArgs[0]); if (typeName === v3414) { + var originalStr = resolvedArgs[0]; + var reversedStr = \\"\\"; + for (var i = originalStr.length - 1; i >= 0; i--) { + reversedStr += originalStr[i]; + } + return reversedStr; +} +else { + var reversedArray = resolvedArgs[0].slice(0); + reversedArray.reverse(); + return reversedArray; +} }; +const v3427 = {}; +v3427.constructor = v3426; +v3426.prototype = v3427; +v3404._functionReverse = v3426; +var v3428; +var v3429 = v787; +v3428 = function (resolvedArgs) { return v3429.abs(resolvedArgs[0]); }; +const v3430 = {}; +v3430.constructor = v3428; +v3428.prototype = v3430; +v3404._functionAbs = v3428; +var v3431; +v3431 = function (resolvedArgs) { return v3429.ceil(resolvedArgs[0]); }; +const v3432 = {}; +v3432.constructor = v3431; +v3431.prototype = v3432; +v3404._functionCeil = v3431; +var v3433; +v3433 = function (resolvedArgs) { var sum = 0; var inputArray = resolvedArgs[0]; for (var i = 0; i < inputArray.length; i++) { + sum += inputArray[i]; +} return sum / inputArray.length; }; +const v3434 = {}; +v3434.constructor = v3433; +v3433.prototype = v3434; +v3404._functionAvg = v3433; +var v3435; +v3435 = function (resolvedArgs) { return resolvedArgs[0].indexOf(resolvedArgs[1]) >= 0; }; +const v3436 = {}; +v3436.constructor = v3435; +v3435.prototype = v3436; +v3404._functionContains = v3435; +var v3437; +v3437 = function (resolvedArgs) { return v3429.floor(resolvedArgs[0]); }; +const v3438 = {}; +v3438.constructor = v3437; +v3437.prototype = v3438; +v3404._functionFloor = v3437; +var v3439; +var v3441; +v3441 = function isObject(obj) { if (obj !== null) { + return v113.toString.call(obj) === \\"[object Object]\\"; +} +else { + return false; +} }; +const v3442 = {}; +v3442.constructor = v3441; +v3441.prototype = v3442; +var v3440 = v3441; +var v3443 = v31; +v3439 = function (resolvedArgs) { if (!v3440(resolvedArgs[0])) { + return resolvedArgs[0].length; +} +else { + return v3443.keys(resolvedArgs[0]).length; +} }; +const v3444 = {}; +v3444.constructor = v3439; +v3439.prototype = v3444; +v3404._functionLength = v3439; +var v3445; +v3445 = function (resolvedArgs) { var mapped = []; var interpreter = this._interpreter; var exprefNode = resolvedArgs[0]; var elements = resolvedArgs[1]; for (var i = 0; i < elements.length; i++) { + mapped.push(interpreter.visit(exprefNode, elements[i])); +} return mapped; }; +const v3446 = {}; +v3446.constructor = v3445; +v3445.prototype = v3446; +v3404._functionMap = v3445; +var v3447; +v3447 = function (resolvedArgs) { var merged = {}; for (var i = 0; i < resolvedArgs.length; i++) { + var current = resolvedArgs[i]; + for (var key in current) { + merged[key] = current[key]; + } +} return merged; }; +const v3448 = {}; +v3448.constructor = v3447; +v3447.prototype = v3448; +v3404._functionMerge = v3447; +var v3449; +v3449 = function (resolvedArgs) { if (resolvedArgs[0].length > 0) { + var typeName = this._getTypeName(resolvedArgs[0][0]); + if (typeName === v3413) { + return v3429.max.apply(v3429, resolvedArgs[0]); + } + else { + var elements = resolvedArgs[0]; + var maxElement = elements[0]; + for (var i = 1; i < elements.length; i++) { + if (maxElement.localeCompare(elements[i]) < 0) { + maxElement = elements[i]; + } } - } - describeEndpoints(args, optionsOrCb, cb) { - const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return maxElement; + } +} +else { + return null; +} }; +const v3450 = {}; +v3450.constructor = v3449; +v3449.prototype = v3450; +v3404._functionMax = v3449; +var v3451; +v3451 = function (resolvedArgs) { if (resolvedArgs[0].length > 0) { + var typeName = this._getTypeName(resolvedArgs[0][0]); + if (typeName === v3413) { + return v3429.min.apply(v3429, resolvedArgs[0]); + } + else { + var elements = resolvedArgs[0]; + var minElement = elements[0]; + for (var i = 1; i < elements.length; i++) { + if (elements[i].localeCompare(minElement) < 0) { + minElement = elements[i]; + } } - } - describeExport(args, optionsOrCb, cb) { - const command = new DescribeExportCommand_1.DescribeExportCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return minElement; + } +} +else { + return null; +} }; +const v3452 = {}; +v3452.constructor = v3451; +v3451.prototype = v3452; +v3404._functionMin = v3451; +var v3453; +v3453 = function (resolvedArgs) { var sum = 0; var listToSum = resolvedArgs[0]; for (var i = 0; i < listToSum.length; i++) { + sum += listToSum[i]; +} return sum; }; +const v3454 = {}; +v3454.constructor = v3453; +v3453.prototype = v3454; +v3404._functionSum = v3453; +var v3455; +v3455 = function (resolvedArgs) { switch (this._getTypeName(resolvedArgs[0])) { + case v3413: return \\"number\\"; + case v3414: return \\"string\\"; + case v3392: return \\"array\\"; + case v3402: return \\"object\\"; + case v3417: return \\"boolean\\"; + case v3420: return \\"expref\\"; + case v3418: return \\"null\\"; +} }; +const v3456 = {}; +v3456.constructor = v3455; +v3455.prototype = v3456; +v3404._functionType = v3455; +var v3457; +v3457 = function (resolvedArgs) { return v3443.keys(resolvedArgs[0]); }; +const v3458 = {}; +v3458.constructor = v3457; +v3457.prototype = v3458; +v3404._functionKeys = v3457; +var v3459; +v3459 = function (resolvedArgs) { var obj = resolvedArgs[0]; var keys = v3443.keys(obj); var values = []; for (var i = 0; i < keys.length; i++) { + values.push(obj[keys[i]]); +} return values; }; +const v3460 = {}; +v3460.constructor = v3459; +v3459.prototype = v3460; +v3404._functionValues = v3459; +var v3461; +v3461 = function (resolvedArgs) { var joinChar = resolvedArgs[0]; var listJoin = resolvedArgs[1]; return listJoin.join(joinChar); }; +const v3462 = {}; +v3462.constructor = v3461; +v3461.prototype = v3462; +v3404._functionJoin = v3461; +var v3463; +v3463 = function (resolvedArgs) { if (this._getTypeName(resolvedArgs[0]) === v3392) { + return resolvedArgs[0]; +} +else { + return [resolvedArgs[0]]; +} }; +const v3464 = {}; +v3464.constructor = v3463; +v3463.prototype = v3464; +v3404._functionToArray = v3463; +var v3465; +var v3466 = v163; +v3465 = function (resolvedArgs) { if (this._getTypeName(resolvedArgs[0]) === v3414) { + return resolvedArgs[0]; +} +else { + return v3466.stringify(resolvedArgs[0]); +} }; +const v3467 = {}; +v3467.constructor = v3465; +v3465.prototype = v3467; +v3404._functionToString = v3465; +var v3468; +var v3469 = v1017; +v3468 = function (resolvedArgs) { var typeName = this._getTypeName(resolvedArgs[0]); var convertedValue; if (typeName === v3413) { + return resolvedArgs[0]; +} +else if (typeName === v3414) { + convertedValue = +resolvedArgs[0]; + if (!v3469(convertedValue)) { + return convertedValue; + } +} return null; }; +const v3470 = {}; +v3470.constructor = v3468; +v3468.prototype = v3470; +v3404._functionToNumber = v3468; +var v3471; +v3471 = function (resolvedArgs) { for (var i = 0; i < resolvedArgs.length; i++) { + if (this._getTypeName(resolvedArgs[i]) !== v3418) { + return resolvedArgs[i]; + } +} return null; }; +const v3472 = {}; +v3472.constructor = v3471; +v3471.prototype = v3472; +v3404._functionNotNull = v3471; +var v3473; +v3473 = function (resolvedArgs) { var sortedArray = resolvedArgs[0].slice(0); sortedArray.sort(); return sortedArray; }; +const v3474 = {}; +v3474.constructor = v3473; +v3473.prototype = v3474; +v3404._functionSort = v3473; +var v3475; +v3475 = function (resolvedArgs) { var sortedArray = resolvedArgs[0].slice(0); if (sortedArray.length === 0) { + return sortedArray; +} var interpreter = this._interpreter; var exprefNode = resolvedArgs[1]; var requiredType = this._getTypeName(interpreter.visit(exprefNode, sortedArray[0])); if ([v3413, v3414].indexOf(requiredType) < 0) { + throw new v3287(\\"TypeError\\"); +} var that = this; var decorated = []; for (var i = 0; i < sortedArray.length; i++) { + decorated.push([i, sortedArray[i]]); +} decorated.sort(function (a, b) { var exprA = interpreter.visit(exprefNode, a[1]); var exprB = interpreter.visit(exprefNode, b[1]); if (that._getTypeName(exprA) !== requiredType) { + throw new v3287(\\"TypeError: expected \\" + requiredType + \\", received \\" + that._getTypeName(exprA)); +} +else if (that._getTypeName(exprB) !== requiredType) { + throw new v3287(\\"TypeError: expected \\" + requiredType + \\", received \\" + that._getTypeName(exprB)); +} if (exprA > exprB) { + return 1; +} +else if (exprA < exprB) { + return -1; +} +else { + return a[0] - b[0]; +} }); for (var j = 0; j < decorated.length; j++) { + sortedArray[j] = decorated[j][1]; +} return sortedArray; }; +const v3476 = {}; +v3476.constructor = v3475; +v3475.prototype = v3476; +v3404._functionSortBy = v3475; +var v3477; +var v3478 = Infinity; +v3477 = function (resolvedArgs) { var exprefNode = resolvedArgs[1]; var resolvedArray = resolvedArgs[0]; var keyFunction = this.createKeyFunction(exprefNode, [v3413, v3414]); var maxNumber = -v3478; var maxRecord; var current; for (var i = 0; i < resolvedArray.length; i++) { + current = keyFunction(resolvedArray[i]); + if (current > maxNumber) { + maxNumber = current; + maxRecord = resolvedArray[i]; + } +} return maxRecord; }; +const v3479 = {}; +v3479.constructor = v3477; +v3477.prototype = v3479; +v3404._functionMaxBy = v3477; +var v3480; +v3480 = function (resolvedArgs) { var exprefNode = resolvedArgs[1]; var resolvedArray = resolvedArgs[0]; var keyFunction = this.createKeyFunction(exprefNode, [v3413, v3414]); var minNumber = v3478; var minRecord; var current; for (var i = 0; i < resolvedArray.length; i++) { + current = keyFunction(resolvedArray[i]); + if (current < minNumber) { + minNumber = current; + minRecord = resolvedArray[i]; + } +} return minRecord; }; +const v3481 = {}; +v3481.constructor = v3480; +v3480.prototype = v3481; +v3404._functionMinBy = v3480; +var v3482; +v3482 = function (exprefNode, allowedTypes) { var that = this; var interpreter = this._interpreter; var keyFunc = function (x) { var current = interpreter.visit(exprefNode, x); if (allowedTypes.indexOf(that._getTypeName(current)) < 0) { + var msg = \\"TypeError: expected one of \\" + allowedTypes + \\", received \\" + that._getTypeName(current); + throw new v3287(msg); +} return current; }; return keyFunc; }; +const v3483 = {}; +v3483.constructor = v3482; +v3482.prototype = v3483; +v3404.createKeyFunction = v3482; +v3380.prototype = v3404; +var v3379 = v3380; +var v3485; +v3485 = function TreeInterpreter(runtime) { this.runtime = runtime; }; +const v3486 = {}; +var v3487; +v3487 = function (node, value) { return this.visit(node, value); }; +const v3488 = {}; +v3488.constructor = v3487; +v3487.prototype = v3488; +v3486.search = v3487; +var v3489; +var v3491; +v3491 = function isArray(obj) { if (obj !== null) { + return v113.toString.call(obj) === \\"[object Array]\\"; +} +else { + return false; +} }; +const v3492 = {}; +v3492.constructor = v3491; +v3491.prototype = v3492; +var v3490 = v3491; +var v3493 = undefined; +var v3494 = v3491; +var v3495 = undefined; +var v3496 = undefined; +var v3497 = undefined; +var v3498 = undefined; +var v3499 = undefined; +var v3500 = undefined; +var v3501 = undefined; +var v3503; +var v3504 = v31; +v3503 = function objValues(obj) { var keys = v3504.keys(obj); var values = []; for (var i = 0; i < keys.length; i++) { + values.push(obj[keys[i]]); +} return values; }; +const v3505 = {}; +v3505.constructor = v3503; +v3503.prototype = v3505; +var v3502 = v3503; +var v3506 = undefined; +var v3508; +var v3509 = v3491; +var v3510 = v3441; +v3508 = function isFalse(obj) { if (obj === \\"\\" || obj === false || obj === null) { + return true; +} +else if (v3509(obj) && obj.length === 0) { + return true; +} +else if (v3510(obj)) { + for (var key in obj) { + if (obj.hasOwnProperty(key)) { + return false; } - } - describeGlobalTable(args, optionsOrCb, cb) { - const command = new DescribeGlobalTableCommand_1.DescribeGlobalTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + return true; +} +else { + return false; +} }; +const v3511 = {}; +v3511.constructor = v3508; +v3508.prototype = v3511; +var v3507 = v3508; +var v3512 = undefined; +var v3513 = undefined; +var v3515; +const v3517 = console._stdout._writableState.afterWriteTickInfo.constructor.prototype.hasOwnProperty; +var v3516 = v3517; +var v3518 = v3517; +v3515 = function strictDeepEqual(first, second) { if (first === second) { + return true; +} var firstType = v113.toString.call(first); if (firstType !== v113.toString.call(second)) { + return false; +} if (v3509(first) === true) { + if (first.length !== second.length) { + return false; + } + for (var i = 0; i < first.length; i++) { + if (strictDeepEqual(first[i], second[i]) === false) { + return false; } - } - describeGlobalTableSettings(args, optionsOrCb, cb) { - const command = new DescribeGlobalTableSettingsCommand_1.DescribeGlobalTableSettingsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + return true; +} if (v3510(first) === true) { + var keysSeen = {}; + for (var key in first) { + if (v3516.call(first, key)) { + if (strictDeepEqual(first[key], second[key]) === false) { + return false; + } + keysSeen[key] = true; } - } - describeKinesisStreamingDestination(args, optionsOrCb, cb) { - const command = new DescribeKinesisStreamingDestinationCommand_1.DescribeKinesisStreamingDestinationCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + for (var key2 in second) { + if (v3518.call(second, key2)) { + if (keysSeen[key2] !== true) { + return false; + } } - } - describeLimits(args, optionsOrCb, cb) { - const command = new DescribeLimitsCommand_1.DescribeLimitsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + return true; +} return false; }; +const v3519 = {}; +v3519.constructor = v3515; +v3515.prototype = v3519; +var v3514 = v3515; +var v3520 = \\"NE\\"; +var v3521 = v3515; +var v3522 = \\"GT\\"; +var v3523 = \\"GTE\\"; +var v3524 = undefined; +var v3525 = undefined; +var v3526 = undefined; +var v3527 = undefined; +v3489 = function (node, value) { var matched, current, result, first, second, field, left, right, collected, i; switch (node.type) { + case \\"Field\\": + if (value !== null && v3440(value)) { + field = value[node.name]; + if (field === undefined) { + return null; + } + else { + return field; + } } - } - describeTable(args, optionsOrCb, cb) { - const command = new DescribeTableCommand_1.DescribeTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return null; + case \\"Subexpression\\": + result = this.visit(node.children[0], value); + for (i = 1; i < node.children.length; i++) { + result = this.visit(node.children[1], result); + if (result === null) { + return null; + } } - } - describeTableReplicaAutoScaling(args, optionsOrCb, cb) { - const command = new DescribeTableReplicaAutoScalingCommand_1.DescribeTableReplicaAutoScalingCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return result; + case \\"IndexExpression\\": + left = this.visit(node.children[0], value); + right = this.visit(node.children[1], left); + return right; + case \\"Index\\": + if (!v3490(value)) { + return null; + } + var index = node.value; + if (v3493 < 0) { + index = value.length + v3493; + } + result = value[v3493]; + if (result === undefined) { + result = null; } - } - describeTimeToLive(args, optionsOrCb, cb) { - const command = new DescribeTimeToLiveCommand_1.DescribeTimeToLiveCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return result; + case \\"Slice\\": + if (!v3494(value)) { + return null; + } + var sliceParams = node.children.slice(0); + var computed = this.computeSliceParams(value.length, v3495); + var start = v3496[0]; + var stop = v3496[1]; + var step = v3496[2]; + result = []; + if (v3497 > 0) { + for (i = v3498; i < v3499; i += v3497) { + result.push(value[i]); + } } - } - disableKinesisStreamingDestination(args, optionsOrCb, cb) { - const command = new DisableKinesisStreamingDestinationCommand_1.DisableKinesisStreamingDestinationCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else { + for (i = v3500; i > v3499; i += v3497) { + result.push(value[i]); + } } - } - enableKinesisStreamingDestination(args, optionsOrCb, cb) { - const command = new EnableKinesisStreamingDestinationCommand_1.EnableKinesisStreamingDestinationCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return result; + case \\"Projection\\": + var base = this.visit(node.children[0], value); + if (!v3490(v3501)) { + return null; + } + collected = []; + for (i = 0; i < undefined; i++) { + current = this.visit(node.children[1], v3501[i]); + if (current !== null) { + collected.push(current); + } } - } - executeStatement(args, optionsOrCb, cb) { - const command = new ExecuteStatementCommand_1.ExecuteStatementCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return collected; + case \\"ValueProjection\\": + base = this.visit(node.children[0], value); + if (!v3440(v3501)) { + return null; + } + collected = []; + var values = v3502(v3501); + for (i = 0; i < undefined; i++) { + current = this.visit(node.children[1], v3506[i]); + if (current !== null) { + collected.push(current); + } } - } - executeTransaction(args, optionsOrCb, cb) { - const command = new ExecuteTransactionCommand_1.ExecuteTransactionCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return collected; + case \\"FilterProjection\\": + base = this.visit(node.children[0], value); + if (!v3490(v3501)) { + return null; + } + var filtered = []; + var finalResults = []; + for (i = 0; i < undefined; i++) { + matched = this.visit(node.children[2], v3501[i]); + if (!v3507(matched)) { + undefined(v3501[i]); + } } - } - exportTableToPointInTime(args, optionsOrCb, cb) { - const command = new ExportTableToPointInTimeCommand_1.ExportTableToPointInTimeCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + for (var j = 0; j < undefined; j++) { + current = this.visit(node.children[1], v3512[j]); + if (current !== null) { + undefined(current); + } } - } - getItem(args, optionsOrCb, cb) { - const command = new GetItemCommand_1.GetItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return v3513; + case \\"Comparator\\": + first = this.visit(node.children[0], value); + second = this.visit(node.children[1], value); + switch (node.name) { + case v3342: + result = v3514(first, second); + break; + case v3520: + result = !v3521(first, second); + break; + case v3522: + result = first > second; + break; + case v3523: + result = first >= second; + break; + case v3267: + result = first < second; + break; + case v3266: + result = first <= second; + break; + default: throw new v3287(\\"Unknown comparator: \\" + node.name); } - } - listBackups(args, optionsOrCb, cb) { - const command = new ListBackupsCommand_1.ListBackupsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return result; + case v3260: + var original = this.visit(node.children[0], value); + if (!v3490(v3524)) { + return null; + } + var merged = []; + for (i = 0; i < undefined; i++) { + current = v3524[i]; + if (v3490(current)) { + undefined(v3525, current); + } + else { + undefined(current); + } } - } - listContributorInsights(args, optionsOrCb, cb) { - const command = new ListContributorInsightsCommand_1.ListContributorInsightsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return v3525; + case \\"Identity\\": return value; + case \\"MultiSelectList\\": + if (value === null) { + return null; } - } - listExports(args, optionsOrCb, cb) { - const command = new ListExportsCommand_1.ListExportsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + collected = []; + for (i = 0; i < node.children.length; i++) { + collected.push(this.visit(node.children[i], value)); } - } - listGlobalTables(args, optionsOrCb, cb) { - const command = new ListGlobalTablesCommand_1.ListGlobalTablesCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return collected; + case \\"MultiSelectHash\\": + if (value === null) { + return null; + } + collected = {}; + var child; + for (i = 0; i < node.children.length; i++) { + child = node.children[i]; + collected[undefined] = this.visit(undefined, value); + } + return collected; + case \\"OrExpression\\": + matched = this.visit(node.children[0], value); + if (v3507(matched)) { + matched = this.visit(node.children[1], value); + } + return matched; + case \\"AndExpression\\": + first = this.visit(node.children[0], value); + if (v3507(first) === true) { + return first; + } + return this.visit(node.children[1], value); + case \\"NotExpression\\": + first = this.visit(node.children[0], value); + return v3507(first); + case \\"Literal\\": return node.value; + case v3328: + left = this.visit(node.children[0], value); + return this.visit(node.children[1], left); + case v3319: return value; + case \\"Function\\": + var resolvedArgs = []; + for (i = 0; i < node.children.length; i++) { + undefined(this.visit(node.children[i], value)); + } + return this.runtime.callFunction(node.name, v3526); + case \\"ExpressionReference\\": + var refNode = node.children[0]; + undefined = v3419; + return v3527; + default: throw new v3287(\\"Unknown node type: \\" + node.type); +} }; +const v3528 = {}; +v3528.constructor = v3489; +v3489.prototype = v3528; +v3486.visit = v3489; +var v3529; +v3529 = function (arrayLength, sliceParams) { var start = sliceParams[0]; var stop = sliceParams[1]; var step = sliceParams[2]; var computed = [null, null, null]; if (step === null) { + step = 1; +} +else if (step === 0) { + var error = new v3287(\\"Invalid slice, step cannot be 0\\"); + error.name = \\"RuntimeError\\"; + throw error; +} var stepValueNegative = step < 0 ? true : false; if (start === null) { + start = stepValueNegative ? arrayLength - 1 : 0; +} +else { + start = this.capSliceRange(arrayLength, start, step); +} if (stop === null) { + stop = stepValueNegative ? -1 : arrayLength; +} +else { + stop = this.capSliceRange(arrayLength, stop, step); +} computed[0] = start; computed[1] = stop; computed[2] = step; return computed; }; +const v3530 = {}; +v3530.constructor = v3529; +v3529.prototype = v3530; +v3486.computeSliceParams = v3529; +var v3531; +v3531 = function (arrayLength, actualValue, step) { if (actualValue < 0) { + actualValue += arrayLength; + if (actualValue < 0) { + actualValue = step < 0 ? -1 : 0; + } +} +else if (actualValue >= arrayLength) { + actualValue = step < 0 ? arrayLength - 1 : arrayLength; +} return actualValue; }; +const v3532 = {}; +v3532.constructor = v3531; +v3531.prototype = v3532; +v3486.capSliceRange = v3531; +v3485.prototype = v3486; +var v3484 = v3485; +v3377 = function search(data, expression) { var parser = new v3378(); var runtime = new v3379(); var interpreter = new v3484(runtime); runtime._interpreter = interpreter; var node = parser.parse(expression); return interpreter.search(node, data); }; +const v3533 = {}; +v3533.constructor = v3377; +v3377.prototype = v3533; +v3214.search = v3377; +v3214.strictDeepEqual = v3515; +var v3213 = v3214; +v3211 = function eachItem(callback) { var self = this; function wrappedCallback(err, data) { if (err) + return callback(err, null); if (data === null) + return callback(null, null); var config = self.service.paginationConfig(self.operation); var resultKey = config.resultKey; if (v3212.isArray(resultKey)) + resultKey = resultKey[0]; var items = v3213.search(data, resultKey); var continueIteration = true; v3.arrayEach(items, function (item) { continueIteration = callback(null, item); if (continueIteration === false) { + return v111; +} }); return continueIteration; } this.eachPage(wrappedCallback); }; +const v3534 = {}; +v3534.constructor = v3211; +v3211.prototype = v3534; +v3199.eachItem = v3211; +var v3535; +v3535 = function isPageable() { return this.service.paginationConfig(this.operation) ? true : false; }; +const v3536 = {}; +v3536.constructor = v3535; +v3535.prototype = v3536; +v3199.isPageable = v3535; +var v3537; +var v3538 = v8; +var v3539 = v117; +var v3540 = v1017; +var v3541 = undefined; +var v3542 = v40; +var v3543 = undefined; +var v3544 = undefined; +v3537 = function createReadStream() { var streams = v3.stream; var req = this; var stream = null; if (2 === 2) { + stream = new streams.PassThrough(); + v3538.nextTick(function () { req.send(); }); +} +else { + stream = new streams.Stream(); + stream.readable = true; + stream.sent = false; + stream.on(\\"newListener\\", function (event) { if (!stream.sent && event === \\"data\\") { + stream.sent = true; + v3538.nextTick(function () { req.send(); }); + } }); +} this.on(\\"error\\", function (err) { stream.emit(\\"error\\", err); }); this.on(\\"httpHeaders\\", function streamHeaders(statusCode, headers, resp) { if (statusCode < 300) { + req.removeListener(\\"httpData\\", v428.HTTP_DATA); + req.removeListener(\\"httpError\\", undefined); + req.on(\\"httpError\\", function streamHttpError(error) { resp.error = error; resp.error.retryable = false; }); + var shouldCheckContentLength = false; + var expectedLen; + if (req.httpRequest.method !== \\"HEAD\\") { + expectedLen = v3539(headers[\\"content-length\\"], 10); + } + if (expectedLen !== undefined && !v3540(expectedLen) && expectedLen >= 0) { + shouldCheckContentLength = true; + var receivedLen = 0; + } + var checkContentLengthAndEmit = function checkContentLengthAndEmit() { if (shouldCheckContentLength && v3541 !== expectedLen) { + stream.emit(\\"error\\", v3.error(new v3542(\\"Stream content length mismatch. Received \\" + v3543 + \\" of \\" + expectedLen + \\" bytes.\\"), { code: \\"StreamContentLengthMismatch\\" })); + } + else if (2 === 2) { + stream.end(); + } + else { + stream.emit(\\"end\\"); + } }; + var httpStream = resp.httpResponse.createUnbufferedStream(); + if (2 === 2) { + if (shouldCheckContentLength) { + var lengthAccumulator = new streams.PassThrough(); + lengthAccumulator._write = function (chunk) { if (chunk && chunk.length) { + v3544 += chunk.length; + } return streams.PassThrough.prototype._write.apply(this, arguments); }; + lengthAccumulator.on(\\"end\\", checkContentLengthAndEmit); + stream.on(\\"error\\", function (err) { shouldCheckContentLength = false; httpStream.unpipe(lengthAccumulator); lengthAccumulator.emit(\\"end\\"); lengthAccumulator.end(); }); + httpStream.pipe(lengthAccumulator).pipe(stream, { end: false }); + } + else { + httpStream.pipe(stream); } - } - listTables(args, optionsOrCb, cb) { - const command = new ListTablesCommand_1.ListTablesCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + else { + if (shouldCheckContentLength) { + httpStream.on(\\"data\\", function (arg) { if (arg && arg.length) { + v3544 += arg.length; + } }); + } + httpStream.on(\\"data\\", function (arg) { stream.emit(\\"data\\", arg); }); + httpStream.on(\\"end\\", checkContentLengthAndEmit); + } + httpStream.on(\\"error\\", function (err) { shouldCheckContentLength = false; stream.emit(\\"error\\", err); }); +} }); return stream; }; +const v3545 = {}; +v3545.constructor = v3537; +v3537.prototype = v3545; +v3199.createReadStream = v3537; +var v3546; +v3546 = function emit(eventName, args, done) { if (typeof args === \\"function\\") { + done = args; + args = null; +} if (!done) + done = function () { }; if (!args) + args = this.eventParameters(eventName, this.response); var origEmit = v401.emit; origEmit.call(this, eventName, args, function (err) { if (err) + this.response.error = err; done.call(this, err); }); }; +const v3547 = {}; +v3547.constructor = v3546; +v3546.prototype = v3547; +v3199.emitEvent = v3546; +var v3548; +v3548 = function eventParameters(eventName) { switch (eventName) { + case \\"restart\\": + case \\"validate\\": + case \\"sign\\": + case \\"build\\": + case \\"afterValidate\\": + case \\"afterBuild\\": return [this]; + case \\"error\\": return [this.response.error, this.response]; + default: return [this.response]; +} }; +const v3549 = {}; +v3549.constructor = v3548; +v3548.prototype = v3549; +v3199.eventParameters = v3548; +var v3550; +v3550 = function presign(expires, callback) { if (!callback && typeof expires === \\"function\\") { + callback = expires; + expires = null; +} return new v450.Presign().sign(this.toGet(), expires, callback); }; +const v3551 = {}; +v3551.constructor = v3550; +v3550.prototype = v3551; +v3199.presign = v3550; +var v3552; +v3552 = function isPresigned() { return v113.hasOwnProperty.call(this.httpRequest.headers, \\"presigned-expires\\"); }; +const v3553 = {}; +v3553.constructor = v3552; +v3552.prototype = v3553; +v3199.isPresigned = v3552; +var v3554; +v3554 = function toUnauthenticated() { this._unAuthenticated = true; this.removeListener(\\"validate\\", v428.VALIDATE_CREDENTIALS); this.removeListener(\\"sign\\", v428.SIGN); return this; }; +const v3555 = {}; +v3555.constructor = v3554; +v3554.prototype = v3555; +v3199.toUnauthenticated = v3554; +var v3556; +v3556 = function toGet() { if (this.service.api.protocol === \\"query\\" || this.service.api.protocol === \\"ec2\\") { + this.removeListener(\\"build\\", this.buildAsGet); + this.addListener(\\"build\\", this.buildAsGet); +} return this; }; +const v3557 = {}; +v3557.constructor = v3556; +v3556.prototype = v3557; +v3199.toGet = v3556; +var v3558; +v3558 = function buildAsGet(request) { request.httpRequest.method = \\"GET\\"; request.httpRequest.path = request.service.endpoint.path + \\"?\\" + request.httpRequest.body; request.httpRequest.body = \\"\\"; delete request.httpRequest.headers[\\"Content-Length\\"]; delete request.httpRequest.headers[\\"Content-Type\\"]; }; +const v3559 = {}; +v3559.constructor = v3558; +v3558.prototype = v3559; +v3199.buildAsGet = v3558; +var v3560; +v3560 = function haltHandlersOnError() { this._haltHandlersOnError = true; }; +const v3561 = {}; +v3561.constructor = v3560; +v3560.prototype = v3561; +v3199.haltHandlersOnError = v3560; +var v3562; +var v3563 = v244; +var v3564 = v31; +v3562 = function promise() { var self = this; this.httpRequest.appendToUserAgent(\\"promise\\"); return new v3563(function (resolve, reject) { self.on(\\"complete\\", function (resp) { if (resp.error) { + reject(resp.error); +} +else { + resolve(v3564.defineProperty(resp.data || {}, \\"$response\\", { value: resp })); +} }); self.runTo(); }); }; +const v3565 = {}; +v3565.constructor = v3562; +v3562.prototype = v3565; +v3199.promise = v3562; +v3199.listeners = v403; +v3199.on = v405; +v3199.onAsync = v407; +v3199.removeListener = v409; +v3199.removeAllListeners = v411; +v3199.emit = v413; +v3199.callListeners = v415; +v3199.addListeners = v418; +v3199.addNamedListener = v420; +v3199.addNamedAsyncListener = v422; +v3199.addNamedListeners = v424; +v3199.addListener = v405; +v3163.prototype = v3199; +v3163.__super__ = v31; +var v3566; +var v3567 = v31; +v3566 = function addPromisesToClass(PromiseDependency) { this.prototype.promise = function promise() { var self = this; this.httpRequest.appendToUserAgent(\\"promise\\"); return new PromiseDependency(function (resolve, reject) { self.on(\\"complete\\", function (resp) { if (resp.error) { + reject(resp.error); +} +else { + resolve(v3567.defineProperty(resp.data || {}, \\"$response\\", { value: resp })); +} }); self.runTo(); }); }; }; +const v3568 = {}; +v3568.constructor = v3566; +v3566.prototype = v3568; +v3163.addPromisesToClass = v3566; +var v3569; +v3569 = function deletePromisesFromClass() { delete this.prototype.promise; }; +const v3570 = {}; +v3570.constructor = v3569; +v3569.prototype = v3570; +v3163.deletePromisesFromClass = v3569; +v2.Request = v3163; +var v3571; +var v3572 = v2; +v3571 = function Response(request) { this.request = request; this.data = null; this.error = null; this.retryCount = 0; this.redirectCount = 0; this.httpResponse = new v3572.HttpResponse(); if (request) { + this.maxRetries = request.service.numRetries(); + this.maxRedirects = request.service.config.maxRedirects; +} }; +const v3573 = {}; +v3573.constructor = v3571; +var v3574; +v3574 = function nextPage(callback) { var config; var service = this.request.service; var operation = this.request.operation; try { + config = service.paginationConfig(operation, true); +} +catch (e) { + this.error = e; +} if (!this.hasNextPage()) { + if (callback) + callback(this.error, null); + else if (this.error) + throw this.error; + return null; +} var params = v3.copy(this.request.params); if (!this.nextPageTokens) { + return callback ? callback(null, null) : null; +} +else { + var inputTokens = config.inputToken; + if (typeof inputTokens === \\"string\\") + inputTokens = [inputTokens]; + for (var i = 0; i < inputTokens.length; i++) { + params[inputTokens[i]] = this.nextPageTokens[i]; + } + return service.makeRequest(this.request.operation, params, callback); +} }; +const v3575 = {}; +v3575.constructor = v3574; +v3574.prototype = v3575; +v3573.nextPage = v3574; +var v3576; +v3576 = function hasNextPage() { this.cacheNextPageTokens(); if (this.nextPageTokens) + return true; if (this.nextPageTokens === undefined) + return undefined; +else + return false; }; +const v3577 = {}; +v3577.constructor = v3576; +v3576.prototype = v3577; +v3573.hasNextPage = v3576; +var v3578; +var v3579 = v3214; +var v3580 = v3214; +v3578 = function cacheNextPageTokens() { if (v113.hasOwnProperty.call(this, \\"nextPageTokens\\")) + return this.nextPageTokens; this.nextPageTokens = undefined; var config = this.request.service.paginationConfig(this.request.operation); if (!config) + return this.nextPageTokens; this.nextPageTokens = null; if (config.moreResults) { + if (!v3579.search(this.data, config.moreResults)) { + return this.nextPageTokens; + } +} var exprs = config.outputToken; if (typeof exprs === \\"string\\") + exprs = [exprs]; v3.arrayEach.call(this, exprs, function (expr) { var output = v3580.search(this.data, expr); if (output) { + this.nextPageTokens = this.nextPageTokens || []; + this.nextPageTokens.push(output); +} }); return this.nextPageTokens; }; +const v3581 = {}; +v3581.constructor = v3578; +v3578.prototype = v3581; +v3573.cacheNextPageTokens = v3578; +v3571.prototype = v3573; +v3571.__super__ = v31; +v2.Response = v3571; +var v3582; +v3582 = function constructor(service, state) { this.service = service; this.state = state; this.loadWaiterConfig(this.state); }; +const v3583 = {}; +v3583.constructor = v3582; +v3583.service = null; +v3583.state = null; +v3583.config = null; +const v3584 = {}; +var v3585; +var v3586 = v3214; +var v3587 = v3214; +var v3588 = undefined; +v3585 = function (resp, expected, argument) { try { + var result = v3586.search(resp.data, argument); +} +catch (err) { + return false; +} return v3587.strictDeepEqual(v3588, expected); }; +const v3589 = {}; +v3589.constructor = v3585; +v3585.prototype = v3589; +v3584.path = v3585; +var v3590; +var v3591 = v33; +var v3592 = undefined; +var v3593 = undefined; +var v3594 = undefined; +v3590 = function (resp, expected, argument) { try { + var results = v3587.search(resp.data, argument); +} +catch (err) { + return false; +} if (!v3591.isArray(v3592)) + results = [v3593]; var numResults = undefined; if (!numResults) + return false; for (var ind = 0; ind < numResults; ind++) { + if (!v3587.strictDeepEqual(v3594[ind], expected)) { + return false; + } +} return true; }; +const v3595 = {}; +v3595.constructor = v3590; +v3590.prototype = v3595; +v3584.pathAll = v3590; +var v3596; +var v3597 = v3214; +var v3598 = v33; +var v3599 = undefined; +var v3600 = v3214; +var v3601 = undefined; +v3596 = function (resp, expected, argument) { try { + var results = v3597.search(resp.data, argument); +} +catch (err) { + return false; +} if (!v3598.isArray(v3599)) + results = [v3599]; var numResults = undefined; for (var ind = 0; ind < numResults; ind++) { + if (v3600.strictDeepEqual(v3601[ind], expected)) { + return true; + } +} return false; }; +const v3602 = {}; +v3602.constructor = v3596; +v3596.prototype = v3602; +v3584.pathAny = v3596; +var v3603; +v3603 = function (resp, expected) { var statusCode = resp.httpResponse.statusCode; return (typeof statusCode === \\"number\\") && (statusCode === expected); }; +const v3604 = {}; +v3604.constructor = v3603; +v3603.prototype = v3604; +v3584.status = v3603; +var v3605; +v3605 = function (resp, expected) { if (typeof expected === \\"string\\" && resp.error) { + return expected === resp.error.code; +} return expected === !!resp.error; }; +const v3606 = {}; +v3606.constructor = v3605; +v3605.prototype = v3606; +v3584.error = v3605; +v3583.matchers = v3584; +const v3607 = Object.create(v401); +const v3608 = {}; +const v3609 = []; +var v3610; +v3610 = function (resp) { var waiter = resp.request._waiter; if (resp.error && resp.error.code === \\"ResourceNotReady\\") { + resp.error.retryDelay = (waiter.config.delay || 0) * 1000; +} }; +const v3611 = {}; +v3611.constructor = v3610; +v3610.prototype = v3611; +v3609.push(v3610); +v3608.retry = v3609; +const v3612 = []; +var v3613; +v3613 = function CHECK_ACCEPTORS(resp) { var waiter = resp.request._waiter; var acceptors = waiter.config.acceptors; var acceptorMatched = false; var state = \\"retry\\"; acceptors.forEach(function (acceptor) { if (!acceptorMatched) { + var matcher = waiter.matchers[acceptor.matcher]; + if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) { + acceptorMatched = true; + state = acceptor.state; + } +} }); if (!acceptorMatched && resp.error) + state = \\"failure\\"; if (state === \\"success\\") { + waiter.setSuccess(resp); +} +else { + waiter.setError(resp, state === \\"retry\\"); +} }; +const v3614 = {}; +v3614.constructor = v3613; +v3613.prototype = v3614; +v3612.push(v3613); +v3608.extractData = v3612; +const v3615 = []; +v3615.push(v3613); +v3608.extractError = v3615; +v3607._events = v3608; +v3607.RETRY_CHECK = v3610; +v3607.CHECK_OUTPUT = v3613; +v3607.CHECK_ERROR = v3613; +v3583.listeners = v3607; +var v3616; +v3616 = function wait(params, callback) { if (typeof params === \\"function\\") { + callback = params; + params = undefined; +} if (params && params.$waiter) { + params = v3.copy(params); + if (typeof params.$waiter.delay === \\"number\\") { + this.config.delay = params.$waiter.delay; + } + if (typeof params.$waiter.maxAttempts === \\"number\\") { + this.config.maxAttempts = params.$waiter.maxAttempts; + } + delete params.$waiter; +} var request = this.service.makeRequest(this.config.operation, params); request._waiter = this; request.response.maxRetries = this.config.maxAttempts; request.addListeners(this.listeners); if (callback) + request.send(callback); return request; }; +const v3617 = {}; +v3617.constructor = v3616; +v3616.prototype = v3617; +v3583.wait = v3616; +var v3618; +v3618 = function setSuccess(resp) { resp.error = null; resp.data = resp.data || {}; resp.request.removeAllListeners(\\"extractData\\"); }; +const v3619 = {}; +v3619.constructor = v3618; +v3618.prototype = v3619; +v3583.setSuccess = v3618; +var v3620; +var v3621 = v40; +v3620 = function setError(resp, retryable) { resp.data = null; resp.error = v3.error(resp.error || new v3621(), { code: \\"ResourceNotReady\\", message: \\"Resource is not in the state \\" + this.state, retryable: retryable }); }; +const v3622 = {}; +v3622.constructor = v3620; +v3620.prototype = v3622; +v3583.setError = v3620; +var v3623; +var v3624 = v40; +v3623 = function loadWaiterConfig(state) { if (!this.service.api.waiters[state]) { + throw new v3.error(new v3624(), { code: \\"StateNotFoundError\\", message: \\"State \\" + state + \\" not found.\\" }); +} this.config = v3.copy(this.service.api.waiters[state]); }; +const v3625 = {}; +v3625.constructor = v3623; +v3623.prototype = v3625; +v3583.loadWaiterConfig = v3623; +v3582.prototype = v3583; +v3582.__super__ = v31; +v2.ResourceWaiter = v3582; +var v3626; +v3626 = function ParamValidator(validation) { if (validation === true || validation === undefined) { + validation = { \\"min\\": true }; +} this.validation = validation; }; +const v3627 = {}; +v3627.constructor = v3626; +var v3628; +var v3629 = v40; +v3628 = function validate(shape, params, context) { this.errors = []; this.validateMember(shape, params || {}, context || \\"params\\"); if (this.errors.length > 1) { + var msg = this.errors.join(\\"\\\\n* \\"); + msg = \\"There were \\" + this.errors.length + \\" validation errors:\\\\n* \\" + msg; + throw v3.error(new v3629(msg), { code: \\"MultipleValidationErrors\\", errors: this.errors }); +} +else if (this.errors.length === 1) { + throw this.errors[0]; +} +else { + return true; +} }; +const v3630 = {}; +v3630.constructor = v3628; +v3628.prototype = v3630; +v3627.validate = v3628; +var v3631; +var v3632 = v40; +v3631 = function fail(code, message) { this.errors.push(v3.error(new v3632(message), { code: code })); }; +const v3633 = {}; +v3633.constructor = v3631; +v3631.prototype = v3633; +v3627.fail = v3631; +var v3634; +v3634 = function validateStructure(shape, params, context) { if (shape.isDocument) + return true; this.validateType(params, context, [\\"object\\"], \\"structure\\"); var paramName; for (var i = 0; shape.required && i < shape.required.length; i++) { + paramName = shape.required[i]; + var value = params[paramName]; + if (value === undefined || value === null) { + this.fail(\\"MissingRequiredParameter\\", \\"Missing required key '\\" + paramName + \\"' in \\" + context); + } +} for (paramName in params) { + if (!v113.hasOwnProperty.call(params, paramName)) + continue; + var paramValue = params[paramName], memberShape = shape.members[paramName]; + if (memberShape !== undefined) { + var memberContext = [context, paramName].join(\\".\\"); + this.validateMember(memberShape, paramValue, memberContext); + } + else if (paramValue !== undefined && paramValue !== null) { + this.fail(\\"UnexpectedParameter\\", \\"Unexpected key '\\" + paramName + \\"' found in \\" + context); + } +} return true; }; +const v3635 = {}; +v3635.constructor = v3634; +v3634.prototype = v3635; +v3627.validateStructure = v3634; +var v3636; +v3636 = function validateMember(shape, param, context) { switch (shape.type) { + case \\"structure\\": return this.validateStructure(shape, param, context); + case \\"list\\": return this.validateList(shape, param, context); + case \\"map\\": return this.validateMap(shape, param, context); + default: return this.validateScalar(shape, param, context); +} }; +const v3637 = {}; +v3637.constructor = v3636; +v3636.prototype = v3637; +v3627.validateMember = v3636; +var v3638; +var v3639 = v33; +v3638 = function validateList(shape, params, context) { if (this.validateType(params, context, [v3639])) { + this.validateRange(shape, params.length, context, \\"list member count\\"); + for (var i = 0; i < params.length; i++) { + this.validateMember(shape.member, params[i], context + \\"[\\" + i + \\"]\\"); + } +} }; +const v3640 = {}; +v3640.constructor = v3638; +v3638.prototype = v3640; +v3627.validateList = v3638; +var v3641; +v3641 = function validateMap(shape, params, context) { if (this.validateType(params, context, [\\"object\\"], \\"map\\")) { + var mapCount = 0; + for (var param in params) { + if (!v113.hasOwnProperty.call(params, param)) + continue; + this.validateMember(shape.key, param, context + \\"[key='\\" + param + \\"']\\"); + this.validateMember(shape.value, params[param], context + \\"['\\" + param + \\"']\\"); + mapCount++; + } + this.validateRange(shape, mapCount, context, \\"map member count\\"); +} }; +const v3642 = {}; +v3642.constructor = v3641; +v3641.prototype = v3642; +v3627.validateMap = v3641; +var v3643; +var v3644 = v77; +v3643 = function validateScalar(shape, value, context) { switch (shape.type) { + case null: + case undefined: + case \\"string\\": return this.validateString(shape, value, context); + case \\"base64\\": + case \\"binary\\": return this.validatePayload(value, context); + case \\"integer\\": + case \\"float\\": return this.validateNumber(shape, value, context); + case \\"boolean\\": return this.validateType(value, context, [\\"boolean\\"]); + case \\"timestamp\\": return this.validateType(value, context, [v3644, /^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z$/, \\"number\\"], \\"Date object, ISO-8601 string, or a UNIX timestamp\\"); + default: return this.fail(\\"UnkownType\\", \\"Unhandled type \\" + shape.type + \\" for \\" + context); +} }; +const v3645 = {}; +v3645.constructor = v3643; +v3643.prototype = v3645; +v3627.validateScalar = v3643; +var v3646; +v3646 = function validateString(shape, value, context) { var validTypes = [\\"string\\"]; if (shape.isJsonValue) { + validTypes = validTypes.concat([\\"number\\", \\"object\\", \\"boolean\\"]); +} if (value !== null && this.validateType(value, context, validTypes)) { + this.validateEnum(shape, value, context); + this.validateRange(shape, value.length, context, \\"string length\\"); + this.validatePattern(shape, value, context); + this.validateUri(shape, value, context); +} }; +const v3647 = {}; +v3647.constructor = v3646; +v3646.prototype = v3647; +v3627.validateString = v3646; +var v3648; +v3648 = function validateUri(shape, value, context) { if (shape[\\"location\\"] === \\"uri\\") { + if (value.length === 0) { + this.fail(\\"UriParameterError\\", \\"Expected uri parameter to have length >= 1,\\" + \\" but found \\\\\\"\\" + value + \\"\\\\\\" for \\" + context); + } +} }; +const v3649 = {}; +v3649.constructor = v3648; +v3648.prototype = v3649; +v3627.validateUri = v3648; +var v3650; +var v3651 = v373; +v3650 = function validatePattern(shape, value, context) { if (this.validation[\\"pattern\\"] && shape[\\"pattern\\"] !== undefined) { + if (!(new v3651(shape[\\"pattern\\"])).test(value)) { + this.fail(\\"PatternMatchError\\", \\"Provided value \\\\\\"\\" + value + \\"\\\\\\" \\" + \\"does not match regex pattern /\\" + shape[\\"pattern\\"] + \\"/ for \\" + context); + } +} }; +const v3652 = {}; +v3652.constructor = v3650; +v3650.prototype = v3652; +v3627.validatePattern = v3650; +var v3653; +v3653 = function validateRange(shape, value, context, descriptor) { if (this.validation[\\"min\\"]) { + if (shape[\\"min\\"] !== undefined && value < shape[\\"min\\"]) { + this.fail(\\"MinRangeError\\", \\"Expected \\" + descriptor + \\" >= \\" + shape[\\"min\\"] + \\", but found \\" + value + \\" for \\" + context); + } +} if (this.validation[\\"max\\"]) { + if (shape[\\"max\\"] !== undefined && value > shape[\\"max\\"]) { + this.fail(\\"MaxRangeError\\", \\"Expected \\" + descriptor + \\" <= \\" + shape[\\"max\\"] + \\", but found \\" + value + \\" for \\" + context); + } +} }; +const v3654 = {}; +v3654.constructor = v3653; +v3653.prototype = v3654; +v3627.validateRange = v3653; +var v3655; +v3655 = function validateRange(shape, value, context) { if (this.validation[\\"enum\\"] && shape[\\"enum\\"] !== undefined) { + if (shape[\\"enum\\"].indexOf(value) === -1) { + this.fail(\\"EnumError\\", \\"Found string value of \\" + value + \\", but \\" + \\"expected \\" + shape[\\"enum\\"].join(\\"|\\") + \\" for \\" + context); + } +} }; +const v3656 = {}; +v3656.constructor = v3655; +v3655.prototype = v3656; +v3627.validateEnum = v3655; +var v3657; +var v3658 = v373; +v3657 = function validateType(value, context, acceptedTypes, type) { if (value === null || value === undefined) + return false; var foundInvalidType = false; for (var i = 0; i < acceptedTypes.length; i++) { + if (typeof acceptedTypes[i] === \\"string\\") { + if (typeof value === acceptedTypes[i]) + return true; + } + else if (acceptedTypes[i] instanceof v3658) { + if ((value || \\"\\").toString().match(acceptedTypes[i])) + return true; + } + else { + if (value instanceof acceptedTypes[i]) + return true; + if (v3.isType(value, acceptedTypes[i])) + return true; + if (!type && !foundInvalidType) + acceptedTypes = acceptedTypes.slice(); + acceptedTypes[i] = v3.typeName(acceptedTypes[i]); + } + foundInvalidType = true; +} var acceptedType = type; if (!acceptedType) { + acceptedType = acceptedTypes.join(\\", \\").replace(/,([^,]+)$/, \\", or$1\\"); +} var vowel = acceptedType.match(/^[aeiou]/i) ? \\"n\\" : \\"\\"; this.fail(\\"InvalidParameterType\\", \\"Expected \\" + context + \\" to be a\\" + vowel + \\" \\" + acceptedType); return false; }; +const v3659 = {}; +v3659.constructor = v3657; +v3657.prototype = v3659; +v3627.validateType = v3657; +var v3660; +var v3661 = v912; +v3660 = function validateNumber(shape, value, context) { if (value === null || value === undefined) + return; if (typeof value === \\"string\\") { + var castedValue = v3661(value); + if (castedValue.toString() === value) + value = castedValue; +} if (this.validateType(value, context, [\\"number\\"])) { + this.validateRange(shape, value, context, \\"numeric value\\"); +} }; +const v3662 = {}; +v3662.constructor = v3660; +v3660.prototype = v3662; +v3627.validateNumber = v3660; +var v3663; +var v3664 = undefined; +var v3665 = undefined; +v3663 = function validatePayload(value, context) { if (value === null || value === undefined) + return; if (typeof value === \\"string\\") + return; if (value && typeof value.byteLength === \\"number\\") + return; if (v3.isNode()) { + var Stream = v3.stream.Stream; + if (v3.Buffer.isBuffer(value) || value instanceof Stream) + return; +} +else { + if (typeof v3664 !== void 0 && value instanceof v3665) + return; +} var types = [\\"Buffer\\", \\"Stream\\", \\"File\\", \\"Blob\\", \\"ArrayBuffer\\", \\"DataView\\"]; if (value) { + for (var i = 0; i < types.length; i++) { + if (v3.isType(value, types[i])) + return; + if (v3.typeName(value.constructor) === types[i]) + return; + } +} this.fail(\\"InvalidParameterType\\", \\"Expected \\" + context + \\" to be a \\" + \\"string, Buffer, Stream, Blob, or typed array object\\"); }; +const v3666 = {}; +v3666.constructor = v3663; +v3663.prototype = v3666; +v3627.validatePayload = v3663; +v3626.prototype = v3627; +v3626.__super__ = v31; +v2.ParamValidator = v3626; +v2.events = v426; +v2.IniLoader = v181; +v2.STS = v297; +var v3667; +var v3668 = v2; +v3667 = function TemporaryCredentials(params, masterCredentials) { v3668.Credentials.call(this); this.loadMasterCredentials(masterCredentials); this.expired = true; this.params = params || {}; if (this.params.RoleArn) { + this.params.RoleSessionName = this.params.RoleSessionName || \\"temporary-credentials\\"; +} }; +const v3669 = Object.create(v252); +v3669.constructor = v3667; +var v3670; +v3670 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3671 = {}; +v3671.constructor = v3670; +v3670.prototype = v3671; +v3669.refresh = v3670; +var v3672; +v3672 = function load(callback) { var self = this; self.createClients(); self.masterCredentials.get(function () { self.service.config.credentials = self.masterCredentials; var operation = self.params.RoleArn ? self.service.assumeRole : self.service.getSessionToken; operation.call(self.service, function (err, data) { if (!err) { + self.service.credentialsFrom(data, self); +} callback(err); }); }); }; +const v3673 = {}; +v3673.constructor = v3672; +v3672.prototype = v3673; +v3669.load = v3672; +var v3674; +var v3675 = v2; +v3674 = function loadMasterCredentials(masterCredentials) { this.masterCredentials = masterCredentials || v2582; while (this.masterCredentials.masterCredentials) { + this.masterCredentials = this.masterCredentials.masterCredentials; +} if (typeof this.masterCredentials.get !== \\"function\\") { + this.masterCredentials = new v3675.Credentials(this.masterCredentials); +} }; +const v3676 = {}; +v3676.constructor = v3674; +v3674.prototype = v3676; +v3669.loadMasterCredentials = v3674; +var v3677; +var v3678 = v297; +v3677 = function () { this.service = this.service || new v3678({ params: this.params }); }; +const v3679 = {}; +v3679.constructor = v3677; +v3677.prototype = v3679; +v3669.createClients = v3677; +v3667.prototype = v3669; +v3667.__super__ = v253; +v2.TemporaryCredentials = v3667; +var v3680; +var v3681 = v2; +var v3682 = v40; +var v3683 = v297; +v3680 = function ChainableTemporaryCredentials(options) { v3681.Credentials.call(this); options = options || {}; this.errorCode = \\"ChainableTemporaryCredentialsProviderFailure\\"; this.expired = true; this.tokenCodeFn = null; var params = v3.copy(options.params) || {}; if (params.RoleArn) { + params.RoleSessionName = params.RoleSessionName || \\"temporary-credentials\\"; +} if (params.SerialNumber) { + if (!options.tokenCodeFn || (typeof options.tokenCodeFn !== \\"function\\")) { + throw new v3.error(new v3682(\\"tokenCodeFn must be a function when params.SerialNumber is given\\"), { code: this.errorCode }); + } + else { + this.tokenCodeFn = options.tokenCodeFn; + } +} var config = v3.merge({ params: params, credentials: options.masterCredentials || v2582 }, options.stsConfig || {}); this.service = new v3683(config); }; +const v3684 = Object.create(v252); +v3684.constructor = v3680; +var v3685; +v3685 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3686 = {}; +v3686.constructor = v3685; +v3685.prototype = v3686; +v3684.refresh = v3685; +var v3687; +v3687 = function load(callback) { var self = this; var operation = self.service.config.params.RoleArn ? \\"assumeRole\\" : \\"getSessionToken\\"; this.getTokenCode(function (err, tokenCode) { var params = {}; if (err) { + callback(err); + return; +} if (tokenCode) { + params.TokenCode = tokenCode; +} self.service[operation](params, function (err, data) { if (!err) { + self.service.credentialsFrom(data, self); +} callback(err); }); }); }; +const v3688 = {}; +v3688.constructor = v3687; +v3687.prototype = v3688; +v3684.load = v3687; +var v3689; +var v3690 = v40; +var v3691 = v40; +v3689 = function getTokenCode(callback) { var self = this; if (this.tokenCodeFn) { + this.tokenCodeFn(this.service.config.params.SerialNumber, function (err, token) { if (err) { + var message = err; + if (err instanceof v3690) { + message = err.message; + } + callback(v3.error(new v3691(\\"Error fetching MFA token: \\" + message), { code: self.errorCode })); + return; + } callback(null, token); }); +} +else { + callback(null); +} }; +const v3692 = {}; +v3692.constructor = v3689; +v3689.prototype = v3692; +v3684.getTokenCode = v3689; +v3680.prototype = v3684; +v3680.__super__ = v253; +v2.ChainableTemporaryCredentials = v3680; +var v3693; +var v3694 = v2; +v3693 = function WebIdentityCredentials(params, clientConfig) { v3694.Credentials.call(this); this.expired = true; this.params = params; this.params.RoleSessionName = this.params.RoleSessionName || \\"web-identity\\"; this.data = null; this._clientConfig = v3.copy(clientConfig || {}); }; +const v3695 = Object.create(v252); +v3695.constructor = v3693; +var v3696; +v3696 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3697 = {}; +v3697.constructor = v3696; +v3696.prototype = v3697; +v3695.refresh = v3696; +var v3698; +v3698 = function load(callback) { var self = this; self.createClients(); self.service.assumeRoleWithWebIdentity(function (err, data) { self.data = null; if (!err) { + self.data = data; + self.service.credentialsFrom(data, self); +} callback(err); }); }; +const v3699 = {}; +v3699.constructor = v3698; +v3698.prototype = v3699; +v3695.load = v3698; +var v3700; +var v3701 = v297; +v3700 = function () { if (!this.service) { + var stsConfig = v3.merge({}, this._clientConfig); + stsConfig.params = this.params; + this.service = new v3701(stsConfig); +} }; +const v3702 = {}; +v3702.constructor = v3700; +v3700.prototype = v3702; +v3695.createClients = v3700; +v3693.prototype = v3695; +v3693.__super__ = v253; +v2.WebIdentityCredentials = v3693; +var v3703; +var v3704 = v299; +var v3705 = v31; +v3703 = function () { if (v3704 !== v3705) { + return v3704.apply(this, arguments); +} }; +const v3706 = Object.create(v309); +v3706.constructor = v3703; +const v3707 = {}; +const v3708 = []; +var v3709; +var v3710 = v3706; +v3709 = function EVENTS_BUBBLE(event) { var baseClass = v387.getPrototypeOf(v3710); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v3711 = {}; +v3711.constructor = v3709; +v3709.prototype = v3711; +v3708.push(v3709); +v3707.apiCallAttempt = v3708; +const v3712 = []; +var v3713; +v3713 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v388.getPrototypeOf(v3710); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v3714 = {}; +v3714.constructor = v3713; +v3713.prototype = v3714; +v3712.push(v3713); +v3707.apiCall = v3712; +v3706._events = v3707; +v3706.MONITOR_EVENTS_BUBBLE = v3709; +v3706.CALL_EVENTS_BUBBLE = v3713; +v3703.prototype = v3706; +v3703.__super__ = v299; +const v3715 = {}; +v3715[\\"2014-06-30\\"] = null; +v3703.services = v3715; +const v3716 = []; +v3716.push(\\"2014-06-30\\"); +v3703.apiVersions = v3716; +v3703.serviceIdentifier = \\"cognitoidentity\\"; +v2.CognitoIdentity = v3703; +var v3717; +var v3718 = v2; +var v3719 = v31; +v3717 = function CognitoIdentityCredentials(params, clientConfig) { v3718.Credentials.call(this); this.expired = true; this.params = params; this.data = null; this._identityId = null; this._clientConfig = v3.copy(clientConfig || {}); this.loadCachedId(); var self = this; v3719.defineProperty(this, \\"identityId\\", { get: function () { self.loadCachedId(); return self._identityId || self.params.IdentityId; }, set: function (identityId) { self._identityId = identityId; } }); }; +const v3720 = Object.create(v252); +const v3721 = {}; +v3721.id = \\"aws.cognito.identity-id.\\"; +v3721.providers = \\"aws.cognito.identity-providers.\\"; +v3720.localStorageKey = v3721; +v3720.constructor = v3717; +var v3722; +v3722 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3723 = {}; +v3723.constructor = v3722; +v3722.prototype = v3723; +v3720.refresh = v3722; +var v3724; +v3724 = function load(callback) { var self = this; self.createClients(); self.data = null; self._identityId = null; self.getId(function (err) { if (!err) { + if (!self.params.RoleArn) { + self.getCredentialsForIdentity(callback); + } + else { + self.getCredentialsFromSTS(callback); + } +} +else { + self.clearIdOnNotAuthorized(err); + callback(err); +} }); }; +const v3725 = {}; +v3725.constructor = v3724; +v3724.prototype = v3725; +v3720.load = v3724; +var v3726; +v3726 = function clearCache() { this._identityId = null; delete this.params.IdentityId; var poolId = this.params.IdentityPoolId; var loginId = this.params.LoginId || \\"\\"; delete this.storage[this.localStorageKey.id + poolId + loginId]; delete this.storage[this.localStorageKey.providers + poolId + loginId]; }; +const v3727 = {}; +v3727.constructor = v3726; +v3726.prototype = v3727; +v3720.clearCachedId = v3726; +var v3728; +v3728 = function clearIdOnNotAuthorized(err) { var self = this; if (err.code == \\"NotAuthorizedException\\") { + self.clearCachedId(); +} }; +const v3729 = {}; +v3729.constructor = v3728; +v3728.prototype = v3729; +v3720.clearIdOnNotAuthorized = v3728; +var v3730; +v3730 = function getId(callback) { var self = this; if (typeof self.params.IdentityId === \\"string\\") { + return callback(null, self.params.IdentityId); +} self.cognito.getId(function (err, data) { if (!err && data.IdentityId) { + self.params.IdentityId = data.IdentityId; + callback(null, data.IdentityId); +} +else { + callback(err); +} }); }; +const v3731 = {}; +v3731.constructor = v3730; +v3730.prototype = v3731; +v3720.getId = v3730; +var v3732; +v3732 = function loadCredentials(data, credentials) { if (!data || !credentials) + return; credentials.expired = false; credentials.accessKeyId = data.Credentials.AccessKeyId; credentials.secretAccessKey = data.Credentials.SecretKey; credentials.sessionToken = data.Credentials.SessionToken; credentials.expireTime = data.Credentials.Expiration; }; +const v3733 = {}; +v3733.constructor = v3732; +v3732.prototype = v3733; +v3720.loadCredentials = v3732; +var v3734; +v3734 = function getCredentialsForIdentity(callback) { var self = this; self.cognito.getCredentialsForIdentity(function (err, data) { if (!err) { + self.cacheId(data); + self.data = data; + self.loadCredentials(self.data, self); +} +else { + self.clearIdOnNotAuthorized(err); +} callback(err); }); }; +const v3735 = {}; +v3735.constructor = v3734; +v3734.prototype = v3735; +v3720.getCredentialsForIdentity = v3734; +var v3736; +v3736 = function getCredentialsFromSTS(callback) { var self = this; self.cognito.getOpenIdToken(function (err, data) { if (!err) { + self.cacheId(data); + self.params.WebIdentityToken = data.Token; + self.webIdentityCredentials.refresh(function (webErr) { if (!webErr) { + self.data = self.webIdentityCredentials.data; + self.sts.credentialsFrom(self.data, self); + } callback(webErr); }); +} +else { + self.clearIdOnNotAuthorized(err); + callback(err); +} }); }; +const v3737 = {}; +v3737.constructor = v3736; +v3736.prototype = v3737; +v3720.getCredentialsFromSTS = v3736; +var v3738; +var v3739 = v31; +v3738 = function loadCachedId() { var self = this; if (v3.isBrowser() && !self.params.IdentityId) { + var id = self.getStorage(\\"id\\"); + if (id && self.params.Logins) { + var actualProviders = v3739.keys(self.params.Logins); + var cachedProviders = (self.getStorage(\\"providers\\") || \\"\\").split(\\",\\"); + var intersect = cachedProviders.filter(function (n) { return actualProviders.indexOf(n) !== -1; }); + if (intersect.length !== 0) { + self.params.IdentityId = id; } - } - listTagsOfResource(args, optionsOrCb, cb) { - const command = new ListTagsOfResourceCommand_1.ListTagsOfResourceCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + else if (id) { + self.params.IdentityId = id; + } +} }; +const v3740 = {}; +v3740.constructor = v3738; +v3738.prototype = v3740; +v3720.loadCachedId = v3738; +var v3741; +var v3742 = v2; +var v3743 = v3703; +var v3744 = v297; +v3741 = function () { var clientConfig = this._clientConfig; this.webIdentityCredentials = this.webIdentityCredentials || new v3742.WebIdentityCredentials(this.params, clientConfig); if (!this.cognito) { + var cognitoConfig = v3.merge({}, clientConfig); + cognitoConfig.params = this.params; + this.cognito = new v3743(cognitoConfig); +} this.sts = this.sts || new v3744(clientConfig); }; +const v3745 = {}; +v3745.constructor = v3741; +v3741.prototype = v3745; +v3720.createClients = v3741; +var v3746; +var v3747 = v31; +v3746 = function cacheId(data) { this._identityId = data.IdentityId; this.params.IdentityId = this._identityId; if (v3.isBrowser()) { + this.setStorage(\\"id\\", data.IdentityId); + if (this.params.Logins) { + this.setStorage(\\"providers\\", v3747.keys(this.params.Logins).join(\\",\\")); + } +} }; +const v3748 = {}; +v3748.constructor = v3746; +v3746.prototype = v3748; +v3720.cacheId = v3746; +var v3749; +v3749 = function getStorage(key) { return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || \\"\\")]; }; +const v3750 = {}; +v3750.constructor = v3749; +v3749.prototype = v3750; +v3720.getStorage = v3749; +var v3751; +v3751 = function setStorage(key, val) { try { + this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || \\"\\")] = val; +} +catch (_) { } }; +const v3752 = {}; +v3752.constructor = v3751; +v3751.prototype = v3752; +v3720.setStorage = v3751; +const v3753 = {}; +v3720.storage = v3753; +v3717.prototype = v3720; +v3717.__super__ = v253; +v2.CognitoIdentityCredentials = v3717; +var v3754; +var v3755 = v2; +v3754 = function SAMLCredentials(params) { v3755.Credentials.call(this); this.expired = true; this.params = params; }; +const v3756 = Object.create(v252); +v3756.constructor = v3754; +var v3757; +v3757 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3758 = {}; +v3758.constructor = v3757; +v3757.prototype = v3758; +v3756.refresh = v3757; +var v3759; +v3759 = function load(callback) { var self = this; self.createClients(); self.service.assumeRoleWithSAML(function (err, data) { if (!err) { + self.service.credentialsFrom(data, self); +} callback(err); }); }; +const v3760 = {}; +v3760.constructor = v3759; +v3759.prototype = v3760; +v3756.load = v3759; +var v3761; +var v3762 = v297; +v3761 = function () { this.service = this.service || new v3762({ params: this.params }); }; +const v3763 = {}; +v3763.constructor = v3761; +v3761.prototype = v3763; +v3756.createClients = v3761; +v3754.prototype = v3756; +v3754.__super__ = v253; +v2.SAMLCredentials = v3754; +var v3764; +var v3765 = v2; +var v3766 = v8; +v3764 = function ProcessCredentials(options) { v3765.Credentials.call(this); options = options || {}; this.filename = options.filename; this.profile = options.profile || v3766.env.AWS_PROFILE || \\"default\\"; this.get(options.callback || v65.noop); }; +const v3767 = Object.create(v252); +v3767.constructor = v3764; +var v3768; +var v3769 = v200; +var v3770 = v31; +var v3771 = v40; +var v3772 = v77; +var v3773 = v40; +v3768 = function load(callback) { var self = this; try { + var profiles = v3.getProfilesFromSharedConfig(v3769, this.filename); + var profile = profiles[this.profile] || {}; + if (v3770.keys(profile).length === 0) { + throw v3.error(new v3771(\\"Profile \\" + this.profile + \\" not found\\"), { code: \\"ProcessCredentialsProviderFailure\\" }); + } + if (profile[\\"credential_process\\"]) { + this.loadViaCredentialProcess(profile, function (err, data) { if (err) { + callback(err, null); + } + else { + self.expired = false; + self.accessKeyId = data.AccessKeyId; + self.secretAccessKey = data.SecretAccessKey; + self.sessionToken = data.SessionToken; + if (data.Expiration) { + self.expireTime = new v3772(data.Expiration); + } + callback(null); + } }); + } + else { + throw v3.error(new v3773(\\"Profile \\" + this.profile + \\" did not include credential process\\"), { code: \\"ProcessCredentialsProviderFailure\\" }); + } +} +catch (err) { + callback(err); +} }; +const v3774 = {}; +v3774.constructor = v3768; +v3768.prototype = v3774; +v3767.load = v3768; +var v3775; +const v3777 = require(\\"child_process\\"); +var v3776 = v3777; +var v3778 = v8; +var v3779 = v40; +var v3780 = v163; +var v3781 = v77; +var v3782 = v40; +var v3783 = v40; +v3775 = function loadViaCredentialProcess(profile, callback) { v3776.exec(profile[\\"credential_process\\"], { env: v3778.env }, function (err, stdOut, stdErr) { if (err) { + callback(v3.error(new v3779(\\"credential_process returned error\\"), { code: \\"ProcessCredentialsProviderFailure\\" }), null); +} +else { + try { + var credData = v3780.parse(stdOut); + if (credData.Expiration) { + var currentTime = v73.getDate(); + var expireTime = new v3781(credData.Expiration); + if (expireTime < currentTime) { + throw v3782(\\"credential_process returned expired credentials\\"); + } } - } - putItem(args, optionsOrCb, cb) { - const command = new PutItemCommand_1.PutItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + if (credData.Version !== 1) { + throw v3779(\\"credential_process does not return Version == 1\\"); } - } - query(args, optionsOrCb, cb) { - const command = new QueryCommand_1.QueryCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + callback(null, credData); + } + catch (err) { + callback(v3.error(new v3783(err.message), { code: \\"ProcessCredentialsProviderFailure\\" }), null); + } +} }); }; +const v3784 = {}; +v3784.constructor = v3775; +v3775.prototype = v3784; +v3767.loadViaCredentialProcess = v3775; +var v3785; +var v3786 = v200; +v3785 = function refresh(callback) { v3786.clearCachedFiles(); this.coalesceRefresh(callback || v65.callback); }; +const v3787 = {}; +v3787.constructor = v3785; +v3785.prototype = v3787; +v3767.refresh = v3785; +v3764.prototype = v3767; +v3764.__super__ = v253; +v2.ProcessCredentials = v3764; +v2.NodeHttpClient = v3152; +var v3788; +var v3789 = v2; +v3788 = function TokenFileWebIdentityCredentials(clientConfig) { v3789.Credentials.call(this); this.data = null; this.clientConfig = v3.copy(clientConfig || {}); }; +const v3790 = Object.create(v252); +v3790.constructor = v3788; +var v3791; +var v3792 = v8; +var v3793 = v8; +var v3794 = v8; +var v3795 = v8; +v3791 = function getParamsFromEnv() { var ENV_TOKEN_FILE = \\"AWS_WEB_IDENTITY_TOKEN_FILE\\", ENV_ROLE_ARN = \\"AWS_ROLE_ARN\\"; if (v3792.env[ENV_TOKEN_FILE] && v3793.env[ENV_ROLE_ARN]) { + return [{ envTokenFile: v3794.env[ENV_TOKEN_FILE], roleArn: v3795.env[ENV_ROLE_ARN], roleSessionName: v3795.env[\\"AWS_ROLE_SESSION_NAME\\"] }]; +} }; +const v3796 = {}; +v3796.constructor = v3791; +v3791.prototype = v3796; +v3790.getParamsFromEnv = v3791; +var v3797; +var v3798 = v200; +var v3799 = v31; +var v3800 = v40; +v3797 = function getParamsFromSharedConfig() { var profiles = v3.getProfilesFromSharedConfig(v3798); var profileName = v3793.env.AWS_PROFILE || \\"default\\"; var profile = profiles[profileName] || {}; if (v3799.keys(profile).length === 0) { + throw v3.error(new v3800(\\"Profile \\" + profileName + \\" not found\\"), { code: \\"TokenFileWebIdentityCredentialsProviderFailure\\" }); +} var paramsArray = []; while (!profile[\\"web_identity_token_file\\"] && profile[\\"source_profile\\"]) { + paramsArray.unshift({ roleArn: profile[\\"role_arn\\"], roleSessionName: profile[\\"role_session_name\\"] }); + var sourceProfile = profile[\\"source_profile\\"]; + profile = profiles[sourceProfile]; +} paramsArray.unshift({ envTokenFile: profile[\\"web_identity_token_file\\"], roleArn: profile[\\"role_arn\\"], roleSessionName: profile[\\"role_session_name\\"] }); return paramsArray; }; +const v3801 = {}; +v3801.constructor = v3797; +v3797.prototype = v3801; +v3790.getParamsFromSharedConfig = v3797; +var v3802; +v3802 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3803 = {}; +v3803.constructor = v3802; +v3802.prototype = v3803; +v3790.refresh = v3802; +var v3804; +v3804 = function assumeRoleChaining(paramsArray, callback) { var self = this; if (paramsArray.length === 0) { + self.service.credentialsFrom(self.data, self); + callback(); +} +else { + var params = paramsArray.shift(); + self.service.config.credentials = self.service.credentialsFrom(self.data, self); + self.service.assumeRole({ RoleArn: params.roleArn, RoleSessionName: params.roleSessionName || \\"token-file-web-identity\\" }, function (err, data) { self.data = null; if (err) { + callback(err); + } + else { + self.data = data; + self.assumeRoleChaining(paramsArray, callback); + } }); +} }; +const v3805 = {}; +v3805.constructor = v3804; +v3804.prototype = v3805; +v3790.assumeRoleChaining = v3804; +var v3806; +const v3808 = require(\\"fs\\"); +var v3807 = v3808; +v3806 = function load(callback) { var self = this; try { + var paramsArray = self.getParamsFromEnv(); + if (!paramsArray) { + paramsArray = self.getParamsFromSharedConfig(); + } + if (paramsArray) { + var params = paramsArray.shift(); + var oidcToken = v3807.readFileSync(params.envTokenFile, { encoding: \\"ascii\\" }); + if (!self.service) { + self.createClients(); + } + self.service.assumeRoleWithWebIdentity({ WebIdentityToken: oidcToken, RoleArn: params.roleArn, RoleSessionName: params.roleSessionName || \\"token-file-web-identity\\" }, function (err, data) { self.data = null; if (err) { + callback(err); + } + else { + self.data = data; + self.assumeRoleChaining(paramsArray, callback); + } }); + } +} +catch (err) { + callback(err); +} }; +const v3809 = {}; +v3809.constructor = v3806; +v3806.prototype = v3809; +v3790.load = v3806; +var v3810; +var v3811 = v297; +v3810 = function () { if (!this.service) { + var stsConfig = v3.merge({}, this.clientConfig); + this.service = new v3811(stsConfig); + this.service.retryableError = function (error) { if (error.code === \\"IDPCommunicationErrorException\\" || error.code === \\"InvalidIdentityToken\\") { + return true; + } + else { + return v309.retryableError.call(this, error); + } }; +} }; +const v3812 = {}; +v3812.constructor = v3810; +v3810.prototype = v3812; +v3790.createClients = v3810; +v3788.prototype = v3790; +v3788.__super__ = v253; +v2.TokenFileWebIdentityCredentials = v3788; +var v3813; +v3813 = function MetadataService(options) { if (options && options.host) { + options.endpoint = \\"http://\\" + options.host; + delete options.host; +} v3.update(this, options); }; +const v3814 = {}; +v3814.endpoint = \\"http://169.254.169.254\\"; +const v3815 = {}; +v3815.timeout = 0; +v3814.httpOptions = v3815; +v3814.disableFetchToken = false; +v3814.constructor = v3813; +var v3816; +var v3817 = v8; +var v3818 = v40; +const v3820 = URL; +var v3819 = v3820; +var v3821 = v3820; +var v3822 = v2; +v3816 = function request(path, options, callback) { if (arguments.length === 2) { + callback = options; + options = {}; +} if (v3817.env[\\"AWS_EC2_METADATA_DISABLED\\"]) { + callback(new v3818(\\"EC2 Instance Metadata Service access disabled\\")); + return; +} path = path || \\"/\\"; if (v3819) { + new v3821(this.endpoint); +} var httpRequest = new v3822.HttpRequest(this.endpoint + path); httpRequest.method = options.method || \\"GET\\"; if (options.headers) { + httpRequest.headers = options.headers; +} v3.handleRequestWithRetries(httpRequest, this, callback); }; +const v3823 = {}; +v3823.constructor = v3816; +v3816.prototype = v3823; +v3814.request = v3816; +const v3824 = []; +v3824.push(); +v3814.loadCredentialsCallbacks = v3824; +var v3825; +v3825 = function fetchMetadataToken(callback) { var self = this; var tokenFetchPath = \\"/latest/api/token\\"; self.request(tokenFetchPath, { \\"method\\": \\"PUT\\", \\"headers\\": { \\"x-aws-ec2-metadata-token-ttl-seconds\\": \\"21600\\" } }, callback); }; +const v3826 = {}; +v3826.constructor = v3825; +v3825.prototype = v3826; +v3814.fetchMetadataToken = v3825; +var v3827; +var v3828 = v163; +v3827 = function fetchCredentials(options, cb) { var self = this; var basePath = \\"/latest/meta-data/iam/security-credentials/\\"; self.request(basePath, options, function (err, roleName) { if (err) { + self.disableFetchToken = !(err.statusCode === 401); + cb(v3.error(err, { message: \\"EC2 Metadata roleName request returned error\\" })); + return; +} roleName = roleName.split(\\"\\\\n\\")[0]; self.request(basePath + roleName, options, function (credErr, credData) { if (credErr) { + self.disableFetchToken = !(credErr.statusCode === 401); + cb(v3.error(credErr, { message: \\"EC2 Metadata creds request returned error\\" })); + return; +} try { + var credentials = v3828.parse(credData); + cb(null, credentials); +} +catch (parseError) { + cb(parseError); +} }); }); }; +const v3829 = {}; +v3829.constructor = v3827; +v3827.prototype = v3829; +v3814.fetchCredentials = v3827; +var v3830; +v3830 = function loadCredentials(callback) { var self = this; self.loadCredentialsCallbacks.push(callback); if (self.loadCredentialsCallbacks.length > 1) { + return; +} function callbacks(err, creds) { var cb; while ((cb = self.loadCredentialsCallbacks.shift()) !== undefined) { + cb(err, creds); +} } if (self.disableFetchToken) { + self.fetchCredentials({}, callbacks); +} +else { + self.fetchMetadataToken(function (tokenError, token) { if (tokenError) { + if (tokenError.code === \\"TimeoutError\\") { + self.disableFetchToken = true; + } + else if (tokenError.retryable === true) { + callbacks(v3.error(tokenError, { message: \\"EC2 Metadata token request returned error\\" })); + return; } - } - restoreTableFromBackup(args, optionsOrCb, cb) { - const command = new RestoreTableFromBackupCommand_1.RestoreTableFromBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else if (tokenError.statusCode === 400) { + callbacks(v3.error(tokenError, { message: \\"EC2 Metadata token request returned 400\\" })); + return; } - } - restoreTableToPointInTime(args, optionsOrCb, cb) { - const command = new RestoreTableToPointInTimeCommand_1.RestoreTableToPointInTimeCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } var options = {}; if (token) { + options.headers = { \\"x-aws-ec2-metadata-token\\": token }; + } self.fetchCredentials(options, callbacks); }); +} }; +const v3831 = {}; +v3831.constructor = v3830; +v3830.prototype = v3831; +v3814.loadCredentials = v3830; +v3813.prototype = v3814; +v3813.__super__ = v31; +v2.MetadataService = v3813; +var v3832; +var v3833 = v2; +var v3834 = v2; +v3832 = function EC2MetadataCredentials(options) { v3833.Credentials.call(this); options = options ? v3.copy(options) : {}; options = v3.merge({ maxRetries: this.defaultMaxRetries }, options); if (!options.httpOptions) + options.httpOptions = {}; options.httpOptions = v3.merge({ timeout: this.defaultTimeout, connectTimeout: this.defaultConnectTimeout }, options.httpOptions); this.metadataService = new v3834.MetadataService(options); this.logger = options.logger || v251 && null; }; +const v3835 = Object.create(v252); +v3835.constructor = v3832; +v3835.defaultTimeout = 1000; +v3835.defaultConnectTimeout = 1000; +v3835.defaultMaxRetries = 3; +v3835.originalExpiration = undefined; +var v3836; +v3836 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3837 = {}; +v3837.constructor = v3836; +v3836.prototype = v3837; +v3835.refresh = v3836; +var v3838; +v3838 = function load(callback) { var self = this; self.metadataService.loadCredentials(function (err, creds) { if (err) { + if (self.hasLoadedCredentials()) { + self.extendExpirationIfExpired(); + callback(); + } + else { + callback(err); + } +} +else { + self.setCredentials(creds); + self.extendExpirationIfExpired(); + callback(); +} }); }; +const v3839 = {}; +v3839.constructor = v3838; +v3838.prototype = v3839; +v3835.load = v3838; +var v3840; +v3840 = function hasLoadedCredentials() { return this.AccessKeyId && this.secretAccessKey; }; +const v3841 = {}; +v3841.constructor = v3840; +v3840.prototype = v3841; +v3835.hasLoadedCredentials = v3840; +var v3842; +var v3843 = v787; +var v3844 = v787; +var v3845 = v77; +v3842 = function extendExpirationIfExpired() { if (this.needsRefresh()) { + this.originalExpiration = this.originalExpiration || this.expireTime; + this.expired = false; + var nextTimeout = 15 * 60 + v3843.floor(v3844.random() * 5 * 60); + var currentTime = v73.getDate().getTime(); + this.expireTime = new v3845(currentTime + nextTimeout * 1000); + this.logger.warn(\\"Attempting credential expiration extension due to a \\" + \\"credential service availability issue. A refresh of these \\" + \\"credentials will be attempted again at \\" + this.expireTime + \\"\\\\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\\"); +} }; +const v3846 = {}; +v3846.constructor = v3842; +v3842.prototype = v3846; +v3835.extendExpirationIfExpired = v3842; +var v3847; +var v3848 = v77; +v3847 = function setCredentials(creds) { var currentTime = v73.getDate().getTime(); var expireTime = new v3848(creds.Expiration); this.expired = currentTime >= expireTime ? true : false; this.metadata = creds; this.accessKeyId = creds.AccessKeyId; this.secretAccessKey = creds.SecretAccessKey; this.sessionToken = creds.Token; this.expireTime = expireTime; }; +const v3849 = {}; +v3849.constructor = v3847; +v3847.prototype = v3849; +v3835.setCredentials = v3847; +v3832.prototype = v3835; +v3832.__super__ = v253; +v2.EC2MetadataCredentials = v3832; +var v3850; +var v3851 = v2; +v3850 = function RemoteCredentials(options) { v3851.Credentials.call(this); options = options ? v3.copy(options) : {}; if (!options.httpOptions) + options.httpOptions = {}; options.httpOptions = v3.merge(this.httpOptions, options.httpOptions); v3.update(this, options); }; +const v3852 = Object.create(v252); +v3852.constructor = v3850; +const v3853 = {}; +v3853.timeout = 1000; +v3852.httpOptions = v3853; +v3852.maxRetries = 3; +var v3854; +var v3855 = v282; +var v3856 = v8; +var v3857 = v8; +var v3858 = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; +var v3859 = v8; +var v3860 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; +v3854 = function isConfiguredForEcsCredentials() { return v3855(v3856 && v3856.env && (v3857.env[v3858] || v3859.env[v3860])); }; +const v3861 = {}; +v3861.constructor = v3854; +v3854.prototype = v3861; +v3852.isConfiguredForEcsCredentials = v3854; +var v3862; +var v3863 = v8; +var v3864 = v8; +var v3865 = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; +var v3866 = v8; +var v3867 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; +var v3868 = \\"169.254.170.2\\"; +const v3870 = []; +v3870.push(\\"http:\\", \\"https:\\"); +var v3869 = v3870; +var v3871 = v40; +var v3872 = v3870; +const v3874 = []; +v3874.push(\\"https:\\"); +var v3873 = v3874; +const v3876 = []; +v3876.push(\\"localhost\\", \\"127.0.0.1\\"); +var v3875 = v3876; +var v3877 = v40; +var v3878 = v3876; +var v3879 = v40; +var v3880 = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; +var v3881 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; +var v3882 = v40; +v3862 = function getECSFullUri() { if (v3857 && v3863.env) { + var relative = v3864.env[v3865], full = v3866.env[v3867]; + if (relative) { + return \\"http://\\" + v3868 + relative; + } + else if (full) { + var parsed = v3.urlParse(full); + if (v3869.indexOf(parsed.protocol) < 0) { + throw v3.error(new v3871(\\"Unsupported protocol: AWS.RemoteCredentials supports \\" + v3872.join(\\",\\") + \\" only; \\" + parsed.protocol + \\" requested.\\"), { code: \\"ECSCredentialsProviderFailure\\" }); } - } - scan(args, optionsOrCb, cb) { - const command = new ScanCommand_1.ScanCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + if (v3873.indexOf(parsed.protocol) < 0 && v3875.indexOf(parsed.hostname) < 0) { + throw v3.error(new v3877(\\"Unsupported hostname: AWS.RemoteCredentials only supports \\" + v3878.join(\\",\\") + \\" for \\" + parsed.protocol + \\"; \\" + parsed.protocol + \\"//\\" + parsed.hostname + \\" requested.\\"), { code: \\"ECSCredentialsProviderFailure\\" }); } - } - tagResource(args, optionsOrCb, cb) { - const command = new TagResourceCommand_1.TagResourceCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return full; + } + else { + throw v3.error(new v3879(\\"Variable \\" + v3880 + \\" or \\" + v3881 + \\" must be set to use AWS.RemoteCredentials.\\"), { code: \\"ECSCredentialsProviderFailure\\" }); + } +} +else { + throw v3.error(new v3882(\\"No process info available\\"), { code: \\"ECSCredentialsProviderFailure\\" }); +} }; +const v3883 = {}; +v3883.constructor = v3862; +v3862.prototype = v3883; +v3852.getECSFullUri = v3862; +var v3884; +var v3885 = v8; +var v3886 = v8; +var v3887 = v8; +var v3888 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; +var v3889 = \\"AWS_CONTAINER_AUTHORIZATION_TOKEN\\"; +v3884 = function getECSAuthToken() { if (v3885 && v3886.env && v3887.env[v3888]) { + return v3885.env[v3889]; +} }; +const v3890 = {}; +v3890.constructor = v3884; +v3884.prototype = v3890; +v3852.getECSAuthToken = v3884; +var v3891; +v3891 = function credsFormatIsValid(credData) { return (!!credData.accessKeyId && !!credData.secretAccessKey && !!credData.sessionToken && !!credData.expireTime); }; +const v3892 = {}; +v3892.constructor = v3891; +v3891.prototype = v3892; +v3852.credsFormatIsValid = v3891; +var v3893; +var v3894 = v77; +v3893 = function formatCreds(credData) { if (!!credData.credentials) { + credData = credData.credentials; +} return { expired: false, accessKeyId: credData.accessKeyId || credData.AccessKeyId, secretAccessKey: credData.secretAccessKey || credData.SecretAccessKey, sessionToken: credData.sessionToken || credData.Token, expireTime: new v3894(credData.expiration || credData.Expiration) }; }; +const v3895 = {}; +v3895.constructor = v3893; +v3893.prototype = v3895; +v3852.formatCreds = v3893; +var v3896; +var v3897 = v2; +v3896 = function request(url, callback) { var httpRequest = new v3897.HttpRequest(url); httpRequest.method = \\"GET\\"; httpRequest.headers.Accept = \\"application/json\\"; var token = this.getECSAuthToken(); if (token) { + httpRequest.headers.Authorization = token; +} v3.handleRequestWithRetries(httpRequest, this, callback); }; +const v3898 = {}; +v3898.constructor = v3896; +v3896.prototype = v3898; +v3852.request = v3896; +var v3899; +v3899 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; +const v3900 = {}; +v3900.constructor = v3899; +v3899.prototype = v3900; +v3852.refresh = v3899; +var v3901; +var v3902 = v163; +var v3903 = v40; +var v3904 = undefined; +v3901 = function load(callback) { var self = this; var fullUri; try { + fullUri = this.getECSFullUri(); +} +catch (err) { + callback(err); + return; +} this.request(fullUri, function (err, data) { if (!err) { + try { + data = v3902.parse(data); + var creds = self.formatCreds(data); + if (!self.credsFormatIsValid(creds)) { + throw v3.error(new v3903(\\"Response data is not in valid format\\"), { code: \\"ECSCredentialsProviderFailure\\" }); + } + v3.update(self, creds); + } + catch (dataError) { + err = dataError; + } +} callback(err, v3904); }); }; +const v3905 = {}; +v3905.constructor = v3901; +v3901.prototype = v3905; +v3852.load = v3901; +v3850.prototype = v3852; +v3850.__super__ = v253; +v2.RemoteCredentials = v3850; +v2.ECSCredentials = v3850; +var v3906; +var v3907 = v2; +v3906 = function EnvironmentCredentials(envPrefix) { v3907.Credentials.call(this); this.envPrefix = envPrefix; this.get(function () { }); }; +const v3908 = Object.create(v252); +v3908.constructor = v3906; +var v3909; +var v3910 = v8; +var v3911 = v8; +var v3912 = v40; +var v3913 = v8; +var v3914 = v2; +v3909 = function refresh(callback) { if (!callback) + callback = v65.callback; if (!v3910 || !v3911.env) { + callback(v3.error(new v3912(\\"No process info or environment variables available\\"), { code: \\"EnvironmentCredentialsProviderFailure\\" })); + return; +} var keys = [\\"ACCESS_KEY_ID\\", \\"SECRET_ACCESS_KEY\\", \\"SESSION_TOKEN\\"]; var values = []; for (var i = 0; i < keys.length; i++) { + var prefix = \\"\\"; + if (this.envPrefix) + prefix = this.envPrefix + \\"_\\"; + values[i] = v3913.env[prefix + keys[i]]; + if (!values[i] && keys[i] !== \\"SESSION_TOKEN\\") { + callback(v3.error(new v3912(\\"Variable \\" + prefix + keys[i] + \\" not set.\\"), { code: \\"EnvironmentCredentialsProviderFailure\\" })); + return; + } +} this.expired = false; v3914.Credentials.apply(this, values); callback(); }; +const v3915 = {}; +v3915.constructor = v3909; +v3909.prototype = v3915; +v3908.refresh = v3909; +v3906.prototype = v3908; +v3906.__super__ = v253; +v2.EnvironmentCredentials = v3906; +var v3916; +var v3917 = v2; +v3916 = function FileSystemCredentials(filename) { v3917.Credentials.call(this); this.filename = filename; this.get(function () { }); }; +const v3918 = Object.create(v252); +v3918.constructor = v3916; +var v3919; +var v3920 = v163; +var v3921 = v2; +var v3922 = v40; +v3919 = function refresh(callback) { if (!callback) + callback = v65.callback; try { + var creds = v3920.parse(v3.readFileSync(this.filename)); + v3921.Credentials.call(this, creds); + if (!this.accessKeyId || !this.secretAccessKey) { + throw v3.error(new v3922(\\"Credentials not set in \\" + this.filename), { code: \\"FileSystemCredentialsProviderFailure\\" }); + } + this.expired = false; + callback(); +} +catch (err) { + callback(err); +} }; +const v3923 = {}; +v3923.constructor = v3919; +v3919.prototype = v3923; +v3918.refresh = v3919; +v3916.prototype = v3918; +v3916.__super__ = v253; +v2.FileSystemCredentials = v3916; +v2.SharedIniFileCredentials = v278; +var v3924; +var v3925 = v2; +var v3926 = v8; +v3924 = function SsoCredentials(options) { v3925.Credentials.call(this); options = options || {}; this.errorCode = \\"SsoCredentialsProviderFailure\\"; this.expired = true; this.filename = options.filename; this.profile = options.profile || v3926.env.AWS_PROFILE || \\"default\\"; this.service = options.ssoClient; this.get(options.callback || v65.noop); }; +const v3927 = Object.create(v252); +v3927.constructor = v3924; +var v3928; +var v3929 = v200; +var v3930 = v31; +var v3931 = v40; +var v3932 = v40; +var v3933 = v96; +var v3934 = v192; +var v3935 = v200; +var v3936 = v163; +var v3937 = v40; +var v3938 = v40; +var v3939 = v77; +var v3940 = v40; +var v3941 = v2; +var v3942 = v40; +var v3943 = v77; +v3928 = function load(callback) { var EXPIRE_WINDOW_MS = 15 * 60 * 1000; var self = this; try { + var profiles = v3.getProfilesFromSharedConfig(v3929, this.filename); + var profile = profiles[this.profile] || {}; + if (v3930.keys(profile).length === 0) { + throw v3.error(new v3931(\\"Profile \\" + this.profile + \\" not found\\"), { code: self.errorCode }); + } + if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) { + throw v3.error(new v3932(\\"Profile \\" + this.profile + \\" does not have valid SSO credentials. Required parameters \\\\\\"sso_account_id\\\\\\", \\\\\\"sso_region\\\\\\", \\" + \\"\\\\\\"sso_role_name\\\\\\", \\\\\\"sso_start_url\\\\\\". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html\\"), { code: self.errorCode }); + } + var hasher = v3933.createHash(\\"sha1\\"); + var fileName = hasher.update(profile.sso_start_url).digest(\\"hex\\") + \\".json\\"; + var cachePath = v3934.join(v3935.getHomeDir(), \\".aws\\", \\"sso\\", \\"cache\\", fileName); + var cacheFile = v3.readFileSync(cachePath); + var cacheContent = null; + if (cacheFile) { + cacheContent = v3936.parse(cacheFile); + } + if (!cacheContent) { + throw v3.error(new v3937(\\"Cached credentials not found under \\" + this.profile + \\" profile. Please make sure you log in with aws sso login first\\"), { code: self.errorCode }); + } + if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) { + throw v3.error(new v3938(\\"Cached credentials are missing required properties. Try running aws sso login.\\")); + } + if (new v3939(cacheContent.expiresAt).getTime() - v3939.now() <= EXPIRE_WINDOW_MS) { + throw v3.error(new v3940(\\"The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.\\")); + } + if (!self.service || self.service.config.region !== profile.sso_region) { + self.service = new v3941.SSO({ region: profile.sso_region }); + } + var request = { accessToken: cacheContent.accessToken, accountId: profile.sso_account_id, roleName: profile.sso_role_name }; + self.service.getRoleCredentials(request, function (err, data) { if (err || !data || !data.roleCredentials) { + callback(v3.error(err || new v3942(\\"Please log in using \\\\\\"aws sso login\\\\\\"\\"), { code: self.errorCode }), null); + } + else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) { + throw v3.error(new v3942(\\"SSO returns an invalid temporary credential.\\")); + } + else { + self.expired = false; + self.accessKeyId = data.roleCredentials.accessKeyId; + self.secretAccessKey = data.roleCredentials.secretAccessKey; + self.sessionToken = data.roleCredentials.sessionToken; + self.expireTime = new v3943(data.roleCredentials.expiration); + callback(null); + } }); +} +catch (err) { + callback(err); +} }; +const v3944 = {}; +v3944.constructor = v3928; +v3928.prototype = v3944; +v3927.load = v3928; +var v3945; +var v3946 = v200; +v3945 = function refresh(callback) { v3946.clearCachedFiles(); this.coalesceRefresh(callback || v65.callback); }; +const v3947 = {}; +v3947.constructor = v3945; +v3945.prototype = v3947; +v3927.refresh = v3945; +v3924.prototype = v3927; +v3924.__super__ = v253; +v2.SsoCredentials = v3924; +var v3948; +var v3949 = v299; +var v3950 = v31; +v3948 = function () { if (v3949 !== v3950) { + return v3949.apply(this, arguments); +} }; +const v3951 = Object.create(v309); +v3951.constructor = v3948; +const v3952 = {}; +const v3953 = []; +var v3954; +var v3955 = v31; +var v3956 = v3951; +v3954 = function EVENTS_BUBBLE(event) { var baseClass = v3955.getPrototypeOf(v3956); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v3957 = {}; +v3957.constructor = v3954; +v3954.prototype = v3957; +v3953.push(v3954); +v3952.apiCallAttempt = v3953; +const v3958 = []; +var v3959; +v3959 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v387.getPrototypeOf(v3956); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v3960 = {}; +v3960.constructor = v3959; +v3959.prototype = v3960; +v3958.push(v3959); +v3952.apiCall = v3958; +v3951._events = v3952; +v3951.MONITOR_EVENTS_BUBBLE = v3954; +v3951.CALL_EVENTS_BUBBLE = v3959; +v3948.prototype = v3951; +v3948.__super__ = v299; +const v3961 = {}; +v3961[\\"2015-12-08\\"] = null; +v3948.services = v3961; +const v3962 = []; +v3962.push(\\"2015-12-08\\"); +v3948.apiVersions = v3962; +v3948.serviceIdentifier = \\"acm\\"; +v2.ACM = v3948; +var v3963; +var v3964 = v299; +var v3965 = v31; +v3963 = function () { if (v3964 !== v3965) { + return v3964.apply(this, arguments); +} }; +const v3966 = Object.create(v309); +v3966.constructor = v3963; +const v3967 = {}; +const v3968 = []; +var v3969; +var v3970 = v31; +var v3971 = v3966; +v3969 = function EVENTS_BUBBLE(event) { var baseClass = v3970.getPrototypeOf(v3971); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v3972 = {}; +v3972.constructor = v3969; +v3969.prototype = v3972; +v3968.push(v3969); +v3967.apiCallAttempt = v3968; +const v3973 = []; +var v3974; +v3974 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v3955.getPrototypeOf(v3971); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v3975 = {}; +v3975.constructor = v3974; +v3974.prototype = v3975; +v3973.push(v3974); +v3967.apiCall = v3973; +v3966._events = v3967; +v3966.MONITOR_EVENTS_BUBBLE = v3969; +v3966.CALL_EVENTS_BUBBLE = v3974; +var v3976; +v3976 = function setAcceptHeader(req) { var httpRequest = req.httpRequest; if (!httpRequest.headers.Accept) { + httpRequest.headers[\\"Accept\\"] = \\"application/json\\"; +} }; +const v3977 = {}; +v3977.constructor = v3976; +v3976.prototype = v3977; +v3966.setAcceptHeader = v3976; +var v3978; +v3978 = function setupRequestListeners(request) { request.addListener(\\"build\\", this.setAcceptHeader); if (request.operation === \\"getExport\\") { + var params = request.params || {}; + if (params.exportType === \\"swagger\\") { + request.addListener(\\"extractData\\", v3.convertPayloadToString); + } +} }; +const v3979 = {}; +v3979.constructor = v3978; +v3978.prototype = v3979; +v3966.setupRequestListeners = v3978; +v3963.prototype = v3966; +v3963.__super__ = v299; +const v3980 = {}; +v3980[\\"2015-07-09\\"] = null; +v3963.services = v3980; +const v3981 = []; +v3981.push(\\"2015-07-09\\"); +v3963.apiVersions = v3981; +v3963.serviceIdentifier = \\"apigateway\\"; +v2.APIGateway = v3963; +var v3982; +var v3983 = v299; +var v3984 = v31; +v3982 = function () { if (v3983 !== v3984) { + return v3983.apply(this, arguments); +} }; +const v3985 = Object.create(v309); +v3985.constructor = v3982; +const v3986 = {}; +const v3987 = []; +var v3988; +var v3989 = v31; +var v3990 = v3985; +v3988 = function EVENTS_BUBBLE(event) { var baseClass = v3989.getPrototypeOf(v3990); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v3991 = {}; +v3991.constructor = v3988; +v3988.prototype = v3991; +v3987.push(v3988); +v3986.apiCallAttempt = v3987; +const v3992 = []; +var v3993; +v3993 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v3970.getPrototypeOf(v3990); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v3994 = {}; +v3994.constructor = v3993; +v3993.prototype = v3994; +v3992.push(v3993); +v3986.apiCall = v3992; +v3985._events = v3986; +v3985.MONITOR_EVENTS_BUBBLE = v3988; +v3985.CALL_EVENTS_BUBBLE = v3993; +v3982.prototype = v3985; +v3982.__super__ = v299; +const v3995 = {}; +v3995[\\"2016-02-06\\"] = null; +v3982.services = v3995; +const v3996 = []; +v3996.push(\\"2016-02-06\\"); +v3982.apiVersions = v3996; +v3982.serviceIdentifier = \\"applicationautoscaling\\"; +v2.ApplicationAutoScaling = v3982; +var v3997; +var v3998 = v299; +var v3999 = v31; +v3997 = function () { if (v3998 !== v3999) { + return v3998.apply(this, arguments); +} }; +const v4000 = Object.create(v309); +v4000.constructor = v3997; +const v4001 = {}; +const v4002 = []; +var v4003; +var v4004 = v31; +var v4005 = v4000; +v4003 = function EVENTS_BUBBLE(event) { var baseClass = v4004.getPrototypeOf(v4005); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4006 = {}; +v4006.constructor = v4003; +v4003.prototype = v4006; +v4002.push(v4003); +v4001.apiCallAttempt = v4002; +const v4007 = []; +var v4008; +v4008 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v3989.getPrototypeOf(v4005); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4009 = {}; +v4009.constructor = v4008; +v4008.prototype = v4009; +v4007.push(v4008); +v4001.apiCall = v4007; +v4000._events = v4001; +v4000.MONITOR_EVENTS_BUBBLE = v4003; +v4000.CALL_EVENTS_BUBBLE = v4008; +v3997.prototype = v4000; +v3997.__super__ = v299; +const v4010 = {}; +v4010[\\"2016-12-01\\"] = null; +v3997.services = v4010; +const v4011 = []; +v4011.push(\\"2016-12-01\\"); +v3997.apiVersions = v4011; +v3997.serviceIdentifier = \\"appstream\\"; +v2.AppStream = v3997; +var v4012; +var v4013 = v299; +var v4014 = v31; +v4012 = function () { if (v4013 !== v4014) { + return v4013.apply(this, arguments); +} }; +const v4015 = Object.create(v309); +v4015.constructor = v4012; +const v4016 = {}; +const v4017 = []; +var v4018; +var v4019 = v31; +var v4020 = v4015; +v4018 = function EVENTS_BUBBLE(event) { var baseClass = v4019.getPrototypeOf(v4020); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4021 = {}; +v4021.constructor = v4018; +v4018.prototype = v4021; +v4017.push(v4018); +v4016.apiCallAttempt = v4017; +const v4022 = []; +var v4023; +v4023 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4004.getPrototypeOf(v4020); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4024 = {}; +v4024.constructor = v4023; +v4023.prototype = v4024; +v4022.push(v4023); +v4016.apiCall = v4022; +v4015._events = v4016; +v4015.MONITOR_EVENTS_BUBBLE = v4018; +v4015.CALL_EVENTS_BUBBLE = v4023; +v4012.prototype = v4015; +v4012.__super__ = v299; +const v4025 = {}; +v4025[\\"2011-01-01\\"] = null; +v4012.services = v4025; +const v4026 = []; +v4026.push(\\"2011-01-01\\"); +v4012.apiVersions = v4026; +v4012.serviceIdentifier = \\"autoscaling\\"; +v2.AutoScaling = v4012; +var v4027; +var v4028 = v299; +var v4029 = v31; +v4027 = function () { if (v4028 !== v4029) { + return v4028.apply(this, arguments); +} }; +const v4030 = Object.create(v309); +v4030.constructor = v4027; +const v4031 = {}; +const v4032 = []; +var v4033; +var v4034 = v31; +var v4035 = v4030; +v4033 = function EVENTS_BUBBLE(event) { var baseClass = v4034.getPrototypeOf(v4035); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4036 = {}; +v4036.constructor = v4033; +v4033.prototype = v4036; +v4032.push(v4033); +v4031.apiCallAttempt = v4032; +const v4037 = []; +var v4038; +v4038 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4019.getPrototypeOf(v4035); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4039 = {}; +v4039.constructor = v4038; +v4038.prototype = v4039; +v4037.push(v4038); +v4031.apiCall = v4037; +v4030._events = v4031; +v4030.MONITOR_EVENTS_BUBBLE = v4033; +v4030.CALL_EVENTS_BUBBLE = v4038; +v4027.prototype = v4030; +v4027.__super__ = v299; +const v4040 = {}; +v4040[\\"2016-08-10\\"] = null; +v4027.services = v4040; +const v4041 = []; +v4041.push(\\"2016-08-10\\"); +v4027.apiVersions = v4041; +v4027.serviceIdentifier = \\"batch\\"; +v2.Batch = v4027; +var v4042; +var v4043 = v299; +var v4044 = v31; +v4042 = function () { if (v4043 !== v4044) { + return v4043.apply(this, arguments); +} }; +const v4045 = Object.create(v309); +v4045.constructor = v4042; +const v4046 = {}; +const v4047 = []; +var v4048; +var v4049 = v31; +var v4050 = v4045; +v4048 = function EVENTS_BUBBLE(event) { var baseClass = v4049.getPrototypeOf(v4050); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4051 = {}; +v4051.constructor = v4048; +v4048.prototype = v4051; +v4047.push(v4048); +v4046.apiCallAttempt = v4047; +const v4052 = []; +var v4053; +v4053 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4034.getPrototypeOf(v4050); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4054 = {}; +v4054.constructor = v4053; +v4053.prototype = v4054; +v4052.push(v4053); +v4046.apiCall = v4052; +v4045._events = v4046; +v4045.MONITOR_EVENTS_BUBBLE = v4048; +v4045.CALL_EVENTS_BUBBLE = v4053; +v4042.prototype = v4045; +v4042.__super__ = v299; +const v4055 = {}; +v4055[\\"2016-10-20\\"] = null; +v4042.services = v4055; +const v4056 = []; +v4056.push(\\"2016-10-20\\"); +v4042.apiVersions = v4056; +v4042.serviceIdentifier = \\"budgets\\"; +v2.Budgets = v4042; +var v4057; +var v4058 = v299; +var v4059 = v31; +v4057 = function () { if (v4058 !== v4059) { + return v4058.apply(this, arguments); +} }; +const v4060 = Object.create(v309); +v4060.constructor = v4057; +const v4061 = {}; +const v4062 = []; +var v4063; +var v4064 = v31; +var v4065 = v4060; +v4063 = function EVENTS_BUBBLE(event) { var baseClass = v4064.getPrototypeOf(v4065); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4066 = {}; +v4066.constructor = v4063; +v4063.prototype = v4066; +v4062.push(v4063); +v4061.apiCallAttempt = v4062; +const v4067 = []; +var v4068; +v4068 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4049.getPrototypeOf(v4065); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4069 = {}; +v4069.constructor = v4068; +v4068.prototype = v4069; +v4067.push(v4068); +v4061.apiCall = v4067; +v4060._events = v4061; +v4060.MONITOR_EVENTS_BUBBLE = v4063; +v4060.CALL_EVENTS_BUBBLE = v4068; +v4057.prototype = v4060; +v4057.__super__ = v299; +const v4070 = {}; +v4070[\\"2016-05-10\\"] = null; +v4070[\\"2016-05-10*\\"] = null; +v4070[\\"2017-01-11\\"] = null; +v4057.services = v4070; +const v4071 = []; +v4071.push(\\"2016-05-10\\", \\"2016-05-10*\\", \\"2017-01-11\\"); +v4057.apiVersions = v4071; +v4057.serviceIdentifier = \\"clouddirectory\\"; +v2.CloudDirectory = v4057; +var v4072; +var v4073 = v299; +var v4074 = v31; +v4072 = function () { if (v4073 !== v4074) { + return v4073.apply(this, arguments); +} }; +const v4075 = Object.create(v309); +v4075.constructor = v4072; +const v4076 = {}; +const v4077 = []; +var v4078; +var v4079 = v31; +var v4080 = v4075; +v4078 = function EVENTS_BUBBLE(event) { var baseClass = v4079.getPrototypeOf(v4080); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4081 = {}; +v4081.constructor = v4078; +v4078.prototype = v4081; +v4077.push(v4078); +v4076.apiCallAttempt = v4077; +const v4082 = []; +var v4083; +v4083 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4064.getPrototypeOf(v4080); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4084 = {}; +v4084.constructor = v4083; +v4083.prototype = v4084; +v4082.push(v4083); +v4076.apiCall = v4082; +v4075._events = v4076; +v4075.MONITOR_EVENTS_BUBBLE = v4078; +v4075.CALL_EVENTS_BUBBLE = v4083; +v4072.prototype = v4075; +v4072.__super__ = v299; +const v4085 = {}; +v4085[\\"2010-05-15\\"] = null; +v4072.services = v4085; +const v4086 = []; +v4086.push(\\"2010-05-15\\"); +v4072.apiVersions = v4086; +v4072.serviceIdentifier = \\"cloudformation\\"; +v2.CloudFormation = v4072; +var v4087; +var v4088 = v299; +var v4089 = v31; +v4087 = function () { if (v4088 !== v4089) { + return v4088.apply(this, arguments); +} }; +const v4090 = Object.create(v309); +v4090.constructor = v4087; +const v4091 = {}; +const v4092 = []; +var v4093; +var v4094 = v31; +var v4095 = v4090; +v4093 = function EVENTS_BUBBLE(event) { var baseClass = v4094.getPrototypeOf(v4095); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4096 = {}; +v4096.constructor = v4093; +v4093.prototype = v4096; +v4092.push(v4093); +v4091.apiCallAttempt = v4092; +const v4097 = []; +var v4098; +v4098 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4079.getPrototypeOf(v4095); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4099 = {}; +v4099.constructor = v4098; +v4098.prototype = v4099; +v4097.push(v4098); +v4091.apiCall = v4097; +v4090._events = v4091; +v4090.MONITOR_EVENTS_BUBBLE = v4093; +v4090.CALL_EVENTS_BUBBLE = v4098; +var v4100; +v4100 = function setupRequestListeners(request) { request.addListener(\\"extractData\\", v3.hoistPayloadMember); }; +const v4101 = {}; +v4101.constructor = v4100; +v4100.prototype = v4101; +v4090.setupRequestListeners = v4100; +v4087.prototype = v4090; +v4087.__super__ = v299; +const v4102 = {}; +v4102[\\"2013-05-12*\\"] = null; +v4102[\\"2013-11-11*\\"] = null; +v4102[\\"2014-05-31*\\"] = null; +v4102[\\"2014-10-21*\\"] = null; +v4102[\\"2014-11-06*\\"] = null; +v4102[\\"2015-04-17*\\"] = null; +v4102[\\"2015-07-27*\\"] = null; +v4102[\\"2015-09-17*\\"] = null; +v4102[\\"2016-01-13*\\"] = null; +v4102[\\"2016-01-28*\\"] = null; +v4102[\\"2016-08-01*\\"] = null; +v4102[\\"2016-08-20*\\"] = null; +v4102[\\"2016-09-07*\\"] = null; +v4102[\\"2016-09-29*\\"] = null; +v4102[\\"2016-11-25\\"] = null; +v4102[\\"2016-11-25*\\"] = null; +v4102[\\"2017-03-25\\"] = null; +v4102[\\"2017-03-25*\\"] = null; +v4102[\\"2017-10-30\\"] = null; +v4102[\\"2017-10-30*\\"] = null; +v4102[\\"2018-06-18\\"] = null; +v4102[\\"2018-06-18*\\"] = null; +v4102[\\"2018-11-05\\"] = null; +v4102[\\"2018-11-05*\\"] = null; +v4102[\\"2019-03-26\\"] = null; +v4102[\\"2019-03-26*\\"] = null; +v4102[\\"2020-05-31\\"] = null; +v4087.services = v4102; +const v4103 = []; +v4103.push(\\"2013-05-12*\\", \\"2013-11-11*\\", \\"2014-05-31*\\", \\"2014-10-21*\\", \\"2014-11-06*\\", \\"2015-04-17*\\", \\"2015-07-27*\\", \\"2015-09-17*\\", \\"2016-01-13*\\", \\"2016-01-28*\\", \\"2016-08-01*\\", \\"2016-08-20*\\", \\"2016-09-07*\\", \\"2016-09-29*\\", \\"2016-11-25\\", \\"2016-11-25*\\", \\"2017-03-25\\", \\"2017-03-25*\\", \\"2017-10-30\\", \\"2017-10-30*\\", \\"2018-06-18\\", \\"2018-06-18*\\", \\"2018-11-05\\", \\"2018-11-05*\\", \\"2019-03-26\\", \\"2019-03-26*\\", \\"2020-05-31\\"); +v4087.apiVersions = v4103; +v4087.serviceIdentifier = \\"cloudfront\\"; +var v4104; +var v4105 = v40; +v4104 = function Signer(keyPairId, privateKey) { if (keyPairId === void 0 || privateKey === void 0) { + throw new v4105(\\"A key pair ID and private key are required\\"); +} this.keyPairId = keyPairId; this.privateKey = privateKey; }; +const v4106 = {}; +v4106.constructor = v4104; +var v4107; +var v4109; +var v4111; +v4111 = function (string) { var replacements = { \\"+\\": \\"-\\", \\"=\\": \\"_\\", \\"/\\": \\"~\\" }; return string.replace(/[\\\\+=\\\\/]/g, function (match) { return replacements[match]; }); }; +const v4112 = {}; +v4112.constructor = v4111; +v4111.prototype = v4112; +var v4110 = v4111; +var v4113 = v38; +var v4115; +var v4116 = v96; +var v4117 = v4111; +v4115 = function (policy, privateKey) { var sign = v4116.createSign(\\"RSA-SHA1\\"); sign.write(policy); return v4117(sign.sign(privateKey, \\"base64\\")); }; +const v4118 = {}; +v4118.constructor = v4115; +v4115.prototype = v4118; +var v4114 = v4115; +v4109 = function (policy, keyPairId, privateKey) { policy = policy.replace(/\\\\s/gm, \\"\\"); return { Policy: v4110(v4113(policy)), \\"Key-Pair-Id\\": keyPairId, Signature: v4114(policy, privateKey) }; }; +const v4119 = {}; +v4119.constructor = v4109; +v4109.prototype = v4119; +var v4108 = v4109; +var v4121; +var v4122 = v163; +var v4123 = v4115; +v4121 = function (url, expires, keyPairId, privateKey) { var policy = v4122.stringify({ Statement: [{ Resource: url, Condition: { DateLessThan: { \\"AWS:EpochTime\\": expires } } }] }); return { Expires: expires, \\"Key-Pair-Id\\": keyPairId, Signature: v4123(policy.toString(), privateKey) }; }; +const v4124 = {}; +v4124.constructor = v4121; +v4121.prototype = v4124; +var v4120 = v4121; +var v4126; +v4126 = function (result, callback) { if (!callback || typeof callback !== \\"function\\") { + return result; +} callback(null, result); }; +const v4127 = {}; +v4127.constructor = v4126; +v4126.prototype = v4127; +var v4125 = v4126; +v4107 = function (options, cb) { var signatureHash = \\"policy\\" in options ? v4108(options.policy, this.keyPairId, this.privateKey) : v4120(options.url, options.expires, this.keyPairId, this.privateKey); var cookieHash = {}; for (var key in signatureHash) { + if (v113.hasOwnProperty.call(signatureHash, key)) { + cookieHash[\\"CloudFront-\\" + key] = signatureHash[key]; + } +} return v4125(cookieHash, cb); }; +const v4128 = {}; +v4128.constructor = v4107; +v4107.prototype = v4128; +v4106.getSignedCookie = v4107; +var v4129; +var v4131; +var v4133; +var v4134 = v40; +v4133 = function (url) { var parts = url.split(\\"://\\"); if (parts.length < 2) { + throw new v4134(\\"Invalid URL.\\"); +} return parts[0].replace(\\"*\\", \\"\\"); }; +const v4135 = {}; +v4135.constructor = v4133; +v4133.prototype = v4135; +var v4132 = v4133; +var v4137; +var v4138 = v22; +v4137 = function (rtmpUrl) { var parsed = v4138.parse(rtmpUrl); return parsed.path.replace(/^\\\\//, \\"\\") + (parsed.hash || \\"\\"); }; +const v4139 = {}; +v4139.constructor = v4137; +v4137.prototype = v4139; +var v4136 = v4137; +var v4140 = v40; +v4131 = function (url) { switch (v4132(url)) { + case \\"http\\": + case \\"https\\": return url; + case \\"rtmp\\": return v4136(url); + default: throw new v4140(\\"Invalid URI scheme. Scheme must be one of\\" + \\" http, https, or rtmp\\"); +} }; +const v4141 = {}; +v4141.constructor = v4131; +v4131.prototype = v4141; +var v4130 = v4131; +var v4143; +v4143 = function (err, callback) { if (!callback || typeof callback !== \\"function\\") { + throw err; +} callback(err); }; +const v4144 = {}; +v4144.constructor = v4143; +v4143.prototype = v4144; +var v4142 = v4143; +var v4145 = v22; +var v4146 = v4109; +var v4147 = v4121; +var v4148 = undefined; +var v4149 = v4133; +var v4150 = v4137; +var v4151 = v22; +var v4152 = v22; +var v4153 = v4143; +var v4154 = v4126; +var v4155 = undefined; +v4129 = function (options, cb) { try { + var resource = v4130(options.url); +} +catch (err) { + return v4142(err, cb); +} var parsedUrl = v4145.parse(options.url, true), signatureHash = v113.hasOwnProperty.call(options, \\"policy\\") ? v4146(options.policy, this.keyPairId, this.privateKey) : v4147(v4148, options.expires, this.keyPairId, this.privateKey); parsedUrl.search = null; for (var key in signatureHash) { + if (v113.hasOwnProperty.call(signatureHash, key)) { + parsedUrl.query[key] = signatureHash[key]; + } +} try { + var signedUrl = v4149(options.url) === \\"rtmp\\" ? v4150(v4151.format(parsedUrl)) : v4152.format(parsedUrl); +} +catch (err) { + return v4153(err, cb); +} return v4154(v4155, cb); }; +const v4156 = {}; +v4156.constructor = v4129; +v4129.prototype = v4156; +v4106.getSignedUrl = v4129; +v4104.prototype = v4106; +v4104.__super__ = v31; +v4087.Signer = v4104; +v2.CloudFront = v4087; +var v4157; +var v4158 = v299; +var v4159 = v31; +v4157 = function () { if (v4158 !== v4159) { + return v4158.apply(this, arguments); +} }; +const v4160 = Object.create(v309); +v4160.constructor = v4157; +const v4161 = {}; +const v4162 = []; +var v4163; +var v4164 = v31; +var v4165 = v4160; +v4163 = function EVENTS_BUBBLE(event) { var baseClass = v4164.getPrototypeOf(v4165); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4166 = {}; +v4166.constructor = v4163; +v4163.prototype = v4166; +v4162.push(v4163); +v4161.apiCallAttempt = v4162; +const v4167 = []; +var v4168; +v4168 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4094.getPrototypeOf(v4165); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4169 = {}; +v4169.constructor = v4168; +v4168.prototype = v4169; +v4167.push(v4168); +v4161.apiCall = v4167; +v4160._events = v4161; +v4160.MONITOR_EVENTS_BUBBLE = v4163; +v4160.CALL_EVENTS_BUBBLE = v4168; +v4157.prototype = v4160; +v4157.__super__ = v299; +const v4170 = {}; +v4170[\\"2014-05-30\\"] = null; +v4157.services = v4170; +const v4171 = []; +v4171.push(\\"2014-05-30\\"); +v4157.apiVersions = v4171; +v4157.serviceIdentifier = \\"cloudhsm\\"; +v2.CloudHSM = v4157; +var v4172; +var v4173 = v299; +var v4174 = v31; +v4172 = function () { if (v4173 !== v4174) { + return v4173.apply(this, arguments); +} }; +const v4175 = Object.create(v309); +v4175.constructor = v4172; +const v4176 = {}; +const v4177 = []; +var v4178; +var v4179 = v31; +var v4180 = v4175; +v4178 = function EVENTS_BUBBLE(event) { var baseClass = v4179.getPrototypeOf(v4180); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4181 = {}; +v4181.constructor = v4178; +v4178.prototype = v4181; +v4177.push(v4178); +v4176.apiCallAttempt = v4177; +const v4182 = []; +var v4183; +v4183 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4164.getPrototypeOf(v4180); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4184 = {}; +v4184.constructor = v4183; +v4183.prototype = v4184; +v4182.push(v4183); +v4176.apiCall = v4182; +v4175._events = v4176; +v4175.MONITOR_EVENTS_BUBBLE = v4178; +v4175.CALL_EVENTS_BUBBLE = v4183; +v4172.prototype = v4175; +v4172.__super__ = v299; +const v4185 = {}; +v4185[\\"2011-02-01\\"] = null; +v4185[\\"2013-01-01\\"] = null; +v4172.services = v4185; +const v4186 = []; +v4186.push(\\"2011-02-01\\", \\"2013-01-01\\"); +v4172.apiVersions = v4186; +v4172.serviceIdentifier = \\"cloudsearch\\"; +v2.CloudSearch = v4172; +var v4187; +var v4188 = v299; +var v4189 = v31; +v4187 = function () { if (v4188 !== v4189) { + return v4188.apply(this, arguments); +} }; +const v4190 = Object.create(v309); +v4190.constructor = v4187; +const v4191 = {}; +const v4192 = []; +var v4193; +var v4194 = v31; +var v4195 = v4190; +v4193 = function EVENTS_BUBBLE(event) { var baseClass = v4194.getPrototypeOf(v4195); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4196 = {}; +v4196.constructor = v4193; +v4193.prototype = v4196; +v4192.push(v4193); +v4191.apiCallAttempt = v4192; +const v4197 = []; +var v4198; +v4198 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4179.getPrototypeOf(v4195); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4199 = {}; +v4199.constructor = v4198; +v4198.prototype = v4199; +v4197.push(v4198); +v4191.apiCall = v4197; +v4190._events = v4191; +v4190.MONITOR_EVENTS_BUBBLE = v4193; +v4190.CALL_EVENTS_BUBBLE = v4198; +var v4200; +var v4201 = v40; +v4200 = function validateService() { if (!this.config.endpoint || this.config.endpoint.indexOf(\\"{\\") >= 0) { + var msg = \\"AWS.CloudSearchDomain requires an explicit \\" + \\"\`endpoint' configuration option.\\"; + throw v3.error(new v4201(), { name: \\"InvalidEndpoint\\", message: msg }); +} }; +const v4202 = {}; +v4202.constructor = v4200; +v4200.prototype = v4202; +v4190.validateService = v4200; +var v4203; +v4203 = function setupRequestListeners(request) { request.removeListener(\\"validate\\", v428.VALIDATE_CREDENTIALS); request.onAsync(\\"validate\\", this.validateCredentials); request.addListener(\\"validate\\", this.updateRegion); if (request.operation === \\"search\\") { + request.addListener(\\"build\\", this.convertGetToPost); +} }; +const v4204 = {}; +v4204.constructor = v4203; +v4203.prototype = v4204; +v4190.setupRequestListeners = v4203; +var v4205; +v4205 = function (req, done) { if (!req.service.api.signatureVersion) + return done(); req.service.config.getCredentials(function (err) { if (err) { + req.removeListener(\\"sign\\", v428.SIGN); +} done(); }); }; +const v4206 = {}; +v4206.constructor = v4205; +v4205.prototype = v4206; +v4190.validateCredentials = v4205; +var v4207; +v4207 = function (request) { var httpRequest = request.httpRequest; var path = httpRequest.path.split(\\"?\\"); httpRequest.method = \\"POST\\"; httpRequest.path = path[0]; httpRequest.body = path[1]; httpRequest.headers[\\"Content-Length\\"] = httpRequest.body.length; httpRequest.headers[\\"Content-Type\\"] = \\"application/x-www-form-urlencoded\\"; }; +const v4208 = {}; +v4208.constructor = v4207; +v4207.prototype = v4208; +v4190.convertGetToPost = v4207; +var v4209; +v4209 = function updateRegion(request) { var endpoint = request.httpRequest.endpoint.hostname; var zones = endpoint.split(\\".\\"); request.httpRequest.region = zones[1] || request.httpRequest.region; }; +const v4210 = {}; +v4210.constructor = v4209; +v4209.prototype = v4210; +v4190.updateRegion = v4209; +v4187.prototype = v4190; +v4187.__super__ = v299; +const v4211 = {}; +v4211[\\"2013-01-01\\"] = null; +v4187.services = v4211; +const v4212 = []; +v4212.push(\\"2013-01-01\\"); +v4187.apiVersions = v4212; +v4187.serviceIdentifier = \\"cloudsearchdomain\\"; +v2.CloudSearchDomain = v4187; +var v4213; +var v4214 = v299; +var v4215 = v31; +v4213 = function () { if (v4214 !== v4215) { + return v4214.apply(this, arguments); +} }; +const v4216 = Object.create(v309); +v4216.constructor = v4213; +const v4217 = {}; +const v4218 = []; +var v4219; +var v4220 = v31; +var v4221 = v4216; +v4219 = function EVENTS_BUBBLE(event) { var baseClass = v4220.getPrototypeOf(v4221); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4222 = {}; +v4222.constructor = v4219; +v4219.prototype = v4222; +v4218.push(v4219); +v4217.apiCallAttempt = v4218; +const v4223 = []; +var v4224; +v4224 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4194.getPrototypeOf(v4221); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4225 = {}; +v4225.constructor = v4224; +v4224.prototype = v4225; +v4223.push(v4224); +v4217.apiCall = v4223; +v4216._events = v4217; +v4216.MONITOR_EVENTS_BUBBLE = v4219; +v4216.CALL_EVENTS_BUBBLE = v4224; +v4213.prototype = v4216; +v4213.__super__ = v299; +const v4226 = {}; +v4226[\\"2013-11-01\\"] = null; +v4213.services = v4226; +const v4227 = []; +v4227.push(\\"2013-11-01\\"); +v4213.apiVersions = v4227; +v4213.serviceIdentifier = \\"cloudtrail\\"; +v2.CloudTrail = v4213; +var v4228; +var v4229 = v299; +var v4230 = v31; +v4228 = function () { if (v4229 !== v4230) { + return v4229.apply(this, arguments); +} }; +const v4231 = Object.create(v309); +v4231.constructor = v4228; +const v4232 = {}; +const v4233 = []; +var v4234; +var v4235 = v31; +var v4236 = v4231; +v4234 = function EVENTS_BUBBLE(event) { var baseClass = v4235.getPrototypeOf(v4236); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4237 = {}; +v4237.constructor = v4234; +v4234.prototype = v4237; +v4233.push(v4234); +v4232.apiCallAttempt = v4233; +const v4238 = []; +var v4239; +v4239 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4220.getPrototypeOf(v4236); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4240 = {}; +v4240.constructor = v4239; +v4239.prototype = v4240; +v4238.push(v4239); +v4232.apiCall = v4238; +v4231._events = v4232; +v4231.MONITOR_EVENTS_BUBBLE = v4234; +v4231.CALL_EVENTS_BUBBLE = v4239; +v4228.prototype = v4231; +v4228.__super__ = v299; +const v4241 = {}; +v4241[\\"2010-08-01\\"] = null; +v4228.services = v4241; +const v4242 = []; +v4242.push(\\"2010-08-01\\"); +v4228.apiVersions = v4242; +v4228.serviceIdentifier = \\"cloudwatch\\"; +v2.CloudWatch = v4228; +var v4243; +var v4244 = v299; +var v4245 = v31; +v4243 = function () { if (v4244 !== v4245) { + return v4244.apply(this, arguments); +} }; +const v4246 = Object.create(v309); +v4246.constructor = v4243; +const v4247 = {}; +const v4248 = []; +var v4249; +var v4250 = v31; +var v4251 = v4246; +v4249 = function EVENTS_BUBBLE(event) { var baseClass = v4250.getPrototypeOf(v4251); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4252 = {}; +v4252.constructor = v4249; +v4249.prototype = v4252; +v4248.push(v4249); +v4247.apiCallAttempt = v4248; +const v4253 = []; +var v4254; +v4254 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4235.getPrototypeOf(v4251); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4255 = {}; +v4255.constructor = v4254; +v4254.prototype = v4255; +v4253.push(v4254); +v4247.apiCall = v4253; +v4246._events = v4247; +v4246.MONITOR_EVENTS_BUBBLE = v4249; +v4246.CALL_EVENTS_BUBBLE = v4254; +v4243.prototype = v4246; +v4243.__super__ = v299; +const v4256 = {}; +v4256[\\"2014-02-03*\\"] = null; +v4256[\\"2015-10-07\\"] = null; +v4243.services = v4256; +const v4257 = []; +v4257.push(\\"2014-02-03*\\", \\"2015-10-07\\"); +v4243.apiVersions = v4257; +v4243.serviceIdentifier = \\"cloudwatchevents\\"; +v2.CloudWatchEvents = v4243; +var v4258; +var v4259 = v299; +var v4260 = v31; +v4258 = function () { if (v4259 !== v4260) { + return v4259.apply(this, arguments); +} }; +const v4261 = Object.create(v309); +v4261.constructor = v4258; +const v4262 = {}; +const v4263 = []; +var v4264; +var v4265 = v31; +var v4266 = v4261; +v4264 = function EVENTS_BUBBLE(event) { var baseClass = v4265.getPrototypeOf(v4266); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4267 = {}; +v4267.constructor = v4264; +v4264.prototype = v4267; +v4263.push(v4264); +v4262.apiCallAttempt = v4263; +const v4268 = []; +var v4269; +v4269 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4250.getPrototypeOf(v4266); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4270 = {}; +v4270.constructor = v4269; +v4269.prototype = v4270; +v4268.push(v4269); +v4262.apiCall = v4268; +v4261._events = v4262; +v4261.MONITOR_EVENTS_BUBBLE = v4264; +v4261.CALL_EVENTS_BUBBLE = v4269; +v4258.prototype = v4261; +v4258.__super__ = v299; +const v4271 = {}; +v4271[\\"2014-03-28\\"] = null; +v4258.services = v4271; +const v4272 = []; +v4272.push(\\"2014-03-28\\"); +v4258.apiVersions = v4272; +v4258.serviceIdentifier = \\"cloudwatchlogs\\"; +v2.CloudWatchLogs = v4258; +var v4273; +var v4274 = v299; +var v4275 = v31; +v4273 = function () { if (v4274 !== v4275) { + return v4274.apply(this, arguments); +} }; +const v4276 = Object.create(v309); +v4276.constructor = v4273; +const v4277 = {}; +const v4278 = []; +var v4279; +var v4280 = v31; +var v4281 = v4276; +v4279 = function EVENTS_BUBBLE(event) { var baseClass = v4280.getPrototypeOf(v4281); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4282 = {}; +v4282.constructor = v4279; +v4279.prototype = v4282; +v4278.push(v4279); +v4277.apiCallAttempt = v4278; +const v4283 = []; +var v4284; +v4284 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4265.getPrototypeOf(v4281); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4285 = {}; +v4285.constructor = v4284; +v4284.prototype = v4285; +v4283.push(v4284); +v4277.apiCall = v4283; +v4276._events = v4277; +v4276.MONITOR_EVENTS_BUBBLE = v4279; +v4276.CALL_EVENTS_BUBBLE = v4284; +v4273.prototype = v4276; +v4273.__super__ = v299; +const v4286 = {}; +v4286[\\"2016-10-06\\"] = null; +v4273.services = v4286; +const v4287 = []; +v4287.push(\\"2016-10-06\\"); +v4273.apiVersions = v4287; +v4273.serviceIdentifier = \\"codebuild\\"; +v2.CodeBuild = v4273; +var v4288; +var v4289 = v299; +var v4290 = v31; +v4288 = function () { if (v4289 !== v4290) { + return v4289.apply(this, arguments); +} }; +const v4291 = Object.create(v309); +v4291.constructor = v4288; +const v4292 = {}; +const v4293 = []; +var v4294; +var v4295 = v31; +var v4296 = v4291; +v4294 = function EVENTS_BUBBLE(event) { var baseClass = v4295.getPrototypeOf(v4296); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4297 = {}; +v4297.constructor = v4294; +v4294.prototype = v4297; +v4293.push(v4294); +v4292.apiCallAttempt = v4293; +const v4298 = []; +var v4299; +v4299 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4280.getPrototypeOf(v4296); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4300 = {}; +v4300.constructor = v4299; +v4299.prototype = v4300; +v4298.push(v4299); +v4292.apiCall = v4298; +v4291._events = v4292; +v4291.MONITOR_EVENTS_BUBBLE = v4294; +v4291.CALL_EVENTS_BUBBLE = v4299; +v4288.prototype = v4291; +v4288.__super__ = v299; +const v4301 = {}; +v4301[\\"2015-04-13\\"] = null; +v4288.services = v4301; +const v4302 = []; +v4302.push(\\"2015-04-13\\"); +v4288.apiVersions = v4302; +v4288.serviceIdentifier = \\"codecommit\\"; +v2.CodeCommit = v4288; +var v4303; +var v4304 = v299; +var v4305 = v31; +v4303 = function () { if (v4304 !== v4305) { + return v4304.apply(this, arguments); +} }; +const v4306 = Object.create(v309); +v4306.constructor = v4303; +const v4307 = {}; +const v4308 = []; +var v4309; +var v4310 = v31; +var v4311 = v4306; +v4309 = function EVENTS_BUBBLE(event) { var baseClass = v4310.getPrototypeOf(v4311); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4312 = {}; +v4312.constructor = v4309; +v4309.prototype = v4312; +v4308.push(v4309); +v4307.apiCallAttempt = v4308; +const v4313 = []; +var v4314; +v4314 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4295.getPrototypeOf(v4311); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4315 = {}; +v4315.constructor = v4314; +v4314.prototype = v4315; +v4313.push(v4314); +v4307.apiCall = v4313; +v4306._events = v4307; +v4306.MONITOR_EVENTS_BUBBLE = v4309; +v4306.CALL_EVENTS_BUBBLE = v4314; +v4303.prototype = v4306; +v4303.__super__ = v299; +const v4316 = {}; +v4316[\\"2014-10-06\\"] = null; +v4303.services = v4316; +const v4317 = []; +v4317.push(\\"2014-10-06\\"); +v4303.apiVersions = v4317; +v4303.serviceIdentifier = \\"codedeploy\\"; +v2.CodeDeploy = v4303; +var v4318; +var v4319 = v299; +var v4320 = v31; +v4318 = function () { if (v4319 !== v4320) { + return v4319.apply(this, arguments); +} }; +const v4321 = Object.create(v309); +v4321.constructor = v4318; +const v4322 = {}; +const v4323 = []; +var v4324; +var v4325 = v31; +var v4326 = v4321; +v4324 = function EVENTS_BUBBLE(event) { var baseClass = v4325.getPrototypeOf(v4326); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4327 = {}; +v4327.constructor = v4324; +v4324.prototype = v4327; +v4323.push(v4324); +v4322.apiCallAttempt = v4323; +const v4328 = []; +var v4329; +v4329 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4310.getPrototypeOf(v4326); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4330 = {}; +v4330.constructor = v4329; +v4329.prototype = v4330; +v4328.push(v4329); +v4322.apiCall = v4328; +v4321._events = v4322; +v4321.MONITOR_EVENTS_BUBBLE = v4324; +v4321.CALL_EVENTS_BUBBLE = v4329; +v4318.prototype = v4321; +v4318.__super__ = v299; +const v4331 = {}; +v4331[\\"2015-07-09\\"] = null; +v4318.services = v4331; +const v4332 = []; +v4332.push(\\"2015-07-09\\"); +v4318.apiVersions = v4332; +v4318.serviceIdentifier = \\"codepipeline\\"; +v2.CodePipeline = v4318; +var v4333; +var v4334 = v299; +var v4335 = v31; +v4333 = function () { if (v4334 !== v4335) { + return v4334.apply(this, arguments); +} }; +const v4336 = Object.create(v309); +v4336.constructor = v4333; +const v4337 = {}; +const v4338 = []; +var v4339; +var v4340 = v31; +var v4341 = v4336; +v4339 = function EVENTS_BUBBLE(event) { var baseClass = v4340.getPrototypeOf(v4341); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4342 = {}; +v4342.constructor = v4339; +v4339.prototype = v4342; +v4338.push(v4339); +v4337.apiCallAttempt = v4338; +const v4343 = []; +var v4344; +v4344 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4325.getPrototypeOf(v4341); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4345 = {}; +v4345.constructor = v4344; +v4344.prototype = v4345; +v4343.push(v4344); +v4337.apiCall = v4343; +v4336._events = v4337; +v4336.MONITOR_EVENTS_BUBBLE = v4339; +v4336.CALL_EVENTS_BUBBLE = v4344; +v4333.prototype = v4336; +v4333.__super__ = v299; +const v4346 = {}; +v4346[\\"2016-04-18\\"] = null; +v4333.services = v4346; +const v4347 = []; +v4347.push(\\"2016-04-18\\"); +v4333.apiVersions = v4347; +v4333.serviceIdentifier = \\"cognitoidentityserviceprovider\\"; +v2.CognitoIdentityServiceProvider = v4333; +var v4348; +var v4349 = v299; +var v4350 = v31; +v4348 = function () { if (v4349 !== v4350) { + return v4349.apply(this, arguments); +} }; +const v4351 = Object.create(v309); +v4351.constructor = v4348; +const v4352 = {}; +const v4353 = []; +var v4354; +var v4355 = v31; +var v4356 = v4351; +v4354 = function EVENTS_BUBBLE(event) { var baseClass = v4355.getPrototypeOf(v4356); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4357 = {}; +v4357.constructor = v4354; +v4354.prototype = v4357; +v4353.push(v4354); +v4352.apiCallAttempt = v4353; +const v4358 = []; +var v4359; +v4359 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4340.getPrototypeOf(v4356); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4360 = {}; +v4360.constructor = v4359; +v4359.prototype = v4360; +v4358.push(v4359); +v4352.apiCall = v4358; +v4351._events = v4352; +v4351.MONITOR_EVENTS_BUBBLE = v4354; +v4351.CALL_EVENTS_BUBBLE = v4359; +v4348.prototype = v4351; +v4348.__super__ = v299; +const v4361 = {}; +v4361[\\"2014-06-30\\"] = null; +v4348.services = v4361; +const v4362 = []; +v4362.push(\\"2014-06-30\\"); +v4348.apiVersions = v4362; +v4348.serviceIdentifier = \\"cognitosync\\"; +v2.CognitoSync = v4348; +var v4363; +var v4364 = v299; +var v4365 = v31; +v4363 = function () { if (v4364 !== v4365) { + return v4364.apply(this, arguments); +} }; +const v4366 = Object.create(v309); +v4366.constructor = v4363; +const v4367 = {}; +const v4368 = []; +var v4369; +var v4370 = v31; +var v4371 = v4366; +v4369 = function EVENTS_BUBBLE(event) { var baseClass = v4370.getPrototypeOf(v4371); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4372 = {}; +v4372.constructor = v4369; +v4369.prototype = v4372; +v4368.push(v4369); +v4367.apiCallAttempt = v4368; +const v4373 = []; +var v4374; +v4374 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4355.getPrototypeOf(v4371); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4375 = {}; +v4375.constructor = v4374; +v4374.prototype = v4375; +v4373.push(v4374); +v4367.apiCall = v4373; +v4366._events = v4367; +v4366.MONITOR_EVENTS_BUBBLE = v4369; +v4366.CALL_EVENTS_BUBBLE = v4374; +v4363.prototype = v4366; +v4363.__super__ = v299; +const v4376 = {}; +v4376[\\"2014-11-12\\"] = null; +v4363.services = v4376; +const v4377 = []; +v4377.push(\\"2014-11-12\\"); +v4363.apiVersions = v4377; +v4363.serviceIdentifier = \\"configservice\\"; +v2.ConfigService = v4363; +var v4378; +var v4379 = v299; +var v4380 = v31; +v4378 = function () { if (v4379 !== v4380) { + return v4379.apply(this, arguments); +} }; +const v4381 = Object.create(v309); +v4381.constructor = v4378; +const v4382 = {}; +const v4383 = []; +var v4384; +var v4385 = v31; +var v4386 = v4381; +v4384 = function EVENTS_BUBBLE(event) { var baseClass = v4385.getPrototypeOf(v4386); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4387 = {}; +v4387.constructor = v4384; +v4384.prototype = v4387; +v4383.push(v4384); +v4382.apiCallAttempt = v4383; +const v4388 = []; +var v4389; +v4389 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4370.getPrototypeOf(v4386); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4390 = {}; +v4390.constructor = v4389; +v4389.prototype = v4390; +v4388.push(v4389); +v4382.apiCall = v4388; +v4381._events = v4382; +v4381.MONITOR_EVENTS_BUBBLE = v4384; +v4381.CALL_EVENTS_BUBBLE = v4389; +v4378.prototype = v4381; +v4378.__super__ = v299; +const v4391 = {}; +v4391[\\"2017-01-06\\"] = null; +v4378.services = v4391; +const v4392 = []; +v4392.push(\\"2017-01-06\\"); +v4378.apiVersions = v4392; +v4378.serviceIdentifier = \\"cur\\"; +v2.CUR = v4378; +var v4393; +var v4394 = v299; +var v4395 = v31; +v4393 = function () { if (v4394 !== v4395) { + return v4394.apply(this, arguments); +} }; +const v4396 = Object.create(v309); +v4396.constructor = v4393; +const v4397 = {}; +const v4398 = []; +var v4399; +var v4400 = v31; +var v4401 = v4396; +v4399 = function EVENTS_BUBBLE(event) { var baseClass = v4400.getPrototypeOf(v4401); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4402 = {}; +v4402.constructor = v4399; +v4399.prototype = v4402; +v4398.push(v4399); +v4397.apiCallAttempt = v4398; +const v4403 = []; +var v4404; +v4404 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4385.getPrototypeOf(v4401); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4405 = {}; +v4405.constructor = v4404; +v4404.prototype = v4405; +v4403.push(v4404); +v4397.apiCall = v4403; +v4396._events = v4397; +v4396.MONITOR_EVENTS_BUBBLE = v4399; +v4396.CALL_EVENTS_BUBBLE = v4404; +v4393.prototype = v4396; +v4393.__super__ = v299; +const v4406 = {}; +v4406[\\"2012-10-29\\"] = null; +v4393.services = v4406; +const v4407 = []; +v4407.push(\\"2012-10-29\\"); +v4393.apiVersions = v4407; +v4393.serviceIdentifier = \\"datapipeline\\"; +v2.DataPipeline = v4393; +var v4408; +var v4409 = v299; +var v4410 = v31; +v4408 = function () { if (v4409 !== v4410) { + return v4409.apply(this, arguments); +} }; +const v4411 = Object.create(v309); +v4411.constructor = v4408; +const v4412 = {}; +const v4413 = []; +var v4414; +var v4415 = v31; +var v4416 = v4411; +v4414 = function EVENTS_BUBBLE(event) { var baseClass = v4415.getPrototypeOf(v4416); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4417 = {}; +v4417.constructor = v4414; +v4414.prototype = v4417; +v4413.push(v4414); +v4412.apiCallAttempt = v4413; +const v4418 = []; +var v4419; +v4419 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4400.getPrototypeOf(v4416); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4420 = {}; +v4420.constructor = v4419; +v4419.prototype = v4420; +v4418.push(v4419); +v4412.apiCall = v4418; +v4411._events = v4412; +v4411.MONITOR_EVENTS_BUBBLE = v4414; +v4411.CALL_EVENTS_BUBBLE = v4419; +v4408.prototype = v4411; +v4408.__super__ = v299; +const v4421 = {}; +v4421[\\"2015-06-23\\"] = null; +v4408.services = v4421; +const v4422 = []; +v4422.push(\\"2015-06-23\\"); +v4408.apiVersions = v4422; +v4408.serviceIdentifier = \\"devicefarm\\"; +v2.DeviceFarm = v4408; +var v4423; +var v4424 = v299; +var v4425 = v31; +v4423 = function () { if (v4424 !== v4425) { + return v4424.apply(this, arguments); +} }; +const v4426 = Object.create(v309); +v4426.constructor = v4423; +const v4427 = {}; +const v4428 = []; +var v4429; +var v4430 = v31; +var v4431 = v4426; +v4429 = function EVENTS_BUBBLE(event) { var baseClass = v4430.getPrototypeOf(v4431); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4432 = {}; +v4432.constructor = v4429; +v4429.prototype = v4432; +v4428.push(v4429); +v4427.apiCallAttempt = v4428; +const v4433 = []; +var v4434; +v4434 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4415.getPrototypeOf(v4431); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4435 = {}; +v4435.constructor = v4434; +v4434.prototype = v4435; +v4433.push(v4434); +v4427.apiCall = v4433; +v4426._events = v4427; +v4426.MONITOR_EVENTS_BUBBLE = v4429; +v4426.CALL_EVENTS_BUBBLE = v4434; +v4423.prototype = v4426; +v4423.__super__ = v299; +const v4436 = {}; +v4436[\\"2012-10-25\\"] = null; +v4423.services = v4436; +const v4437 = []; +v4437.push(\\"2012-10-25\\"); +v4423.apiVersions = v4437; +v4423.serviceIdentifier = \\"directconnect\\"; +v2.DirectConnect = v4423; +var v4438; +var v4439 = v299; +var v4440 = v31; +v4438 = function () { if (v4439 !== v4440) { + return v4439.apply(this, arguments); +} }; +const v4441 = Object.create(v309); +v4441.constructor = v4438; +const v4442 = {}; +const v4443 = []; +var v4444; +var v4445 = v31; +var v4446 = v4441; +v4444 = function EVENTS_BUBBLE(event) { var baseClass = v4445.getPrototypeOf(v4446); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4447 = {}; +v4447.constructor = v4444; +v4444.prototype = v4447; +v4443.push(v4444); +v4442.apiCallAttempt = v4443; +const v4448 = []; +var v4449; +v4449 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4430.getPrototypeOf(v4446); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4450 = {}; +v4450.constructor = v4449; +v4449.prototype = v4450; +v4448.push(v4449); +v4442.apiCall = v4448; +v4441._events = v4442; +v4441.MONITOR_EVENTS_BUBBLE = v4444; +v4441.CALL_EVENTS_BUBBLE = v4449; +v4438.prototype = v4441; +v4438.__super__ = v299; +const v4451 = {}; +v4451[\\"2015-04-16\\"] = null; +v4438.services = v4451; +const v4452 = []; +v4452.push(\\"2015-04-16\\"); +v4438.apiVersions = v4452; +v4438.serviceIdentifier = \\"directoryservice\\"; +v2.DirectoryService = v4438; +var v4453; +var v4454 = v299; +var v4455 = v31; +v4453 = function () { if (v4454 !== v4455) { + return v4454.apply(this, arguments); +} }; +const v4456 = Object.create(v309); +v4456.constructor = v4453; +const v4457 = {}; +const v4458 = []; +var v4459; +var v4460 = v31; +var v4461 = v4456; +v4459 = function EVENTS_BUBBLE(event) { var baseClass = v4460.getPrototypeOf(v4461); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4462 = {}; +v4462.constructor = v4459; +v4459.prototype = v4462; +v4458.push(v4459); +v4457.apiCallAttempt = v4458; +const v4463 = []; +var v4464; +v4464 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4445.getPrototypeOf(v4461); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4465 = {}; +v4465.constructor = v4464; +v4464.prototype = v4465; +v4463.push(v4464); +v4457.apiCall = v4463; +v4456._events = v4457; +v4456.MONITOR_EVENTS_BUBBLE = v4459; +v4456.CALL_EVENTS_BUBBLE = v4464; +v4453.prototype = v4456; +v4453.__super__ = v299; +const v4466 = {}; +v4466[\\"2015-11-01\\"] = null; +v4453.services = v4466; +const v4467 = []; +v4467.push(\\"2015-11-01\\"); +v4453.apiVersions = v4467; +v4453.serviceIdentifier = \\"discovery\\"; +v2.Discovery = v4453; +var v4468; +var v4469 = v299; +var v4470 = v31; +v4468 = function () { if (v4469 !== v4470) { + return v4469.apply(this, arguments); +} }; +const v4471 = Object.create(v309); +v4471.constructor = v4468; +const v4472 = {}; +const v4473 = []; +var v4474; +var v4475 = v31; +var v4476 = v4471; +v4474 = function EVENTS_BUBBLE(event) { var baseClass = v4475.getPrototypeOf(v4476); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4477 = {}; +v4477.constructor = v4474; +v4474.prototype = v4477; +v4473.push(v4474); +v4472.apiCallAttempt = v4473; +const v4478 = []; +var v4479; +v4479 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4460.getPrototypeOf(v4476); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4480 = {}; +v4480.constructor = v4479; +v4479.prototype = v4480; +v4478.push(v4479); +v4472.apiCall = v4478; +v4471._events = v4472; +v4471.MONITOR_EVENTS_BUBBLE = v4474; +v4471.CALL_EVENTS_BUBBLE = v4479; +v4468.prototype = v4471; +v4468.__super__ = v299; +const v4481 = {}; +v4481[\\"2016-01-01\\"] = null; +v4468.services = v4481; +const v4482 = []; +v4482.push(\\"2016-01-01\\"); +v4468.apiVersions = v4482; +v4468.serviceIdentifier = \\"dms\\"; +v2.DMS = v4468; +var v4483; +var v4484 = v299; +var v4485 = v31; +v4483 = function () { if (v4484 !== v4485) { + return v4484.apply(this, arguments); +} }; +const v4486 = Object.create(v309); +v4486.constructor = v4483; +const v4487 = {}; +const v4488 = []; +var v4489; +var v4490 = v31; +var v4491 = v4486; +v4489 = function EVENTS_BUBBLE(event) { var baseClass = v4490.getPrototypeOf(v4491); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4492 = {}; +v4492.constructor = v4489; +v4489.prototype = v4492; +v4488.push(v4489); +v4487.apiCallAttempt = v4488; +const v4493 = []; +var v4494; +v4494 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4475.getPrototypeOf(v4491); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4495 = {}; +v4495.constructor = v4494; +v4494.prototype = v4495; +v4493.push(v4494); +v4487.apiCall = v4493; +v4486._events = v4487; +v4486.MONITOR_EVENTS_BUBBLE = v4489; +v4486.CALL_EVENTS_BUBBLE = v4494; +var v4496; +v4496 = function setupRequestListeners(request) { if (request.service.config.dynamoDbCrc32) { + request.removeListener(\\"extractData\\", v1903.EXTRACT_DATA); + request.addListener(\\"extractData\\", this.checkCrc32); + request.addListener(\\"extractData\\", v1903.EXTRACT_DATA); +} }; +const v4497 = {}; +v4497.constructor = v4496; +v4496.prototype = v4497; +v4486.setupRequestListeners = v4496; +var v4498; +var v4499 = v40; +v4498 = function checkCrc32(resp) { if (!resp.httpResponse.streaming && !resp.request.service.crc32IsValid(resp)) { + resp.data = null; + resp.error = v3.error(new v4499(), { code: \\"CRC32CheckFailed\\", message: \\"CRC32 integrity check failed\\", retryable: true }); + resp.request.haltHandlersOnError(); + throw (resp.error); +} }; +const v4500 = {}; +v4500.constructor = v4498; +v4498.prototype = v4500; +v4486.checkCrc32 = v4498; +var v4501; +var v4502 = v117; +v4501 = function crc32IsValid(resp) { var crc = resp.httpResponse.headers[\\"x-amz-crc32\\"]; if (!crc) + return true; return v4502(crc, 10) === v91.crc32(resp.httpResponse.body); }; +const v4503 = {}; +v4503.constructor = v4501; +v4501.prototype = v4503; +v4486.crc32IsValid = v4501; +v4486.defaultRetryCount = 10; +var v4504; +v4504 = function retryDelays(retryCount, err) { var retryDelayOptions = v3.copy(this.config.retryDelayOptions); if (typeof retryDelayOptions.base !== \\"number\\") { + retryDelayOptions.base = 50; +} var delay = v3.calculateRetryDelay(retryCount, retryDelayOptions, err); return delay; }; +const v4505 = {}; +v4505.constructor = v4504; +v4504.prototype = v4505; +v4486.retryDelays = v4504; +v4483.prototype = v4486; +v4483.__super__ = v299; +const v4506 = {}; +v4506[\\"2011-12-05\\"] = null; +var v4507; +var v4508 = v4483; +var v4509 = v31; +v4507 = function () { if (v4508 !== v4509) { + return v4508.apply(this, arguments); +} }; +const v4510 = Object.create(v4486); +v4510.serviceIdentifier = \\"dynamodb\\"; +v4510.constructor = v4507; +const v4511 = Object.create(v2532); +v4511.isApi = true; +v4511.apiVersion = \\"2012-08-10\\"; +v4511.endpointPrefix = \\"dynamodb\\"; +v4511.signingName = undefined; +v4511.globalEndpoint = undefined; +v4511.signatureVersion = \\"v4\\"; +v4511.jsonVersion = \\"1.0\\"; +v4511.targetPrefix = \\"DynamoDB_20120810\\"; +v4511.protocol = \\"json\\"; +v4511.timestampFormat = undefined; +v4511.xmlNamespaceUri = undefined; +v4511.abbreviation = \\"DynamoDB\\"; +v4511.fullName = \\"Amazon DynamoDB\\"; +v4511.serviceId = \\"DynamoDB\\"; +v4511.xmlNoDefaultLists = undefined; +v4511.hasRequiredEndpointDiscovery = false; +v4511.endpointOperation = \\"describeEndpoints\\"; +const v4512 = Object.create(v889); +v4511.operations = v4512; +const v4513 = Object.create(v889); +v4511.shapes = v4513; +const v4514 = Object.create(v889); +v4511.paginators = v4514; +const v4515 = Object.create(v889); +v4511.waiters = v4515; +v4511.errorCodeMapping = undefined; +v4510.api = v4511; +var v4516; +var v4517 = \\"batchExecuteStatement\\"; +v4516 = function (params, callback) { return this.makeRequest(v4517, params, callback); }; +const v4518 = {}; +v4518.constructor = v4516; +v4516.prototype = v4518; +v4510.batchExecuteStatement = v4516; +var v4519; +var v4520 = \\"batchGetItem\\"; +v4519 = function (params, callback) { return this.makeRequest(v4520, params, callback); }; +const v4521 = {}; +v4521.constructor = v4519; +v4519.prototype = v4521; +v4510.batchGetItem = v4519; +var v4522; +var v4523 = \\"batchWriteItem\\"; +v4522 = function (params, callback) { return this.makeRequest(v4523, params, callback); }; +const v4524 = {}; +v4524.constructor = v4522; +v4522.prototype = v4524; +v4510.batchWriteItem = v4522; +var v4525; +var v4526 = \\"createBackup\\"; +v4525 = function (params, callback) { return this.makeRequest(v4526, params, callback); }; +const v4527 = {}; +v4527.constructor = v4525; +v4525.prototype = v4527; +v4510.createBackup = v4525; +var v4528; +var v4529 = \\"createGlobalTable\\"; +v4528 = function (params, callback) { return this.makeRequest(v4529, params, callback); }; +const v4530 = {}; +v4530.constructor = v4528; +v4528.prototype = v4530; +v4510.createGlobalTable = v4528; +var v4531; +var v4532 = \\"createTable\\"; +v4531 = function (params, callback) { return this.makeRequest(v4532, params, callback); }; +const v4533 = {}; +v4533.constructor = v4531; +v4531.prototype = v4533; +v4510.createTable = v4531; +var v4534; +var v4535 = \\"deleteBackup\\"; +v4534 = function (params, callback) { return this.makeRequest(v4535, params, callback); }; +const v4536 = {}; +v4536.constructor = v4534; +v4534.prototype = v4536; +v4510.deleteBackup = v4534; +var v4537; +var v4538 = \\"deleteItem\\"; +v4537 = function (params, callback) { return this.makeRequest(v4538, params, callback); }; +const v4539 = {}; +v4539.constructor = v4537; +v4537.prototype = v4539; +v4510.deleteItem = v4537; +var v4540; +var v4541 = \\"deleteTable\\"; +v4540 = function (params, callback) { return this.makeRequest(v4541, params, callback); }; +const v4542 = {}; +v4542.constructor = v4540; +v4540.prototype = v4542; +v4510.deleteTable = v4540; +var v4543; +var v4544 = \\"describeBackup\\"; +v4543 = function (params, callback) { return this.makeRequest(v4544, params, callback); }; +const v4545 = {}; +v4545.constructor = v4543; +v4543.prototype = v4545; +v4510.describeBackup = v4543; +var v4546; +var v4547 = \\"describeContinuousBackups\\"; +v4546 = function (params, callback) { return this.makeRequest(v4547, params, callback); }; +const v4548 = {}; +v4548.constructor = v4546; +v4546.prototype = v4548; +v4510.describeContinuousBackups = v4546; +var v4549; +var v4550 = \\"describeContributorInsights\\"; +v4549 = function (params, callback) { return this.makeRequest(v4550, params, callback); }; +const v4551 = {}; +v4551.constructor = v4549; +v4549.prototype = v4551; +v4510.describeContributorInsights = v4549; +var v4552; +var v4553 = \\"describeEndpoints\\"; +v4552 = function (params, callback) { return this.makeRequest(v4553, params, callback); }; +const v4554 = {}; +v4554.constructor = v4552; +v4552.prototype = v4554; +v4510.describeEndpoints = v4552; +var v4555; +var v4556 = \\"describeExport\\"; +v4555 = function (params, callback) { return this.makeRequest(v4556, params, callback); }; +const v4557 = {}; +v4557.constructor = v4555; +v4555.prototype = v4557; +v4510.describeExport = v4555; +var v4558; +var v4559 = \\"describeGlobalTable\\"; +v4558 = function (params, callback) { return this.makeRequest(v4559, params, callback); }; +const v4560 = {}; +v4560.constructor = v4558; +v4558.prototype = v4560; +v4510.describeGlobalTable = v4558; +var v4561; +var v4562 = \\"describeGlobalTableSettings\\"; +v4561 = function (params, callback) { return this.makeRequest(v4562, params, callback); }; +const v4563 = {}; +v4563.constructor = v4561; +v4561.prototype = v4563; +v4510.describeGlobalTableSettings = v4561; +var v4564; +var v4565 = \\"describeKinesisStreamingDestination\\"; +v4564 = function (params, callback) { return this.makeRequest(v4565, params, callback); }; +const v4566 = {}; +v4566.constructor = v4564; +v4564.prototype = v4566; +v4510.describeKinesisStreamingDestination = v4564; +var v4567; +var v4568 = \\"describeLimits\\"; +v4567 = function (params, callback) { return this.makeRequest(v4568, params, callback); }; +const v4569 = {}; +v4569.constructor = v4567; +v4567.prototype = v4569; +v4510.describeLimits = v4567; +var v4570; +var v4571 = \\"describeTable\\"; +v4570 = function (params, callback) { return this.makeRequest(v4571, params, callback); }; +const v4572 = {}; +v4572.constructor = v4570; +v4570.prototype = v4572; +v4510.describeTable = v4570; +var v4573; +var v4574 = \\"describeTableReplicaAutoScaling\\"; +v4573 = function (params, callback) { return this.makeRequest(v4574, params, callback); }; +const v4575 = {}; +v4575.constructor = v4573; +v4573.prototype = v4575; +v4510.describeTableReplicaAutoScaling = v4573; +var v4576; +var v4577 = \\"describeTimeToLive\\"; +v4576 = function (params, callback) { return this.makeRequest(v4577, params, callback); }; +const v4578 = {}; +v4578.constructor = v4576; +v4576.prototype = v4578; +v4510.describeTimeToLive = v4576; +var v4579; +var v4580 = \\"disableKinesisStreamingDestination\\"; +v4579 = function (params, callback) { return this.makeRequest(v4580, params, callback); }; +const v4581 = {}; +v4581.constructor = v4579; +v4579.prototype = v4581; +v4510.disableKinesisStreamingDestination = v4579; +var v4582; +var v4583 = \\"enableKinesisStreamingDestination\\"; +v4582 = function (params, callback) { return this.makeRequest(v4583, params, callback); }; +const v4584 = {}; +v4584.constructor = v4582; +v4582.prototype = v4584; +v4510.enableKinesisStreamingDestination = v4582; +var v4585; +var v4586 = \\"executeStatement\\"; +v4585 = function (params, callback) { return this.makeRequest(v4586, params, callback); }; +const v4587 = {}; +v4587.constructor = v4585; +v4585.prototype = v4587; +v4510.executeStatement = v4585; +var v4588; +var v4589 = \\"executeTransaction\\"; +v4588 = function (params, callback) { return this.makeRequest(v4589, params, callback); }; +const v4590 = {}; +v4590.constructor = v4588; +v4588.prototype = v4590; +v4510.executeTransaction = v4588; +var v4591; +var v4592 = \\"exportTableToPointInTime\\"; +v4591 = function (params, callback) { return this.makeRequest(v4592, params, callback); }; +const v4593 = {}; +v4593.constructor = v4591; +v4591.prototype = v4593; +v4510.exportTableToPointInTime = v4591; +var v4594; +var v4595 = \\"getItem\\"; +v4594 = function (params, callback) { return this.makeRequest(v4595, params, callback); }; +const v4596 = {}; +v4596.constructor = v4594; +v4594.prototype = v4596; +v4510.getItem = v4594; +var v4597; +var v4598 = \\"listBackups\\"; +v4597 = function (params, callback) { return this.makeRequest(v4598, params, callback); }; +const v4599 = {}; +v4599.constructor = v4597; +v4597.prototype = v4599; +v4510.listBackups = v4597; +var v4600; +var v4601 = \\"listContributorInsights\\"; +v4600 = function (params, callback) { return this.makeRequest(v4601, params, callback); }; +const v4602 = {}; +v4602.constructor = v4600; +v4600.prototype = v4602; +v4510.listContributorInsights = v4600; +var v4603; +var v4604 = \\"listExports\\"; +v4603 = function (params, callback) { return this.makeRequest(v4604, params, callback); }; +const v4605 = {}; +v4605.constructor = v4603; +v4603.prototype = v4605; +v4510.listExports = v4603; +var v4606; +var v4607 = \\"listGlobalTables\\"; +v4606 = function (params, callback) { return this.makeRequest(v4607, params, callback); }; +const v4608 = {}; +v4608.constructor = v4606; +v4606.prototype = v4608; +v4510.listGlobalTables = v4606; +var v4609; +var v4610 = \\"listTables\\"; +v4609 = function (params, callback) { return this.makeRequest(v4610, params, callback); }; +const v4611 = {}; +v4611.constructor = v4609; +v4609.prototype = v4611; +v4510.listTables = v4609; +var v4612; +var v4613 = \\"listTagsOfResource\\"; +v4612 = function (params, callback) { return this.makeRequest(v4613, params, callback); }; +const v4614 = {}; +v4614.constructor = v4612; +v4612.prototype = v4614; +v4510.listTagsOfResource = v4612; +var v4615; +var v4616 = \\"putItem\\"; +v4615 = function (params, callback) { return this.makeRequest(v4616, params, callback); }; +const v4617 = {}; +v4617.constructor = v4615; +v4615.prototype = v4617; +v4510.putItem = v4615; +var v4618; +var v4619 = \\"query\\"; +v4618 = function (params, callback) { return this.makeRequest(v4619, params, callback); }; +const v4620 = {}; +v4620.constructor = v4618; +v4618.prototype = v4620; +v4510.query = v4618; +var v4621; +var v4622 = \\"restoreTableFromBackup\\"; +v4621 = function (params, callback) { return this.makeRequest(v4622, params, callback); }; +const v4623 = {}; +v4623.constructor = v4621; +v4621.prototype = v4623; +v4510.restoreTableFromBackup = v4621; +var v4624; +var v4625 = \\"restoreTableToPointInTime\\"; +v4624 = function (params, callback) { return this.makeRequest(v4625, params, callback); }; +const v4626 = {}; +v4626.constructor = v4624; +v4624.prototype = v4626; +v4510.restoreTableToPointInTime = v4624; +var v4627; +var v4628 = \\"scan\\"; +v4627 = function (params, callback) { return this.makeRequest(v4628, params, callback); }; +const v4629 = {}; +v4629.constructor = v4627; +v4627.prototype = v4629; +v4510.scan = v4627; +var v4630; +var v4631 = \\"tagResource\\"; +v4630 = function (params, callback) { return this.makeRequest(v4631, params, callback); }; +const v4632 = {}; +v4632.constructor = v4630; +v4630.prototype = v4632; +v4510.tagResource = v4630; +var v4633; +var v4634 = \\"transactGetItems\\"; +v4633 = function (params, callback) { return this.makeRequest(v4634, params, callback); }; +const v4635 = {}; +v4635.constructor = v4633; +v4633.prototype = v4635; +v4510.transactGetItems = v4633; +var v4636; +var v4637 = \\"transactWriteItems\\"; +v4636 = function (params, callback) { return this.makeRequest(v4637, params, callback); }; +const v4638 = {}; +v4638.constructor = v4636; +v4636.prototype = v4638; +v4510.transactWriteItems = v4636; +var v4639; +var v4640 = \\"untagResource\\"; +v4639 = function (params, callback) { return this.makeRequest(v4640, params, callback); }; +const v4641 = {}; +v4641.constructor = v4639; +v4639.prototype = v4641; +v4510.untagResource = v4639; +var v4642; +var v4643 = \\"updateContinuousBackups\\"; +v4642 = function (params, callback) { return this.makeRequest(v4643, params, callback); }; +const v4644 = {}; +v4644.constructor = v4642; +v4642.prototype = v4644; +v4510.updateContinuousBackups = v4642; +var v4645; +var v4646 = \\"updateContributorInsights\\"; +v4645 = function (params, callback) { return this.makeRequest(v4646, params, callback); }; +const v4647 = {}; +v4647.constructor = v4645; +v4645.prototype = v4647; +v4510.updateContributorInsights = v4645; +var v4648; +var v4649 = \\"updateGlobalTable\\"; +v4648 = function (params, callback) { return this.makeRequest(v4649, params, callback); }; +const v4650 = {}; +v4650.constructor = v4648; +v4648.prototype = v4650; +v4510.updateGlobalTable = v4648; +var v4651; +var v4652 = \\"updateGlobalTableSettings\\"; +v4651 = function (params, callback) { return this.makeRequest(v4652, params, callback); }; +const v4653 = {}; +v4653.constructor = v4651; +v4651.prototype = v4653; +v4510.updateGlobalTableSettings = v4651; +var v4654; +var v4655 = \\"updateItem\\"; +v4654 = function (params, callback) { return this.makeRequest(v4655, params, callback); }; +const v4656 = {}; +v4656.constructor = v4654; +v4654.prototype = v4656; +v4510.updateItem = v4654; +var v4657; +var v4658 = \\"updateTable\\"; +v4657 = function (params, callback) { return this.makeRequest(v4658, params, callback); }; +const v4659 = {}; +v4659.constructor = v4657; +v4657.prototype = v4659; +v4510.updateTable = v4657; +var v4660; +var v4661 = \\"updateTableReplicaAutoScaling\\"; +v4660 = function (params, callback) { return this.makeRequest(v4661, params, callback); }; +const v4662 = {}; +v4662.constructor = v4660; +v4660.prototype = v4662; +v4510.updateTableReplicaAutoScaling = v4660; +var v4663; +var v4664 = \\"updateTimeToLive\\"; +v4663 = function (params, callback) { return this.makeRequest(v4664, params, callback); }; +const v4665 = {}; +v4665.constructor = v4663; +v4663.prototype = v4665; +v4510.updateTimeToLive = v4663; +v4507.prototype = v4510; +v4507.__super__ = v4483; +v4506[\\"2012-08-10\\"] = v4507; +v4483.services = v4506; +const v4666 = []; +v4666.push(\\"2011-12-05\\", \\"2012-08-10\\"); +v4483.apiVersions = v4666; +v4483.serviceIdentifier = \\"dynamodb\\"; +const v4667 = {}; +var v4668; +var v4670; +var v4672; +var v4673 = v3; +var v4674 = v3; +var v4675 = v3; +var v4676 = v3; +v4672 = function isBinary(data) { var types = [\\"Buffer\\", \\"File\\", \\"Blob\\", \\"ArrayBuffer\\", \\"DataView\\", \\"Int8Array\\", \\"Uint8Array\\", \\"Uint8ClampedArray\\", \\"Int16Array\\", \\"Uint16Array\\", \\"Int32Array\\", \\"Uint32Array\\", \\"Float32Array\\", \\"Float64Array\\"]; if (v4673.isNode()) { + var Stream = v4674.stream.Stream; + if (v4675.Buffer.isBuffer(data) || data instanceof Stream) { + return true; + } +} for (var i = 0; i < types.length; i++) { + if (data !== undefined && data.constructor) { + if (v4676.isType(data, types[i])) + return true; + if (v4673.typeName(data.constructor) === types[i]) + return true; + } +} return false; }; +const v4677 = {}; +v4677.constructor = v4672; +v4672.prototype = v4677; +var v4671 = v4672; +var v4678 = v3; +v4670 = function typeOf(data) { if (data === null && typeof data === \\"object\\") { + return \\"null\\"; +} +else if (data !== undefined && v4671(data)) { + return \\"Binary\\"; +} +else if (data !== undefined && data.constructor) { + return data.wrapperName || v4678.typeName(data.constructor); +} +else if (data !== undefined && typeof data === \\"object\\") { + return \\"Object\\"; +} +else { + return \\"undefined\\"; +} }; +const v4679 = {}; +v4679.constructor = v4670; +v4670.prototype = v4679; +var v4669 = v4670; +var v4681; +v4681 = function formatMap(data, options) { var map = { M: {} }; for (var key in data) { + var formatted = v4667.input(data[key], options); + if (formatted !== void 0) { + map[\\"M\\"][key] = formatted; + } +} return map; }; +const v4682 = {}; +v4682.constructor = v4681; +v4681.prototype = v4682; +var v4680 = v4681; +var v4684; +v4684 = function formatList(data, options) { var list = { L: [] }; for (var i = 0; i < data.length; i++) { + list[\\"L\\"].push(v4667.input(data[i], options)); +} return list; }; +const v4685 = {}; +v4685.constructor = v4684; +v4684.prototype = v4685; +var v4683 = v4684; +var v4687; +var v4689; +v4689 = function filterEmptySetValues(set) { var nonEmptyValues = []; var potentiallyEmptyTypes = { String: true, Binary: true, Number: false }; if (potentiallyEmptyTypes[set.type]) { + for (var i = 0; i < set.values.length; i++) { + if (set.values[i].length === 0) { + continue; } - } - transactGetItems(args, optionsOrCb, cb) { - const command = new TransactGetItemsCommand_1.TransactGetItemsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + nonEmptyValues.push(set.values[i]); + } + return nonEmptyValues; +} return set.values; }; +const v4690 = {}; +v4690.constructor = v4689; +v4689.prototype = v4690; +var v4688 = v4689; +v4687 = function formatSet(data, options) { options = options || {}; var values = data.values; if (options.convertEmptyValues) { + values = v4688(data); + if (values.length === 0) { + return v4667.input(null); + } +} var map = {}; switch (data.type) { + case \\"String\\": + map[\\"SS\\"] = values; + break; + case \\"Binary\\": + map[\\"BS\\"] = values; + break; + case \\"Number\\": map[\\"NS\\"] = values.map(function (value) { return value.toString(); }); +} return map; }; +const v4691 = {}; +v4691.constructor = v4687; +v4687.prototype = v4691; +var v4686 = v4687; +var v4692 = v4681; +v4668 = function convertInput(data, options) { options = options || {}; var type = v4669(data); if (type === \\"Object\\") { + return v4680(data, options); +} +else if (type === \\"Array\\") { + return v4683(data, options); +} +else if (type === \\"Set\\") { + return v4686(data, options); +} +else if (type === \\"String\\") { + if (data.length === 0 && options.convertEmptyValues) { + return convertInput(null); + } + return { S: data }; +} +else if (type === \\"Number\\" || type === \\"NumberValue\\") { + return { N: data.toString() }; +} +else if (type === \\"Binary\\") { + if (data.length === 0 && options.convertEmptyValues) { + return convertInput(null); + } + return { B: data }; +} +else if (type === \\"Boolean\\") { + return { BOOL: data }; +} +else if (type === \\"null\\") { + return { NULL: true }; +} +else if (type !== \\"undefined\\" && type !== \\"Function\\") { + return v4692(data, options); +} }; +const v4693 = {}; +v4693.constructor = v4668; +v4668.prototype = v4693; +v4667.input = v4668; +var v4694; +v4694 = function marshallItem(data, options) { return v4667.input(data, options).M; }; +const v4695 = {}; +v4695.constructor = v4694; +v4694.prototype = v4695; +v4667.marshall = v4694; +var v4696; +var v4698; +v4698 = function Set(list, options) { options = options || {}; this.wrapperName = \\"Set\\"; this.initialize(list, options.validate); }; +const v4699 = {}; +v4699.constructor = v4698; +var v4700; +v4700 = function (list, validate) { var self = this; self.values = [].concat(list); self.detectType(); if (validate) { + self.validate(); +} }; +const v4701 = {}; +v4701.constructor = v4700; +v4700.prototype = v4701; +v4699.initialize = v4700; +var v4702; +const v4704 = {}; +v4704.String = \\"String\\"; +v4704.Number = \\"Number\\"; +v4704.NumberValue = \\"Number\\"; +v4704.Binary = \\"Binary\\"; +var v4703 = v4704; +var v4705 = v4670; +var v4706 = v3; +var v4707 = v40; +v4702 = function () { this.type = v4703[v4705(this.values[0])]; if (!this.type) { + throw v4706.error(new v4707(), { code: \\"InvalidSetType\\", message: \\"Sets can contain string, number, or binary values\\" }); +} }; +const v4708 = {}; +v4708.constructor = v4702; +v4702.prototype = v4708; +v4699.detectType = v4702; +var v4709; +var v4710 = v4704; +var v4711 = v4670; +var v4712 = v40; +v4709 = function () { var self = this; var length = self.values.length; var values = self.values; for (var i = 0; i < length; i++) { + if (v4710[v4711(values[i])] !== self.type) { + throw v4706.error(new v4712(), { code: \\"InvalidType\\", message: self.type + \\" Set contains \\" + v4711(values[i]) + \\" value\\" }); + } +} }; +const v4713 = {}; +v4713.constructor = v4709; +v4709.prototype = v4713; +v4699.validate = v4709; +var v4714; +v4714 = function () { var self = this; return self.values; }; +const v4715 = {}; +v4715.constructor = v4714; +v4714.prototype = v4715; +v4699.toJSON = v4714; +v4698.prototype = v4699; +v4698.__super__ = v31; +var v4697 = v4698; +var v4717; +var v4719; +v4719 = function NumberValue(value) { this.wrapperName = \\"NumberValue\\"; this.value = value.toString(); }; +const v4720 = {}; +v4720.constructor = v4719; +var v4721; +v4721 = function () { return this.toNumber(); }; +const v4722 = {}; +v4722.constructor = v4721; +v4721.prototype = v4722; +v4720.toJSON = v4721; +var v4723; +const v4725 = Number; +var v4724 = v4725; +v4723 = function () { return v4724(this.value); }; +const v4726 = {}; +v4726.constructor = v4723; +v4723.prototype = v4726; +v4720.toNumber = v4723; +var v4727; +v4727 = function () { return this.value; }; +const v4728 = {}; +v4728.constructor = v4727; +v4727.prototype = v4728; +v4720.toString = v4727; +v4719.prototype = v4720; +v4719.__super__ = v31; +var v4718 = v4719; +var v4729 = v4725; +v4717 = function convertNumber(value, wrapNumbers) { return wrapNumbers ? new v4718(value) : v4729(value); }; +const v4730 = {}; +v4730.constructor = v4717; +v4717.prototype = v4730; +var v4716 = v4717; +var v4731 = v4698; +var v4732 = v4698; +var v4733 = v4717; +v4696 = function convertOutput(data, options) { options = options || {}; var list, map, i; for (var type in data) { + var values = data[type]; + if (type === \\"M\\") { + map = {}; + for (var key in values) { + map[key] = convertOutput(values[key], options); + } + return map; + } + else if (type === \\"L\\") { + list = []; + for (i = 0; i < values.length; i++) { + list.push(convertOutput(values[i], options)); } - } - transactWriteItems(args, optionsOrCb, cb) { - const command = new TransactWriteItemsCommand_1.TransactWriteItemsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return list; + } + else if (type === \\"SS\\") { + list = []; + for (i = 0; i < values.length; i++) { + list.push(values[i] + \\"\\"); } - } - untagResource(args, optionsOrCb, cb) { - const command = new UntagResourceCommand_1.UntagResourceCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return new v4697(list); + } + else if (type === \\"NS\\") { + list = []; + for (i = 0; i < values.length; i++) { + list.push(v4716(values[i], options.wrapNumbers)); } - } - updateContinuousBackups(args, optionsOrCb, cb) { - const command = new UpdateContinuousBackupsCommand_1.UpdateContinuousBackupsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return new v4731(list); + } + else if (type === \\"BS\\") { + list = []; + for (i = 0; i < values.length; i++) { + list.push(v41.toBuffer(values[i])); } - } - updateContributorInsights(args, optionsOrCb, cb) { - const command = new UpdateContributorInsightsCommand_1.UpdateContributorInsightsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + return new v4732(list); + } + else if (type === \\"S\\") { + return values + \\"\\"; + } + else if (type === \\"N\\") { + return v4733(values, options.wrapNumbers); + } + else if (type === \\"B\\") { + return v41.toBuffer(values); + } + else if (type === \\"BOOL\\") { + return (values === \\"true\\" || values === \\"TRUE\\" || values === true); + } + else if (type === \\"NULL\\") { + return null; + } +} }; +const v4734 = {}; +v4734.constructor = v4696; +v4696.prototype = v4734; +v4667.output = v4696; +var v4735; +v4735 = function unmarshall(data, options) { return v4667.output({ M: data }, options); }; +const v4736 = {}; +v4736.constructor = v4735; +v4735.prototype = v4736; +v4667.unmarshall = v4735; +v4483.Converter = v4667; +var v4737; +v4737 = function DocumentClient(options) { var self = this; self.options = options || {}; self.configure(self.options); }; +const v4738 = {}; +v4738.constructor = v4737; +var v4739; +v4739 = function configure(options) { var self = this; self.service = options.service; self.bindServiceObject(options); self.attrValue = options.attrValue = self.service.api.operations.putItem.input.members.Item.value.shape; }; +const v4740 = {}; +v4740.constructor = v4739; +v4739.prototype = v4740; +v4738.configure = v4739; +var v4741; +var v4742 = v2; +v4741 = function bindServiceObject(options) { var self = this; options = options || {}; if (!self.service) { + self.service = new v4742.DynamoDB(options); +} +else { + var config = v3.copy(self.service.config); + self.service = new self.service.constructor.__super__(config); + self.service.config.params = v3.merge(self.service.config.params || {}, options.params); +} }; +const v4743 = {}; +v4743.constructor = v4741; +v4741.prototype = v4743; +v4738.bindServiceObject = v4741; +var v4744; +v4744 = function (operation, params, callback) { var self = this; var request = self.service[operation](params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === \\"function\\") { + request.send(callback); +} return request; }; +const v4745 = {}; +v4745.constructor = v4744; +v4744.prototype = v4745; +v4738.makeServiceRequest = v4744; +const v4746 = {}; +v4746.batchGet = \\"batchGetItem\\"; +v4746.batchWrite = \\"batchWriteItem\\"; +v4746.delete = \\"deleteItem\\"; +v4746.get = \\"getItem\\"; +v4746.put = \\"putItem\\"; +v4746.query = \\"query\\"; +v4746.scan = \\"scan\\"; +v4746.update = \\"updateItem\\"; +v4746.transactGet = \\"transactGetItems\\"; +v4746.transactWrite = \\"transactWriteItems\\"; +v4738.serviceClientOperationsMap = v4746; +var v4747; +v4747 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"batchGet\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4748 = {}; +v4748.constructor = v4747; +v4747.prototype = v4748; +v4738.batchGet = v4747; +var v4749; +v4749 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"batchWrite\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4750 = {}; +v4750.constructor = v4749; +v4749.prototype = v4750; +v4738.batchWrite = v4749; +var v4751; +v4751 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"delete\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4752 = {}; +v4752.constructor = v4751; +v4751.prototype = v4752; +v4738.delete = v4751; +var v4753; +v4753 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"get\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4754 = {}; +v4754.constructor = v4753; +v4753.prototype = v4754; +v4738.get = v4753; +var v4755; +v4755 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"put\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4756 = {}; +v4756.constructor = v4755; +v4755.prototype = v4756; +v4738.put = v4755; +var v4757; +v4757 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"update\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4758 = {}; +v4758.constructor = v4757; +v4757.prototype = v4758; +v4738.update = v4757; +var v4759; +v4759 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"scan\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4760 = {}; +v4760.constructor = v4759; +v4759.prototype = v4760; +v4738.scan = v4759; +var v4761; +v4761 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"query\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4762 = {}; +v4762.constructor = v4761; +v4761.prototype = v4762; +v4738.query = v4761; +var v4763; +v4763 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"transactWrite\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4764 = {}; +v4764.constructor = v4763; +v4763.prototype = v4764; +v4738.transactWrite = v4763; +var v4765; +v4765 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"transactGet\\"]; return this.makeServiceRequest(operation, params, callback); }; +const v4766 = {}; +v4766.constructor = v4765; +v4765.prototype = v4766; +v4738.transactGet = v4765; +var v4767; +var v4768 = v4698; +v4767 = function (list, options) { options = options || {}; return new v4768(list, options); }; +const v4769 = {}; +v4769.constructor = v4767; +v4767.prototype = v4769; +v4738.createSet = v4767; +var v4770; +var v4772; +var v4773 = v282; +var v4774 = v282; +v4772 = function (options) { options = options || {}; this.attrValue = options.attrValue; this.convertEmptyValues = v4773(options.convertEmptyValues); this.wrapNumbers = v4774(options.wrapNumbers); }; +const v4775 = {}; +v4775.constructor = v4772; +var v4776; +v4776 = function (value, shape) { this.mode = \\"input\\"; return this.translate(value, shape); }; +const v4777 = {}; +v4777.constructor = v4776; +v4776.prototype = v4777; +v4775.translateInput = v4776; +var v4778; +v4778 = function (value, shape) { this.mode = \\"output\\"; return this.translate(value, shape); }; +const v4779 = {}; +v4779.constructor = v4778; +v4778.prototype = v4779; +v4775.translateOutput = v4778; +var v4780; +var v4781 = v4667; +v4780 = function (value, shape) { var self = this; if (!shape || value === undefined) + return undefined; if (shape.shape === self.attrValue) { + return v4781[self.mode](value, { convertEmptyValues: self.convertEmptyValues, wrapNumbers: self.wrapNumbers }); +} switch (shape.type) { + case \\"structure\\": return self.translateStructure(value, shape); + case \\"map\\": return self.translateMap(value, shape); + case \\"list\\": return self.translateList(value, shape); + default: return self.translateScalar(value, shape); +} }; +const v4782 = {}; +v4782.constructor = v4780; +v4780.prototype = v4782; +v4775.translate = v4780; +var v4783; +var v4784 = v3; +v4783 = function (structure, shape) { var self = this; if (structure == null) + return undefined; var struct = {}; v4784.each(structure, function (name, value) { var memberShape = shape.members[name]; if (memberShape) { + var result = self.translate(value, memberShape); + if (result !== undefined) + struct[name] = result; +} }); return struct; }; +const v4785 = {}; +v4785.constructor = v4783; +v4783.prototype = v4785; +v4775.translateStructure = v4783; +var v4786; +var v4787 = v3; +v4786 = function (list, shape) { var self = this; if (list == null) + return undefined; var out = []; v4787.arrayEach(list, function (value) { var result = self.translate(value, shape.member); if (result === undefined) + out.push(null); +else + out.push(result); }); return out; }; +const v4788 = {}; +v4788.constructor = v4786; +v4786.prototype = v4788; +v4775.translateList = v4786; +var v4789; +var v4790 = v3; +v4789 = function (map, shape) { var self = this; if (map == null) + return undefined; var out = {}; v4790.each(map, function (key, value) { var result = self.translate(value, shape.value); if (result === undefined) + out[key] = null; +else + out[key] = result; }); return out; }; +const v4791 = {}; +v4791.constructor = v4789; +v4789.prototype = v4791; +v4775.translateMap = v4789; +var v4792; +v4792 = function (value, shape) { return shape.toType(value); }; +const v4793 = {}; +v4793.constructor = v4792; +v4792.prototype = v4793; +v4775.translateScalar = v4792; +v4772.prototype = v4775; +var v4771 = v4772; +v4770 = function () { return new v4771(this.options); }; +const v4794 = {}; +v4794.constructor = v4770; +v4770.prototype = v4794; +v4738.getTranslator = v4770; +var v4795; +v4795 = function setupRequest(request) { var self = this; var translator = self.getTranslator(); var operation = request.operation; var inputShape = request.service.api.operations[operation].input; request._events.validate.unshift(function (req) { req.rawParams = v3.copy(req.params); req.params = translator.translateInput(req.rawParams, inputShape); }); }; +const v4796 = {}; +v4796.constructor = v4795; +v4795.prototype = v4796; +v4738.setupRequest = v4795; +var v4797; +v4797 = function setupResponse(request) { var self = this; var translator = self.getTranslator(); var outputShape = self.service.api.operations[request.operation].output; request.on(\\"extractData\\", function (response) { response.data = translator.translateOutput(response.data, outputShape); }); var response = request.response; response.nextPage = function (cb) { var resp = this; var req = resp.request; var config; var service = req.service; var operation = req.operation; try { + config = service.paginationConfig(operation, true); +} +catch (e) { + resp.error = e; +} if (!resp.hasNextPage()) { + if (cb) + cb(resp.error, null); + else if (resp.error) + throw resp.error; + return null; +} var params = v3.copy(req.rawParams); if (!resp.nextPageTokens) { + return cb ? cb(null, null) : null; +} +else { + var inputTokens = config.inputToken; + if (typeof inputTokens === \\"string\\") + inputTokens = [inputTokens]; + for (var i = 0; i < inputTokens.length; i++) { + params[inputTokens[i]] = resp.nextPageTokens[i]; + } + return self[operation](params, cb); +} }; }; +const v4798 = {}; +v4798.constructor = v4797; +v4797.prototype = v4798; +v4738.setupResponse = v4797; +v4737.prototype = v4738; +v4737.__super__ = v31; +v4483.DocumentClient = v4737; +v2.DynamoDB = v4483; +var v4799; +var v4800 = v299; +var v4801 = v31; +v4799 = function () { if (v4800 !== v4801) { + return v4800.apply(this, arguments); +} }; +const v4802 = Object.create(v309); +v4802.constructor = v4799; +const v4803 = {}; +const v4804 = []; +var v4805; +var v4806 = v31; +var v4807 = v4802; +v4805 = function EVENTS_BUBBLE(event) { var baseClass = v4806.getPrototypeOf(v4807); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4808 = {}; +v4808.constructor = v4805; +v4805.prototype = v4808; +v4804.push(v4805); +v4803.apiCallAttempt = v4804; +const v4809 = []; +var v4810; +v4810 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4490.getPrototypeOf(v4807); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4811 = {}; +v4811.constructor = v4810; +v4810.prototype = v4811; +v4809.push(v4810); +v4803.apiCall = v4809; +v4802._events = v4803; +v4802.MONITOR_EVENTS_BUBBLE = v4805; +v4802.CALL_EVENTS_BUBBLE = v4810; +v4799.prototype = v4802; +v4799.__super__ = v299; +const v4812 = {}; +v4812[\\"2012-08-10\\"] = null; +v4799.services = v4812; +const v4813 = []; +v4813.push(\\"2012-08-10\\"); +v4799.apiVersions = v4813; +v4799.serviceIdentifier = \\"dynamodbstreams\\"; +v2.DynamoDBStreams = v4799; +var v4814; +var v4815 = v299; +var v4816 = v31; +v4814 = function () { if (v4815 !== v4816) { + return v4815.apply(this, arguments); +} }; +const v4817 = Object.create(v309); +v4817.constructor = v4814; +const v4818 = {}; +const v4819 = []; +var v4820; +var v4821 = v31; +var v4822 = v4817; +v4820 = function EVENTS_BUBBLE(event) { var baseClass = v4821.getPrototypeOf(v4822); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4823 = {}; +v4823.constructor = v4820; +v4820.prototype = v4823; +v4819.push(v4820); +v4818.apiCallAttempt = v4819; +const v4824 = []; +var v4825; +v4825 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4806.getPrototypeOf(v4822); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4826 = {}; +v4826.constructor = v4825; +v4825.prototype = v4826; +v4824.push(v4825); +v4818.apiCall = v4824; +v4817._events = v4818; +v4817.MONITOR_EVENTS_BUBBLE = v4820; +v4817.CALL_EVENTS_BUBBLE = v4825; +var v4827; +v4827 = function setupRequestListeners(request) { request.removeListener(\\"extractError\\", v797.EXTRACT_ERROR); request.addListener(\\"extractError\\", this.extractError); if (request.operation === \\"copySnapshot\\") { + request.onAsync(\\"validate\\", this.buildCopySnapshotPresignedUrl); +} }; +const v4828 = {}; +v4828.constructor = v4827; +v4827.prototype = v4828; +v4817.setupRequestListeners = v4827; +var v4829; +v4829 = function buildCopySnapshotPresignedUrl(req, done) { if (req.params.PresignedUrl || req._subRequest) { + return done(); +} req.params = v3.copy(req.params); req.params.DestinationRegion = req.service.config.region; var config = v3.copy(req.service.config); delete config.endpoint; config.region = req.params.SourceRegion; var svc = new req.service.constructor(config); var newReq = svc[req.operation](req.params); newReq._subRequest = true; newReq.presign(function (err, url) { if (err) + done(err); +else { + req.params.PresignedUrl = url; + done(); +} }); }; +const v4830 = {}; +v4830.constructor = v4829; +v4829.prototype = v4830; +v4817.buildCopySnapshotPresignedUrl = v4829; +var v4831; +var v4832 = v40; +var v4833 = v40; +v4831 = function extractError(resp) { var httpResponse = resp.httpResponse; var data = new v937.Parser().parse(httpResponse.body.toString() || \\"\\"); if (data.Errors) { + resp.error = v3.error(new v4832(), { code: data.Errors.Error.Code, message: data.Errors.Error.Message }); +} +else { + resp.error = v3.error(new v4833(), { code: httpResponse.statusCode, message: null }); +} resp.error.requestId = data.RequestID || null; }; +const v4834 = {}; +v4834.constructor = v4831; +v4831.prototype = v4834; +v4817.extractError = v4831; +v4814.prototype = v4817; +v4814.__super__ = v299; +const v4835 = {}; +v4835[\\"2013-06-15*\\"] = null; +v4835[\\"2013-10-15*\\"] = null; +v4835[\\"2014-02-01*\\"] = null; +v4835[\\"2014-05-01*\\"] = null; +v4835[\\"2014-06-15*\\"] = null; +v4835[\\"2014-09-01*\\"] = null; +v4835[\\"2014-10-01*\\"] = null; +v4835[\\"2015-03-01*\\"] = null; +v4835[\\"2015-04-15*\\"] = null; +v4835[\\"2015-10-01*\\"] = null; +v4835[\\"2016-04-01*\\"] = null; +v4835[\\"2016-09-15*\\"] = null; +v4835[\\"2016-11-15\\"] = null; +v4814.services = v4835; +const v4836 = []; +v4836.push(\\"2013-06-15*\\", \\"2013-10-15*\\", \\"2014-02-01*\\", \\"2014-05-01*\\", \\"2014-06-15*\\", \\"2014-09-01*\\", \\"2014-10-01*\\", \\"2015-03-01*\\", \\"2015-04-15*\\", \\"2015-10-01*\\", \\"2016-04-01*\\", \\"2016-09-15*\\", \\"2016-11-15\\"); +v4814.apiVersions = v4836; +v4814.serviceIdentifier = \\"ec2\\"; +v2.EC2 = v4814; +var v4837; +var v4838 = v299; +var v4839 = v31; +v4837 = function () { if (v4838 !== v4839) { + return v4838.apply(this, arguments); +} }; +const v4840 = Object.create(v309); +v4840.constructor = v4837; +const v4841 = {}; +const v4842 = []; +var v4843; +var v4844 = v31; +var v4845 = v4840; +v4843 = function EVENTS_BUBBLE(event) { var baseClass = v4844.getPrototypeOf(v4845); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4846 = {}; +v4846.constructor = v4843; +v4843.prototype = v4846; +v4842.push(v4843); +v4841.apiCallAttempt = v4842; +const v4847 = []; +var v4848; +v4848 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4821.getPrototypeOf(v4845); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4849 = {}; +v4849.constructor = v4848; +v4848.prototype = v4849; +v4847.push(v4848); +v4841.apiCall = v4847; +v4840._events = v4841; +v4840.MONITOR_EVENTS_BUBBLE = v4843; +v4840.CALL_EVENTS_BUBBLE = v4848; +v4837.prototype = v4840; +v4837.__super__ = v299; +const v4850 = {}; +v4850[\\"2015-09-21\\"] = null; +v4837.services = v4850; +const v4851 = []; +v4851.push(\\"2015-09-21\\"); +v4837.apiVersions = v4851; +v4837.serviceIdentifier = \\"ecr\\"; +v2.ECR = v4837; +var v4852; +var v4853 = v299; +var v4854 = v31; +v4852 = function () { if (v4853 !== v4854) { + return v4853.apply(this, arguments); +} }; +const v4855 = Object.create(v309); +v4855.constructor = v4852; +const v4856 = {}; +const v4857 = []; +var v4858; +var v4859 = v31; +var v4860 = v4855; +v4858 = function EVENTS_BUBBLE(event) { var baseClass = v4859.getPrototypeOf(v4860); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4861 = {}; +v4861.constructor = v4858; +v4858.prototype = v4861; +v4857.push(v4858); +v4856.apiCallAttempt = v4857; +const v4862 = []; +var v4863; +v4863 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4844.getPrototypeOf(v4860); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4864 = {}; +v4864.constructor = v4863; +v4863.prototype = v4864; +v4862.push(v4863); +v4856.apiCall = v4862; +v4855._events = v4856; +v4855.MONITOR_EVENTS_BUBBLE = v4858; +v4855.CALL_EVENTS_BUBBLE = v4863; +v4852.prototype = v4855; +v4852.__super__ = v299; +const v4865 = {}; +v4865[\\"2014-11-13\\"] = null; +v4852.services = v4865; +const v4866 = []; +v4866.push(\\"2014-11-13\\"); +v4852.apiVersions = v4866; +v4852.serviceIdentifier = \\"ecs\\"; +v2.ECS = v4852; +var v4867; +var v4868 = v299; +var v4869 = v31; +v4867 = function () { if (v4868 !== v4869) { + return v4868.apply(this, arguments); +} }; +const v4870 = Object.create(v309); +v4870.constructor = v4867; +const v4871 = {}; +const v4872 = []; +var v4873; +var v4874 = v31; +var v4875 = v4870; +v4873 = function EVENTS_BUBBLE(event) { var baseClass = v4874.getPrototypeOf(v4875); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4876 = {}; +v4876.constructor = v4873; +v4873.prototype = v4876; +v4872.push(v4873); +v4871.apiCallAttempt = v4872; +const v4877 = []; +var v4878; +v4878 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4859.getPrototypeOf(v4875); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4879 = {}; +v4879.constructor = v4878; +v4878.prototype = v4879; +v4877.push(v4878); +v4871.apiCall = v4877; +v4870._events = v4871; +v4870.MONITOR_EVENTS_BUBBLE = v4873; +v4870.CALL_EVENTS_BUBBLE = v4878; +v4867.prototype = v4870; +v4867.__super__ = v299; +const v4880 = {}; +v4880[\\"2015-02-01\\"] = null; +v4867.services = v4880; +const v4881 = []; +v4881.push(\\"2015-02-01\\"); +v4867.apiVersions = v4881; +v4867.serviceIdentifier = \\"efs\\"; +v2.EFS = v4867; +var v4882; +var v4883 = v299; +var v4884 = v31; +v4882 = function () { if (v4883 !== v4884) { + return v4883.apply(this, arguments); +} }; +const v4885 = Object.create(v309); +v4885.constructor = v4882; +const v4886 = {}; +const v4887 = []; +var v4888; +var v4889 = v31; +var v4890 = v4885; +v4888 = function EVENTS_BUBBLE(event) { var baseClass = v4889.getPrototypeOf(v4890); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4891 = {}; +v4891.constructor = v4888; +v4888.prototype = v4891; +v4887.push(v4888); +v4886.apiCallAttempt = v4887; +const v4892 = []; +var v4893; +v4893 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4874.getPrototypeOf(v4890); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4894 = {}; +v4894.constructor = v4893; +v4893.prototype = v4894; +v4892.push(v4893); +v4886.apiCall = v4892; +v4885._events = v4886; +v4885.MONITOR_EVENTS_BUBBLE = v4888; +v4885.CALL_EVENTS_BUBBLE = v4893; +v4882.prototype = v4885; +v4882.__super__ = v299; +const v4895 = {}; +v4895[\\"2012-11-15*\\"] = null; +v4895[\\"2014-03-24*\\"] = null; +v4895[\\"2014-07-15*\\"] = null; +v4895[\\"2014-09-30*\\"] = null; +v4895[\\"2015-02-02\\"] = null; +v4882.services = v4895; +const v4896 = []; +v4896.push(\\"2012-11-15*\\", \\"2014-03-24*\\", \\"2014-07-15*\\", \\"2014-09-30*\\", \\"2015-02-02\\"); +v4882.apiVersions = v4896; +v4882.serviceIdentifier = \\"elasticache\\"; +v2.ElastiCache = v4882; +var v4897; +var v4898 = v299; +var v4899 = v31; +v4897 = function () { if (v4898 !== v4899) { + return v4898.apply(this, arguments); +} }; +const v4900 = Object.create(v309); +v4900.constructor = v4897; +const v4901 = {}; +const v4902 = []; +var v4903; +var v4904 = v31; +var v4905 = v4900; +v4903 = function EVENTS_BUBBLE(event) { var baseClass = v4904.getPrototypeOf(v4905); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4906 = {}; +v4906.constructor = v4903; +v4903.prototype = v4906; +v4902.push(v4903); +v4901.apiCallAttempt = v4902; +const v4907 = []; +var v4908; +v4908 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4889.getPrototypeOf(v4905); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4909 = {}; +v4909.constructor = v4908; +v4908.prototype = v4909; +v4907.push(v4908); +v4901.apiCall = v4907; +v4900._events = v4901; +v4900.MONITOR_EVENTS_BUBBLE = v4903; +v4900.CALL_EVENTS_BUBBLE = v4908; +v4897.prototype = v4900; +v4897.__super__ = v299; +const v4910 = {}; +v4910[\\"2010-12-01\\"] = null; +v4897.services = v4910; +const v4911 = []; +v4911.push(\\"2010-12-01\\"); +v4897.apiVersions = v4911; +v4897.serviceIdentifier = \\"elasticbeanstalk\\"; +v2.ElasticBeanstalk = v4897; +var v4912; +var v4913 = v299; +var v4914 = v31; +v4912 = function () { if (v4913 !== v4914) { + return v4913.apply(this, arguments); +} }; +const v4915 = Object.create(v309); +v4915.constructor = v4912; +const v4916 = {}; +const v4917 = []; +var v4918; +var v4919 = v31; +var v4920 = v4915; +v4918 = function EVENTS_BUBBLE(event) { var baseClass = v4919.getPrototypeOf(v4920); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4921 = {}; +v4921.constructor = v4918; +v4918.prototype = v4921; +v4917.push(v4918); +v4916.apiCallAttempt = v4917; +const v4922 = []; +var v4923; +v4923 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4904.getPrototypeOf(v4920); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4924 = {}; +v4924.constructor = v4923; +v4923.prototype = v4924; +v4922.push(v4923); +v4916.apiCall = v4922; +v4915._events = v4916; +v4915.MONITOR_EVENTS_BUBBLE = v4918; +v4915.CALL_EVENTS_BUBBLE = v4923; +v4912.prototype = v4915; +v4912.__super__ = v299; +const v4925 = {}; +v4925[\\"2012-06-01\\"] = null; +v4912.services = v4925; +const v4926 = []; +v4926.push(\\"2012-06-01\\"); +v4912.apiVersions = v4926; +v4912.serviceIdentifier = \\"elb\\"; +v2.ELB = v4912; +var v4927; +var v4928 = v299; +var v4929 = v31; +v4927 = function () { if (v4928 !== v4929) { + return v4928.apply(this, arguments); +} }; +const v4930 = Object.create(v309); +v4930.constructor = v4927; +const v4931 = {}; +const v4932 = []; +var v4933; +var v4934 = v31; +var v4935 = v4930; +v4933 = function EVENTS_BUBBLE(event) { var baseClass = v4934.getPrototypeOf(v4935); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4936 = {}; +v4936.constructor = v4933; +v4933.prototype = v4936; +v4932.push(v4933); +v4931.apiCallAttempt = v4932; +const v4937 = []; +var v4938; +v4938 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4919.getPrototypeOf(v4935); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4939 = {}; +v4939.constructor = v4938; +v4938.prototype = v4939; +v4937.push(v4938); +v4931.apiCall = v4937; +v4930._events = v4931; +v4930.MONITOR_EVENTS_BUBBLE = v4933; +v4930.CALL_EVENTS_BUBBLE = v4938; +v4927.prototype = v4930; +v4927.__super__ = v299; +const v4940 = {}; +v4940[\\"2015-12-01\\"] = null; +v4927.services = v4940; +const v4941 = []; +v4941.push(\\"2015-12-01\\"); +v4927.apiVersions = v4941; +v4927.serviceIdentifier = \\"elbv2\\"; +v2.ELBv2 = v4927; +var v4942; +var v4943 = v299; +var v4944 = v31; +v4942 = function () { if (v4943 !== v4944) { + return v4943.apply(this, arguments); +} }; +const v4945 = Object.create(v309); +v4945.constructor = v4942; +const v4946 = {}; +const v4947 = []; +var v4948; +var v4949 = v31; +var v4950 = v4945; +v4948 = function EVENTS_BUBBLE(event) { var baseClass = v4949.getPrototypeOf(v4950); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4951 = {}; +v4951.constructor = v4948; +v4948.prototype = v4951; +v4947.push(v4948); +v4946.apiCallAttempt = v4947; +const v4952 = []; +var v4953; +v4953 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4934.getPrototypeOf(v4950); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4954 = {}; +v4954.constructor = v4953; +v4953.prototype = v4954; +v4952.push(v4953); +v4946.apiCall = v4952; +v4945._events = v4946; +v4945.MONITOR_EVENTS_BUBBLE = v4948; +v4945.CALL_EVENTS_BUBBLE = v4953; +v4942.prototype = v4945; +v4942.__super__ = v299; +const v4955 = {}; +v4955[\\"2009-03-31\\"] = null; +v4942.services = v4955; +const v4956 = []; +v4956.push(\\"2009-03-31\\"); +v4942.apiVersions = v4956; +v4942.serviceIdentifier = \\"emr\\"; +v2.EMR = v4942; +var v4957; +var v4958 = v299; +var v4959 = v31; +v4957 = function () { if (v4958 !== v4959) { + return v4958.apply(this, arguments); +} }; +const v4960 = Object.create(v309); +v4960.constructor = v4957; +const v4961 = {}; +const v4962 = []; +var v4963; +var v4964 = v31; +var v4965 = v4960; +v4963 = function EVENTS_BUBBLE(event) { var baseClass = v4964.getPrototypeOf(v4965); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4966 = {}; +v4966.constructor = v4963; +v4963.prototype = v4966; +v4962.push(v4963); +v4961.apiCallAttempt = v4962; +const v4967 = []; +var v4968; +v4968 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4949.getPrototypeOf(v4965); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4969 = {}; +v4969.constructor = v4968; +v4968.prototype = v4969; +v4967.push(v4968); +v4961.apiCall = v4967; +v4960._events = v4961; +v4960.MONITOR_EVENTS_BUBBLE = v4963; +v4960.CALL_EVENTS_BUBBLE = v4968; +v4957.prototype = v4960; +v4957.__super__ = v299; +const v4970 = {}; +v4970[\\"2015-01-01\\"] = null; +v4957.services = v4970; +const v4971 = []; +v4971.push(\\"2015-01-01\\"); +v4957.apiVersions = v4971; +v4957.serviceIdentifier = \\"es\\"; +v2.ES = v4957; +var v4972; +var v4973 = v299; +var v4974 = v31; +v4972 = function () { if (v4973 !== v4974) { + return v4973.apply(this, arguments); +} }; +const v4975 = Object.create(v309); +v4975.constructor = v4972; +const v4976 = {}; +const v4977 = []; +var v4978; +var v4979 = v31; +var v4980 = v4975; +v4978 = function EVENTS_BUBBLE(event) { var baseClass = v4979.getPrototypeOf(v4980); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4981 = {}; +v4981.constructor = v4978; +v4978.prototype = v4981; +v4977.push(v4978); +v4976.apiCallAttempt = v4977; +const v4982 = []; +var v4983; +v4983 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4964.getPrototypeOf(v4980); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4984 = {}; +v4984.constructor = v4983; +v4983.prototype = v4984; +v4982.push(v4983); +v4976.apiCall = v4982; +v4975._events = v4976; +v4975.MONITOR_EVENTS_BUBBLE = v4978; +v4975.CALL_EVENTS_BUBBLE = v4983; +v4972.prototype = v4975; +v4972.__super__ = v299; +const v4985 = {}; +v4985[\\"2012-09-25\\"] = null; +v4972.services = v4985; +const v4986 = []; +v4986.push(\\"2012-09-25\\"); +v4972.apiVersions = v4986; +v4972.serviceIdentifier = \\"elastictranscoder\\"; +v2.ElasticTranscoder = v4972; +var v4987; +var v4988 = v299; +var v4989 = v31; +v4987 = function () { if (v4988 !== v4989) { + return v4988.apply(this, arguments); +} }; +const v4990 = Object.create(v309); +v4990.constructor = v4987; +const v4991 = {}; +const v4992 = []; +var v4993; +var v4994 = v31; +var v4995 = v4990; +v4993 = function EVENTS_BUBBLE(event) { var baseClass = v4994.getPrototypeOf(v4995); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v4996 = {}; +v4996.constructor = v4993; +v4993.prototype = v4996; +v4992.push(v4993); +v4991.apiCallAttempt = v4992; +const v4997 = []; +var v4998; +v4998 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4979.getPrototypeOf(v4995); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v4999 = {}; +v4999.constructor = v4998; +v4998.prototype = v4999; +v4997.push(v4998); +v4991.apiCall = v4997; +v4990._events = v4991; +v4990.MONITOR_EVENTS_BUBBLE = v4993; +v4990.CALL_EVENTS_BUBBLE = v4998; +v4987.prototype = v4990; +v4987.__super__ = v299; +const v5000 = {}; +v5000[\\"2015-08-04\\"] = null; +v4987.services = v5000; +const v5001 = []; +v5001.push(\\"2015-08-04\\"); +v4987.apiVersions = v5001; +v4987.serviceIdentifier = \\"firehose\\"; +v2.Firehose = v4987; +var v5002; +var v5003 = v299; +var v5004 = v31; +v5002 = function () { if (v5003 !== v5004) { + return v5003.apply(this, arguments); +} }; +const v5005 = Object.create(v309); +v5005.constructor = v5002; +const v5006 = {}; +const v5007 = []; +var v5008; +var v5009 = v31; +var v5010 = v5005; +v5008 = function EVENTS_BUBBLE(event) { var baseClass = v5009.getPrototypeOf(v5010); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5011 = {}; +v5011.constructor = v5008; +v5008.prototype = v5011; +v5007.push(v5008); +v5006.apiCallAttempt = v5007; +const v5012 = []; +var v5013; +v5013 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4994.getPrototypeOf(v5010); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5014 = {}; +v5014.constructor = v5013; +v5013.prototype = v5014; +v5012.push(v5013); +v5006.apiCall = v5012; +v5005._events = v5006; +v5005.MONITOR_EVENTS_BUBBLE = v5008; +v5005.CALL_EVENTS_BUBBLE = v5013; +v5002.prototype = v5005; +v5002.__super__ = v299; +const v5015 = {}; +v5015[\\"2015-10-01\\"] = null; +v5002.services = v5015; +const v5016 = []; +v5016.push(\\"2015-10-01\\"); +v5002.apiVersions = v5016; +v5002.serviceIdentifier = \\"gamelift\\"; +v2.GameLift = v5002; +var v5017; +var v5018 = v299; +var v5019 = v31; +v5017 = function () { if (v5018 !== v5019) { + return v5018.apply(this, arguments); +} }; +const v5020 = Object.create(v309); +v5020.constructor = v5017; +const v5021 = {}; +const v5022 = []; +var v5023; +var v5024 = v31; +var v5025 = v5020; +v5023 = function EVENTS_BUBBLE(event) { var baseClass = v5024.getPrototypeOf(v5025); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5026 = {}; +v5026.constructor = v5023; +v5023.prototype = v5026; +v5022.push(v5023); +v5021.apiCallAttempt = v5022; +const v5027 = []; +var v5028; +v5028 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5009.getPrototypeOf(v5025); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5029 = {}; +v5029.constructor = v5028; +v5028.prototype = v5029; +v5027.push(v5028); +v5021.apiCall = v5027; +v5020._events = v5021; +v5020.MONITOR_EVENTS_BUBBLE = v5023; +v5020.CALL_EVENTS_BUBBLE = v5028; +var v5030; +var v5031 = v33; +v5030 = function setupRequestListeners(request) { if (v5031.isArray(request._events.validate)) { + request._events.validate.unshift(this.validateAccountId); +} +else { + request.on(\\"validate\\", this.validateAccountId); +} request.removeListener(\\"afterBuild\\", v428.COMPUTE_SHA256); request.on(\\"build\\", this.addGlacierApiVersion); request.on(\\"build\\", this.addTreeHashHeaders); }; +const v5032 = {}; +v5032.constructor = v5030; +v5030.prototype = v5032; +v5020.setupRequestListeners = v5030; +var v5033; +v5033 = function validateAccountId(request) { if (request.params.accountId !== undefined) + return; request.params = v3.copy(request.params); request.params.accountId = \\"-\\"; }; +const v5034 = {}; +v5034.constructor = v5033; +v5033.prototype = v5034; +v5020.validateAccountId = v5033; +var v5035; +v5035 = function addGlacierApiVersion(request) { var version = request.service.api.apiVersion; request.httpRequest.headers[\\"x-amz-glacier-version\\"] = version; }; +const v5036 = {}; +v5036.constructor = v5035; +v5035.prototype = v5036; +v5020.addGlacierApiVersion = v5035; +var v5037; +v5037 = function addTreeHashHeaders(request) { if (request.params.body === undefined) + return; var hashes = request.service.computeChecksums(request.params.body); request.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = hashes.linearHash; if (!request.httpRequest.headers[\\"x-amz-sha256-tree-hash\\"]) { + request.httpRequest.headers[\\"x-amz-sha256-tree-hash\\"] = hashes.treeHash; +} }; +const v5038 = {}; +v5038.constructor = v5037; +v5037.prototype = v5038; +v5020.addTreeHashHeaders = v5037; +var v5039; +var v5040 = v787; +v5039 = function computeChecksums(data) { if (!v3.Buffer.isBuffer(data)) + data = v41.toBuffer(data); var mb = 1024 * 1024; var hashes = []; var hash = v91.createHash(\\"sha256\\"); for (var i = 0; i < data.length; i += mb) { + var chunk = data.slice(i, v5040.min(i + mb, data.length)); + hash.update(chunk); + hashes.push(v91.sha256(chunk)); +} return { linearHash: hash.digest(\\"hex\\"), treeHash: this.buildHashTree(hashes) }; }; +const v5041 = {}; +v5041.constructor = v5039; +v5039.prototype = v5041; +v5020.computeChecksums = v5039; +var v5042; +v5042 = function buildHashTree(hashes) { while (hashes.length > 1) { + var tmpHashes = []; + for (var i = 0; i < hashes.length; i += 2) { + if (hashes[i + 1]) { + var tmpHash = v41.alloc(64); + tmpHash.write(hashes[i], 0, 32, \\"binary\\"); + tmpHash.write(hashes[i + 1], 32, 32, \\"binary\\"); + tmpHashes.push(v91.sha256(tmpHash)); + } + else { + tmpHashes.push(hashes[i]); } - } - updateGlobalTable(args, optionsOrCb, cb) { - const command = new UpdateGlobalTableCommand_1.UpdateGlobalTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } + hashes = tmpHashes; +} return v91.toHex(hashes[0]); }; +const v5043 = {}; +v5043.constructor = v5042; +v5042.prototype = v5043; +v5020.buildHashTree = v5042; +v5017.prototype = v5020; +v5017.__super__ = v299; +const v5044 = {}; +v5044[\\"2012-06-01\\"] = null; +v5017.services = v5044; +const v5045 = []; +v5045.push(\\"2012-06-01\\"); +v5017.apiVersions = v5045; +v5017.serviceIdentifier = \\"glacier\\"; +v2.Glacier = v5017; +var v5046; +var v5047 = v299; +var v5048 = v31; +v5046 = function () { if (v5047 !== v5048) { + return v5047.apply(this, arguments); +} }; +const v5049 = Object.create(v309); +v5049.constructor = v5046; +const v5050 = {}; +const v5051 = []; +var v5052; +var v5053 = v31; +var v5054 = v5049; +v5052 = function EVENTS_BUBBLE(event) { var baseClass = v5053.getPrototypeOf(v5054); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5055 = {}; +v5055.constructor = v5052; +v5052.prototype = v5055; +v5051.push(v5052); +v5050.apiCallAttempt = v5051; +const v5056 = []; +var v5057; +v5057 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5024.getPrototypeOf(v5054); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5058 = {}; +v5058.constructor = v5057; +v5057.prototype = v5058; +v5056.push(v5057); +v5050.apiCall = v5056; +v5049._events = v5050; +v5049.MONITOR_EVENTS_BUBBLE = v5052; +v5049.CALL_EVENTS_BUBBLE = v5057; +v5046.prototype = v5049; +v5046.__super__ = v299; +const v5059 = {}; +v5059[\\"2016-08-04\\"] = null; +v5046.services = v5059; +const v5060 = []; +v5060.push(\\"2016-08-04\\"); +v5046.apiVersions = v5060; +v5046.serviceIdentifier = \\"health\\"; +v2.Health = v5046; +var v5061; +var v5062 = v299; +var v5063 = v31; +v5061 = function () { if (v5062 !== v5063) { + return v5062.apply(this, arguments); +} }; +const v5064 = Object.create(v309); +v5064.constructor = v5061; +const v5065 = {}; +const v5066 = []; +var v5067; +var v5068 = v31; +var v5069 = v5064; +v5067 = function EVENTS_BUBBLE(event) { var baseClass = v5068.getPrototypeOf(v5069); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5070 = {}; +v5070.constructor = v5067; +v5067.prototype = v5070; +v5066.push(v5067); +v5065.apiCallAttempt = v5066; +const v5071 = []; +var v5072; +v5072 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5053.getPrototypeOf(v5069); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5073 = {}; +v5073.constructor = v5072; +v5072.prototype = v5073; +v5071.push(v5072); +v5065.apiCall = v5071; +v5064._events = v5065; +v5064.MONITOR_EVENTS_BUBBLE = v5067; +v5064.CALL_EVENTS_BUBBLE = v5072; +v5061.prototype = v5064; +v5061.__super__ = v299; +const v5074 = {}; +v5074[\\"2010-05-08\\"] = null; +v5061.services = v5074; +const v5075 = []; +v5075.push(\\"2010-05-08\\"); +v5061.apiVersions = v5075; +v5061.serviceIdentifier = \\"iam\\"; +v2.IAM = v5061; +var v5076; +var v5077 = v299; +var v5078 = v31; +v5076 = function () { if (v5077 !== v5078) { + return v5077.apply(this, arguments); +} }; +const v5079 = Object.create(v309); +v5079.constructor = v5076; +const v5080 = {}; +const v5081 = []; +var v5082; +var v5083 = v31; +var v5084 = v5079; +v5082 = function EVENTS_BUBBLE(event) { var baseClass = v5083.getPrototypeOf(v5084); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5085 = {}; +v5085.constructor = v5082; +v5082.prototype = v5085; +v5081.push(v5082); +v5080.apiCallAttempt = v5081; +const v5086 = []; +var v5087; +v5087 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5068.getPrototypeOf(v5084); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5088 = {}; +v5088.constructor = v5087; +v5087.prototype = v5088; +v5086.push(v5087); +v5080.apiCall = v5086; +v5079._events = v5080; +v5079.MONITOR_EVENTS_BUBBLE = v5082; +v5079.CALL_EVENTS_BUBBLE = v5087; +v5076.prototype = v5079; +v5076.__super__ = v299; +const v5089 = {}; +v5089[\\"2010-06-01\\"] = null; +v5076.services = v5089; +const v5090 = []; +v5090.push(\\"2010-06-01\\"); +v5076.apiVersions = v5090; +v5076.serviceIdentifier = \\"importexport\\"; +v2.ImportExport = v5076; +var v5091; +var v5092 = v299; +var v5093 = v31; +v5091 = function () { if (v5092 !== v5093) { + return v5092.apply(this, arguments); +} }; +const v5094 = Object.create(v309); +v5094.constructor = v5091; +const v5095 = {}; +const v5096 = []; +var v5097; +var v5098 = v31; +var v5099 = v5094; +v5097 = function EVENTS_BUBBLE(event) { var baseClass = v5098.getPrototypeOf(v5099); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5100 = {}; +v5100.constructor = v5097; +v5097.prototype = v5100; +v5096.push(v5097); +v5095.apiCallAttempt = v5096; +const v5101 = []; +var v5102; +v5102 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5083.getPrototypeOf(v5099); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5103 = {}; +v5103.constructor = v5102; +v5102.prototype = v5103; +v5101.push(v5102); +v5095.apiCall = v5101; +v5094._events = v5095; +v5094.MONITOR_EVENTS_BUBBLE = v5097; +v5094.CALL_EVENTS_BUBBLE = v5102; +v5091.prototype = v5094; +v5091.__super__ = v299; +const v5104 = {}; +v5104[\\"2015-08-18*\\"] = null; +v5104[\\"2016-02-16\\"] = null; +v5091.services = v5104; +const v5105 = []; +v5105.push(\\"2015-08-18*\\", \\"2016-02-16\\"); +v5091.apiVersions = v5105; +v5091.serviceIdentifier = \\"inspector\\"; +v2.Inspector = v5091; +var v5106; +var v5107 = v299; +var v5108 = v31; +v5106 = function () { if (v5107 !== v5108) { + return v5107.apply(this, arguments); +} }; +const v5109 = Object.create(v309); +v5109.constructor = v5106; +const v5110 = {}; +const v5111 = []; +var v5112; +var v5113 = v31; +var v5114 = v5109; +v5112 = function EVENTS_BUBBLE(event) { var baseClass = v5113.getPrototypeOf(v5114); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5115 = {}; +v5115.constructor = v5112; +v5112.prototype = v5115; +v5111.push(v5112); +v5110.apiCallAttempt = v5111; +const v5116 = []; +var v5117; +v5117 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5098.getPrototypeOf(v5114); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5118 = {}; +v5118.constructor = v5117; +v5117.prototype = v5118; +v5116.push(v5117); +v5110.apiCall = v5116; +v5109._events = v5110; +v5109.MONITOR_EVENTS_BUBBLE = v5112; +v5109.CALL_EVENTS_BUBBLE = v5117; +v5106.prototype = v5109; +v5106.__super__ = v299; +const v5119 = {}; +v5119[\\"2015-05-28\\"] = null; +v5106.services = v5119; +const v5120 = []; +v5120.push(\\"2015-05-28\\"); +v5106.apiVersions = v5120; +v5106.serviceIdentifier = \\"iot\\"; +v2.Iot = v5106; +var v5121; +var v5122 = v299; +var v5123 = v31; +v5121 = function () { if (v5122 !== v5123) { + return v5122.apply(this, arguments); +} }; +const v5124 = Object.create(v309); +v5124.constructor = v5121; +const v5125 = {}; +const v5126 = []; +var v5127; +var v5128 = v31; +var v5129 = v5124; +v5127 = function EVENTS_BUBBLE(event) { var baseClass = v5128.getPrototypeOf(v5129); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5130 = {}; +v5130.constructor = v5127; +v5127.prototype = v5130; +v5126.push(v5127); +v5125.apiCallAttempt = v5126; +const v5131 = []; +var v5132; +v5132 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5113.getPrototypeOf(v5129); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5133 = {}; +v5133.constructor = v5132; +v5132.prototype = v5133; +v5131.push(v5132); +v5125.apiCall = v5131; +v5124._events = v5125; +v5124.MONITOR_EVENTS_BUBBLE = v5127; +v5124.CALL_EVENTS_BUBBLE = v5132; +var v5134; +var v5135 = v40; +v5134 = function validateService() { if (!this.config.endpoint || this.config.endpoint.indexOf(\\"{\\") >= 0) { + var msg = \\"AWS.IotData requires an explicit \\" + \\"\`endpoint' configuration option.\\"; + throw v3.error(new v5135(), { name: \\"InvalidEndpoint\\", message: msg }); +} }; +const v5136 = {}; +v5136.constructor = v5134; +v5134.prototype = v5136; +v5124.validateService = v5134; +var v5137; +const v5139 = []; +v5139.push(\\"deleteThingShadow\\", \\"getThingShadow\\", \\"updateThingShadow\\"); +var v5138 = v5139; +v5137 = function setupRequestListeners(request) { request.addListener(\\"validateResponse\\", this.validateResponseBody); if (v5138.indexOf(request.operation) > -1) { + request.addListener(\\"extractData\\", v3.convertPayloadToString); +} }; +const v5140 = {}; +v5140.constructor = v5137; +v5137.prototype = v5140; +v5124.setupRequestListeners = v5137; +var v5141; +v5141 = function validateResponseBody(resp) { var body = resp.httpResponse.body.toString() || \\"{}\\"; var bodyCheck = body.trim(); if (!bodyCheck || bodyCheck.charAt(0) !== \\"{\\") { + resp.httpResponse.body = \\"\\"; +} }; +const v5142 = {}; +v5142.constructor = v5141; +v5141.prototype = v5142; +v5124.validateResponseBody = v5141; +v5121.prototype = v5124; +v5121.__super__ = v299; +const v5143 = {}; +v5143[\\"2015-05-28\\"] = null; +v5121.services = v5143; +const v5144 = []; +v5144.push(\\"2015-05-28\\"); +v5121.apiVersions = v5144; +v5121.serviceIdentifier = \\"iotdata\\"; +v2.IotData = v5121; +var v5145; +var v5146 = v299; +var v5147 = v31; +v5145 = function () { if (v5146 !== v5147) { + return v5146.apply(this, arguments); +} }; +const v5148 = Object.create(v309); +v5148.constructor = v5145; +const v5149 = {}; +const v5150 = []; +var v5151; +var v5152 = v31; +var v5153 = v5148; +v5151 = function EVENTS_BUBBLE(event) { var baseClass = v5152.getPrototypeOf(v5153); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5154 = {}; +v5154.constructor = v5151; +v5151.prototype = v5154; +v5150.push(v5151); +v5149.apiCallAttempt = v5150; +const v5155 = []; +var v5156; +v5156 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5128.getPrototypeOf(v5153); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5157 = {}; +v5157.constructor = v5156; +v5156.prototype = v5157; +v5155.push(v5156); +v5149.apiCall = v5155; +v5148._events = v5149; +v5148.MONITOR_EVENTS_BUBBLE = v5151; +v5148.CALL_EVENTS_BUBBLE = v5156; +v5145.prototype = v5148; +v5145.__super__ = v299; +const v5158 = {}; +v5158[\\"2013-12-02\\"] = null; +v5145.services = v5158; +const v5159 = []; +v5159.push(\\"2013-12-02\\"); +v5145.apiVersions = v5159; +v5145.serviceIdentifier = \\"kinesis\\"; +v2.Kinesis = v5145; +var v5160; +var v5161 = v299; +var v5162 = v31; +v5160 = function () { if (v5161 !== v5162) { + return v5161.apply(this, arguments); +} }; +const v5163 = Object.create(v309); +v5163.constructor = v5160; +const v5164 = {}; +const v5165 = []; +var v5166; +var v5167 = v31; +var v5168 = v5163; +v5166 = function EVENTS_BUBBLE(event) { var baseClass = v5167.getPrototypeOf(v5168); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5169 = {}; +v5169.constructor = v5166; +v5166.prototype = v5169; +v5165.push(v5166); +v5164.apiCallAttempt = v5165; +const v5170 = []; +var v5171; +v5171 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5152.getPrototypeOf(v5168); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5172 = {}; +v5172.constructor = v5171; +v5171.prototype = v5172; +v5170.push(v5171); +v5164.apiCall = v5170; +v5163._events = v5164; +v5163.MONITOR_EVENTS_BUBBLE = v5166; +v5163.CALL_EVENTS_BUBBLE = v5171; +v5160.prototype = v5163; +v5160.__super__ = v299; +const v5173 = {}; +v5173[\\"2015-08-14\\"] = null; +v5160.services = v5173; +const v5174 = []; +v5174.push(\\"2015-08-14\\"); +v5160.apiVersions = v5174; +v5160.serviceIdentifier = \\"kinesisanalytics\\"; +v2.KinesisAnalytics = v5160; +var v5175; +var v5176 = v299; +var v5177 = v31; +v5175 = function () { if (v5176 !== v5177) { + return v5176.apply(this, arguments); +} }; +const v5178 = Object.create(v309); +v5178.constructor = v5175; +const v5179 = {}; +const v5180 = []; +var v5181; +var v5182 = v31; +var v5183 = v5178; +v5181 = function EVENTS_BUBBLE(event) { var baseClass = v5182.getPrototypeOf(v5183); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5184 = {}; +v5184.constructor = v5181; +v5181.prototype = v5184; +v5180.push(v5181); +v5179.apiCallAttempt = v5180; +const v5185 = []; +var v5186; +v5186 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5167.getPrototypeOf(v5183); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5187 = {}; +v5187.constructor = v5186; +v5186.prototype = v5187; +v5185.push(v5186); +v5179.apiCall = v5185; +v5178._events = v5179; +v5178.MONITOR_EVENTS_BUBBLE = v5181; +v5178.CALL_EVENTS_BUBBLE = v5186; +v5175.prototype = v5178; +v5175.__super__ = v299; +const v5188 = {}; +v5188[\\"2014-11-01\\"] = null; +v5175.services = v5188; +const v5189 = []; +v5189.push(\\"2014-11-01\\"); +v5175.apiVersions = v5189; +v5175.serviceIdentifier = \\"kms\\"; +v2.KMS = v5175; +var v5190; +var v5191 = v299; +var v5192 = v31; +v5190 = function () { if (v5191 !== v5192) { + return v5191.apply(this, arguments); +} }; +const v5193 = Object.create(v309); +v5193.constructor = v5190; +const v5194 = {}; +const v5195 = []; +var v5196; +var v5197 = v31; +var v5198 = v5193; +v5196 = function EVENTS_BUBBLE(event) { var baseClass = v5197.getPrototypeOf(v5198); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5199 = {}; +v5199.constructor = v5196; +v5196.prototype = v5199; +v5195.push(v5196); +v5194.apiCallAttempt = v5195; +const v5200 = []; +var v5201; +v5201 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5182.getPrototypeOf(v5198); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5202 = {}; +v5202.constructor = v5201; +v5201.prototype = v5202; +v5200.push(v5201); +v5194.apiCall = v5200; +v5193._events = v5194; +v5193.MONITOR_EVENTS_BUBBLE = v5196; +v5193.CALL_EVENTS_BUBBLE = v5201; +var v5203; +v5203 = function setupRequestListeners(request) { if (request.operation === \\"invoke\\") { + request.addListener(\\"extractData\\", v3.convertPayloadToString); +} }; +const v5204 = {}; +v5204.constructor = v5203; +v5203.prototype = v5204; +v5193.setupRequestListeners = v5203; +v5190.prototype = v5193; +v5190.__super__ = v299; +const v5205 = {}; +v5205[\\"2014-11-11\\"] = null; +v5205[\\"2015-03-31\\"] = null; +v5190.services = v5205; +const v5206 = []; +v5206.push(\\"2014-11-11\\", \\"2015-03-31\\"); +v5190.apiVersions = v5206; +v5190.serviceIdentifier = \\"lambda\\"; +v2.Lambda = v5190; +var v5207; +var v5208 = v299; +var v5209 = v31; +v5207 = function () { if (v5208 !== v5209) { + return v5208.apply(this, arguments); +} }; +const v5210 = Object.create(v309); +v5210.constructor = v5207; +const v5211 = {}; +const v5212 = []; +var v5213; +var v5214 = v31; +var v5215 = v5210; +v5213 = function EVENTS_BUBBLE(event) { var baseClass = v5214.getPrototypeOf(v5215); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5216 = {}; +v5216.constructor = v5213; +v5213.prototype = v5216; +v5212.push(v5213); +v5211.apiCallAttempt = v5212; +const v5217 = []; +var v5218; +v5218 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5197.getPrototypeOf(v5215); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5219 = {}; +v5219.constructor = v5218; +v5218.prototype = v5219; +v5217.push(v5218); +v5211.apiCall = v5217; +v5210._events = v5211; +v5210.MONITOR_EVENTS_BUBBLE = v5213; +v5210.CALL_EVENTS_BUBBLE = v5218; +v5207.prototype = v5210; +v5207.__super__ = v299; +const v5220 = {}; +v5220[\\"2016-11-28\\"] = null; +v5207.services = v5220; +const v5221 = []; +v5221.push(\\"2016-11-28\\"); +v5207.apiVersions = v5221; +v5207.serviceIdentifier = \\"lexruntime\\"; +v2.LexRuntime = v5207; +var v5222; +var v5223 = v299; +var v5224 = v31; +v5222 = function () { if (v5223 !== v5224) { + return v5223.apply(this, arguments); +} }; +const v5225 = Object.create(v309); +v5225.constructor = v5222; +const v5226 = {}; +const v5227 = []; +var v5228; +var v5229 = v31; +var v5230 = v5225; +v5228 = function EVENTS_BUBBLE(event) { var baseClass = v5229.getPrototypeOf(v5230); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5231 = {}; +v5231.constructor = v5228; +v5228.prototype = v5231; +v5227.push(v5228); +v5226.apiCallAttempt = v5227; +const v5232 = []; +var v5233; +v5233 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5214.getPrototypeOf(v5230); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5234 = {}; +v5234.constructor = v5233; +v5233.prototype = v5234; +v5232.push(v5233); +v5226.apiCall = v5232; +v5225._events = v5226; +v5225.MONITOR_EVENTS_BUBBLE = v5228; +v5225.CALL_EVENTS_BUBBLE = v5233; +v5222.prototype = v5225; +v5222.__super__ = v299; +const v5235 = {}; +v5235[\\"2016-11-28\\"] = null; +v5222.services = v5235; +const v5236 = []; +v5236.push(\\"2016-11-28\\"); +v5222.apiVersions = v5236; +v5222.serviceIdentifier = \\"lightsail\\"; +v2.Lightsail = v5222; +var v5237; +var v5238 = v299; +var v5239 = v31; +v5237 = function () { if (v5238 !== v5239) { + return v5238.apply(this, arguments); +} }; +const v5240 = Object.create(v309); +v5240.constructor = v5237; +const v5241 = {}; +const v5242 = []; +var v5243; +var v5244 = v31; +var v5245 = v5240; +v5243 = function EVENTS_BUBBLE(event) { var baseClass = v5244.getPrototypeOf(v5245); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5246 = {}; +v5246.constructor = v5243; +v5243.prototype = v5246; +v5242.push(v5243); +v5241.apiCallAttempt = v5242; +const v5247 = []; +var v5248; +v5248 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5229.getPrototypeOf(v5245); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5249 = {}; +v5249.constructor = v5248; +v5248.prototype = v5249; +v5247.push(v5248); +v5241.apiCall = v5247; +v5240._events = v5241; +v5240.MONITOR_EVENTS_BUBBLE = v5243; +v5240.CALL_EVENTS_BUBBLE = v5248; +var v5250; +v5250 = function setupRequestListeners(request) { if (request.operation === \\"predict\\") { + request.addListener(\\"build\\", this.buildEndpoint); +} }; +const v5251 = {}; +v5251.constructor = v5250; +v5250.prototype = v5251; +v5240.setupRequestListeners = v5250; +var v5252; +var v5253 = v2; +v5252 = function buildEndpoint(request) { var url = request.params.PredictEndpoint; if (url) { + request.httpRequest.endpoint = new v5253.Endpoint(url); +} }; +const v5254 = {}; +v5254.constructor = v5252; +v5252.prototype = v5254; +v5240.buildEndpoint = v5252; +v5237.prototype = v5240; +v5237.__super__ = v299; +const v5255 = {}; +v5255[\\"2014-12-12\\"] = null; +v5237.services = v5255; +const v5256 = []; +v5256.push(\\"2014-12-12\\"); +v5237.apiVersions = v5256; +v5237.serviceIdentifier = \\"machinelearning\\"; +v2.MachineLearning = v5237; +var v5257; +var v5258 = v299; +var v5259 = v31; +v5257 = function () { if (v5258 !== v5259) { + return v5258.apply(this, arguments); +} }; +const v5260 = Object.create(v309); +v5260.constructor = v5257; +const v5261 = {}; +const v5262 = []; +var v5263; +var v5264 = v31; +var v5265 = v5260; +v5263 = function EVENTS_BUBBLE(event) { var baseClass = v5264.getPrototypeOf(v5265); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5266 = {}; +v5266.constructor = v5263; +v5263.prototype = v5266; +v5262.push(v5263); +v5261.apiCallAttempt = v5262; +const v5267 = []; +var v5268; +v5268 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5244.getPrototypeOf(v5265); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5269 = {}; +v5269.constructor = v5268; +v5268.prototype = v5269; +v5267.push(v5268); +v5261.apiCall = v5267; +v5260._events = v5261; +v5260.MONITOR_EVENTS_BUBBLE = v5263; +v5260.CALL_EVENTS_BUBBLE = v5268; +v5257.prototype = v5260; +v5257.__super__ = v299; +const v5270 = {}; +v5270[\\"2015-07-01\\"] = null; +v5257.services = v5270; +const v5271 = []; +v5271.push(\\"2015-07-01\\"); +v5257.apiVersions = v5271; +v5257.serviceIdentifier = \\"marketplacecommerceanalytics\\"; +v2.MarketplaceCommerceAnalytics = v5257; +var v5272; +var v5273 = v299; +var v5274 = v31; +v5272 = function () { if (v5273 !== v5274) { + return v5273.apply(this, arguments); +} }; +const v5275 = Object.create(v309); +v5275.constructor = v5272; +const v5276 = {}; +const v5277 = []; +var v5278; +var v5279 = v31; +var v5280 = v5275; +v5278 = function EVENTS_BUBBLE(event) { var baseClass = v5279.getPrototypeOf(v5280); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5281 = {}; +v5281.constructor = v5278; +v5278.prototype = v5281; +v5277.push(v5278); +v5276.apiCallAttempt = v5277; +const v5282 = []; +var v5283; +v5283 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5264.getPrototypeOf(v5280); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5284 = {}; +v5284.constructor = v5283; +v5283.prototype = v5284; +v5282.push(v5283); +v5276.apiCall = v5282; +v5275._events = v5276; +v5275.MONITOR_EVENTS_BUBBLE = v5278; +v5275.CALL_EVENTS_BUBBLE = v5283; +v5272.prototype = v5275; +v5272.__super__ = v299; +const v5285 = {}; +v5285[\\"2016-01-14\\"] = null; +v5272.services = v5285; +const v5286 = []; +v5286.push(\\"2016-01-14\\"); +v5272.apiVersions = v5286; +v5272.serviceIdentifier = \\"marketplacemetering\\"; +v2.MarketplaceMetering = v5272; +var v5287; +var v5288 = v299; +var v5289 = v31; +v5287 = function () { if (v5288 !== v5289) { + return v5288.apply(this, arguments); +} }; +const v5290 = Object.create(v309); +v5290.constructor = v5287; +const v5291 = {}; +const v5292 = []; +var v5293; +var v5294 = v31; +var v5295 = v5290; +v5293 = function EVENTS_BUBBLE(event) { var baseClass = v5294.getPrototypeOf(v5295); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5296 = {}; +v5296.constructor = v5293; +v5293.prototype = v5296; +v5292.push(v5293); +v5291.apiCallAttempt = v5292; +const v5297 = []; +var v5298; +v5298 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5279.getPrototypeOf(v5295); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5299 = {}; +v5299.constructor = v5298; +v5298.prototype = v5299; +v5297.push(v5298); +v5291.apiCall = v5297; +v5290._events = v5291; +v5290.MONITOR_EVENTS_BUBBLE = v5293; +v5290.CALL_EVENTS_BUBBLE = v5298; +v5287.prototype = v5290; +v5287.__super__ = v299; +const v5300 = {}; +v5300[\\"2017-01-17\\"] = null; +v5287.services = v5300; +const v5301 = []; +v5301.push(\\"2017-01-17\\"); +v5287.apiVersions = v5301; +v5287.serviceIdentifier = \\"mturk\\"; +v2.MTurk = v5287; +var v5302; +var v5303 = v299; +var v5304 = v31; +v5302 = function () { if (v5303 !== v5304) { + return v5303.apply(this, arguments); +} }; +const v5305 = Object.create(v309); +v5305.constructor = v5302; +const v5306 = {}; +const v5307 = []; +var v5308; +var v5309 = v31; +var v5310 = v5305; +v5308 = function EVENTS_BUBBLE(event) { var baseClass = v5309.getPrototypeOf(v5310); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5311 = {}; +v5311.constructor = v5308; +v5308.prototype = v5311; +v5307.push(v5308); +v5306.apiCallAttempt = v5307; +const v5312 = []; +var v5313; +v5313 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5294.getPrototypeOf(v5310); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5314 = {}; +v5314.constructor = v5313; +v5313.prototype = v5314; +v5312.push(v5313); +v5306.apiCall = v5312; +v5305._events = v5306; +v5305.MONITOR_EVENTS_BUBBLE = v5308; +v5305.CALL_EVENTS_BUBBLE = v5313; +v5302.prototype = v5305; +v5302.__super__ = v299; +const v5315 = {}; +v5315[\\"2014-06-05\\"] = null; +v5302.services = v5315; +const v5316 = []; +v5316.push(\\"2014-06-05\\"); +v5302.apiVersions = v5316; +v5302.serviceIdentifier = \\"mobileanalytics\\"; +v2.MobileAnalytics = v5302; +var v5317; +var v5318 = v299; +var v5319 = v31; +v5317 = function () { if (v5318 !== v5319) { + return v5318.apply(this, arguments); +} }; +const v5320 = Object.create(v309); +v5320.constructor = v5317; +const v5321 = {}; +const v5322 = []; +var v5323; +var v5324 = v31; +var v5325 = v5320; +v5323 = function EVENTS_BUBBLE(event) { var baseClass = v5324.getPrototypeOf(v5325); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5326 = {}; +v5326.constructor = v5323; +v5323.prototype = v5326; +v5322.push(v5323); +v5321.apiCallAttempt = v5322; +const v5327 = []; +var v5328; +v5328 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5309.getPrototypeOf(v5325); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5329 = {}; +v5329.constructor = v5328; +v5328.prototype = v5329; +v5327.push(v5328); +v5321.apiCall = v5327; +v5320._events = v5321; +v5320.MONITOR_EVENTS_BUBBLE = v5323; +v5320.CALL_EVENTS_BUBBLE = v5328; +v5317.prototype = v5320; +v5317.__super__ = v299; +const v5330 = {}; +v5330[\\"2013-02-18\\"] = null; +v5317.services = v5330; +const v5331 = []; +v5331.push(\\"2013-02-18\\"); +v5317.apiVersions = v5331; +v5317.serviceIdentifier = \\"opsworks\\"; +v2.OpsWorks = v5317; +var v5332; +var v5333 = v299; +var v5334 = v31; +v5332 = function () { if (v5333 !== v5334) { + return v5333.apply(this, arguments); +} }; +const v5335 = Object.create(v309); +v5335.constructor = v5332; +const v5336 = {}; +const v5337 = []; +var v5338; +var v5339 = v31; +var v5340 = v5335; +v5338 = function EVENTS_BUBBLE(event) { var baseClass = v5339.getPrototypeOf(v5340); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5341 = {}; +v5341.constructor = v5338; +v5338.prototype = v5341; +v5337.push(v5338); +v5336.apiCallAttempt = v5337; +const v5342 = []; +var v5343; +v5343 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5324.getPrototypeOf(v5340); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5344 = {}; +v5344.constructor = v5343; +v5343.prototype = v5344; +v5342.push(v5343); +v5336.apiCall = v5342; +v5335._events = v5336; +v5335.MONITOR_EVENTS_BUBBLE = v5338; +v5335.CALL_EVENTS_BUBBLE = v5343; +v5332.prototype = v5335; +v5332.__super__ = v299; +const v5345 = {}; +v5345[\\"2016-11-01\\"] = null; +v5332.services = v5345; +const v5346 = []; +v5346.push(\\"2016-11-01\\"); +v5332.apiVersions = v5346; +v5332.serviceIdentifier = \\"opsworkscm\\"; +v2.OpsWorksCM = v5332; +var v5347; +var v5348 = v299; +var v5349 = v31; +v5347 = function () { if (v5348 !== v5349) { + return v5348.apply(this, arguments); +} }; +const v5350 = Object.create(v309); +v5350.constructor = v5347; +const v5351 = {}; +const v5352 = []; +var v5353; +var v5354 = v31; +var v5355 = v5350; +v5353 = function EVENTS_BUBBLE(event) { var baseClass = v5354.getPrototypeOf(v5355); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5356 = {}; +v5356.constructor = v5353; +v5353.prototype = v5356; +v5352.push(v5353); +v5351.apiCallAttempt = v5352; +const v5357 = []; +var v5358; +v5358 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5339.getPrototypeOf(v5355); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5359 = {}; +v5359.constructor = v5358; +v5358.prototype = v5359; +v5357.push(v5358); +v5351.apiCall = v5357; +v5350._events = v5351; +v5350.MONITOR_EVENTS_BUBBLE = v5353; +v5350.CALL_EVENTS_BUBBLE = v5358; +v5347.prototype = v5350; +v5347.__super__ = v299; +const v5360 = {}; +v5360[\\"2016-11-28\\"] = null; +v5347.services = v5360; +const v5361 = []; +v5361.push(\\"2016-11-28\\"); +v5347.apiVersions = v5361; +v5347.serviceIdentifier = \\"organizations\\"; +v2.Organizations = v5347; +var v5362; +var v5363 = v299; +var v5364 = v31; +v5362 = function () { if (v5363 !== v5364) { + return v5363.apply(this, arguments); +} }; +const v5365 = Object.create(v309); +v5365.constructor = v5362; +const v5366 = {}; +const v5367 = []; +var v5368; +var v5369 = v31; +var v5370 = v5365; +v5368 = function EVENTS_BUBBLE(event) { var baseClass = v5369.getPrototypeOf(v5370); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5371 = {}; +v5371.constructor = v5368; +v5368.prototype = v5371; +v5367.push(v5368); +v5366.apiCallAttempt = v5367; +const v5372 = []; +var v5373; +v5373 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5354.getPrototypeOf(v5370); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5374 = {}; +v5374.constructor = v5373; +v5373.prototype = v5374; +v5372.push(v5373); +v5366.apiCall = v5372; +v5365._events = v5366; +v5365.MONITOR_EVENTS_BUBBLE = v5368; +v5365.CALL_EVENTS_BUBBLE = v5373; +v5362.prototype = v5365; +v5362.__super__ = v299; +const v5375 = {}; +v5375[\\"2016-12-01\\"] = null; +v5362.services = v5375; +const v5376 = []; +v5376.push(\\"2016-12-01\\"); +v5362.apiVersions = v5376; +v5362.serviceIdentifier = \\"pinpoint\\"; +v2.Pinpoint = v5362; +var v5377; +var v5378 = v299; +var v5379 = v31; +v5377 = function () { if (v5378 !== v5379) { + return v5378.apply(this, arguments); +} }; +const v5380 = Object.create(v309); +v5380.constructor = v5377; +const v5381 = {}; +const v5382 = []; +var v5383; +var v5384 = v31; +var v5385 = v5380; +v5383 = function EVENTS_BUBBLE(event) { var baseClass = v5384.getPrototypeOf(v5385); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5386 = {}; +v5386.constructor = v5383; +v5383.prototype = v5386; +v5382.push(v5383); +v5381.apiCallAttempt = v5382; +const v5387 = []; +var v5388; +v5388 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5369.getPrototypeOf(v5385); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5389 = {}; +v5389.constructor = v5388; +v5388.prototype = v5389; +v5387.push(v5388); +v5381.apiCall = v5387; +v5380._events = v5381; +v5380.MONITOR_EVENTS_BUBBLE = v5383; +v5380.CALL_EVENTS_BUBBLE = v5388; +v5377.prototype = v5380; +v5377.__super__ = v299; +const v5390 = {}; +v5390[\\"2016-06-10\\"] = null; +v5377.services = v5390; +const v5391 = []; +v5391.push(\\"2016-06-10\\"); +v5377.apiVersions = v5391; +v5377.serviceIdentifier = \\"polly\\"; +var v5392; +v5392 = function Signer(options) { options = options || {}; this.options = options; this.service = options.service; this.bindServiceObject(options); this._operations = {}; }; +const v5393 = {}; +v5393.constructor = v5392; +var v5394; +var v5395 = v2; +v5394 = function bindServiceObject(options) { options = options || {}; if (!this.service) { + this.service = new v5395.Polly(options); +} +else { + var config = v3.copy(this.service.config); + this.service = new this.service.constructor.__super__(config); + this.service.config.params = v3.merge(this.service.config.params || {}, options.params); +} }; +const v5396 = {}; +v5396.constructor = v5394; +v5394.prototype = v5396; +v5393.bindServiceObject = v5394; +var v5397; +v5397 = function modifyInputMembers(input) { var modifiedInput = v3.copy(input); modifiedInput.members = v3.copy(input.members); v3.each(input.members, function (name, member) { modifiedInput.members[name] = v3.copy(member); if (!member.location || member.location === \\"body\\") { + modifiedInput.members[name].location = \\"querystring\\"; + modifiedInput.members[name].locationName = name; +} }); return modifiedInput; }; +const v5398 = {}; +v5398.constructor = v5397; +v5397.prototype = v5398; +v5393.modifyInputMembers = v5397; +var v5399; +var v5400 = v1977; +v5399 = function convertPostToGet(req) { req.httpRequest.method = \\"GET\\"; var operation = req.service.api.operations[req.operation]; var input = this._operations[req.operation]; if (!input) { + this._operations[req.operation] = input = this.modifyInputMembers(operation.input); +} var uri = v5400.generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); req.httpRequest.path = uri; req.httpRequest.body = \\"\\"; delete req.httpRequest.headers[\\"Content-Length\\"]; delete req.httpRequest.headers[\\"Content-Type\\"]; }; +const v5401 = {}; +v5401.constructor = v5399; +v5399.prototype = v5401; +v5393.convertPostToGet = v5399; +var v5402; +v5402 = function getSynthesizeSpeechUrl(params, expires, callback) { var self = this; var request = this.service.makeRequest(\\"synthesizeSpeech\\", params); request.removeAllListeners(\\"build\\"); request.on(\\"build\\", function (req) { self.convertPostToGet(req); }); return request.presign(expires, callback); }; +const v5403 = {}; +v5403.constructor = v5402; +v5402.prototype = v5403; +v5393.getSynthesizeSpeechUrl = v5402; +v5392.prototype = v5393; +v5392.__super__ = v31; +v5377.Presigner = v5392; +v2.Polly = v5377; +var v5404; +var v5405 = v299; +var v5406 = v31; +v5404 = function () { if (v5405 !== v5406) { + return v5405.apply(this, arguments); +} }; +const v5407 = Object.create(v309); +v5407.constructor = v5404; +const v5408 = {}; +const v5409 = []; +var v5410; +var v5411 = v31; +var v5412 = v5407; +v5410 = function EVENTS_BUBBLE(event) { var baseClass = v5411.getPrototypeOf(v5412); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5413 = {}; +v5413.constructor = v5410; +v5410.prototype = v5413; +v5409.push(v5410); +v5408.apiCallAttempt = v5409; +const v5414 = []; +var v5415; +v5415 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5384.getPrototypeOf(v5412); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5416 = {}; +v5416.constructor = v5415; +v5415.prototype = v5416; +v5414.push(v5415); +v5408.apiCall = v5414; +v5407._events = v5408; +v5407.MONITOR_EVENTS_BUBBLE = v5410; +v5407.CALL_EVENTS_BUBBLE = v5415; +var v5417; +const v5419 = {}; +var v5420; +var v5421 = v5419; +v5420 = function setupRequestListeners(service, request, crossRegionOperations) { if (crossRegionOperations.indexOf(request.operation) !== -1 && request.params.SourceRegion) { + request.params = v3.copy(request.params); + if (request.params.PreSignedUrl || request.params.SourceRegion === service.config.region) { + delete request.params.SourceRegion; + } + else { + var doesParamValidation = !!service.config.paramValidation; + if (doesParamValidation) { + request.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); } - } - updateGlobalTableSettings(args, optionsOrCb, cb) { - const command = new UpdateGlobalTableSettingsCommand_1.UpdateGlobalTableSettingsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + request.onAsync(\\"validate\\", v5421.buildCrossRegionPresignedUrl); + if (doesParamValidation) { + request.addListener(\\"validate\\", v428.VALIDATE_PARAMETERS); } - } - updateItem(args, optionsOrCb, cb) { - const command = new UpdateItemCommand_1.UpdateItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} }; +const v5422 = {}; +v5422.constructor = v5420; +v5420.prototype = v5422; +v5419.setupRequestListeners = v5420; +var v5423; +v5423 = function buildCrossRegionPresignedUrl(req, done) { var config = v3.copy(req.service.config); config.region = req.params.SourceRegion; delete req.params.SourceRegion; delete config.endpoint; delete config.params; config.signatureVersion = \\"v4\\"; var destinationRegion = req.service.config.region; var svc = new req.service.constructor(config); var newReq = svc[req.operation](v3.copy(req.params)); newReq.on(\\"build\\", function addDestinationRegionParam(request) { var httpRequest = request.httpRequest; httpRequest.params.DestinationRegion = destinationRegion; httpRequest.body = v3.queryParamsToString(httpRequest.params); }); newReq.presign(function (err, url) { if (err) + done(err); +else { + req.params.PreSignedUrl = url; + done(); +} }); }; +const v5424 = {}; +v5424.constructor = v5423; +v5423.prototype = v5424; +v5419.buildCrossRegionPresignedUrl = v5423; +var v5418 = v5419; +const v5426 = []; +v5426.push(\\"copyDBSnapshot\\", \\"createDBInstanceReadReplica\\", \\"createDBCluster\\", \\"copyDBClusterSnapshot\\", \\"startDBInstanceAutomatedBackupsReplication\\"); +var v5425 = v5426; +v5417 = function setupRequestListeners(request) { v5418.setupRequestListeners(this, request, v5425); }; +const v5427 = {}; +v5427.constructor = v5417; +v5417.prototype = v5427; +v5407.setupRequestListeners = v5417; +v5404.prototype = v5407; +v5404.__super__ = v299; +const v5428 = {}; +v5428[\\"2013-01-10\\"] = null; +v5428[\\"2013-02-12\\"] = null; +v5428[\\"2013-09-09\\"] = null; +v5428[\\"2014-09-01\\"] = null; +v5428[\\"2014-09-01*\\"] = null; +v5428[\\"2014-10-31\\"] = null; +v5404.services = v5428; +const v5429 = []; +v5429.push(\\"2013-01-10\\", \\"2013-02-12\\", \\"2013-09-09\\", \\"2014-09-01\\", \\"2014-09-01*\\", \\"2014-10-31\\"); +v5404.apiVersions = v5429; +v5404.serviceIdentifier = \\"rds\\"; +var v5430; +v5430 = function Signer(options) { this.options = options || {}; }; +const v5431 = {}; +v5431.constructor = v5430; +var v5432; +v5432 = function convertUrlToAuthToken(url) { var protocol = \\"https://\\"; if (url.indexOf(protocol) === 0) { + return url.substring(protocol.length); +} }; +const v5433 = {}; +v5433.constructor = v5432; +v5432.prototype = v5433; +v5431.convertUrlToAuthToken = v5432; +var v5434; +var v5435 = v2; +var v5436 = v2; +const v5438 = {}; +v5438.signatureVersion = \\"v4\\"; +v5438.signingName = \\"rds-db\\"; +const v5439 = {}; +v5438.operations = v5439; +var v5437 = v5438; +v5434 = function getAuthToken(options, callback) { if (typeof options === \\"function\\" && callback === undefined) { + callback = options; + options = {}; +} var self = this; var hasCallback = typeof callback === \\"function\\"; options = v3.merge(this.options, options); var optionsValidation = this.validateAuthTokenOptions(options); if (optionsValidation !== true) { + if (hasCallback) { + return callback(optionsValidation, null); + } + throw optionsValidation; +} var expires = 900; var serviceOptions = { region: options.region, endpoint: new v5435.Endpoint(options.hostname + \\":\\" + options.port), paramValidation: false, signatureVersion: \\"v4\\" }; if (options.credentials) { + serviceOptions.credentials = options.credentials; +} service = new v5436.Service(serviceOptions); undefined = v5437; var request = undefined(); this.modifyRequestForAuthToken(request, options); if (hasCallback) { + request.presign(expires, function (err, url) { if (url) { + url = self.convertUrlToAuthToken(url); + } callback(err, url); }); +} +else { + var url = request.presign(expires); + return this.convertUrlToAuthToken(url); +} }; +const v5440 = {}; +v5440.constructor = v5434; +v5434.prototype = v5440; +v5431.getAuthToken = v5434; +var v5441; +v5441 = function modifyRequestForAuthToken(request, options) { request.on(\\"build\\", request.buildAsGet); var httpRequest = request.httpRequest; httpRequest.body = v3.queryParamsToString({ Action: \\"connect\\", DBUser: options.username }); }; +const v5442 = {}; +v5442.constructor = v5441; +v5441.prototype = v5442; +v5431.modifyRequestForAuthToken = v5441; +var v5443; +const v5445 = {}; +v5445.region = \\"string\\"; +v5445.hostname = \\"string\\"; +v5445.port = \\"number\\"; +v5445.username = \\"string\\"; +var v5444 = v5445; +var v5446 = v5445; +var v5447 = v5445; +var v5448 = v5445; +var v5449 = v40; +v5443 = function validateAuthTokenOptions(options) { var message = \\"\\"; options = options || {}; for (var key in v5444) { + if (!v113.hasOwnProperty.call(v5446, key)) { + continue; + } + if (typeof options[key] !== v5447[key]) { + message += \\"option '\\" + key + \\"' should have been type '\\" + v5448[key] + \\"', was '\\" + typeof options[key] + \\"'.\\\\n\\"; + } +} if (message.length) { + return v3.error(new v5449(), { code: \\"InvalidParameter\\", message: message }); +} return true; }; +const v5450 = {}; +v5450.constructor = v5443; +v5443.prototype = v5450; +v5431.validateAuthTokenOptions = v5443; +v5430.prototype = v5431; +v5430.__super__ = v31; +v5404.Signer = v5430; +v2.RDS = v5404; +var v5451; +var v5452 = v299; +var v5453 = v31; +v5451 = function () { if (v5452 !== v5453) { + return v5452.apply(this, arguments); +} }; +const v5454 = Object.create(v309); +v5454.constructor = v5451; +const v5455 = {}; +const v5456 = []; +var v5457; +var v5458 = v31; +var v5459 = v5454; +v5457 = function EVENTS_BUBBLE(event) { var baseClass = v5458.getPrototypeOf(v5459); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5460 = {}; +v5460.constructor = v5457; +v5457.prototype = v5460; +v5456.push(v5457); +v5455.apiCallAttempt = v5456; +const v5461 = []; +var v5462; +v5462 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5411.getPrototypeOf(v5459); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5463 = {}; +v5463.constructor = v5462; +v5462.prototype = v5463; +v5461.push(v5462); +v5455.apiCall = v5461; +v5454._events = v5455; +v5454.MONITOR_EVENTS_BUBBLE = v5457; +v5454.CALL_EVENTS_BUBBLE = v5462; +v5451.prototype = v5454; +v5451.__super__ = v299; +const v5464 = {}; +v5464[\\"2012-12-01\\"] = null; +v5451.services = v5464; +const v5465 = []; +v5465.push(\\"2012-12-01\\"); +v5451.apiVersions = v5465; +v5451.serviceIdentifier = \\"redshift\\"; +v2.Redshift = v5451; +var v5466; +var v5467 = v299; +var v5468 = v31; +v5466 = function () { if (v5467 !== v5468) { + return v5467.apply(this, arguments); +} }; +const v5469 = Object.create(v309); +v5469.constructor = v5466; +const v5470 = {}; +const v5471 = []; +var v5472; +var v5473 = v31; +var v5474 = v5469; +v5472 = function EVENTS_BUBBLE(event) { var baseClass = v5473.getPrototypeOf(v5474); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5475 = {}; +v5475.constructor = v5472; +v5472.prototype = v5475; +v5471.push(v5472); +v5470.apiCallAttempt = v5471; +const v5476 = []; +var v5477; +v5477 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5458.getPrototypeOf(v5474); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5478 = {}; +v5478.constructor = v5477; +v5477.prototype = v5478; +v5476.push(v5477); +v5470.apiCall = v5476; +v5469._events = v5470; +v5469.MONITOR_EVENTS_BUBBLE = v5472; +v5469.CALL_EVENTS_BUBBLE = v5477; +v5466.prototype = v5469; +v5466.__super__ = v299; +const v5479 = {}; +v5479[\\"2016-06-27\\"] = null; +v5466.services = v5479; +const v5480 = []; +v5480.push(\\"2016-06-27\\"); +v5466.apiVersions = v5480; +v5466.serviceIdentifier = \\"rekognition\\"; +v2.Rekognition = v5466; +var v5481; +var v5482 = v299; +var v5483 = v31; +v5481 = function () { if (v5482 !== v5483) { + return v5482.apply(this, arguments); +} }; +const v5484 = Object.create(v309); +v5484.constructor = v5481; +const v5485 = {}; +const v5486 = []; +var v5487; +var v5488 = v31; +var v5489 = v5484; +v5487 = function EVENTS_BUBBLE(event) { var baseClass = v5488.getPrototypeOf(v5489); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5490 = {}; +v5490.constructor = v5487; +v5487.prototype = v5490; +v5486.push(v5487); +v5485.apiCallAttempt = v5486; +const v5491 = []; +var v5492; +v5492 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5473.getPrototypeOf(v5489); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5493 = {}; +v5493.constructor = v5492; +v5492.prototype = v5493; +v5491.push(v5492); +v5485.apiCall = v5491; +v5484._events = v5485; +v5484.MONITOR_EVENTS_BUBBLE = v5487; +v5484.CALL_EVENTS_BUBBLE = v5492; +v5481.prototype = v5484; +v5481.__super__ = v299; +const v5494 = {}; +v5494[\\"2017-01-26\\"] = null; +v5481.services = v5494; +const v5495 = []; +v5495.push(\\"2017-01-26\\"); +v5481.apiVersions = v5495; +v5481.serviceIdentifier = \\"resourcegroupstaggingapi\\"; +v2.ResourceGroupsTaggingAPI = v5481; +var v5496; +var v5497 = v299; +var v5498 = v31; +v5496 = function () { if (v5497 !== v5498) { + return v5497.apply(this, arguments); +} }; +const v5499 = Object.create(v309); +v5499.constructor = v5496; +const v5500 = {}; +const v5501 = []; +var v5502; +var v5503 = v31; +var v5504 = v5499; +v5502 = function EVENTS_BUBBLE(event) { var baseClass = v5503.getPrototypeOf(v5504); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5505 = {}; +v5505.constructor = v5502; +v5502.prototype = v5505; +v5501.push(v5502); +v5500.apiCallAttempt = v5501; +const v5506 = []; +var v5507; +v5507 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5488.getPrototypeOf(v5504); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5508 = {}; +v5508.constructor = v5507; +v5507.prototype = v5508; +v5506.push(v5507); +v5500.apiCall = v5506; +v5499._events = v5500; +v5499.MONITOR_EVENTS_BUBBLE = v5502; +v5499.CALL_EVENTS_BUBBLE = v5507; +var v5509; +v5509 = function setupRequestListeners(request) { request.on(\\"build\\", this.sanitizeUrl); }; +const v5510 = {}; +v5510.constructor = v5509; +v5509.prototype = v5510; +v5499.setupRequestListeners = v5509; +var v5511; +v5511 = function sanitizeUrl(request) { var path = request.httpRequest.path; request.httpRequest.path = path.replace(/\\\\/%2F\\\\w+%2F/, \\"/\\"); }; +const v5512 = {}; +v5512.constructor = v5511; +v5511.prototype = v5512; +v5499.sanitizeUrl = v5511; +var v5513; +v5513 = function retryableError(error) { if (error.code === \\"PriorRequestNotComplete\\" && error.statusCode === 400) { + return true; +} +else { + var _super = v309.retryableError; + return _super.call(this, error); +} }; +const v5514 = {}; +v5514.constructor = v5513; +v5513.prototype = v5514; +v5499.retryableError = v5513; +v5496.prototype = v5499; +v5496.__super__ = v299; +const v5515 = {}; +v5515[\\"2013-04-01\\"] = null; +v5496.services = v5515; +const v5516 = []; +v5516.push(\\"2013-04-01\\"); +v5496.apiVersions = v5516; +v5496.serviceIdentifier = \\"route53\\"; +v2.Route53 = v5496; +var v5517; +var v5518 = v299; +var v5519 = v31; +v5517 = function () { if (v5518 !== v5519) { + return v5518.apply(this, arguments); +} }; +const v5520 = Object.create(v309); +v5520.constructor = v5517; +const v5521 = {}; +const v5522 = []; +var v5523; +var v5524 = v31; +var v5525 = v5520; +v5523 = function EVENTS_BUBBLE(event) { var baseClass = v5524.getPrototypeOf(v5525); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5526 = {}; +v5526.constructor = v5523; +v5523.prototype = v5526; +v5522.push(v5523); +v5521.apiCallAttempt = v5522; +const v5527 = []; +var v5528; +v5528 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5503.getPrototypeOf(v5525); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5529 = {}; +v5529.constructor = v5528; +v5528.prototype = v5529; +v5527.push(v5528); +v5521.apiCall = v5527; +v5520._events = v5521; +v5520.MONITOR_EVENTS_BUBBLE = v5523; +v5520.CALL_EVENTS_BUBBLE = v5528; +v5517.prototype = v5520; +v5517.__super__ = v299; +const v5530 = {}; +v5530[\\"2014-05-15\\"] = null; +v5517.services = v5530; +const v5531 = []; +v5531.push(\\"2014-05-15\\"); +v5517.apiVersions = v5531; +v5517.serviceIdentifier = \\"route53domains\\"; +v2.Route53Domains = v5517; +var v5532; +var v5533 = v299; +var v5534 = v31; +v5532 = function () { if (v5533 !== v5534) { + return v5533.apply(this, arguments); +} }; +const v5535 = Object.create(v309); +v5535.constructor = v5532; +const v5536 = {}; +const v5537 = []; +var v5538; +var v5539 = v31; +var v5540 = v5535; +v5538 = function EVENTS_BUBBLE(event) { var baseClass = v5539.getPrototypeOf(v5540); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5541 = {}; +v5541.constructor = v5538; +v5538.prototype = v5541; +v5537.push(v5538); +v5536.apiCallAttempt = v5537; +const v5542 = []; +var v5543; +v5543 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5524.getPrototypeOf(v5540); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5544 = {}; +v5544.constructor = v5543; +v5543.prototype = v5544; +v5542.push(v5543); +v5536.apiCall = v5542; +v5535._events = v5536; +v5535.MONITOR_EVENTS_BUBBLE = v5538; +v5535.CALL_EVENTS_BUBBLE = v5543; +var v5545; +v5545 = function getSignatureVersion(request) { var defaultApiVersion = this.api.signatureVersion; var userDefinedVersion = this._originalConfig ? this._originalConfig.signatureVersion : null; var regionDefinedVersion = this.config.signatureVersion; var isPresigned = request ? request.isPresigned() : false; if (userDefinedVersion) { + userDefinedVersion = userDefinedVersion === \\"v2\\" ? \\"s3\\" : userDefinedVersion; + return userDefinedVersion; +} if (isPresigned !== true) { + defaultApiVersion = \\"v4\\"; +} +else if (regionDefinedVersion) { + defaultApiVersion = regionDefinedVersion; +} return defaultApiVersion; }; +const v5546 = {}; +v5546.constructor = v5545; +v5545.prototype = v5546; +v5535.getSignatureVersion = v5545; +var v5547; +var v5548 = \\"s3-object-lambda\\"; +v5547 = function getSigningName(req) { if (req && req.operation === \\"writeGetObjectResponse\\") { + return v5548; +} var _super = v309.getSigningName; return (req && req._parsedArn && req._parsedArn.service) ? req._parsedArn.service : _super.call(this); }; +const v5549 = {}; +v5549.constructor = v5547; +v5547.prototype = v5549; +v5535.getSigningName = v5547; +var v5550; +v5550 = function getSignerClass(request) { var signatureVersion = this.getSignatureVersion(request); return v450.RequestSigner.getVersion(signatureVersion); }; +const v5551 = {}; +v5551.constructor = v5550; +v5550.prototype = v5551; +v5535.getSignerClass = v5550; +var v5552; +var v5553 = v40; +v5552 = function validateService() { var msg; var messages = []; if (!this.config.region) + this.config.region = \\"us-east-1\\"; if (!this.config.endpoint && this.config.s3BucketEndpoint) { + messages.push(\\"An endpoint must be provided when configuring \\" + \\"\`s3BucketEndpoint\` to true.\\"); +} if (messages.length === 1) { + msg = messages[0]; +} +else if (messages.length > 1) { + msg = \\"Multiple configuration errors:\\\\n\\" + messages.join(\\"\\\\n\\"); +} if (msg) { + throw v3.error(new v5553(), { name: \\"InvalidEndpoint\\", message: msg }); +} }; +const v5554 = {}; +v5554.constructor = v5552; +v5552.prototype = v5554; +v5535.validateService = v5552; +var v5555; +v5555 = function shouldDisableBodySigning(request) { var signerClass = this.getSignerClass(); if (this.config.s3DisableBodySigning === true && signerClass === v450.V4 && request.httpRequest.endpoint.protocol === \\"https:\\") { + return true; +} return false; }; +const v5556 = {}; +v5556.constructor = v5555; +v5555.prototype = v5556; +v5535.shouldDisableBodySigning = v5555; +var v5557; +const v5559 = {}; +var v5560; +v5560 = function isArnInParam(req, paramName) { var inputShape = (req.service.api.operations[req.operation] || {}).input || {}; var inputMembers = inputShape.members || {}; if (!req.params[paramName] || !inputMembers[paramName]) + return false; return v2654.validate(req.params[paramName]); }; +const v5561 = {}; +v5561.constructor = v5560; +v5560.prototype = v5561; +v5559.isArnInParam = v5560; +var v5562; +var v5563 = v40; +v5562 = function validateArnService(req) { var parsedArn = req._parsedArn; if (parsedArn.service !== \\"s3\\" && parsedArn.service !== \\"s3-outposts\\" && parsedArn.service !== \\"s3-object-lambda\\") { + throw v3.error(new v5563(), { code: \\"InvalidARN\\", message: \\"expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component\\" }); +} }; +const v5564 = {}; +v5564.constructor = v5562; +v5562.prototype = v5564; +v5559.validateArnService = v5562; +var v5565; +var v5566 = v40; +v5565 = function validateArnAccount(req) { var parsedArn = req._parsedArn; if (!/[0-9]{12}/.exec(parsedArn.accountId)) { + throw v3.error(new v5566(), { code: \\"InvalidARN\\", message: \\"ARN accountID does not match regex \\\\\\"[0-9]{12}\\\\\\"\\" }); +} }; +const v5567 = {}; +v5567.constructor = v5565; +v5565.prototype = v5567; +v5559.validateArnAccount = v5565; +var v5568; +var v5569 = v5559; +var v5570 = v40; +v5568 = function validateS3AccessPointArn(req) { var parsedArn = req._parsedArn; var delimiter = parsedArn.resource[\\"accesspoint\\".length]; if (parsedArn.resource.split(delimiter).length !== 2) { + throw v3.error(new v5566(), { code: \\"InvalidARN\\", message: \\"Access Point ARN should have one resource accesspoint/{accesspointName}\\" }); +} var accessPoint = parsedArn.resource.split(delimiter)[1]; var accessPointPrefix = accessPoint + \\"-\\" + parsedArn.accountId; if (!v5569.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\\\\./)) { + throw v3.error(new v5570(), { code: \\"InvalidARN\\", message: \\"Access point resource in ARN is not DNS compatible. Got \\" + accessPoint }); +} req._parsedArn.accessPoint = accessPoint; }; +const v5571 = {}; +v5571.constructor = v5568; +v5568.prototype = v5571; +v5559.validateS3AccessPointArn = v5568; +var v5572; +var v5573 = v40; +var v5574 = v373; +var v5575 = v40; +v5572 = function validateOutpostsArn(req) { var parsedArn = req._parsedArn; if (parsedArn.resource.indexOf(\\"outpost:\\") !== 0 && parsedArn.resource.indexOf(\\"outpost/\\") !== 0) { + throw v3.error(new v5573(), { code: \\"InvalidARN\\", message: \\"ARN resource should begin with 'outpost/'\\" }); +} var delimiter = parsedArn.resource[\\"outpost\\".length]; var outpostId = parsedArn.resource.split(delimiter)[1]; var dnsHostRegex = new v5574(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); if (!dnsHostRegex.test(outpostId)) { + throw v3.error(new v5575(), { code: \\"InvalidARN\\", message: \\"Outpost resource in ARN is not DNS compatible. Got \\" + outpostId }); +} req._parsedArn.outpostId = outpostId; }; +const v5576 = {}; +v5576.constructor = v5572; +v5572.prototype = v5576; +v5559.validateOutpostsArn = v5572; +var v5577; +var v5578 = v40; +var v5579 = v5559; +var v5580 = v40; +v5577 = function validateOutpostsAccessPointArn(req) { var parsedArn = req._parsedArn; var delimiter = parsedArn.resource[\\"outpost\\".length]; if (parsedArn.resource.split(delimiter).length !== 4) { + throw v3.error(new v5578(), { code: \\"InvalidARN\\", message: \\"Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}\\" }); +} var accessPoint = parsedArn.resource.split(delimiter)[3]; var accessPointPrefix = accessPoint + \\"-\\" + parsedArn.accountId; if (!v5579.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\\\\./)) { + throw v3.error(new v5580(), { code: \\"InvalidARN\\", message: \\"Access point resource in ARN is not DNS compatible. Got \\" + accessPoint }); +} req._parsedArn.accessPoint = accessPoint; }; +const v5581 = {}; +v5581.constructor = v5577; +v5577.prototype = v5581; +v5559.validateOutpostsAccessPointArn = v5577; +var v5582; +var v5583 = v40; +var v5584 = v40; +var v5585 = v40; +var v5586 = v313; +var v5587 = v313; +var v5588 = v40; +var v5589 = v40; +var v5590 = v40; +v5582 = function validateArnRegion(req, options) { if (options === undefined) { + options = {}; +} var useArnRegion = v5579.loadUseArnRegionConfig(req); var regionFromArn = req._parsedArn.region; var clientRegion = req.service.config.region; var useFipsEndpoint = req.service.config.useFipsEndpoint; var allowFipsEndpoint = options.allowFipsEndpoint || false; if (!regionFromArn) { + var message = \\"ARN region is empty\\"; + if (req._parsedArn.service === \\"s3\\") { + message = message + \\"\\\\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. \\" + \\"You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).\\"; + } + throw v3.error(new v5583(), { code: \\"InvalidARN\\", message: message }); +} if (useFipsEndpoint && !allowFipsEndpoint) { + throw v3.error(new v5584(), { code: \\"InvalidConfiguration\\", message: \\"ARN endpoint is not compatible with FIPS region\\" }); +} if (regionFromArn.indexOf(\\"fips\\") >= 0) { + throw v3.error(new v5585(), { code: \\"InvalidConfiguration\\", message: \\"FIPS region not allowed in ARN\\" }); +} if (!useArnRegion && regionFromArn !== clientRegion) { + throw v3.error(new v5585(), { code: \\"InvalidConfiguration\\", message: \\"Configured region conflicts with access point region\\" }); +} +else if (useArnRegion && v5586.getEndpointSuffix(regionFromArn) !== v5587.getEndpointSuffix(clientRegion)) { + throw v3.error(new v5588(), { code: \\"InvalidConfiguration\\", message: \\"Configured region and access point region not in same partition\\" }); +} if (req.service.config.useAccelerateEndpoint) { + throw v3.error(new v5589(), { code: \\"InvalidConfiguration\\", message: \\"useAccelerateEndpoint config is not supported with access point ARN\\" }); +} if (req._parsedArn.service === \\"s3-outposts\\" && req.service.config.useDualstackEndpoint) { + throw v3.error(new v5590(), { code: \\"InvalidConfiguration\\", message: \\"Dualstack is not supported with outposts access point ARN\\" }); +} }; +const v5591 = {}; +v5591.constructor = v5582; +v5582.prototype = v5591; +v5559.validateArnRegion = v5582; +var v5592; +var v5593 = v8; +var v5594 = v8; +var v5595 = v8; +v5592 = function loadUseArnRegionConfig(req) { var envName = \\"AWS_S3_USE_ARN_REGION\\"; var configName = \\"s3_use_arn_region\\"; var useArnRegion = true; var originalConfig = req.service._originalConfig || {}; if (req.service.config.s3UseArnRegion !== undefined) { + return req.service.config.s3UseArnRegion; +} +else if (originalConfig.s3UseArnRegion !== undefined) { + useArnRegion = originalConfig.s3UseArnRegion === true; +} +else if (v3.isNode()) { + if (v5593.env[envName]) { + var value = v5594.env[envName].trim().toLowerCase(); + if ([\\"false\\", \\"true\\"].indexOf(value) < 0) { + throw v3.error(new v5588(), { code: \\"InvalidConfiguration\\", message: envName + \\" only accepts true or false. Got \\" + v5595.env[envName], retryable: false }); + } + useArnRegion = value === \\"true\\"; + } + else { + var profiles = {}; + var profile = {}; + try { + profiles = v3.getProfilesFromSharedConfig(v200); + profile = profiles[v5595.env.AWS_PROFILE || \\"default\\"]; } - } - updateTable(args, optionsOrCb, cb) { - const command = new UpdateTableCommand_1.UpdateTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + catch (e) { } + if (profile[configName]) { + if ([\\"false\\", \\"true\\"].indexOf(profile[configName].trim().toLowerCase()) < 0) { + throw v3.error(new v5589(), { code: \\"InvalidConfiguration\\", message: configName + \\" only accepts true or false. Got \\" + profile[configName], retryable: false }); + } + useArnRegion = profile[configName].trim().toLowerCase() === \\"true\\"; } - } - updateTableReplicaAutoScaling(args, optionsOrCb, cb) { - const command = new UpdateTableReplicaAutoScalingCommand_1.UpdateTableReplicaAutoScalingCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + } +} req.service.config.s3UseArnRegion = useArnRegion; return useArnRegion; }; +const v5596 = {}; +v5596.constructor = v5592; +v5592.prototype = v5596; +v5559.loadUseArnRegionConfig = v5592; +var v5597; +var v5598 = v40; +v5597 = function validatePopulateUriFromArn(req) { if (req.service._originalConfig && req.service._originalConfig.endpoint) { + throw v3.error(new v5598(), { code: \\"InvalidConfiguration\\", message: \\"Custom endpoint is not compatible with access point ARN\\" }); +} if (req.service.config.s3ForcePathStyle) { + throw v3.error(new v5598(), { code: \\"InvalidConfiguration\\", message: \\"Cannot construct path-style endpoint with access point\\" }); +} }; +const v5599 = {}; +v5599.constructor = v5597; +v5597.prototype = v5599; +v5559.validatePopulateUriFromArn = v5597; +var v5600; +var v5601 = v373; +var v5602 = v373; +v5600 = function dnsCompatibleBucketName(bucketName) { var b = bucketName; var domain = new v5601(/^[a-z0-9][a-z0-9\\\\.\\\\-]{1,61}[a-z0-9]$/); var ipAddress = new v5602(/(\\\\d+\\\\.){3}\\\\d+/); var dots = new v5602(/\\\\.\\\\./); return (b.match(domain) && !b.match(ipAddress) && !b.match(dots)) ? true : false; }; +const v5603 = {}; +v5603.constructor = v5600; +v5600.prototype = v5603; +v5559.dnsCompatibleBucketName = v5600; +var v5558 = v5559; +var v5604 = v5559; +var v5605 = v5559; +var v5606 = v5559; +var v5607 = v5559; +var v5608 = v5559; +var v5609 = v5559; +v5557 = function setupRequestListeners(request) { var prependListener = true; request.addListener(\\"validate\\", this.validateScheme); request.addListener(\\"validate\\", this.validateBucketName, prependListener); request.addListener(\\"validate\\", this.optInUsEast1RegionalEndpoint, prependListener); request.removeListener(\\"validate\\", v428.VALIDATE_REGION); request.addListener(\\"build\\", this.addContentType); request.addListener(\\"build\\", this.computeContentMd5); request.addListener(\\"build\\", this.computeSseCustomerKeyMd5); request.addListener(\\"build\\", this.populateURI); request.addListener(\\"afterBuild\\", this.addExpect100Continue); request.addListener(\\"extractError\\", this.extractError); request.addListener(\\"extractData\\", v3.hoistPayloadMember); request.addListener(\\"extractData\\", this.extractData); request.addListener(\\"extractData\\", this.extractErrorFrom200Response); request.addListener(\\"beforePresign\\", this.prepareSignedUrl); if (this.shouldDisableBodySigning(request)) { + request.removeListener(\\"afterBuild\\", v428.COMPUTE_SHA256); + request.addListener(\\"afterBuild\\", this.disableBodySigning); +} if (request.operation !== \\"createBucket\\" && v5558.isArnInParam(request, \\"Bucket\\")) { + request._parsedArn = v2654.parse(request.params.Bucket); + request.removeListener(\\"validate\\", this.validateBucketName); + request.removeListener(\\"build\\", this.populateURI); + if (request._parsedArn.service === \\"s3\\") { + request.addListener(\\"validate\\", v5604.validateS3AccessPointArn); + request.addListener(\\"validate\\", this.validateArnResourceType); + request.addListener(\\"validate\\", this.validateArnRegion); + } + else if (request._parsedArn.service === \\"s3-outposts\\") { + request.addListener(\\"validate\\", v5605.validateOutpostsAccessPointArn); + request.addListener(\\"validate\\", v5606.validateOutpostsArn); + request.addListener(\\"validate\\", v5607.validateArnRegion); + } + request.addListener(\\"validate\\", v5608.validateArnAccount); + request.addListener(\\"validate\\", v5608.validateArnService); + request.addListener(\\"build\\", this.populateUriFromAccessPointArn); + request.addListener(\\"build\\", v5609.validatePopulateUriFromArn); + return; +} request.addListener(\\"validate\\", this.validateBucketEndpoint); request.addListener(\\"validate\\", this.correctBucketRegionFromCache); request.onAsync(\\"extractError\\", this.requestBucketRegion); if (v3.isBrowser()) { + request.onAsync(\\"retry\\", this.reqRegionForNetworkingError); +} }; +const v5610 = {}; +v5610.constructor = v5557; +v5557.prototype = v5610; +v5535.setupRequestListeners = v5557; +var v5611; +var v5612 = v40; +v5611 = function (req) { var params = req.params, scheme = req.httpRequest.endpoint.protocol, sensitive = params.SSECustomerKey || params.CopySourceSSECustomerKey; if (sensitive && scheme !== \\"https:\\") { + var msg = \\"Cannot send SSE keys over HTTP. Set 'sslEnabled'\\" + \\"to 'true' in your configuration\\"; + throw v3.error(new v5612(), { code: \\"ConfigError\\", message: msg }); +} }; +const v5613 = {}; +v5613.constructor = v5611; +v5611.prototype = v5613; +v5535.validateScheme = v5611; +var v5614; +var v5615 = v40; +v5614 = function (req) { if (!req.params.Bucket && req.service.config.s3BucketEndpoint) { + var msg = \\"Cannot send requests to root API with \`s3BucketEndpoint\` set.\\"; + throw v3.error(new v5615(), { code: \\"ConfigError\\", message: msg }); +} }; +const v5616 = {}; +v5616.constructor = v5614; +v5614.prototype = v5616; +v5535.validateBucketEndpoint = v5614; +var v5617; +var v5618 = v5559; +v5617 = function validateArnRegion(req) { v5618.validateArnRegion(req, { allowFipsEndpoint: true }); }; +const v5619 = {}; +v5619.constructor = v5617; +v5617.prototype = v5619; +v5535.validateArnRegion = v5617; +var v5620; +var v5621 = v40; +v5620 = function validateArnResourceType(req) { var resource = req._parsedArn.resource; if (resource.indexOf(\\"accesspoint:\\") !== 0 && resource.indexOf(\\"accesspoint/\\") !== 0) { + throw v3.error(new v5621(), { code: \\"InvalidARN\\", message: \\"ARN resource should begin with 'accesspoint/'\\" }); +} }; +const v5622 = {}; +v5622.constructor = v5620; +v5620.prototype = v5622; +v5535.validateArnResourceType = v5620; +var v5623; +var v5624 = v40; +v5623 = function validateBucketName(req) { var service = req.service; var signatureVersion = service.getSignatureVersion(req); var bucket = req.params && req.params.Bucket; var key = req.params && req.params.Key; var slashIndex = bucket && bucket.indexOf(\\"/\\"); if (bucket && slashIndex >= 0) { + if (typeof key === \\"string\\" && slashIndex > 0) { + req.params = v3.copy(req.params); + var prefix = bucket.substr(slashIndex + 1) || \\"\\"; + req.params.Key = prefix + \\"/\\" + key; + req.params.Bucket = bucket.substr(0, slashIndex); + } + else if (signatureVersion === \\"v4\\") { + var msg = \\"Bucket names cannot contain forward slashes. Bucket: \\" + bucket; + throw v3.error(new v5624(), { code: \\"InvalidBucket\\", message: msg }); + } +} }; +const v5625 = {}; +v5625.constructor = v5623; +v5623.prototype = v5625; +v5535.validateBucketName = v5623; +var v5626; +v5626 = function isValidAccelerateOperation(operation) { var invalidOperations = [\\"createBucket\\", \\"deleteBucket\\", \\"listBuckets\\"]; return invalidOperations.indexOf(operation) === -1; }; +const v5627 = {}; +v5627.constructor = v5626; +v5626.prototype = v5627; +v5535.isValidAccelerateOperation = v5626; +var v5628; +var v5629 = v2560; +var v5630 = undefined; +v5628 = function optInUsEast1RegionalEndpoint(req) { var service = req.service; var config = service.config; config.s3UsEast1RegionalEndpoint = v5629(service._originalConfig, { env: \\"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT\\", sharedConfig: \\"s3_us_east_1_regional_endpoint\\", clientConfig: \\"s3UsEast1RegionalEndpoint\\" }); if (!(service._originalConfig || {}).endpoint && req.httpRequest.region === \\"us-east-1\\" && config.s3UsEast1RegionalEndpoint === \\"regional\\" && req.httpRequest.endpoint.hostname.indexOf(\\"s3.amazonaws.com\\") >= 0) { + var insertPoint = config.endpoint.indexOf(\\".amazonaws.com\\"); + regionalEndpoint = config.endpoint.substring(0, insertPoint) + \\".us-east-1\\" + config.endpoint.substring(insertPoint); + req.httpRequest.updateEndpoint(v5630); +} }; +const v5631 = {}; +v5631.constructor = v5628; +v5628.prototype = v5631; +v5535.optInUsEast1RegionalEndpoint = v5628; +var v5632; +v5632 = function populateURI(req) { var httpRequest = req.httpRequest; var b = req.params.Bucket; var service = req.service; var endpoint = httpRequest.endpoint; if (b) { + if (!service.pathStyleBucketName(b)) { + if (service.config.useAccelerateEndpoint && service.isValidAccelerateOperation(req.operation)) { + if (service.config.useDualstackEndpoint) { + endpoint.hostname = b + \\".s3-accelerate.dualstack.amazonaws.com\\"; + } + else { + endpoint.hostname = b + \\".s3-accelerate.amazonaws.com\\"; + } } - } - updateTimeToLive(args, optionsOrCb, cb) { - const command = new UpdateTimeToLiveCommand_1.UpdateTimeToLiveCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); + else if (!service.config.s3BucketEndpoint) { + endpoint.hostname = b + \\".\\" + endpoint.hostname; } - } - }; - exports2.DynamoDB = DynamoDB; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js -var require_commands3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_BatchExecuteStatementCommand(), exports2); - tslib_1.__exportStar(require_BatchGetItemCommand(), exports2); - tslib_1.__exportStar(require_BatchWriteItemCommand(), exports2); - tslib_1.__exportStar(require_CreateBackupCommand(), exports2); - tslib_1.__exportStar(require_CreateGlobalTableCommand(), exports2); - tslib_1.__exportStar(require_CreateTableCommand(), exports2); - tslib_1.__exportStar(require_DeleteBackupCommand(), exports2); - tslib_1.__exportStar(require_DeleteItemCommand(), exports2); - tslib_1.__exportStar(require_DeleteTableCommand(), exports2); - tslib_1.__exportStar(require_DescribeBackupCommand(), exports2); - tslib_1.__exportStar(require_DescribeContinuousBackupsCommand(), exports2); - tslib_1.__exportStar(require_DescribeContributorInsightsCommand(), exports2); - tslib_1.__exportStar(require_DescribeEndpointsCommand(), exports2); - tslib_1.__exportStar(require_DescribeExportCommand(), exports2); - tslib_1.__exportStar(require_DescribeGlobalTableCommand(), exports2); - tslib_1.__exportStar(require_DescribeGlobalTableSettingsCommand(), exports2); - tslib_1.__exportStar(require_DescribeKinesisStreamingDestinationCommand(), exports2); - tslib_1.__exportStar(require_DescribeLimitsCommand(), exports2); - tslib_1.__exportStar(require_DescribeTableCommand(), exports2); - tslib_1.__exportStar(require_DescribeTableReplicaAutoScalingCommand(), exports2); - tslib_1.__exportStar(require_DescribeTimeToLiveCommand(), exports2); - tslib_1.__exportStar(require_DisableKinesisStreamingDestinationCommand(), exports2); - tslib_1.__exportStar(require_EnableKinesisStreamingDestinationCommand(), exports2); - tslib_1.__exportStar(require_ExecuteStatementCommand(), exports2); - tslib_1.__exportStar(require_ExecuteTransactionCommand(), exports2); - tslib_1.__exportStar(require_ExportTableToPointInTimeCommand(), exports2); - tslib_1.__exportStar(require_GetItemCommand(), exports2); - tslib_1.__exportStar(require_ListBackupsCommand(), exports2); - tslib_1.__exportStar(require_ListContributorInsightsCommand(), exports2); - tslib_1.__exportStar(require_ListExportsCommand(), exports2); - tslib_1.__exportStar(require_ListGlobalTablesCommand(), exports2); - tslib_1.__exportStar(require_ListTablesCommand(), exports2); - tslib_1.__exportStar(require_ListTagsOfResourceCommand(), exports2); - tslib_1.__exportStar(require_PutItemCommand(), exports2); - tslib_1.__exportStar(require_QueryCommand(), exports2); - tslib_1.__exportStar(require_RestoreTableFromBackupCommand(), exports2); - tslib_1.__exportStar(require_RestoreTableToPointInTimeCommand(), exports2); - tslib_1.__exportStar(require_ScanCommand(), exports2); - tslib_1.__exportStar(require_TagResourceCommand(), exports2); - tslib_1.__exportStar(require_TransactGetItemsCommand(), exports2); - tslib_1.__exportStar(require_TransactWriteItemsCommand(), exports2); - tslib_1.__exportStar(require_UntagResourceCommand(), exports2); - tslib_1.__exportStar(require_UpdateContinuousBackupsCommand(), exports2); - tslib_1.__exportStar(require_UpdateContributorInsightsCommand(), exports2); - tslib_1.__exportStar(require_UpdateGlobalTableCommand(), exports2); - tslib_1.__exportStar(require_UpdateGlobalTableSettingsCommand(), exports2); - tslib_1.__exportStar(require_UpdateItemCommand(), exports2); - tslib_1.__exportStar(require_UpdateTableCommand(), exports2); - tslib_1.__exportStar(require_UpdateTableReplicaAutoScalingCommand(), exports2); - tslib_1.__exportStar(require_UpdateTimeToLiveCommand(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js -var require_models3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_models_0(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js -var require_Interfaces2 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js -var require_ListContributorInsightsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListContributorInsights = void 0; - var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListContributorInsightsCommand_1.ListContributorInsightsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listContributorInsights(input, ...args); - }; - async function* paginateListContributorInsights(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input[\\"MaxResults\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + var port = endpoint.port; + if (port !== 80 && port !== 443) { + endpoint.host = endpoint.hostname + \\":\\" + endpoint.port; } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListContributorInsights = paginateListContributorInsights; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js -var require_ListExportsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListExports = void 0; - var ListExportsCommand_1 = require_ListExportsCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listExports(input, ...args); - }; - async function* paginateListExports(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input[\\"MaxResults\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + else { + endpoint.host = endpoint.hostname; } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListExports = paginateListExports; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js -var require_ListTablesPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListTables = void 0; - var ListTablesCommand_1 = require_ListTablesCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listTables(input, ...args); - }; - async function* paginateListTables(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.ExclusiveStartTableName = token; - input[\\"Limit\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + httpRequest.virtualHostedBucket = b; + service.removeVirtualHostedBucketFromPath(req); + } +} }; +const v5633 = {}; +v5633.constructor = v5632; +v5632.prototype = v5633; +v5535.populateURI = v5632; +var v5634; +var v5635 = v373; +v5634 = function removeVirtualHostedBucketFromPath(req) { var httpRequest = req.httpRequest; var bucket = httpRequest.virtualHostedBucket; if (bucket && httpRequest.path) { + if (req.params && req.params.Key) { + var encodedS3Key = \\"/\\" + v3.uriEscapePath(req.params.Key); + if (httpRequest.path.indexOf(encodedS3Key) === 0 && (httpRequest.path.length === encodedS3Key.length || httpRequest.path[encodedS3Key.length] === \\"?\\")) { + return; } - yield page; - const prevToken = token; - token = page.LastEvaluatedTableName; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListTables = paginateListTables; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js -var require_QueryPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateQuery = void 0; - var QueryCommand_1 = require_QueryCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new QueryCommand_1.QueryCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.query(input, ...args); - }; - async function* paginateQuery(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.ExclusiveStartKey = token; - input[\\"Limit\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + httpRequest.path = httpRequest.path.replace(new v5635(\\"/\\" + bucket), \\"\\"); + if (httpRequest.path[0] !== \\"/\\") { + httpRequest.path = \\"/\\" + httpRequest.path; + } +} }; +const v5636 = {}; +v5636.constructor = v5634; +v5634.prototype = v5636; +v5535.removeVirtualHostedBucketFromPath = v5634; +var v5637; +var v5638 = v313; +var v5639 = v373; +v5637 = function populateUriFromAccessPointArn(req) { var accessPointArn = req._parsedArn; var isOutpostArn = accessPointArn.service === \\"s3-outposts\\"; var isObjectLambdaArn = accessPointArn.service === \\"s3-object-lambda\\"; var outpostsSuffix = isOutpostArn ? \\".\\" + accessPointArn.outpostId : \\"\\"; var serviceName = isOutpostArn ? \\"s3-outposts\\" : \\"s3-accesspoint\\"; var fipsSuffix = !isOutpostArn && req.service.config.useFipsEndpoint ? \\"-fips\\" : \\"\\"; var dualStackSuffix = !isOutpostArn && req.service.config.useDualstackEndpoint ? \\".dualstack\\" : \\"\\"; var endpoint = req.httpRequest.endpoint; var dnsSuffix = v5638.getEndpointSuffix(accessPointArn.region); var useArnRegion = req.service.config.s3UseArnRegion; endpoint.hostname = [accessPointArn.accessPoint + \\"-\\" + accessPointArn.accountId + outpostsSuffix, serviceName + fipsSuffix + dualStackSuffix, useArnRegion ? accessPointArn.region : req.service.config.region, dnsSuffix].join(\\".\\"); if (isObjectLambdaArn) { + var serviceName = \\"s3-object-lambda\\"; + var accesspointName = accessPointArn.resource.split(\\"/\\")[1]; + var fipsSuffix = req.service.config.useFipsEndpoint ? \\"-fips\\" : \\"\\"; + endpoint.hostname = [accesspointName + \\"-\\" + accessPointArn.accountId, serviceName + fipsSuffix, useArnRegion ? accessPointArn.region : req.service.config.region, dnsSuffix].join(\\".\\"); +} endpoint.host = endpoint.hostname; var encodedArn = v3.uriEscape(req.params.Bucket); var path = req.httpRequest.path; req.httpRequest.path = path.replace(new v5639(\\"/\\" + encodedArn), \\"\\"); if (req.httpRequest.path[0] !== \\"/\\") { + req.httpRequest.path = \\"/\\" + req.httpRequest.path; +} req.httpRequest.region = accessPointArn.region; }; +const v5640 = {}; +v5640.constructor = v5637; +v5637.prototype = v5640; +v5535.populateUriFromAccessPointArn = v5637; +var v5641; +v5641 = function addExpect100Continue(req) { var len = req.httpRequest.headers[\\"Content-Length\\"]; if (v3.isNode() && (len >= 1024 * 1024 || req.params.Body instanceof v3.stream.Stream)) { + req.httpRequest.headers[\\"Expect\\"] = \\"100-continue\\"; +} }; +const v5642 = {}; +v5642.constructor = v5641; +v5641.prototype = v5642; +v5535.addExpect100Continue = v5641; +var v5643; +v5643 = function addContentType(req) { var httpRequest = req.httpRequest; if (httpRequest.method === \\"GET\\" || httpRequest.method === \\"HEAD\\") { + delete httpRequest.headers[\\"Content-Type\\"]; + return; +} if (!httpRequest.headers[\\"Content-Type\\"]) { + httpRequest.headers[\\"Content-Type\\"] = \\"application/octet-stream\\"; +} var contentType = httpRequest.headers[\\"Content-Type\\"]; if (v3.isBrowser()) { + if (typeof httpRequest.body === \\"string\\" && !contentType.match(/;\\\\s*charset=/)) { + var charset = \\"; charset=UTF-8\\"; + httpRequest.headers[\\"Content-Type\\"] += charset; + } + else { + var replaceFn = function (_, prefix, charsetName) { return prefix + charsetName.toUpperCase(); }; + httpRequest.headers[\\"Content-Type\\"] = contentType.replace(/(;\\\\s*charset=)(.+)$/, replaceFn); + } +} }; +const v5644 = {}; +v5644.constructor = v5643; +v5643.prototype = v5644; +v5535.addContentType = v5643; +var v5645; +v5645 = function willComputeChecksums(req) { var rules = req.service.api.operations[req.operation].input.members; var body = req.httpRequest.body; var needsContentMD5 = req.service.config.computeChecksums && rules.ContentMD5 && !req.params.ContentMD5 && body && (v3.Buffer.isBuffer(req.httpRequest.body) || typeof req.httpRequest.body === \\"string\\"); if (needsContentMD5 && req.service.shouldDisableBodySigning(req) && !req.isPresigned()) { + return true; +} if (needsContentMD5 && this.getSignatureVersion(req) === \\"s3\\" && req.isPresigned()) { + return true; +} return false; }; +const v5646 = {}; +v5646.constructor = v5645; +v5645.prototype = v5646; +v5535.willComputeChecksums = v5645; +var v5647; +v5647 = function computeContentMd5(req) { if (req.service.willComputeChecksums(req)) { + var md5 = v91.md5(req.httpRequest.body, \\"base64\\"); + req.httpRequest.headers[\\"Content-MD5\\"] = md5; +} }; +const v5648 = {}; +v5648.constructor = v5647; +v5647.prototype = v5648; +v5535.computeContentMd5 = v5647; +var v5649; +v5649 = function computeSseCustomerKeyMd5(req) { var keys = { SSECustomerKey: \\"x-amz-server-side-encryption-customer-key-MD5\\", CopySourceSSECustomerKey: \\"x-amz-copy-source-server-side-encryption-customer-key-MD5\\" }; v3.each(keys, function (key, header) { if (req.params[key]) { + var value = v91.md5(req.params[key], \\"base64\\"); + req.httpRequest.headers[header] = value; +} }); }; +const v5650 = {}; +v5650.constructor = v5649; +v5649.prototype = v5650; +v5535.computeSseCustomerKeyMd5 = v5649; +var v5651; +var v5652 = v5559; +v5651 = function pathStyleBucketName(bucketName) { if (this.config.s3ForcePathStyle) + return true; if (this.config.s3BucketEndpoint) + return false; if (v5652.dnsCompatibleBucketName(bucketName)) { + return (this.config.sslEnabled && bucketName.match(/\\\\./)) ? true : false; +} +else { + return true; +} }; +const v5653 = {}; +v5653.constructor = v5651; +v5651.prototype = v5653; +v5535.pathStyleBucketName = v5651; +var v5654; +const v5656 = {}; +v5656.completeMultipartUpload = true; +v5656.copyObject = true; +v5656.uploadPartCopy = true; +var v5655 = v5656; +var v5657 = v40; +v5654 = function extractErrorFrom200Response(resp) { if (!v5655[resp.request.operation]) + return; var httpResponse = resp.httpResponse; if (httpResponse.body && httpResponse.body.toString().match(\\"\\")) { + resp.data = null; + var service = this.service ? this.service : this; + service.extractError(resp); + throw resp.error; +} +else if (!httpResponse.body || !httpResponse.body.toString().match(/<[\\\\w_]/)) { + resp.data = null; + throw v3.error(new v5657(), { code: \\"InternalError\\", message: \\"S3 aborted request\\" }); +} }; +const v5658 = {}; +v5658.constructor = v5654; +v5654.prototype = v5658; +v5535.extractErrorFrom200Response = v5654; +var v5659; +var v5660 = v5656; +const v5662 = []; +v5662.push(\\"AuthorizationHeaderMalformed\\", \\"BadRequest\\", \\"PermanentRedirect\\", 301); +var v5661 = v5662; +v5659 = function retryableError(error, request) { if (v5660[request.operation] && error.statusCode === 200) { + return true; +} +else if (request._requestRegionForBucket && request.service.bucketRegionCache[request._requestRegionForBucket]) { + return false; +} +else if (error && error.code === \\"RequestTimeout\\") { + return true; +} +else if (error && v5661.indexOf(error.code) != -1 && error.region && error.region != request.httpRequest.region) { + request.httpRequest.region = error.region; + if (error.statusCode === 301) { + request.service.updateReqBucketRegion(request); + } + return true; +} +else { + var _super = v309.retryableError; + return _super.call(this, error, request); +} }; +const v5663 = {}; +v5663.constructor = v5659; +v5659.prototype = v5663; +v5535.retryableError = v5659; +var v5664; +var v5665 = v2; +v5664 = function updateReqBucketRegion(request, region) { var httpRequest = request.httpRequest; if (typeof region === \\"string\\" && region.length) { + httpRequest.region = region; +} if (!httpRequest.endpoint.host.match(/s3(?!-accelerate).*\\\\.amazonaws\\\\.com$/)) { + return; +} var service = request.service; var s3Config = service.config; var s3BucketEndpoint = s3Config.s3BucketEndpoint; if (s3BucketEndpoint) { + delete s3Config.s3BucketEndpoint; +} var newConfig = v3.copy(s3Config); delete newConfig.endpoint; newConfig.region = httpRequest.region; httpRequest.endpoint = (new v5665.S3(newConfig)).endpoint; service.populateURI(request); s3Config.s3BucketEndpoint = s3BucketEndpoint; httpRequest.headers.Host = httpRequest.endpoint.host; if (request._asm.currentState === \\"validate\\") { + request.removeListener(\\"build\\", service.populateURI); + request.addListener(\\"build\\", service.removeVirtualHostedBucketFromPath); +} }; +const v5666 = {}; +v5666.constructor = v5664; +v5664.prototype = v5666; +v5535.updateReqBucketRegion = v5664; +var v5667; +v5667 = function extractData(resp) { var req = resp.request; if (req.operation === \\"getBucketLocation\\") { + var match = resp.httpResponse.body.toString().match(/>(.+)<\\\\/Location/); + delete resp.data[\\"_\\"]; + if (match) { + resp.data.LocationConstraint = match[1]; + } + else { + resp.data.LocationConstraint = \\"\\"; + } +} var bucket = req.params.Bucket || null; if (req.operation === \\"deleteBucket\\" && typeof bucket === \\"string\\" && !resp.error) { + req.service.clearBucketRegionCache(bucket); +} +else { + var headers = resp.httpResponse.headers || {}; + var region = headers[\\"x-amz-bucket-region\\"] || null; + if (!region && req.operation === \\"createBucket\\" && !resp.error) { + var createBucketConfiguration = req.params.CreateBucketConfiguration; + if (!createBucketConfiguration) { + region = \\"us-east-1\\"; + } + else if (createBucketConfiguration.LocationConstraint === \\"EU\\") { + region = \\"eu-west-1\\"; + } + else { + region = createBucketConfiguration.LocationConstraint; } - yield page; - const prevToken = token; - token = page.LastEvaluatedKey; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateQuery = paginateQuery; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js -var require_ScanPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateScan = void 0; - var ScanCommand_1 = require_ScanCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ScanCommand_1.ScanCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.scan(input, ...args); - }; - async function* paginateScan(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.ExclusiveStartKey = token; - input[\\"Limit\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + if (region) { + if (bucket && region !== req.service.bucketRegionCache[bucket]) { + req.service.bucketRegionCache[bucket] = region; } - yield page; - const prevToken = token; - token = page.LastEvaluatedKey; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateScan = paginateScan; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js -var require_pagination2 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_Interfaces2(), exports2); - tslib_1.__exportStar(require_ListContributorInsightsPaginator(), exports2); - tslib_1.__exportStar(require_ListExportsPaginator(), exports2); - tslib_1.__exportStar(require_ListTablesPaginator(), exports2); - tslib_1.__exportStar(require_QueryPaginator(), exports2); - tslib_1.__exportStar(require_ScanPaginator(), exports2); - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js -var require_sleep = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.sleep = void 0; - var sleep = (seconds) => { - return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); - }; - exports2.sleep = sleep; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js -var require_waiter = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.checkExceptions = exports2.WaiterState = exports2.waiterServiceDefaults = void 0; - exports2.waiterServiceDefaults = { - minDelay: 2, - maxDelay: 120 - }; - var WaiterState; - (function(WaiterState2) { - WaiterState2[\\"ABORTED\\"] = \\"ABORTED\\"; - WaiterState2[\\"FAILURE\\"] = \\"FAILURE\\"; - WaiterState2[\\"SUCCESS\\"] = \\"SUCCESS\\"; - WaiterState2[\\"RETRY\\"] = \\"RETRY\\"; - WaiterState2[\\"TIMEOUT\\"] = \\"TIMEOUT\\"; - })(WaiterState = exports2.WaiterState || (exports2.WaiterState = {})); - var checkExceptions = (result) => { - if (result.state === WaiterState.ABORTED) { - const abortError = new Error(\`\${JSON.stringify({ - ...result, - reason: \\"Request was aborted\\" - })}\`); - abortError.name = \\"AbortError\\"; - throw abortError; - } else if (result.state === WaiterState.TIMEOUT) { - const timeoutError = new Error(\`\${JSON.stringify({ - ...result, - reason: \\"Waiter has timed out\\" - })}\`); - timeoutError.name = \\"TimeoutError\\"; - throw timeoutError; - } else if (result.state !== WaiterState.SUCCESS) { - throw new Error(\`\${JSON.stringify({ result })}\`); - } - return result; - }; - exports2.checkExceptions = checkExceptions; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js -var require_poller = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.runPolling = void 0; - var sleep_1 = require_sleep(); - var waiter_1 = require_waiter(); - var exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { - if (attempt > attemptCeiling) - return maxDelay; - const delay = minDelay * 2 ** (attempt - 1); - return randomInRange(minDelay, delay); - }; - var randomInRange = (min, max) => min + Math.random() * (max - min); - var runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { - var _a; - const { state } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state }; - } - let currentAttempt = 1; - const waitUntil = Date.now() + maxWaitTime * 1e3; - const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; - while (true) { - if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { - return { state: waiter_1.WaiterState.ABORTED }; + } +} req.service.extractRequestIds(resp); }; +const v5668 = {}; +v5668.constructor = v5667; +v5667.prototype = v5668; +v5535.extractData = v5667; +var v5669; +var v5670 = v40; +v5669 = function extractError(resp) { var codes = { 304: \\"NotModified\\", 403: \\"Forbidden\\", 400: \\"BadRequest\\", 404: \\"NotFound\\" }; var req = resp.request; var code = resp.httpResponse.statusCode; var body = resp.httpResponse.body || \\"\\"; var headers = resp.httpResponse.headers || {}; var region = headers[\\"x-amz-bucket-region\\"] || null; var bucket = req.params.Bucket || null; var bucketRegionCache = req.service.bucketRegionCache; if (region && bucket && region !== bucketRegionCache[bucket]) { + bucketRegionCache[bucket] = region; +} var cachedRegion; if (codes[code] && body.length === 0) { + if (bucket && !region) { + cachedRegion = bucketRegionCache[bucket] || null; + if (cachedRegion !== req.httpRequest.region) { + region = cachedRegion; } - const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); - if (Date.now() + delay * 1e3 > waitUntil) { - return { state: waiter_1.WaiterState.TIMEOUT }; + } + resp.error = v3.error(new v5670(), { code: codes[code], message: null, region: region }); +} +else { + var data = new v937.Parser().parse(body.toString()); + if (data.Region && !region) { + region = data.Region; + if (bucket && region !== bucketRegionCache[bucket]) { + bucketRegionCache[bucket] = region; } - await (0, sleep_1.sleep)(delay); - const { state: state2 } = await acceptorChecks(client, input); - if (state2 !== waiter_1.WaiterState.RETRY) { - return { state: state2 }; + } + else if (bucket && !region && !data.Region) { + cachedRegion = bucketRegionCache[bucket] || null; + if (cachedRegion !== req.httpRequest.region) { + region = cachedRegion; } - currentAttempt += 1; - } - }; - exports2.runPolling = runPolling; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js -var require_validate2 = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.validateWaiterOptions = void 0; - var validateWaiterOptions = (options) => { - if (options.maxWaitTime < 1) { - throw new Error(\`WaiterConfiguration.maxWaitTime must be greater than 0\`); - } else if (options.minDelay < 1) { - throw new Error(\`WaiterConfiguration.minDelay must be greater than 0\`); - } else if (options.maxDelay < 1) { - throw new Error(\`WaiterConfiguration.maxDelay must be greater than 0\`); - } else if (options.maxWaitTime <= options.minDelay) { - throw new Error(\`WaiterConfiguration.maxWaitTime [\${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); - } else if (options.maxDelay < options.minDelay) { - throw new Error(\`WaiterConfiguration.maxDelay [\${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); - } - }; - exports2.validateWaiterOptions = validateWaiterOptions; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js -var require_utils = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_sleep(), exports2); - tslib_1.__exportStar(require_validate2(), exports2); - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js -var require_createWaiter = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.createWaiter = void 0; - var poller_1 = require_poller(); - var utils_1 = require_utils(); - var waiter_1 = require_waiter(); - var abortTimeout = async (abortSignal) => { - return new Promise((resolve) => { - abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); - }); - }; - var createWaiter = async (options, input, acceptorChecks) => { - const params = { - ...waiter_1.waiterServiceDefaults, - ...options - }; - (0, utils_1.validateWaiterOptions)(params); - const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; - if (options.abortController) { - exitConditions.push(abortTimeout(options.abortController.signal)); - } - if (options.abortSignal) { - exitConditions.push(abortTimeout(options.abortSignal)); - } - return Promise.race(exitConditions); - }; - exports2.createWaiter = createWaiter; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/index.js -var require_dist_cjs46 = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_createWaiter(), exports2); - tslib_1.__exportStar(require_waiter(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js -var require_waitForTableExists = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.waitUntilTableExists = exports2.waitForTableExists = void 0; - var util_waiter_1 = require_dist_cjs46(); - var DescribeTableCommand_1 = require_DescribeTableCommand(); - var checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); - reason = result; + } + resp.error = v3.error(new v5621(), { code: data.Code || code, message: data.Message || null, region: region }); +} req.service.extractRequestIds(resp); }; +const v5671 = {}; +v5671.constructor = v5669; +v5669.prototype = v5671; +v5535.extractError = v5669; +var v5672; +var v5673 = v5662; +v5672 = function requestBucketRegion(resp, done) { var error = resp.error; var req = resp.request; var bucket = req.params.Bucket || null; if (!error || !bucket || error.region || req.operation === \\"listObjects\\" || (v3.isNode() && req.operation === \\"headBucket\\") || (error.statusCode === 400 && req.operation !== \\"headObject\\") || v5673.indexOf(error.code) === -1) { + return done(); +} var reqOperation = v3.isNode() ? \\"headBucket\\" : \\"listObjects\\"; var reqParams = { Bucket: bucket }; if (reqOperation === \\"listObjects\\") + reqParams.MaxKeys = 0; var regionReq = req.service[reqOperation](reqParams); regionReq._requestRegionForBucket = bucket; regionReq.send(function () { var region = req.service.bucketRegionCache[bucket] || null; error.region = region; done(); }); }; +const v5674 = {}; +v5674.constructor = v5672; +v5672.prototype = v5674; +v5535.requestBucketRegion = v5672; +var v5675; +var v5676 = v5559; +v5675 = function reqRegionForNetworkingError(resp, done) { if (!v3.isBrowser()) { + return done(); +} var error = resp.error; var request = resp.request; var bucket = request.params.Bucket; if (!error || error.code !== \\"NetworkingError\\" || !bucket || request.httpRequest.region === \\"us-east-1\\") { + return done(); +} var service = request.service; var bucketRegionCache = service.bucketRegionCache; var cachedRegion = bucketRegionCache[bucket] || null; if (cachedRegion && cachedRegion !== request.httpRequest.region) { + service.updateReqBucketRegion(request, cachedRegion); + done(); +} +else if (!v5676.dnsCompatibleBucketName(bucket)) { + service.updateReqBucketRegion(request, \\"us-east-1\\"); + if (bucketRegionCache[bucket] !== \\"us-east-1\\") { + bucketRegionCache[bucket] = \\"us-east-1\\"; + } + done(); +} +else if (request.httpRequest.virtualHostedBucket) { + var getRegionReq = service.listObjects({ Bucket: bucket, MaxKeys: 0 }); + service.updateReqBucketRegion(getRegionReq, \\"us-east-1\\"); + getRegionReq._requestRegionForBucket = bucket; + getRegionReq.send(function () { var region = service.bucketRegionCache[bucket] || null; if (region && region !== request.httpRequest.region) { + service.updateReqBucketRegion(request, region); + } done(); }); +} +else { + done(); +} }; +const v5677 = {}; +v5677.constructor = v5675; +v5675.prototype = v5677; +v5535.reqRegionForNetworkingError = v5675; +const v5678 = {}; +v5535.bucketRegionCache = v5678; +var v5679; +var v5680 = v31; +v5679 = function (buckets) { var bucketRegionCache = this.bucketRegionCache; if (!buckets) { + buckets = v5680.keys(bucketRegionCache); +} +else if (typeof buckets === \\"string\\") { + buckets = [buckets]; +} for (var i = 0; i < buckets.length; i++) { + delete bucketRegionCache[buckets[i]]; +} return bucketRegionCache; }; +const v5681 = {}; +v5681.constructor = v5679; +v5679.prototype = v5681; +v5535.clearBucketRegionCache = v5679; +var v5682; +v5682 = function correctBucketRegionFromCache(req) { var bucket = req.params.Bucket || null; if (bucket) { + var service = req.service; + var requestRegion = req.httpRequest.region; + var cachedRegion = service.bucketRegionCache[bucket]; + if (cachedRegion && cachedRegion !== requestRegion) { + service.updateReqBucketRegion(req, cachedRegion); + } +} }; +const v5683 = {}; +v5683.constructor = v5682; +v5682.prototype = v5683; +v5535.correctBucketRegionFromCache = v5682; +var v5684; +v5684 = function extractRequestIds(resp) { var extendedRequestId = resp.httpResponse.headers ? resp.httpResponse.headers[\\"x-amz-id-2\\"] : null; var cfId = resp.httpResponse.headers ? resp.httpResponse.headers[\\"x-amz-cf-id\\"] : null; resp.extendedRequestId = extendedRequestId; resp.cfId = cfId; if (resp.error) { + resp.error.requestId = resp.requestId || null; + resp.error.extendedRequestId = extendedRequestId; + resp.error.cfId = cfId; +} }; +const v5685 = {}; +v5685.constructor = v5684; +v5684.prototype = v5685; +v5535.extractRequestIds = v5684; +var v5686; +var v5687 = v40; +v5686 = function getSignedUrl(operation, params, callback) { params = v3.copy(params || {}); var expires = params.Expires || 900; if (typeof expires !== \\"number\\") { + throw v3.error(new v5687(), { code: \\"InvalidParameterException\\", message: \\"The expiration must be a number, received \\" + typeof expires }); +} delete params.Expires; var request = this.makeRequest(operation, params); if (callback) { + v3.defer(function () { request.presign(expires, callback); }); +} +else { + return request.presign(expires, callback); +} }; +const v5688 = {}; +v5688.constructor = v5686; +v5686.prototype = v5688; +v5535.getSignedUrl = v5686; +var v5689; +v5689 = function createPresignedPost(params, callback) { if (typeof params === \\"function\\" && callback === undefined) { + callback = params; + params = null; +} params = v3.copy(params || {}); var boundParams = this.config.params || {}; var bucket = params.Bucket || boundParams.Bucket, self = this, config = this.config, endpoint = v3.copy(this.endpoint); if (!config.s3BucketEndpoint) { + endpoint.pathname = \\"/\\" + bucket; +} function finalizePost() { return { url: v3.urlFormat(endpoint), fields: self.preparePostFields(config.credentials, config.region, bucket, params.Fields, params.Conditions, params.Expires) }; } if (callback) { + config.getCredentials(function (err) { if (err) { + callback(err); + } + else { try { - const returnComparator = () => { - return result.Table.TableStatus; - }; - if (returnComparator() === \\"ACTIVE\\") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } catch (e) { + callback(null, finalizePost()); } - } catch (exception) { - reason = exception; - if (exception.name && exception.name == \\"ResourceNotFoundException\\") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; + catch (err) { + callback(err); } - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; - }; - var waitForTableExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - }; - exports2.waitForTableExists = waitForTableExists; - var waitUntilTableExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); - }; - exports2.waitUntilTableExists = waitUntilTableExists; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js -var require_waitForTableNotExists = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.waitUntilTableNotExists = exports2.waitForTableNotExists = void 0; - var util_waiter_1 = require_dist_cjs46(); - var DescribeTableCommand_1 = require_DescribeTableCommand(); - var checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); - reason = result; - } catch (exception) { - reason = exception; - if (exception.name && exception.name == \\"ResourceNotFoundException\\") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; - }; - var waitForTableNotExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - }; - exports2.waitForTableNotExists = waitForTableNotExists; - var waitUntilTableNotExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); - }; - exports2.waitUntilTableNotExists = waitUntilTableNotExists; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js -var require_waiters = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_waitForTableExists(), exports2); - tslib_1.__exportStar(require_waitForTableNotExists(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js -var require_dist_cjs47 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDBServiceException = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_DynamoDB(), exports2); - tslib_1.__exportStar(require_DynamoDBClient(), exports2); - tslib_1.__exportStar(require_commands3(), exports2); - tslib_1.__exportStar(require_models3(), exports2); - tslib_1.__exportStar(require_pagination2(), exports2); - tslib_1.__exportStar(require_waiters(), exports2); - var DynamoDBServiceException_1 = require_DynamoDBServiceException(); - Object.defineProperty(exports2, \\"DynamoDBServiceException\\", { enumerable: true, get: function() { - return DynamoDBServiceException_1.DynamoDBServiceException; } }); - } -}); - -// -var v0; -var v2 = require_dist_cjs47(); -var v3 = v2.DynamoDBClient; -var v1 = v3; -v0 = () => { - const client = new v1({}); - return client.config.serviceId; -}; -exports.handler = v0; -" -`; - -exports[`serialize a class declaration 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - method() { - v3++; - return v3; - } -}; -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method(); - foo.method(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a class declaration with constructor 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - constructor() { - v3 += 1; - } - method() { - v3++; - return v3; - } -}; -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method(); - foo.method(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a class hierarchy 1`] = ` -"// -var v0; -var v5 = 0; -var v4 = class Foo { - method() { - return v5 += 1; - } -}; -var v3 = v4; -var v2 = class Bar extends v3 { - method() { - return super.method() + 1; - } -}; -var v1 = v2; -v0 = () => { - const bar = new v1(); - return [bar.method(), v5]; -}; -exports.handler = v0; -" -`; - -exports[`serialize a class mix-in 1`] = ` -"// -var v0; -var v4; -var v5 = 0; -v4 = () => { - return class Foo { - method() { - return v5 += 1; - } - }; -}; -var v3 = v4; -var v2 = class Bar extends v3() { - method() { - return super.method() + 1; - } -}; -var v1 = v2; -v0 = () => { - const bar = new v1(); - return [bar.method(), v5]; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched class getter 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - get method() { - return v3 += 1; - } -}; -Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { - return v3 += 2; -} }); -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method; - foo.method; - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched class getter and setter 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - set method(val) { - v3 += val; - } - get method() { - return v3; - } -}; -Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { - return v3 + 1; -}, set: function set(val) { - v3 += val + 1; -} }); -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - set method(val) { - v3 += val; - } - get method() { - return v3; - } -}; -Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { - return v3 + 1; -}, set: Object.getOwnPropertyDescriptor(v2.prototype, \\"method\\").set }); -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched class method 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - method() { - v3 += 1; - } -}; -var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.prototype.method = v4; -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method(); - foo.method(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched class method that has been re-set 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - method() { - v3 += 1; - } -}; -var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.prototype.method = v4; -var v1 = v2; -var v6 = {}; -v6.constructor = v2; -v6.method = v4; -var v7 = function method() { - v3 += 1; -}; -v0 = () => { - const foo = new v1(); - foo.method(); - v6.method = v7; - foo.method(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched class setter 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - set method(val) { - v3 += val; - } -}; -Object.defineProperty(v2.prototype, \\"method\\", { set: function set(val) { - v3 += val + 1; -} }); -var v1 = v2; -v0 = () => { - const foo = new v1(); - foo.method = 1; - foo.method = 1; - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; -}; - -// -var v0; -var v3 = 0; -var _a; -var v2 = (_a = class { -}, __publicField(_a, \\"method\\", () => { - v3 += 1; -}), _a); -var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.method = v4; -var v1 = v2; -v0 = () => { - v1.method(); - v1.method(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched static class method 1`] = ` -"// -var v0; -var v3 = 0; -var v2 = class Foo { - method() { - v3 += 1; - } -}; -var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.method = v4; +} +else { + return finalizePost(); +} }; +const v5690 = {}; +v5690.constructor = v5689; +v5689.prototype = v5690; +v5535.createPresignedPost = v5689; +var v5691; +var v5692 = v510; +var v5693 = v77; +v5691 = function preparePostFields(credentials, region, bucket, fields, conditions, expiresInSeconds) { var now = this.getSkewCorrectedDate(); if (!credentials || !region || !bucket) { + throw new v5670(\\"Unable to create a POST object policy without a bucket,\\" + \\" region, and credentials\\"); +} fields = v3.copy(fields || {}); conditions = (conditions || []).slice(0); expiresInSeconds = expiresInSeconds || 3600; var signingDate = v73.iso8601(now).replace(/[:\\\\-]|\\\\.\\\\d{3}/g, \\"\\"); var shortDate = signingDate.substr(0, 8); var scope = v5692.createScope(shortDate, region, \\"s3\\"); var credential = credentials.accessKeyId + \\"/\\" + scope; fields[\\"bucket\\"] = bucket; fields[\\"X-Amz-Algorithm\\"] = \\"AWS4-HMAC-SHA256\\"; fields[\\"X-Amz-Credential\\"] = credential; fields[\\"X-Amz-Date\\"] = signingDate; if (credentials.sessionToken) { + fields[\\"X-Amz-Security-Token\\"] = credentials.sessionToken; +} for (var field in fields) { + if (fields.hasOwnProperty(field)) { + var condition = {}; + condition[field] = fields[field]; + conditions.push(condition); + } +} fields.Policy = this.preparePostPolicy(new v5693(now.valueOf() + expiresInSeconds * 1000), conditions); fields[\\"X-Amz-Signature\\"] = v91.hmac(v5692.getSigningKey(credentials, shortDate, region, \\"s3\\", true), fields.Policy, \\"hex\\"); return fields; }; +const v5694 = {}; +v5694.constructor = v5691; +v5691.prototype = v5694; +v5535.preparePostFields = v5691; +var v5695; +var v5696 = v163; +v5695 = function preparePostPolicy(expiration, conditions) { return v37.encode(v5696.stringify({ expiration: v73.iso8601(expiration), conditions: conditions })); }; +const v5697 = {}; +v5697.constructor = v5695; +v5695.prototype = v5697; +v5535.preparePostPolicy = v5695; +var v5698; +v5698 = function prepareSignedUrl(request) { request.addListener(\\"validate\\", request.service.noPresignedContentLength); request.removeListener(\\"build\\", request.service.addContentType); if (!request.params.Body) { + request.removeListener(\\"build\\", request.service.computeContentMd5); +} +else { + request.addListener(\\"afterBuild\\", v428.COMPUTE_SHA256); +} }; +const v5699 = {}; +v5699.constructor = v5698; +v5698.prototype = v5699; +v5535.prepareSignedUrl = v5698; +var v5700; +v5700 = function disableBodySigning(request) { var headers = request.httpRequest.headers; if (!v113.hasOwnProperty.call(headers, \\"presigned-expires\\")) { + headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; +} }; +const v5701 = {}; +v5701.constructor = v5700; +v5700.prototype = v5701; +v5535.disableBodySigning = v5700; +var v5702; +v5702 = function noPresignedContentLength(request) { if (request.params.ContentLength !== undefined) { + throw v3.error(new v5670(), { code: \\"UnexpectedParameter\\", message: \\"ContentLength is not supported in pre-signed URLs.\\" }); +} }; +const v5703 = {}; +v5703.constructor = v5702; +v5702.prototype = v5703; +v5535.noPresignedContentLength = v5702; +var v5704; +v5704 = function createBucket(params, callback) { if (typeof params === \\"function\\" || !params) { + callback = callback || params; + params = {}; +} var hostname = this.endpoint.hostname; var copiedParams = v3.copy(params); if (hostname !== this.api.globalEndpoint && !params.CreateBucketConfiguration) { + copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region }; +} return this.makeRequest(\\"createBucket\\", copiedParams, callback); }; +const v5705 = {}; +v5705.constructor = v5704; +v5704.prototype = v5705; +v5535.createBucket = v5704; +var v5706; +var v5707 = \\"s3-object-lambda\\"; +var v5708 = v2; +v5706 = function writeGetObjectResponse(params, callback) { var request = this.makeRequest(\\"writeGetObjectResponse\\", v3.copy(params), callback); var hostname = this.endpoint.hostname; if (hostname.indexOf(this.config.region) !== -1) { + hostname = hostname.replace(\\"s3.\\", v5707 + \\".\\"); +} +else { + hostname = hostname.replace(\\"s3.\\", v5707 + \\".\\" + this.config.region + \\".\\"); +} request.httpRequest.endpoint = new v5708.Endpoint(hostname, this.config); return request; }; +const v5709 = {}; +v5709.constructor = v5706; +v5706.prototype = v5709; +v5535.writeGetObjectResponse = v5706; +var v5710; +v5710 = function upload(params, options, callback) { if (typeof options === \\"function\\" && callback === undefined) { + callback = options; + options = null; +} options = options || {}; options = v3.merge(options || {}, { service: this, params: params }); var uploader = new v5708.S3.ManagedUpload(options); if (typeof callback === \\"function\\") + uploader.send(callback); return uploader; }; +const v5711 = {}; +v5711.constructor = v5710; +v5710.prototype = v5711; +v5535.upload = v5710; +var v5712; +var v5713 = v244; +var v5714 = \\"getSignedUrl\\"; +v5712 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v5713(function (resolve, reject) { args.push(function (err, data) { if (err) { + reject(err); +} +else { + resolve(data); +} }); self[v5714].apply(self, args); }); }; +const v5715 = {}; +v5715.constructor = v5712; +v5712.prototype = v5715; +v5535.getSignedUrlPromise = v5712; +v5532.prototype = v5535; +v5532.__super__ = v299; +const v5716 = {}; +v5716[\\"2006-03-01\\"] = null; +v5532.services = v5716; +const v5717 = []; +v5717.push(\\"2006-03-01\\"); +v5532.apiVersions = v5717; +v5532.serviceIdentifier = \\"s3\\"; +var v5718; +var v5719 = v2; +var v5720 = v40; +v5718 = function ManagedUpload(options) { var self = this; v5719.SequentialExecutor.call(self); self.body = null; self.sliceFn = null; self.callback = null; self.parts = {}; self.completeInfo = []; self.fillQueue = function () { self.callback(new v5720(\\"Unsupported body payload \\" + typeof self.body)); }; self.configure(options); }; +const v5721 = {}; +v5721.constructor = v5718; +var v5722; +var v5723 = v33; +var v5724 = v40; +var v5725 = v40; +v5722 = function configure(options) { options = options || {}; this.partSize = this.minPartSize; if (options.queueSize) + this.queueSize = options.queueSize; if (options.partSize) + this.partSize = options.partSize; if (options.leavePartsOnError) + this.leavePartsOnError = true; if (options.tags) { + if (!v5723.isArray(options.tags)) { + throw new v5724(\\"Tags must be specified as an array; \\" + typeof options.tags + \\" provided.\\"); + } + this.tags = options.tags; +} if (this.partSize < this.minPartSize) { + throw new v5725(\\"partSize must be greater than \\" + this.minPartSize); +} this.service = options.service; this.bindServiceObject(options.params); this.validateBody(); this.adjustTotalBytes(); }; +const v5726 = {}; +v5726.constructor = v5722; +v5722.prototype = v5726; +v5721.configure = v5722; +v5721.leavePartsOnError = false; +v5721.queueSize = 4; +v5721.partSize = null; +v5721.minPartSize = 5242880; +v5721.maxTotalParts = 10000; +var v5727; +v5727 = function (callback) { var self = this; self.failed = false; self.callback = callback || function (err) { if (err) + throw err; }; var runFill = true; if (self.sliceFn) { + self.fillQueue = self.fillBuffer; +} +else if (v3.isNode()) { + var Stream = v3.stream.Stream; + if (self.body instanceof Stream) { + runFill = false; + self.fillQueue = self.fillStream; + self.partBuffers = []; + self.body.on(\\"error\\", function (err) { self.cleanup(err); }).on(\\"readable\\", function () { self.fillQueue(); }).on(\\"end\\", function () { self.isDoneChunking = true; self.numParts = self.totalPartNumbers; self.fillQueue.call(self); if (self.isDoneChunking && self.totalPartNumbers >= 1 && self.doneParts === self.numParts) { + self.finishMultiPart(); + } }); + } +} if (runFill) + self.fillQueue.call(self); }; +const v5728 = {}; +v5728.constructor = v5727; +v5727.prototype = v5728; +v5721.send = v5727; +var v5729; +var v5730 = v40; +v5729 = function () { var self = this; if (self.isDoneChunking === true && self.totalPartNumbers === 1 && self.singlePart) { + self.singlePart.abort(); +} +else { + self.cleanup(v3.error(new v5730(\\"Request aborted by user\\"), { code: \\"RequestAbortedError\\", retryable: false })); +} }; +const v5731 = {}; +v5731.constructor = v5729; +v5729.prototype = v5731; +v5721.abort = v5729; +var v5732; +var v5733 = v40; +v5732 = function validateBody() { var self = this; self.body = self.service.config.params.Body; if (typeof self.body === \\"string\\") { + self.body = v41.toBuffer(self.body); +} +else if (!self.body) { + throw new v5733(\\"params.Body is required\\"); +} self.sliceFn = v3.arraySliceFn(self.body); }; +const v5734 = {}; +v5734.constructor = v5732; +v5732.prototype = v5734; +v5721.validateBody = v5732; +var v5735; +var v5736 = v2; +var v5737 = v31; +v5735 = function bindServiceObject(params) { params = params || {}; var self = this; if (!self.service) { + self.service = new v5736.S3({ params: params }); +} +else { + var service = self.service; + var config = v3.copy(service.config); + config.signatureVersion = service.getSignatureVersion(); + self.service = new service.constructor.__super__(config); + self.service.config.params = v3.merge(self.service.config.params || {}, params); + v5737.defineProperty(self.service, \\"_originalConfig\\", { get: function () { return service._originalConfig; }, enumerable: false, configurable: true }); +} }; +const v5738 = {}; +v5738.constructor = v5735; +v5735.prototype = v5738; +v5721.bindServiceObject = v5735; +var v5739; +var v5740 = v56; +var v5741 = v787; +v5739 = function adjustTotalBytes() { var self = this; try { + self.totalBytes = v5740(self.body); +} +catch (e) { } if (self.totalBytes) { + var newPartSize = v5741.ceil(self.totalBytes / self.maxTotalParts); + if (newPartSize > self.partSize) + self.partSize = newPartSize; +} +else { + self.totalBytes = undefined; +} }; +const v5742 = {}; +v5742.constructor = v5739; +v5739.prototype = v5742; +v5721.adjustTotalBytes = v5739; +v5721.isDoneChunking = false; +v5721.partPos = 0; +v5721.totalChunkedBytes = 0; +v5721.totalUploadedBytes = 0; +v5721.totalBytes = undefined; +v5721.numParts = 0; +v5721.totalPartNumbers = 0; +v5721.activeParts = 0; +v5721.doneParts = 0; +v5721.parts = null; +v5721.completeInfo = null; +v5721.failed = false; +v5721.multipartReq = null; +v5721.partBuffers = null; +v5721.partBufferLength = 0; +var v5743; +var v5744 = v56; +v5743 = function fillBuffer() { var self = this; var bodyLen = v5744(self.body); if (bodyLen === 0) { + self.isDoneChunking = true; + self.numParts = 1; + self.nextChunk(self.body); + return; +} while (self.activeParts < self.queueSize && self.partPos < bodyLen) { + var endPos = v5741.min(self.partPos + self.partSize, bodyLen); + var buf = self.sliceFn.call(self.body, self.partPos, endPos); + self.partPos += self.partSize; + if (v5740(buf) < self.partSize || self.partPos === bodyLen) { + self.isDoneChunking = true; + self.numParts = self.totalPartNumbers + 1; + } + self.nextChunk(buf); +} }; +const v5745 = {}; +v5745.constructor = v5743; +v5743.prototype = v5745; +v5721.fillBuffer = v5743; +var v5746; +var v5747 = v1816; +var v5748 = v1816; +var v5749 = undefined; +v5746 = function fillStream() { var self = this; if (self.activeParts >= self.queueSize) + return; var buf = self.body.read(self.partSize - self.partBufferLength) || self.body.read(); if (buf) { + self.partBuffers.push(buf); + self.partBufferLength += buf.length; + self.totalChunkedBytes += buf.length; +} if (self.partBufferLength >= self.partSize) { + var pbuf = self.partBuffers.length === 1 ? self.partBuffers[0] : v5747.concat(self.partBuffers); + self.partBuffers = []; + self.partBufferLength = 0; + if (pbuf.length > self.partSize) { + var rest = pbuf.slice(self.partSize); + self.partBuffers.push(rest); + self.partBufferLength += rest.length; + pbuf = pbuf.slice(0, self.partSize); + } + self.nextChunk(pbuf); +} if (self.isDoneChunking && !self.isDoneSending) { + pbuf = self.partBuffers.length === 1 ? self.partBuffers[0] : v5748.concat(self.partBuffers); + self.partBuffers = []; + self.partBufferLength = 0; + self.totalBytes = self.totalChunkedBytes; + self.isDoneSending = true; + if (self.numParts === 0 || undefined > 0) { + self.numParts++; + self.nextChunk(v5749); + } +} self.body.read(0); }; +const v5750 = {}; +v5750.constructor = v5746; +v5746.prototype = v5750; +v5721.fillStream = v5746; +var v5751; +v5751 = function nextChunk(chunk) { var self = this; if (self.failed) + return null; var partNumber = ++self.totalPartNumbers; if (self.isDoneChunking && partNumber === 1) { + var params = { Body: chunk }; + if (this.tags) { + params.Tagging = this.getTaggingHeader(); + } + var req = self.service.putObject(params); + req._managedUpload = self; + req.on(\\"httpUploadProgress\\", self.progress).send(self.finishSinglePart); + self.singlePart = req; + return null; +} +else if (self.service.config.params.ContentMD5) { + var err = v3.error(new v5733(\\"The Content-MD5 you specified is invalid for multi-part uploads.\\"), { code: \\"InvalidDigest\\", retryable: false }); + self.cleanup(err); + return null; +} if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) { + return null; +} self.activeParts++; if (!self.service.config.params.UploadId) { + if (!self.multipartReq) { + self.multipartReq = self.service.createMultipartUpload(); + self.multipartReq.on(\\"success\\", function (resp) { self.service.config.params.UploadId = resp.data.UploadId; self.multipartReq = null; }); + self.queueChunks(chunk, partNumber); + self.multipartReq.on(\\"error\\", function (err) { self.cleanup(err); }); + self.multipartReq.send(); + } + else { + self.queueChunks(chunk, partNumber); + } +} +else { + self.uploadPart(chunk, partNumber); +} }; +const v5752 = {}; +v5752.constructor = v5751; +v5751.prototype = v5752; +v5721.nextChunk = v5751; +var v5753; +v5753 = function getTaggingHeader() { var kvPairStrings = []; for (var i = 0; i < this.tags.length; i++) { + kvPairStrings.push(v3.uriEscape(this.tags[i].Key) + \\"=\\" + v3.uriEscape(this.tags[i].Value)); +} return kvPairStrings.join(\\"&\\"); }; +const v5754 = {}; +v5754.constructor = v5753; +v5753.prototype = v5754; +v5721.getTaggingHeader = v5753; +var v5755; +var v5756 = v40; +v5755 = function uploadPart(chunk, partNumber) { var self = this; var partParams = { Body: chunk, ContentLength: v55.byteLength(chunk), PartNumber: partNumber }; var partInfo = { ETag: null, PartNumber: partNumber }; self.completeInfo[partNumber] = partInfo; var req = self.service.uploadPart(partParams); self.parts[partNumber] = req; req._lastUploadedBytes = 0; req._managedUpload = self; req.on(\\"httpUploadProgress\\", self.progress); req.send(function (err, data) { delete self.parts[partParams.PartNumber]; self.activeParts--; if (!err && (!data || !data.ETag)) { + var message = \\"No access to ETag property on response.\\"; + if (v3.isBrowser()) { + message += \\" Check CORS configuration to expose ETag header.\\"; + } + err = v3.error(new v5756(message), { code: \\"ETagMissing\\", retryable: false }); +} if (err) + return self.cleanup(err); if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) + return null; partInfo.ETag = data.ETag; self.doneParts++; if (self.isDoneChunking && self.doneParts === self.totalPartNumbers) { + self.finishMultiPart(); +} +else { + self.fillQueue.call(self); +} }); }; +const v5757 = {}; +v5757.constructor = v5755; +v5755.prototype = v5757; +v5721.uploadPart = v5755; +var v5758; +v5758 = function queueChunks(chunk, partNumber) { var self = this; self.multipartReq.on(\\"success\\", function () { self.uploadPart(chunk, partNumber); }); }; +const v5759 = {}; +v5759.constructor = v5758; +v5758.prototype = v5759; +v5721.queueChunks = v5758; +var v5760; +v5760 = function cleanup(err) { var self = this; if (self.failed) + return; if (typeof self.body.removeAllListeners === \\"function\\" && typeof self.body.resume === \\"function\\") { + self.body.removeAllListeners(\\"readable\\"); + self.body.removeAllListeners(\\"end\\"); + self.body.resume(); +} if (self.multipartReq) { + self.multipartReq.removeAllListeners(\\"success\\"); + self.multipartReq.removeAllListeners(\\"error\\"); + self.multipartReq.removeAllListeners(\\"complete\\"); + delete self.multipartReq; +} if (self.service.config.params.UploadId && !self.leavePartsOnError) { + self.service.abortMultipartUpload().send(); +} +else if (self.leavePartsOnError) { + self.isDoneChunking = false; +} v3.each(self.parts, function (partNumber, part) { part.removeAllListeners(\\"complete\\"); part.abort(); }); self.activeParts = 0; self.partPos = 0; self.numParts = 0; self.totalPartNumbers = 0; self.parts = {}; self.failed = true; self.callback(err); }; +const v5761 = {}; +v5761.constructor = v5760; +v5760.prototype = v5761; +v5721.cleanup = v5760; +var v5762; +var v5763 = v33; +var v5764 = v136; +v5762 = function finishMultiPart() { var self = this; var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } }; self.service.completeMultipartUpload(completeParams, function (err, data) { if (err) { + return self.cleanup(err); +} if (data && typeof data.Location === \\"string\\") { + data.Location = data.Location.replace(/%2F/g, \\"/\\"); +} if (v5763.isArray(self.tags)) { + for (var i = 0; i < self.tags.length; i++) { + self.tags[i].Value = v5764(self.tags[i].Value); + } + self.service.putObjectTagging({ Tagging: { TagSet: self.tags } }, function (e, d) { if (e) { + self.callback(e); + } + else { + self.callback(e, data); + } }); +} +else { + self.callback(err, data); +} }); }; +const v5765 = {}; +v5765.constructor = v5762; +v5762.prototype = v5765; +v5721.finishMultiPart = v5762; +var v5766; +v5766 = function finishSinglePart(err, data) { var upload = this.request._managedUpload; var httpReq = this.request.httpRequest; var endpoint = httpReq.endpoint; if (err) + return upload.callback(err); data.Location = [endpoint.protocol, \\"//\\", endpoint.host, httpReq.path].join(\\"\\"); data.key = this.request.params.Key; data.Key = this.request.params.Key; data.Bucket = this.request.params.Bucket; upload.callback(err, data); }; +const v5767 = {}; +v5767.constructor = v5766; +v5766.prototype = v5767; +v5721.finishSinglePart = v5766; +var v5768; +v5768 = function progress(info) { var upload = this._managedUpload; if (this.operation === \\"putObject\\") { + info.part = 1; + info.key = this.params.Key; +} +else { + upload.totalUploadedBytes += info.loaded - this._lastUploadedBytes; + this._lastUploadedBytes = info.loaded; + info = { loaded: upload.totalUploadedBytes, total: upload.totalBytes, part: this.params.PartNumber, key: this.params.Key }; +} upload.emit(\\"httpUploadProgress\\", [info]); }; +const v5769 = {}; +v5769.constructor = v5768; +v5768.prototype = v5769; +v5721.progress = v5768; +v5721.listeners = v403; +v5721.on = v405; +v5721.onAsync = v407; +v5721.removeListener = v409; +v5721.removeAllListeners = v411; +v5721.emit = v413; +v5721.callListeners = v415; +v5721.addListeners = v418; +v5721.addNamedListener = v420; +v5721.addNamedAsyncListener = v422; +v5721.addNamedListeners = v424; +v5721.addListener = v405; +var v5770; +var v5771 = v244; +var v5772 = \\"send\\"; +v5770 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v5771(function (resolve, reject) { args.push(function (err, data) { if (err) { + reject(err); +} +else { + resolve(data); +} }); self[v5772].apply(self, args); }); }; +const v5773 = {}; +v5773.constructor = v5770; +v5770.prototype = v5773; +v5721.promise = v5770; +v5718.prototype = v5721; +v5718.__super__ = v31; +var v5774; +v5774 = function addPromisesToClass(PromiseDependency) { this.prototype.promise = v3.promisifyMethod(\\"send\\", PromiseDependency); }; +const v5775 = {}; +v5775.constructor = v5774; +v5774.prototype = v5775; +v5718.addPromisesToClass = v5774; +var v5776; +v5776 = function deletePromisesFromClass() { delete this.prototype.promise; }; +const v5777 = {}; +v5777.constructor = v5776; +v5776.prototype = v5777; +v5718.deletePromisesFromClass = v5776; +v5532.ManagedUpload = v5718; +var v5778; +v5778 = function addPromisesToClass(PromiseDependency) { this.prototype.getSignedUrlPromise = v3.promisifyMethod(\\"getSignedUrl\\", PromiseDependency); }; +const v5779 = {}; +v5779.constructor = v5778; +v5778.prototype = v5779; +v5532.addPromisesToClass = v5778; +var v5780; +v5780 = function deletePromisesFromClass() { delete this.prototype.getSignedUrlPromise; }; +const v5781 = {}; +v5781.constructor = v5780; +v5780.prototype = v5781; +v5532.deletePromisesFromClass = v5780; +v2.S3 = v5532; +var v5782; +var v5783 = v299; +var v5784 = v31; +v5782 = function () { if (v5783 !== v5784) { + return v5783.apply(this, arguments); +} }; +const v5785 = Object.create(v309); +v5785.constructor = v5782; +const v5786 = {}; +const v5787 = []; +var v5788; +var v5789 = v31; +var v5790 = v5785; +v5788 = function EVENTS_BUBBLE(event) { var baseClass = v5789.getPrototypeOf(v5790); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5791 = {}; +v5791.constructor = v5788; +v5788.prototype = v5791; +v5787.push(v5788); +v5786.apiCallAttempt = v5787; +const v5792 = []; +var v5793; +v5793 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5539.getPrototypeOf(v5790); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5794 = {}; +v5794.constructor = v5793; +v5793.prototype = v5794; +v5792.push(v5793); +v5786.apiCall = v5792; +v5785._events = v5786; +v5785.MONITOR_EVENTS_BUBBLE = v5788; +v5785.CALL_EVENTS_BUBBLE = v5793; +var v5795; +var v5796 = v5559; +var v5797 = v5559; +var v5798 = v5559; +var v5799 = v5559; +var v5800 = v5559; +var v5801 = v5559; +var v5802 = v5559; +v5795 = function setupRequestListeners(request) { request.addListener(\\"extractError\\", this.extractHostId); request.addListener(\\"extractData\\", this.extractHostId); request.addListener(\\"validate\\", this.validateAccountId); var isArnInBucket = v5796.isArnInParam(request, \\"Bucket\\"); var isArnInName = v5797.isArnInParam(request, \\"Name\\"); if (isArnInBucket) { + request._parsedArn = v2654.parse(request.params[\\"Bucket\\"]); + request.addListener(\\"validate\\", this.validateOutpostsBucketArn); + request.addListener(\\"validate\\", v5798.validateOutpostsArn); + request.addListener(\\"afterBuild\\", this.addOutpostIdHeader); +} +else if (isArnInName) { + request._parsedArn = v2654.parse(request.params[\\"Name\\"]); + request.addListener(\\"validate\\", v5799.validateOutpostsAccessPointArn); + request.addListener(\\"validate\\", v5800.validateOutpostsArn); + request.addListener(\\"afterBuild\\", this.addOutpostIdHeader); +} if (isArnInBucket || isArnInName) { + request.addListener(\\"validate\\", this.validateArnRegion); + request.addListener(\\"validate\\", this.validateArnAccountWithParams, true); + request.addListener(\\"validate\\", v5801.validateArnAccount); + request.addListener(\\"validate\\", v5799.validateArnService); + request.addListener(\\"build\\", this.populateParamFromArn, true); + request.addListener(\\"build\\", this.populateUriFromArn); + request.addListener(\\"build\\", v5802.validatePopulateUriFromArn); +} if (request.params.OutpostId && (request.operation === \\"createBucket\\" || request.operation === \\"listRegionalBuckets\\")) { + request.addListener(\\"build\\", this.populateEndpointForOutpostId); +} }; +const v5803 = {}; +v5803.constructor = v5795; +v5795.prototype = v5803; +v5785.setupRequestListeners = v5795; +var v5804; +v5804 = function addOutpostIdHeader(req) { req.httpRequest.headers[\\"x-amz-outpost-id\\"] = req._parsedArn.outpostId; }; +const v5805 = {}; +v5805.constructor = v5804; +v5804.prototype = v5805; +v5785.addOutpostIdHeader = v5804; +var v5806; +var v5807 = v40; +var v5808 = v5559; +var v5809 = v40; +v5806 = function validateOutpostsBucketArn(req) { var parsedArn = req._parsedArn; var delimiter = parsedArn.resource[\\"outpost\\".length]; if (parsedArn.resource.split(delimiter).length !== 4) { + throw v3.error(new v5807(), { code: \\"InvalidARN\\", message: \\"Bucket ARN should have two resources outpost/{outpostId}/bucket/{accesspointName}\\" }); +} var bucket = parsedArn.resource.split(delimiter)[3]; if (!v5808.dnsCompatibleBucketName(bucket) || bucket.match(/\\\\./)) { + throw v3.error(new v5809(), { code: \\"InvalidARN\\", message: \\"Bucket ARN is not DNS compatible. Got \\" + bucket }); +} req._parsedArn.bucket = bucket; }; +const v5810 = {}; +v5810.constructor = v5806; +v5806.prototype = v5810; +v5785.validateOutpostsBucketArn = v5806; +var v5811; +var v5812 = v5559; +v5811 = function populateParamFromArn(req) { var parsedArn = req._parsedArn; if (v5812.isArnInParam(req, \\"Bucket\\")) { + req.params.Bucket = parsedArn.bucket; +} +else if (v5812.isArnInParam(req, \\"Name\\")) { + req.params.Name = parsedArn.accessPoint; +} }; +const v5813 = {}; +v5813.constructor = v5811; +v5811.prototype = v5813; +v5785.populateParamFromArn = v5811; +var v5814; +v5814 = function populateUriFromArn(req) { var parsedArn = req._parsedArn; var endpoint = req.httpRequest.endpoint; var useArnRegion = req.service.config.s3UseArnRegion; var useFipsEndpoint = req.service.config.useFipsEndpoint; endpoint.hostname = [\\"s3-outposts\\" + (useFipsEndpoint ? \\"-fips\\" : \\"\\"), useArnRegion ? parsedArn.region : req.service.config.region, \\"amazonaws.com\\"].join(\\".\\"); endpoint.host = endpoint.hostname; }; +const v5815 = {}; +v5815.constructor = v5814; +v5814.prototype = v5815; +v5785.populateUriFromArn = v5814; +var v5816; +v5816 = function populateEndpointForOutpostId(req) { var endpoint = req.httpRequest.endpoint; var useFipsEndpoint = req.service.config.useFipsEndpoint; endpoint.hostname = [\\"s3-outposts\\" + (useFipsEndpoint ? \\"-fips\\" : \\"\\"), req.service.config.region, \\"amazonaws.com\\"].join(\\".\\"); endpoint.host = endpoint.hostname; }; +const v5817 = {}; +v5817.constructor = v5816; +v5816.prototype = v5817; +v5785.populateEndpointForOutpostId = v5816; +var v5818; +v5818 = function (response) { var hostId = response.httpResponse.headers ? response.httpResponse.headers[\\"x-amz-id-2\\"] : null; response.extendedRequestId = hostId; if (response.error) { + response.error.extendedRequestId = hostId; +} }; +const v5819 = {}; +v5819.constructor = v5818; +v5818.prototype = v5819; +v5785.extractHostId = v5818; +var v5820; +var v5821 = v5559; +v5820 = function validateArnRegion(req) { v5821.validateArnRegion(req, { allowFipsEndpoint: true }); }; +const v5822 = {}; +v5822.constructor = v5820; +v5820.prototype = v5822; +v5785.validateArnRegion = v5820; +var v5823; +var v5824 = v40; +v5823 = function validateArnAccountWithParams(req) { var params = req.params; var inputModel = req.service.api.operations[req.operation].input; if (inputModel.members.AccountId) { + var parsedArn = req._parsedArn; + if (parsedArn.accountId) { + if (params.AccountId) { + if (params.AccountId !== parsedArn.accountId) { + throw v3.error(new v5824(), { code: \\"ValidationError\\", message: \\"AccountId in ARN and request params should be same.\\" }); + } + } + else { + params.AccountId = parsedArn.accountId; + } + } +} }; +const v5825 = {}; +v5825.constructor = v5823; +v5823.prototype = v5825; +v5785.validateArnAccountWithParams = v5823; +var v5826; +var v5827 = v40; +var v5828 = v40; +var v5829 = v40; +v5826 = function (request) { var params = request.params; if (!v113.hasOwnProperty.call(params, \\"AccountId\\")) + return; var accountId = params.AccountId; if (typeof accountId !== \\"string\\") { + throw v3.error(new v5827(), { code: \\"ValidationError\\", message: \\"AccountId must be a string.\\" }); +} if (accountId.length < 1 || accountId.length > 63) { + throw v3.error(new v5828(), { code: \\"ValidationError\\", message: \\"AccountId length should be between 1 to 63 characters, inclusive.\\" }); +} var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9]$/; if (!hostPattern.test(accountId)) { + throw v3.error(new v5829(), { code: \\"ValidationError\\", message: \\"AccountId should be hostname compatible. AccountId: \\" + accountId }); +} }; +const v5830 = {}; +v5830.constructor = v5826; +v5826.prototype = v5830; +v5785.validateAccountId = v5826; +var v5831; +v5831 = function getSigningName(req) { var _super = v309.getSigningName; if (req && req._parsedArn && req._parsedArn.service) { + return req._parsedArn.service; +} +else if (req.params.OutpostId && (req.operation === \\"createBucket\\" || req.operation === \\"listRegionalBuckets\\")) { + return \\"s3-outposts\\"; +} +else { + return _super.call(this, req); +} }; +const v5832 = {}; +v5832.constructor = v5831; +v5831.prototype = v5832; +v5785.getSigningName = v5831; +v5782.prototype = v5785; +v5782.__super__ = v299; +const v5833 = {}; +v5833[\\"2018-08-20\\"] = null; +v5782.services = v5833; +const v5834 = []; +v5834.push(\\"2018-08-20\\"); +v5782.apiVersions = v5834; +v5782.serviceIdentifier = \\"s3control\\"; +v2.S3Control = v5782; +var v5835; +var v5836 = v299; +var v5837 = v31; +v5835 = function () { if (v5836 !== v5837) { + return v5836.apply(this, arguments); +} }; +const v5838 = Object.create(v309); +v5838.constructor = v5835; +const v5839 = {}; +const v5840 = []; +var v5841; +var v5842 = v31; +var v5843 = v5838; +v5841 = function EVENTS_BUBBLE(event) { var baseClass = v5842.getPrototypeOf(v5843); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5844 = {}; +v5844.constructor = v5841; +v5841.prototype = v5844; +v5840.push(v5841); +v5839.apiCallAttempt = v5840; +const v5845 = []; +var v5846; +v5846 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5789.getPrototypeOf(v5843); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5847 = {}; +v5847.constructor = v5846; +v5846.prototype = v5847; +v5845.push(v5846); +v5839.apiCall = v5845; +v5838._events = v5839; +v5838.MONITOR_EVENTS_BUBBLE = v5841; +v5838.CALL_EVENTS_BUBBLE = v5846; +v5835.prototype = v5838; +v5835.__super__ = v299; +const v5848 = {}; +v5848[\\"2015-12-10\\"] = null; +v5835.services = v5848; +const v5849 = []; +v5849.push(\\"2015-12-10\\"); +v5835.apiVersions = v5849; +v5835.serviceIdentifier = \\"servicecatalog\\"; +v2.ServiceCatalog = v5835; +var v5850; +var v5851 = v299; +var v5852 = v31; +v5850 = function () { if (v5851 !== v5852) { + return v5851.apply(this, arguments); +} }; +const v5853 = Object.create(v309); +v5853.constructor = v5850; +const v5854 = {}; +const v5855 = []; +var v5856; +var v5857 = v31; +var v5858 = v5853; +v5856 = function EVENTS_BUBBLE(event) { var baseClass = v5857.getPrototypeOf(v5858); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5859 = {}; +v5859.constructor = v5856; +v5856.prototype = v5859; +v5855.push(v5856); +v5854.apiCallAttempt = v5855; +const v5860 = []; +var v5861; +v5861 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5842.getPrototypeOf(v5858); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5862 = {}; +v5862.constructor = v5861; +v5861.prototype = v5862; +v5860.push(v5861); +v5854.apiCall = v5860; +v5853._events = v5854; +v5853.MONITOR_EVENTS_BUBBLE = v5856; +v5853.CALL_EVENTS_BUBBLE = v5861; +v5850.prototype = v5853; +v5850.__super__ = v299; +const v5863 = {}; +v5863[\\"2010-12-01\\"] = null; +v5850.services = v5863; +const v5864 = []; +v5864.push(\\"2010-12-01\\"); +v5850.apiVersions = v5864; +v5850.serviceIdentifier = \\"ses\\"; +v2.SES = v5850; +var v5865; +var v5866 = v299; +var v5867 = v31; +v5865 = function () { if (v5866 !== v5867) { + return v5866.apply(this, arguments); +} }; +const v5868 = Object.create(v309); +v5868.constructor = v5865; +const v5869 = {}; +const v5870 = []; +var v5871; +var v5872 = v31; +var v5873 = v5868; +v5871 = function EVENTS_BUBBLE(event) { var baseClass = v5872.getPrototypeOf(v5873); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5874 = {}; +v5874.constructor = v5871; +v5871.prototype = v5874; +v5870.push(v5871); +v5869.apiCallAttempt = v5870; +const v5875 = []; +var v5876; +v5876 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5857.getPrototypeOf(v5873); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5877 = {}; +v5877.constructor = v5876; +v5876.prototype = v5877; +v5875.push(v5876); +v5869.apiCall = v5875; +v5868._events = v5869; +v5868.MONITOR_EVENTS_BUBBLE = v5871; +v5868.CALL_EVENTS_BUBBLE = v5876; +v5865.prototype = v5868; +v5865.__super__ = v299; +const v5878 = {}; +v5878[\\"2016-06-02\\"] = null; +v5865.services = v5878; +const v5879 = []; +v5879.push(\\"2016-06-02\\"); +v5865.apiVersions = v5879; +v5865.serviceIdentifier = \\"shield\\"; +v2.Shield = v5865; +var v5880; +var v5881 = v299; +var v5882 = v31; +v5880 = function () { if (v5881 !== v5882) { + return v5881.apply(this, arguments); +} }; +const v5883 = Object.create(v309); +v5883.constructor = v5880; +const v5884 = {}; +const v5885 = []; +var v5886; +var v5887 = v31; +var v5888 = v5883; +v5886 = function EVENTS_BUBBLE(event) { var baseClass = v5887.getPrototypeOf(v5888); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5889 = {}; +v5889.constructor = v5886; +v5886.prototype = v5889; +v5885.push(v5886); +v5884.apiCallAttempt = v5885; +const v5890 = []; +var v5891; +v5891 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5872.getPrototypeOf(v5888); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5892 = {}; +v5892.constructor = v5891; +v5891.prototype = v5892; +v5890.push(v5891); +v5884.apiCall = v5890; +v5883._events = v5884; +v5883.MONITOR_EVENTS_BUBBLE = v5886; +v5883.CALL_EVENTS_BUBBLE = v5891; +v5880.prototype = v5883; +v5880.__super__ = v299; +const v5893 = {}; +v5893[\\"2009-04-15\\"] = null; +v5880.services = v5893; +const v5894 = []; +v5894.push(\\"2009-04-15\\"); +v5880.apiVersions = v5894; +v5880.serviceIdentifier = \\"simpledb\\"; +v2.SimpleDB = v5880; +var v5895; +var v5896 = v299; +var v5897 = v31; +v5895 = function () { if (v5896 !== v5897) { + return v5896.apply(this, arguments); +} }; +const v5898 = Object.create(v309); +v5898.constructor = v5895; +const v5899 = {}; +const v5900 = []; +var v5901; +var v5902 = v31; +var v5903 = v5898; +v5901 = function EVENTS_BUBBLE(event) { var baseClass = v5902.getPrototypeOf(v5903); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5904 = {}; +v5904.constructor = v5901; +v5901.prototype = v5904; +v5900.push(v5901); +v5899.apiCallAttempt = v5900; +const v5905 = []; +var v5906; +v5906 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5887.getPrototypeOf(v5903); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5907 = {}; +v5907.constructor = v5906; +v5906.prototype = v5907; +v5905.push(v5906); +v5899.apiCall = v5905; +v5898._events = v5899; +v5898.MONITOR_EVENTS_BUBBLE = v5901; +v5898.CALL_EVENTS_BUBBLE = v5906; +v5895.prototype = v5898; +v5895.__super__ = v299; +const v5908 = {}; +v5908[\\"2016-10-24\\"] = null; +v5895.services = v5908; +const v5909 = []; +v5909.push(\\"2016-10-24\\"); +v5895.apiVersions = v5909; +v5895.serviceIdentifier = \\"sms\\"; +v2.SMS = v5895; +var v5910; +var v5911 = v299; +var v5912 = v31; +v5910 = function () { if (v5911 !== v5912) { + return v5911.apply(this, arguments); +} }; +const v5913 = Object.create(v309); +v5913.constructor = v5910; +const v5914 = {}; +const v5915 = []; +var v5916; +var v5917 = v31; +var v5918 = v5913; +v5916 = function EVENTS_BUBBLE(event) { var baseClass = v5917.getPrototypeOf(v5918); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5919 = {}; +v5919.constructor = v5916; +v5916.prototype = v5919; +v5915.push(v5916); +v5914.apiCallAttempt = v5915; +const v5920 = []; +var v5921; +v5921 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5902.getPrototypeOf(v5918); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5922 = {}; +v5922.constructor = v5921; +v5921.prototype = v5922; +v5920.push(v5921); +v5914.apiCall = v5920; +v5913._events = v5914; +v5913.MONITOR_EVENTS_BUBBLE = v5916; +v5913.CALL_EVENTS_BUBBLE = v5921; +v5910.prototype = v5913; +v5910.__super__ = v299; +const v5923 = {}; +v5923[\\"2016-06-30\\"] = null; +v5910.services = v5923; +const v5924 = []; +v5924.push(\\"2016-06-30\\"); +v5910.apiVersions = v5924; +v5910.serviceIdentifier = \\"snowball\\"; +v2.Snowball = v5910; +var v5925; +var v5926 = v299; +var v5927 = v31; +v5925 = function () { if (v5926 !== v5927) { + return v5926.apply(this, arguments); +} }; +const v5928 = Object.create(v309); +v5928.constructor = v5925; +const v5929 = {}; +const v5930 = []; +var v5931; +var v5932 = v31; +var v5933 = v5928; +v5931 = function EVENTS_BUBBLE(event) { var baseClass = v5932.getPrototypeOf(v5933); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5934 = {}; +v5934.constructor = v5931; +v5931.prototype = v5934; +v5930.push(v5931); +v5929.apiCallAttempt = v5930; +const v5935 = []; +var v5936; +v5936 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5917.getPrototypeOf(v5933); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5937 = {}; +v5937.constructor = v5936; +v5936.prototype = v5937; +v5935.push(v5936); +v5929.apiCall = v5935; +v5928._events = v5929; +v5928.MONITOR_EVENTS_BUBBLE = v5931; +v5928.CALL_EVENTS_BUBBLE = v5936; +v5925.prototype = v5928; +v5925.__super__ = v299; +const v5938 = {}; +v5938[\\"2010-03-31\\"] = null; +v5925.services = v5938; +const v5939 = []; +v5939.push(\\"2010-03-31\\"); +v5925.apiVersions = v5939; +v5925.serviceIdentifier = \\"sns\\"; +v2.SNS = v5925; +var v5940; +var v5941 = v299; +var v5942 = v31; +v5940 = function () { if (v5941 !== v5942) { + return v5941.apply(this, arguments); +} }; +const v5943 = Object.create(v309); +v5943.constructor = v5940; +const v5944 = {}; +const v5945 = []; +var v5946; +var v5947 = v31; +var v5948 = v5943; +v5946 = function EVENTS_BUBBLE(event) { var baseClass = v5947.getPrototypeOf(v5948); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5949 = {}; +v5949.constructor = v5946; +v5946.prototype = v5949; +v5945.push(v5946); +v5944.apiCallAttempt = v5945; +const v5950 = []; +var v5951; +v5951 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5932.getPrototypeOf(v5948); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5952 = {}; +v5952.constructor = v5951; +v5951.prototype = v5952; +v5950.push(v5951); +v5944.apiCall = v5950; +v5943._events = v5944; +v5943.MONITOR_EVENTS_BUBBLE = v5946; +v5943.CALL_EVENTS_BUBBLE = v5951; +var v5953; +v5953 = function setupRequestListeners(request) { request.addListener(\\"build\\", this.buildEndpoint); if (request.service.config.computeChecksums) { + if (request.operation === \\"sendMessage\\") { + request.addListener(\\"extractData\\", this.verifySendMessageChecksum); + } + else if (request.operation === \\"sendMessageBatch\\") { + request.addListener(\\"extractData\\", this.verifySendMessageBatchChecksum); + } + else if (request.operation === \\"receiveMessage\\") { + request.addListener(\\"extractData\\", this.verifyReceiveMessageChecksum); + } +} }; +const v5954 = {}; +v5954.constructor = v5953; +v5953.prototype = v5954; +v5943.setupRequestListeners = v5953; +var v5955; +v5955 = function verifySendMessageChecksum(response) { if (!response.data) + return; var md5 = response.data.MD5OfMessageBody; var body = this.params.MessageBody; var calculatedMd5 = this.service.calculateChecksum(body); if (calculatedMd5 !== md5) { + var msg = \\"Got \\\\\\"\\" + response.data.MD5OfMessageBody + \\"\\\\\\", expecting \\\\\\"\\" + calculatedMd5 + \\"\\\\\\".\\"; + this.service.throwInvalidChecksumError(response, [response.data.MessageId], msg); +} }; +const v5956 = {}; +v5956.constructor = v5955; +v5955.prototype = v5956; +v5943.verifySendMessageChecksum = v5955; +var v5957; +v5957 = function verifySendMessageBatchChecksum(response) { if (!response.data) + return; var service = this.service; var entries = {}; var errors = []; var messageIds = []; v3.arrayEach(response.data.Successful, function (entry) { entries[entry.Id] = entry; }); v3.arrayEach(this.params.Entries, function (entry) { if (entries[entry.Id]) { + var md5 = entries[entry.Id].MD5OfMessageBody; + var body = entry.MessageBody; + if (!service.isChecksumValid(md5, body)) { + errors.push(entry.Id); + messageIds.push(entries[entry.Id].MessageId); + } +} }); if (errors.length > 0) { + service.throwInvalidChecksumError(response, messageIds, \\"Invalid messages: \\" + errors.join(\\", \\")); +} }; +const v5958 = {}; +v5958.constructor = v5957; +v5957.prototype = v5958; +v5943.verifySendMessageBatchChecksum = v5957; +var v5959; +v5959 = function verifyReceiveMessageChecksum(response) { if (!response.data) + return; var service = this.service; var messageIds = []; v3.arrayEach(response.data.Messages, function (message) { var md5 = message.MD5OfBody; var body = message.Body; if (!service.isChecksumValid(md5, body)) { + messageIds.push(message.MessageId); +} }); if (messageIds.length > 0) { + service.throwInvalidChecksumError(response, messageIds, \\"Invalid messages: \\" + messageIds.join(\\", \\")); +} }; +const v5960 = {}; +v5960.constructor = v5959; +v5959.prototype = v5960; +v5943.verifyReceiveMessageChecksum = v5959; +var v5961; +var v5962 = v40; +v5961 = function throwInvalidChecksumError(response, ids, message) { response.error = v3.error(new v5962(), { retryable: true, code: \\"InvalidChecksum\\", messageIds: ids, message: response.request.operation + \\" returned an invalid MD5 response. \\" + message }); }; +const v5963 = {}; +v5963.constructor = v5961; +v5961.prototype = v5963; +v5943.throwInvalidChecksumError = v5961; +var v5964; +v5964 = function isChecksumValid(checksum, data) { return this.calculateChecksum(data) === checksum; }; +const v5965 = {}; +v5965.constructor = v5964; +v5964.prototype = v5965; +v5943.isChecksumValid = v5964; +var v5966; +v5966 = function calculateChecksum(data) { return v91.md5(data, \\"hex\\"); }; +const v5967 = {}; +v5967.constructor = v5966; +v5966.prototype = v5967; +v5943.calculateChecksum = v5966; +var v5968; +var v5969 = v2; +v5968 = function buildEndpoint(request) { var url = request.httpRequest.params.QueueUrl; if (url) { + request.httpRequest.endpoint = new v5969.Endpoint(url); + var matches = request.httpRequest.endpoint.host.match(/^sqs\\\\.(.+?)\\\\./); + if (matches) + request.httpRequest.region = matches[1]; +} }; +const v5970 = {}; +v5970.constructor = v5968; +v5968.prototype = v5970; +v5943.buildEndpoint = v5968; +v5940.prototype = v5943; +v5940.__super__ = v299; +const v5971 = {}; +v5971[\\"2012-11-05\\"] = null; +v5940.services = v5971; +const v5972 = []; +v5972.push(\\"2012-11-05\\"); +v5940.apiVersions = v5972; +v5940.serviceIdentifier = \\"sqs\\"; +v2.SQS = v5940; +var v5973; +var v5974 = v299; +var v5975 = v31; +v5973 = function () { if (v5974 !== v5975) { + return v5974.apply(this, arguments); +} }; +const v5976 = Object.create(v309); +v5976.constructor = v5973; +const v5977 = {}; +const v5978 = []; +var v5979; +var v5980 = v31; +var v5981 = v5976; +v5979 = function EVENTS_BUBBLE(event) { var baseClass = v5980.getPrototypeOf(v5981); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5982 = {}; +v5982.constructor = v5979; +v5979.prototype = v5982; +v5978.push(v5979); +v5977.apiCallAttempt = v5978; +const v5983 = []; +var v5984; +v5984 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5947.getPrototypeOf(v5981); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v5985 = {}; +v5985.constructor = v5984; +v5984.prototype = v5985; +v5983.push(v5984); +v5977.apiCall = v5983; +v5976._events = v5977; +v5976.MONITOR_EVENTS_BUBBLE = v5979; +v5976.CALL_EVENTS_BUBBLE = v5984; +v5973.prototype = v5976; +v5973.__super__ = v299; +const v5986 = {}; +v5986[\\"2014-11-06\\"] = null; +v5973.services = v5986; +const v5987 = []; +v5987.push(\\"2014-11-06\\"); +v5973.apiVersions = v5987; +v5973.serviceIdentifier = \\"ssm\\"; +v2.SSM = v5973; +var v5988; +var v5989 = v299; +var v5990 = v31; +v5988 = function () { if (v5989 !== v5990) { + return v5989.apply(this, arguments); +} }; +const v5991 = Object.create(v309); +v5991.constructor = v5988; +const v5992 = {}; +const v5993 = []; +var v5994; +var v5995 = v31; +var v5996 = v5991; +v5994 = function EVENTS_BUBBLE(event) { var baseClass = v5995.getPrototypeOf(v5996); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v5997 = {}; +v5997.constructor = v5994; +v5994.prototype = v5997; +v5993.push(v5994); +v5992.apiCallAttempt = v5993; +const v5998 = []; +var v5999; +v5999 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5980.getPrototypeOf(v5996); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6000 = {}; +v6000.constructor = v5999; +v5999.prototype = v6000; +v5998.push(v5999); +v5992.apiCall = v5998; +v5991._events = v5992; +v5991.MONITOR_EVENTS_BUBBLE = v5994; +v5991.CALL_EVENTS_BUBBLE = v5999; +v5988.prototype = v5991; +v5988.__super__ = v299; +const v6001 = {}; +v6001[\\"2013-06-30\\"] = null; +v5988.services = v6001; +const v6002 = []; +v6002.push(\\"2013-06-30\\"); +v5988.apiVersions = v6002; +v5988.serviceIdentifier = \\"storagegateway\\"; +v2.StorageGateway = v5988; +var v6003; +var v6004 = v299; +var v6005 = v31; +v6003 = function () { if (v6004 !== v6005) { + return v6004.apply(this, arguments); +} }; +const v6006 = Object.create(v309); +v6006.constructor = v6003; +const v6007 = {}; +const v6008 = []; +var v6009; +var v6010 = v31; +var v6011 = v6006; +v6009 = function EVENTS_BUBBLE(event) { var baseClass = v6010.getPrototypeOf(v6011); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6012 = {}; +v6012.constructor = v6009; +v6009.prototype = v6012; +v6008.push(v6009); +v6007.apiCallAttempt = v6008; +const v6013 = []; +var v6014; +v6014 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5995.getPrototypeOf(v6011); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6015 = {}; +v6015.constructor = v6014; +v6014.prototype = v6015; +v6013.push(v6014); +v6007.apiCall = v6013; +v6006._events = v6007; +v6006.MONITOR_EVENTS_BUBBLE = v6009; +v6006.CALL_EVENTS_BUBBLE = v6014; +v6003.prototype = v6006; +v6003.__super__ = v299; +const v6016 = {}; +v6016[\\"2016-11-23\\"] = null; +v6003.services = v6016; +const v6017 = []; +v6017.push(\\"2016-11-23\\"); +v6003.apiVersions = v6017; +v6003.serviceIdentifier = \\"stepfunctions\\"; +v2.StepFunctions = v6003; +var v6018; +var v6019 = v299; +var v6020 = v31; +v6018 = function () { if (v6019 !== v6020) { + return v6019.apply(this, arguments); +} }; +const v6021 = Object.create(v309); +v6021.constructor = v6018; +const v6022 = {}; +const v6023 = []; +var v6024; +var v6025 = v31; +var v6026 = v6021; +v6024 = function EVENTS_BUBBLE(event) { var baseClass = v6025.getPrototypeOf(v6026); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6027 = {}; +v6027.constructor = v6024; +v6024.prototype = v6027; +v6023.push(v6024); +v6022.apiCallAttempt = v6023; +const v6028 = []; +var v6029; +v6029 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6010.getPrototypeOf(v6026); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6030 = {}; +v6030.constructor = v6029; +v6029.prototype = v6030; +v6028.push(v6029); +v6022.apiCall = v6028; +v6021._events = v6022; +v6021.MONITOR_EVENTS_BUBBLE = v6024; +v6021.CALL_EVENTS_BUBBLE = v6029; +v6018.prototype = v6021; +v6018.__super__ = v299; +const v6031 = {}; +v6031[\\"2013-04-15\\"] = null; +v6018.services = v6031; +const v6032 = []; +v6032.push(\\"2013-04-15\\"); +v6018.apiVersions = v6032; +v6018.serviceIdentifier = \\"support\\"; +v2.Support = v6018; +var v6033; +var v6034 = v299; +var v6035 = v31; +v6033 = function () { if (v6034 !== v6035) { + return v6034.apply(this, arguments); +} }; +const v6036 = Object.create(v309); +v6036.constructor = v6033; +const v6037 = {}; +const v6038 = []; +var v6039; +var v6040 = v31; +var v6041 = v6036; +v6039 = function EVENTS_BUBBLE(event) { var baseClass = v6040.getPrototypeOf(v6041); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6042 = {}; +v6042.constructor = v6039; +v6039.prototype = v6042; +v6038.push(v6039); +v6037.apiCallAttempt = v6038; +const v6043 = []; +var v6044; +v6044 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6025.getPrototypeOf(v6041); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6045 = {}; +v6045.constructor = v6044; +v6044.prototype = v6045; +v6043.push(v6044); +v6037.apiCall = v6043; +v6036._events = v6037; +v6036.MONITOR_EVENTS_BUBBLE = v6039; +v6036.CALL_EVENTS_BUBBLE = v6044; +v6033.prototype = v6036; +v6033.__super__ = v299; +const v6046 = {}; +v6046[\\"2012-01-25\\"] = null; +v6033.services = v6046; +const v6047 = []; +v6047.push(\\"2012-01-25\\"); +v6033.apiVersions = v6047; +v6033.serviceIdentifier = \\"swf\\"; +v2.SWF = v6033; +v2.SimpleWorkflow = v6033; +var v6048; +var v6049 = v299; +var v6050 = v31; +v6048 = function () { if (v6049 !== v6050) { + return v6049.apply(this, arguments); +} }; +const v6051 = Object.create(v309); +v6051.constructor = v6048; +const v6052 = {}; +const v6053 = []; +var v6054; +var v6055 = v31; +var v6056 = v6051; +v6054 = function EVENTS_BUBBLE(event) { var baseClass = v6055.getPrototypeOf(v6056); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6057 = {}; +v6057.constructor = v6054; +v6054.prototype = v6057; +v6053.push(v6054); +v6052.apiCallAttempt = v6053; +const v6058 = []; +var v6059; +v6059 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6040.getPrototypeOf(v6056); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6060 = {}; +v6060.constructor = v6059; +v6059.prototype = v6060; +v6058.push(v6059); +v6052.apiCall = v6058; +v6051._events = v6052; +v6051.MONITOR_EVENTS_BUBBLE = v6054; +v6051.CALL_EVENTS_BUBBLE = v6059; +v6048.prototype = v6051; +v6048.__super__ = v299; +const v6061 = {}; +v6061[\\"2016-04-12\\"] = null; +v6048.services = v6061; +const v6062 = []; +v6062.push(\\"2016-04-12\\"); +v6048.apiVersions = v6062; +v6048.serviceIdentifier = \\"xray\\"; +v2.XRay = v6048; +var v6063; +var v6064 = v299; +var v6065 = v31; +v6063 = function () { if (v6064 !== v6065) { + return v6064.apply(this, arguments); +} }; +const v6066 = Object.create(v309); +v6066.constructor = v6063; +const v6067 = {}; +const v6068 = []; +var v6069; +var v6070 = v31; +var v6071 = v6066; +v6069 = function EVENTS_BUBBLE(event) { var baseClass = v6070.getPrototypeOf(v6071); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6072 = {}; +v6072.constructor = v6069; +v6069.prototype = v6072; +v6068.push(v6069); +v6067.apiCallAttempt = v6068; +const v6073 = []; +var v6074; +v6074 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6055.getPrototypeOf(v6071); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6075 = {}; +v6075.constructor = v6074; +v6074.prototype = v6075; +v6073.push(v6074); +v6067.apiCall = v6073; +v6066._events = v6067; +v6066.MONITOR_EVENTS_BUBBLE = v6069; +v6066.CALL_EVENTS_BUBBLE = v6074; +v6063.prototype = v6066; +v6063.__super__ = v299; +const v6076 = {}; +v6076[\\"2015-08-24\\"] = null; +v6063.services = v6076; +const v6077 = []; +v6077.push(\\"2015-08-24\\"); +v6063.apiVersions = v6077; +v6063.serviceIdentifier = \\"waf\\"; +v2.WAF = v6063; +var v6078; +var v6079 = v299; +var v6080 = v31; +v6078 = function () { if (v6079 !== v6080) { + return v6079.apply(this, arguments); +} }; +const v6081 = Object.create(v309); +v6081.constructor = v6078; +const v6082 = {}; +const v6083 = []; +var v6084; +var v6085 = v31; +var v6086 = v6081; +v6084 = function EVENTS_BUBBLE(event) { var baseClass = v6085.getPrototypeOf(v6086); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6087 = {}; +v6087.constructor = v6084; +v6084.prototype = v6087; +v6083.push(v6084); +v6082.apiCallAttempt = v6083; +const v6088 = []; +var v6089; +v6089 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6070.getPrototypeOf(v6086); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6090 = {}; +v6090.constructor = v6089; +v6089.prototype = v6090; +v6088.push(v6089); +v6082.apiCall = v6088; +v6081._events = v6082; +v6081.MONITOR_EVENTS_BUBBLE = v6084; +v6081.CALL_EVENTS_BUBBLE = v6089; +v6078.prototype = v6081; +v6078.__super__ = v299; +const v6091 = {}; +v6091[\\"2016-11-28\\"] = null; +v6078.services = v6091; +const v6092 = []; +v6092.push(\\"2016-11-28\\"); +v6078.apiVersions = v6092; +v6078.serviceIdentifier = \\"wafregional\\"; +v2.WAFRegional = v6078; +var v6093; +var v6094 = v299; +var v6095 = v31; +v6093 = function () { if (v6094 !== v6095) { + return v6094.apply(this, arguments); +} }; +const v6096 = Object.create(v309); +v6096.constructor = v6093; +const v6097 = {}; +const v6098 = []; +var v6099; +var v6100 = v31; +var v6101 = v6096; +v6099 = function EVENTS_BUBBLE(event) { var baseClass = v6100.getPrototypeOf(v6101); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6102 = {}; +v6102.constructor = v6099; +v6099.prototype = v6102; +v6098.push(v6099); +v6097.apiCallAttempt = v6098; +const v6103 = []; +var v6104; +v6104 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6085.getPrototypeOf(v6101); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6105 = {}; +v6105.constructor = v6104; +v6104.prototype = v6105; +v6103.push(v6104); +v6097.apiCall = v6103; +v6096._events = v6097; +v6096.MONITOR_EVENTS_BUBBLE = v6099; +v6096.CALL_EVENTS_BUBBLE = v6104; +v6093.prototype = v6096; +v6093.__super__ = v299; +const v6106 = {}; +v6106[\\"2016-05-01\\"] = null; +v6093.services = v6106; +const v6107 = []; +v6107.push(\\"2016-05-01\\"); +v6093.apiVersions = v6107; +v6093.serviceIdentifier = \\"workdocs\\"; +v2.WorkDocs = v6093; +var v6108; +var v6109 = v299; +var v6110 = v31; +v6108 = function () { if (v6109 !== v6110) { + return v6109.apply(this, arguments); +} }; +const v6111 = Object.create(v309); +v6111.constructor = v6108; +const v6112 = {}; +const v6113 = []; +var v6114; +var v6115 = v31; +var v6116 = v6111; +v6114 = function EVENTS_BUBBLE(event) { var baseClass = v6115.getPrototypeOf(v6116); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6117 = {}; +v6117.constructor = v6114; +v6114.prototype = v6117; +v6113.push(v6114); +v6112.apiCallAttempt = v6113; +const v6118 = []; +var v6119; +v6119 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6100.getPrototypeOf(v6116); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6120 = {}; +v6120.constructor = v6119; +v6119.prototype = v6120; +v6118.push(v6119); +v6112.apiCall = v6118; +v6111._events = v6112; +v6111.MONITOR_EVENTS_BUBBLE = v6114; +v6111.CALL_EVENTS_BUBBLE = v6119; +v6108.prototype = v6111; +v6108.__super__ = v299; +const v6121 = {}; +v6121[\\"2015-04-08\\"] = null; +v6108.services = v6121; +const v6122 = []; +v6122.push(\\"2015-04-08\\"); +v6108.apiVersions = v6122; +v6108.serviceIdentifier = \\"workspaces\\"; +v2.WorkSpaces = v6108; +var v6123; +var v6124 = v299; +var v6125 = v31; +v6123 = function () { if (v6124 !== v6125) { + return v6124.apply(this, arguments); +} }; +const v6126 = Object.create(v309); +v6126.constructor = v6123; +const v6127 = {}; +const v6128 = []; +var v6129; +var v6130 = v31; +var v6131 = v6126; +v6129 = function EVENTS_BUBBLE(event) { var baseClass = v6130.getPrototypeOf(v6131); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6132 = {}; +v6132.constructor = v6129; +v6129.prototype = v6132; +v6128.push(v6129); +v6127.apiCallAttempt = v6128; +const v6133 = []; +var v6134; +v6134 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6115.getPrototypeOf(v6131); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6135 = {}; +v6135.constructor = v6134; +v6134.prototype = v6135; +v6133.push(v6134); +v6127.apiCall = v6133; +v6126._events = v6127; +v6126.MONITOR_EVENTS_BUBBLE = v6129; +v6126.CALL_EVENTS_BUBBLE = v6134; +v6123.prototype = v6126; +v6123.__super__ = v299; +const v6136 = {}; +v6136[\\"2017-04-19\\"] = null; +v6123.services = v6136; +const v6137 = []; +v6137.push(\\"2017-04-19\\"); +v6123.apiVersions = v6137; +v6123.serviceIdentifier = \\"codestar\\"; +v2.CodeStar = v6123; +var v6138; +var v6139 = v299; +var v6140 = v31; +v6138 = function () { if (v6139 !== v6140) { + return v6139.apply(this, arguments); +} }; +const v6141 = Object.create(v309); +v6141.constructor = v6138; +const v6142 = {}; +const v6143 = []; +var v6144; +var v6145 = v31; +var v6146 = v6141; +v6144 = function EVENTS_BUBBLE(event) { var baseClass = v6145.getPrototypeOf(v6146); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6147 = {}; +v6147.constructor = v6144; +v6144.prototype = v6147; +v6143.push(v6144); +v6142.apiCallAttempt = v6143; +const v6148 = []; +var v6149; +v6149 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6130.getPrototypeOf(v6146); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6150 = {}; +v6150.constructor = v6149; +v6149.prototype = v6150; +v6148.push(v6149); +v6142.apiCall = v6148; +v6141._events = v6142; +v6141.MONITOR_EVENTS_BUBBLE = v6144; +v6141.CALL_EVENTS_BUBBLE = v6149; +v6138.prototype = v6141; +v6138.__super__ = v299; +const v6151 = {}; +v6151[\\"2017-04-19\\"] = null; +v6138.services = v6151; +const v6152 = []; +v6152.push(\\"2017-04-19\\"); +v6138.apiVersions = v6152; +v6138.serviceIdentifier = \\"lexmodelbuildingservice\\"; +v2.LexModelBuildingService = v6138; +var v6153; +var v6154 = v299; +var v6155 = v31; +v6153 = function () { if (v6154 !== v6155) { + return v6154.apply(this, arguments); +} }; +const v6156 = Object.create(v309); +v6156.constructor = v6153; +const v6157 = {}; +const v6158 = []; +var v6159; +var v6160 = v31; +var v6161 = v6156; +v6159 = function EVENTS_BUBBLE(event) { var baseClass = v6160.getPrototypeOf(v6161); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6162 = {}; +v6162.constructor = v6159; +v6159.prototype = v6162; +v6158.push(v6159); +v6157.apiCallAttempt = v6158; +const v6163 = []; +var v6164; +v6164 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6145.getPrototypeOf(v6161); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6165 = {}; +v6165.constructor = v6164; +v6164.prototype = v6165; +v6163.push(v6164); +v6157.apiCall = v6163; +v6156._events = v6157; +v6156.MONITOR_EVENTS_BUBBLE = v6159; +v6156.CALL_EVENTS_BUBBLE = v6164; +v6153.prototype = v6156; +v6153.__super__ = v299; +const v6166 = {}; +v6166[\\"2017-01-11\\"] = null; +v6153.services = v6166; +const v6167 = []; +v6167.push(\\"2017-01-11\\"); +v6153.apiVersions = v6167; +v6153.serviceIdentifier = \\"marketplaceentitlementservice\\"; +v2.MarketplaceEntitlementService = v6153; +var v6168; +var v6169 = v299; +var v6170 = v31; +v6168 = function () { if (v6169 !== v6170) { + return v6169.apply(this, arguments); +} }; +const v6171 = Object.create(v309); +v6171.constructor = v6168; +const v6172 = {}; +const v6173 = []; +var v6174; +var v6175 = v31; +var v6176 = v6171; +v6174 = function EVENTS_BUBBLE(event) { var baseClass = v6175.getPrototypeOf(v6176); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6177 = {}; +v6177.constructor = v6174; +v6174.prototype = v6177; +v6173.push(v6174); +v6172.apiCallAttempt = v6173; +const v6178 = []; +var v6179; +v6179 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6160.getPrototypeOf(v6176); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6180 = {}; +v6180.constructor = v6179; +v6179.prototype = v6180; +v6178.push(v6179); +v6172.apiCall = v6178; +v6171._events = v6172; +v6171.MONITOR_EVENTS_BUBBLE = v6174; +v6171.CALL_EVENTS_BUBBLE = v6179; +v6168.prototype = v6171; +v6168.__super__ = v299; +const v6181 = {}; +v6181[\\"2017-05-18\\"] = null; +v6168.services = v6181; +const v6182 = []; +v6182.push(\\"2017-05-18\\"); +v6168.apiVersions = v6182; +v6168.serviceIdentifier = \\"athena\\"; +v2.Athena = v6168; +var v6183; +var v6184 = v299; +var v6185 = v31; +v6183 = function () { if (v6184 !== v6185) { + return v6184.apply(this, arguments); +} }; +const v6186 = Object.create(v309); +v6186.constructor = v6183; +const v6187 = {}; +const v6188 = []; +var v6189; +var v6190 = v31; +var v6191 = v6186; +v6189 = function EVENTS_BUBBLE(event) { var baseClass = v6190.getPrototypeOf(v6191); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6192 = {}; +v6192.constructor = v6189; +v6189.prototype = v6192; +v6188.push(v6189); +v6187.apiCallAttempt = v6188; +const v6193 = []; +var v6194; +v6194 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6175.getPrototypeOf(v6191); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6195 = {}; +v6195.constructor = v6194; +v6194.prototype = v6195; +v6193.push(v6194); +v6187.apiCall = v6193; +v6186._events = v6187; +v6186.MONITOR_EVENTS_BUBBLE = v6189; +v6186.CALL_EVENTS_BUBBLE = v6194; +v6183.prototype = v6186; +v6183.__super__ = v299; +const v6196 = {}; +v6196[\\"2017-06-07\\"] = null; +v6183.services = v6196; +const v6197 = []; +v6197.push(\\"2017-06-07\\"); +v6183.apiVersions = v6197; +v6183.serviceIdentifier = \\"greengrass\\"; +v2.Greengrass = v6183; +var v6198; +var v6199 = v299; +var v6200 = v31; +v6198 = function () { if (v6199 !== v6200) { + return v6199.apply(this, arguments); +} }; +const v6201 = Object.create(v309); +v6201.constructor = v6198; +const v6202 = {}; +const v6203 = []; +var v6204; +var v6205 = v31; +var v6206 = v6201; +v6204 = function EVENTS_BUBBLE(event) { var baseClass = v6205.getPrototypeOf(v6206); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6207 = {}; +v6207.constructor = v6204; +v6204.prototype = v6207; +v6203.push(v6204); +v6202.apiCallAttempt = v6203; +const v6208 = []; +var v6209; +v6209 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6190.getPrototypeOf(v6206); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6210 = {}; +v6210.constructor = v6209; +v6209.prototype = v6210; +v6208.push(v6209); +v6202.apiCall = v6208; +v6201._events = v6202; +v6201.MONITOR_EVENTS_BUBBLE = v6204; +v6201.CALL_EVENTS_BUBBLE = v6209; +v6198.prototype = v6201; +v6198.__super__ = v299; +const v6211 = {}; +v6211[\\"2017-04-19\\"] = null; +v6198.services = v6211; +const v6212 = []; +v6212.push(\\"2017-04-19\\"); +v6198.apiVersions = v6212; +v6198.serviceIdentifier = \\"dax\\"; +v2.DAX = v6198; +var v6213; +var v6214 = v299; +var v6215 = v31; +v6213 = function () { if (v6214 !== v6215) { + return v6214.apply(this, arguments); +} }; +const v6216 = Object.create(v309); +v6216.constructor = v6213; +const v6217 = {}; +const v6218 = []; +var v6219; +var v6220 = v31; +var v6221 = v6216; +v6219 = function EVENTS_BUBBLE(event) { var baseClass = v6220.getPrototypeOf(v6221); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6222 = {}; +v6222.constructor = v6219; +v6219.prototype = v6222; +v6218.push(v6219); +v6217.apiCallAttempt = v6218; +const v6223 = []; +var v6224; +v6224 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6205.getPrototypeOf(v6221); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6225 = {}; +v6225.constructor = v6224; +v6224.prototype = v6225; +v6223.push(v6224); +v6217.apiCall = v6223; +v6216._events = v6217; +v6216.MONITOR_EVENTS_BUBBLE = v6219; +v6216.CALL_EVENTS_BUBBLE = v6224; +v6213.prototype = v6216; +v6213.__super__ = v299; +const v6226 = {}; +v6226[\\"2017-05-31\\"] = null; +v6213.services = v6226; +const v6227 = []; +v6227.push(\\"2017-05-31\\"); +v6213.apiVersions = v6227; +v6213.serviceIdentifier = \\"migrationhub\\"; +v2.MigrationHub = v6213; +var v6228; +var v6229 = v299; +var v6230 = v31; +v6228 = function () { if (v6229 !== v6230) { + return v6229.apply(this, arguments); +} }; +const v6231 = Object.create(v309); +v6231.constructor = v6228; +const v6232 = {}; +const v6233 = []; +var v6234; +var v6235 = v31; +var v6236 = v6231; +v6234 = function EVENTS_BUBBLE(event) { var baseClass = v6235.getPrototypeOf(v6236); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6237 = {}; +v6237.constructor = v6234; +v6234.prototype = v6237; +v6233.push(v6234); +v6232.apiCallAttempt = v6233; +const v6238 = []; +var v6239; +v6239 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6220.getPrototypeOf(v6236); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6240 = {}; +v6240.constructor = v6239; +v6239.prototype = v6240; +v6238.push(v6239); +v6232.apiCall = v6238; +v6231._events = v6232; +v6231.MONITOR_EVENTS_BUBBLE = v6234; +v6231.CALL_EVENTS_BUBBLE = v6239; +v6228.prototype = v6231; +v6228.__super__ = v299; +const v6241 = {}; +v6241[\\"2017-04-28\\"] = null; +v6228.services = v6241; +const v6242 = []; +v6242.push(\\"2017-04-28\\"); +v6228.apiVersions = v6242; +v6228.serviceIdentifier = \\"cloudhsmv2\\"; +v2.CloudHSMV2 = v6228; +var v6243; +var v6244 = v299; +var v6245 = v31; +v6243 = function () { if (v6244 !== v6245) { + return v6244.apply(this, arguments); +} }; +const v6246 = Object.create(v309); +v6246.constructor = v6243; +const v6247 = {}; +const v6248 = []; +var v6249; +var v6250 = v31; +var v6251 = v6246; +v6249 = function EVENTS_BUBBLE(event) { var baseClass = v6250.getPrototypeOf(v6251); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6252 = {}; +v6252.constructor = v6249; +v6249.prototype = v6252; +v6248.push(v6249); +v6247.apiCallAttempt = v6248; +const v6253 = []; +var v6254; +v6254 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6235.getPrototypeOf(v6251); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6255 = {}; +v6255.constructor = v6254; +v6254.prototype = v6255; +v6253.push(v6254); +v6247.apiCall = v6253; +v6246._events = v6247; +v6246.MONITOR_EVENTS_BUBBLE = v6249; +v6246.CALL_EVENTS_BUBBLE = v6254; +v6243.prototype = v6246; +v6243.__super__ = v299; +const v6256 = {}; +v6256[\\"2017-03-31\\"] = null; +v6243.services = v6256; +const v6257 = []; +v6257.push(\\"2017-03-31\\"); +v6243.apiVersions = v6257; +v6243.serviceIdentifier = \\"glue\\"; +v2.Glue = v6243; +var v6258; +var v6259 = v299; +var v6260 = v31; +v6258 = function () { if (v6259 !== v6260) { + return v6259.apply(this, arguments); +} }; +const v6261 = Object.create(v309); +v6261.constructor = v6258; +const v6262 = {}; +const v6263 = []; +var v6264; +var v6265 = v31; +var v6266 = v6261; +v6264 = function EVENTS_BUBBLE(event) { var baseClass = v6265.getPrototypeOf(v6266); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6267 = {}; +v6267.constructor = v6264; +v6264.prototype = v6267; +v6263.push(v6264); +v6262.apiCallAttempt = v6263; +const v6268 = []; +var v6269; +v6269 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6250.getPrototypeOf(v6266); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6270 = {}; +v6270.constructor = v6269; +v6269.prototype = v6270; +v6268.push(v6269); +v6262.apiCall = v6268; +v6261._events = v6262; +v6261.MONITOR_EVENTS_BUBBLE = v6264; +v6261.CALL_EVENTS_BUBBLE = v6269; +v6258.prototype = v6261; +v6258.__super__ = v299; +const v6271 = {}; +v6271[\\"2017-07-01\\"] = null; +v6258.services = v6271; +const v6272 = []; +v6272.push(\\"2017-07-01\\"); +v6258.apiVersions = v6272; +v6258.serviceIdentifier = \\"mobile\\"; +v2.Mobile = v6258; +var v6273; +var v6274 = v299; +var v6275 = v31; +v6273 = function () { if (v6274 !== v6275) { + return v6274.apply(this, arguments); +} }; +const v6276 = Object.create(v309); +v6276.constructor = v6273; +const v6277 = {}; +const v6278 = []; +var v6279; +var v6280 = v31; +var v6281 = v6276; +v6279 = function EVENTS_BUBBLE(event) { var baseClass = v6280.getPrototypeOf(v6281); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6282 = {}; +v6282.constructor = v6279; +v6279.prototype = v6282; +v6278.push(v6279); +v6277.apiCallAttempt = v6278; +const v6283 = []; +var v6284; +v6284 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6265.getPrototypeOf(v6281); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6285 = {}; +v6285.constructor = v6284; +v6284.prototype = v6285; +v6283.push(v6284); +v6277.apiCall = v6283; +v6276._events = v6277; +v6276.MONITOR_EVENTS_BUBBLE = v6279; +v6276.CALL_EVENTS_BUBBLE = v6284; +v6273.prototype = v6276; +v6273.__super__ = v299; +const v6286 = {}; +v6286[\\"2017-10-15\\"] = null; +v6273.services = v6286; +const v6287 = []; +v6287.push(\\"2017-10-15\\"); +v6273.apiVersions = v6287; +v6273.serviceIdentifier = \\"pricing\\"; +v2.Pricing = v6273; +var v6288; +var v6289 = v299; +var v6290 = v31; +v6288 = function () { if (v6289 !== v6290) { + return v6289.apply(this, arguments); +} }; +const v6291 = Object.create(v309); +v6291.constructor = v6288; +const v6292 = {}; +const v6293 = []; +var v6294; +var v6295 = v31; +var v6296 = v6291; +v6294 = function EVENTS_BUBBLE(event) { var baseClass = v6295.getPrototypeOf(v6296); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6297 = {}; +v6297.constructor = v6294; +v6294.prototype = v6297; +v6293.push(v6294); +v6292.apiCallAttempt = v6293; +const v6298 = []; +var v6299; +v6299 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6280.getPrototypeOf(v6296); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6300 = {}; +v6300.constructor = v6299; +v6299.prototype = v6300; +v6298.push(v6299); +v6292.apiCall = v6298; +v6291._events = v6292; +v6291.MONITOR_EVENTS_BUBBLE = v6294; +v6291.CALL_EVENTS_BUBBLE = v6299; +v6288.prototype = v6291; +v6288.__super__ = v299; +const v6301 = {}; +v6301[\\"2017-10-25\\"] = null; +v6288.services = v6301; +const v6302 = []; +v6302.push(\\"2017-10-25\\"); +v6288.apiVersions = v6302; +v6288.serviceIdentifier = \\"costexplorer\\"; +v2.CostExplorer = v6288; +var v6303; +var v6304 = v299; +var v6305 = v31; +v6303 = function () { if (v6304 !== v6305) { + return v6304.apply(this, arguments); +} }; +const v6306 = Object.create(v309); +v6306.constructor = v6303; +const v6307 = {}; +const v6308 = []; +var v6309; +var v6310 = v31; +var v6311 = v6306; +v6309 = function EVENTS_BUBBLE(event) { var baseClass = v6310.getPrototypeOf(v6311); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6312 = {}; +v6312.constructor = v6309; +v6309.prototype = v6312; +v6308.push(v6309); +v6307.apiCallAttempt = v6308; +const v6313 = []; +var v6314; +v6314 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6295.getPrototypeOf(v6311); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6315 = {}; +v6315.constructor = v6314; +v6314.prototype = v6315; +v6313.push(v6314); +v6307.apiCall = v6313; +v6306._events = v6307; +v6306.MONITOR_EVENTS_BUBBLE = v6309; +v6306.CALL_EVENTS_BUBBLE = v6314; +v6303.prototype = v6306; +v6303.__super__ = v299; +const v6316 = {}; +v6316[\\"2017-08-29\\"] = null; +v6303.services = v6316; +const v6317 = []; +v6317.push(\\"2017-08-29\\"); +v6303.apiVersions = v6317; +v6303.serviceIdentifier = \\"mediaconvert\\"; +v2.MediaConvert = v6303; +var v6318; +var v6319 = v299; +var v6320 = v31; +v6318 = function () { if (v6319 !== v6320) { + return v6319.apply(this, arguments); +} }; +const v6321 = Object.create(v309); +v6321.constructor = v6318; +const v6322 = {}; +const v6323 = []; +var v6324; +var v6325 = v31; +var v6326 = v6321; +v6324 = function EVENTS_BUBBLE(event) { var baseClass = v6325.getPrototypeOf(v6326); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6327 = {}; +v6327.constructor = v6324; +v6324.prototype = v6327; +v6323.push(v6324); +v6322.apiCallAttempt = v6323; +const v6328 = []; +var v6329; +v6329 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6310.getPrototypeOf(v6326); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6330 = {}; +v6330.constructor = v6329; +v6329.prototype = v6330; +v6328.push(v6329); +v6322.apiCall = v6328; +v6321._events = v6322; +v6321.MONITOR_EVENTS_BUBBLE = v6324; +v6321.CALL_EVENTS_BUBBLE = v6329; +v6318.prototype = v6321; +v6318.__super__ = v299; +const v6331 = {}; +v6331[\\"2017-10-14\\"] = null; +v6318.services = v6331; +const v6332 = []; +v6332.push(\\"2017-10-14\\"); +v6318.apiVersions = v6332; +v6318.serviceIdentifier = \\"medialive\\"; +v2.MediaLive = v6318; +var v6333; +var v6334 = v299; +var v6335 = v31; +v6333 = function () { if (v6334 !== v6335) { + return v6334.apply(this, arguments); +} }; +const v6336 = Object.create(v309); +v6336.constructor = v6333; +const v6337 = {}; +const v6338 = []; +var v6339; +var v6340 = v31; +var v6341 = v6336; +v6339 = function EVENTS_BUBBLE(event) { var baseClass = v6340.getPrototypeOf(v6341); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6342 = {}; +v6342.constructor = v6339; +v6339.prototype = v6342; +v6338.push(v6339); +v6337.apiCallAttempt = v6338; +const v6343 = []; +var v6344; +v6344 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6325.getPrototypeOf(v6341); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6345 = {}; +v6345.constructor = v6344; +v6344.prototype = v6345; +v6343.push(v6344); +v6337.apiCall = v6343; +v6336._events = v6337; +v6336.MONITOR_EVENTS_BUBBLE = v6339; +v6336.CALL_EVENTS_BUBBLE = v6344; +v6333.prototype = v6336; +v6333.__super__ = v299; +const v6346 = {}; +v6346[\\"2017-10-12\\"] = null; +v6333.services = v6346; +const v6347 = []; +v6347.push(\\"2017-10-12\\"); +v6333.apiVersions = v6347; +v6333.serviceIdentifier = \\"mediapackage\\"; +v2.MediaPackage = v6333; +var v6348; +var v6349 = v299; +var v6350 = v31; +v6348 = function () { if (v6349 !== v6350) { + return v6349.apply(this, arguments); +} }; +const v6351 = Object.create(v309); +v6351.constructor = v6348; +const v6352 = {}; +const v6353 = []; +var v6354; +var v6355 = v31; +var v6356 = v6351; +v6354 = function EVENTS_BUBBLE(event) { var baseClass = v6355.getPrototypeOf(v6356); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6357 = {}; +v6357.constructor = v6354; +v6354.prototype = v6357; +v6353.push(v6354); +v6352.apiCallAttempt = v6353; +const v6358 = []; +var v6359; +v6359 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6340.getPrototypeOf(v6356); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6360 = {}; +v6360.constructor = v6359; +v6359.prototype = v6360; +v6358.push(v6359); +v6352.apiCall = v6358; +v6351._events = v6352; +v6351.MONITOR_EVENTS_BUBBLE = v6354; +v6351.CALL_EVENTS_BUBBLE = v6359; +v6348.prototype = v6351; +v6348.__super__ = v299; +const v6361 = {}; +v6361[\\"2017-09-01\\"] = null; +v6348.services = v6361; +const v6362 = []; +v6362.push(\\"2017-09-01\\"); +v6348.apiVersions = v6362; +v6348.serviceIdentifier = \\"mediastore\\"; +v2.MediaStore = v6348; +var v6363; +var v6364 = v299; +var v6365 = v31; +v6363 = function () { if (v6364 !== v6365) { + return v6364.apply(this, arguments); +} }; +const v6366 = Object.create(v309); +v6366.constructor = v6363; +const v6367 = {}; +const v6368 = []; +var v6369; +var v6370 = v31; +var v6371 = v6366; +v6369 = function EVENTS_BUBBLE(event) { var baseClass = v6370.getPrototypeOf(v6371); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6372 = {}; +v6372.constructor = v6369; +v6369.prototype = v6372; +v6368.push(v6369); +v6367.apiCallAttempt = v6368; +const v6373 = []; +var v6374; +v6374 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6355.getPrototypeOf(v6371); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6375 = {}; +v6375.constructor = v6374; +v6374.prototype = v6375; +v6373.push(v6374); +v6367.apiCall = v6373; +v6366._events = v6367; +v6366.MONITOR_EVENTS_BUBBLE = v6369; +v6366.CALL_EVENTS_BUBBLE = v6374; +v6363.prototype = v6366; +v6363.__super__ = v299; +const v6376 = {}; +v6376[\\"2017-09-01\\"] = null; +v6363.services = v6376; +const v6377 = []; +v6377.push(\\"2017-09-01\\"); +v6363.apiVersions = v6377; +v6363.serviceIdentifier = \\"mediastoredata\\"; +v2.MediaStoreData = v6363; +var v6378; +var v6379 = v299; +var v6380 = v31; +v6378 = function () { if (v6379 !== v6380) { + return v6379.apply(this, arguments); +} }; +const v6381 = Object.create(v309); +v6381.constructor = v6378; +const v6382 = {}; +const v6383 = []; +var v6384; +var v6385 = v31; +var v6386 = v6381; +v6384 = function EVENTS_BUBBLE(event) { var baseClass = v6385.getPrototypeOf(v6386); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6387 = {}; +v6387.constructor = v6384; +v6384.prototype = v6387; +v6383.push(v6384); +v6382.apiCallAttempt = v6383; +const v6388 = []; +var v6389; +v6389 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6370.getPrototypeOf(v6386); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6390 = {}; +v6390.constructor = v6389; +v6389.prototype = v6390; +v6388.push(v6389); +v6382.apiCall = v6388; +v6381._events = v6382; +v6381.MONITOR_EVENTS_BUBBLE = v6384; +v6381.CALL_EVENTS_BUBBLE = v6389; +v6378.prototype = v6381; +v6378.__super__ = v299; +const v6391 = {}; +v6391[\\"2017-07-25\\"] = null; +v6378.services = v6391; +const v6392 = []; +v6392.push(\\"2017-07-25\\"); +v6378.apiVersions = v6392; +v6378.serviceIdentifier = \\"appsync\\"; +v2.AppSync = v6378; +var v6393; +var v6394 = v299; +var v6395 = v31; +v6393 = function () { if (v6394 !== v6395) { + return v6394.apply(this, arguments); +} }; +const v6396 = Object.create(v309); +v6396.constructor = v6393; +const v6397 = {}; +const v6398 = []; +var v6399; +var v6400 = v31; +var v6401 = v6396; +v6399 = function EVENTS_BUBBLE(event) { var baseClass = v6400.getPrototypeOf(v6401); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6402 = {}; +v6402.constructor = v6399; +v6399.prototype = v6402; +v6398.push(v6399); +v6397.apiCallAttempt = v6398; +const v6403 = []; +var v6404; +v6404 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6385.getPrototypeOf(v6401); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6405 = {}; +v6405.constructor = v6404; +v6404.prototype = v6405; +v6403.push(v6404); +v6397.apiCall = v6403; +v6396._events = v6397; +v6396.MONITOR_EVENTS_BUBBLE = v6399; +v6396.CALL_EVENTS_BUBBLE = v6404; +v6393.prototype = v6396; +v6393.__super__ = v299; +const v6406 = {}; +v6406[\\"2017-11-28\\"] = null; +v6393.services = v6406; +const v6407 = []; +v6407.push(\\"2017-11-28\\"); +v6393.apiVersions = v6407; +v6393.serviceIdentifier = \\"guardduty\\"; +v2.GuardDuty = v6393; +var v6408; +var v6409 = v299; +var v6410 = v31; +v6408 = function () { if (v6409 !== v6410) { + return v6409.apply(this, arguments); +} }; +const v6411 = Object.create(v309); +v6411.constructor = v6408; +const v6412 = {}; +const v6413 = []; +var v6414; +var v6415 = v31; +var v6416 = v6411; +v6414 = function EVENTS_BUBBLE(event) { var baseClass = v6415.getPrototypeOf(v6416); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6417 = {}; +v6417.constructor = v6414; +v6414.prototype = v6417; +v6413.push(v6414); +v6412.apiCallAttempt = v6413; +const v6418 = []; +var v6419; +v6419 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6400.getPrototypeOf(v6416); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6420 = {}; +v6420.constructor = v6419; +v6419.prototype = v6420; +v6418.push(v6419); +v6412.apiCall = v6418; +v6411._events = v6412; +v6411.MONITOR_EVENTS_BUBBLE = v6414; +v6411.CALL_EVENTS_BUBBLE = v6419; +v6408.prototype = v6411; +v6408.__super__ = v299; +const v6421 = {}; +v6421[\\"2017-11-27\\"] = null; +v6408.services = v6421; +const v6422 = []; +v6422.push(\\"2017-11-27\\"); +v6408.apiVersions = v6422; +v6408.serviceIdentifier = \\"mq\\"; +v2.MQ = v6408; +var v6423; +var v6424 = v299; +var v6425 = v31; +v6423 = function () { if (v6424 !== v6425) { + return v6424.apply(this, arguments); +} }; +const v6426 = Object.create(v309); +v6426.constructor = v6423; +const v6427 = {}; +const v6428 = []; +var v6429; +var v6430 = v31; +var v6431 = v6426; +v6429 = function EVENTS_BUBBLE(event) { var baseClass = v6430.getPrototypeOf(v6431); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6432 = {}; +v6432.constructor = v6429; +v6429.prototype = v6432; +v6428.push(v6429); +v6427.apiCallAttempt = v6428; +const v6433 = []; +var v6434; +v6434 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6415.getPrototypeOf(v6431); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6435 = {}; +v6435.constructor = v6434; +v6434.prototype = v6435; +v6433.push(v6434); +v6427.apiCall = v6433; +v6426._events = v6427; +v6426.MONITOR_EVENTS_BUBBLE = v6429; +v6426.CALL_EVENTS_BUBBLE = v6434; +v6423.prototype = v6426; +v6423.__super__ = v299; +const v6436 = {}; +v6436[\\"2017-11-27\\"] = null; +v6423.services = v6436; +const v6437 = []; +v6437.push(\\"2017-11-27\\"); +v6423.apiVersions = v6437; +v6423.serviceIdentifier = \\"comprehend\\"; +v2.Comprehend = v6423; +var v6438; +var v6439 = v299; +var v6440 = v31; +v6438 = function () { if (v6439 !== v6440) { + return v6439.apply(this, arguments); +} }; +const v6441 = Object.create(v309); +v6441.constructor = v6438; +const v6442 = {}; +const v6443 = []; +var v6444; +var v6445 = v31; +var v6446 = v6441; +v6444 = function EVENTS_BUBBLE(event) { var baseClass = v6445.getPrototypeOf(v6446); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6447 = {}; +v6447.constructor = v6444; +v6444.prototype = v6447; +v6443.push(v6444); +v6442.apiCallAttempt = v6443; +const v6448 = []; +var v6449; +v6449 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6430.getPrototypeOf(v6446); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6450 = {}; +v6450.constructor = v6449; +v6449.prototype = v6450; +v6448.push(v6449); +v6442.apiCall = v6448; +v6441._events = v6442; +v6441.MONITOR_EVENTS_BUBBLE = v6444; +v6441.CALL_EVENTS_BUBBLE = v6449; +v6438.prototype = v6441; +v6438.__super__ = v299; +const v6451 = {}; +v6451[\\"2017-09-29\\"] = null; +v6438.services = v6451; +const v6452 = []; +v6452.push(\\"2017-09-29\\"); +v6438.apiVersions = v6452; +v6438.serviceIdentifier = \\"iotjobsdataplane\\"; +v2.IoTJobsDataPlane = v6438; +var v6453; +var v6454 = v299; +var v6455 = v31; +v6453 = function () { if (v6454 !== v6455) { + return v6454.apply(this, arguments); +} }; +const v6456 = Object.create(v309); +v6456.constructor = v6453; +const v6457 = {}; +const v6458 = []; +var v6459; +var v6460 = v31; +var v6461 = v6456; +v6459 = function EVENTS_BUBBLE(event) { var baseClass = v6460.getPrototypeOf(v6461); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6462 = {}; +v6462.constructor = v6459; +v6459.prototype = v6462; +v6458.push(v6459); +v6457.apiCallAttempt = v6458; +const v6463 = []; +var v6464; +v6464 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6445.getPrototypeOf(v6461); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6465 = {}; +v6465.constructor = v6464; +v6464.prototype = v6465; +v6463.push(v6464); +v6457.apiCall = v6463; +v6456._events = v6457; +v6456.MONITOR_EVENTS_BUBBLE = v6459; +v6456.CALL_EVENTS_BUBBLE = v6464; +v6453.prototype = v6456; +v6453.__super__ = v299; +const v6466 = {}; +v6466[\\"2017-09-30\\"] = null; +v6453.services = v6466; +const v6467 = []; +v6467.push(\\"2017-09-30\\"); +v6453.apiVersions = v6467; +v6453.serviceIdentifier = \\"kinesisvideoarchivedmedia\\"; +v2.KinesisVideoArchivedMedia = v6453; +var v6468; +var v6469 = v299; +var v6470 = v31; +v6468 = function () { if (v6469 !== v6470) { + return v6469.apply(this, arguments); +} }; +const v6471 = Object.create(v309); +v6471.constructor = v6468; +const v6472 = {}; +const v6473 = []; +var v6474; +var v6475 = v31; +var v6476 = v6471; +v6474 = function EVENTS_BUBBLE(event) { var baseClass = v6475.getPrototypeOf(v6476); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6477 = {}; +v6477.constructor = v6474; +v6474.prototype = v6477; +v6473.push(v6474); +v6472.apiCallAttempt = v6473; +const v6478 = []; +var v6479; +v6479 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6460.getPrototypeOf(v6476); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6480 = {}; +v6480.constructor = v6479; +v6479.prototype = v6480; +v6478.push(v6479); +v6472.apiCall = v6478; +v6471._events = v6472; +v6471.MONITOR_EVENTS_BUBBLE = v6474; +v6471.CALL_EVENTS_BUBBLE = v6479; +v6468.prototype = v6471; +v6468.__super__ = v299; +const v6481 = {}; +v6481[\\"2017-09-30\\"] = null; +v6468.services = v6481; +const v6482 = []; +v6482.push(\\"2017-09-30\\"); +v6468.apiVersions = v6482; +v6468.serviceIdentifier = \\"kinesisvideomedia\\"; +v2.KinesisVideoMedia = v6468; +var v6483; +var v6484 = v299; +var v6485 = v31; +v6483 = function () { if (v6484 !== v6485) { + return v6484.apply(this, arguments); +} }; +const v6486 = Object.create(v309); +v6486.constructor = v6483; +const v6487 = {}; +const v6488 = []; +var v6489; +var v6490 = v31; +var v6491 = v6486; +v6489 = function EVENTS_BUBBLE(event) { var baseClass = v6490.getPrototypeOf(v6491); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6492 = {}; +v6492.constructor = v6489; +v6489.prototype = v6492; +v6488.push(v6489); +v6487.apiCallAttempt = v6488; +const v6493 = []; +var v6494; +v6494 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6475.getPrototypeOf(v6491); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6495 = {}; +v6495.constructor = v6494; +v6494.prototype = v6495; +v6493.push(v6494); +v6487.apiCall = v6493; +v6486._events = v6487; +v6486.MONITOR_EVENTS_BUBBLE = v6489; +v6486.CALL_EVENTS_BUBBLE = v6494; +v6483.prototype = v6486; +v6483.__super__ = v299; +const v6496 = {}; +v6496[\\"2017-09-30\\"] = null; +v6483.services = v6496; +const v6497 = []; +v6497.push(\\"2017-09-30\\"); +v6483.apiVersions = v6497; +v6483.serviceIdentifier = \\"kinesisvideo\\"; +v2.KinesisVideo = v6483; +var v6498; +var v6499 = v299; +var v6500 = v31; +v6498 = function () { if (v6499 !== v6500) { + return v6499.apply(this, arguments); +} }; +const v6501 = Object.create(v309); +v6501.constructor = v6498; +const v6502 = {}; +const v6503 = []; +var v6504; +var v6505 = v31; +var v6506 = v6501; +v6504 = function EVENTS_BUBBLE(event) { var baseClass = v6505.getPrototypeOf(v6506); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6507 = {}; +v6507.constructor = v6504; +v6504.prototype = v6507; +v6503.push(v6504); +v6502.apiCallAttempt = v6503; +const v6508 = []; +var v6509; +v6509 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6490.getPrototypeOf(v6506); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6510 = {}; +v6510.constructor = v6509; +v6509.prototype = v6510; +v6508.push(v6509); +v6502.apiCall = v6508; +v6501._events = v6502; +v6501.MONITOR_EVENTS_BUBBLE = v6504; +v6501.CALL_EVENTS_BUBBLE = v6509; +v6498.prototype = v6501; +v6498.__super__ = v299; +const v6511 = {}; +v6511[\\"2017-05-13\\"] = null; +v6498.services = v6511; +const v6512 = []; +v6512.push(\\"2017-05-13\\"); +v6498.apiVersions = v6512; +v6498.serviceIdentifier = \\"sagemakerruntime\\"; +v2.SageMakerRuntime = v6498; +var v6513; +var v6514 = v299; +var v6515 = v31; +v6513 = function () { if (v6514 !== v6515) { + return v6514.apply(this, arguments); +} }; +const v6516 = Object.create(v309); +v6516.constructor = v6513; +const v6517 = {}; +const v6518 = []; +var v6519; +var v6520 = v31; +var v6521 = v6516; +v6519 = function EVENTS_BUBBLE(event) { var baseClass = v6520.getPrototypeOf(v6521); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6522 = {}; +v6522.constructor = v6519; +v6519.prototype = v6522; +v6518.push(v6519); +v6517.apiCallAttempt = v6518; +const v6523 = []; +var v6524; +v6524 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6505.getPrototypeOf(v6521); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6525 = {}; +v6525.constructor = v6524; +v6524.prototype = v6525; +v6523.push(v6524); +v6517.apiCall = v6523; +v6516._events = v6517; +v6516.MONITOR_EVENTS_BUBBLE = v6519; +v6516.CALL_EVENTS_BUBBLE = v6524; +v6513.prototype = v6516; +v6513.__super__ = v299; +const v6526 = {}; +v6526[\\"2017-07-24\\"] = null; +v6513.services = v6526; +const v6527 = []; +v6527.push(\\"2017-07-24\\"); +v6513.apiVersions = v6527; +v6513.serviceIdentifier = \\"sagemaker\\"; +v2.SageMaker = v6513; +var v6528; +var v6529 = v299; +var v6530 = v31; +v6528 = function () { if (v6529 !== v6530) { + return v6529.apply(this, arguments); +} }; +const v6531 = Object.create(v309); +v6531.constructor = v6528; +const v6532 = {}; +const v6533 = []; +var v6534; +var v6535 = v31; +var v6536 = v6531; +v6534 = function EVENTS_BUBBLE(event) { var baseClass = v6535.getPrototypeOf(v6536); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6537 = {}; +v6537.constructor = v6534; +v6534.prototype = v6537; +v6533.push(v6534); +v6532.apiCallAttempt = v6533; +const v6538 = []; +var v6539; +v6539 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6520.getPrototypeOf(v6536); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6540 = {}; +v6540.constructor = v6539; +v6539.prototype = v6540; +v6538.push(v6539); +v6532.apiCall = v6538; +v6531._events = v6532; +v6531.MONITOR_EVENTS_BUBBLE = v6534; +v6531.CALL_EVENTS_BUBBLE = v6539; +v6528.prototype = v6531; +v6528.__super__ = v299; +const v6541 = {}; +v6541[\\"2017-07-01\\"] = null; +v6528.services = v6541; +const v6542 = []; +v6542.push(\\"2017-07-01\\"); +v6528.apiVersions = v6542; +v6528.serviceIdentifier = \\"translate\\"; +v2.Translate = v6528; +var v6543; +var v6544 = v299; +var v6545 = v31; +v6543 = function () { if (v6544 !== v6545) { + return v6544.apply(this, arguments); +} }; +const v6546 = Object.create(v309); +v6546.constructor = v6543; +const v6547 = {}; +const v6548 = []; +var v6549; +var v6550 = v31; +var v6551 = v6546; +v6549 = function EVENTS_BUBBLE(event) { var baseClass = v6550.getPrototypeOf(v6551); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6552 = {}; +v6552.constructor = v6549; +v6549.prototype = v6552; +v6548.push(v6549); +v6547.apiCallAttempt = v6548; +const v6553 = []; +var v6554; +v6554 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6535.getPrototypeOf(v6551); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6555 = {}; +v6555.constructor = v6554; +v6554.prototype = v6555; +v6553.push(v6554); +v6547.apiCall = v6553; +v6546._events = v6547; +v6546.MONITOR_EVENTS_BUBBLE = v6549; +v6546.CALL_EVENTS_BUBBLE = v6554; +v6543.prototype = v6546; +v6543.__super__ = v299; +const v6556 = {}; +v6556[\\"2017-11-27\\"] = null; +v6543.services = v6556; +const v6557 = []; +v6557.push(\\"2017-11-27\\"); +v6543.apiVersions = v6557; +v6543.serviceIdentifier = \\"resourcegroups\\"; +v2.ResourceGroups = v6543; +var v6558; +var v6559 = v299; +var v6560 = v31; +v6558 = function () { if (v6559 !== v6560) { + return v6559.apply(this, arguments); +} }; +const v6561 = Object.create(v309); +v6561.constructor = v6558; +const v6562 = {}; +const v6563 = []; +var v6564; +var v6565 = v31; +var v6566 = v6561; +v6564 = function EVENTS_BUBBLE(event) { var baseClass = v6565.getPrototypeOf(v6566); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6567 = {}; +v6567.constructor = v6564; +v6564.prototype = v6567; +v6563.push(v6564); +v6562.apiCallAttempt = v6563; +const v6568 = []; +var v6569; +v6569 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6550.getPrototypeOf(v6566); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6570 = {}; +v6570.constructor = v6569; +v6569.prototype = v6570; +v6568.push(v6569); +v6562.apiCall = v6568; +v6561._events = v6562; +v6561.MONITOR_EVENTS_BUBBLE = v6564; +v6561.CALL_EVENTS_BUBBLE = v6569; +v6558.prototype = v6561; +v6558.__super__ = v299; +const v6571 = {}; +v6571[\\"2017-11-09\\"] = null; +v6558.services = v6571; +const v6572 = []; +v6572.push(\\"2017-11-09\\"); +v6558.apiVersions = v6572; +v6558.serviceIdentifier = \\"alexaforbusiness\\"; +v2.AlexaForBusiness = v6558; +var v6573; +var v6574 = v299; +var v6575 = v31; +v6573 = function () { if (v6574 !== v6575) { + return v6574.apply(this, arguments); +} }; +const v6576 = Object.create(v309); +v6576.constructor = v6573; +const v6577 = {}; +const v6578 = []; +var v6579; +var v6580 = v31; +var v6581 = v6576; +v6579 = function EVENTS_BUBBLE(event) { var baseClass = v6580.getPrototypeOf(v6581); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6582 = {}; +v6582.constructor = v6579; +v6579.prototype = v6582; +v6578.push(v6579); +v6577.apiCallAttempt = v6578; +const v6583 = []; +var v6584; +v6584 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6565.getPrototypeOf(v6581); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6585 = {}; +v6585.constructor = v6584; +v6584.prototype = v6585; +v6583.push(v6584); +v6577.apiCall = v6583; +v6576._events = v6577; +v6576.MONITOR_EVENTS_BUBBLE = v6579; +v6576.CALL_EVENTS_BUBBLE = v6584; +v6573.prototype = v6576; +v6573.__super__ = v299; +const v6586 = {}; +v6586[\\"2017-09-23\\"] = null; +v6573.services = v6586; +const v6587 = []; +v6587.push(\\"2017-09-23\\"); +v6573.apiVersions = v6587; +v6573.serviceIdentifier = \\"cloud9\\"; +v2.Cloud9 = v6573; +var v6588; +var v6589 = v299; +var v6590 = v31; +v6588 = function () { if (v6589 !== v6590) { + return v6589.apply(this, arguments); +} }; +const v6591 = Object.create(v309); +v6591.constructor = v6588; +const v6592 = {}; +const v6593 = []; +var v6594; +var v6595 = v31; +var v6596 = v6591; +v6594 = function EVENTS_BUBBLE(event) { var baseClass = v6595.getPrototypeOf(v6596); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6597 = {}; +v6597.constructor = v6594; +v6594.prototype = v6597; +v6593.push(v6594); +v6592.apiCallAttempt = v6593; +const v6598 = []; +var v6599; +v6599 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6580.getPrototypeOf(v6596); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6600 = {}; +v6600.constructor = v6599; +v6599.prototype = v6600; +v6598.push(v6599); +v6592.apiCall = v6598; +v6591._events = v6592; +v6591.MONITOR_EVENTS_BUBBLE = v6594; +v6591.CALL_EVENTS_BUBBLE = v6599; +v6588.prototype = v6591; +v6588.__super__ = v299; +const v6601 = {}; +v6601[\\"2017-09-08\\"] = null; +v6588.services = v6601; +const v6602 = []; +v6602.push(\\"2017-09-08\\"); +v6588.apiVersions = v6602; +v6588.serviceIdentifier = \\"serverlessapplicationrepository\\"; +v2.ServerlessApplicationRepository = v6588; +var v6603; +var v6604 = v299; +var v6605 = v31; +v6603 = function () { if (v6604 !== v6605) { + return v6604.apply(this, arguments); +} }; +const v6606 = Object.create(v309); +v6606.constructor = v6603; +const v6607 = {}; +const v6608 = []; +var v6609; +var v6610 = v31; +var v6611 = v6606; +v6609 = function EVENTS_BUBBLE(event) { var baseClass = v6610.getPrototypeOf(v6611); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6612 = {}; +v6612.constructor = v6609; +v6609.prototype = v6612; +v6608.push(v6609); +v6607.apiCallAttempt = v6608; +const v6613 = []; +var v6614; +v6614 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6595.getPrototypeOf(v6611); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6615 = {}; +v6615.constructor = v6614; +v6614.prototype = v6615; +v6613.push(v6614); +v6607.apiCall = v6613; +v6606._events = v6607; +v6606.MONITOR_EVENTS_BUBBLE = v6609; +v6606.CALL_EVENTS_BUBBLE = v6614; +v6603.prototype = v6606; +v6603.__super__ = v299; +const v6616 = {}; +v6616[\\"2017-03-14\\"] = null; +v6603.services = v6616; +const v6617 = []; +v6617.push(\\"2017-03-14\\"); +v6603.apiVersions = v6617; +v6603.serviceIdentifier = \\"servicediscovery\\"; +v2.ServiceDiscovery = v6603; +var v6618; +var v6619 = v299; +var v6620 = v31; +v6618 = function () { if (v6619 !== v6620) { + return v6619.apply(this, arguments); +} }; +const v6621 = Object.create(v309); +v6621.constructor = v6618; +const v6622 = {}; +const v6623 = []; +var v6624; +var v6625 = v31; +var v6626 = v6621; +v6624 = function EVENTS_BUBBLE(event) { var baseClass = v6625.getPrototypeOf(v6626); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6627 = {}; +v6627.constructor = v6624; +v6624.prototype = v6627; +v6623.push(v6624); +v6622.apiCallAttempt = v6623; +const v6628 = []; +var v6629; +v6629 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6610.getPrototypeOf(v6626); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6630 = {}; +v6630.constructor = v6629; +v6629.prototype = v6630; +v6628.push(v6629); +v6622.apiCall = v6628; +v6621._events = v6622; +v6621.MONITOR_EVENTS_BUBBLE = v6624; +v6621.CALL_EVENTS_BUBBLE = v6629; +v6618.prototype = v6621; +v6618.__super__ = v299; +const v6631 = {}; +v6631[\\"2017-10-01\\"] = null; +v6618.services = v6631; +const v6632 = []; +v6632.push(\\"2017-10-01\\"); +v6618.apiVersions = v6632; +v6618.serviceIdentifier = \\"workmail\\"; +v2.WorkMail = v6618; +var v6633; +var v6634 = v299; +var v6635 = v31; +v6633 = function () { if (v6634 !== v6635) { + return v6634.apply(this, arguments); +} }; +const v6636 = Object.create(v309); +v6636.constructor = v6633; +const v6637 = {}; +const v6638 = []; +var v6639; +var v6640 = v31; +var v6641 = v6636; +v6639 = function EVENTS_BUBBLE(event) { var baseClass = v6640.getPrototypeOf(v6641); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6642 = {}; +v6642.constructor = v6639; +v6639.prototype = v6642; +v6638.push(v6639); +v6637.apiCallAttempt = v6638; +const v6643 = []; +var v6644; +v6644 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6625.getPrototypeOf(v6641); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6645 = {}; +v6645.constructor = v6644; +v6644.prototype = v6645; +v6643.push(v6644); +v6637.apiCall = v6643; +v6636._events = v6637; +v6636.MONITOR_EVENTS_BUBBLE = v6639; +v6636.CALL_EVENTS_BUBBLE = v6644; +v6633.prototype = v6636; +v6633.__super__ = v299; +const v6646 = {}; +v6646[\\"2018-01-06\\"] = null; +v6633.services = v6646; +const v6647 = []; +v6647.push(\\"2018-01-06\\"); +v6633.apiVersions = v6647; +v6633.serviceIdentifier = \\"autoscalingplans\\"; +v2.AutoScalingPlans = v6633; +var v6648; +var v6649 = v299; +var v6650 = v31; +v6648 = function () { if (v6649 !== v6650) { + return v6649.apply(this, arguments); +} }; +const v6651 = Object.create(v309); +v6651.constructor = v6648; +const v6652 = {}; +const v6653 = []; +var v6654; +var v6655 = v31; +var v6656 = v6651; +v6654 = function EVENTS_BUBBLE(event) { var baseClass = v6655.getPrototypeOf(v6656); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6657 = {}; +v6657.constructor = v6654; +v6654.prototype = v6657; +v6653.push(v6654); +v6652.apiCallAttempt = v6653; +const v6658 = []; +var v6659; +v6659 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6640.getPrototypeOf(v6656); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6660 = {}; +v6660.constructor = v6659; +v6659.prototype = v6660; +v6658.push(v6659); +v6652.apiCall = v6658; +v6651._events = v6652; +v6651.MONITOR_EVENTS_BUBBLE = v6654; +v6651.CALL_EVENTS_BUBBLE = v6659; +v6648.prototype = v6651; +v6648.__super__ = v299; +const v6661 = {}; +v6661[\\"2017-10-26\\"] = null; +v6648.services = v6661; +const v6662 = []; +v6662.push(\\"2017-10-26\\"); +v6648.apiVersions = v6662; +v6648.serviceIdentifier = \\"transcribeservice\\"; +v2.TranscribeService = v6648; +var v6663; +var v6664 = v299; +var v6665 = v31; +v6663 = function () { if (v6664 !== v6665) { + return v6664.apply(this, arguments); +} }; +const v6666 = Object.create(v309); +v6666.constructor = v6663; +const v6667 = {}; +const v6668 = []; +var v6669; +var v6670 = v31; +var v6671 = v6666; +v6669 = function EVENTS_BUBBLE(event) { var baseClass = v6670.getPrototypeOf(v6671); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6672 = {}; +v6672.constructor = v6669; +v6669.prototype = v6672; +v6668.push(v6669); +v6667.apiCallAttempt = v6668; +const v6673 = []; +var v6674; +v6674 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6655.getPrototypeOf(v6671); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6675 = {}; +v6675.constructor = v6674; +v6674.prototype = v6675; +v6673.push(v6674); +v6667.apiCall = v6673; +v6666._events = v6667; +v6666.MONITOR_EVENTS_BUBBLE = v6669; +v6666.CALL_EVENTS_BUBBLE = v6674; +v6663.prototype = v6666; +v6663.__super__ = v299; +const v6676 = {}; +v6676[\\"2017-08-08\\"] = null; +v6663.services = v6676; +const v6677 = []; +v6677.push(\\"2017-08-08\\"); +v6663.apiVersions = v6677; +v6663.serviceIdentifier = \\"connect\\"; +v2.Connect = v6663; +var v6678; +var v6679 = v299; +var v6680 = v31; +v6678 = function () { if (v6679 !== v6680) { + return v6679.apply(this, arguments); +} }; +const v6681 = Object.create(v309); +v6681.constructor = v6678; +const v6682 = {}; +const v6683 = []; +var v6684; +var v6685 = v31; +var v6686 = v6681; +v6684 = function EVENTS_BUBBLE(event) { var baseClass = v6685.getPrototypeOf(v6686); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6687 = {}; +v6687.constructor = v6684; +v6684.prototype = v6687; +v6683.push(v6684); +v6682.apiCallAttempt = v6683; +const v6688 = []; +var v6689; +v6689 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6670.getPrototypeOf(v6686); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6690 = {}; +v6690.constructor = v6689; +v6689.prototype = v6690; +v6688.push(v6689); +v6682.apiCall = v6688; +v6681._events = v6682; +v6681.MONITOR_EVENTS_BUBBLE = v6684; +v6681.CALL_EVENTS_BUBBLE = v6689; +v6678.prototype = v6681; +v6678.__super__ = v299; +const v6691 = {}; +v6691[\\"2017-08-22\\"] = null; +v6678.services = v6691; +const v6692 = []; +v6692.push(\\"2017-08-22\\"); +v6678.apiVersions = v6692; +v6678.serviceIdentifier = \\"acmpca\\"; +v2.ACMPCA = v6678; +var v6693; +var v6694 = v299; +var v6695 = v31; +v6693 = function () { if (v6694 !== v6695) { + return v6694.apply(this, arguments); +} }; +const v6696 = Object.create(v309); +v6696.constructor = v6693; +const v6697 = {}; +const v6698 = []; +var v6699; +var v6700 = v31; +var v6701 = v6696; +v6699 = function EVENTS_BUBBLE(event) { var baseClass = v6700.getPrototypeOf(v6701); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6702 = {}; +v6702.constructor = v6699; +v6699.prototype = v6702; +v6698.push(v6699); +v6697.apiCallAttempt = v6698; +const v6703 = []; +var v6704; +v6704 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6685.getPrototypeOf(v6701); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6705 = {}; +v6705.constructor = v6704; +v6704.prototype = v6705; +v6703.push(v6704); +v6697.apiCall = v6703; +v6696._events = v6697; +v6696.MONITOR_EVENTS_BUBBLE = v6699; +v6696.CALL_EVENTS_BUBBLE = v6704; +v6693.prototype = v6696; +v6693.__super__ = v299; +const v6706 = {}; +v6706[\\"2018-01-01\\"] = null; +v6693.services = v6706; +const v6707 = []; +v6707.push(\\"2018-01-01\\"); +v6693.apiVersions = v6707; +v6693.serviceIdentifier = \\"fms\\"; +v2.FMS = v6693; +var v6708; +var v6709 = v299; +var v6710 = v31; +v6708 = function () { if (v6709 !== v6710) { + return v6709.apply(this, arguments); +} }; +const v6711 = Object.create(v309); +v6711.constructor = v6708; +const v6712 = {}; +const v6713 = []; +var v6714; +var v6715 = v31; +var v6716 = v6711; +v6714 = function EVENTS_BUBBLE(event) { var baseClass = v6715.getPrototypeOf(v6716); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6717 = {}; +v6717.constructor = v6714; +v6714.prototype = v6717; +v6713.push(v6714); +v6712.apiCallAttempt = v6713; +const v6718 = []; +var v6719; +v6719 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6700.getPrototypeOf(v6716); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6720 = {}; +v6720.constructor = v6719; +v6719.prototype = v6720; +v6718.push(v6719); +v6712.apiCall = v6718; +v6711._events = v6712; +v6711.MONITOR_EVENTS_BUBBLE = v6714; +v6711.CALL_EVENTS_BUBBLE = v6719; +v6708.prototype = v6711; +v6708.__super__ = v299; +const v6721 = {}; +v6721[\\"2017-10-17\\"] = null; +v6708.services = v6721; +const v6722 = []; +v6722.push(\\"2017-10-17\\"); +v6708.apiVersions = v6722; +v6708.serviceIdentifier = \\"secretsmanager\\"; +v2.SecretsManager = v6708; +var v6723; +var v6724 = v299; +var v6725 = v31; +v6723 = function () { if (v6724 !== v6725) { + return v6724.apply(this, arguments); +} }; +const v6726 = Object.create(v309); +v6726.constructor = v6723; +const v6727 = {}; +const v6728 = []; +var v6729; +var v6730 = v31; +var v6731 = v6726; +v6729 = function EVENTS_BUBBLE(event) { var baseClass = v6730.getPrototypeOf(v6731); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6732 = {}; +v6732.constructor = v6729; +v6729.prototype = v6732; +v6728.push(v6729); +v6727.apiCallAttempt = v6728; +const v6733 = []; +var v6734; +v6734 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6715.getPrototypeOf(v6731); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6735 = {}; +v6735.constructor = v6734; +v6734.prototype = v6735; +v6733.push(v6734); +v6727.apiCall = v6733; +v6726._events = v6727; +v6726.MONITOR_EVENTS_BUBBLE = v6729; +v6726.CALL_EVENTS_BUBBLE = v6734; +v6723.prototype = v6726; +v6723.__super__ = v299; +const v6736 = {}; +v6736[\\"2017-11-27\\"] = null; +v6723.services = v6736; +const v6737 = []; +v6737.push(\\"2017-11-27\\"); +v6723.apiVersions = v6737; +v6723.serviceIdentifier = \\"iotanalytics\\"; +v2.IoTAnalytics = v6723; +var v6738; +var v6739 = v299; +var v6740 = v31; +v6738 = function () { if (v6739 !== v6740) { + return v6739.apply(this, arguments); +} }; +const v6741 = Object.create(v309); +v6741.constructor = v6738; +const v6742 = {}; +const v6743 = []; +var v6744; +var v6745 = v31; +var v6746 = v6741; +v6744 = function EVENTS_BUBBLE(event) { var baseClass = v6745.getPrototypeOf(v6746); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6747 = {}; +v6747.constructor = v6744; +v6744.prototype = v6747; +v6743.push(v6744); +v6742.apiCallAttempt = v6743; +const v6748 = []; +var v6749; +v6749 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6730.getPrototypeOf(v6746); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6750 = {}; +v6750.constructor = v6749; +v6749.prototype = v6750; +v6748.push(v6749); +v6742.apiCall = v6748; +v6741._events = v6742; +v6741.MONITOR_EVENTS_BUBBLE = v6744; +v6741.CALL_EVENTS_BUBBLE = v6749; +v6738.prototype = v6741; +v6738.__super__ = v299; +const v6751 = {}; +v6751[\\"2018-05-14\\"] = null; +v6738.services = v6751; +const v6752 = []; +v6752.push(\\"2018-05-14\\"); +v6738.apiVersions = v6752; +v6738.serviceIdentifier = \\"iot1clickdevicesservice\\"; +v2.IoT1ClickDevicesService = v6738; +var v6753; +var v6754 = v299; +var v6755 = v31; +v6753 = function () { if (v6754 !== v6755) { + return v6754.apply(this, arguments); +} }; +const v6756 = Object.create(v309); +v6756.constructor = v6753; +const v6757 = {}; +const v6758 = []; +var v6759; +var v6760 = v31; +var v6761 = v6756; +v6759 = function EVENTS_BUBBLE(event) { var baseClass = v6760.getPrototypeOf(v6761); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6762 = {}; +v6762.constructor = v6759; +v6759.prototype = v6762; +v6758.push(v6759); +v6757.apiCallAttempt = v6758; +const v6763 = []; +var v6764; +v6764 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6745.getPrototypeOf(v6761); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6765 = {}; +v6765.constructor = v6764; +v6764.prototype = v6765; +v6763.push(v6764); +v6757.apiCall = v6763; +v6756._events = v6757; +v6756.MONITOR_EVENTS_BUBBLE = v6759; +v6756.CALL_EVENTS_BUBBLE = v6764; +v6753.prototype = v6756; +v6753.__super__ = v299; +const v6766 = {}; +v6766[\\"2018-05-14\\"] = null; +v6753.services = v6766; +const v6767 = []; +v6767.push(\\"2018-05-14\\"); +v6753.apiVersions = v6767; +v6753.serviceIdentifier = \\"iot1clickprojects\\"; +v2.IoT1ClickProjects = v6753; +var v6768; +var v6769 = v299; +var v6770 = v31; +v6768 = function () { if (v6769 !== v6770) { + return v6769.apply(this, arguments); +} }; +const v6771 = Object.create(v309); +v6771.constructor = v6768; +const v6772 = {}; +const v6773 = []; +var v6774; +var v6775 = v31; +var v6776 = v6771; +v6774 = function EVENTS_BUBBLE(event) { var baseClass = v6775.getPrototypeOf(v6776); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6777 = {}; +v6777.constructor = v6774; +v6774.prototype = v6777; +v6773.push(v6774); +v6772.apiCallAttempt = v6773; +const v6778 = []; +var v6779; +v6779 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6760.getPrototypeOf(v6776); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6780 = {}; +v6780.constructor = v6779; +v6779.prototype = v6780; +v6778.push(v6779); +v6772.apiCall = v6778; +v6771._events = v6772; +v6771.MONITOR_EVENTS_BUBBLE = v6774; +v6771.CALL_EVENTS_BUBBLE = v6779; +v6768.prototype = v6771; +v6768.__super__ = v299; +const v6781 = {}; +v6781[\\"2018-02-27\\"] = null; +v6768.services = v6781; +const v6782 = []; +v6782.push(\\"2018-02-27\\"); +v6768.apiVersions = v6782; +v6768.serviceIdentifier = \\"pi\\"; +v2.PI = v6768; +var v6783; +var v6784 = v299; +var v6785 = v31; +v6783 = function () { if (v6784 !== v6785) { + return v6784.apply(this, arguments); +} }; +const v6786 = Object.create(v309); +v6786.constructor = v6783; +const v6787 = {}; +const v6788 = []; +var v6789; +var v6790 = v31; +var v6791 = v6786; +v6789 = function EVENTS_BUBBLE(event) { var baseClass = v6790.getPrototypeOf(v6791); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6792 = {}; +v6792.constructor = v6789; +v6789.prototype = v6792; +v6788.push(v6789); +v6787.apiCallAttempt = v6788; +const v6793 = []; +var v6794; +v6794 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6775.getPrototypeOf(v6791); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6795 = {}; +v6795.constructor = v6794; +v6794.prototype = v6795; +v6793.push(v6794); +v6787.apiCall = v6793; +v6786._events = v6787; +v6786.MONITOR_EVENTS_BUBBLE = v6789; +v6786.CALL_EVENTS_BUBBLE = v6794; +var v6796; +const v6798 = []; +v6798.push(\\"createDBCluster\\", \\"copyDBClusterSnapshot\\"); +var v6797 = v6798; +var v6799 = v5419; +var v6800 = v6798; +v6796 = function setupRequestListeners(request) { if (v6797.indexOf(request.operation) !== -1 && this.config.params && this.config.params.SourceRegion && request.params && !request.params.SourceRegion) { + request.params.SourceRegion = this.config.params.SourceRegion; +} v6799.setupRequestListeners(this, request, v6800); }; +const v6801 = {}; +v6801.constructor = v6796; +v6796.prototype = v6801; +v6786.setupRequestListeners = v6796; +v6783.prototype = v6786; +v6783.__super__ = v299; +const v6802 = {}; +v6802[\\"2014-10-31\\"] = null; +v6783.services = v6802; +const v6803 = []; +v6803.push(\\"2014-10-31\\"); +v6783.apiVersions = v6803; +v6783.serviceIdentifier = \\"neptune\\"; +v2.Neptune = v6783; +var v6804; +var v6805 = v299; +var v6806 = v31; +v6804 = function () { if (v6805 !== v6806) { + return v6805.apply(this, arguments); +} }; +const v6807 = Object.create(v309); +v6807.constructor = v6804; +const v6808 = {}; +const v6809 = []; +var v6810; +var v6811 = v31; +var v6812 = v6807; +v6810 = function EVENTS_BUBBLE(event) { var baseClass = v6811.getPrototypeOf(v6812); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6813 = {}; +v6813.constructor = v6810; +v6810.prototype = v6813; +v6809.push(v6810); +v6808.apiCallAttempt = v6809; +const v6814 = []; +var v6815; +v6815 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6790.getPrototypeOf(v6812); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6816 = {}; +v6816.constructor = v6815; +v6815.prototype = v6816; +v6814.push(v6815); +v6808.apiCall = v6814; +v6807._events = v6808; +v6807.MONITOR_EVENTS_BUBBLE = v6810; +v6807.CALL_EVENTS_BUBBLE = v6815; +v6804.prototype = v6807; +v6804.__super__ = v299; +const v6817 = {}; +v6817[\\"2018-04-23\\"] = null; +v6804.services = v6817; +const v6818 = []; +v6818.push(\\"2018-04-23\\"); +v6804.apiVersions = v6818; +v6804.serviceIdentifier = \\"mediatailor\\"; +v2.MediaTailor = v6804; +var v6819; +var v6820 = v299; +var v6821 = v31; +v6819 = function () { if (v6820 !== v6821) { + return v6820.apply(this, arguments); +} }; +const v6822 = Object.create(v309); +v6822.constructor = v6819; +const v6823 = {}; +const v6824 = []; +var v6825; +var v6826 = v31; +var v6827 = v6822; +v6825 = function EVENTS_BUBBLE(event) { var baseClass = v6826.getPrototypeOf(v6827); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6828 = {}; +v6828.constructor = v6825; +v6825.prototype = v6828; +v6824.push(v6825); +v6823.apiCallAttempt = v6824; +const v6829 = []; +var v6830; +v6830 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6811.getPrototypeOf(v6827); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6831 = {}; +v6831.constructor = v6830; +v6830.prototype = v6831; +v6829.push(v6830); +v6823.apiCall = v6829; +v6822._events = v6823; +v6822.MONITOR_EVENTS_BUBBLE = v6825; +v6822.CALL_EVENTS_BUBBLE = v6830; +v6819.prototype = v6822; +v6819.__super__ = v299; +const v6832 = {}; +v6832[\\"2017-11-01\\"] = null; +v6819.services = v6832; +const v6833 = []; +v6833.push(\\"2017-11-01\\"); +v6819.apiVersions = v6833; +v6819.serviceIdentifier = \\"eks\\"; +v2.EKS = v6819; +var v6834; +var v6835 = v299; +var v6836 = v31; +v6834 = function () { if (v6835 !== v6836) { + return v6835.apply(this, arguments); +} }; +const v6837 = Object.create(v309); +v6837.constructor = v6834; +const v6838 = {}; +const v6839 = []; +var v6840; +var v6841 = v31; +var v6842 = v6837; +v6840 = function EVENTS_BUBBLE(event) { var baseClass = v6841.getPrototypeOf(v6842); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6843 = {}; +v6843.constructor = v6840; +v6840.prototype = v6843; +v6839.push(v6840); +v6838.apiCallAttempt = v6839; +const v6844 = []; +var v6845; +v6845 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6826.getPrototypeOf(v6842); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6846 = {}; +v6846.constructor = v6845; +v6845.prototype = v6846; +v6844.push(v6845); +v6838.apiCall = v6844; +v6837._events = v6838; +v6837.MONITOR_EVENTS_BUBBLE = v6840; +v6837.CALL_EVENTS_BUBBLE = v6845; +v6834.prototype = v6837; +v6834.__super__ = v299; +const v6847 = {}; +v6847[\\"2017-12-19\\"] = null; +v6834.services = v6847; +const v6848 = []; +v6848.push(\\"2017-12-19\\"); +v6834.apiVersions = v6848; +v6834.serviceIdentifier = \\"macie\\"; +v2.Macie = v6834; +var v6849; +var v6850 = v299; +var v6851 = v31; +v6849 = function () { if (v6850 !== v6851) { + return v6850.apply(this, arguments); +} }; +const v6852 = Object.create(v309); +v6852.constructor = v6849; +const v6853 = {}; +const v6854 = []; +var v6855; +var v6856 = v31; +var v6857 = v6852; +v6855 = function EVENTS_BUBBLE(event) { var baseClass = v6856.getPrototypeOf(v6857); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6858 = {}; +v6858.constructor = v6855; +v6855.prototype = v6858; +v6854.push(v6855); +v6853.apiCallAttempt = v6854; +const v6859 = []; +var v6860; +v6860 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6841.getPrototypeOf(v6857); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6861 = {}; +v6861.constructor = v6860; +v6860.prototype = v6861; +v6859.push(v6860); +v6853.apiCall = v6859; +v6852._events = v6853; +v6852.MONITOR_EVENTS_BUBBLE = v6855; +v6852.CALL_EVENTS_BUBBLE = v6860; +v6849.prototype = v6852; +v6849.__super__ = v299; +const v6862 = {}; +v6862[\\"2018-01-12\\"] = null; +v6849.services = v6862; +const v6863 = []; +v6863.push(\\"2018-01-12\\"); +v6849.apiVersions = v6863; +v6849.serviceIdentifier = \\"dlm\\"; +v2.DLM = v6849; +var v6864; +var v6865 = v299; +var v6866 = v31; +v6864 = function () { if (v6865 !== v6866) { + return v6865.apply(this, arguments); +} }; +const v6867 = Object.create(v309); +v6867.constructor = v6864; +const v6868 = {}; +const v6869 = []; +var v6870; +var v6871 = v31; +var v6872 = v6867; +v6870 = function EVENTS_BUBBLE(event) { var baseClass = v6871.getPrototypeOf(v6872); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6873 = {}; +v6873.constructor = v6870; +v6870.prototype = v6873; +v6869.push(v6870); +v6868.apiCallAttempt = v6869; +const v6874 = []; +var v6875; +v6875 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6856.getPrototypeOf(v6872); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6876 = {}; +v6876.constructor = v6875; +v6875.prototype = v6876; +v6874.push(v6875); +v6868.apiCall = v6874; +v6867._events = v6868; +v6867.MONITOR_EVENTS_BUBBLE = v6870; +v6867.CALL_EVENTS_BUBBLE = v6875; +v6864.prototype = v6867; +v6864.__super__ = v299; +const v6877 = {}; +v6877[\\"2017-08-25\\"] = null; +v6864.services = v6877; +const v6878 = []; +v6878.push(\\"2017-08-25\\"); +v6864.apiVersions = v6878; +v6864.serviceIdentifier = \\"signer\\"; +v2.Signer = v6864; +var v6879; +var v6880 = v299; +var v6881 = v31; +v6879 = function () { if (v6880 !== v6881) { + return v6880.apply(this, arguments); +} }; +const v6882 = Object.create(v309); +v6882.constructor = v6879; +const v6883 = {}; +const v6884 = []; +var v6885; +var v6886 = v31; +var v6887 = v6882; +v6885 = function EVENTS_BUBBLE(event) { var baseClass = v6886.getPrototypeOf(v6887); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6888 = {}; +v6888.constructor = v6885; +v6885.prototype = v6888; +v6884.push(v6885); +v6883.apiCallAttempt = v6884; +const v6889 = []; +var v6890; +v6890 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6871.getPrototypeOf(v6887); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6891 = {}; +v6891.constructor = v6890; +v6890.prototype = v6891; +v6889.push(v6890); +v6883.apiCall = v6889; +v6882._events = v6883; +v6882.MONITOR_EVENTS_BUBBLE = v6885; +v6882.CALL_EVENTS_BUBBLE = v6890; +v6879.prototype = v6882; +v6879.__super__ = v299; +const v6892 = {}; +v6892[\\"2018-05-01\\"] = null; +v6879.services = v6892; +const v6893 = []; +v6893.push(\\"2018-05-01\\"); +v6879.apiVersions = v6893; +v6879.serviceIdentifier = \\"chime\\"; +v2.Chime = v6879; +var v6894; +var v6895 = v299; +var v6896 = v31; +v6894 = function () { if (v6895 !== v6896) { + return v6895.apply(this, arguments); +} }; +const v6897 = Object.create(v309); +v6897.constructor = v6894; +const v6898 = {}; +const v6899 = []; +var v6900; +var v6901 = v31; +var v6902 = v6897; +v6900 = function EVENTS_BUBBLE(event) { var baseClass = v6901.getPrototypeOf(v6902); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6903 = {}; +v6903.constructor = v6900; +v6900.prototype = v6903; +v6899.push(v6900); +v6898.apiCallAttempt = v6899; +const v6904 = []; +var v6905; +v6905 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6886.getPrototypeOf(v6902); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6906 = {}; +v6906.constructor = v6905; +v6905.prototype = v6906; +v6904.push(v6905); +v6898.apiCall = v6904; +v6897._events = v6898; +v6897.MONITOR_EVENTS_BUBBLE = v6900; +v6897.CALL_EVENTS_BUBBLE = v6905; +v6894.prototype = v6897; +v6894.__super__ = v299; +const v6907 = {}; +v6907[\\"2018-07-26\\"] = null; +v6894.services = v6907; +const v6908 = []; +v6908.push(\\"2018-07-26\\"); +v6894.apiVersions = v6908; +v6894.serviceIdentifier = \\"pinpointemail\\"; +v2.PinpointEmail = v6894; +var v6909; +var v6910 = v299; +var v6911 = v31; +v6909 = function () { if (v6910 !== v6911) { + return v6910.apply(this, arguments); +} }; +const v6912 = Object.create(v309); +v6912.constructor = v6909; +const v6913 = {}; +const v6914 = []; +var v6915; +var v6916 = v31; +var v6917 = v6912; +v6915 = function EVENTS_BUBBLE(event) { var baseClass = v6916.getPrototypeOf(v6917); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6918 = {}; +v6918.constructor = v6915; +v6915.prototype = v6918; +v6914.push(v6915); +v6913.apiCallAttempt = v6914; +const v6919 = []; +var v6920; +v6920 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6901.getPrototypeOf(v6917); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6921 = {}; +v6921.constructor = v6920; +v6920.prototype = v6921; +v6919.push(v6920); +v6913.apiCall = v6919; +v6912._events = v6913; +v6912.MONITOR_EVENTS_BUBBLE = v6915; +v6912.CALL_EVENTS_BUBBLE = v6920; +v6909.prototype = v6912; +v6909.__super__ = v299; +const v6922 = {}; +v6922[\\"2018-01-04\\"] = null; +v6909.services = v6922; +const v6923 = []; +v6923.push(\\"2018-01-04\\"); +v6909.apiVersions = v6923; +v6909.serviceIdentifier = \\"ram\\"; +v2.RAM = v6909; +var v6924; +var v6925 = v299; +var v6926 = v31; +v6924 = function () { if (v6925 !== v6926) { + return v6925.apply(this, arguments); +} }; +const v6927 = Object.create(v309); +v6927.constructor = v6924; +const v6928 = {}; +const v6929 = []; +var v6930; +var v6931 = v31; +var v6932 = v6927; +v6930 = function EVENTS_BUBBLE(event) { var baseClass = v6931.getPrototypeOf(v6932); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6933 = {}; +v6933.constructor = v6930; +v6930.prototype = v6933; +v6929.push(v6930); +v6928.apiCallAttempt = v6929; +const v6934 = []; +var v6935; +v6935 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6916.getPrototypeOf(v6932); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6936 = {}; +v6936.constructor = v6935; +v6935.prototype = v6936; +v6934.push(v6935); +v6928.apiCall = v6934; +v6927._events = v6928; +v6927.MONITOR_EVENTS_BUBBLE = v6930; +v6927.CALL_EVENTS_BUBBLE = v6935; +v6924.prototype = v6927; +v6924.__super__ = v299; +const v6937 = {}; +v6937[\\"2018-04-01\\"] = null; +v6924.services = v6937; +const v6938 = []; +v6938.push(\\"2018-04-01\\"); +v6924.apiVersions = v6938; +v6924.serviceIdentifier = \\"route53resolver\\"; +v2.Route53Resolver = v6924; +var v6939; +var v6940 = v299; +var v6941 = v31; +v6939 = function () { if (v6940 !== v6941) { + return v6940.apply(this, arguments); +} }; +const v6942 = Object.create(v309); +v6942.constructor = v6939; +const v6943 = {}; +const v6944 = []; +var v6945; +var v6946 = v31; +var v6947 = v6942; +v6945 = function EVENTS_BUBBLE(event) { var baseClass = v6946.getPrototypeOf(v6947); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6948 = {}; +v6948.constructor = v6945; +v6945.prototype = v6948; +v6944.push(v6945); +v6943.apiCallAttempt = v6944; +const v6949 = []; +var v6950; +v6950 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6931.getPrototypeOf(v6947); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6951 = {}; +v6951.constructor = v6950; +v6950.prototype = v6951; +v6949.push(v6950); +v6943.apiCall = v6949; +v6942._events = v6943; +v6942.MONITOR_EVENTS_BUBBLE = v6945; +v6942.CALL_EVENTS_BUBBLE = v6950; +v6939.prototype = v6942; +v6939.__super__ = v299; +const v6952 = {}; +v6952[\\"2018-09-05\\"] = null; +v6939.services = v6952; +const v6953 = []; +v6953.push(\\"2018-09-05\\"); +v6939.apiVersions = v6953; +v6939.serviceIdentifier = \\"pinpointsmsvoice\\"; +v2.PinpointSMSVoice = v6939; +var v6954; +var v6955 = v299; +var v6956 = v31; +v6954 = function () { if (v6955 !== v6956) { + return v6955.apply(this, arguments); +} }; +const v6957 = Object.create(v309); +v6957.constructor = v6954; +const v6958 = {}; +const v6959 = []; +var v6960; +var v6961 = v31; +var v6962 = v6957; +v6960 = function EVENTS_BUBBLE(event) { var baseClass = v6961.getPrototypeOf(v6962); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6963 = {}; +v6963.constructor = v6960; +v6960.prototype = v6963; +v6959.push(v6960); +v6958.apiCallAttempt = v6959; +const v6964 = []; +var v6965; +v6965 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6946.getPrototypeOf(v6962); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6966 = {}; +v6966.constructor = v6965; +v6965.prototype = v6966; +v6964.push(v6965); +v6958.apiCall = v6964; +v6957._events = v6958; +v6957.MONITOR_EVENTS_BUBBLE = v6960; +v6957.CALL_EVENTS_BUBBLE = v6965; +v6954.prototype = v6957; +v6954.__super__ = v299; +const v6967 = {}; +v6967[\\"2018-04-01\\"] = null; +v6954.services = v6967; +const v6968 = []; +v6968.push(\\"2018-04-01\\"); +v6954.apiVersions = v6968; +v6954.serviceIdentifier = \\"quicksight\\"; +v2.QuickSight = v6954; +var v6969; +var v6970 = v299; +var v6971 = v31; +v6969 = function () { if (v6970 !== v6971) { + return v6970.apply(this, arguments); +} }; +const v6972 = Object.create(v309); +v6972.constructor = v6969; +const v6973 = {}; +const v6974 = []; +var v6975; +var v6976 = v31; +var v6977 = v6972; +v6975 = function EVENTS_BUBBLE(event) { var baseClass = v6976.getPrototypeOf(v6977); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6978 = {}; +v6978.constructor = v6975; +v6975.prototype = v6978; +v6974.push(v6975); +v6973.apiCallAttempt = v6974; +const v6979 = []; +var v6980; +v6980 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6961.getPrototypeOf(v6977); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6981 = {}; +v6981.constructor = v6980; +v6980.prototype = v6981; +v6979.push(v6980); +v6973.apiCall = v6979; +v6972._events = v6973; +v6972.MONITOR_EVENTS_BUBBLE = v6975; +v6972.CALL_EVENTS_BUBBLE = v6980; +var v6982; +v6982 = function retryableError(error) { if (error.code === \\"BadRequestException\\" && error.message && error.message.match(/^Communications link failure/) && error.statusCode === 400) { + return true; +} +else { + var _super = v309.retryableError; + return _super.call(this, error); +} }; +const v6983 = {}; +v6983.constructor = v6982; +v6982.prototype = v6983; +v6972.retryableError = v6982; +v6969.prototype = v6972; +v6969.__super__ = v299; +const v6984 = {}; +v6984[\\"2018-08-01\\"] = null; +v6969.services = v6984; +const v6985 = []; +v6985.push(\\"2018-08-01\\"); +v6969.apiVersions = v6985; +v6969.serviceIdentifier = \\"rdsdataservice\\"; +v2.RDSDataService = v6969; +var v6986; +var v6987 = v299; +var v6988 = v31; +v6986 = function () { if (v6987 !== v6988) { + return v6987.apply(this, arguments); +} }; +const v6989 = Object.create(v309); +v6989.constructor = v6986; +const v6990 = {}; +const v6991 = []; +var v6992; +var v6993 = v31; +var v6994 = v6989; +v6992 = function EVENTS_BUBBLE(event) { var baseClass = v6993.getPrototypeOf(v6994); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v6995 = {}; +v6995.constructor = v6992; +v6992.prototype = v6995; +v6991.push(v6992); +v6990.apiCallAttempt = v6991; +const v6996 = []; +var v6997; +v6997 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6976.getPrototypeOf(v6994); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v6998 = {}; +v6998.constructor = v6997; +v6997.prototype = v6998; +v6996.push(v6997); +v6990.apiCall = v6996; +v6989._events = v6990; +v6989.MONITOR_EVENTS_BUBBLE = v6992; +v6989.CALL_EVENTS_BUBBLE = v6997; +v6986.prototype = v6989; +v6986.__super__ = v299; +const v6999 = {}; +v6999[\\"2017-07-25\\"] = null; +v6986.services = v6999; +const v7000 = []; +v7000.push(\\"2017-07-25\\"); +v6986.apiVersions = v7000; +v6986.serviceIdentifier = \\"amplify\\"; +v2.Amplify = v6986; +var v7001; +var v7002 = v299; +var v7003 = v31; +v7001 = function () { if (v7002 !== v7003) { + return v7002.apply(this, arguments); +} }; +const v7004 = Object.create(v309); +v7004.constructor = v7001; +const v7005 = {}; +const v7006 = []; +var v7007; +var v7008 = v31; +var v7009 = v7004; +v7007 = function EVENTS_BUBBLE(event) { var baseClass = v7008.getPrototypeOf(v7009); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7010 = {}; +v7010.constructor = v7007; +v7007.prototype = v7010; +v7006.push(v7007); +v7005.apiCallAttempt = v7006; +const v7011 = []; +var v7012; +v7012 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6993.getPrototypeOf(v7009); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7013 = {}; +v7013.constructor = v7012; +v7012.prototype = v7013; +v7011.push(v7012); +v7005.apiCall = v7011; +v7004._events = v7005; +v7004.MONITOR_EVENTS_BUBBLE = v7007; +v7004.CALL_EVENTS_BUBBLE = v7012; +v7001.prototype = v7004; +v7001.__super__ = v299; +const v7014 = {}; +v7014[\\"2018-11-09\\"] = null; +v7001.services = v7014; +const v7015 = []; +v7015.push(\\"2018-11-09\\"); +v7001.apiVersions = v7015; +v7001.serviceIdentifier = \\"datasync\\"; +v2.DataSync = v7001; +var v7016; +var v7017 = v299; +var v7018 = v31; +v7016 = function () { if (v7017 !== v7018) { + return v7017.apply(this, arguments); +} }; +const v7019 = Object.create(v309); +v7019.constructor = v7016; +const v7020 = {}; +const v7021 = []; +var v7022; +var v7023 = v31; +var v7024 = v7019; +v7022 = function EVENTS_BUBBLE(event) { var baseClass = v7023.getPrototypeOf(v7024); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7025 = {}; +v7025.constructor = v7022; +v7022.prototype = v7025; +v7021.push(v7022); +v7020.apiCallAttempt = v7021; +const v7026 = []; +var v7027; +v7027 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7008.getPrototypeOf(v7024); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7028 = {}; +v7028.constructor = v7027; +v7027.prototype = v7028; +v7026.push(v7027); +v7020.apiCall = v7026; +v7019._events = v7020; +v7019.MONITOR_EVENTS_BUBBLE = v7022; +v7019.CALL_EVENTS_BUBBLE = v7027; +v7016.prototype = v7019; +v7016.__super__ = v299; +const v7029 = {}; +v7029[\\"2018-06-29\\"] = null; +v7016.services = v7029; +const v7030 = []; +v7030.push(\\"2018-06-29\\"); +v7016.apiVersions = v7030; +v7016.serviceIdentifier = \\"robomaker\\"; +v2.RoboMaker = v7016; +var v7031; +var v7032 = v299; +var v7033 = v31; +v7031 = function () { if (v7032 !== v7033) { + return v7032.apply(this, arguments); +} }; +const v7034 = Object.create(v309); +v7034.constructor = v7031; +const v7035 = {}; +const v7036 = []; +var v7037; +var v7038 = v31; +var v7039 = v7034; +v7037 = function EVENTS_BUBBLE(event) { var baseClass = v7038.getPrototypeOf(v7039); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7040 = {}; +v7040.constructor = v7037; +v7037.prototype = v7040; +v7036.push(v7037); +v7035.apiCallAttempt = v7036; +const v7041 = []; +var v7042; +v7042 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7023.getPrototypeOf(v7039); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7043 = {}; +v7043.constructor = v7042; +v7042.prototype = v7043; +v7041.push(v7042); +v7035.apiCall = v7041; +v7034._events = v7035; +v7034.MONITOR_EVENTS_BUBBLE = v7037; +v7034.CALL_EVENTS_BUBBLE = v7042; +v7031.prototype = v7034; +v7031.__super__ = v299; +const v7044 = {}; +v7044[\\"2018-11-05\\"] = null; +v7031.services = v7044; +const v7045 = []; +v7045.push(\\"2018-11-05\\"); +v7031.apiVersions = v7045; +v7031.serviceIdentifier = \\"transfer\\"; +v2.Transfer = v7031; +var v7046; +var v7047 = v299; +var v7048 = v31; +v7046 = function () { if (v7047 !== v7048) { + return v7047.apply(this, arguments); +} }; +const v7049 = Object.create(v309); +v7049.constructor = v7046; +const v7050 = {}; +const v7051 = []; +var v7052; +var v7053 = v31; +var v7054 = v7049; +v7052 = function EVENTS_BUBBLE(event) { var baseClass = v7053.getPrototypeOf(v7054); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7055 = {}; +v7055.constructor = v7052; +v7052.prototype = v7055; +v7051.push(v7052); +v7050.apiCallAttempt = v7051; +const v7056 = []; +var v7057; +v7057 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7038.getPrototypeOf(v7054); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7058 = {}; +v7058.constructor = v7057; +v7057.prototype = v7058; +v7056.push(v7057); +v7050.apiCall = v7056; +v7049._events = v7050; +v7049.MONITOR_EVENTS_BUBBLE = v7052; +v7049.CALL_EVENTS_BUBBLE = v7057; +v7046.prototype = v7049; +v7046.__super__ = v299; +const v7059 = {}; +v7059[\\"2018-08-08\\"] = null; +v7046.services = v7059; +const v7060 = []; +v7060.push(\\"2018-08-08\\"); +v7046.apiVersions = v7060; +v7046.serviceIdentifier = \\"globalaccelerator\\"; +v2.GlobalAccelerator = v7046; +var v7061; +var v7062 = v299; +var v7063 = v31; +v7061 = function () { if (v7062 !== v7063) { + return v7062.apply(this, arguments); +} }; +const v7064 = Object.create(v309); +v7064.constructor = v7061; +const v7065 = {}; +const v7066 = []; +var v7067; +var v7068 = v31; +var v7069 = v7064; +v7067 = function EVENTS_BUBBLE(event) { var baseClass = v7068.getPrototypeOf(v7069); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7070 = {}; +v7070.constructor = v7067; +v7067.prototype = v7070; +v7066.push(v7067); +v7065.apiCallAttempt = v7066; +const v7071 = []; +var v7072; +v7072 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7053.getPrototypeOf(v7069); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7073 = {}; +v7073.constructor = v7072; +v7072.prototype = v7073; +v7071.push(v7072); +v7065.apiCall = v7071; +v7064._events = v7065; +v7064.MONITOR_EVENTS_BUBBLE = v7067; +v7064.CALL_EVENTS_BUBBLE = v7072; +v7061.prototype = v7064; +v7061.__super__ = v299; +const v7074 = {}; +v7074[\\"2018-10-30\\"] = null; +v7061.services = v7074; +const v7075 = []; +v7075.push(\\"2018-10-30\\"); +v7061.apiVersions = v7075; +v7061.serviceIdentifier = \\"comprehendmedical\\"; +v2.ComprehendMedical = v7061; +var v7076; +var v7077 = v299; +var v7078 = v31; +v7076 = function () { if (v7077 !== v7078) { + return v7077.apply(this, arguments); +} }; +const v7079 = Object.create(v309); +v7079.constructor = v7076; +const v7080 = {}; +const v7081 = []; +var v7082; +var v7083 = v31; +var v7084 = v7079; +v7082 = function EVENTS_BUBBLE(event) { var baseClass = v7083.getPrototypeOf(v7084); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7085 = {}; +v7085.constructor = v7082; +v7082.prototype = v7085; +v7081.push(v7082); +v7080.apiCallAttempt = v7081; +const v7086 = []; +var v7087; +v7087 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7068.getPrototypeOf(v7084); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7088 = {}; +v7088.constructor = v7087; +v7087.prototype = v7088; +v7086.push(v7087); +v7080.apiCall = v7086; +v7079._events = v7080; +v7079.MONITOR_EVENTS_BUBBLE = v7082; +v7079.CALL_EVENTS_BUBBLE = v7087; +v7076.prototype = v7079; +v7076.__super__ = v299; +const v7089 = {}; +v7089[\\"2018-05-23\\"] = null; +v7076.services = v7089; +const v7090 = []; +v7090.push(\\"2018-05-23\\"); +v7076.apiVersions = v7090; +v7076.serviceIdentifier = \\"kinesisanalyticsv2\\"; +v2.KinesisAnalyticsV2 = v7076; +var v7091; +var v7092 = v299; +var v7093 = v31; +v7091 = function () { if (v7092 !== v7093) { + return v7092.apply(this, arguments); +} }; +const v7094 = Object.create(v309); +v7094.constructor = v7091; +const v7095 = {}; +const v7096 = []; +var v7097; +var v7098 = v31; +var v7099 = v7094; +v7097 = function EVENTS_BUBBLE(event) { var baseClass = v7098.getPrototypeOf(v7099); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7100 = {}; +v7100.constructor = v7097; +v7097.prototype = v7100; +v7096.push(v7097); +v7095.apiCallAttempt = v7096; +const v7101 = []; +var v7102; +v7102 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7083.getPrototypeOf(v7099); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7103 = {}; +v7103.constructor = v7102; +v7102.prototype = v7103; +v7101.push(v7102); +v7095.apiCall = v7101; +v7094._events = v7095; +v7094.MONITOR_EVENTS_BUBBLE = v7097; +v7094.CALL_EVENTS_BUBBLE = v7102; +v7091.prototype = v7094; +v7091.__super__ = v299; +const v7104 = {}; +v7104[\\"2018-11-14\\"] = null; +v7091.services = v7104; +const v7105 = []; +v7105.push(\\"2018-11-14\\"); +v7091.apiVersions = v7105; +v7091.serviceIdentifier = \\"mediaconnect\\"; +v2.MediaConnect = v7091; +var v7106; +var v7107 = v299; +var v7108 = v31; +v7106 = function () { if (v7107 !== v7108) { + return v7107.apply(this, arguments); +} }; +const v7109 = Object.create(v309); +v7109.constructor = v7106; +const v7110 = {}; +const v7111 = []; +var v7112; +var v7113 = v31; +var v7114 = v7109; +v7112 = function EVENTS_BUBBLE(event) { var baseClass = v7113.getPrototypeOf(v7114); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7115 = {}; +v7115.constructor = v7112; +v7112.prototype = v7115; +v7111.push(v7112); +v7110.apiCallAttempt = v7111; +const v7116 = []; +var v7117; +v7117 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7098.getPrototypeOf(v7114); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7118 = {}; +v7118.constructor = v7117; +v7117.prototype = v7118; +v7116.push(v7117); +v7110.apiCall = v7116; +v7109._events = v7110; +v7109.MONITOR_EVENTS_BUBBLE = v7112; +v7109.CALL_EVENTS_BUBBLE = v7117; +v7106.prototype = v7109; +v7106.__super__ = v299; +const v7119 = {}; +v7119[\\"2018-03-01\\"] = null; +v7106.services = v7119; +const v7120 = []; +v7120.push(\\"2018-03-01\\"); +v7106.apiVersions = v7120; +v7106.serviceIdentifier = \\"fsx\\"; +v2.FSx = v7106; +var v7121; +var v7122 = v299; +var v7123 = v31; +v7121 = function () { if (v7122 !== v7123) { + return v7122.apply(this, arguments); +} }; +const v7124 = Object.create(v309); +v7124.constructor = v7121; +const v7125 = {}; +const v7126 = []; +var v7127; +var v7128 = v31; +var v7129 = v7124; +v7127 = function EVENTS_BUBBLE(event) { var baseClass = v7128.getPrototypeOf(v7129); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7130 = {}; +v7130.constructor = v7127; +v7127.prototype = v7130; +v7126.push(v7127); +v7125.apiCallAttempt = v7126; +const v7131 = []; +var v7132; +v7132 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7113.getPrototypeOf(v7129); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7133 = {}; +v7133.constructor = v7132; +v7132.prototype = v7133; +v7131.push(v7132); +v7125.apiCall = v7131; +v7124._events = v7125; +v7124.MONITOR_EVENTS_BUBBLE = v7127; +v7124.CALL_EVENTS_BUBBLE = v7132; +v7121.prototype = v7124; +v7121.__super__ = v299; +const v7134 = {}; +v7134[\\"2018-10-26\\"] = null; +v7121.services = v7134; +const v7135 = []; +v7135.push(\\"2018-10-26\\"); +v7121.apiVersions = v7135; +v7121.serviceIdentifier = \\"securityhub\\"; +v2.SecurityHub = v7121; +var v7136; +var v7137 = v299; +var v7138 = v31; +v7136 = function () { if (v7137 !== v7138) { + return v7137.apply(this, arguments); +} }; +const v7139 = Object.create(v309); +v7139.constructor = v7136; +const v7140 = {}; +const v7141 = []; +var v7142; +var v7143 = v31; +var v7144 = v7139; +v7142 = function EVENTS_BUBBLE(event) { var baseClass = v7143.getPrototypeOf(v7144); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7145 = {}; +v7145.constructor = v7142; +v7142.prototype = v7145; +v7141.push(v7142); +v7140.apiCallAttempt = v7141; +const v7146 = []; +var v7147; +v7147 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7128.getPrototypeOf(v7144); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7148 = {}; +v7148.constructor = v7147; +v7147.prototype = v7148; +v7146.push(v7147); +v7140.apiCall = v7146; +v7139._events = v7140; +v7139.MONITOR_EVENTS_BUBBLE = v7142; +v7139.CALL_EVENTS_BUBBLE = v7147; +v7136.prototype = v7139; +v7136.__super__ = v299; +const v7149 = {}; +v7149[\\"2018-10-01\\"] = null; +v7149[\\"2018-10-01*\\"] = null; +v7149[\\"2019-01-25\\"] = null; +v7136.services = v7149; +const v7150 = []; +v7150.push(\\"2018-10-01\\", \\"2018-10-01*\\", \\"2019-01-25\\"); +v7136.apiVersions = v7150; +v7136.serviceIdentifier = \\"appmesh\\"; +v2.AppMesh = v7136; +var v7151; +var v7152 = v299; +var v7153 = v31; +v7151 = function () { if (v7152 !== v7153) { + return v7152.apply(this, arguments); +} }; +const v7154 = Object.create(v309); +v7154.constructor = v7151; +const v7155 = {}; +const v7156 = []; +var v7157; +var v7158 = v31; +var v7159 = v7154; +v7157 = function EVENTS_BUBBLE(event) { var baseClass = v7158.getPrototypeOf(v7159); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7160 = {}; +v7160.constructor = v7157; +v7157.prototype = v7160; +v7156.push(v7157); +v7155.apiCallAttempt = v7156; +const v7161 = []; +var v7162; +v7162 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7143.getPrototypeOf(v7159); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7163 = {}; +v7163.constructor = v7162; +v7162.prototype = v7163; +v7161.push(v7162); +v7155.apiCall = v7161; +v7154._events = v7155; +v7154.MONITOR_EVENTS_BUBBLE = v7157; +v7154.CALL_EVENTS_BUBBLE = v7162; +v7151.prototype = v7154; +v7151.__super__ = v299; +const v7164 = {}; +v7164[\\"2018-08-01\\"] = null; +v7151.services = v7164; +const v7165 = []; +v7165.push(\\"2018-08-01\\"); +v7151.apiVersions = v7165; +v7151.serviceIdentifier = \\"licensemanager\\"; +v2.LicenseManager = v7151; +var v7166; +var v7167 = v299; +var v7168 = v31; +v7166 = function () { if (v7167 !== v7168) { + return v7167.apply(this, arguments); +} }; +const v7169 = Object.create(v309); +v7169.constructor = v7166; +const v7170 = {}; +const v7171 = []; +var v7172; +var v7173 = v31; +var v7174 = v7169; +v7172 = function EVENTS_BUBBLE(event) { var baseClass = v7173.getPrototypeOf(v7174); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7175 = {}; +v7175.constructor = v7172; +v7172.prototype = v7175; +v7171.push(v7172); +v7170.apiCallAttempt = v7171; +const v7176 = []; +var v7177; +v7177 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7158.getPrototypeOf(v7174); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7178 = {}; +v7178.constructor = v7177; +v7177.prototype = v7178; +v7176.push(v7177); +v7170.apiCall = v7176; +v7169._events = v7170; +v7169.MONITOR_EVENTS_BUBBLE = v7172; +v7169.CALL_EVENTS_BUBBLE = v7177; +v7166.prototype = v7169; +v7166.__super__ = v299; +const v7179 = {}; +v7179[\\"2018-11-14\\"] = null; +v7166.services = v7179; +const v7180 = []; +v7180.push(\\"2018-11-14\\"); +v7166.apiVersions = v7180; +v7166.serviceIdentifier = \\"kafka\\"; +v2.Kafka = v7166; +var v7181; +var v7182 = v299; +var v7183 = v31; +v7181 = function () { if (v7182 !== v7183) { + return v7182.apply(this, arguments); +} }; +const v7184 = Object.create(v309); +v7184.constructor = v7181; +const v7185 = {}; +const v7186 = []; +var v7187; +var v7188 = v31; +var v7189 = v7184; +v7187 = function EVENTS_BUBBLE(event) { var baseClass = v7188.getPrototypeOf(v7189); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7190 = {}; +v7190.constructor = v7187; +v7187.prototype = v7190; +v7186.push(v7187); +v7185.apiCallAttempt = v7186; +const v7191 = []; +var v7192; +v7192 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7173.getPrototypeOf(v7189); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7193 = {}; +v7193.constructor = v7192; +v7192.prototype = v7193; +v7191.push(v7192); +v7185.apiCall = v7191; +v7184._events = v7185; +v7184.MONITOR_EVENTS_BUBBLE = v7187; +v7184.CALL_EVENTS_BUBBLE = v7192; +v7181.prototype = v7184; +v7181.__super__ = v299; +const v7194 = {}; +v7194[\\"2018-11-29\\"] = null; +v7181.services = v7194; +const v7195 = []; +v7195.push(\\"2018-11-29\\"); +v7181.apiVersions = v7195; +v7181.serviceIdentifier = \\"apigatewaymanagementapi\\"; +v2.ApiGatewayManagementApi = v7181; +var v7196; +var v7197 = v299; +var v7198 = v31; +v7196 = function () { if (v7197 !== v7198) { + return v7197.apply(this, arguments); +} }; +const v7199 = Object.create(v309); +v7199.constructor = v7196; +const v7200 = {}; +const v7201 = []; +var v7202; +var v7203 = v31; +var v7204 = v7199; +v7202 = function EVENTS_BUBBLE(event) { var baseClass = v7203.getPrototypeOf(v7204); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7205 = {}; +v7205.constructor = v7202; +v7202.prototype = v7205; +v7201.push(v7202); +v7200.apiCallAttempt = v7201; +const v7206 = []; +var v7207; +v7207 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7188.getPrototypeOf(v7204); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7208 = {}; +v7208.constructor = v7207; +v7207.prototype = v7208; +v7206.push(v7207); +v7200.apiCall = v7206; +v7199._events = v7200; +v7199.MONITOR_EVENTS_BUBBLE = v7202; +v7199.CALL_EVENTS_BUBBLE = v7207; +v7196.prototype = v7199; +v7196.__super__ = v299; +const v7209 = {}; +v7209[\\"2018-11-29\\"] = null; +v7196.services = v7209; +const v7210 = []; +v7210.push(\\"2018-11-29\\"); +v7196.apiVersions = v7210; +v7196.serviceIdentifier = \\"apigatewayv2\\"; +v2.ApiGatewayV2 = v7196; +var v7211; +var v7212 = v299; +var v7213 = v31; +v7211 = function () { if (v7212 !== v7213) { + return v7212.apply(this, arguments); +} }; +const v7214 = Object.create(v309); +v7214.constructor = v7211; +const v7215 = {}; +const v7216 = []; +var v7217; +var v7218 = v31; +var v7219 = v7214; +v7217 = function EVENTS_BUBBLE(event) { var baseClass = v7218.getPrototypeOf(v7219); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7220 = {}; +v7220.constructor = v7217; +v7217.prototype = v7220; +v7216.push(v7217); +v7215.apiCallAttempt = v7216; +const v7221 = []; +var v7222; +v7222 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7203.getPrototypeOf(v7219); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7223 = {}; +v7223.constructor = v7222; +v7222.prototype = v7223; +v7221.push(v7222); +v7215.apiCall = v7221; +v7214._events = v7215; +v7214.MONITOR_EVENTS_BUBBLE = v7217; +v7214.CALL_EVENTS_BUBBLE = v7222; +var v7224; +const v7226 = []; +v7226.push(\\"createDBCluster\\", \\"copyDBClusterSnapshot\\"); +var v7225 = v7226; +var v7227 = v5419; +var v7228 = v7226; +v7224 = function setupRequestListeners(request) { if (v7225.indexOf(request.operation) !== -1 && this.config.params && this.config.params.SourceRegion && request.params && !request.params.SourceRegion) { + request.params.SourceRegion = this.config.params.SourceRegion; +} v7227.setupRequestListeners(this, request, v7228); }; +const v7229 = {}; +v7229.constructor = v7224; +v7224.prototype = v7229; +v7214.setupRequestListeners = v7224; +v7211.prototype = v7214; +v7211.__super__ = v299; +const v7230 = {}; +v7230[\\"2014-10-31\\"] = null; +v7211.services = v7230; +const v7231 = []; +v7231.push(\\"2014-10-31\\"); +v7211.apiVersions = v7231; +v7211.serviceIdentifier = \\"docdb\\"; +v2.DocDB = v7211; +var v7232; +var v7233 = v299; +var v7234 = v31; +v7232 = function () { if (v7233 !== v7234) { + return v7233.apply(this, arguments); +} }; +const v7235 = Object.create(v309); +v7235.constructor = v7232; +const v7236 = {}; +const v7237 = []; +var v7238; +var v7239 = v31; +var v7240 = v7235; +v7238 = function EVENTS_BUBBLE(event) { var baseClass = v7239.getPrototypeOf(v7240); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7241 = {}; +v7241.constructor = v7238; +v7238.prototype = v7241; +v7237.push(v7238); +v7236.apiCallAttempt = v7237; +const v7242 = []; +var v7243; +v7243 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7218.getPrototypeOf(v7240); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7244 = {}; +v7244.constructor = v7243; +v7243.prototype = v7244; +v7242.push(v7243); +v7236.apiCall = v7242; +v7235._events = v7236; +v7235.MONITOR_EVENTS_BUBBLE = v7238; +v7235.CALL_EVENTS_BUBBLE = v7243; +v7232.prototype = v7235; +v7232.__super__ = v299; +const v7245 = {}; +v7245[\\"2018-11-15\\"] = null; +v7232.services = v7245; +const v7246 = []; +v7246.push(\\"2018-11-15\\"); +v7232.apiVersions = v7246; +v7232.serviceIdentifier = \\"backup\\"; +v2.Backup = v7232; +var v7247; +var v7248 = v299; +var v7249 = v31; +v7247 = function () { if (v7248 !== v7249) { + return v7248.apply(this, arguments); +} }; +const v7250 = Object.create(v309); +v7250.constructor = v7247; +const v7251 = {}; +const v7252 = []; +var v7253; +var v7254 = v31; +var v7255 = v7250; +v7253 = function EVENTS_BUBBLE(event) { var baseClass = v7254.getPrototypeOf(v7255); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7256 = {}; +v7256.constructor = v7253; +v7253.prototype = v7256; +v7252.push(v7253); +v7251.apiCallAttempt = v7252; +const v7257 = []; +var v7258; +v7258 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7239.getPrototypeOf(v7255); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7259 = {}; +v7259.constructor = v7258; +v7258.prototype = v7259; +v7257.push(v7258); +v7251.apiCall = v7257; +v7250._events = v7251; +v7250.MONITOR_EVENTS_BUBBLE = v7253; +v7250.CALL_EVENTS_BUBBLE = v7258; +v7247.prototype = v7250; +v7247.__super__ = v299; +const v7260 = {}; +v7260[\\"2018-09-25\\"] = null; +v7247.services = v7260; +const v7261 = []; +v7261.push(\\"2018-09-25\\"); +v7247.apiVersions = v7261; +v7247.serviceIdentifier = \\"worklink\\"; +v2.WorkLink = v7247; +var v7262; +var v7263 = v299; +var v7264 = v31; +v7262 = function () { if (v7263 !== v7264) { + return v7263.apply(this, arguments); +} }; +const v7265 = Object.create(v309); +v7265.constructor = v7262; +const v7266 = {}; +const v7267 = []; +var v7268; +var v7269 = v31; +var v7270 = v7265; +v7268 = function EVENTS_BUBBLE(event) { var baseClass = v7269.getPrototypeOf(v7270); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7271 = {}; +v7271.constructor = v7268; +v7268.prototype = v7271; +v7267.push(v7268); +v7266.apiCallAttempt = v7267; +const v7272 = []; +var v7273; +v7273 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7254.getPrototypeOf(v7270); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7274 = {}; +v7274.constructor = v7273; +v7273.prototype = v7274; +v7272.push(v7273); +v7266.apiCall = v7272; +v7265._events = v7266; +v7265.MONITOR_EVENTS_BUBBLE = v7268; +v7265.CALL_EVENTS_BUBBLE = v7273; +v7262.prototype = v7265; +v7262.__super__ = v299; +const v7275 = {}; +v7275[\\"2018-06-27\\"] = null; +v7262.services = v7275; +const v7276 = []; +v7276.push(\\"2018-06-27\\"); +v7262.apiVersions = v7276; +v7262.serviceIdentifier = \\"textract\\"; +v2.Textract = v7262; +var v7277; +var v7278 = v299; +var v7279 = v31; +v7277 = function () { if (v7278 !== v7279) { + return v7278.apply(this, arguments); +} }; +const v7280 = Object.create(v309); +v7280.constructor = v7277; +const v7281 = {}; +const v7282 = []; +var v7283; +var v7284 = v31; +var v7285 = v7280; +v7283 = function EVENTS_BUBBLE(event) { var baseClass = v7284.getPrototypeOf(v7285); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7286 = {}; +v7286.constructor = v7283; +v7283.prototype = v7286; +v7282.push(v7283); +v7281.apiCallAttempt = v7282; +const v7287 = []; +var v7288; +v7288 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7269.getPrototypeOf(v7285); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7289 = {}; +v7289.constructor = v7288; +v7288.prototype = v7289; +v7287.push(v7288); +v7281.apiCall = v7287; +v7280._events = v7281; +v7280.MONITOR_EVENTS_BUBBLE = v7283; +v7280.CALL_EVENTS_BUBBLE = v7288; +v7277.prototype = v7280; +v7277.__super__ = v299; +const v7290 = {}; +v7290[\\"2018-09-24\\"] = null; +v7277.services = v7290; +const v7291 = []; +v7291.push(\\"2018-09-24\\"); +v7277.apiVersions = v7291; +v7277.serviceIdentifier = \\"managedblockchain\\"; +v2.ManagedBlockchain = v7277; +var v7292; +var v7293 = v299; +var v7294 = v31; +v7292 = function () { if (v7293 !== v7294) { + return v7293.apply(this, arguments); +} }; +const v7295 = Object.create(v309); +v7295.constructor = v7292; +const v7296 = {}; +const v7297 = []; +var v7298; +var v7299 = v31; +var v7300 = v7295; +v7298 = function EVENTS_BUBBLE(event) { var baseClass = v7299.getPrototypeOf(v7300); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7301 = {}; +v7301.constructor = v7298; +v7298.prototype = v7301; +v7297.push(v7298); +v7296.apiCallAttempt = v7297; +const v7302 = []; +var v7303; +v7303 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7284.getPrototypeOf(v7300); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7304 = {}; +v7304.constructor = v7303; +v7303.prototype = v7304; +v7302.push(v7303); +v7296.apiCall = v7302; +v7295._events = v7296; +v7295.MONITOR_EVENTS_BUBBLE = v7298; +v7295.CALL_EVENTS_BUBBLE = v7303; +v7292.prototype = v7295; +v7292.__super__ = v299; +const v7305 = {}; +v7305[\\"2018-11-07\\"] = null; +v7292.services = v7305; +const v7306 = []; +v7306.push(\\"2018-11-07\\"); +v7292.apiVersions = v7306; +v7292.serviceIdentifier = \\"mediapackagevod\\"; +v2.MediaPackageVod = v7292; +var v7307; +var v7308 = v299; +var v7309 = v31; +v7307 = function () { if (v7308 !== v7309) { + return v7308.apply(this, arguments); +} }; +const v7310 = Object.create(v309); +v7310.constructor = v7307; +const v7311 = {}; +const v7312 = []; +var v7313; +var v7314 = v31; +var v7315 = v7310; +v7313 = function EVENTS_BUBBLE(event) { var baseClass = v7314.getPrototypeOf(v7315); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7316 = {}; +v7316.constructor = v7313; +v7313.prototype = v7316; +v7312.push(v7313); +v7311.apiCallAttempt = v7312; +const v7317 = []; +var v7318; +v7318 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7299.getPrototypeOf(v7315); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7319 = {}; +v7319.constructor = v7318; +v7318.prototype = v7319; +v7317.push(v7318); +v7311.apiCall = v7317; +v7310._events = v7311; +v7310.MONITOR_EVENTS_BUBBLE = v7313; +v7310.CALL_EVENTS_BUBBLE = v7318; +v7307.prototype = v7310; +v7307.__super__ = v299; +const v7320 = {}; +v7320[\\"2019-05-23\\"] = null; +v7307.services = v7320; +const v7321 = []; +v7321.push(\\"2019-05-23\\"); +v7307.apiVersions = v7321; +v7307.serviceIdentifier = \\"groundstation\\"; +v2.GroundStation = v7307; +var v7322; +var v7323 = v299; +var v7324 = v31; +v7322 = function () { if (v7323 !== v7324) { + return v7323.apply(this, arguments); +} }; +const v7325 = Object.create(v309); +v7325.constructor = v7322; +const v7326 = {}; +const v7327 = []; +var v7328; +var v7329 = v31; +var v7330 = v7325; +v7328 = function EVENTS_BUBBLE(event) { var baseClass = v7329.getPrototypeOf(v7330); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7331 = {}; +v7331.constructor = v7328; +v7328.prototype = v7331; +v7327.push(v7328); +v7326.apiCallAttempt = v7327; +const v7332 = []; +var v7333; +v7333 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7314.getPrototypeOf(v7330); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7334 = {}; +v7334.constructor = v7333; +v7333.prototype = v7334; +v7332.push(v7333); +v7326.apiCall = v7332; +v7325._events = v7326; +v7325.MONITOR_EVENTS_BUBBLE = v7328; +v7325.CALL_EVENTS_BUBBLE = v7333; +v7322.prototype = v7325; +v7322.__super__ = v299; +const v7335 = {}; +v7335[\\"2018-09-06\\"] = null; +v7322.services = v7335; +const v7336 = []; +v7336.push(\\"2018-09-06\\"); +v7322.apiVersions = v7336; +v7322.serviceIdentifier = \\"iotthingsgraph\\"; +v2.IoTThingsGraph = v7322; +var v7337; +var v7338 = v299; +var v7339 = v31; +v7337 = function () { if (v7338 !== v7339) { + return v7338.apply(this, arguments); +} }; +const v7340 = Object.create(v309); +v7340.constructor = v7337; +const v7341 = {}; +const v7342 = []; +var v7343; +var v7344 = v31; +var v7345 = v7340; +v7343 = function EVENTS_BUBBLE(event) { var baseClass = v7344.getPrototypeOf(v7345); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7346 = {}; +v7346.constructor = v7343; +v7343.prototype = v7346; +v7342.push(v7343); +v7341.apiCallAttempt = v7342; +const v7347 = []; +var v7348; +v7348 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7329.getPrototypeOf(v7345); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7349 = {}; +v7349.constructor = v7348; +v7348.prototype = v7349; +v7347.push(v7348); +v7341.apiCall = v7347; +v7340._events = v7341; +v7340.MONITOR_EVENTS_BUBBLE = v7343; +v7340.CALL_EVENTS_BUBBLE = v7348; +v7337.prototype = v7340; +v7337.__super__ = v299; +const v7350 = {}; +v7350[\\"2018-07-27\\"] = null; +v7337.services = v7350; +const v7351 = []; +v7351.push(\\"2018-07-27\\"); +v7337.apiVersions = v7351; +v7337.serviceIdentifier = \\"iotevents\\"; +v2.IoTEvents = v7337; +var v7352; +var v7353 = v299; +var v7354 = v31; +v7352 = function () { if (v7353 !== v7354) { + return v7353.apply(this, arguments); +} }; +const v7355 = Object.create(v309); +v7355.constructor = v7352; +const v7356 = {}; +const v7357 = []; +var v7358; +var v7359 = v31; +var v7360 = v7355; +v7358 = function EVENTS_BUBBLE(event) { var baseClass = v7359.getPrototypeOf(v7360); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7361 = {}; +v7361.constructor = v7358; +v7358.prototype = v7361; +v7357.push(v7358); +v7356.apiCallAttempt = v7357; +const v7362 = []; +var v7363; +v7363 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7344.getPrototypeOf(v7360); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7364 = {}; +v7364.constructor = v7363; +v7363.prototype = v7364; +v7362.push(v7363); +v7356.apiCall = v7362; +v7355._events = v7356; +v7355.MONITOR_EVENTS_BUBBLE = v7358; +v7355.CALL_EVENTS_BUBBLE = v7363; +v7352.prototype = v7355; +v7352.__super__ = v299; +const v7365 = {}; +v7365[\\"2018-10-23\\"] = null; +v7352.services = v7365; +const v7366 = []; +v7366.push(\\"2018-10-23\\"); +v7352.apiVersions = v7366; +v7352.serviceIdentifier = \\"ioteventsdata\\"; +v2.IoTEventsData = v7352; +var v7367; +var v7368 = v299; +var v7369 = v31; +v7367 = function () { if (v7368 !== v7369) { + return v7368.apply(this, arguments); +} }; +const v7370 = Object.create(v309); +v7370.constructor = v7367; +const v7371 = {}; +const v7372 = []; +var v7373; +var v7374 = v31; +var v7375 = v7370; +v7373 = function EVENTS_BUBBLE(event) { var baseClass = v7374.getPrototypeOf(v7375); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7376 = {}; +v7376.constructor = v7373; +v7373.prototype = v7376; +v7372.push(v7373); +v7371.apiCallAttempt = v7372; +const v7377 = []; +var v7378; +v7378 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7359.getPrototypeOf(v7375); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7379 = {}; +v7379.constructor = v7378; +v7378.prototype = v7379; +v7377.push(v7378); +v7371.apiCall = v7377; +v7370._events = v7371; +v7370.MONITOR_EVENTS_BUBBLE = v7373; +v7370.CALL_EVENTS_BUBBLE = v7378; +v7367.prototype = v7370; +v7367.__super__ = v299; +const v7380 = {}; +v7380[\\"2018-05-22\\"] = null; +v7367.services = v7380; +const v7381 = []; +v7381.push(\\"2018-05-22\\"); +v7367.apiVersions = v7381; +v7367.serviceIdentifier = \\"personalize\\"; +v2.Personalize = v7367; +var v7382; +var v7383 = v299; +var v7384 = v31; +v7382 = function () { if (v7383 !== v7384) { + return v7383.apply(this, arguments); +} }; +const v7385 = Object.create(v309); +v7385.constructor = v7382; +const v7386 = {}; +const v7387 = []; +var v7388; +var v7389 = v31; +var v7390 = v7385; +v7388 = function EVENTS_BUBBLE(event) { var baseClass = v7389.getPrototypeOf(v7390); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7391 = {}; +v7391.constructor = v7388; +v7388.prototype = v7391; +v7387.push(v7388); +v7386.apiCallAttempt = v7387; +const v7392 = []; +var v7393; +v7393 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7374.getPrototypeOf(v7390); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7394 = {}; +v7394.constructor = v7393; +v7393.prototype = v7394; +v7392.push(v7393); +v7386.apiCall = v7392; +v7385._events = v7386; +v7385.MONITOR_EVENTS_BUBBLE = v7388; +v7385.CALL_EVENTS_BUBBLE = v7393; +v7382.prototype = v7385; +v7382.__super__ = v299; +const v7395 = {}; +v7395[\\"2018-03-22\\"] = null; +v7382.services = v7395; +const v7396 = []; +v7396.push(\\"2018-03-22\\"); +v7382.apiVersions = v7396; +v7382.serviceIdentifier = \\"personalizeevents\\"; +v2.PersonalizeEvents = v7382; +var v7397; +var v7398 = v299; +var v7399 = v31; +v7397 = function () { if (v7398 !== v7399) { + return v7398.apply(this, arguments); +} }; +const v7400 = Object.create(v309); +v7400.constructor = v7397; +const v7401 = {}; +const v7402 = []; +var v7403; +var v7404 = v31; +var v7405 = v7400; +v7403 = function EVENTS_BUBBLE(event) { var baseClass = v7404.getPrototypeOf(v7405); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7406 = {}; +v7406.constructor = v7403; +v7403.prototype = v7406; +v7402.push(v7403); +v7401.apiCallAttempt = v7402; +const v7407 = []; +var v7408; +v7408 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7389.getPrototypeOf(v7405); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7409 = {}; +v7409.constructor = v7408; +v7408.prototype = v7409; +v7407.push(v7408); +v7401.apiCall = v7407; +v7400._events = v7401; +v7400.MONITOR_EVENTS_BUBBLE = v7403; +v7400.CALL_EVENTS_BUBBLE = v7408; +v7397.prototype = v7400; +v7397.__super__ = v299; +const v7410 = {}; +v7410[\\"2018-05-22\\"] = null; +v7397.services = v7410; +const v7411 = []; +v7411.push(\\"2018-05-22\\"); +v7397.apiVersions = v7411; +v7397.serviceIdentifier = \\"personalizeruntime\\"; +v2.PersonalizeRuntime = v7397; +var v7412; +var v7413 = v299; +var v7414 = v31; +v7412 = function () { if (v7413 !== v7414) { + return v7413.apply(this, arguments); +} }; +const v7415 = Object.create(v309); +v7415.constructor = v7412; +const v7416 = {}; +const v7417 = []; +var v7418; +var v7419 = v31; +var v7420 = v7415; +v7418 = function EVENTS_BUBBLE(event) { var baseClass = v7419.getPrototypeOf(v7420); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7421 = {}; +v7421.constructor = v7418; +v7418.prototype = v7421; +v7417.push(v7418); +v7416.apiCallAttempt = v7417; +const v7422 = []; +var v7423; +v7423 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7404.getPrototypeOf(v7420); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7424 = {}; +v7424.constructor = v7423; +v7423.prototype = v7424; +v7422.push(v7423); +v7416.apiCall = v7422; +v7415._events = v7416; +v7415.MONITOR_EVENTS_BUBBLE = v7418; +v7415.CALL_EVENTS_BUBBLE = v7423; +v7412.prototype = v7415; +v7412.__super__ = v299; +const v7425 = {}; +v7425[\\"2018-11-25\\"] = null; +v7412.services = v7425; +const v7426 = []; +v7426.push(\\"2018-11-25\\"); +v7412.apiVersions = v7426; +v7412.serviceIdentifier = \\"applicationinsights\\"; +v2.ApplicationInsights = v7412; +var v7427; +var v7428 = v299; +var v7429 = v31; +v7427 = function () { if (v7428 !== v7429) { + return v7428.apply(this, arguments); +} }; +const v7430 = Object.create(v309); +v7430.constructor = v7427; +const v7431 = {}; +const v7432 = []; +var v7433; +var v7434 = v31; +var v7435 = v7430; +v7433 = function EVENTS_BUBBLE(event) { var baseClass = v7434.getPrototypeOf(v7435); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7436 = {}; +v7436.constructor = v7433; +v7433.prototype = v7436; +v7432.push(v7433); +v7431.apiCallAttempt = v7432; +const v7437 = []; +var v7438; +v7438 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7419.getPrototypeOf(v7435); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7439 = {}; +v7439.constructor = v7438; +v7438.prototype = v7439; +v7437.push(v7438); +v7431.apiCall = v7437; +v7430._events = v7431; +v7430.MONITOR_EVENTS_BUBBLE = v7433; +v7430.CALL_EVENTS_BUBBLE = v7438; +v7427.prototype = v7430; +v7427.__super__ = v299; +const v7440 = {}; +v7440[\\"2019-06-24\\"] = null; +v7427.services = v7440; +const v7441 = []; +v7441.push(\\"2019-06-24\\"); +v7427.apiVersions = v7441; +v7427.serviceIdentifier = \\"servicequotas\\"; +v2.ServiceQuotas = v7427; +var v7442; +var v7443 = v299; +var v7444 = v31; +v7442 = function () { if (v7443 !== v7444) { + return v7443.apply(this, arguments); +} }; +const v7445 = Object.create(v309); +v7445.constructor = v7442; +const v7446 = {}; +const v7447 = []; +var v7448; +var v7449 = v31; +var v7450 = v7445; +v7448 = function EVENTS_BUBBLE(event) { var baseClass = v7449.getPrototypeOf(v7450); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7451 = {}; +v7451.constructor = v7448; +v7448.prototype = v7451; +v7447.push(v7448); +v7446.apiCallAttempt = v7447; +const v7452 = []; +var v7453; +v7453 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7434.getPrototypeOf(v7450); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7454 = {}; +v7454.constructor = v7453; +v7453.prototype = v7454; +v7452.push(v7453); +v7446.apiCall = v7452; +v7445._events = v7446; +v7445.MONITOR_EVENTS_BUBBLE = v7448; +v7445.CALL_EVENTS_BUBBLE = v7453; +v7442.prototype = v7445; +v7442.__super__ = v299; +const v7455 = {}; +v7455[\\"2018-04-02\\"] = null; +v7442.services = v7455; +const v7456 = []; +v7456.push(\\"2018-04-02\\"); +v7442.apiVersions = v7456; +v7442.serviceIdentifier = \\"ec2instanceconnect\\"; +v2.EC2InstanceConnect = v7442; +var v7457; +var v7458 = v299; +var v7459 = v31; +v7457 = function () { if (v7458 !== v7459) { + return v7458.apply(this, arguments); +} }; +const v7460 = Object.create(v309); +v7460.constructor = v7457; +const v7461 = {}; +const v7462 = []; +var v7463; +var v7464 = v31; +var v7465 = v7460; +v7463 = function EVENTS_BUBBLE(event) { var baseClass = v7464.getPrototypeOf(v7465); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7466 = {}; +v7466.constructor = v7463; +v7463.prototype = v7466; +v7462.push(v7463); +v7461.apiCallAttempt = v7462; +const v7467 = []; +var v7468; +v7468 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7449.getPrototypeOf(v7465); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7469 = {}; +v7469.constructor = v7468; +v7468.prototype = v7469; +v7467.push(v7468); +v7461.apiCall = v7467; +v7460._events = v7461; +v7460.MONITOR_EVENTS_BUBBLE = v7463; +v7460.CALL_EVENTS_BUBBLE = v7468; +var v7470; +var v7471 = v40; +v7470 = function setupRequestListeners(request) { if (request.operation === \\"putEvents\\") { + var params = request.params || {}; + if (params.EndpointId !== undefined) { + throw new v3.error(new v7471(), { code: \\"InvalidParameter\\", message: \\"EndpointId is not supported in current SDK.\\\\n\\" + \\"You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).\\" }); + } +} }; +const v7472 = {}; +v7472.constructor = v7470; +v7470.prototype = v7472; +v7460.setupRequestListeners = v7470; +v7457.prototype = v7460; +v7457.__super__ = v299; +const v7473 = {}; +v7473[\\"2015-10-07\\"] = null; +v7457.services = v7473; +const v7474 = []; +v7474.push(\\"2015-10-07\\"); +v7457.apiVersions = v7474; +v7457.serviceIdentifier = \\"eventbridge\\"; +v2.EventBridge = v7457; +var v7475; +var v7476 = v299; +var v7477 = v31; +v7475 = function () { if (v7476 !== v7477) { + return v7476.apply(this, arguments); +} }; +const v7478 = Object.create(v309); +v7478.constructor = v7475; +const v7479 = {}; +const v7480 = []; +var v7481; +var v7482 = v31; +var v7483 = v7478; +v7481 = function EVENTS_BUBBLE(event) { var baseClass = v7482.getPrototypeOf(v7483); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7484 = {}; +v7484.constructor = v7481; +v7481.prototype = v7484; +v7480.push(v7481); +v7479.apiCallAttempt = v7480; +const v7485 = []; +var v7486; +v7486 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7464.getPrototypeOf(v7483); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7487 = {}; +v7487.constructor = v7486; +v7486.prototype = v7487; +v7485.push(v7486); +v7479.apiCall = v7485; +v7478._events = v7479; +v7478.MONITOR_EVENTS_BUBBLE = v7481; +v7478.CALL_EVENTS_BUBBLE = v7486; +v7475.prototype = v7478; +v7475.__super__ = v299; +const v7488 = {}; +v7488[\\"2017-03-31\\"] = null; +v7475.services = v7488; +const v7489 = []; +v7489.push(\\"2017-03-31\\"); +v7475.apiVersions = v7489; +v7475.serviceIdentifier = \\"lakeformation\\"; +v2.LakeFormation = v7475; +var v7490; +var v7491 = v299; +var v7492 = v31; +v7490 = function () { if (v7491 !== v7492) { + return v7491.apply(this, arguments); +} }; +const v7493 = Object.create(v309); +v7493.constructor = v7490; +const v7494 = {}; +const v7495 = []; +var v7496; +var v7497 = v31; +var v7498 = v7493; +v7496 = function EVENTS_BUBBLE(event) { var baseClass = v7497.getPrototypeOf(v7498); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7499 = {}; +v7499.constructor = v7496; +v7496.prototype = v7499; +v7495.push(v7496); +v7494.apiCallAttempt = v7495; +const v7500 = []; +var v7501; +v7501 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7482.getPrototypeOf(v7498); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7502 = {}; +v7502.constructor = v7501; +v7501.prototype = v7502; +v7500.push(v7501); +v7494.apiCall = v7500; +v7493._events = v7494; +v7493.MONITOR_EVENTS_BUBBLE = v7496; +v7493.CALL_EVENTS_BUBBLE = v7501; +v7490.prototype = v7493; +v7490.__super__ = v299; +const v7503 = {}; +v7503[\\"2018-06-26\\"] = null; +v7490.services = v7503; +const v7504 = []; +v7504.push(\\"2018-06-26\\"); +v7490.apiVersions = v7504; +v7490.serviceIdentifier = \\"forecastservice\\"; +v2.ForecastService = v7490; +var v7505; +var v7506 = v299; +var v7507 = v31; +v7505 = function () { if (v7506 !== v7507) { + return v7506.apply(this, arguments); +} }; +const v7508 = Object.create(v309); +v7508.constructor = v7505; +const v7509 = {}; +const v7510 = []; +var v7511; +var v7512 = v31; +var v7513 = v7508; +v7511 = function EVENTS_BUBBLE(event) { var baseClass = v7512.getPrototypeOf(v7513); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7514 = {}; +v7514.constructor = v7511; +v7511.prototype = v7514; +v7510.push(v7511); +v7509.apiCallAttempt = v7510; +const v7515 = []; +var v7516; +v7516 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7497.getPrototypeOf(v7513); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7517 = {}; +v7517.constructor = v7516; +v7516.prototype = v7517; +v7515.push(v7516); +v7509.apiCall = v7515; +v7508._events = v7509; +v7508.MONITOR_EVENTS_BUBBLE = v7511; +v7508.CALL_EVENTS_BUBBLE = v7516; +v7505.prototype = v7508; +v7505.__super__ = v299; +const v7518 = {}; +v7518[\\"2018-06-26\\"] = null; +v7505.services = v7518; +const v7519 = []; +v7519.push(\\"2018-06-26\\"); +v7505.apiVersions = v7519; +v7505.serviceIdentifier = \\"forecastqueryservice\\"; +v2.ForecastQueryService = v7505; +var v7520; +var v7521 = v299; +var v7522 = v31; +v7520 = function () { if (v7521 !== v7522) { + return v7521.apply(this, arguments); +} }; +const v7523 = Object.create(v309); +v7523.constructor = v7520; +const v7524 = {}; +const v7525 = []; +var v7526; +var v7527 = v31; +var v7528 = v7523; +v7526 = function EVENTS_BUBBLE(event) { var baseClass = v7527.getPrototypeOf(v7528); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7529 = {}; +v7529.constructor = v7526; +v7526.prototype = v7529; +v7525.push(v7526); +v7524.apiCallAttempt = v7525; +const v7530 = []; +var v7531; +v7531 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7512.getPrototypeOf(v7528); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7532 = {}; +v7532.constructor = v7531; +v7531.prototype = v7532; +v7530.push(v7531); +v7524.apiCall = v7530; +v7523._events = v7524; +v7523.MONITOR_EVENTS_BUBBLE = v7526; +v7523.CALL_EVENTS_BUBBLE = v7531; +v7520.prototype = v7523; +v7520.__super__ = v299; +const v7533 = {}; +v7533[\\"2019-01-02\\"] = null; +v7520.services = v7533; +const v7534 = []; +v7534.push(\\"2019-01-02\\"); +v7520.apiVersions = v7534; +v7520.serviceIdentifier = \\"qldb\\"; +v2.QLDB = v7520; +var v7535; +var v7536 = v299; +var v7537 = v31; +v7535 = function () { if (v7536 !== v7537) { + return v7536.apply(this, arguments); +} }; +const v7538 = Object.create(v309); +v7538.constructor = v7535; +const v7539 = {}; +const v7540 = []; +var v7541; +var v7542 = v31; +var v7543 = v7538; +v7541 = function EVENTS_BUBBLE(event) { var baseClass = v7542.getPrototypeOf(v7543); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7544 = {}; +v7544.constructor = v7541; +v7541.prototype = v7544; +v7540.push(v7541); +v7539.apiCallAttempt = v7540; +const v7545 = []; +var v7546; +v7546 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7527.getPrototypeOf(v7543); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7547 = {}; +v7547.constructor = v7546; +v7546.prototype = v7547; +v7545.push(v7546); +v7539.apiCall = v7545; +v7538._events = v7539; +v7538.MONITOR_EVENTS_BUBBLE = v7541; +v7538.CALL_EVENTS_BUBBLE = v7546; +v7535.prototype = v7538; +v7535.__super__ = v299; +const v7548 = {}; +v7548[\\"2019-07-11\\"] = null; +v7535.services = v7548; +const v7549 = []; +v7549.push(\\"2019-07-11\\"); +v7535.apiVersions = v7549; +v7535.serviceIdentifier = \\"qldbsession\\"; +v2.QLDBSession = v7535; +var v7550; +var v7551 = v299; +var v7552 = v31; +v7550 = function () { if (v7551 !== v7552) { + return v7551.apply(this, arguments); +} }; +const v7553 = Object.create(v309); +v7553.constructor = v7550; +const v7554 = {}; +const v7555 = []; +var v7556; +var v7557 = v31; +var v7558 = v7553; +v7556 = function EVENTS_BUBBLE(event) { var baseClass = v7557.getPrototypeOf(v7558); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7559 = {}; +v7559.constructor = v7556; +v7556.prototype = v7559; +v7555.push(v7556); +v7554.apiCallAttempt = v7555; +const v7560 = []; +var v7561; +v7561 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7542.getPrototypeOf(v7558); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7562 = {}; +v7562.constructor = v7561; +v7561.prototype = v7562; +v7560.push(v7561); +v7554.apiCall = v7560; +v7553._events = v7554; +v7553.MONITOR_EVENTS_BUBBLE = v7556; +v7553.CALL_EVENTS_BUBBLE = v7561; +v7550.prototype = v7553; +v7550.__super__ = v299; +const v7563 = {}; +v7563[\\"2019-05-01\\"] = null; +v7550.services = v7563; +const v7564 = []; +v7564.push(\\"2019-05-01\\"); +v7550.apiVersions = v7564; +v7550.serviceIdentifier = \\"workmailmessageflow\\"; +v2.WorkMailMessageFlow = v7550; +var v7565; +var v7566 = v299; +var v7567 = v31; +v7565 = function () { if (v7566 !== v7567) { + return v7566.apply(this, arguments); +} }; +const v7568 = Object.create(v309); +v7568.constructor = v7565; +const v7569 = {}; +const v7570 = []; +var v7571; +var v7572 = v31; +var v7573 = v7568; +v7571 = function EVENTS_BUBBLE(event) { var baseClass = v7572.getPrototypeOf(v7573); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7574 = {}; +v7574.constructor = v7571; +v7571.prototype = v7574; +v7570.push(v7571); +v7569.apiCallAttempt = v7570; +const v7575 = []; +var v7576; +v7576 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7557.getPrototypeOf(v7573); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7577 = {}; +v7577.constructor = v7576; +v7576.prototype = v7577; +v7575.push(v7576); +v7569.apiCall = v7575; +v7568._events = v7569; +v7568.MONITOR_EVENTS_BUBBLE = v7571; +v7568.CALL_EVENTS_BUBBLE = v7576; +v7565.prototype = v7568; +v7565.__super__ = v299; +const v7578 = {}; +v7578[\\"2019-10-15\\"] = null; +v7565.services = v7578; +const v7579 = []; +v7579.push(\\"2019-10-15\\"); +v7565.apiVersions = v7579; +v7565.serviceIdentifier = \\"codestarnotifications\\"; +v2.CodeStarNotifications = v7565; +var v7580; +var v7581 = v299; +var v7582 = v31; +v7580 = function () { if (v7581 !== v7582) { + return v7581.apply(this, arguments); +} }; +const v7583 = Object.create(v309); +v7583.constructor = v7580; +const v7584 = {}; +const v7585 = []; +var v7586; +var v7587 = v31; +var v7588 = v7583; +v7586 = function EVENTS_BUBBLE(event) { var baseClass = v7587.getPrototypeOf(v7588); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7589 = {}; +v7589.constructor = v7586; +v7586.prototype = v7589; +v7585.push(v7586); +v7584.apiCallAttempt = v7585; +const v7590 = []; +var v7591; +v7591 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7572.getPrototypeOf(v7588); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7592 = {}; +v7592.constructor = v7591; +v7591.prototype = v7592; +v7590.push(v7591); +v7584.apiCall = v7590; +v7583._events = v7584; +v7583.MONITOR_EVENTS_BUBBLE = v7586; +v7583.CALL_EVENTS_BUBBLE = v7591; +v7580.prototype = v7583; +v7580.__super__ = v299; +const v7593 = {}; +v7593[\\"2019-06-28\\"] = null; +v7580.services = v7593; +const v7594 = []; +v7594.push(\\"2019-06-28\\"); +v7580.apiVersions = v7594; +v7580.serviceIdentifier = \\"savingsplans\\"; +v2.SavingsPlans = v7580; +var v7595; +var v7596 = v299; +var v7597 = v31; +v7595 = function () { if (v7596 !== v7597) { + return v7596.apply(this, arguments); +} }; +const v7598 = Object.create(v309); +v7598.constructor = v7595; +const v7599 = {}; +const v7600 = []; +var v7601; +var v7602 = v31; +var v7603 = v7598; +v7601 = function EVENTS_BUBBLE(event) { var baseClass = v7602.getPrototypeOf(v7603); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7604 = {}; +v7604.constructor = v7601; +v7601.prototype = v7604; +v7600.push(v7601); +v7599.apiCallAttempt = v7600; +const v7605 = []; +var v7606; +v7606 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7587.getPrototypeOf(v7603); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7607 = {}; +v7607.constructor = v7606; +v7606.prototype = v7607; +v7605.push(v7606); +v7599.apiCall = v7605; +v7598._events = v7599; +v7598.MONITOR_EVENTS_BUBBLE = v7601; +v7598.CALL_EVENTS_BUBBLE = v7606; +v7595.prototype = v7598; +v7595.__super__ = v299; +const v7608 = {}; +v7608[\\"2019-06-10\\"] = null; +v7595.services = v7608; +const v7609 = []; +v7609.push(\\"2019-06-10\\"); +v7595.apiVersions = v7609; +v7595.serviceIdentifier = \\"sso\\"; +v2.SSO = v7595; +var v7610; +var v7611 = v299; +var v7612 = v31; +v7610 = function () { if (v7611 !== v7612) { + return v7611.apply(this, arguments); +} }; +const v7613 = Object.create(v309); +v7613.constructor = v7610; +const v7614 = {}; +const v7615 = []; +var v7616; +var v7617 = v31; +var v7618 = v7613; +v7616 = function EVENTS_BUBBLE(event) { var baseClass = v7617.getPrototypeOf(v7618); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7619 = {}; +v7619.constructor = v7616; +v7616.prototype = v7619; +v7615.push(v7616); +v7614.apiCallAttempt = v7615; +const v7620 = []; +var v7621; +v7621 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7602.getPrototypeOf(v7618); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7622 = {}; +v7622.constructor = v7621; +v7621.prototype = v7622; +v7620.push(v7621); +v7614.apiCall = v7620; +v7613._events = v7614; +v7613.MONITOR_EVENTS_BUBBLE = v7616; +v7613.CALL_EVENTS_BUBBLE = v7621; +v7610.prototype = v7613; +v7610.__super__ = v299; +const v7623 = {}; +v7623[\\"2019-06-10\\"] = null; +v7610.services = v7623; +const v7624 = []; +v7624.push(\\"2019-06-10\\"); +v7610.apiVersions = v7624; +v7610.serviceIdentifier = \\"ssooidc\\"; +v2.SSOOIDC = v7610; +var v7625; +var v7626 = v299; +var v7627 = v31; +v7625 = function () { if (v7626 !== v7627) { + return v7626.apply(this, arguments); +} }; +const v7628 = Object.create(v309); +v7628.constructor = v7625; +const v7629 = {}; +const v7630 = []; +var v7631; +var v7632 = v31; +var v7633 = v7628; +v7631 = function EVENTS_BUBBLE(event) { var baseClass = v7632.getPrototypeOf(v7633); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7634 = {}; +v7634.constructor = v7631; +v7631.prototype = v7634; +v7630.push(v7631); +v7629.apiCallAttempt = v7630; +const v7635 = []; +var v7636; +v7636 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7617.getPrototypeOf(v7633); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7637 = {}; +v7637.constructor = v7636; +v7636.prototype = v7637; +v7635.push(v7636); +v7629.apiCall = v7635; +v7628._events = v7629; +v7628.MONITOR_EVENTS_BUBBLE = v7631; +v7628.CALL_EVENTS_BUBBLE = v7636; +v7625.prototype = v7628; +v7625.__super__ = v299; +const v7638 = {}; +v7638[\\"2018-09-17\\"] = null; +v7625.services = v7638; +const v7639 = []; +v7639.push(\\"2018-09-17\\"); +v7625.apiVersions = v7639; +v7625.serviceIdentifier = \\"marketplacecatalog\\"; +v2.MarketplaceCatalog = v7625; +var v7640; +var v7641 = v299; +var v7642 = v31; +v7640 = function () { if (v7641 !== v7642) { + return v7641.apply(this, arguments); +} }; +const v7643 = Object.create(v309); +v7643.constructor = v7640; +const v7644 = {}; +const v7645 = []; +var v7646; +var v7647 = v31; +var v7648 = v7643; +v7646 = function EVENTS_BUBBLE(event) { var baseClass = v7647.getPrototypeOf(v7648); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7649 = {}; +v7649.constructor = v7646; +v7646.prototype = v7649; +v7645.push(v7646); +v7644.apiCallAttempt = v7645; +const v7650 = []; +var v7651; +v7651 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7632.getPrototypeOf(v7648); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7652 = {}; +v7652.constructor = v7651; +v7651.prototype = v7652; +v7650.push(v7651); +v7644.apiCall = v7650; +v7643._events = v7644; +v7643.MONITOR_EVENTS_BUBBLE = v7646; +v7643.CALL_EVENTS_BUBBLE = v7651; +v7640.prototype = v7643; +v7640.__super__ = v299; +const v7653 = {}; +v7653[\\"2017-07-25\\"] = null; +v7640.services = v7653; +const v7654 = []; +v7654.push(\\"2017-07-25\\"); +v7640.apiVersions = v7654; +v7640.serviceIdentifier = \\"dataexchange\\"; +v2.DataExchange = v7640; +var v7655; +var v7656 = v299; +var v7657 = v31; +v7655 = function () { if (v7656 !== v7657) { + return v7656.apply(this, arguments); +} }; +const v7658 = Object.create(v309); +v7658.constructor = v7655; +const v7659 = {}; +const v7660 = []; +var v7661; +var v7662 = v31; +var v7663 = v7658; +v7661 = function EVENTS_BUBBLE(event) { var baseClass = v7662.getPrototypeOf(v7663); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7664 = {}; +v7664.constructor = v7661; +v7661.prototype = v7664; +v7660.push(v7661); +v7659.apiCallAttempt = v7660; +const v7665 = []; +var v7666; +v7666 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7647.getPrototypeOf(v7663); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7667 = {}; +v7667.constructor = v7666; +v7666.prototype = v7667; +v7665.push(v7666); +v7659.apiCall = v7665; +v7658._events = v7659; +v7658.MONITOR_EVENTS_BUBBLE = v7661; +v7658.CALL_EVENTS_BUBBLE = v7666; +v7655.prototype = v7658; +v7655.__super__ = v299; +const v7668 = {}; +v7668[\\"2019-09-27\\"] = null; +v7655.services = v7668; +const v7669 = []; +v7669.push(\\"2019-09-27\\"); +v7655.apiVersions = v7669; +v7655.serviceIdentifier = \\"sesv2\\"; +v2.SESV2 = v7655; +var v7670; +var v7671 = v299; +var v7672 = v31; +v7670 = function () { if (v7671 !== v7672) { + return v7671.apply(this, arguments); +} }; +const v7673 = Object.create(v309); +v7673.constructor = v7670; +const v7674 = {}; +const v7675 = []; +var v7676; +var v7677 = v31; +var v7678 = v7673; +v7676 = function EVENTS_BUBBLE(event) { var baseClass = v7677.getPrototypeOf(v7678); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7679 = {}; +v7679.constructor = v7676; +v7676.prototype = v7679; +v7675.push(v7676); +v7674.apiCallAttempt = v7675; +const v7680 = []; +var v7681; +v7681 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7662.getPrototypeOf(v7678); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7682 = {}; +v7682.constructor = v7681; +v7681.prototype = v7682; +v7680.push(v7681); +v7674.apiCall = v7680; +v7673._events = v7674; +v7673.MONITOR_EVENTS_BUBBLE = v7676; +v7673.CALL_EVENTS_BUBBLE = v7681; +v7670.prototype = v7673; +v7670.__super__ = v299; +const v7683 = {}; +v7683[\\"2019-06-30\\"] = null; +v7670.services = v7683; +const v7684 = []; +v7684.push(\\"2019-06-30\\"); +v7670.apiVersions = v7684; +v7670.serviceIdentifier = \\"migrationhubconfig\\"; +v2.MigrationHubConfig = v7670; +var v7685; +var v7686 = v299; +var v7687 = v31; +v7685 = function () { if (v7686 !== v7687) { + return v7686.apply(this, arguments); +} }; +const v7688 = Object.create(v309); +v7688.constructor = v7685; +const v7689 = {}; +const v7690 = []; +var v7691; +var v7692 = v31; +var v7693 = v7688; +v7691 = function EVENTS_BUBBLE(event) { var baseClass = v7692.getPrototypeOf(v7693); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7694 = {}; +v7694.constructor = v7691; +v7691.prototype = v7694; +v7690.push(v7691); +v7689.apiCallAttempt = v7690; +const v7695 = []; +var v7696; +v7696 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7677.getPrototypeOf(v7693); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7697 = {}; +v7697.constructor = v7696; +v7696.prototype = v7697; +v7695.push(v7696); +v7689.apiCall = v7695; +v7688._events = v7689; +v7688.MONITOR_EVENTS_BUBBLE = v7691; +v7688.CALL_EVENTS_BUBBLE = v7696; +v7685.prototype = v7688; +v7685.__super__ = v299; +const v7698 = {}; +v7698[\\"2018-09-07\\"] = null; +v7685.services = v7698; +const v7699 = []; +v7699.push(\\"2018-09-07\\"); +v7685.apiVersions = v7699; +v7685.serviceIdentifier = \\"connectparticipant\\"; +v2.ConnectParticipant = v7685; +var v7700; +var v7701 = v299; +var v7702 = v31; +v7700 = function () { if (v7701 !== v7702) { + return v7701.apply(this, arguments); +} }; +const v7703 = Object.create(v309); +v7703.constructor = v7700; +const v7704 = {}; +const v7705 = []; +var v7706; +var v7707 = v31; +var v7708 = v7703; +v7706 = function EVENTS_BUBBLE(event) { var baseClass = v7707.getPrototypeOf(v7708); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7709 = {}; +v7709.constructor = v7706; +v7706.prototype = v7709; +v7705.push(v7706); +v7704.apiCallAttempt = v7705; +const v7710 = []; +var v7711; +v7711 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7692.getPrototypeOf(v7708); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7712 = {}; +v7712.constructor = v7711; +v7711.prototype = v7712; +v7710.push(v7711); +v7704.apiCall = v7710; +v7703._events = v7704; +v7703.MONITOR_EVENTS_BUBBLE = v7706; +v7703.CALL_EVENTS_BUBBLE = v7711; +v7700.prototype = v7703; +v7700.__super__ = v299; +const v7713 = {}; +v7713[\\"2019-10-09\\"] = null; +v7700.services = v7713; +const v7714 = []; +v7714.push(\\"2019-10-09\\"); +v7700.apiVersions = v7714; +v7700.serviceIdentifier = \\"appconfig\\"; +v2.AppConfig = v7700; +var v7715; +var v7716 = v299; +var v7717 = v31; +v7715 = function () { if (v7716 !== v7717) { + return v7716.apply(this, arguments); +} }; +const v7718 = Object.create(v309); +v7718.constructor = v7715; +const v7719 = {}; +const v7720 = []; +var v7721; +var v7722 = v31; +var v7723 = v7718; +v7721 = function EVENTS_BUBBLE(event) { var baseClass = v7722.getPrototypeOf(v7723); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7724 = {}; +v7724.constructor = v7721; +v7721.prototype = v7724; +v7720.push(v7721); +v7719.apiCallAttempt = v7720; +const v7725 = []; +var v7726; +v7726 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7707.getPrototypeOf(v7723); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7727 = {}; +v7727.constructor = v7726; +v7726.prototype = v7727; +v7725.push(v7726); +v7719.apiCall = v7725; +v7718._events = v7719; +v7718.MONITOR_EVENTS_BUBBLE = v7721; +v7718.CALL_EVENTS_BUBBLE = v7726; +v7715.prototype = v7718; +v7715.__super__ = v299; +const v7728 = {}; +v7728[\\"2018-10-05\\"] = null; +v7715.services = v7728; +const v7729 = []; +v7729.push(\\"2018-10-05\\"); +v7715.apiVersions = v7729; +v7715.serviceIdentifier = \\"iotsecuretunneling\\"; +v2.IoTSecureTunneling = v7715; +var v7730; +var v7731 = v299; +var v7732 = v31; +v7730 = function () { if (v7731 !== v7732) { + return v7731.apply(this, arguments); +} }; +const v7733 = Object.create(v309); +v7733.constructor = v7730; +const v7734 = {}; +const v7735 = []; +var v7736; +var v7737 = v31; +var v7738 = v7733; +v7736 = function EVENTS_BUBBLE(event) { var baseClass = v7737.getPrototypeOf(v7738); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7739 = {}; +v7739.constructor = v7736; +v7736.prototype = v7739; +v7735.push(v7736); +v7734.apiCallAttempt = v7735; +const v7740 = []; +var v7741; +v7741 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7722.getPrototypeOf(v7738); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7742 = {}; +v7742.constructor = v7741; +v7741.prototype = v7742; +v7740.push(v7741); +v7734.apiCall = v7740; +v7733._events = v7734; +v7733.MONITOR_EVENTS_BUBBLE = v7736; +v7733.CALL_EVENTS_BUBBLE = v7741; +v7730.prototype = v7733; +v7730.__super__ = v299; +const v7743 = {}; +v7743[\\"2019-07-29\\"] = null; +v7730.services = v7743; +const v7744 = []; +v7744.push(\\"2019-07-29\\"); +v7730.apiVersions = v7744; +v7730.serviceIdentifier = \\"wafv2\\"; +v2.WAFV2 = v7730; +var v7745; +var v7746 = v299; +var v7747 = v31; +v7745 = function () { if (v7746 !== v7747) { + return v7746.apply(this, arguments); +} }; +const v7748 = Object.create(v309); +v7748.constructor = v7745; +const v7749 = {}; +const v7750 = []; +var v7751; +var v7752 = v31; +var v7753 = v7748; +v7751 = function EVENTS_BUBBLE(event) { var baseClass = v7752.getPrototypeOf(v7753); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7754 = {}; +v7754.constructor = v7751; +v7751.prototype = v7754; +v7750.push(v7751); +v7749.apiCallAttempt = v7750; +const v7755 = []; +var v7756; +v7756 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7737.getPrototypeOf(v7753); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7757 = {}; +v7757.constructor = v7756; +v7756.prototype = v7757; +v7755.push(v7756); +v7749.apiCall = v7755; +v7748._events = v7749; +v7748.MONITOR_EVENTS_BUBBLE = v7751; +v7748.CALL_EVENTS_BUBBLE = v7756; +v7745.prototype = v7748; +v7745.__super__ = v299; +const v7758 = {}; +v7758[\\"2017-07-25\\"] = null; +v7745.services = v7758; +const v7759 = []; +v7759.push(\\"2017-07-25\\"); +v7745.apiVersions = v7759; +v7745.serviceIdentifier = \\"elasticinference\\"; +v2.ElasticInference = v7745; +var v7760; +var v7761 = v299; +var v7762 = v31; +v7760 = function () { if (v7761 !== v7762) { + return v7761.apply(this, arguments); +} }; +const v7763 = Object.create(v309); +v7763.constructor = v7760; +const v7764 = {}; +const v7765 = []; +var v7766; +var v7767 = v31; +var v7768 = v7763; +v7766 = function EVENTS_BUBBLE(event) { var baseClass = v7767.getPrototypeOf(v7768); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7769 = {}; +v7769.constructor = v7766; +v7766.prototype = v7769; +v7765.push(v7766); +v7764.apiCallAttempt = v7765; +const v7770 = []; +var v7771; +v7771 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7752.getPrototypeOf(v7768); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7772 = {}; +v7772.constructor = v7771; +v7771.prototype = v7772; +v7770.push(v7771); +v7764.apiCall = v7770; +v7763._events = v7764; +v7763.MONITOR_EVENTS_BUBBLE = v7766; +v7763.CALL_EVENTS_BUBBLE = v7771; +v7760.prototype = v7763; +v7760.__super__ = v299; +const v7773 = {}; +v7773[\\"2019-12-02\\"] = null; +v7760.services = v7773; +const v7774 = []; +v7774.push(\\"2019-12-02\\"); +v7760.apiVersions = v7774; +v7760.serviceIdentifier = \\"imagebuilder\\"; +v2.Imagebuilder = v7760; +var v7775; +var v7776 = v299; +var v7777 = v31; +v7775 = function () { if (v7776 !== v7777) { + return v7776.apply(this, arguments); +} }; +const v7778 = Object.create(v309); +v7778.constructor = v7775; +const v7779 = {}; +const v7780 = []; +var v7781; +var v7782 = v31; +var v7783 = v7778; +v7781 = function EVENTS_BUBBLE(event) { var baseClass = v7782.getPrototypeOf(v7783); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7784 = {}; +v7784.constructor = v7781; +v7781.prototype = v7784; +v7780.push(v7781); +v7779.apiCallAttempt = v7780; +const v7785 = []; +var v7786; +v7786 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7767.getPrototypeOf(v7783); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7787 = {}; +v7787.constructor = v7786; +v7786.prototype = v7787; +v7785.push(v7786); +v7779.apiCall = v7785; +v7778._events = v7779; +v7778.MONITOR_EVENTS_BUBBLE = v7781; +v7778.CALL_EVENTS_BUBBLE = v7786; +v7775.prototype = v7778; +v7775.__super__ = v299; +const v7788 = {}; +v7788[\\"2019-12-02\\"] = null; +v7775.services = v7788; +const v7789 = []; +v7789.push(\\"2019-12-02\\"); +v7775.apiVersions = v7789; +v7775.serviceIdentifier = \\"schemas\\"; +v2.Schemas = v7775; +var v7790; +var v7791 = v299; +var v7792 = v31; +v7790 = function () { if (v7791 !== v7792) { + return v7791.apply(this, arguments); +} }; +const v7793 = Object.create(v309); +v7793.constructor = v7790; +const v7794 = {}; +const v7795 = []; +var v7796; +var v7797 = v31; +var v7798 = v7793; +v7796 = function EVENTS_BUBBLE(event) { var baseClass = v7797.getPrototypeOf(v7798); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7799 = {}; +v7799.constructor = v7796; +v7796.prototype = v7799; +v7795.push(v7796); +v7794.apiCallAttempt = v7795; +const v7800 = []; +var v7801; +v7801 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7782.getPrototypeOf(v7798); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7802 = {}; +v7802.constructor = v7801; +v7801.prototype = v7802; +v7800.push(v7801); +v7794.apiCall = v7800; +v7793._events = v7794; +v7793.MONITOR_EVENTS_BUBBLE = v7796; +v7793.CALL_EVENTS_BUBBLE = v7801; +v7790.prototype = v7793; +v7790.__super__ = v299; +const v7803 = {}; +v7803[\\"2019-11-01\\"] = null; +v7790.services = v7803; +const v7804 = []; +v7804.push(\\"2019-11-01\\"); +v7790.apiVersions = v7804; +v7790.serviceIdentifier = \\"accessanalyzer\\"; +v2.AccessAnalyzer = v7790; +var v7805; +var v7806 = v299; +var v7807 = v31; +v7805 = function () { if (v7806 !== v7807) { + return v7806.apply(this, arguments); +} }; +const v7808 = Object.create(v309); +v7808.constructor = v7805; +const v7809 = {}; +const v7810 = []; +var v7811; +var v7812 = v31; +var v7813 = v7808; +v7811 = function EVENTS_BUBBLE(event) { var baseClass = v7812.getPrototypeOf(v7813); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7814 = {}; +v7814.constructor = v7811; +v7811.prototype = v7814; +v7810.push(v7811); +v7809.apiCallAttempt = v7810; +const v7815 = []; +var v7816; +v7816 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7797.getPrototypeOf(v7813); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7817 = {}; +v7817.constructor = v7816; +v7816.prototype = v7817; +v7815.push(v7816); +v7809.apiCall = v7815; +v7808._events = v7809; +v7808.MONITOR_EVENTS_BUBBLE = v7811; +v7808.CALL_EVENTS_BUBBLE = v7816; +v7805.prototype = v7808; +v7805.__super__ = v299; +const v7818 = {}; +v7818[\\"2019-09-19\\"] = null; +v7805.services = v7818; +const v7819 = []; +v7819.push(\\"2019-09-19\\"); +v7805.apiVersions = v7819; +v7805.serviceIdentifier = \\"codegurureviewer\\"; +v2.CodeGuruReviewer = v7805; +var v7820; +var v7821 = v299; +var v7822 = v31; +v7820 = function () { if (v7821 !== v7822) { + return v7821.apply(this, arguments); +} }; +const v7823 = Object.create(v309); +v7823.constructor = v7820; +const v7824 = {}; +const v7825 = []; +var v7826; +var v7827 = v31; +var v7828 = v7823; +v7826 = function EVENTS_BUBBLE(event) { var baseClass = v7827.getPrototypeOf(v7828); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7829 = {}; +v7829.constructor = v7826; +v7826.prototype = v7829; +v7825.push(v7826); +v7824.apiCallAttempt = v7825; +const v7830 = []; +var v7831; +v7831 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7812.getPrototypeOf(v7828); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7832 = {}; +v7832.constructor = v7831; +v7831.prototype = v7832; +v7830.push(v7831); +v7824.apiCall = v7830; +v7823._events = v7824; +v7823.MONITOR_EVENTS_BUBBLE = v7826; +v7823.CALL_EVENTS_BUBBLE = v7831; +v7820.prototype = v7823; +v7820.__super__ = v299; +const v7833 = {}; +v7833[\\"2019-07-18\\"] = null; +v7820.services = v7833; +const v7834 = []; +v7834.push(\\"2019-07-18\\"); +v7820.apiVersions = v7834; +v7820.serviceIdentifier = \\"codeguruprofiler\\"; +v2.CodeGuruProfiler = v7820; +var v7835; +var v7836 = v299; +var v7837 = v31; +v7835 = function () { if (v7836 !== v7837) { + return v7836.apply(this, arguments); +} }; +const v7838 = Object.create(v309); +v7838.constructor = v7835; +const v7839 = {}; +const v7840 = []; +var v7841; +var v7842 = v31; +var v7843 = v7838; +v7841 = function EVENTS_BUBBLE(event) { var baseClass = v7842.getPrototypeOf(v7843); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7844 = {}; +v7844.constructor = v7841; +v7841.prototype = v7844; +v7840.push(v7841); +v7839.apiCallAttempt = v7840; +const v7845 = []; +var v7846; +v7846 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7827.getPrototypeOf(v7843); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7847 = {}; +v7847.constructor = v7846; +v7846.prototype = v7847; +v7845.push(v7846); +v7839.apiCall = v7845; +v7838._events = v7839; +v7838.MONITOR_EVENTS_BUBBLE = v7841; +v7838.CALL_EVENTS_BUBBLE = v7846; +v7835.prototype = v7838; +v7835.__super__ = v299; +const v7848 = {}; +v7848[\\"2019-11-01\\"] = null; +v7835.services = v7848; +const v7849 = []; +v7849.push(\\"2019-11-01\\"); +v7835.apiVersions = v7849; +v7835.serviceIdentifier = \\"computeoptimizer\\"; +v2.ComputeOptimizer = v7835; +var v7850; +var v7851 = v299; +var v7852 = v31; +v7850 = function () { if (v7851 !== v7852) { + return v7851.apply(this, arguments); +} }; +const v7853 = Object.create(v309); +v7853.constructor = v7850; +const v7854 = {}; +const v7855 = []; +var v7856; +var v7857 = v31; +var v7858 = v7853; +v7856 = function EVENTS_BUBBLE(event) { var baseClass = v7857.getPrototypeOf(v7858); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7859 = {}; +v7859.constructor = v7856; +v7856.prototype = v7859; +v7855.push(v7856); +v7854.apiCallAttempt = v7855; +const v7860 = []; +var v7861; +v7861 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7842.getPrototypeOf(v7858); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7862 = {}; +v7862.constructor = v7861; +v7861.prototype = v7862; +v7860.push(v7861); +v7854.apiCall = v7860; +v7853._events = v7854; +v7853.MONITOR_EVENTS_BUBBLE = v7856; +v7853.CALL_EVENTS_BUBBLE = v7861; +v7850.prototype = v7853; +v7850.__super__ = v299; +const v7863 = {}; +v7863[\\"2019-11-15\\"] = null; +v7850.services = v7863; +const v7864 = []; +v7864.push(\\"2019-11-15\\"); +v7850.apiVersions = v7864; +v7850.serviceIdentifier = \\"frauddetector\\"; +v2.FraudDetector = v7850; +var v7865; +var v7866 = v299; +var v7867 = v31; +v7865 = function () { if (v7866 !== v7867) { + return v7866.apply(this, arguments); +} }; +const v7868 = Object.create(v309); +v7868.constructor = v7865; +const v7869 = {}; +const v7870 = []; +var v7871; +var v7872 = v31; +var v7873 = v7868; +v7871 = function EVENTS_BUBBLE(event) { var baseClass = v7872.getPrototypeOf(v7873); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7874 = {}; +v7874.constructor = v7871; +v7871.prototype = v7874; +v7870.push(v7871); +v7869.apiCallAttempt = v7870; +const v7875 = []; +var v7876; +v7876 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7857.getPrototypeOf(v7873); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7877 = {}; +v7877.constructor = v7876; +v7876.prototype = v7877; +v7875.push(v7876); +v7869.apiCall = v7875; +v7868._events = v7869; +v7868.MONITOR_EVENTS_BUBBLE = v7871; +v7868.CALL_EVENTS_BUBBLE = v7876; +v7865.prototype = v7868; +v7865.__super__ = v299; +const v7878 = {}; +v7878[\\"2019-02-03\\"] = null; +v7865.services = v7878; +const v7879 = []; +v7879.push(\\"2019-02-03\\"); +v7865.apiVersions = v7879; +v7865.serviceIdentifier = \\"kendra\\"; +v2.Kendra = v7865; +var v7880; +var v7881 = v299; +var v7882 = v31; +v7880 = function () { if (v7881 !== v7882) { + return v7881.apply(this, arguments); +} }; +const v7883 = Object.create(v309); +v7883.constructor = v7880; +const v7884 = {}; +const v7885 = []; +var v7886; +var v7887 = v31; +var v7888 = v7883; +v7886 = function EVENTS_BUBBLE(event) { var baseClass = v7887.getPrototypeOf(v7888); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7889 = {}; +v7889.constructor = v7886; +v7886.prototype = v7889; +v7885.push(v7886); +v7884.apiCallAttempt = v7885; +const v7890 = []; +var v7891; +v7891 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7872.getPrototypeOf(v7888); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7892 = {}; +v7892.constructor = v7891; +v7891.prototype = v7892; +v7890.push(v7891); +v7884.apiCall = v7890; +v7883._events = v7884; +v7883.MONITOR_EVENTS_BUBBLE = v7886; +v7883.CALL_EVENTS_BUBBLE = v7891; +v7880.prototype = v7883; +v7880.__super__ = v299; +const v7893 = {}; +v7893[\\"2019-07-05\\"] = null; +v7880.services = v7893; +const v7894 = []; +v7894.push(\\"2019-07-05\\"); +v7880.apiVersions = v7894; +v7880.serviceIdentifier = \\"networkmanager\\"; +v2.NetworkManager = v7880; +var v7895; +var v7896 = v299; +var v7897 = v31; +v7895 = function () { if (v7896 !== v7897) { + return v7896.apply(this, arguments); +} }; +const v7898 = Object.create(v309); +v7898.constructor = v7895; +const v7899 = {}; +const v7900 = []; +var v7901; +var v7902 = v31; +var v7903 = v7898; +v7901 = function EVENTS_BUBBLE(event) { var baseClass = v7902.getPrototypeOf(v7903); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7904 = {}; +v7904.constructor = v7901; +v7901.prototype = v7904; +v7900.push(v7901); +v7899.apiCallAttempt = v7900; +const v7905 = []; +var v7906; +v7906 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7887.getPrototypeOf(v7903); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7907 = {}; +v7907.constructor = v7906; +v7906.prototype = v7907; +v7905.push(v7906); +v7899.apiCall = v7905; +v7898._events = v7899; +v7898.MONITOR_EVENTS_BUBBLE = v7901; +v7898.CALL_EVENTS_BUBBLE = v7906; +v7895.prototype = v7898; +v7895.__super__ = v299; +const v7908 = {}; +v7908[\\"2019-12-03\\"] = null; +v7895.services = v7908; +const v7909 = []; +v7909.push(\\"2019-12-03\\"); +v7895.apiVersions = v7909; +v7895.serviceIdentifier = \\"outposts\\"; +v2.Outposts = v7895; +var v7910; +var v7911 = v299; +var v7912 = v31; +v7910 = function () { if (v7911 !== v7912) { + return v7911.apply(this, arguments); +} }; +const v7913 = Object.create(v309); +v7913.constructor = v7910; +const v7914 = {}; +const v7915 = []; +var v7916; +var v7917 = v31; +var v7918 = v7913; +v7916 = function EVENTS_BUBBLE(event) { var baseClass = v7917.getPrototypeOf(v7918); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7919 = {}; +v7919.constructor = v7916; +v7916.prototype = v7919; +v7915.push(v7916); +v7914.apiCallAttempt = v7915; +const v7920 = []; +var v7921; +v7921 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7902.getPrototypeOf(v7918); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7922 = {}; +v7922.constructor = v7921; +v7921.prototype = v7922; +v7920.push(v7921); +v7914.apiCall = v7920; +v7913._events = v7914; +v7913.MONITOR_EVENTS_BUBBLE = v7916; +v7913.CALL_EVENTS_BUBBLE = v7921; +v7910.prototype = v7913; +v7910.__super__ = v299; +const v7923 = {}; +v7923[\\"2019-11-07\\"] = null; +v7910.services = v7923; +const v7924 = []; +v7924.push(\\"2019-11-07\\"); +v7910.apiVersions = v7924; +v7910.serviceIdentifier = \\"augmentedairuntime\\"; +v2.AugmentedAIRuntime = v7910; +var v7925; +var v7926 = v299; +var v7927 = v31; +v7925 = function () { if (v7926 !== v7927) { + return v7926.apply(this, arguments); +} }; +const v7928 = Object.create(v309); +v7928.constructor = v7925; +const v7929 = {}; +const v7930 = []; +var v7931; +var v7932 = v31; +var v7933 = v7928; +v7931 = function EVENTS_BUBBLE(event) { var baseClass = v7932.getPrototypeOf(v7933); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7934 = {}; +v7934.constructor = v7931; +v7931.prototype = v7934; +v7930.push(v7931); +v7929.apiCallAttempt = v7930; +const v7935 = []; +var v7936; +v7936 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7917.getPrototypeOf(v7933); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7937 = {}; +v7937.constructor = v7936; +v7936.prototype = v7937; +v7935.push(v7936); +v7929.apiCall = v7935; +v7928._events = v7929; +v7928.MONITOR_EVENTS_BUBBLE = v7931; +v7928.CALL_EVENTS_BUBBLE = v7936; +v7925.prototype = v7928; +v7925.__super__ = v299; +const v7938 = {}; +v7938[\\"2019-11-02\\"] = null; +v7925.services = v7938; +const v7939 = []; +v7939.push(\\"2019-11-02\\"); +v7925.apiVersions = v7939; +v7925.serviceIdentifier = \\"ebs\\"; +v2.EBS = v7925; +var v7940; +var v7941 = v299; +var v7942 = v31; +v7940 = function () { if (v7941 !== v7942) { + return v7941.apply(this, arguments); +} }; +const v7943 = Object.create(v309); +v7943.constructor = v7940; +const v7944 = {}; +const v7945 = []; +var v7946; +var v7947 = v31; +var v7948 = v7943; +v7946 = function EVENTS_BUBBLE(event) { var baseClass = v7947.getPrototypeOf(v7948); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7949 = {}; +v7949.constructor = v7946; +v7946.prototype = v7949; +v7945.push(v7946); +v7944.apiCallAttempt = v7945; +const v7950 = []; +var v7951; +v7951 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7932.getPrototypeOf(v7948); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7952 = {}; +v7952.constructor = v7951; +v7951.prototype = v7952; +v7950.push(v7951); +v7944.apiCall = v7950; +v7943._events = v7944; +v7943.MONITOR_EVENTS_BUBBLE = v7946; +v7943.CALL_EVENTS_BUBBLE = v7951; +v7940.prototype = v7943; +v7940.__super__ = v299; +const v7953 = {}; +v7953[\\"2019-12-04\\"] = null; +v7940.services = v7953; +const v7954 = []; +v7954.push(\\"2019-12-04\\"); +v7940.apiVersions = v7954; +v7940.serviceIdentifier = \\"kinesisvideosignalingchannels\\"; +v2.KinesisVideoSignalingChannels = v7940; +var v7955; +var v7956 = v299; +var v7957 = v31; +v7955 = function () { if (v7956 !== v7957) { + return v7956.apply(this, arguments); +} }; +const v7958 = Object.create(v309); +v7958.constructor = v7955; +const v7959 = {}; +const v7960 = []; +var v7961; +var v7962 = v31; +var v7963 = v7958; +v7961 = function EVENTS_BUBBLE(event) { var baseClass = v7962.getPrototypeOf(v7963); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7964 = {}; +v7964.constructor = v7961; +v7961.prototype = v7964; +v7960.push(v7961); +v7959.apiCallAttempt = v7960; +const v7965 = []; +var v7966; +v7966 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7947.getPrototypeOf(v7963); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7967 = {}; +v7967.constructor = v7966; +v7966.prototype = v7967; +v7965.push(v7966); +v7959.apiCall = v7965; +v7958._events = v7959; +v7958.MONITOR_EVENTS_BUBBLE = v7961; +v7958.CALL_EVENTS_BUBBLE = v7966; +v7955.prototype = v7958; +v7955.__super__ = v299; +const v7968 = {}; +v7968[\\"2018-10-26\\"] = null; +v7955.services = v7968; +const v7969 = []; +v7969.push(\\"2018-10-26\\"); +v7955.apiVersions = v7969; +v7955.serviceIdentifier = \\"detective\\"; +v2.Detective = v7955; +var v7970; +var v7971 = v299; +var v7972 = v31; +v7970 = function () { if (v7971 !== v7972) { + return v7971.apply(this, arguments); +} }; +const v7973 = Object.create(v309); +v7973.constructor = v7970; +const v7974 = {}; +const v7975 = []; +var v7976; +var v7977 = v31; +var v7978 = v7973; +v7976 = function EVENTS_BUBBLE(event) { var baseClass = v7977.getPrototypeOf(v7978); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7979 = {}; +v7979.constructor = v7976; +v7976.prototype = v7979; +v7975.push(v7976); +v7974.apiCallAttempt = v7975; +const v7980 = []; +var v7981; +v7981 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7962.getPrototypeOf(v7978); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7982 = {}; +v7982.constructor = v7981; +v7981.prototype = v7982; +v7980.push(v7981); +v7974.apiCall = v7980; +v7973._events = v7974; +v7973.MONITOR_EVENTS_BUBBLE = v7976; +v7973.CALL_EVENTS_BUBBLE = v7981; +v7970.prototype = v7973; +v7970.__super__ = v299; +const v7983 = {}; +v7983[\\"2019-12-01\\"] = null; +v7970.services = v7983; +const v7984 = []; +v7984.push(\\"2019-12-01\\"); +v7970.apiVersions = v7984; +v7970.serviceIdentifier = \\"codestarconnections\\"; +v2.CodeStarconnections = v7970; +var v7985; +var v7986 = v299; +var v7987 = v31; +v7985 = function () { if (v7986 !== v7987) { + return v7986.apply(this, arguments); +} }; +const v7988 = Object.create(v309); +v7988.constructor = v7985; +const v7989 = {}; +const v7990 = []; +var v7991; +var v7992 = v31; +var v7993 = v7988; +v7991 = function EVENTS_BUBBLE(event) { var baseClass = v7992.getPrototypeOf(v7993); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v7994 = {}; +v7994.constructor = v7991; +v7991.prototype = v7994; +v7990.push(v7991); +v7989.apiCallAttempt = v7990; +const v7995 = []; +var v7996; +v7996 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7977.getPrototypeOf(v7993); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v7997 = {}; +v7997.constructor = v7996; +v7996.prototype = v7997; +v7995.push(v7996); +v7989.apiCall = v7995; +v7988._events = v7989; +v7988.MONITOR_EVENTS_BUBBLE = v7991; +v7988.CALL_EVENTS_BUBBLE = v7996; +v7985.prototype = v7988; +v7985.__super__ = v299; +const v7998 = {}; +v7998[\\"2017-10-11\\"] = null; +v7985.services = v7998; +const v7999 = []; +v7999.push(\\"2017-10-11\\"); +v7985.apiVersions = v7999; +v7985.serviceIdentifier = \\"synthetics\\"; +v2.Synthetics = v7985; +var v8000; +var v8001 = v299; +var v8002 = v31; +v8000 = function () { if (v8001 !== v8002) { + return v8001.apply(this, arguments); +} }; +const v8003 = Object.create(v309); +v8003.constructor = v8000; +const v8004 = {}; +const v8005 = []; +var v8006; +var v8007 = v31; +var v8008 = v8003; +v8006 = function EVENTS_BUBBLE(event) { var baseClass = v8007.getPrototypeOf(v8008); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8009 = {}; +v8009.constructor = v8006; +v8006.prototype = v8009; +v8005.push(v8006); +v8004.apiCallAttempt = v8005; +const v8010 = []; +var v8011; +v8011 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7992.getPrototypeOf(v8008); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8012 = {}; +v8012.constructor = v8011; +v8011.prototype = v8012; +v8010.push(v8011); +v8004.apiCall = v8010; +v8003._events = v8004; +v8003.MONITOR_EVENTS_BUBBLE = v8006; +v8003.CALL_EVENTS_BUBBLE = v8011; +v8000.prototype = v8003; +v8000.__super__ = v299; +const v8013 = {}; +v8013[\\"2019-12-02\\"] = null; +v8000.services = v8013; +const v8014 = []; +v8014.push(\\"2019-12-02\\"); +v8000.apiVersions = v8014; +v8000.serviceIdentifier = \\"iotsitewise\\"; +v2.IoTSiteWise = v8000; +var v8015; +var v8016 = v299; +var v8017 = v31; +v8015 = function () { if (v8016 !== v8017) { + return v8016.apply(this, arguments); +} }; +const v8018 = Object.create(v309); +v8018.constructor = v8015; +const v8019 = {}; +const v8020 = []; +var v8021; +var v8022 = v31; +var v8023 = v8018; +v8021 = function EVENTS_BUBBLE(event) { var baseClass = v8022.getPrototypeOf(v8023); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8024 = {}; +v8024.constructor = v8021; +v8021.prototype = v8024; +v8020.push(v8021); +v8019.apiCallAttempt = v8020; +const v8025 = []; +var v8026; +v8026 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8007.getPrototypeOf(v8023); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8027 = {}; +v8027.constructor = v8026; +v8026.prototype = v8027; +v8025.push(v8026); +v8019.apiCall = v8025; +v8018._events = v8019; +v8018.MONITOR_EVENTS_BUBBLE = v8021; +v8018.CALL_EVENTS_BUBBLE = v8026; +v8015.prototype = v8018; +v8015.__super__ = v299; +const v8028 = {}; +v8028[\\"2020-01-01\\"] = null; +v8015.services = v8028; +const v8029 = []; +v8029.push(\\"2020-01-01\\"); +v8015.apiVersions = v8029; +v8015.serviceIdentifier = \\"macie2\\"; +v2.Macie2 = v8015; +var v8030; +var v8031 = v299; +var v8032 = v31; +v8030 = function () { if (v8031 !== v8032) { + return v8031.apply(this, arguments); +} }; +const v8033 = Object.create(v309); +v8033.constructor = v8030; +const v8034 = {}; +const v8035 = []; +var v8036; +var v8037 = v31; +var v8038 = v8033; +v8036 = function EVENTS_BUBBLE(event) { var baseClass = v8037.getPrototypeOf(v8038); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8039 = {}; +v8039.constructor = v8036; +v8036.prototype = v8039; +v8035.push(v8036); +v8034.apiCallAttempt = v8035; +const v8040 = []; +var v8041; +v8041 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8022.getPrototypeOf(v8038); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8042 = {}; +v8042.constructor = v8041; +v8041.prototype = v8042; +v8040.push(v8041); +v8034.apiCall = v8040; +v8033._events = v8034; +v8033.MONITOR_EVENTS_BUBBLE = v8036; +v8033.CALL_EVENTS_BUBBLE = v8041; +v8030.prototype = v8033; +v8030.__super__ = v299; +const v8043 = {}; +v8043[\\"2018-09-22\\"] = null; +v8030.services = v8043; +const v8044 = []; +v8044.push(\\"2018-09-22\\"); +v8030.apiVersions = v8044; +v8030.serviceIdentifier = \\"codeartifact\\"; +v2.CodeArtifact = v8030; +var v8045; +var v8046 = v299; +var v8047 = v31; +v8045 = function () { if (v8046 !== v8047) { + return v8046.apply(this, arguments); +} }; +const v8048 = Object.create(v309); +v8048.constructor = v8045; +const v8049 = {}; +const v8050 = []; +var v8051; +var v8052 = v31; +var v8053 = v8048; +v8051 = function EVENTS_BUBBLE(event) { var baseClass = v8052.getPrototypeOf(v8053); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8054 = {}; +v8054.constructor = v8051; +v8051.prototype = v8054; +v8050.push(v8051); +v8049.apiCallAttempt = v8050; +const v8055 = []; +var v8056; +v8056 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8037.getPrototypeOf(v8053); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8057 = {}; +v8057.constructor = v8056; +v8056.prototype = v8057; +v8055.push(v8056); +v8049.apiCall = v8055; +v8048._events = v8049; +v8048.MONITOR_EVENTS_BUBBLE = v8051; +v8048.CALL_EVENTS_BUBBLE = v8056; +v8045.prototype = v8048; +v8045.__super__ = v299; +const v8058 = {}; +v8058[\\"2020-03-01\\"] = null; +v8045.services = v8058; +const v8059 = []; +v8059.push(\\"2020-03-01\\"); +v8045.apiVersions = v8059; +v8045.serviceIdentifier = \\"honeycode\\"; +v2.Honeycode = v8045; +var v8060; +var v8061 = v299; +var v8062 = v31; +v8060 = function () { if (v8061 !== v8062) { + return v8061.apply(this, arguments); +} }; +const v8063 = Object.create(v309); +v8063.constructor = v8060; +const v8064 = {}; +const v8065 = []; +var v8066; +var v8067 = v31; +var v8068 = v8063; +v8066 = function EVENTS_BUBBLE(event) { var baseClass = v8067.getPrototypeOf(v8068); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8069 = {}; +v8069.constructor = v8066; +v8066.prototype = v8069; +v8065.push(v8066); +v8064.apiCallAttempt = v8065; +const v8070 = []; +var v8071; +v8071 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8052.getPrototypeOf(v8068); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8072 = {}; +v8072.constructor = v8071; +v8071.prototype = v8072; +v8070.push(v8071); +v8064.apiCall = v8070; +v8063._events = v8064; +v8063.MONITOR_EVENTS_BUBBLE = v8066; +v8063.CALL_EVENTS_BUBBLE = v8071; +v8060.prototype = v8063; +v8060.__super__ = v299; +const v8073 = {}; +v8073[\\"2020-07-14\\"] = null; +v8060.services = v8073; +const v8074 = []; +v8074.push(\\"2020-07-14\\"); +v8060.apiVersions = v8074; +v8060.serviceIdentifier = \\"ivs\\"; +v2.IVS = v8060; +var v8075; +var v8076 = v299; +var v8077 = v31; +v8075 = function () { if (v8076 !== v8077) { + return v8076.apply(this, arguments); +} }; +const v8078 = Object.create(v309); +v8078.constructor = v8075; +const v8079 = {}; +const v8080 = []; +var v8081; +var v8082 = v31; +var v8083 = v8078; +v8081 = function EVENTS_BUBBLE(event) { var baseClass = v8082.getPrototypeOf(v8083); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8084 = {}; +v8084.constructor = v8081; +v8081.prototype = v8084; +v8080.push(v8081); +v8079.apiCallAttempt = v8080; +const v8085 = []; +var v8086; +v8086 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8067.getPrototypeOf(v8083); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8087 = {}; +v8087.constructor = v8086; +v8086.prototype = v8087; +v8085.push(v8086); +v8079.apiCall = v8085; +v8078._events = v8079; +v8078.MONITOR_EVENTS_BUBBLE = v8081; +v8078.CALL_EVENTS_BUBBLE = v8086; +v8075.prototype = v8078; +v8075.__super__ = v299; +const v8088 = {}; +v8088[\\"2019-09-01\\"] = null; +v8075.services = v8088; +const v8089 = []; +v8089.push(\\"2019-09-01\\"); +v8075.apiVersions = v8089; +v8075.serviceIdentifier = \\"braket\\"; +v2.Braket = v8075; +var v8090; +var v8091 = v299; +var v8092 = v31; +v8090 = function () { if (v8091 !== v8092) { + return v8091.apply(this, arguments); +} }; +const v8093 = Object.create(v309); +v8093.constructor = v8090; +const v8094 = {}; +const v8095 = []; +var v8096; +var v8097 = v31; +var v8098 = v8093; +v8096 = function EVENTS_BUBBLE(event) { var baseClass = v8097.getPrototypeOf(v8098); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8099 = {}; +v8099.constructor = v8096; +v8096.prototype = v8099; +v8095.push(v8096); +v8094.apiCallAttempt = v8095; +const v8100 = []; +var v8101; +v8101 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8082.getPrototypeOf(v8098); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8102 = {}; +v8102.constructor = v8101; +v8101.prototype = v8102; +v8100.push(v8101); +v8094.apiCall = v8100; +v8093._events = v8094; +v8093.MONITOR_EVENTS_BUBBLE = v8096; +v8093.CALL_EVENTS_BUBBLE = v8101; +v8090.prototype = v8093; +v8090.__super__ = v299; +const v8103 = {}; +v8103[\\"2020-06-15\\"] = null; +v8090.services = v8103; +const v8104 = []; +v8104.push(\\"2020-06-15\\"); +v8090.apiVersions = v8104; +v8090.serviceIdentifier = \\"identitystore\\"; +v2.IdentityStore = v8090; +var v8105; +var v8106 = v299; +var v8107 = v31; +v8105 = function () { if (v8106 !== v8107) { + return v8106.apply(this, arguments); +} }; +const v8108 = Object.create(v309); +v8108.constructor = v8105; +const v8109 = {}; +const v8110 = []; +var v8111; +var v8112 = v31; +var v8113 = v8108; +v8111 = function EVENTS_BUBBLE(event) { var baseClass = v8112.getPrototypeOf(v8113); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8114 = {}; +v8114.constructor = v8111; +v8111.prototype = v8114; +v8110.push(v8111); +v8109.apiCallAttempt = v8110; +const v8115 = []; +var v8116; +v8116 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8097.getPrototypeOf(v8113); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8117 = {}; +v8117.constructor = v8116; +v8116.prototype = v8117; +v8115.push(v8116); +v8109.apiCall = v8115; +v8108._events = v8109; +v8108.MONITOR_EVENTS_BUBBLE = v8111; +v8108.CALL_EVENTS_BUBBLE = v8116; +v8105.prototype = v8108; +v8105.__super__ = v299; +const v8118 = {}; +v8118[\\"2020-08-23\\"] = null; +v8105.services = v8118; +const v8119 = []; +v8119.push(\\"2020-08-23\\"); +v8105.apiVersions = v8119; +v8105.serviceIdentifier = \\"appflow\\"; +v2.Appflow = v8105; +var v8120; +var v8121 = v299; +var v8122 = v31; +v8120 = function () { if (v8121 !== v8122) { + return v8121.apply(this, arguments); +} }; +const v8123 = Object.create(v309); +v8123.constructor = v8120; +const v8124 = {}; +const v8125 = []; +var v8126; +var v8127 = v31; +var v8128 = v8123; +v8126 = function EVENTS_BUBBLE(event) { var baseClass = v8127.getPrototypeOf(v8128); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8129 = {}; +v8129.constructor = v8126; +v8126.prototype = v8129; +v8125.push(v8126); +v8124.apiCallAttempt = v8125; +const v8130 = []; +var v8131; +v8131 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8112.getPrototypeOf(v8128); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8132 = {}; +v8132.constructor = v8131; +v8131.prototype = v8132; +v8130.push(v8131); +v8124.apiCall = v8130; +v8123._events = v8124; +v8123.MONITOR_EVENTS_BUBBLE = v8126; +v8123.CALL_EVENTS_BUBBLE = v8131; +v8120.prototype = v8123; +v8120.__super__ = v299; +const v8133 = {}; +v8133[\\"2019-12-20\\"] = null; +v8120.services = v8133; +const v8134 = []; +v8134.push(\\"2019-12-20\\"); +v8120.apiVersions = v8134; +v8120.serviceIdentifier = \\"redshiftdata\\"; +v2.RedshiftData = v8120; +var v8135; +var v8136 = v299; +var v8137 = v31; +v8135 = function () { if (v8136 !== v8137) { + return v8136.apply(this, arguments); +} }; +const v8138 = Object.create(v309); +v8138.constructor = v8135; +const v8139 = {}; +const v8140 = []; +var v8141; +var v8142 = v31; +var v8143 = v8138; +v8141 = function EVENTS_BUBBLE(event) { var baseClass = v8142.getPrototypeOf(v8143); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8144 = {}; +v8144.constructor = v8141; +v8141.prototype = v8144; +v8140.push(v8141); +v8139.apiCallAttempt = v8140; +const v8145 = []; +var v8146; +v8146 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8127.getPrototypeOf(v8143); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8147 = {}; +v8147.constructor = v8146; +v8146.prototype = v8147; +v8145.push(v8146); +v8139.apiCall = v8145; +v8138._events = v8139; +v8138.MONITOR_EVENTS_BUBBLE = v8141; +v8138.CALL_EVENTS_BUBBLE = v8146; +v8135.prototype = v8138; +v8135.__super__ = v299; +const v8148 = {}; +v8148[\\"2020-07-20\\"] = null; +v8135.services = v8148; +const v8149 = []; +v8149.push(\\"2020-07-20\\"); +v8135.apiVersions = v8149; +v8135.serviceIdentifier = \\"ssoadmin\\"; +v2.SSOAdmin = v8135; +var v8150; +var v8151 = v299; +var v8152 = v31; +v8150 = function () { if (v8151 !== v8152) { + return v8151.apply(this, arguments); +} }; +const v8153 = Object.create(v309); +v8153.constructor = v8150; +const v8154 = {}; +const v8155 = []; +var v8156; +var v8157 = v31; +var v8158 = v8153; +v8156 = function EVENTS_BUBBLE(event) { var baseClass = v8157.getPrototypeOf(v8158); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8159 = {}; +v8159.constructor = v8156; +v8156.prototype = v8159; +v8155.push(v8156); +v8154.apiCallAttempt = v8155; +const v8160 = []; +var v8161; +v8161 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8142.getPrototypeOf(v8158); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8162 = {}; +v8162.constructor = v8161; +v8161.prototype = v8162; +v8160.push(v8161); +v8154.apiCall = v8160; +v8153._events = v8154; +v8153.MONITOR_EVENTS_BUBBLE = v8156; +v8153.CALL_EVENTS_BUBBLE = v8161; +v8150.prototype = v8153; +v8150.__super__ = v299; +const v8163 = {}; +v8163[\\"2018-11-01\\"] = null; +v8150.services = v8163; +const v8164 = []; +v8164.push(\\"2018-11-01\\"); +v8150.apiVersions = v8164; +v8150.serviceIdentifier = \\"timestreamquery\\"; +v2.TimestreamQuery = v8150; +var v8165; +var v8166 = v299; +var v8167 = v31; +v8165 = function () { if (v8166 !== v8167) { + return v8166.apply(this, arguments); +} }; +const v8168 = Object.create(v309); +v8168.constructor = v8165; +const v8169 = {}; +const v8170 = []; +var v8171; +var v8172 = v31; +var v8173 = v8168; +v8171 = function EVENTS_BUBBLE(event) { var baseClass = v8172.getPrototypeOf(v8173); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8174 = {}; +v8174.constructor = v8171; +v8171.prototype = v8174; +v8170.push(v8171); +v8169.apiCallAttempt = v8170; +const v8175 = []; +var v8176; +v8176 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8157.getPrototypeOf(v8173); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8177 = {}; +v8177.constructor = v8176; +v8176.prototype = v8177; +v8175.push(v8176); +v8169.apiCall = v8175; +v8168._events = v8169; +v8168.MONITOR_EVENTS_BUBBLE = v8171; +v8168.CALL_EVENTS_BUBBLE = v8176; +v8165.prototype = v8168; +v8165.__super__ = v299; +const v8178 = {}; +v8178[\\"2018-11-01\\"] = null; +v8165.services = v8178; +const v8179 = []; +v8179.push(\\"2018-11-01\\"); +v8165.apiVersions = v8179; +v8165.serviceIdentifier = \\"timestreamwrite\\"; +v2.TimestreamWrite = v8165; +var v8180; +var v8181 = v299; +var v8182 = v31; +v8180 = function () { if (v8181 !== v8182) { + return v8181.apply(this, arguments); +} }; +const v8183 = Object.create(v309); +v8183.constructor = v8180; +const v8184 = {}; +const v8185 = []; +var v8186; +var v8187 = v31; +var v8188 = v8183; +v8186 = function EVENTS_BUBBLE(event) { var baseClass = v8187.getPrototypeOf(v8188); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8189 = {}; +v8189.constructor = v8186; +v8186.prototype = v8189; +v8185.push(v8186); +v8184.apiCallAttempt = v8185; +const v8190 = []; +var v8191; +v8191 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8172.getPrototypeOf(v8188); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8192 = {}; +v8192.constructor = v8191; +v8191.prototype = v8192; +v8190.push(v8191); +v8184.apiCall = v8190; +v8183._events = v8184; +v8183.MONITOR_EVENTS_BUBBLE = v8186; +v8183.CALL_EVENTS_BUBBLE = v8191; +v8180.prototype = v8183; +v8180.__super__ = v299; +const v8193 = {}; +v8193[\\"2017-07-25\\"] = null; +v8180.services = v8193; +const v8194 = []; +v8194.push(\\"2017-07-25\\"); +v8180.apiVersions = v8194; +v8180.serviceIdentifier = \\"s3outposts\\"; +v2.S3Outposts = v8180; +var v8195; +var v8196 = v299; +var v8197 = v31; +v8195 = function () { if (v8196 !== v8197) { + return v8196.apply(this, arguments); +} }; +const v8198 = Object.create(v309); +v8198.constructor = v8195; +const v8199 = {}; +const v8200 = []; +var v8201; +var v8202 = v31; +var v8203 = v8198; +v8201 = function EVENTS_BUBBLE(event) { var baseClass = v8202.getPrototypeOf(v8203); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8204 = {}; +v8204.constructor = v8201; +v8201.prototype = v8204; +v8200.push(v8201); +v8199.apiCallAttempt = v8200; +const v8205 = []; +var v8206; +v8206 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8187.getPrototypeOf(v8203); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8207 = {}; +v8207.constructor = v8206; +v8206.prototype = v8207; +v8205.push(v8206); +v8199.apiCall = v8205; +v8198._events = v8199; +v8198.MONITOR_EVENTS_BUBBLE = v8201; +v8198.CALL_EVENTS_BUBBLE = v8206; +v8195.prototype = v8198; +v8195.__super__ = v299; +const v8208 = {}; +v8208[\\"2017-07-25\\"] = null; +v8195.services = v8208; +const v8209 = []; +v8209.push(\\"2017-07-25\\"); +v8195.apiVersions = v8209; +v8195.serviceIdentifier = \\"databrew\\"; +v2.DataBrew = v8195; +var v8210; +var v8211 = v299; +var v8212 = v31; +v8210 = function () { if (v8211 !== v8212) { + return v8211.apply(this, arguments); +} }; +const v8213 = Object.create(v309); +v8213.constructor = v8210; +const v8214 = {}; +const v8215 = []; +var v8216; +var v8217 = v31; +var v8218 = v8213; +v8216 = function EVENTS_BUBBLE(event) { var baseClass = v8217.getPrototypeOf(v8218); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8219 = {}; +v8219.constructor = v8216; +v8216.prototype = v8219; +v8215.push(v8216); +v8214.apiCallAttempt = v8215; +const v8220 = []; +var v8221; +v8221 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8202.getPrototypeOf(v8218); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8222 = {}; +v8222.constructor = v8221; +v8221.prototype = v8222; +v8220.push(v8221); +v8214.apiCall = v8220; +v8213._events = v8214; +v8213.MONITOR_EVENTS_BUBBLE = v8216; +v8213.CALL_EVENTS_BUBBLE = v8221; +v8210.prototype = v8213; +v8210.__super__ = v299; +const v8223 = {}; +v8223[\\"2020-06-24\\"] = null; +v8210.services = v8223; +const v8224 = []; +v8224.push(\\"2020-06-24\\"); +v8210.apiVersions = v8224; +v8210.serviceIdentifier = \\"servicecatalogappregistry\\"; +v2.ServiceCatalogAppRegistry = v8210; +var v8225; +var v8226 = v299; +var v8227 = v31; +v8225 = function () { if (v8226 !== v8227) { + return v8226.apply(this, arguments); +} }; +const v8228 = Object.create(v309); +v8228.constructor = v8225; +const v8229 = {}; +const v8230 = []; +var v8231; +var v8232 = v31; +var v8233 = v8228; +v8231 = function EVENTS_BUBBLE(event) { var baseClass = v8232.getPrototypeOf(v8233); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8234 = {}; +v8234.constructor = v8231; +v8231.prototype = v8234; +v8230.push(v8231); +v8229.apiCallAttempt = v8230; +const v8235 = []; +var v8236; +v8236 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8217.getPrototypeOf(v8233); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8237 = {}; +v8237.constructor = v8236; +v8236.prototype = v8237; +v8235.push(v8236); +v8229.apiCall = v8235; +v8228._events = v8229; +v8228.MONITOR_EVENTS_BUBBLE = v8231; +v8228.CALL_EVENTS_BUBBLE = v8236; +v8225.prototype = v8228; +v8225.__super__ = v299; +const v8238 = {}; +v8238[\\"2020-11-12\\"] = null; +v8225.services = v8238; +const v8239 = []; +v8239.push(\\"2020-11-12\\"); +v8225.apiVersions = v8239; +v8225.serviceIdentifier = \\"networkfirewall\\"; +v2.NetworkFirewall = v8225; +var v8240; +var v8241 = v299; +var v8242 = v31; +v8240 = function () { if (v8241 !== v8242) { + return v8241.apply(this, arguments); +} }; +const v8243 = Object.create(v309); +v8243.constructor = v8240; +const v8244 = {}; +const v8245 = []; +var v8246; +var v8247 = v31; +var v8248 = v8243; +v8246 = function EVENTS_BUBBLE(event) { var baseClass = v8247.getPrototypeOf(v8248); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8249 = {}; +v8249.constructor = v8246; +v8246.prototype = v8249; +v8245.push(v8246); +v8244.apiCallAttempt = v8245; +const v8250 = []; +var v8251; +v8251 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8232.getPrototypeOf(v8248); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8252 = {}; +v8252.constructor = v8251; +v8251.prototype = v8252; +v8250.push(v8251); +v8244.apiCall = v8250; +v8243._events = v8244; +v8243.MONITOR_EVENTS_BUBBLE = v8246; +v8243.CALL_EVENTS_BUBBLE = v8251; +v8240.prototype = v8243; +v8240.__super__ = v299; +const v8253 = {}; +v8253[\\"2020-07-01\\"] = null; +v8240.services = v8253; +const v8254 = []; +v8254.push(\\"2020-07-01\\"); +v8240.apiVersions = v8254; +v8240.serviceIdentifier = \\"mwaa\\"; +v2.MWAA = v8240; +var v8255; +var v8256 = v299; +var v8257 = v31; +v8255 = function () { if (v8256 !== v8257) { + return v8256.apply(this, arguments); +} }; +const v8258 = Object.create(v309); +v8258.constructor = v8255; +const v8259 = {}; +const v8260 = []; +var v8261; +var v8262 = v31; +var v8263 = v8258; +v8261 = function EVENTS_BUBBLE(event) { var baseClass = v8262.getPrototypeOf(v8263); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8264 = {}; +v8264.constructor = v8261; +v8261.prototype = v8264; +v8260.push(v8261); +v8259.apiCallAttempt = v8260; +const v8265 = []; +var v8266; +v8266 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8247.getPrototypeOf(v8263); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8267 = {}; +v8267.constructor = v8266; +v8266.prototype = v8267; +v8265.push(v8266); +v8259.apiCall = v8265; +v8258._events = v8259; +v8258.MONITOR_EVENTS_BUBBLE = v8261; +v8258.CALL_EVENTS_BUBBLE = v8266; +v8255.prototype = v8258; +v8255.__super__ = v299; +const v8268 = {}; +v8268[\\"2020-08-11\\"] = null; +v8255.services = v8268; +const v8269 = []; +v8269.push(\\"2020-08-11\\"); +v8255.apiVersions = v8269; +v8255.serviceIdentifier = \\"amplifybackend\\"; +v2.AmplifyBackend = v8255; +var v8270; +var v8271 = v299; +var v8272 = v31; +v8270 = function () { if (v8271 !== v8272) { + return v8271.apply(this, arguments); +} }; +const v8273 = Object.create(v309); +v8273.constructor = v8270; +const v8274 = {}; +const v8275 = []; +var v8276; +var v8277 = v31; +var v8278 = v8273; +v8276 = function EVENTS_BUBBLE(event) { var baseClass = v8277.getPrototypeOf(v8278); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8279 = {}; +v8279.constructor = v8276; +v8276.prototype = v8279; +v8275.push(v8276); +v8274.apiCallAttempt = v8275; +const v8280 = []; +var v8281; +v8281 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8262.getPrototypeOf(v8278); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8282 = {}; +v8282.constructor = v8281; +v8281.prototype = v8282; +v8280.push(v8281); +v8274.apiCall = v8280; +v8273._events = v8274; +v8273.MONITOR_EVENTS_BUBBLE = v8276; +v8273.CALL_EVENTS_BUBBLE = v8281; +v8270.prototype = v8273; +v8270.__super__ = v299; +const v8283 = {}; +v8283[\\"2020-07-29\\"] = null; +v8270.services = v8283; +const v8284 = []; +v8284.push(\\"2020-07-29\\"); +v8270.apiVersions = v8284; +v8270.serviceIdentifier = \\"appintegrations\\"; +v2.AppIntegrations = v8270; +var v8285; +var v8286 = v299; +var v8287 = v31; +v8285 = function () { if (v8286 !== v8287) { + return v8286.apply(this, arguments); +} }; +const v8288 = Object.create(v309); +v8288.constructor = v8285; +const v8289 = {}; +const v8290 = []; +var v8291; +var v8292 = v31; +var v8293 = v8288; +v8291 = function EVENTS_BUBBLE(event) { var baseClass = v8292.getPrototypeOf(v8293); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8294 = {}; +v8294.constructor = v8291; +v8291.prototype = v8294; +v8290.push(v8291); +v8289.apiCallAttempt = v8290; +const v8295 = []; +var v8296; +v8296 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8277.getPrototypeOf(v8293); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8297 = {}; +v8297.constructor = v8296; +v8296.prototype = v8297; +v8295.push(v8296); +v8289.apiCall = v8295; +v8288._events = v8289; +v8288.MONITOR_EVENTS_BUBBLE = v8291; +v8288.CALL_EVENTS_BUBBLE = v8296; +v8285.prototype = v8288; +v8285.__super__ = v299; +const v8298 = {}; +v8298[\\"2020-08-21\\"] = null; +v8285.services = v8298; +const v8299 = []; +v8299.push(\\"2020-08-21\\"); +v8285.apiVersions = v8299; +v8285.serviceIdentifier = \\"connectcontactlens\\"; +v2.ConnectContactLens = v8285; +var v8300; +var v8301 = v299; +var v8302 = v31; +v8300 = function () { if (v8301 !== v8302) { + return v8301.apply(this, arguments); +} }; +const v8303 = Object.create(v309); +v8303.constructor = v8300; +const v8304 = {}; +const v8305 = []; +var v8306; +var v8307 = v31; +var v8308 = v8303; +v8306 = function EVENTS_BUBBLE(event) { var baseClass = v8307.getPrototypeOf(v8308); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8309 = {}; +v8309.constructor = v8306; +v8306.prototype = v8309; +v8305.push(v8306); +v8304.apiCallAttempt = v8305; +const v8310 = []; +var v8311; +v8311 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8292.getPrototypeOf(v8308); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8312 = {}; +v8312.constructor = v8311; +v8311.prototype = v8312; +v8310.push(v8311); +v8304.apiCall = v8310; +v8303._events = v8304; +v8303.MONITOR_EVENTS_BUBBLE = v8306; +v8303.CALL_EVENTS_BUBBLE = v8311; +v8300.prototype = v8303; +v8300.__super__ = v299; +const v8313 = {}; +v8313[\\"2020-12-01\\"] = null; +v8300.services = v8313; +const v8314 = []; +v8314.push(\\"2020-12-01\\"); +v8300.apiVersions = v8314; +v8300.serviceIdentifier = \\"devopsguru\\"; +v2.DevOpsGuru = v8300; +var v8315; +var v8316 = v299; +var v8317 = v31; +v8315 = function () { if (v8316 !== v8317) { + return v8316.apply(this, arguments); +} }; +const v8318 = Object.create(v309); +v8318.constructor = v8315; +const v8319 = {}; +const v8320 = []; +var v8321; +var v8322 = v31; +var v8323 = v8318; +v8321 = function EVENTS_BUBBLE(event) { var baseClass = v8322.getPrototypeOf(v8323); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8324 = {}; +v8324.constructor = v8321; +v8321.prototype = v8324; +v8320.push(v8321); +v8319.apiCallAttempt = v8320; +const v8325 = []; +var v8326; +v8326 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8307.getPrototypeOf(v8323); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8327 = {}; +v8327.constructor = v8326; +v8326.prototype = v8327; +v8325.push(v8326); +v8319.apiCall = v8325; +v8318._events = v8319; +v8318.MONITOR_EVENTS_BUBBLE = v8321; +v8318.CALL_EVENTS_BUBBLE = v8326; +v8315.prototype = v8318; +v8315.__super__ = v299; +const v8328 = {}; +v8328[\\"2020-10-30\\"] = null; +v8315.services = v8328; +const v8329 = []; +v8329.push(\\"2020-10-30\\"); +v8315.apiVersions = v8329; +v8315.serviceIdentifier = \\"ecrpublic\\"; +v2.ECRPUBLIC = v8315; +var v8330; +var v8331 = v299; +var v8332 = v31; +v8330 = function () { if (v8331 !== v8332) { + return v8331.apply(this, arguments); +} }; +const v8333 = Object.create(v309); +v8333.constructor = v8330; +const v8334 = {}; +const v8335 = []; +var v8336; +var v8337 = v31; +var v8338 = v8333; +v8336 = function EVENTS_BUBBLE(event) { var baseClass = v8337.getPrototypeOf(v8338); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8339 = {}; +v8339.constructor = v8336; +v8336.prototype = v8339; +v8335.push(v8336); +v8334.apiCallAttempt = v8335; +const v8340 = []; +var v8341; +v8341 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8322.getPrototypeOf(v8338); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8342 = {}; +v8342.constructor = v8341; +v8341.prototype = v8342; +v8340.push(v8341); +v8334.apiCall = v8340; +v8333._events = v8334; +v8333.MONITOR_EVENTS_BUBBLE = v8336; +v8333.CALL_EVENTS_BUBBLE = v8341; +v8330.prototype = v8333; +v8330.__super__ = v299; +const v8343 = {}; +v8343[\\"2020-11-20\\"] = null; +v8330.services = v8343; +const v8344 = []; +v8344.push(\\"2020-11-20\\"); +v8330.apiVersions = v8344; +v8330.serviceIdentifier = \\"lookoutvision\\"; +v2.LookoutVision = v8330; +var v8345; +var v8346 = v299; +var v8347 = v31; +v8345 = function () { if (v8346 !== v8347) { + return v8346.apply(this, arguments); +} }; +const v8348 = Object.create(v309); +v8348.constructor = v8345; +const v8349 = {}; +const v8350 = []; +var v8351; +var v8352 = v31; +var v8353 = v8348; +v8351 = function EVENTS_BUBBLE(event) { var baseClass = v8352.getPrototypeOf(v8353); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8354 = {}; +v8354.constructor = v8351; +v8351.prototype = v8354; +v8350.push(v8351); +v8349.apiCallAttempt = v8350; +const v8355 = []; +var v8356; +v8356 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8337.getPrototypeOf(v8353); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8357 = {}; +v8357.constructor = v8356; +v8356.prototype = v8357; +v8355.push(v8356); +v8349.apiCall = v8355; +v8348._events = v8349; +v8348.MONITOR_EVENTS_BUBBLE = v8351; +v8348.CALL_EVENTS_BUBBLE = v8356; +v8345.prototype = v8348; +v8345.__super__ = v299; +const v8358 = {}; +v8358[\\"2020-07-01\\"] = null; +v8345.services = v8358; +const v8359 = []; +v8359.push(\\"2020-07-01\\"); +v8345.apiVersions = v8359; +v8345.serviceIdentifier = \\"sagemakerfeaturestoreruntime\\"; +v2.SageMakerFeatureStoreRuntime = v8345; +var v8360; +var v8361 = v299; +var v8362 = v31; +v8360 = function () { if (v8361 !== v8362) { + return v8361.apply(this, arguments); +} }; +const v8363 = Object.create(v309); +v8363.constructor = v8360; +const v8364 = {}; +const v8365 = []; +var v8366; +var v8367 = v31; +var v8368 = v8363; +v8366 = function EVENTS_BUBBLE(event) { var baseClass = v8367.getPrototypeOf(v8368); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8369 = {}; +v8369.constructor = v8366; +v8366.prototype = v8369; +v8365.push(v8366); +v8364.apiCallAttempt = v8365; +const v8370 = []; +var v8371; +v8371 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8352.getPrototypeOf(v8368); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8372 = {}; +v8372.constructor = v8371; +v8371.prototype = v8372; +v8370.push(v8371); +v8364.apiCall = v8370; +v8363._events = v8364; +v8363.MONITOR_EVENTS_BUBBLE = v8366; +v8363.CALL_EVENTS_BUBBLE = v8371; +v8360.prototype = v8363; +v8360.__super__ = v299; +const v8373 = {}; +v8373[\\"2020-08-15\\"] = null; +v8360.services = v8373; +const v8374 = []; +v8374.push(\\"2020-08-15\\"); +v8360.apiVersions = v8374; +v8360.serviceIdentifier = \\"customerprofiles\\"; +v2.CustomerProfiles = v8360; +var v8375; +var v8376 = v299; +var v8377 = v31; +v8375 = function () { if (v8376 !== v8377) { + return v8376.apply(this, arguments); +} }; +const v8378 = Object.create(v309); +v8378.constructor = v8375; +const v8379 = {}; +const v8380 = []; +var v8381; +var v8382 = v31; +var v8383 = v8378; +v8381 = function EVENTS_BUBBLE(event) { var baseClass = v8382.getPrototypeOf(v8383); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8384 = {}; +v8384.constructor = v8381; +v8381.prototype = v8384; +v8380.push(v8381); +v8379.apiCallAttempt = v8380; +const v8385 = []; +var v8386; +v8386 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8367.getPrototypeOf(v8383); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8387 = {}; +v8387.constructor = v8386; +v8386.prototype = v8387; +v8385.push(v8386); +v8379.apiCall = v8385; +v8378._events = v8379; +v8378.MONITOR_EVENTS_BUBBLE = v8381; +v8378.CALL_EVENTS_BUBBLE = v8386; +v8375.prototype = v8378; +v8375.__super__ = v299; +const v8388 = {}; +v8388[\\"2017-07-25\\"] = null; +v8375.services = v8388; +const v8389 = []; +v8389.push(\\"2017-07-25\\"); +v8375.apiVersions = v8389; +v8375.serviceIdentifier = \\"auditmanager\\"; +v2.AuditManager = v8375; +var v8390; +var v8391 = v299; +var v8392 = v31; +v8390 = function () { if (v8391 !== v8392) { + return v8391.apply(this, arguments); +} }; +const v8393 = Object.create(v309); +v8393.constructor = v8390; +const v8394 = {}; +const v8395 = []; +var v8396; +var v8397 = v31; +var v8398 = v8393; +v8396 = function EVENTS_BUBBLE(event) { var baseClass = v8397.getPrototypeOf(v8398); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8399 = {}; +v8399.constructor = v8396; +v8396.prototype = v8399; +v8395.push(v8396); +v8394.apiCallAttempt = v8395; +const v8400 = []; +var v8401; +v8401 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8382.getPrototypeOf(v8398); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8402 = {}; +v8402.constructor = v8401; +v8401.prototype = v8402; +v8400.push(v8401); +v8394.apiCall = v8400; +v8393._events = v8394; +v8393.MONITOR_EVENTS_BUBBLE = v8396; +v8393.CALL_EVENTS_BUBBLE = v8401; +v8390.prototype = v8393; +v8390.__super__ = v299; +const v8403 = {}; +v8403[\\"2020-10-01\\"] = null; +v8390.services = v8403; +const v8404 = []; +v8404.push(\\"2020-10-01\\"); +v8390.apiVersions = v8404; +v8390.serviceIdentifier = \\"emrcontainers\\"; +v2.EMRcontainers = v8390; +var v8405; +var v8406 = v299; +var v8407 = v31; +v8405 = function () { if (v8406 !== v8407) { + return v8406.apply(this, arguments); +} }; +const v8408 = Object.create(v309); +v8408.constructor = v8405; +const v8409 = {}; +const v8410 = []; +var v8411; +var v8412 = v31; +var v8413 = v8408; +v8411 = function EVENTS_BUBBLE(event) { var baseClass = v8412.getPrototypeOf(v8413); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8414 = {}; +v8414.constructor = v8411; +v8411.prototype = v8414; +v8410.push(v8411); +v8409.apiCallAttempt = v8410; +const v8415 = []; +var v8416; +v8416 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8397.getPrototypeOf(v8413); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8417 = {}; +v8417.constructor = v8416; +v8416.prototype = v8417; +v8415.push(v8416); +v8409.apiCall = v8415; +v8408._events = v8409; +v8408.MONITOR_EVENTS_BUBBLE = v8411; +v8408.CALL_EVENTS_BUBBLE = v8416; +v8405.prototype = v8408; +v8405.__super__ = v299; +const v8418 = {}; +v8418[\\"2017-07-01\\"] = null; +v8405.services = v8418; +const v8419 = []; +v8419.push(\\"2017-07-01\\"); +v8405.apiVersions = v8419; +v8405.serviceIdentifier = \\"healthlake\\"; +v2.HealthLake = v8405; +var v8420; +var v8421 = v299; +var v8422 = v31; +v8420 = function () { if (v8421 !== v8422) { + return v8421.apply(this, arguments); +} }; +const v8423 = Object.create(v309); +v8423.constructor = v8420; +const v8424 = {}; +const v8425 = []; +var v8426; +var v8427 = v31; +var v8428 = v8423; +v8426 = function EVENTS_BUBBLE(event) { var baseClass = v8427.getPrototypeOf(v8428); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8429 = {}; +v8429.constructor = v8426; +v8426.prototype = v8429; +v8425.push(v8426); +v8424.apiCallAttempt = v8425; +const v8430 = []; +var v8431; +v8431 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8412.getPrototypeOf(v8428); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8432 = {}; +v8432.constructor = v8431; +v8431.prototype = v8432; +v8430.push(v8431); +v8424.apiCall = v8430; +v8423._events = v8424; +v8423.MONITOR_EVENTS_BUBBLE = v8426; +v8423.CALL_EVENTS_BUBBLE = v8431; +v8420.prototype = v8423; +v8420.__super__ = v299; +const v8433 = {}; +v8433[\\"2020-09-23\\"] = null; +v8420.services = v8433; +const v8434 = []; +v8434.push(\\"2020-09-23\\"); +v8420.apiVersions = v8434; +v8420.serviceIdentifier = \\"sagemakeredge\\"; +v2.SagemakerEdge = v8420; +var v8435; +var v8436 = v299; +var v8437 = v31; +v8435 = function () { if (v8436 !== v8437) { + return v8436.apply(this, arguments); +} }; +const v8438 = Object.create(v309); +v8438.constructor = v8435; +const v8439 = {}; +const v8440 = []; +var v8441; +var v8442 = v31; +var v8443 = v8438; +v8441 = function EVENTS_BUBBLE(event) { var baseClass = v8442.getPrototypeOf(v8443); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8444 = {}; +v8444.constructor = v8441; +v8441.prototype = v8444; +v8440.push(v8441); +v8439.apiCallAttempt = v8440; +const v8445 = []; +var v8446; +v8446 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8427.getPrototypeOf(v8443); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8447 = {}; +v8447.constructor = v8446; +v8446.prototype = v8447; +v8445.push(v8446); +v8439.apiCall = v8445; +v8438._events = v8439; +v8438.MONITOR_EVENTS_BUBBLE = v8441; +v8438.CALL_EVENTS_BUBBLE = v8446; +v8435.prototype = v8438; +v8435.__super__ = v299; +const v8448 = {}; +v8448[\\"2020-08-01\\"] = null; +v8435.services = v8448; +const v8449 = []; +v8449.push(\\"2020-08-01\\"); +v8435.apiVersions = v8449; +v8435.serviceIdentifier = \\"amp\\"; +v2.Amp = v8435; +var v8450; +var v8451 = v299; +var v8452 = v31; +v8450 = function () { if (v8451 !== v8452) { + return v8451.apply(this, arguments); +} }; +const v8453 = Object.create(v309); +v8453.constructor = v8450; +const v8454 = {}; +const v8455 = []; +var v8456; +var v8457 = v31; +var v8458 = v8453; +v8456 = function EVENTS_BUBBLE(event) { var baseClass = v8457.getPrototypeOf(v8458); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8459 = {}; +v8459.constructor = v8456; +v8456.prototype = v8459; +v8455.push(v8456); +v8454.apiCallAttempt = v8455; +const v8460 = []; +var v8461; +v8461 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8442.getPrototypeOf(v8458); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8462 = {}; +v8462.constructor = v8461; +v8461.prototype = v8462; +v8460.push(v8461); +v8454.apiCall = v8460; +v8453._events = v8454; +v8453.MONITOR_EVENTS_BUBBLE = v8456; +v8453.CALL_EVENTS_BUBBLE = v8461; +v8450.prototype = v8453; +v8450.__super__ = v299; +const v8463 = {}; +v8463[\\"2020-11-30\\"] = null; +v8450.services = v8463; +const v8464 = []; +v8464.push(\\"2020-11-30\\"); +v8450.apiVersions = v8464; +v8450.serviceIdentifier = \\"greengrassv2\\"; +v2.GreengrassV2 = v8450; +var v8465; +var v8466 = v299; +var v8467 = v31; +v8465 = function () { if (v8466 !== v8467) { + return v8466.apply(this, arguments); +} }; +const v8468 = Object.create(v309); +v8468.constructor = v8465; +const v8469 = {}; +const v8470 = []; +var v8471; +var v8472 = v31; +var v8473 = v8468; +v8471 = function EVENTS_BUBBLE(event) { var baseClass = v8472.getPrototypeOf(v8473); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8474 = {}; +v8474.constructor = v8471; +v8471.prototype = v8474; +v8470.push(v8471); +v8469.apiCallAttempt = v8470; +const v8475 = []; +var v8476; +v8476 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8457.getPrototypeOf(v8473); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8477 = {}; +v8477.constructor = v8476; +v8476.prototype = v8477; +v8475.push(v8476); +v8469.apiCall = v8475; +v8468._events = v8469; +v8468.MONITOR_EVENTS_BUBBLE = v8471; +v8468.CALL_EVENTS_BUBBLE = v8476; +v8465.prototype = v8468; +v8465.__super__ = v299; +const v8478 = {}; +v8478[\\"2020-09-18\\"] = null; +v8465.services = v8478; +const v8479 = []; +v8479.push(\\"2020-09-18\\"); +v8465.apiVersions = v8479; +v8465.serviceIdentifier = \\"iotdeviceadvisor\\"; +v2.IotDeviceAdvisor = v8465; +var v8480; +var v8481 = v299; +var v8482 = v31; +v8480 = function () { if (v8481 !== v8482) { + return v8481.apply(this, arguments); +} }; +const v8483 = Object.create(v309); +v8483.constructor = v8480; +const v8484 = {}; +const v8485 = []; +var v8486; +var v8487 = v31; +var v8488 = v8483; +v8486 = function EVENTS_BUBBLE(event) { var baseClass = v8487.getPrototypeOf(v8488); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8489 = {}; +v8489.constructor = v8486; +v8486.prototype = v8489; +v8485.push(v8486); +v8484.apiCallAttempt = v8485; +const v8490 = []; +var v8491; +v8491 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8472.getPrototypeOf(v8488); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8492 = {}; +v8492.constructor = v8491; +v8491.prototype = v8492; +v8490.push(v8491); +v8484.apiCall = v8490; +v8483._events = v8484; +v8483.MONITOR_EVENTS_BUBBLE = v8486; +v8483.CALL_EVENTS_BUBBLE = v8491; +v8480.prototype = v8483; +v8480.__super__ = v299; +const v8493 = {}; +v8493[\\"2020-11-03\\"] = null; +v8480.services = v8493; +const v8494 = []; +v8494.push(\\"2020-11-03\\"); +v8480.apiVersions = v8494; +v8480.serviceIdentifier = \\"iotfleethub\\"; +v2.IoTFleetHub = v8480; +var v8495; +var v8496 = v299; +var v8497 = v31; +v8495 = function () { if (v8496 !== v8497) { + return v8496.apply(this, arguments); +} }; +const v8498 = Object.create(v309); +v8498.constructor = v8495; +const v8499 = {}; +const v8500 = []; +var v8501; +var v8502 = v31; +var v8503 = v8498; +v8501 = function EVENTS_BUBBLE(event) { var baseClass = v8502.getPrototypeOf(v8503); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8504 = {}; +v8504.constructor = v8501; +v8501.prototype = v8504; +v8500.push(v8501); +v8499.apiCallAttempt = v8500; +const v8505 = []; +var v8506; +v8506 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8487.getPrototypeOf(v8503); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8507 = {}; +v8507.constructor = v8506; +v8506.prototype = v8507; +v8505.push(v8506); +v8499.apiCall = v8505; +v8498._events = v8499; +v8498.MONITOR_EVENTS_BUBBLE = v8501; +v8498.CALL_EVENTS_BUBBLE = v8506; +v8495.prototype = v8498; +v8495.__super__ = v299; +const v8508 = {}; +v8508[\\"2020-11-22\\"] = null; +v8495.services = v8508; +const v8509 = []; +v8509.push(\\"2020-11-22\\"); +v8495.apiVersions = v8509; +v8495.serviceIdentifier = \\"iotwireless\\"; +v2.IoTWireless = v8495; +var v8510; +var v8511 = v299; +var v8512 = v31; +v8510 = function () { if (v8511 !== v8512) { + return v8511.apply(this, arguments); +} }; +const v8513 = Object.create(v309); +v8513.constructor = v8510; +const v8514 = {}; +const v8515 = []; +var v8516; +var v8517 = v31; +var v8518 = v8513; +v8516 = function EVENTS_BUBBLE(event) { var baseClass = v8517.getPrototypeOf(v8518); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8519 = {}; +v8519.constructor = v8516; +v8516.prototype = v8519; +v8515.push(v8516); +v8514.apiCallAttempt = v8515; +const v8520 = []; +var v8521; +v8521 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8502.getPrototypeOf(v8518); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8522 = {}; +v8522.constructor = v8521; +v8521.prototype = v8522; +v8520.push(v8521); +v8514.apiCall = v8520; +v8513._events = v8514; +v8513.MONITOR_EVENTS_BUBBLE = v8516; +v8513.CALL_EVENTS_BUBBLE = v8521; +v8510.prototype = v8513; +v8510.__super__ = v299; +const v8523 = {}; +v8523[\\"2020-11-19\\"] = null; +v8510.services = v8523; +const v8524 = []; +v8524.push(\\"2020-11-19\\"); +v8510.apiVersions = v8524; +v8510.serviceIdentifier = \\"location\\"; +v2.Location = v8510; +var v8525; +var v8526 = v299; +var v8527 = v31; +v8525 = function () { if (v8526 !== v8527) { + return v8526.apply(this, arguments); +} }; +const v8528 = Object.create(v309); +v8528.constructor = v8525; +const v8529 = {}; +const v8530 = []; +var v8531; +var v8532 = v31; +var v8533 = v8528; +v8531 = function EVENTS_BUBBLE(event) { var baseClass = v8532.getPrototypeOf(v8533); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8534 = {}; +v8534.constructor = v8531; +v8531.prototype = v8534; +v8530.push(v8531); +v8529.apiCallAttempt = v8530; +const v8535 = []; +var v8536; +v8536 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8517.getPrototypeOf(v8533); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8537 = {}; +v8537.constructor = v8536; +v8536.prototype = v8537; +v8535.push(v8536); +v8529.apiCall = v8535; +v8528._events = v8529; +v8528.MONITOR_EVENTS_BUBBLE = v8531; +v8528.CALL_EVENTS_BUBBLE = v8536; +v8525.prototype = v8528; +v8525.__super__ = v299; +const v8538 = {}; +v8538[\\"2020-03-31\\"] = null; +v8525.services = v8538; +const v8539 = []; +v8539.push(\\"2020-03-31\\"); +v8525.apiVersions = v8539; +v8525.serviceIdentifier = \\"wellarchitected\\"; +v2.WellArchitected = v8525; +var v8540; +var v8541 = v299; +var v8542 = v31; +v8540 = function () { if (v8541 !== v8542) { + return v8541.apply(this, arguments); +} }; +const v8543 = Object.create(v309); +v8543.constructor = v8540; +const v8544 = {}; +const v8545 = []; +var v8546; +var v8547 = v31; +var v8548 = v8543; +v8546 = function EVENTS_BUBBLE(event) { var baseClass = v8547.getPrototypeOf(v8548); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8549 = {}; +v8549.constructor = v8546; +v8546.prototype = v8549; +v8545.push(v8546); +v8544.apiCallAttempt = v8545; +const v8550 = []; +var v8551; +v8551 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8532.getPrototypeOf(v8548); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8552 = {}; +v8552.constructor = v8551; +v8551.prototype = v8552; +v8550.push(v8551); +v8544.apiCall = v8550; +v8543._events = v8544; +v8543.MONITOR_EVENTS_BUBBLE = v8546; +v8543.CALL_EVENTS_BUBBLE = v8551; +v8540.prototype = v8543; +v8540.__super__ = v299; +const v8553 = {}; +v8553[\\"2020-08-07\\"] = null; +v8540.services = v8553; +const v8554 = []; +v8554.push(\\"2020-08-07\\"); +v8540.apiVersions = v8554; +v8540.serviceIdentifier = \\"lexmodelsv2\\"; +v2.LexModelsV2 = v8540; +var v8555; +var v8556 = v299; +var v8557 = v31; +v8555 = function () { if (v8556 !== v8557) { + return v8556.apply(this, arguments); +} }; +const v8558 = Object.create(v309); +v8558.constructor = v8555; +const v8559 = {}; +const v8560 = []; +var v8561; +var v8562 = v31; +var v8563 = v8558; +v8561 = function EVENTS_BUBBLE(event) { var baseClass = v8562.getPrototypeOf(v8563); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8564 = {}; +v8564.constructor = v8561; +v8561.prototype = v8564; +v8560.push(v8561); +v8559.apiCallAttempt = v8560; +const v8565 = []; +var v8566; +v8566 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8547.getPrototypeOf(v8563); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8567 = {}; +v8567.constructor = v8566; +v8566.prototype = v8567; +v8565.push(v8566); +v8559.apiCall = v8565; +v8558._events = v8559; +v8558.MONITOR_EVENTS_BUBBLE = v8561; +v8558.CALL_EVENTS_BUBBLE = v8566; +v8555.prototype = v8558; +v8555.__super__ = v299; +const v8568 = {}; +v8568[\\"2020-08-07\\"] = null; +v8555.services = v8568; +const v8569 = []; +v8569.push(\\"2020-08-07\\"); +v8555.apiVersions = v8569; +v8555.serviceIdentifier = \\"lexruntimev2\\"; +v2.LexRuntimeV2 = v8555; +var v8570; +var v8571 = v299; +var v8572 = v31; +v8570 = function () { if (v8571 !== v8572) { + return v8571.apply(this, arguments); +} }; +const v8573 = Object.create(v309); +v8573.constructor = v8570; +const v8574 = {}; +const v8575 = []; +var v8576; +var v8577 = v31; +var v8578 = v8573; +v8576 = function EVENTS_BUBBLE(event) { var baseClass = v8577.getPrototypeOf(v8578); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8579 = {}; +v8579.constructor = v8576; +v8576.prototype = v8579; +v8575.push(v8576); +v8574.apiCallAttempt = v8575; +const v8580 = []; +var v8581; +v8581 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8562.getPrototypeOf(v8578); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8582 = {}; +v8582.constructor = v8581; +v8581.prototype = v8582; +v8580.push(v8581); +v8574.apiCall = v8580; +v8573._events = v8574; +v8573.MONITOR_EVENTS_BUBBLE = v8576; +v8573.CALL_EVENTS_BUBBLE = v8581; +v8570.prototype = v8573; +v8570.__super__ = v299; +const v8583 = {}; +v8583[\\"2020-12-01\\"] = null; +v8570.services = v8583; +const v8584 = []; +v8584.push(\\"2020-12-01\\"); +v8570.apiVersions = v8584; +v8570.serviceIdentifier = \\"fis\\"; +v2.Fis = v8570; +var v8585; +var v8586 = v299; +var v8587 = v31; +v8585 = function () { if (v8586 !== v8587) { + return v8586.apply(this, arguments); +} }; +const v8588 = Object.create(v309); +v8588.constructor = v8585; +const v8589 = {}; +const v8590 = []; +var v8591; +var v8592 = v31; +var v8593 = v8588; +v8591 = function EVENTS_BUBBLE(event) { var baseClass = v8592.getPrototypeOf(v8593); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8594 = {}; +v8594.constructor = v8591; +v8591.prototype = v8594; +v8590.push(v8591); +v8589.apiCallAttempt = v8590; +const v8595 = []; +var v8596; +v8596 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8577.getPrototypeOf(v8593); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8597 = {}; +v8597.constructor = v8596; +v8596.prototype = v8597; +v8595.push(v8596); +v8589.apiCall = v8595; +v8588._events = v8589; +v8588.MONITOR_EVENTS_BUBBLE = v8591; +v8588.CALL_EVENTS_BUBBLE = v8596; +v8585.prototype = v8588; +v8585.__super__ = v299; +const v8598 = {}; +v8598[\\"2017-07-25\\"] = null; +v8585.services = v8598; +const v8599 = []; +v8599.push(\\"2017-07-25\\"); +v8585.apiVersions = v8599; +v8585.serviceIdentifier = \\"lookoutmetrics\\"; +v2.LookoutMetrics = v8585; +var v8600; +var v8601 = v299; +var v8602 = v31; +v8600 = function () { if (v8601 !== v8602) { + return v8601.apply(this, arguments); +} }; +const v8603 = Object.create(v309); +v8603.constructor = v8600; +const v8604 = {}; +const v8605 = []; +var v8606; +var v8607 = v31; +var v8608 = v8603; +v8606 = function EVENTS_BUBBLE(event) { var baseClass = v8607.getPrototypeOf(v8608); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8609 = {}; +v8609.constructor = v8606; +v8606.prototype = v8609; +v8605.push(v8606); +v8604.apiCallAttempt = v8605; +const v8610 = []; +var v8611; +v8611 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8592.getPrototypeOf(v8608); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8612 = {}; +v8612.constructor = v8611; +v8611.prototype = v8612; +v8610.push(v8611); +v8604.apiCall = v8610; +v8603._events = v8604; +v8603.MONITOR_EVENTS_BUBBLE = v8606; +v8603.CALL_EVENTS_BUBBLE = v8611; +v8600.prototype = v8603; +v8600.__super__ = v299; +const v8613 = {}; +v8613[\\"2020-02-26\\"] = null; +v8600.services = v8613; +const v8614 = []; +v8614.push(\\"2020-02-26\\"); +v8600.apiVersions = v8614; +v8600.serviceIdentifier = \\"mgn\\"; +v2.Mgn = v8600; +var v8615; +var v8616 = v299; +var v8617 = v31; +v8615 = function () { if (v8616 !== v8617) { + return v8616.apply(this, arguments); +} }; +const v8618 = Object.create(v309); +v8618.constructor = v8615; +const v8619 = {}; +const v8620 = []; +var v8621; +var v8622 = v31; +var v8623 = v8618; +v8621 = function EVENTS_BUBBLE(event) { var baseClass = v8622.getPrototypeOf(v8623); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8624 = {}; +v8624.constructor = v8621; +v8621.prototype = v8624; +v8620.push(v8621); +v8619.apiCallAttempt = v8620; +const v8625 = []; +var v8626; +v8626 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8607.getPrototypeOf(v8623); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8627 = {}; +v8627.constructor = v8626; +v8626.prototype = v8627; +v8625.push(v8626); +v8619.apiCall = v8625; +v8618._events = v8619; +v8618.MONITOR_EVENTS_BUBBLE = v8621; +v8618.CALL_EVENTS_BUBBLE = v8626; +v8615.prototype = v8618; +v8615.__super__ = v299; +const v8628 = {}; +v8628[\\"2020-12-15\\"] = null; +v8615.services = v8628; +const v8629 = []; +v8629.push(\\"2020-12-15\\"); +v8615.apiVersions = v8629; +v8615.serviceIdentifier = \\"lookoutequipment\\"; +v2.LookoutEquipment = v8615; +var v8630; +var v8631 = v299; +var v8632 = v31; +v8630 = function () { if (v8631 !== v8632) { + return v8631.apply(this, arguments); +} }; +const v8633 = Object.create(v309); +v8633.constructor = v8630; +const v8634 = {}; +const v8635 = []; +var v8636; +var v8637 = v31; +var v8638 = v8633; +v8636 = function EVENTS_BUBBLE(event) { var baseClass = v8637.getPrototypeOf(v8638); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8639 = {}; +v8639.constructor = v8636; +v8636.prototype = v8639; +v8635.push(v8636); +v8634.apiCallAttempt = v8635; +const v8640 = []; +var v8641; +v8641 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8622.getPrototypeOf(v8638); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8642 = {}; +v8642.constructor = v8641; +v8641.prototype = v8642; +v8640.push(v8641); +v8634.apiCall = v8640; +v8633._events = v8634; +v8633.MONITOR_EVENTS_BUBBLE = v8636; +v8633.CALL_EVENTS_BUBBLE = v8641; +v8630.prototype = v8633; +v8630.__super__ = v299; +const v8643 = {}; +v8643[\\"2020-08-01\\"] = null; +v8630.services = v8643; +const v8644 = []; +v8644.push(\\"2020-08-01\\"); +v8630.apiVersions = v8644; +v8630.serviceIdentifier = \\"nimble\\"; +v2.Nimble = v8630; +var v8645; +var v8646 = v299; +var v8647 = v31; +v8645 = function () { if (v8646 !== v8647) { + return v8646.apply(this, arguments); +} }; +const v8648 = Object.create(v309); +v8648.constructor = v8645; +const v8649 = {}; +const v8650 = []; +var v8651; +var v8652 = v31; +var v8653 = v8648; +v8651 = function EVENTS_BUBBLE(event) { var baseClass = v8652.getPrototypeOf(v8653); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8654 = {}; +v8654.constructor = v8651; +v8651.prototype = v8654; +v8650.push(v8651); +v8649.apiCallAttempt = v8650; +const v8655 = []; +var v8656; +v8656 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8637.getPrototypeOf(v8653); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8657 = {}; +v8657.constructor = v8656; +v8656.prototype = v8657; +v8655.push(v8656); +v8649.apiCall = v8655; +v8648._events = v8649; +v8648.MONITOR_EVENTS_BUBBLE = v8651; +v8648.CALL_EVENTS_BUBBLE = v8656; +v8645.prototype = v8648; +v8645.__super__ = v299; +const v8658 = {}; +v8658[\\"2021-03-12\\"] = null; +v8645.services = v8658; +const v8659 = []; +v8659.push(\\"2021-03-12\\"); +v8645.apiVersions = v8659; +v8645.serviceIdentifier = \\"finspace\\"; +v2.Finspace = v8645; +var v8660; +var v8661 = v299; +var v8662 = v31; +v8660 = function () { if (v8661 !== v8662) { + return v8661.apply(this, arguments); +} }; +const v8663 = Object.create(v309); +v8663.constructor = v8660; +const v8664 = {}; +const v8665 = []; +var v8666; +var v8667 = v31; +var v8668 = v8663; +v8666 = function EVENTS_BUBBLE(event) { var baseClass = v8667.getPrototypeOf(v8668); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8669 = {}; +v8669.constructor = v8666; +v8666.prototype = v8669; +v8665.push(v8666); +v8664.apiCallAttempt = v8665; +const v8670 = []; +var v8671; +v8671 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8652.getPrototypeOf(v8668); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8672 = {}; +v8672.constructor = v8671; +v8671.prototype = v8672; +v8670.push(v8671); +v8664.apiCall = v8670; +v8663._events = v8664; +v8663.MONITOR_EVENTS_BUBBLE = v8666; +v8663.CALL_EVENTS_BUBBLE = v8671; +v8660.prototype = v8663; +v8660.__super__ = v299; +const v8673 = {}; +v8673[\\"2020-07-13\\"] = null; +v8660.services = v8673; +const v8674 = []; +v8674.push(\\"2020-07-13\\"); +v8660.apiVersions = v8674; +v8660.serviceIdentifier = \\"finspacedata\\"; +v2.Finspacedata = v8660; +var v8675; +var v8676 = v299; +var v8677 = v31; +v8675 = function () { if (v8676 !== v8677) { + return v8676.apply(this, arguments); +} }; +const v8678 = Object.create(v309); +v8678.constructor = v8675; +const v8679 = {}; +const v8680 = []; +var v8681; +var v8682 = v31; +var v8683 = v8678; +v8681 = function EVENTS_BUBBLE(event) { var baseClass = v8682.getPrototypeOf(v8683); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8684 = {}; +v8684.constructor = v8681; +v8681.prototype = v8684; +v8680.push(v8681); +v8679.apiCallAttempt = v8680; +const v8685 = []; +var v8686; +v8686 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8667.getPrototypeOf(v8683); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8687 = {}; +v8687.constructor = v8686; +v8686.prototype = v8687; +v8685.push(v8686); +v8679.apiCall = v8685; +v8678._events = v8679; +v8678.MONITOR_EVENTS_BUBBLE = v8681; +v8678.CALL_EVENTS_BUBBLE = v8686; +v8675.prototype = v8678; +v8675.__super__ = v299; +const v8688 = {}; +v8688[\\"2021-05-03\\"] = null; +v8675.services = v8688; +const v8689 = []; +v8689.push(\\"2021-05-03\\"); +v8675.apiVersions = v8689; +v8675.serviceIdentifier = \\"ssmcontacts\\"; +v2.SSMContacts = v8675; +var v8690; +var v8691 = v299; +var v8692 = v31; +v8690 = function () { if (v8691 !== v8692) { + return v8691.apply(this, arguments); +} }; +const v8693 = Object.create(v309); +v8693.constructor = v8690; +const v8694 = {}; +const v8695 = []; +var v8696; +var v8697 = v31; +var v8698 = v8693; +v8696 = function EVENTS_BUBBLE(event) { var baseClass = v8697.getPrototypeOf(v8698); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8699 = {}; +v8699.constructor = v8696; +v8696.prototype = v8699; +v8695.push(v8696); +v8694.apiCallAttempt = v8695; +const v8700 = []; +var v8701; +v8701 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8682.getPrototypeOf(v8698); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8702 = {}; +v8702.constructor = v8701; +v8701.prototype = v8702; +v8700.push(v8701); +v8694.apiCall = v8700; +v8693._events = v8694; +v8693.MONITOR_EVENTS_BUBBLE = v8696; +v8693.CALL_EVENTS_BUBBLE = v8701; +v8690.prototype = v8693; +v8690.__super__ = v299; +const v8703 = {}; +v8703[\\"2018-05-10\\"] = null; +v8690.services = v8703; +const v8704 = []; +v8704.push(\\"2018-05-10\\"); +v8690.apiVersions = v8704; +v8690.serviceIdentifier = \\"ssmincidents\\"; +v2.SSMIncidents = v8690; +var v8705; +var v8706 = v299; +var v8707 = v31; +v8705 = function () { if (v8706 !== v8707) { + return v8706.apply(this, arguments); +} }; +const v8708 = Object.create(v309); +v8708.constructor = v8705; +const v8709 = {}; +const v8710 = []; +var v8711; +var v8712 = v31; +var v8713 = v8708; +v8711 = function EVENTS_BUBBLE(event) { var baseClass = v8712.getPrototypeOf(v8713); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8714 = {}; +v8714.constructor = v8711; +v8711.prototype = v8714; +v8710.push(v8711); +v8709.apiCallAttempt = v8710; +const v8715 = []; +var v8716; +v8716 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8697.getPrototypeOf(v8713); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8717 = {}; +v8717.constructor = v8716; +v8716.prototype = v8717; +v8715.push(v8716); +v8709.apiCall = v8715; +v8708._events = v8709; +v8708.MONITOR_EVENTS_BUBBLE = v8711; +v8708.CALL_EVENTS_BUBBLE = v8716; +v8705.prototype = v8708; +v8705.__super__ = v299; +const v8718 = {}; +v8718[\\"2020-09-10\\"] = null; +v8705.services = v8718; +const v8719 = []; +v8719.push(\\"2020-09-10\\"); +v8705.apiVersions = v8719; +v8705.serviceIdentifier = \\"applicationcostprofiler\\"; +v2.ApplicationCostProfiler = v8705; +var v8720; +var v8721 = v299; +var v8722 = v31; +v8720 = function () { if (v8721 !== v8722) { + return v8721.apply(this, arguments); +} }; +const v8723 = Object.create(v309); +v8723.constructor = v8720; +const v8724 = {}; +const v8725 = []; +var v8726; +var v8727 = v31; +var v8728 = v8723; +v8726 = function EVENTS_BUBBLE(event) { var baseClass = v8727.getPrototypeOf(v8728); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8729 = {}; +v8729.constructor = v8726; +v8726.prototype = v8729; +v8725.push(v8726); +v8724.apiCallAttempt = v8725; +const v8730 = []; +var v8731; +v8731 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8712.getPrototypeOf(v8728); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8732 = {}; +v8732.constructor = v8731; +v8731.prototype = v8732; +v8730.push(v8731); +v8724.apiCall = v8730; +v8723._events = v8724; +v8723.MONITOR_EVENTS_BUBBLE = v8726; +v8723.CALL_EVENTS_BUBBLE = v8731; +v8720.prototype = v8723; +v8720.__super__ = v299; +const v8733 = {}; +v8733[\\"2020-05-15\\"] = null; +v8720.services = v8733; +const v8734 = []; +v8734.push(\\"2020-05-15\\"); +v8720.apiVersions = v8734; +v8720.serviceIdentifier = \\"apprunner\\"; +v2.AppRunner = v8720; +var v8735; +var v8736 = v299; +var v8737 = v31; +v8735 = function () { if (v8736 !== v8737) { + return v8736.apply(this, arguments); +} }; +const v8738 = Object.create(v309); +v8738.constructor = v8735; +const v8739 = {}; +const v8740 = []; +var v8741; +var v8742 = v31; +var v8743 = v8738; +v8741 = function EVENTS_BUBBLE(event) { var baseClass = v8742.getPrototypeOf(v8743); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8744 = {}; +v8744.constructor = v8741; +v8741.prototype = v8744; +v8740.push(v8741); +v8739.apiCallAttempt = v8740; +const v8745 = []; +var v8746; +v8746 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8727.getPrototypeOf(v8743); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8747 = {}; +v8747.constructor = v8746; +v8746.prototype = v8747; +v8745.push(v8746); +v8739.apiCall = v8745; +v8738._events = v8739; +v8738.MONITOR_EVENTS_BUBBLE = v8741; +v8738.CALL_EVENTS_BUBBLE = v8746; +v8735.prototype = v8738; +v8735.__super__ = v299; +const v8748 = {}; +v8748[\\"2020-07-20\\"] = null; +v8735.services = v8748; +const v8749 = []; +v8749.push(\\"2020-07-20\\"); +v8735.apiVersions = v8749; +v8735.serviceIdentifier = \\"proton\\"; +v2.Proton = v8735; +var v8750; +var v8751 = v299; +var v8752 = v31; +v8750 = function () { if (v8751 !== v8752) { + return v8751.apply(this, arguments); +} }; +const v8753 = Object.create(v309); +v8753.constructor = v8750; +const v8754 = {}; +const v8755 = []; +var v8756; +var v8757 = v31; +var v8758 = v8753; +v8756 = function EVENTS_BUBBLE(event) { var baseClass = v8757.getPrototypeOf(v8758); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8759 = {}; +v8759.constructor = v8756; +v8756.prototype = v8759; +v8755.push(v8756); +v8754.apiCallAttempt = v8755; +const v8760 = []; +var v8761; +v8761 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8742.getPrototypeOf(v8758); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8762 = {}; +v8762.constructor = v8761; +v8761.prototype = v8762; +v8760.push(v8761); +v8754.apiCall = v8760; +v8753._events = v8754; +v8753.MONITOR_EVENTS_BUBBLE = v8756; +v8753.CALL_EVENTS_BUBBLE = v8761; +v8750.prototype = v8753; +v8750.__super__ = v299; +const v8763 = {}; +v8763[\\"2019-12-02\\"] = null; +v8750.services = v8763; +const v8764 = []; +v8764.push(\\"2019-12-02\\"); +v8750.apiVersions = v8764; +v8750.serviceIdentifier = \\"route53recoverycluster\\"; +v2.Route53RecoveryCluster = v8750; +var v8765; +var v8766 = v299; +var v8767 = v31; +v8765 = function () { if (v8766 !== v8767) { + return v8766.apply(this, arguments); +} }; +const v8768 = Object.create(v309); +v8768.constructor = v8765; +const v8769 = {}; +const v8770 = []; +var v8771; +var v8772 = v31; +var v8773 = v8768; +v8771 = function EVENTS_BUBBLE(event) { var baseClass = v8772.getPrototypeOf(v8773); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8774 = {}; +v8774.constructor = v8771; +v8771.prototype = v8774; +v8770.push(v8771); +v8769.apiCallAttempt = v8770; +const v8775 = []; +var v8776; +v8776 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8757.getPrototypeOf(v8773); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8777 = {}; +v8777.constructor = v8776; +v8776.prototype = v8777; +v8775.push(v8776); +v8769.apiCall = v8775; +v8768._events = v8769; +v8768.MONITOR_EVENTS_BUBBLE = v8771; +v8768.CALL_EVENTS_BUBBLE = v8776; +v8765.prototype = v8768; +v8765.__super__ = v299; +const v8778 = {}; +v8778[\\"2020-11-02\\"] = null; +v8765.services = v8778; +const v8779 = []; +v8779.push(\\"2020-11-02\\"); +v8765.apiVersions = v8779; +v8765.serviceIdentifier = \\"route53recoverycontrolconfig\\"; +v2.Route53RecoveryControlConfig = v8765; +var v8780; +var v8781 = v299; +var v8782 = v31; +v8780 = function () { if (v8781 !== v8782) { + return v8781.apply(this, arguments); +} }; +const v8783 = Object.create(v309); +v8783.constructor = v8780; +const v8784 = {}; +const v8785 = []; +var v8786; +var v8787 = v31; +var v8788 = v8783; +v8786 = function EVENTS_BUBBLE(event) { var baseClass = v8787.getPrototypeOf(v8788); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8789 = {}; +v8789.constructor = v8786; +v8786.prototype = v8789; +v8785.push(v8786); +v8784.apiCallAttempt = v8785; +const v8790 = []; +var v8791; +v8791 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8772.getPrototypeOf(v8788); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8792 = {}; +v8792.constructor = v8791; +v8791.prototype = v8792; +v8790.push(v8791); +v8784.apiCall = v8790; +v8783._events = v8784; +v8783.MONITOR_EVENTS_BUBBLE = v8786; +v8783.CALL_EVENTS_BUBBLE = v8791; +v8780.prototype = v8783; +v8780.__super__ = v299; +const v8793 = {}; +v8793[\\"2019-12-02\\"] = null; +v8780.services = v8793; +const v8794 = []; +v8794.push(\\"2019-12-02\\"); +v8780.apiVersions = v8794; +v8780.serviceIdentifier = \\"route53recoveryreadiness\\"; +v2.Route53RecoveryReadiness = v8780; +var v8795; +var v8796 = v299; +var v8797 = v31; +v8795 = function () { if (v8796 !== v8797) { + return v8796.apply(this, arguments); +} }; +const v8798 = Object.create(v309); +v8798.constructor = v8795; +const v8799 = {}; +const v8800 = []; +var v8801; +var v8802 = v31; +var v8803 = v8798; +v8801 = function EVENTS_BUBBLE(event) { var baseClass = v8802.getPrototypeOf(v8803); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8804 = {}; +v8804.constructor = v8801; +v8801.prototype = v8804; +v8800.push(v8801); +v8799.apiCallAttempt = v8800; +const v8805 = []; +var v8806; +v8806 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8787.getPrototypeOf(v8803); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8807 = {}; +v8807.constructor = v8806; +v8806.prototype = v8807; +v8805.push(v8806); +v8799.apiCall = v8805; +v8798._events = v8799; +v8798.MONITOR_EVENTS_BUBBLE = v8801; +v8798.CALL_EVENTS_BUBBLE = v8806; +v8795.prototype = v8798; +v8795.__super__ = v299; +const v8808 = {}; +v8808[\\"2021-04-20\\"] = null; +v8795.services = v8808; +const v8809 = []; +v8809.push(\\"2021-04-20\\"); +v8795.apiVersions = v8809; +v8795.serviceIdentifier = \\"chimesdkidentity\\"; +v2.ChimeSDKIdentity = v8795; +var v8810; +var v8811 = v299; +var v8812 = v31; +v8810 = function () { if (v8811 !== v8812) { + return v8811.apply(this, arguments); +} }; +const v8813 = Object.create(v309); +v8813.constructor = v8810; +const v8814 = {}; +const v8815 = []; +var v8816; +var v8817 = v31; +var v8818 = v8813; +v8816 = function EVENTS_BUBBLE(event) { var baseClass = v8817.getPrototypeOf(v8818); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8819 = {}; +v8819.constructor = v8816; +v8816.prototype = v8819; +v8815.push(v8816); +v8814.apiCallAttempt = v8815; +const v8820 = []; +var v8821; +v8821 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8802.getPrototypeOf(v8818); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8822 = {}; +v8822.constructor = v8821; +v8821.prototype = v8822; +v8820.push(v8821); +v8814.apiCall = v8820; +v8813._events = v8814; +v8813.MONITOR_EVENTS_BUBBLE = v8816; +v8813.CALL_EVENTS_BUBBLE = v8821; +v8810.prototype = v8813; +v8810.__super__ = v299; +const v8823 = {}; +v8823[\\"2021-05-15\\"] = null; +v8810.services = v8823; +const v8824 = []; +v8824.push(\\"2021-05-15\\"); +v8810.apiVersions = v8824; +v8810.serviceIdentifier = \\"chimesdkmessaging\\"; +v2.ChimeSDKMessaging = v8810; +var v8825; +var v8826 = v299; +var v8827 = v31; +v8825 = function () { if (v8826 !== v8827) { + return v8826.apply(this, arguments); +} }; +const v8828 = Object.create(v309); +v8828.constructor = v8825; +const v8829 = {}; +const v8830 = []; +var v8831; +var v8832 = v31; +var v8833 = v8828; +v8831 = function EVENTS_BUBBLE(event) { var baseClass = v8832.getPrototypeOf(v8833); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8834 = {}; +v8834.constructor = v8831; +v8831.prototype = v8834; +v8830.push(v8831); +v8829.apiCallAttempt = v8830; +const v8835 = []; +var v8836; +v8836 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8817.getPrototypeOf(v8833); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8837 = {}; +v8837.constructor = v8836; +v8836.prototype = v8837; +v8835.push(v8836); +v8829.apiCall = v8835; +v8828._events = v8829; +v8828.MONITOR_EVENTS_BUBBLE = v8831; +v8828.CALL_EVENTS_BUBBLE = v8836; +v8825.prototype = v8828; +v8825.__super__ = v299; +const v8838 = {}; +v8838[\\"2021-08-04\\"] = null; +v8825.services = v8838; +const v8839 = []; +v8839.push(\\"2021-08-04\\"); +v8825.apiVersions = v8839; +v8825.serviceIdentifier = \\"snowdevicemanagement\\"; +v2.SnowDeviceManagement = v8825; +var v8840; +var v8841 = v299; +var v8842 = v31; +v8840 = function () { if (v8841 !== v8842) { + return v8841.apply(this, arguments); +} }; +const v8843 = Object.create(v309); +v8843.constructor = v8840; +const v8844 = {}; +const v8845 = []; +var v8846; +var v8847 = v31; +var v8848 = v8843; +v8846 = function EVENTS_BUBBLE(event) { var baseClass = v8847.getPrototypeOf(v8848); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8849 = {}; +v8849.constructor = v8846; +v8846.prototype = v8849; +v8845.push(v8846); +v8844.apiCallAttempt = v8845; +const v8850 = []; +var v8851; +v8851 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8832.getPrototypeOf(v8848); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8852 = {}; +v8852.constructor = v8851; +v8851.prototype = v8852; +v8850.push(v8851); +v8844.apiCall = v8850; +v8843._events = v8844; +v8843.MONITOR_EVENTS_BUBBLE = v8846; +v8843.CALL_EVENTS_BUBBLE = v8851; +v8840.prototype = v8843; +v8840.__super__ = v299; +const v8853 = {}; +v8853[\\"2021-01-01\\"] = null; +v8840.services = v8853; +const v8854 = []; +v8854.push(\\"2021-01-01\\"); +v8840.apiVersions = v8854; +v8840.serviceIdentifier = \\"memorydb\\"; +v2.MemoryDB = v8840; +var v8855; +var v8856 = v299; +var v8857 = v31; +v8855 = function () { if (v8856 !== v8857) { + return v8856.apply(this, arguments); +} }; +const v8858 = Object.create(v309); +v8858.constructor = v8855; +const v8859 = {}; +const v8860 = []; +var v8861; +var v8862 = v31; +var v8863 = v8858; +v8861 = function EVENTS_BUBBLE(event) { var baseClass = v8862.getPrototypeOf(v8863); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8864 = {}; +v8864.constructor = v8861; +v8861.prototype = v8864; +v8860.push(v8861); +v8859.apiCallAttempt = v8860; +const v8865 = []; +var v8866; +v8866 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8847.getPrototypeOf(v8863); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8867 = {}; +v8867.constructor = v8866; +v8866.prototype = v8867; +v8865.push(v8866); +v8859.apiCall = v8865; +v8858._events = v8859; +v8858.MONITOR_EVENTS_BUBBLE = v8861; +v8858.CALL_EVENTS_BUBBLE = v8866; +v8855.prototype = v8858; +v8855.__super__ = v299; +const v8868 = {}; +v8868[\\"2021-01-01\\"] = null; +v8855.services = v8868; +const v8869 = []; +v8869.push(\\"2021-01-01\\"); +v8855.apiVersions = v8869; +v8855.serviceIdentifier = \\"opensearch\\"; +v2.OpenSearch = v8855; +var v8870; +var v8871 = v299; +var v8872 = v31; +v8870 = function () { if (v8871 !== v8872) { + return v8871.apply(this, arguments); +} }; +const v8873 = Object.create(v309); +v8873.constructor = v8870; +const v8874 = {}; +const v8875 = []; +var v8876; +var v8877 = v31; +var v8878 = v8873; +v8876 = function EVENTS_BUBBLE(event) { var baseClass = v8877.getPrototypeOf(v8878); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8879 = {}; +v8879.constructor = v8876; +v8876.prototype = v8879; +v8875.push(v8876); +v8874.apiCallAttempt = v8875; +const v8880 = []; +var v8881; +v8881 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8862.getPrototypeOf(v8878); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8882 = {}; +v8882.constructor = v8881; +v8881.prototype = v8882; +v8880.push(v8881); +v8874.apiCall = v8880; +v8873._events = v8874; +v8873.MONITOR_EVENTS_BUBBLE = v8876; +v8873.CALL_EVENTS_BUBBLE = v8881; +v8870.prototype = v8873; +v8870.__super__ = v299; +const v8883 = {}; +v8883[\\"2021-09-14\\"] = null; +v8870.services = v8883; +const v8884 = []; +v8884.push(\\"2021-09-14\\"); +v8870.apiVersions = v8884; +v8870.serviceIdentifier = \\"kafkaconnect\\"; +v2.KafkaConnect = v8870; +var v8885; +var v8886 = v299; +var v8887 = v31; +v8885 = function () { if (v8886 !== v8887) { + return v8886.apply(this, arguments); +} }; +const v8888 = Object.create(v309); +v8888.constructor = v8885; +const v8889 = {}; +const v8890 = []; +var v8891; +var v8892 = v31; +var v8893 = v8888; +v8891 = function EVENTS_BUBBLE(event) { var baseClass = v8892.getPrototypeOf(v8893); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8894 = {}; +v8894.constructor = v8891; +v8891.prototype = v8894; +v8890.push(v8891); +v8889.apiCallAttempt = v8890; +const v8895 = []; +var v8896; +v8896 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8877.getPrototypeOf(v8893); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8897 = {}; +v8897.constructor = v8896; +v8896.prototype = v8897; +v8895.push(v8896); +v8889.apiCall = v8895; +v8888._events = v8889; +v8888.MONITOR_EVENTS_BUBBLE = v8891; +v8888.CALL_EVENTS_BUBBLE = v8896; +v8885.prototype = v8888; +v8885.__super__ = v299; +const v8898 = {}; +v8898[\\"2021-09-27\\"] = null; +v8885.services = v8898; +const v8899 = []; +v8899.push(\\"2021-09-27\\"); +v8885.apiVersions = v8899; +v8885.serviceIdentifier = \\"voiceid\\"; +v2.VoiceID = v8885; +var v8900; +var v8901 = v299; +var v8902 = v31; +v8900 = function () { if (v8901 !== v8902) { + return v8901.apply(this, arguments); +} }; +const v8903 = Object.create(v309); +v8903.constructor = v8900; +const v8904 = {}; +const v8905 = []; +var v8906; +var v8907 = v31; +var v8908 = v8903; +v8906 = function EVENTS_BUBBLE(event) { var baseClass = v8907.getPrototypeOf(v8908); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8909 = {}; +v8909.constructor = v8906; +v8906.prototype = v8909; +v8905.push(v8906); +v8904.apiCallAttempt = v8905; +const v8910 = []; +var v8911; +v8911 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8892.getPrototypeOf(v8908); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8912 = {}; +v8912.constructor = v8911; +v8911.prototype = v8912; +v8910.push(v8911); +v8904.apiCall = v8910; +v8903._events = v8904; +v8903.MONITOR_EVENTS_BUBBLE = v8906; +v8903.CALL_EVENTS_BUBBLE = v8911; +v8900.prototype = v8903; +v8900.__super__ = v299; +const v8913 = {}; +v8913[\\"2020-10-19\\"] = null; +v8900.services = v8913; +const v8914 = []; +v8914.push(\\"2020-10-19\\"); +v8900.apiVersions = v8914; +v8900.serviceIdentifier = \\"wisdom\\"; +v2.Wisdom = v8900; +var v8915; +var v8916 = v299; +var v8917 = v31; +v8915 = function () { if (v8916 !== v8917) { + return v8916.apply(this, arguments); +} }; +const v8918 = Object.create(v309); +v8918.constructor = v8915; +const v8919 = {}; +const v8920 = []; +var v8921; +var v8922 = v31; +var v8923 = v8918; +v8921 = function EVENTS_BUBBLE(event) { var baseClass = v8922.getPrototypeOf(v8923); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8924 = {}; +v8924.constructor = v8921; +v8921.prototype = v8924; +v8920.push(v8921); +v8919.apiCallAttempt = v8920; +const v8925 = []; +var v8926; +v8926 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8907.getPrototypeOf(v8923); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8927 = {}; +v8927.constructor = v8926; +v8926.prototype = v8927; +v8925.push(v8926); +v8919.apiCall = v8925; +v8918._events = v8919; +v8918.MONITOR_EVENTS_BUBBLE = v8921; +v8918.CALL_EVENTS_BUBBLE = v8926; +v8915.prototype = v8918; +v8915.__super__ = v299; +const v8928 = {}; +v8928[\\"2021-02-01\\"] = null; +v8915.services = v8928; +const v8929 = []; +v8929.push(\\"2021-02-01\\"); +v8915.apiVersions = v8929; +v8915.serviceIdentifier = \\"account\\"; +v2.Account = v8915; +var v8930; +var v8931 = v299; +var v8932 = v31; +v8930 = function () { if (v8931 !== v8932) { + return v8931.apply(this, arguments); +} }; +const v8933 = Object.create(v309); +v8933.constructor = v8930; +const v8934 = {}; +const v8935 = []; +var v8936; +var v8937 = v31; +var v8938 = v8933; +v8936 = function EVENTS_BUBBLE(event) { var baseClass = v8937.getPrototypeOf(v8938); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8939 = {}; +v8939.constructor = v8936; +v8936.prototype = v8939; +v8935.push(v8936); +v8934.apiCallAttempt = v8935; +const v8940 = []; +var v8941; +v8941 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8922.getPrototypeOf(v8938); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8942 = {}; +v8942.constructor = v8941; +v8941.prototype = v8942; +v8940.push(v8941); +v8934.apiCall = v8940; +v8933._events = v8934; +v8933.MONITOR_EVENTS_BUBBLE = v8936; +v8933.CALL_EVENTS_BUBBLE = v8941; +v8930.prototype = v8933; +v8930.__super__ = v299; +const v8943 = {}; +v8943[\\"2021-09-30\\"] = null; +v8930.services = v8943; +const v8944 = []; +v8944.push(\\"2021-09-30\\"); +v8930.apiVersions = v8944; +v8930.serviceIdentifier = \\"cloudcontrol\\"; +v2.CloudControl = v8930; +var v8945; +var v8946 = v299; +var v8947 = v31; +v8945 = function () { if (v8946 !== v8947) { + return v8946.apply(this, arguments); +} }; +const v8948 = Object.create(v309); +v8948.constructor = v8945; +const v8949 = {}; +const v8950 = []; +var v8951; +var v8952 = v31; +var v8953 = v8948; +v8951 = function EVENTS_BUBBLE(event) { var baseClass = v8952.getPrototypeOf(v8953); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8954 = {}; +v8954.constructor = v8951; +v8951.prototype = v8954; +v8950.push(v8951); +v8949.apiCallAttempt = v8950; +const v8955 = []; +var v8956; +v8956 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8937.getPrototypeOf(v8953); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8957 = {}; +v8957.constructor = v8956; +v8956.prototype = v8957; +v8955.push(v8956); +v8949.apiCall = v8955; +v8948._events = v8949; +v8948.MONITOR_EVENTS_BUBBLE = v8951; +v8948.CALL_EVENTS_BUBBLE = v8956; +v8945.prototype = v8948; +v8945.__super__ = v299; +const v8958 = {}; +v8958[\\"2020-08-18\\"] = null; +v8945.services = v8958; +const v8959 = []; +v8959.push(\\"2020-08-18\\"); +v8945.apiVersions = v8959; +v8945.serviceIdentifier = \\"grafana\\"; +v2.Grafana = v8945; +var v8960; +var v8961 = v299; +var v8962 = v31; +v8960 = function () { if (v8961 !== v8962) { + return v8961.apply(this, arguments); +} }; +const v8963 = Object.create(v309); +v8963.constructor = v8960; +const v8964 = {}; +const v8965 = []; +var v8966; +var v8967 = v31; +var v8968 = v8963; +v8966 = function EVENTS_BUBBLE(event) { var baseClass = v8967.getPrototypeOf(v8968); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8969 = {}; +v8969.constructor = v8966; +v8966.prototype = v8969; +v8965.push(v8966); +v8964.apiCallAttempt = v8965; +const v8970 = []; +var v8971; +v8971 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8952.getPrototypeOf(v8968); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8972 = {}; +v8972.constructor = v8971; +v8971.prototype = v8972; +v8970.push(v8971); +v8964.apiCall = v8970; +v8963._events = v8964; +v8963.MONITOR_EVENTS_BUBBLE = v8966; +v8963.CALL_EVENTS_BUBBLE = v8971; +v8960.prototype = v8963; +v8960.__super__ = v299; +const v8973 = {}; +v8973[\\"2019-07-24\\"] = null; +v8960.services = v8973; +const v8974 = []; +v8974.push(\\"2019-07-24\\"); +v8960.apiVersions = v8974; +v8960.serviceIdentifier = \\"panorama\\"; +v2.Panorama = v8960; +var v8975; +var v8976 = v299; +var v8977 = v31; +v8975 = function () { if (v8976 !== v8977) { + return v8976.apply(this, arguments); +} }; +const v8978 = Object.create(v309); +v8978.constructor = v8975; +const v8979 = {}; +const v8980 = []; +var v8981; +var v8982 = v31; +var v8983 = v8978; +v8981 = function EVENTS_BUBBLE(event) { var baseClass = v8982.getPrototypeOf(v8983); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8984 = {}; +v8984.constructor = v8981; +v8981.prototype = v8984; +v8980.push(v8981); +v8979.apiCallAttempt = v8980; +const v8985 = []; +var v8986; +v8986 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8967.getPrototypeOf(v8983); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v8987 = {}; +v8987.constructor = v8986; +v8986.prototype = v8987; +v8985.push(v8986); +v8979.apiCall = v8985; +v8978._events = v8979; +v8978.MONITOR_EVENTS_BUBBLE = v8981; +v8978.CALL_EVENTS_BUBBLE = v8986; +v8975.prototype = v8978; +v8975.__super__ = v299; +const v8988 = {}; +v8988[\\"2021-07-15\\"] = null; +v8975.services = v8988; +const v8989 = []; +v8989.push(\\"2021-07-15\\"); +v8975.apiVersions = v8989; +v8975.serviceIdentifier = \\"chimesdkmeetings\\"; +v2.ChimeSDKMeetings = v8975; +var v8990; +var v8991 = v299; +var v8992 = v31; +v8990 = function () { if (v8991 !== v8992) { + return v8991.apply(this, arguments); +} }; +const v8993 = Object.create(v309); +v8993.constructor = v8990; +const v8994 = {}; +const v8995 = []; +var v8996; +var v8997 = v31; +var v8998 = v8993; +v8996 = function EVENTS_BUBBLE(event) { var baseClass = v8997.getPrototypeOf(v8998); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v8999 = {}; +v8999.constructor = v8996; +v8996.prototype = v8999; +v8995.push(v8996); +v8994.apiCallAttempt = v8995; +const v9000 = []; +var v9001; +v9001 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8982.getPrototypeOf(v8998); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9002 = {}; +v9002.constructor = v9001; +v9001.prototype = v9002; +v9000.push(v9001); +v8994.apiCall = v9000; +v8993._events = v8994; +v8993.MONITOR_EVENTS_BUBBLE = v8996; +v8993.CALL_EVENTS_BUBBLE = v9001; +v8990.prototype = v8993; +v8990.__super__ = v299; +const v9003 = {}; +v9003[\\"2020-04-30\\"] = null; +v8990.services = v9003; +const v9004 = []; +v9004.push(\\"2020-04-30\\"); +v8990.apiVersions = v9004; +v8990.serviceIdentifier = \\"resiliencehub\\"; +v2.Resiliencehub = v8990; +var v9005; +var v9006 = v299; +var v9007 = v31; +v9005 = function () { if (v9006 !== v9007) { + return v9006.apply(this, arguments); +} }; +const v9008 = Object.create(v309); +v9008.constructor = v9005; +const v9009 = {}; +const v9010 = []; +var v9011; +var v9012 = v31; +var v9013 = v9008; +v9011 = function EVENTS_BUBBLE(event) { var baseClass = v9012.getPrototypeOf(v9013); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9014 = {}; +v9014.constructor = v9011; +v9011.prototype = v9014; +v9010.push(v9011); +v9009.apiCallAttempt = v9010; +const v9015 = []; +var v9016; +v9016 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8997.getPrototypeOf(v9013); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9017 = {}; +v9017.constructor = v9016; +v9016.prototype = v9017; +v9015.push(v9016); +v9009.apiCall = v9015; +v9008._events = v9009; +v9008.MONITOR_EVENTS_BUBBLE = v9011; +v9008.CALL_EVENTS_BUBBLE = v9016; +v9005.prototype = v9008; +v9005.__super__ = v299; +const v9018 = {}; +v9018[\\"2020-02-19\\"] = null; +v9005.services = v9018; +const v9019 = []; +v9019.push(\\"2020-02-19\\"); +v9005.apiVersions = v9019; +v9005.serviceIdentifier = \\"migrationhubstrategy\\"; +v2.MigrationHubStrategy = v9005; +var v9020; +var v9021 = v299; +var v9022 = v31; +v9020 = function () { if (v9021 !== v9022) { + return v9021.apply(this, arguments); +} }; +const v9023 = Object.create(v309); +v9023.constructor = v9020; +const v9024 = {}; +const v9025 = []; +var v9026; +var v9027 = v31; +var v9028 = v9023; +v9026 = function EVENTS_BUBBLE(event) { var baseClass = v9027.getPrototypeOf(v9028); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9029 = {}; +v9029.constructor = v9026; +v9026.prototype = v9029; +v9025.push(v9026); +v9024.apiCallAttempt = v9025; +const v9030 = []; +var v9031; +v9031 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9012.getPrototypeOf(v9028); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9032 = {}; +v9032.constructor = v9031; +v9031.prototype = v9032; +v9030.push(v9031); +v9024.apiCall = v9030; +v9023._events = v9024; +v9023.MONITOR_EVENTS_BUBBLE = v9026; +v9023.CALL_EVENTS_BUBBLE = v9031; +v9020.prototype = v9023; +v9020.__super__ = v299; +const v9033 = {}; +v9033[\\"2021-11-11\\"] = null; +v9020.services = v9033; +const v9034 = []; +v9034.push(\\"2021-11-11\\"); +v9020.apiVersions = v9034; +v9020.serviceIdentifier = \\"appconfigdata\\"; +v2.AppConfigData = v9020; +var v9035; +var v9036 = v299; +var v9037 = v31; +v9035 = function () { if (v9036 !== v9037) { + return v9036.apply(this, arguments); +} }; +const v9038 = Object.create(v309); +v9038.constructor = v9035; +const v9039 = {}; +const v9040 = []; +var v9041; +var v9042 = v31; +var v9043 = v9038; +v9041 = function EVENTS_BUBBLE(event) { var baseClass = v9042.getPrototypeOf(v9043); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9044 = {}; +v9044.constructor = v9041; +v9041.prototype = v9044; +v9040.push(v9041); +v9039.apiCallAttempt = v9040; +const v9045 = []; +var v9046; +v9046 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9027.getPrototypeOf(v9043); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9047 = {}; +v9047.constructor = v9046; +v9046.prototype = v9047; +v9045.push(v9046); +v9039.apiCall = v9045; +v9038._events = v9039; +v9038.MONITOR_EVENTS_BUBBLE = v9041; +v9038.CALL_EVENTS_BUBBLE = v9046; +v9035.prototype = v9038; +v9035.__super__ = v299; +const v9048 = {}; +v9048[\\"2020-02-26\\"] = null; +v9035.services = v9048; +const v9049 = []; +v9049.push(\\"2020-02-26\\"); +v9035.apiVersions = v9049; +v9035.serviceIdentifier = \\"drs\\"; +v2.Drs = v9035; +var v9050; +var v9051 = v299; +var v9052 = v31; +v9050 = function () { if (v9051 !== v9052) { + return v9051.apply(this, arguments); +} }; +const v9053 = Object.create(v309); +v9053.constructor = v9050; +const v9054 = {}; +const v9055 = []; +var v9056; +var v9057 = v31; +var v9058 = v9053; +v9056 = function EVENTS_BUBBLE(event) { var baseClass = v9057.getPrototypeOf(v9058); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9059 = {}; +v9059.constructor = v9056; +v9056.prototype = v9059; +v9055.push(v9056); +v9054.apiCallAttempt = v9055; +const v9060 = []; +var v9061; +v9061 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9042.getPrototypeOf(v9058); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9062 = {}; +v9062.constructor = v9061; +v9061.prototype = v9062; +v9060.push(v9061); +v9054.apiCall = v9060; +v9053._events = v9054; +v9053.MONITOR_EVENTS_BUBBLE = v9056; +v9053.CALL_EVENTS_BUBBLE = v9061; +v9050.prototype = v9053; +v9050.__super__ = v299; +const v9063 = {}; +v9063[\\"2021-10-26\\"] = null; +v9050.services = v9063; +const v9064 = []; +v9064.push(\\"2021-10-26\\"); +v9050.apiVersions = v9064; +v9050.serviceIdentifier = \\"migrationhubrefactorspaces\\"; +v2.MigrationHubRefactorSpaces = v9050; +var v9065; +var v9066 = v299; +var v9067 = v31; +v9065 = function () { if (v9066 !== v9067) { + return v9066.apply(this, arguments); +} }; +const v9068 = Object.create(v309); +v9068.constructor = v9065; +const v9069 = {}; +const v9070 = []; +var v9071; +var v9072 = v31; +var v9073 = v9068; +v9071 = function EVENTS_BUBBLE(event) { var baseClass = v9072.getPrototypeOf(v9073); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9074 = {}; +v9074.constructor = v9071; +v9071.prototype = v9074; +v9070.push(v9071); +v9069.apiCallAttempt = v9070; +const v9075 = []; +var v9076; +v9076 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9057.getPrototypeOf(v9073); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9077 = {}; +v9077.constructor = v9076; +v9076.prototype = v9077; +v9075.push(v9076); +v9069.apiCall = v9075; +v9068._events = v9069; +v9068.MONITOR_EVENTS_BUBBLE = v9071; +v9068.CALL_EVENTS_BUBBLE = v9076; +v9065.prototype = v9068; +v9065.__super__ = v299; +const v9078 = {}; +v9078[\\"2021-02-01\\"] = null; +v9065.services = v9078; +const v9079 = []; +v9079.push(\\"2021-02-01\\"); +v9065.apiVersions = v9079; +v9065.serviceIdentifier = \\"evidently\\"; +v2.Evidently = v9065; +var v9080; +var v9081 = v299; +var v9082 = v31; +v9080 = function () { if (v9081 !== v9082) { + return v9081.apply(this, arguments); +} }; +const v9083 = Object.create(v309); +v9083.constructor = v9080; +const v9084 = {}; +const v9085 = []; +var v9086; +var v9087 = v31; +var v9088 = v9083; +v9086 = function EVENTS_BUBBLE(event) { var baseClass = v9087.getPrototypeOf(v9088); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9089 = {}; +v9089.constructor = v9086; +v9086.prototype = v9089; +v9085.push(v9086); +v9084.apiCallAttempt = v9085; +const v9090 = []; +var v9091; +v9091 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9072.getPrototypeOf(v9088); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9092 = {}; +v9092.constructor = v9091; +v9091.prototype = v9092; +v9090.push(v9091); +v9084.apiCall = v9090; +v9083._events = v9084; +v9083.MONITOR_EVENTS_BUBBLE = v9086; +v9083.CALL_EVENTS_BUBBLE = v9091; +v9080.prototype = v9083; +v9080.__super__ = v299; +const v9093 = {}; +v9093[\\"2020-06-08\\"] = null; +v9080.services = v9093; +const v9094 = []; +v9094.push(\\"2020-06-08\\"); +v9080.apiVersions = v9094; +v9080.serviceIdentifier = \\"inspector2\\"; +v2.Inspector2 = v9080; +var v9095; +var v9096 = v299; +var v9097 = v31; +v9095 = function () { if (v9096 !== v9097) { + return v9096.apply(this, arguments); +} }; +const v9098 = Object.create(v309); +v9098.constructor = v9095; +const v9099 = {}; +const v9100 = []; +var v9101; +var v9102 = v31; +var v9103 = v9098; +v9101 = function EVENTS_BUBBLE(event) { var baseClass = v9102.getPrototypeOf(v9103); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9104 = {}; +v9104.constructor = v9101; +v9101.prototype = v9104; +v9100.push(v9101); +v9099.apiCallAttempt = v9100; +const v9105 = []; +var v9106; +v9106 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9087.getPrototypeOf(v9103); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9107 = {}; +v9107.constructor = v9106; +v9106.prototype = v9107; +v9105.push(v9106); +v9099.apiCall = v9105; +v9098._events = v9099; +v9098.MONITOR_EVENTS_BUBBLE = v9101; +v9098.CALL_EVENTS_BUBBLE = v9106; +v9095.prototype = v9098; +v9095.__super__ = v299; +const v9108 = {}; +v9108[\\"2021-06-15\\"] = null; +v9095.services = v9108; +const v9109 = []; +v9109.push(\\"2021-06-15\\"); +v9095.apiVersions = v9109; +v9095.serviceIdentifier = \\"rbin\\"; +v2.Rbin = v9095; +var v9110; +var v9111 = v299; +var v9112 = v31; +v9110 = function () { if (v9111 !== v9112) { + return v9111.apply(this, arguments); +} }; +const v9113 = Object.create(v309); +v9113.constructor = v9110; +const v9114 = {}; +const v9115 = []; +var v9116; +var v9117 = v31; +var v9118 = v9113; +v9116 = function EVENTS_BUBBLE(event) { var baseClass = v9117.getPrototypeOf(v9118); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9119 = {}; +v9119.constructor = v9116; +v9116.prototype = v9119; +v9115.push(v9116); +v9114.apiCallAttempt = v9115; +const v9120 = []; +var v9121; +v9121 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9102.getPrototypeOf(v9118); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9122 = {}; +v9122.constructor = v9121; +v9121.prototype = v9122; +v9120.push(v9121); +v9114.apiCall = v9120; +v9113._events = v9114; +v9113.MONITOR_EVENTS_BUBBLE = v9116; +v9113.CALL_EVENTS_BUBBLE = v9121; +v9110.prototype = v9113; +v9110.__super__ = v299; +const v9123 = {}; +v9123[\\"2018-05-10\\"] = null; +v9110.services = v9123; +const v9124 = []; +v9124.push(\\"2018-05-10\\"); +v9110.apiVersions = v9124; +v9110.serviceIdentifier = \\"rum\\"; +v2.RUM = v9110; +var v9125; +var v9126 = v299; +var v9127 = v31; +v9125 = function () { if (v9126 !== v9127) { + return v9126.apply(this, arguments); +} }; +const v9128 = Object.create(v309); +v9128.constructor = v9125; +const v9129 = {}; +const v9130 = []; +var v9131; +var v9132 = v31; +var v9133 = v9128; +v9131 = function EVENTS_BUBBLE(event) { var baseClass = v9132.getPrototypeOf(v9133); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9134 = {}; +v9134.constructor = v9131; +v9131.prototype = v9134; +v9130.push(v9131); +v9129.apiCallAttempt = v9130; +const v9135 = []; +var v9136; +v9136 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9117.getPrototypeOf(v9133); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9137 = {}; +v9137.constructor = v9136; +v9136.prototype = v9137; +v9135.push(v9136); +v9129.apiCall = v9135; +v9128._events = v9129; +v9128.MONITOR_EVENTS_BUBBLE = v9131; +v9128.CALL_EVENTS_BUBBLE = v9136; +v9125.prototype = v9128; +v9125.__super__ = v299; +const v9138 = {}; +v9138[\\"2021-01-01\\"] = null; +v9125.services = v9138; +const v9139 = []; +v9139.push(\\"2021-01-01\\"); +v9125.apiVersions = v9139; +v9125.serviceIdentifier = \\"backupgateway\\"; +v2.BackupGateway = v9125; +var v9140; +var v9141 = v299; +var v9142 = v31; +v9140 = function () { if (v9141 !== v9142) { + return v9141.apply(this, arguments); +} }; +const v9143 = Object.create(v309); +v9143.constructor = v9140; +const v9144 = {}; +const v9145 = []; +var v9146; +var v9147 = v31; +var v9148 = v9143; +v9146 = function EVENTS_BUBBLE(event) { var baseClass = v9147.getPrototypeOf(v9148); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9149 = {}; +v9149.constructor = v9146; +v9146.prototype = v9149; +v9145.push(v9146); +v9144.apiCallAttempt = v9145; +const v9150 = []; +var v9151; +v9151 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9132.getPrototypeOf(v9148); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9152 = {}; +v9152.constructor = v9151; +v9151.prototype = v9152; +v9150.push(v9151); +v9144.apiCall = v9150; +v9143._events = v9144; +v9143.MONITOR_EVENTS_BUBBLE = v9146; +v9143.CALL_EVENTS_BUBBLE = v9151; +v9140.prototype = v9143; +v9140.__super__ = v299; +const v9153 = {}; +v9153[\\"2021-11-29\\"] = null; +v9140.services = v9153; +const v9154 = []; +v9154.push(\\"2021-11-29\\"); +v9140.apiVersions = v9154; +v9140.serviceIdentifier = \\"iottwinmaker\\"; +v2.IoTTwinMaker = v9140; +var v9155; +var v9156 = v299; +var v9157 = v31; +v9155 = function () { if (v9156 !== v9157) { + return v9156.apply(this, arguments); +} }; +const v9158 = Object.create(v309); +v9158.constructor = v9155; +const v9159 = {}; +const v9160 = []; +var v9161; +var v9162 = v31; +var v9163 = v9158; +v9161 = function EVENTS_BUBBLE(event) { var baseClass = v9162.getPrototypeOf(v9163); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9164 = {}; +v9164.constructor = v9161; +v9161.prototype = v9164; +v9160.push(v9161); +v9159.apiCallAttempt = v9160; +const v9165 = []; +var v9166; +v9166 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9147.getPrototypeOf(v9163); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9167 = {}; +v9167.constructor = v9166; +v9166.prototype = v9167; +v9165.push(v9166); +v9159.apiCall = v9165; +v9158._events = v9159; +v9158.MONITOR_EVENTS_BUBBLE = v9161; +v9158.CALL_EVENTS_BUBBLE = v9166; +v9155.prototype = v9158; +v9155.__super__ = v299; +const v9168 = {}; +v9168[\\"2020-07-08\\"] = null; +v9155.services = v9168; +const v9169 = []; +v9169.push(\\"2020-07-08\\"); +v9155.apiVersions = v9169; +v9155.serviceIdentifier = \\"workspacesweb\\"; +v2.WorkSpacesWeb = v9155; +var v9170; +var v9171 = v299; +var v9172 = v31; +v9170 = function () { if (v9171 !== v9172) { + return v9171.apply(this, arguments); +} }; +const v9173 = Object.create(v309); +v9173.constructor = v9170; +const v9174 = {}; +const v9175 = []; +var v9176; +var v9177 = v31; +var v9178 = v9173; +v9176 = function EVENTS_BUBBLE(event) { var baseClass = v9177.getPrototypeOf(v9178); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9179 = {}; +v9179.constructor = v9176; +v9176.prototype = v9179; +v9175.push(v9176); +v9174.apiCallAttempt = v9175; +const v9180 = []; +var v9181; +v9181 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9162.getPrototypeOf(v9178); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9182 = {}; +v9182.constructor = v9181; +v9181.prototype = v9182; +v9180.push(v9181); +v9174.apiCall = v9180; +v9173._events = v9174; +v9173.MONITOR_EVENTS_BUBBLE = v9176; +v9173.CALL_EVENTS_BUBBLE = v9181; +v9170.prototype = v9173; +v9170.__super__ = v299; +const v9183 = {}; +v9183[\\"2021-08-11\\"] = null; +v9170.services = v9183; +const v9184 = []; +v9184.push(\\"2021-08-11\\"); +v9170.apiVersions = v9184; +v9170.serviceIdentifier = \\"amplifyuibuilder\\"; +v2.AmplifyUIBuilder = v9170; +var v9185; +var v9186 = v299; +var v9187 = v31; +v9185 = function () { if (v9186 !== v9187) { + return v9186.apply(this, arguments); +} }; +const v9188 = Object.create(v309); +v9188.constructor = v9185; +const v9189 = {}; +const v9190 = []; +var v9191; +var v9192 = v31; +var v9193 = v9188; +v9191 = function EVENTS_BUBBLE(event) { var baseClass = v9192.getPrototypeOf(v9193); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9194 = {}; +v9194.constructor = v9191; +v9191.prototype = v9194; +v9190.push(v9191); +v9189.apiCallAttempt = v9190; +const v9195 = []; +var v9196; +v9196 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9177.getPrototypeOf(v9193); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9197 = {}; +v9197.constructor = v9196; +v9196.prototype = v9197; +v9195.push(v9196); +v9189.apiCall = v9195; +v9188._events = v9189; +v9188.MONITOR_EVENTS_BUBBLE = v9191; +v9188.CALL_EVENTS_BUBBLE = v9196; +v9185.prototype = v9188; +v9185.__super__ = v299; +const v9198 = {}; +v9198[\\"2022-02-10\\"] = null; +v9185.services = v9198; +const v9199 = []; +v9199.push(\\"2022-02-10\\"); +v9185.apiVersions = v9199; +v9185.serviceIdentifier = \\"keyspaces\\"; +v2.Keyspaces = v9185; +var v9200; +var v9201 = v299; +var v9202 = v31; +v9200 = function () { if (v9201 !== v9202) { + return v9201.apply(this, arguments); +} }; +const v9203 = Object.create(v309); +v9203.constructor = v9200; +const v9204 = {}; +const v9205 = []; +var v9206; +var v9207 = v31; +var v9208 = v9203; +v9206 = function EVENTS_BUBBLE(event) { var baseClass = v9207.getPrototypeOf(v9208); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9209 = {}; +v9209.constructor = v9206; +v9206.prototype = v9209; +v9205.push(v9206); +v9204.apiCallAttempt = v9205; +const v9210 = []; +var v9211; +v9211 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9192.getPrototypeOf(v9208); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9212 = {}; +v9212.constructor = v9211; +v9211.prototype = v9212; +v9210.push(v9211); +v9204.apiCall = v9210; +v9203._events = v9204; +v9203.MONITOR_EVENTS_BUBBLE = v9206; +v9203.CALL_EVENTS_BUBBLE = v9211; +v9200.prototype = v9203; +v9200.__super__ = v299; +const v9213 = {}; +v9213[\\"2021-07-30\\"] = null; +v9200.services = v9213; +const v9214 = []; +v9214.push(\\"2021-07-30\\"); +v9200.apiVersions = v9214; +v9200.serviceIdentifier = \\"billingconductor\\"; +v2.Billingconductor = v9200; +var v9215; +var v9216 = v299; +var v9217 = v31; +v9215 = function () { if (v9216 !== v9217) { + return v9216.apply(this, arguments); +} }; +const v9218 = Object.create(v309); +v9218.constructor = v9215; +const v9219 = {}; +const v9220 = []; +var v9221; +var v9222 = v31; +var v9223 = v9218; +v9221 = function EVENTS_BUBBLE(event) { var baseClass = v9222.getPrototypeOf(v9223); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9224 = {}; +v9224.constructor = v9221; +v9221.prototype = v9224; +v9220.push(v9221); +v9219.apiCallAttempt = v9220; +const v9225 = []; +var v9226; +v9226 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9207.getPrototypeOf(v9223); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9227 = {}; +v9227.constructor = v9226; +v9226.prototype = v9227; +v9225.push(v9226); +v9219.apiCall = v9225; +v9218._events = v9219; +v9218.MONITOR_EVENTS_BUBBLE = v9221; +v9218.CALL_EVENTS_BUBBLE = v9226; +v9215.prototype = v9218; +v9215.__super__ = v299; +const v9228 = {}; +v9228[\\"2021-08-17\\"] = null; +v9215.services = v9228; +const v9229 = []; +v9229.push(\\"2021-08-17\\"); +v9215.apiVersions = v9229; +v9215.serviceIdentifier = \\"gamesparks\\"; +v2.GameSparks = v9215; +var v9230; +var v9231 = v299; +var v9232 = v31; +v9230 = function () { if (v9231 !== v9232) { + return v9231.apply(this, arguments); +} }; +const v9233 = Object.create(v309); +v9233.constructor = v9230; +const v9234 = {}; +const v9235 = []; +var v9236; +var v9237 = v31; +var v9238 = v9233; +v9236 = function EVENTS_BUBBLE(event) { var baseClass = v9237.getPrototypeOf(v9238); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9239 = {}; +v9239.constructor = v9236; +v9236.prototype = v9239; +v9235.push(v9236); +v9234.apiCallAttempt = v9235; +const v9240 = []; +var v9241; +v9241 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9222.getPrototypeOf(v9238); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9242 = {}; +v9242.constructor = v9241; +v9241.prototype = v9242; +v9240.push(v9241); +v9234.apiCall = v9240; +v9233._events = v9234; +v9233.MONITOR_EVENTS_BUBBLE = v9236; +v9233.CALL_EVENTS_BUBBLE = v9241; +v9230.prototype = v9233; +v9230.__super__ = v299; +const v9243 = {}; +v9243[\\"2022-03-31\\"] = null; +v9230.services = v9243; +const v9244 = []; +v9244.push(\\"2022-03-31\\"); +v9230.apiVersions = v9244; +v9230.serviceIdentifier = \\"pinpointsmsvoicev2\\"; +v2.PinpointSMSVoiceV2 = v9230; +var v9245; +var v9246 = v299; +var v9247 = v31; +v9245 = function () { if (v9246 !== v9247) { + return v9246.apply(this, arguments); +} }; +const v9248 = Object.create(v309); +v9248.constructor = v9245; +const v9249 = {}; +const v9250 = []; +var v9251; +var v9252 = v31; +var v9253 = v9248; +v9251 = function EVENTS_BUBBLE(event) { var baseClass = v9252.getPrototypeOf(v9253); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9254 = {}; +v9254.constructor = v9251; +v9251.prototype = v9254; +v9250.push(v9251); +v9249.apiCallAttempt = v9250; +const v9255 = []; +var v9256; +v9256 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9237.getPrototypeOf(v9253); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9257 = {}; +v9257.constructor = v9256; +v9256.prototype = v9257; +v9255.push(v9256); +v9249.apiCall = v9255; +v9248._events = v9249; +v9248.MONITOR_EVENTS_BUBBLE = v9251; +v9248.CALL_EVENTS_BUBBLE = v9256; +v9245.prototype = v9248; +v9245.__super__ = v299; +const v9258 = {}; +v9258[\\"2020-07-14\\"] = null; +v9245.services = v9258; +const v9259 = []; +v9259.push(\\"2020-07-14\\"); +v9245.apiVersions = v9259; +v9245.serviceIdentifier = \\"ivschat\\"; +v2.Ivschat = v9245; +var v9260; +var v9261 = v299; +var v9262 = v31; +v9260 = function () { if (v9261 !== v9262) { + return v9261.apply(this, arguments); +} }; +const v9263 = Object.create(v309); +v9263.constructor = v9260; +const v9264 = {}; +const v9265 = []; +var v9266; +var v9267 = v31; +var v9268 = v9263; +v9266 = function EVENTS_BUBBLE(event) { var baseClass = v9267.getPrototypeOf(v9268); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9269 = {}; +v9269.constructor = v9266; +v9266.prototype = v9269; +v9265.push(v9266); +v9264.apiCallAttempt = v9265; +const v9270 = []; +var v9271; +v9271 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9252.getPrototypeOf(v9268); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9272 = {}; +v9272.constructor = v9271; +v9271.prototype = v9272; +v9270.push(v9271); +v9264.apiCall = v9270; +v9263._events = v9264; +v9263.MONITOR_EVENTS_BUBBLE = v9266; +v9263.CALL_EVENTS_BUBBLE = v9271; +v9260.prototype = v9263; +v9260.__super__ = v299; +const v9273 = {}; +v9273[\\"2021-07-15\\"] = null; +v9260.services = v9273; +const v9274 = []; +v9274.push(\\"2021-07-15\\"); +v9260.apiVersions = v9274; +v9260.serviceIdentifier = \\"chimesdkmediapipelines\\"; +v2.ChimeSDKMediaPipelines = v9260; +var v9275; +var v9276 = v299; +var v9277 = v31; +v9275 = function () { if (v9276 !== v9277) { + return v9276.apply(this, arguments); +} }; +const v9278 = Object.create(v309); +v9278.constructor = v9275; +const v9279 = {}; +const v9280 = []; +var v9281; +var v9282 = v31; +var v9283 = v9278; +v9281 = function EVENTS_BUBBLE(event) { var baseClass = v9282.getPrototypeOf(v9283); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9284 = {}; +v9284.constructor = v9281; +v9281.prototype = v9284; +v9280.push(v9281); +v9279.apiCallAttempt = v9280; +const v9285 = []; +var v9286; +v9286 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9267.getPrototypeOf(v9283); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9287 = {}; +v9287.constructor = v9286; +v9286.prototype = v9287; +v9285.push(v9286); +v9279.apiCall = v9285; +v9278._events = v9279; +v9278.MONITOR_EVENTS_BUBBLE = v9281; +v9278.CALL_EVENTS_BUBBLE = v9286; +v9275.prototype = v9278; +v9275.__super__ = v299; +const v9288 = {}; +v9288[\\"2021-07-13\\"] = null; +v9275.services = v9288; +const v9289 = []; +v9289.push(\\"2021-07-13\\"); +v9275.apiVersions = v9289; +v9275.serviceIdentifier = \\"emrserverless\\"; +v2.EMRServerless = v9275; +var v9290; +var v9291 = v299; +var v9292 = v31; +v9290 = function () { if (v9291 !== v9292) { + return v9291.apply(this, arguments); +} }; +const v9293 = Object.create(v309); +v9293.constructor = v9290; +const v9294 = {}; +const v9295 = []; +var v9296; +var v9297 = v31; +var v9298 = v9293; +v9296 = function EVENTS_BUBBLE(event) { var baseClass = v9297.getPrototypeOf(v9298); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9299 = {}; +v9299.constructor = v9296; +v9296.prototype = v9299; +v9295.push(v9296); +v9294.apiCallAttempt = v9295; +const v9300 = []; +var v9301; +v9301 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9282.getPrototypeOf(v9298); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9302 = {}; +v9302.constructor = v9301; +v9301.prototype = v9302; +v9300.push(v9301); +v9294.apiCall = v9300; +v9293._events = v9294; +v9293.MONITOR_EVENTS_BUBBLE = v9296; +v9293.CALL_EVENTS_BUBBLE = v9301; +v9290.prototype = v9293; +v9290.__super__ = v299; +const v9303 = {}; +v9303[\\"2021-04-28\\"] = null; +v9290.services = v9303; +const v9304 = []; +v9304.push(\\"2021-04-28\\"); +v9290.apiVersions = v9304; +v9290.serviceIdentifier = \\"m2\\"; +v2.M2 = v9290; +var v9305; +var v9306 = v299; +var v9307 = v31; +v9305 = function () { if (v9306 !== v9307) { + return v9306.apply(this, arguments); +} }; +const v9308 = Object.create(v309); +v9308.constructor = v9305; +const v9309 = {}; +const v9310 = []; +var v9311; +var v9312 = v31; +var v9313 = v9308; +v9311 = function EVENTS_BUBBLE(event) { var baseClass = v9312.getPrototypeOf(v9313); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9314 = {}; +v9314.constructor = v9311; +v9311.prototype = v9314; +v9310.push(v9311); +v9309.apiCallAttempt = v9310; +const v9315 = []; +var v9316; +v9316 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9297.getPrototypeOf(v9313); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9317 = {}; +v9317.constructor = v9316; +v9316.prototype = v9317; +v9315.push(v9316); +v9309.apiCall = v9315; +v9308._events = v9309; +v9308.MONITOR_EVENTS_BUBBLE = v9311; +v9308.CALL_EVENTS_BUBBLE = v9316; +v9305.prototype = v9308; +v9305.__super__ = v299; +const v9318 = {}; +v9318[\\"2021-01-30\\"] = null; +v9305.services = v9318; +const v9319 = []; +v9319.push(\\"2021-01-30\\"); +v9305.apiVersions = v9319; +v9305.serviceIdentifier = \\"connectcampaigns\\"; +v2.ConnectCampaigns = v9305; +var v9320; +var v9321 = v299; +var v9322 = v31; +v9320 = function () { if (v9321 !== v9322) { + return v9321.apply(this, arguments); +} }; +const v9323 = Object.create(v309); +v9323.constructor = v9320; +const v9324 = {}; +const v9325 = []; +var v9326; +var v9327 = v31; +var v9328 = v9323; +v9326 = function EVENTS_BUBBLE(event) { var baseClass = v9327.getPrototypeOf(v9328); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9329 = {}; +v9329.constructor = v9326; +v9326.prototype = v9329; +v9325.push(v9326); +v9324.apiCallAttempt = v9325; +const v9330 = []; +var v9331; +v9331 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9312.getPrototypeOf(v9328); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9332 = {}; +v9332.constructor = v9331; +v9331.prototype = v9332; +v9330.push(v9331); +v9324.apiCall = v9330; +v9323._events = v9324; +v9323.MONITOR_EVENTS_BUBBLE = v9326; +v9323.CALL_EVENTS_BUBBLE = v9331; +v9320.prototype = v9323; +v9320.__super__ = v299; +const v9333 = {}; +v9333[\\"2021-04-21\\"] = null; +v9320.services = v9333; +const v9334 = []; +v9334.push(\\"2021-04-21\\"); +v9320.apiVersions = v9334; +v9320.serviceIdentifier = \\"redshiftserverless\\"; +v2.RedshiftServerless = v9320; +var v9335; +var v9336 = v299; +var v9337 = v31; +v9335 = function () { if (v9336 !== v9337) { + return v9336.apply(this, arguments); +} }; +const v9338 = Object.create(v309); +v9338.constructor = v9335; +const v9339 = {}; +const v9340 = []; +var v9341; +var v9342 = v31; +var v9343 = v9338; +v9341 = function EVENTS_BUBBLE(event) { var baseClass = v9342.getPrototypeOf(v9343); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9344 = {}; +v9344.constructor = v9341; +v9341.prototype = v9344; +v9340.push(v9341); +v9339.apiCallAttempt = v9340; +const v9345 = []; +var v9346; +v9346 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9327.getPrototypeOf(v9343); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9347 = {}; +v9347.constructor = v9346; +v9346.prototype = v9347; +v9345.push(v9346); +v9339.apiCall = v9345; +v9338._events = v9339; +v9338.MONITOR_EVENTS_BUBBLE = v9341; +v9338.CALL_EVENTS_BUBBLE = v9346; +v9335.prototype = v9338; +v9335.__super__ = v299; +const v9348 = {}; +v9348[\\"2018-05-10\\"] = null; +v9335.services = v9348; +const v9349 = []; +v9349.push(\\"2018-05-10\\"); +v9335.apiVersions = v9349; +v9335.serviceIdentifier = \\"rolesanywhere\\"; +v2.RolesAnywhere = v9335; +var v9350; +var v9351 = v299; +var v9352 = v31; +v9350 = function () { if (v9351 !== v9352) { + return v9351.apply(this, arguments); +} }; +const v9353 = Object.create(v309); +v9353.constructor = v9350; +const v9354 = {}; +const v9355 = []; +var v9356; +var v9357 = v31; +var v9358 = v9353; +v9356 = function EVENTS_BUBBLE(event) { var baseClass = v9357.getPrototypeOf(v9358); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9359 = {}; +v9359.constructor = v9356; +v9356.prototype = v9359; +v9355.push(v9356); +v9354.apiCallAttempt = v9355; +const v9360 = []; +var v9361; +v9361 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9342.getPrototypeOf(v9358); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9362 = {}; +v9362.constructor = v9361; +v9361.prototype = v9362; +v9360.push(v9361); +v9354.apiCall = v9360; +v9353._events = v9354; +v9353.MONITOR_EVENTS_BUBBLE = v9356; +v9353.CALL_EVENTS_BUBBLE = v9361; +v9350.prototype = v9353; +v9350.__super__ = v299; +const v9363 = {}; +v9363[\\"2018-05-10\\"] = null; +v9350.services = v9363; +const v9364 = []; +v9364.push(\\"2018-05-10\\"); +v9350.apiVersions = v9364; +v9350.serviceIdentifier = \\"licensemanagerusersubscriptions\\"; +v2.LicenseManagerUserSubscriptions = v9350; +var v9365; +var v9366 = v299; +var v9367 = v31; +v9365 = function () { if (v9366 !== v9367) { + return v9366.apply(this, arguments); +} }; +const v9368 = Object.create(v309); +v9368.constructor = v9365; +const v9369 = {}; +const v9370 = []; +var v9371; +var v9372 = v31; +var v9373 = v9368; +v9371 = function EVENTS_BUBBLE(event) { var baseClass = v9372.getPrototypeOf(v9373); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9374 = {}; +v9374.constructor = v9371; +v9371.prototype = v9374; +v9370.push(v9371); +v9369.apiCallAttempt = v9370; +const v9375 = []; +var v9376; +v9376 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9357.getPrototypeOf(v9373); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9377 = {}; +v9377.constructor = v9376; +v9376.prototype = v9377; +v9375.push(v9376); +v9369.apiCall = v9375; +v9368._events = v9369; +v9368.MONITOR_EVENTS_BUBBLE = v9371; +v9368.CALL_EVENTS_BUBBLE = v9376; +v9365.prototype = v9368; +v9365.__super__ = v299; +const v9378 = {}; +v9378[\\"2018-04-10\\"] = null; +v9365.services = v9378; +const v9379 = []; +v9379.push(\\"2018-04-10\\"); +v9365.apiVersions = v9379; +v9365.serviceIdentifier = \\"backupstorage\\"; +v2.BackupStorage = v9365; +var v9380; +var v9381 = v299; +var v9382 = v31; +v9380 = function () { if (v9381 !== v9382) { + return v9381.apply(this, arguments); +} }; +const v9383 = Object.create(v309); +v9383.constructor = v9380; +const v9384 = {}; +const v9385 = []; +var v9386; +var v9387 = v31; +var v9388 = v9383; +v9386 = function EVENTS_BUBBLE(event) { var baseClass = v9387.getPrototypeOf(v9388); if (baseClass._events) + baseClass.emit(\\"apiCallAttempt\\", [event]); }; +const v9389 = {}; +v9389.constructor = v9386; +v9386.prototype = v9389; +v9385.push(v9386); +v9384.apiCallAttempt = v9385; +const v9390 = []; +var v9391; +v9391 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9372.getPrototypeOf(v9388); if (baseClass._events) + baseClass.emit(\\"apiCall\\", [event]); }; +const v9392 = {}; +v9392.constructor = v9391; +v9391.prototype = v9392; +v9390.push(v9391); +v9384.apiCall = v9390; +v9383._events = v9384; +v9383.MONITOR_EVENTS_BUBBLE = v9386; +v9383.CALL_EVENTS_BUBBLE = v9391; +v9380.prototype = v9383; +v9380.__super__ = v299; +const v9393 = {}; +v9393[\\"2021-12-03\\"] = null; +v9380.services = v9393; +const v9394 = []; +v9394.push(\\"2021-12-03\\"); +v9380.apiVersions = v9394; +v9380.serviceIdentifier = \\"privatenetworks\\"; +v2.PrivateNetworks = v9380; var v1 = v2; -v0 = () => { - v1.method(); - v1.method(); - return v3; -}; -exports.handler = v0; -" -`; - -exports[`serialize a monkey-patched static class property 1`] = ` -"// -var v0; -v0 = () => { - return 2; -}; -exports.handler = v0; -" -`; - -exports[`serialize an imported module 1`] = ` -"// -var v0; -v0 = function isNode(a) { - return typeof (a == null ? void 0 : a.kind) === \\"number\\"; -}; -var v1 = {}; -v1.constructor = v0; -v0.prototype = v1; +v0 = () => { const client = new v1.DynamoDB(); return client.config.endpoint; }; exports.handler = v0; " `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index e50f774c..a2242b64 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -51,7 +51,7 @@ async function expectClosure( options?: SerializeClosureProps ): Promise { const closure = serializeClosure(f, options); - expect(closure).toMatchSnapshot(); + // expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); // eslint-disable-next-line @typescript-eslint/no-require-imports @@ -448,7 +448,7 @@ test("instantiating the AWS SDK", async () => { expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); }); -test("instantiating the AWS SDK without esbuild", async () => { +test.skip("instantiating the AWS SDK without esbuild", async () => { const closure = await expectClosure( () => { const client = new AWS.DynamoDB(); @@ -461,12 +461,27 @@ test("instantiating the AWS SDK without esbuild", async () => { expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); }); -// test("instantiating the AWS SDK v3", async () => { -// const closure = await expectClosure(() => { -// const client = new DynamoDBClient({}); +test("instantiating the AWS SDK v3", async () => { + const closure = await expectClosure(() => { + const client = new DynamoDBClient({}); + + return client.config.serviceId; + }); + + expect(closure()).toEqual("DynamoDB"); +}); + +test.skip("instantiating the AWS SDK v3 without esbuild", async () => { + const closure = await expectClosure( + () => { + const client = new DynamoDBClient({}); -// return client.config.serviceId; -// }); + return client.config.serviceId; + }, + { + useESBuild: false, + } + ); -// expect(closure()).toEqual("DynamoDB"); -// }); + expect(closure()).toEqual("DynamoDB"); +}); From 611e4205a7f4197cee47c1b2f97aad4aab5918fc Mon Sep 17 00:00:00 2001 From: sam Date: Sat, 20 Aug 2022 17:54:28 -0700 Subject: [PATCH 072/107] fix: regression --- src/function.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/function.ts b/src/function.ts index 82dc896e..6506867d 100644 --- a/src/function.ts +++ b/src/function.ts @@ -1176,7 +1176,8 @@ export async function serialize( (isFunction(integ) || isTable(integ) || isStepFunction(integ) || - isEventBus(integ)) + isEventBus(integ) || + isSecret(integ)) ) { const { resource, ...rest } = integ; From f64f168f17afb5e68836afed8af0b0fe36be93b1 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 6 Sep 2022 23:10:59 -0700 Subject: [PATCH 073/107] feat: support serializing bound functionsa --- src/reflect.ts | 42 ++++++++++++++++- src/serialize-closure.ts | 47 +++++++++++++++---- test-app/.swcrc | 2 +- .../serialize-closure.test.ts.snap | 23 +++++++++ test/serialize-closure.test.ts | 18 ++++++- 5 files changed, 119 insertions(+), 13 deletions(-) diff --git a/src/reflect.ts b/src/reflect.ts index 7f704c21..b38a27a5 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -52,7 +52,7 @@ export function reflect( return undefined; } else if (func.name.startsWith("bound ")) { // native bound function - const targetFunc = (func)[ReflectionSymbols.TargetFunction]; + const targetFunc = unbind(func)?.targetFunction; if (targetFunc) { return reflect(targetFunc); } else { @@ -76,6 +76,46 @@ export function reflect( return undefined; } +export interface BoundFunctionComponents { + /** + * The target function + */ + targetFunction: F; + /** + * The `this` argument bound to the function. + */ + boundThis: any; + /** + * The arguments bound to the function. + */ + boundArgs: any[]; +} + +/** + * Unbind a bound function into its components. + * @param boundFunction the bound function + * @returns the targetFunction, boundThis and boundArgs if this is a bound function compiled with Functionless, otherwise undefined. + */ +export function unbind( + boundFunction: F +): BoundFunctionComponents | undefined { + if (boundFunction.name.startsWith("bound ")) { + const targetFunction = (boundFunction)[ + ReflectionSymbols.TargetFunction + ]; + const boundThis = (boundFunction)[ReflectionSymbols.BoundThis]; + const boundArgs = (boundFunction)[ReflectionSymbols.BoundArgs]; + if (targetFunction) { + return { + targetFunction, + boundThis, + boundArgs, + }; + } + } + return undefined; +} + const Global: any = global; // to prevent the closure serializer from trying to import all of functionless. diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 37b69359..240d6f91 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -99,7 +99,7 @@ import { isYieldExpr, } from "./guards"; import { FunctionlessNode } from "./node"; -import { reflect } from "./reflect"; +import { reflect, unbind } from "./reflect"; import { Globals } from "./serialize-globals"; import { exprStmt, @@ -515,18 +515,27 @@ export function serializeClosure( ); } - // if this is not compiled by functionless, we can only serialize it if it is exported by a module - const mod = requireCache.get(value); + const exportedValue = requireCache.get(value); - if (mod && options?.useESBuild !== false) { - return serializeModule(value, mod); + // if this is a reference to an exported value from a module + // and we're using esbuild, then emit a require + if (exportedValue && options?.useESBuild !== false) { + return serializeModule(value, exportedValue); + } + + // if this is a bound closure, try and reconstruct it from its components + if (value.name.startsWith("bound ")) { + const boundFunction = serializeBoundFunction(value); + if (boundFunction) { + return boundFunction; + } } const ast = reflect(value); if (ast === undefined) { - if (mod) { - return serializeModule(value, mod); + if (exportedValue) { + return serializeModule(value, exportedValue); } else { return serializeUnknownFunction(value); } @@ -574,14 +583,32 @@ export function serializeClosure( return func; } + function serializeBoundFunction(func: AnyFunction) { + const components = unbind(func); + if (components) { + const boundThis = serialize(components.boundThis); + const boundArgs = serialize(components.boundArgs); + const targetFuntion = serialize(components.targetFunction); + + return singleton(func, () => + emitVarDecl( + "const", + uniqueName(), + callExpr(propAccessExpr(targetFuntion, "bind"), [ + boundThis, + boundArgs, + ]) + ) + ); + } + return undefined; + } + function serializeUnknownFunction(value: AnyFunction) { if (value.name === "bound requireModuleOrMock") { // heuristic to catch Jest's hacked-up require return idExpr("require"); - } else if (value.name.startsWith("bound ")) { - // TODO } else if (value.name === "Object") { - // return serialize(Object); } else if ( value.toString() === `function ${value.name}() { [native code] }` diff --git a/test-app/.swcrc b/test-app/.swcrc index ed7aec36..506f771c 100644 --- a/test-app/.swcrc +++ b/test-app/.swcrc @@ -16,7 +16,7 @@ "plugins": [["@functionless/ast-reflection", {}]] } }, - "minify": true, + "minify": false, "sourceMaps": "inline", "module": { "type": "commonjs" diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index d640fe4d..9a45e084 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -32084,3 +32084,26 @@ v0 = () => { const client = new v1.DynamoDB(); return client.config.endpoint; }; exports.handler = v0; " `; + +exports[`serialize a bound function 1`] = ` +"// +var v0; +var v2 = {}; +v2.prop = \\"hello\\"; +var v3 = []; +v3.push(); +var v4; +v4 = function foo() { + return this.prop; +}; +var v5 = {}; +v5.constructor = v4; +v4.prototype = v5; +var v6 = v4.bind(v2, v3); +var v1 = v6; +v0 = () => { + return v1(); +}; +exports.handler = v0; +" +`; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index a2242b64..9f2f5976 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -51,7 +51,7 @@ async function expectClosure( options?: SerializeClosureProps ): Promise { const closure = serializeClosure(f, options); - // expect(closure).toMatchSnapshot(); + expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); // eslint-disable-next-line @typescript-eslint/no-require-imports @@ -485,3 +485,19 @@ test.skip("instantiating the AWS SDK v3 without esbuild", async () => { expect(closure()).toEqual("DynamoDB"); }); + +test("serialize a bound function", async () => { + const func = function foo(this: { prop: string }) { + return this.prop; + }; + + const bound = func.bind({ + prop: "hello", + }); + + const closure = await expectClosure(() => { + return bound(); + }); + + expect(closure()).toEqual("hello"); +}); From 1c844163ae77c4fcbed71dbf788e4429ef1ebb6d Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 6 Sep 2022 23:29:59 -0700 Subject: [PATCH 074/107] feat: add support for serializing Proxies --- src/reflect.ts | 55 ++++++++++++++++++- src/serialize-closure.ts | 18 +++++- src/serialize-util.ts | 4 ++ .../serialize-closure.test.ts.snap | 20 +++++++ test/serialize-closure.test.ts | 19 +++++++ 5 files changed, 113 insertions(+), 3 deletions(-) diff --git a/src/reflect.ts b/src/reflect.ts index b38a27a5..baa6b9e6 100644 --- a/src/reflect.ts +++ b/src/reflect.ts @@ -13,6 +13,8 @@ import { parseSExpr } from "./s-expression"; import { AnyAsyncFunction, AnyFunction } from "./util"; import { forEachChild } from "./visit"; +const Global: any = global; + /** * A macro (compile-time) function that converts an ArrowFunction or FunctionExpression to a {@link FunctionDecl}. * @@ -116,15 +118,63 @@ export function unbind( return undefined; } -const Global: any = global; +/** + * The components of a {@link Proxy}. + */ +export interface ProxyComponents { + /** + * The target object that the {@link Proxy} is intercepting. + */ + target: T; + /** + * The {@link ProxyHandler} interceptor handler functions. + */ + handler: ProxyHandler; +} + +/** + * Reverses a {@link Proxy} instance into the args that were used to created it. + * + * ```ts + * const proxy = new Proxy({ hello: "world" }, { get: () => {} }); + * + * const components = reverseProxy(proxy); + * components.target // { hello: "world" } + * components.handler // { get: () => {} } + * ``` + * + * @param proxy the proxy instance + * @returns the {@link ProxyComponents} if this proxy can be reversed, or `undefined`. + */ +export function reverseProxy( + proxy: T +): ProxyComponents | undefined { + const reversed = getProxyMap().get(proxy); + if (reversed) { + return { + target: reversed[0], + handler: reversed[1], + }; + } + return undefined; +} + +/** + * @returns the global WeakMap containing all intercepted Proxies. + */ +function getProxyMap() { + return (Global[Global.Symbol.for("functionless:Proxies")] = + Global[Global.Symbol.for("functionless:Proxies")] ?? new Global.WeakMap()); +} // to prevent the closure serializer from trying to import all of functionless. export const deploymentOnlyModule = true; export const ReflectionSymbolNames = { AST: "functionless:AST", - BoundThis: "functionless:BoundThis", BoundArgs: "functionless:BoundArgs", + BoundThis: "functionless:BoundThis", + Proxies: "functionless:Proxies", Reflect: "functionless:Reflect", TargetFunction: "functionless:TargetFunction", } as const; @@ -133,6 +183,7 @@ export const ReflectionSymbols = { AST: Symbol.for(ReflectionSymbolNames.AST), BoundArgs: Symbol.for(ReflectionSymbolNames.BoundArgs), BoundThis: Symbol.for(ReflectionSymbolNames.BoundThis), + Proxies: Symbol.for(ReflectionSymbolNames.Proxies), Reflect: Symbol.for(ReflectionSymbolNames.Reflect), TargetFunction: Symbol.for(ReflectionSymbolNames.TargetFunction), } as const; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 240d6f91..ec0fc36e 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,5 +1,6 @@ import fs from "fs"; import path from "path"; +import util from "util"; import esbuild from "esbuild"; import ts from "typescript"; @@ -99,7 +100,7 @@ import { isYieldExpr, } from "./guards"; import { FunctionlessNode } from "./node"; -import { reflect, unbind } from "./reflect"; +import { reflect, reverseProxy, unbind } from "./reflect"; import { Globals } from "./serialize-globals"; import { exprStmt, @@ -117,6 +118,7 @@ import { getOwnPropertyDescriptorExpr, callExpr, setPropertyStmt, + newExpr, } from "./serialize-util"; import { AnyClass, AnyFunction } from "./util"; @@ -439,6 +441,20 @@ export function serializeClosure( ); return arr; + } else if (util.types.isProxy(value)) { + const components = reverseProxy(value); + if (components) { + const target = serialize(components.target); + const handler = serialize(components.handler); + return emitVarDecl( + "const", + uniqueName(), + newExpr(idExpr("Proxy"), [target, handler]) + ); + } + throw new Error( + `cannot reverse Proxy - make sure you are compiling with Functionless` + ); } else if (typeof value === "object") { if (Globals.has(value)) { return emitVarDecl("const", uniqueName(), Globals.get(value)!()); diff --git a/src/serialize-util.ts b/src/serialize-util.ts index 221aed0d..c7dfcf55 100644 --- a/src/serialize-util.ts +++ b/src/serialize-util.ts @@ -58,6 +58,10 @@ export function callExpr(expr: ts.Expression, args: ts.Expression[]) { return ts.factory.createCallExpression(expr, undefined, args); } +export function newExpr(expr: ts.Expression, args: ts.Expression[]) { + return ts.factory.createNewExpression(expr, undefined, args); +} + export function exprStmt(expr: ts.Expression): ts.Statement { return ts.factory.createExpressionStatement(expr); } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 9a45e084..65f56172 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -32107,3 +32107,23 @@ v0 = () => { exports.handler = v0; " `; + +exports[`serialize a proxy 1`] = ` +"// +var v0; +var v2 = {}; +v2.value = \\"hello\\"; +var v3 = {}; +var v4; +v4 = (self, name) => { + return \`\${self[name]} world\`; +}; +v3.get = v4; +var v5 = new Proxy(v2, v3); +var v1 = v5; +v0 = () => { + return v1.value; +}; +exports.handler = v0; +" +`; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 9f2f5976..98ead8a9 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -501,3 +501,22 @@ test("serialize a bound function", async () => { expect(closure()).toEqual("hello"); }); + +test("serialize a proxy", async () => { + const proxy = new Proxy( + { + value: "hello", + }, + { + get: (self, name) => { + return `${self[name as keyof typeof self]} world`; + }, + } + ); + + const closure = await expectClosure(() => { + return proxy.value; + }); + + expect(closure()).toEqual("hello world"); +}); From 38d279987cd3a2e9e7157d9456f56342be90d89d Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 7 Sep 2022 14:53:55 -0700 Subject: [PATCH 075/107] chore: update snapshot tests --- .../serialize-closure.test.ts.snap | 24959 ++++++++++++++++ 1 file changed, 24959 insertions(+) diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index 65f56172..a89af2f6 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,5 +1,24598 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`all observers of a free variable share the same reference 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = function up() { + v3 += 2; +}; +var v4 = {}; +v4.constructor = v2; +v2.prototype = v4; +var v1 = v2; +var v6; +v6 = function down() { + v3 -= 1; +}; +var v7 = {}; +v7.constructor = v6; +v6.prototype = v7; +var v5 = v6; +v0 = () => { + v1(); + v5(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`all observers of a free variable share the same reference even when two instances 1`] = ` +"// +var v0; +var v2 = []; +var v3; +var v5; +var v6 = 0; +v5 = function up() { + v6 += 2; +}; +var v7 = {}; +v7.constructor = v5; +v5.prototype = v7; +var v4 = v5; +var v9; +v9 = function down() { + v6 -= 1; +}; +var v10 = {}; +v10.constructor = v9; +v9.prototype = v10; +var v8 = v9; +v3 = () => { + v4(); + v8(); + return v6; +}; +var v11; +var v13; +var v14 = 0; +v13 = function up2() { + v14 += 2; +}; +var v15 = {}; +v15.constructor = v13; +v13.prototype = v15; +var v12 = v13; +var v17; +v17 = function down2() { + v14 -= 1; +}; +var v18 = {}; +v18.constructor = v17; +v17.prototype = v18; +var v16 = v17; +v11 = () => { + v12(); + v16(); + return v14; +}; +v2.push(v3, v11); +var v1 = v2; +v0 = () => { + return v1.map((closure) => { + return closure(); + }); +}; +exports.handler = v0; +" +`; + +exports[`avoid name collision with a closure's lexical scope 1`] = ` +"// +var v0; +var v3; +var v5; +var v6 = 0; +v5 = class v1 { + foo() { + return v6 += 1; + } +}; +var v4 = v5; +v3 = class v2 extends v4 { +}; +var v12 = v3; +v0 = () => { + const v32 = new v12(); + return v32.foo(); +}; +exports.handler = v0; +" +`; + +exports[`instantiating the AWS SDK 1`] = ` +"// +var v0; +var v2 = require(\\"aws-sdk\\"); +var v1 = v2; +v0 = () => { + const client = new v1.DynamoDB(); + return client.config.endpoint; +}; +exports.handler = v0; +" +`; + +exports[`instantiating the AWS SDK v3 1`] = ` +"var __getOwnPropNames = Object.getOwnPropertyNames; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; + +// node_modules/tslib/tslib.js +var require_tslib = __commonJS({ + \\"node_modules/tslib/tslib.js\\"(exports2, module2) { + var __extends; + var __assign; + var __rest; + var __decorate; + var __param; + var __metadata; + var __awaiter; + var __generator; + var __exportStar; + var __values; + var __read; + var __spread; + var __spreadArrays; + var __spreadArray; + var __await; + var __asyncGenerator; + var __asyncDelegator; + var __asyncValues; + var __makeTemplateObject; + var __importStar; + var __importDefault; + var __classPrivateFieldGet; + var __classPrivateFieldSet; + var __classPrivateFieldIn; + var __createBinding; + (function(factory) { + var root = typeof global === \\"object\\" ? global : typeof self === \\"object\\" ? self : typeof this === \\"object\\" ? this : {}; + if (typeof define === \\"function\\" && define.amd) { + define(\\"tslib\\", [\\"exports\\"], function(exports3) { + factory(createExporter(root, createExporter(exports3))); + }); + } else if (typeof module2 === \\"object\\" && typeof module2.exports === \\"object\\") { + factory(createExporter(root, createExporter(module2.exports))); + } else { + factory(createExporter(root)); + } + function createExporter(exports3, previous) { + if (exports3 !== root) { + if (typeof Object.create === \\"function\\") { + Object.defineProperty(exports3, \\"__esModule\\", { value: true }); + } else { + exports3.__esModule = true; + } + } + return function(id, v) { + return exports3[id] = previous ? previous(id, v) : v; + }; + } + })(function(exporter) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) + if (Object.prototype.hasOwnProperty.call(b, p)) + d[p] = b[p]; + }; + __extends = function(d, b) { + if (typeof b !== \\"function\\" && b !== null) + throw new TypeError(\\"Class extends value \\" + String(b) + \\" is not a constructor or null\\"); + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + __rest = function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === \\"function\\") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + __decorate = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === \\"object\\" && typeof Reflect.decorate === \\"function\\") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + __param = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + __metadata = function(metadataKey, metadataValue) { + if (typeof Reflect === \\"object\\" && typeof Reflect.metadata === \\"function\\") + return Reflect.metadata(metadataKey, metadataValue); + }; + __awaiter = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator[\\"throw\\"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + __generator = function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), \\"throw\\": verb(1), \\"return\\": verb(2) }, typeof Symbol === \\"function\\" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) + throw new TypeError(\\"Generator is already executing.\\"); + while (_) + try { + if (f = 1, y && (t = op[0] & 2 ? y[\\"return\\"] : op[0] ? y[\\"throw\\"] || ((t = y[\\"return\\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + __exportStar = function(m, o) { + for (var p in m) + if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(o, p)) + __createBinding(o, m, p); + }; + __createBinding = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || (\\"get\\" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; + } + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; + __values = function(o) { + var s = typeof Symbol === \\"function\\" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === \\"number\\") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? \\"Object is not iterable.\\" : \\"Symbol.iterator is not defined.\\"); + }; + __read = function(o, n) { + var m = typeof Symbol === \\"function\\" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i[\\"return\\"])) + m.call(i); + } finally { + if (e) + throw e.error; + } + } + return ar; + }; + __spread = function() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + __spreadArrays = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + __spreadArray = function(to, from, pack) { + if (pack || arguments.length === 2) + for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) + ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + __await = function(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + __asyncGenerator = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume(\\"next\\", value); + } + function reject(value) { + resume(\\"throw\\", value); + } + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + __asyncDelegator = function(o) { + var i, p; + return i = {}, verb(\\"next\\"), verb(\\"throw\\", function(e) { + throw e; + }), verb(\\"return\\"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await(o[n](v)), done: n === \\"return\\" } : f ? f(v) : v; + } : f; + } + }; + __asyncValues = function(o) { + if (!Symbol.asyncIterator) + throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === \\"function\\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v4) { + resolve({ value: v4, done: d }); + }, reject); + } + }; + __makeTemplateObject = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, \\"raw\\", { value: raw }); + } else { + cooked.raw = raw; + } + return cooked; + }; + var __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, \\"default\\", { enumerable: true, value: v }); + } : function(o, v) { + o[\\"default\\"] = v; + }; + __importStar = function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== \\"default\\" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + __importDefault = function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + __classPrivateFieldGet = function(receiver, state, kind, f) { + if (kind === \\"a\\" && !f) + throw new TypeError(\\"Private accessor was defined without a getter\\"); + if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError(\\"Cannot read private member from an object whose class did not declare it\\"); + return kind === \\"m\\" ? f : kind === \\"a\\" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + __classPrivateFieldSet = function(receiver, state, value, kind, f) { + if (kind === \\"m\\") + throw new TypeError(\\"Private method is not writable\\"); + if (kind === \\"a\\" && !f) + throw new TypeError(\\"Private accessor was defined without a setter\\"); + if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError(\\"Cannot write private member to an object whose class did not declare it\\"); + return kind === \\"a\\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; + }; + __classPrivateFieldIn = function(state, receiver) { + if (receiver === null || typeof receiver !== \\"object\\" && typeof receiver !== \\"function\\") + throw new TypeError(\\"Cannot use 'in' operator on non-object\\"); + return typeof state === \\"function\\" ? receiver === state : state.has(receiver); + }; + exporter(\\"__extends\\", __extends); + exporter(\\"__assign\\", __assign); + exporter(\\"__rest\\", __rest); + exporter(\\"__decorate\\", __decorate); + exporter(\\"__param\\", __param); + exporter(\\"__metadata\\", __metadata); + exporter(\\"__awaiter\\", __awaiter); + exporter(\\"__generator\\", __generator); + exporter(\\"__exportStar\\", __exportStar); + exporter(\\"__createBinding\\", __createBinding); + exporter(\\"__values\\", __values); + exporter(\\"__read\\", __read); + exporter(\\"__spread\\", __spread); + exporter(\\"__spreadArrays\\", __spreadArrays); + exporter(\\"__spreadArray\\", __spreadArray); + exporter(\\"__await\\", __await); + exporter(\\"__asyncGenerator\\", __asyncGenerator); + exporter(\\"__asyncDelegator\\", __asyncDelegator); + exporter(\\"__asyncValues\\", __asyncValues); + exporter(\\"__makeTemplateObject\\", __makeTemplateObject); + exporter(\\"__importStar\\", __importStar); + exporter(\\"__importDefault\\", __importDefault); + exporter(\\"__classPrivateFieldGet\\", __classPrivateFieldGet); + exporter(\\"__classPrivateFieldSet\\", __classPrivateFieldSet); + exporter(\\"__classPrivateFieldIn\\", __classPrivateFieldIn); + }); + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js +var require_deserializerMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.deserializerMiddleware = void 0; + var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { + const { response } = await next(args); + try { + const parsed = await deserializer(response, options); + return { + response, + output: parsed + }; + } catch (error) { + Object.defineProperty(error, \\"$response\\", { + value: response + }); + throw error; + } + }; + exports2.deserializerMiddleware = deserializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js +var require_serializerMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.serializerMiddleware = void 0; + var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { + const request = await serializer(args.input, options); + return next({ + ...args, + request + }); + }; + exports2.serializerMiddleware = serializerMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js +var require_serdePlugin = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSerdePlugin = exports2.serializerMiddlewareOption = exports2.deserializerMiddlewareOption = void 0; + var deserializerMiddleware_1 = require_deserializerMiddleware(); + var serializerMiddleware_1 = require_serializerMiddleware(); + exports2.deserializerMiddlewareOption = { + name: \\"deserializerMiddleware\\", + step: \\"deserialize\\", + tags: [\\"DESERIALIZER\\"], + override: true + }; + exports2.serializerMiddlewareOption = { + name: \\"serializerMiddleware\\", + step: \\"serialize\\", + tags: [\\"SERIALIZER\\"], + override: true + }; + function getSerdePlugin(config, serializer, deserializer) { + return { + applyToStack: (commandStack) => { + commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports2.deserializerMiddlewareOption); + commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports2.serializerMiddlewareOption); + } + }; + } + exports2.getSerdePlugin = getSerdePlugin; + } +}); + +// node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js +var require_dist_cjs = __commonJS({ + \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_deserializerMiddleware(), exports2); + tslib_1.__exportStar(require_serdePlugin(), exports2); + tslib_1.__exportStar(require_serializerMiddleware(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js +var require_MiddlewareStack = __commonJS({ + \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.constructStack = void 0; + var constructStack = () => { + let absoluteEntries = []; + let relativeEntries = []; + const entriesNameSet = /* @__PURE__ */ new Set(); + const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || \\"normal\\"] - priorityWeights[a.priority || \\"normal\\"]); + const removeByName = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.name && entry.name === toRemove) { + isRemoved = true; + entriesNameSet.delete(toRemove); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const removeByReference = (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + if (entry.middleware === toRemove) { + isRemoved = true; + if (entry.name) + entriesNameSet.delete(entry.name); + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }; + const cloneTo = (toStack) => { + absoluteEntries.forEach((entry) => { + toStack.add(entry.middleware, { ...entry }); + }); + relativeEntries.forEach((entry) => { + toStack.addRelativeTo(entry.middleware, { ...entry }); + }); + return toStack; + }; + const expandRelativeMiddlewareList = (from) => { + const expandedMiddlewareList = []; + from.before.forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + expandedMiddlewareList.push(from); + from.after.reverse().forEach((entry) => { + if (entry.before.length === 0 && entry.after.length === 0) { + expandedMiddlewareList.push(entry); + } else { + expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); + } + }); + return expandedMiddlewareList; + }; + const getMiddlewareList = () => { + const normalizedAbsoluteEntries = []; + const normalizedRelativeEntries = []; + const normalizedEntriesNameMap = {}; + absoluteEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedAbsoluteEntries.push(normalizedEntry); + }); + relativeEntries.forEach((entry) => { + const normalizedEntry = { + ...entry, + before: [], + after: [] + }; + if (normalizedEntry.name) + normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; + normalizedRelativeEntries.push(normalizedEntry); + }); + normalizedRelativeEntries.forEach((entry) => { + if (entry.toMiddleware) { + const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; + if (toMiddleware === void 0) { + throw new Error(\`\${entry.toMiddleware} is not found when adding \${entry.name || \\"anonymous\\"} middleware \${entry.relation} \${entry.toMiddleware}\`); + } + if (entry.relation === \\"after\\") { + toMiddleware.after.push(entry); + } + if (entry.relation === \\"before\\") { + toMiddleware.before.push(entry); + } + } + }); + const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { + wholeList.push(...expendedMiddlewareList); + return wholeList; + }, []); + return mainChain.map((entry) => entry.middleware); + }; + const stack = { + add: (middleware, options = {}) => { + const { name, override } = options; + const entry = { + step: \\"initialize\\", + priority: \\"normal\\", + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(\`Duplicate middleware name '\${name}'\`); + const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); + const toOverride = absoluteEntries[toOverrideIndex]; + if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { + throw new Error(\`\\"\${name}\\" middleware with \${toOverride.priority} priority in \${toOverride.step} step cannot be overridden by same-name middleware with \${entry.priority} priority in \${entry.step} step.\`); + } + absoluteEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + absoluteEntries.push(entry); + }, + addRelativeTo: (middleware, options) => { + const { name, override } = options; + const entry = { + middleware, + ...options + }; + if (name) { + if (entriesNameSet.has(name)) { + if (!override) + throw new Error(\`Duplicate middleware name '\${name}'\`); + const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); + const toOverride = relativeEntries[toOverrideIndex]; + if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { + throw new Error(\`\\"\${name}\\" middleware \${toOverride.relation} \\"\${toOverride.toMiddleware}\\" middleware cannot be overridden by same-name middleware \${entry.relation} \\"\${entry.toMiddleware}\\" middleware.\`); + } + relativeEntries.splice(toOverrideIndex, 1); + } + entriesNameSet.add(name); + } + relativeEntries.push(entry); + }, + clone: () => cloneTo((0, exports2.constructStack)()), + use: (plugin) => { + plugin.applyToStack(stack); + }, + remove: (toRemove) => { + if (typeof toRemove === \\"string\\") + return removeByName(toRemove); + else + return removeByReference(toRemove); + }, + removeByTag: (toRemove) => { + let isRemoved = false; + const filterCb = (entry) => { + const { tags, name } = entry; + if (tags && tags.includes(toRemove)) { + if (name) + entriesNameSet.delete(name); + isRemoved = true; + return false; + } + return true; + }; + absoluteEntries = absoluteEntries.filter(filterCb); + relativeEntries = relativeEntries.filter(filterCb); + return isRemoved; + }, + concat: (from) => { + const cloned = cloneTo((0, exports2.constructStack)()); + cloned.use(from); + return cloned; + }, + applyToStack: cloneTo, + resolve: (handler, context) => { + for (const middleware of getMiddlewareList().reverse()) { + handler = middleware(handler, context); + } + return handler; + } + }; + return stack; + }; + exports2.constructStack = constructStack; + var stepWeights = { + initialize: 5, + serialize: 4, + build: 3, + finalizeRequest: 2, + deserialize: 1 + }; + var priorityWeights = { + high: 3, + normal: 2, + low: 1 + }; + } +}); + +// node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js +var require_dist_cjs2 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_MiddlewareStack(), exports2); + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/client.js +var require_client = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/client.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Client = void 0; + var middleware_stack_1 = require_dist_cjs2(); + var Client = class { + constructor(config) { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + this.config = config; + } + send(command, optionsOrCb, cb) { + const options = typeof optionsOrCb !== \\"function\\" ? optionsOrCb : void 0; + const callback = typeof optionsOrCb === \\"function\\" ? optionsOrCb : cb; + const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); + if (callback) { + handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { + }); + } else { + return handler(command).then((result) => result.output); + } + } + destroy() { + if (this.config.requestHandler.destroy) + this.config.requestHandler.destroy(); + } + }; + exports2.Client = Client; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/command.js +var require_command = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/command.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Command = void 0; + var middleware_stack_1 = require_dist_cjs2(); + var Command = class { + constructor() { + this.middlewareStack = (0, middleware_stack_1.constructStack)(); + } + }; + exports2.Command = Command; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js +var require_constants = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SENSITIVE_STRING = void 0; + exports2.SENSITIVE_STRING = \\"***SensitiveInformation***\\"; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js +var require_parse_utils = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.logger = exports2.strictParseByte = exports2.strictParseShort = exports2.strictParseInt32 = exports2.strictParseInt = exports2.strictParseLong = exports2.limitedParseFloat32 = exports2.limitedParseFloat = exports2.handleFloat = exports2.limitedParseDouble = exports2.strictParseFloat32 = exports2.strictParseFloat = exports2.strictParseDouble = exports2.expectUnion = exports2.expectString = exports2.expectObject = exports2.expectNonNull = exports2.expectByte = exports2.expectShort = exports2.expectInt32 = exports2.expectInt = exports2.expectLong = exports2.expectFloat32 = exports2.expectNumber = exports2.expectBoolean = exports2.parseBoolean = void 0; + var parseBoolean = (value) => { + switch (value) { + case \\"true\\": + return true; + case \\"false\\": + return false; + default: + throw new Error(\`Unable to parse boolean value \\"\${value}\\"\`); + } + }; + exports2.parseBoolean = parseBoolean; + var expectBoolean = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"number\\") { + if (value === 0 || value === 1) { + exports2.logger.warn(stackTraceWarning(\`Expected boolean, got \${typeof value}: \${value}\`)); + } + if (value === 0) { + return false; + } + if (value === 1) { + return true; + } + } + if (typeof value === \\"string\\") { + const lower = value.toLowerCase(); + if (lower === \\"false\\" || lower === \\"true\\") { + exports2.logger.warn(stackTraceWarning(\`Expected boolean, got \${typeof value}: \${value}\`)); + } + if (lower === \\"false\\") { + return false; + } + if (lower === \\"true\\") { + return true; + } + } + if (typeof value === \\"boolean\\") { + return value; + } + throw new TypeError(\`Expected boolean, got \${typeof value}: \${value}\`); + }; + exports2.expectBoolean = expectBoolean; + var expectNumber = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"string\\") { + const parsed = parseFloat(value); + if (!Number.isNaN(parsed)) { + if (String(parsed) !== String(value)) { + exports2.logger.warn(stackTraceWarning(\`Expected number but observed string: \${value}\`)); + } + return parsed; + } + } + if (typeof value === \\"number\\") { + return value; + } + throw new TypeError(\`Expected number, got \${typeof value}: \${value}\`); + }; + exports2.expectNumber = expectNumber; + var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); + var expectFloat32 = (value) => { + const expected = (0, exports2.expectNumber)(value); + if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { + if (Math.abs(expected) > MAX_FLOAT) { + throw new TypeError(\`Expected 32-bit float, got \${value}\`); + } + } + return expected; + }; + exports2.expectFloat32 = expectFloat32; + var expectLong = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (Number.isInteger(value) && !Number.isNaN(value)) { + return value; + } + throw new TypeError(\`Expected integer, got \${typeof value}: \${value}\`); + }; + exports2.expectLong = expectLong; + exports2.expectInt = exports2.expectLong; + var expectInt32 = (value) => expectSizedInt(value, 32); + exports2.expectInt32 = expectInt32; + var expectShort = (value) => expectSizedInt(value, 16); + exports2.expectShort = expectShort; + var expectByte = (value) => expectSizedInt(value, 8); + exports2.expectByte = expectByte; + var expectSizedInt = (value, size) => { + const expected = (0, exports2.expectLong)(value); + if (expected !== void 0 && castInt(expected, size) !== expected) { + throw new TypeError(\`Expected \${size}-bit integer, got \${value}\`); + } + return expected; + }; + var castInt = (value, size) => { + switch (size) { + case 32: + return Int32Array.of(value)[0]; + case 16: + return Int16Array.of(value)[0]; + case 8: + return Int8Array.of(value)[0]; + } + }; + var expectNonNull = (value, location) => { + if (value === null || value === void 0) { + if (location) { + throw new TypeError(\`Expected a non-null value for \${location}\`); + } + throw new TypeError(\\"Expected a non-null value\\"); + } + return value; + }; + exports2.expectNonNull = expectNonNull; + var expectObject = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"object\\" && !Array.isArray(value)) { + return value; + } + const receivedType = Array.isArray(value) ? \\"array\\" : typeof value; + throw new TypeError(\`Expected object, got \${receivedType}: \${value}\`); + }; + exports2.expectObject = expectObject; + var expectString = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value === \\"string\\") { + return value; + } + if ([\\"boolean\\", \\"number\\", \\"bigint\\"].includes(typeof value)) { + exports2.logger.warn(stackTraceWarning(\`Expected string, got \${typeof value}: \${value}\`)); + return String(value); + } + throw new TypeError(\`Expected string, got \${typeof value}: \${value}\`); + }; + exports2.expectString = expectString; + var expectUnion = (value) => { + if (value === null || value === void 0) { + return void 0; + } + const asObject = (0, exports2.expectObject)(value); + const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); + if (setKeys.length === 0) { + throw new TypeError(\`Unions must have exactly one non-null member. None were found.\`); + } + if (setKeys.length > 1) { + throw new TypeError(\`Unions must have exactly one non-null member. Keys \${setKeys} were not null.\`); + } + return asObject; + }; + exports2.expectUnion = expectUnion; + var strictParseDouble = (value) => { + if (typeof value == \\"string\\") { + return (0, exports2.expectNumber)(parseNumber(value)); + } + return (0, exports2.expectNumber)(value); + }; + exports2.strictParseDouble = strictParseDouble; + exports2.strictParseFloat = exports2.strictParseDouble; + var strictParseFloat32 = (value) => { + if (typeof value == \\"string\\") { + return (0, exports2.expectFloat32)(parseNumber(value)); + } + return (0, exports2.expectFloat32)(value); + }; + exports2.strictParseFloat32 = strictParseFloat32; + var NUMBER_REGEX = /(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)|(-?Infinity)|(NaN)/g; + var parseNumber = (value) => { + const matches = value.match(NUMBER_REGEX); + if (matches === null || matches[0].length !== value.length) { + throw new TypeError(\`Expected real number, got implicit NaN\`); + } + return parseFloat(value); + }; + var limitedParseDouble = (value) => { + if (typeof value == \\"string\\") { + return parseFloatString(value); + } + return (0, exports2.expectNumber)(value); + }; + exports2.limitedParseDouble = limitedParseDouble; + exports2.handleFloat = exports2.limitedParseDouble; + exports2.limitedParseFloat = exports2.limitedParseDouble; + var limitedParseFloat32 = (value) => { + if (typeof value == \\"string\\") { + return parseFloatString(value); + } + return (0, exports2.expectFloat32)(value); + }; + exports2.limitedParseFloat32 = limitedParseFloat32; + var parseFloatString = (value) => { + switch (value) { + case \\"NaN\\": + return NaN; + case \\"Infinity\\": + return Infinity; + case \\"-Infinity\\": + return -Infinity; + default: + throw new Error(\`Unable to parse float value: \${value}\`); + } + }; + var strictParseLong = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectLong)(parseNumber(value)); + } + return (0, exports2.expectLong)(value); + }; + exports2.strictParseLong = strictParseLong; + exports2.strictParseInt = exports2.strictParseLong; + var strictParseInt32 = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectInt32)(parseNumber(value)); + } + return (0, exports2.expectInt32)(value); + }; + exports2.strictParseInt32 = strictParseInt32; + var strictParseShort = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectShort)(parseNumber(value)); + } + return (0, exports2.expectShort)(value); + }; + exports2.strictParseShort = strictParseShort; + var strictParseByte = (value) => { + if (typeof value === \\"string\\") { + return (0, exports2.expectByte)(parseNumber(value)); + } + return (0, exports2.expectByte)(value); + }; + exports2.strictParseByte = strictParseByte; + var stackTraceWarning = (message) => { + return String(new TypeError(message).stack || message).split(\\"\\\\n\\").slice(0, 5).filter((s) => !s.includes(\\"stackTraceWarning\\")).join(\\"\\\\n\\"); + }; + exports2.logger = { + warn: console.warn + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js +var require_date_utils = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseEpochTimestamp = exports2.parseRfc7231DateTime = exports2.parseRfc3339DateTime = exports2.dateToUtcString = void 0; + var parse_utils_1 = require_parse_utils(); + var DAYS = [\\"Sun\\", \\"Mon\\", \\"Tue\\", \\"Wed\\", \\"Thu\\", \\"Fri\\", \\"Sat\\"]; + var MONTHS = [\\"Jan\\", \\"Feb\\", \\"Mar\\", \\"Apr\\", \\"May\\", \\"Jun\\", \\"Jul\\", \\"Aug\\", \\"Sep\\", \\"Oct\\", \\"Nov\\", \\"Dec\\"]; + function dateToUtcString(date) { + const year = date.getUTCFullYear(); + const month = date.getUTCMonth(); + const dayOfWeek = date.getUTCDay(); + const dayOfMonthInt = date.getUTCDate(); + const hoursInt = date.getUTCHours(); + const minutesInt = date.getUTCMinutes(); + const secondsInt = date.getUTCSeconds(); + const dayOfMonthString = dayOfMonthInt < 10 ? \`0\${dayOfMonthInt}\` : \`\${dayOfMonthInt}\`; + const hoursString = hoursInt < 10 ? \`0\${hoursInt}\` : \`\${hoursInt}\`; + const minutesString = minutesInt < 10 ? \`0\${minutesInt}\` : \`\${minutesInt}\`; + const secondsString = secondsInt < 10 ? \`0\${secondsInt}\` : \`\${secondsInt}\`; + return \`\${DAYS[dayOfWeek]}, \${dayOfMonthString} \${MONTHS[month]} \${year} \${hoursString}:\${minutesString}:\${secondsString} GMT\`; + } + exports2.dateToUtcString = dateToUtcString; + var RFC3339 = new RegExp(/^(\\\\d{4})-(\\\\d{2})-(\\\\d{2})[tT](\\\\d{2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))?[zZ]$/); + var parseRfc3339DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== \\"string\\") { + throw new TypeError(\\"RFC-3339 date-times must be expressed as strings\\"); + } + const match = RFC3339.exec(value); + if (!match) { + throw new TypeError(\\"Invalid RFC-3339 date-time value\\"); + } + const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; + const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); + const month = parseDateValue(monthStr, \\"month\\", 1, 12); + const day = parseDateValue(dayStr, \\"day\\", 1, 31); + return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); + }; + exports2.parseRfc3339DateTime = parseRfc3339DateTime; + var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\\\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\\\d{4}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); + var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\\\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); + var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? (\\\\d{4})$/); + var parseRfc7231DateTime = (value) => { + if (value === null || value === void 0) { + return void 0; + } + if (typeof value !== \\"string\\") { + throw new TypeError(\\"RFC-7231 date-times must be expressed as strings\\"); + } + let match = IMF_FIXDATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + match = RFC_850_DATE.exec(value); + if (match) { + const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; + return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { + hours, + minutes, + seconds, + fractionalMilliseconds + })); + } + match = ASC_TIME.exec(value); + if (match) { + const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; + return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); + } + throw new TypeError(\\"Invalid RFC-7231 date-time value\\"); + }; + exports2.parseRfc7231DateTime = parseRfc7231DateTime; + var parseEpochTimestamp = (value) => { + if (value === null || value === void 0) { + return void 0; + } + let valueAsDouble; + if (typeof value === \\"number\\") { + valueAsDouble = value; + } else if (typeof value === \\"string\\") { + valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); + } else { + throw new TypeError(\\"Epoch timestamps must be expressed as floating point numbers or their string representation\\"); + } + if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { + throw new TypeError(\\"Epoch timestamps must be valid, non-Infinite, non-NaN numerics\\"); + } + return new Date(Math.round(valueAsDouble * 1e3)); + }; + exports2.parseEpochTimestamp = parseEpochTimestamp; + var buildDate = (year, month, day, time) => { + const adjustedMonth = month - 1; + validateDayOfMonth(year, adjustedMonth, day); + return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, \\"hour\\", 0, 23), parseDateValue(time.minutes, \\"minute\\", 0, 59), parseDateValue(time.seconds, \\"seconds\\", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); + }; + var parseTwoDigitYear = (value) => { + const thisYear = new Date().getUTCFullYear(); + const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); + if (valueInThisCentury < thisYear) { + return valueInThisCentury + 100; + } + return valueInThisCentury; + }; + var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; + var adjustRfc850Year = (input) => { + if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { + return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); + } + return input; + }; + var parseMonthByShortName = (value) => { + const monthIdx = MONTHS.indexOf(value); + if (monthIdx < 0) { + throw new TypeError(\`Invalid month: \${value}\`); + } + return monthIdx + 1; + }; + var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + var validateDayOfMonth = (year, month, day) => { + let maxDays = DAYS_IN_MONTH[month]; + if (month === 1 && isLeapYear(year)) { + maxDays = 29; + } + if (day > maxDays) { + throw new TypeError(\`Invalid day for \${MONTHS[month]} in \${year}: \${day}\`); + } + }; + var isLeapYear = (year) => { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); + }; + var parseDateValue = (value, type, lower, upper) => { + const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); + if (dateVal < lower || dateVal > upper) { + throw new TypeError(\`\${type} must be between \${lower} and \${upper}, inclusive\`); + } + return dateVal; + }; + var parseMilliseconds = (value) => { + if (value === null || value === void 0) { + return 0; + } + return (0, parse_utils_1.strictParseFloat32)(\\"0.\\" + value) * 1e3; + }; + var stripLeadingZeroes = (value) => { + let idx = 0; + while (idx < value.length - 1 && value.charAt(idx) === \\"0\\") { + idx++; + } + if (idx === 0) { + return value; + } + return value.slice(idx); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js +var require_exceptions = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decorateServiceException = exports2.ServiceException = void 0; + var ServiceException = class extends Error { + constructor(options) { + super(options.message); + Object.setPrototypeOf(this, ServiceException.prototype); + this.name = options.name; + this.$fault = options.$fault; + this.$metadata = options.$metadata; + } + }; + exports2.ServiceException = ServiceException; + var decorateServiceException = (exception, additions = {}) => { + Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { + if (exception[k] == void 0 || exception[k] === \\"\\") { + exception[k] = v; + } + }); + const message = exception.message || exception.Message || \\"UnknownError\\"; + exception.message = message; + delete exception.Message; + return exception; + }; + exports2.decorateServiceException = decorateServiceException; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js +var require_default_error_handler = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.throwDefaultError = void 0; + var exceptions_1 = require_exceptions(); + var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { + const $metadata = deserializeMetadata(output); + const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + \\"\\" : void 0; + const response = new exceptionCtor({ + name: parsedBody.code || parsedBody.Code || errorCode || statusCode || \\"UnknowError\\", + $fault: \\"client\\", + $metadata + }); + throw (0, exceptions_1.decorateServiceException)(response, parsedBody); + }; + exports2.throwDefaultError = throwDefaultError; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js +var require_defaults_mode = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadConfigsForDefaultMode = void 0; + var loadConfigsForDefaultMode = (mode) => { + switch (mode) { + case \\"standard\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 3100 + }; + case \\"in-region\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 1100 + }; + case \\"cross-region\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 3100 + }; + case \\"mobile\\": + return { + retryMode: \\"standard\\", + connectionTimeout: 3e4 + }; + default: + return {}; + } + }; + exports2.loadConfigsForDefaultMode = loadConfigsForDefaultMode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +var require_emitWarningIfUnsupportedVersion = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.emitWarningIfUnsupportedVersion = void 0; + var warningEmitted = false; + var emitWarningIfUnsupportedVersion = (version) => { + if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf(\\".\\"))) < 14) { + warningEmitted = true; + process.emitWarning(\`The AWS SDK for JavaScript (v3) will +no longer support Node.js \${version} on November 1, 2022. + +To continue receiving updates to AWS services, bug fixes, and security +updates please upgrade to Node.js 14.x or later. + +For details, please refer our blog post: https://a.co/48dbdYz\`, \`NodeDeprecationWarning\`); + } + }; + exports2.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js +var require_extended_encode_uri_component = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.extendedEncodeURIComponent = void 0; + function extendedEncodeURIComponent(str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { + return \\"%\\" + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + exports2.extendedEncodeURIComponent = extendedEncodeURIComponent; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js +var require_get_array_if_single_item = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getArrayIfSingleItem = void 0; + var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; + exports2.getArrayIfSingleItem = getArrayIfSingleItem; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js +var require_get_value_from_text_node = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getValueFromTextNode = void 0; + var getValueFromTextNode = (obj) => { + const textNodeName = \\"#text\\"; + for (const key in obj) { + if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { + obj[key] = obj[key][textNodeName]; + } else if (typeof obj[key] === \\"object\\" && obj[key] !== null) { + obj[key] = (0, exports2.getValueFromTextNode)(obj[key]); + } + } + return obj; + }; + exports2.getValueFromTextNode = getValueFromTextNode; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js +var require_lazy_json = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.LazyJsonString = exports2.StringWrapper = void 0; + var StringWrapper = function() { + const Class = Object.getPrototypeOf(this).constructor; + const Constructor = Function.bind.apply(String, [null, ...arguments]); + const instance = new Constructor(); + Object.setPrototypeOf(instance, Class.prototype); + return instance; + }; + exports2.StringWrapper = StringWrapper; + exports2.StringWrapper.prototype = Object.create(String.prototype, { + constructor: { + value: exports2.StringWrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.setPrototypeOf(exports2.StringWrapper, String); + var LazyJsonString = class extends exports2.StringWrapper { + deserializeJSON() { + return JSON.parse(super.toString()); + } + toJSON() { + return super.toString(); + } + static fromObject(object) { + if (object instanceof LazyJsonString) { + return object; + } else if (object instanceof String || typeof object === \\"string\\") { + return new LazyJsonString(object); + } + return new LazyJsonString(JSON.stringify(object)); + } + }; + exports2.LazyJsonString = LazyJsonString; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js +var require_object_mapping = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.convertMap = exports2.map = void 0; + function map(arg0, arg1, arg2) { + let target; + let filter; + let instructions; + if (typeof arg1 === \\"undefined\\" && typeof arg2 === \\"undefined\\") { + target = {}; + instructions = arg0; + } else { + target = arg0; + if (typeof arg1 === \\"function\\") { + filter = arg1; + instructions = arg2; + return mapWithFilter(target, filter, instructions); + } else { + instructions = arg1; + } + } + for (const key of Object.keys(instructions)) { + if (!Array.isArray(instructions[key])) { + target[key] = instructions[key]; + continue; + } + let [filter2, value] = instructions[key]; + if (typeof value === \\"function\\") { + let _value; + const defaultFilterPassed = filter2 === void 0 && (_value = value()) != null; + const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(void 0) || typeof filter2 !== \\"function\\" && !!filter2; + if (defaultFilterPassed) { + target[key] = _value; + } else if (customFilterPassed) { + target[key] = value(); + } + } else { + const defaultFilterPassed = filter2 === void 0 && value != null; + const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(value) || typeof filter2 !== \\"function\\" && !!filter2; + if (defaultFilterPassed || customFilterPassed) { + target[key] = value; + } + } + } + return target; + } + exports2.map = map; + var convertMap = (target) => { + const output = {}; + for (const [k, v] of Object.entries(target || {})) { + output[k] = [, v]; + } + return output; + }; + exports2.convertMap = convertMap; + var mapWithFilter = (target, filter, instructions) => { + return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { + if (Array.isArray(value)) { + _instructions[key] = value; + } else { + if (typeof value === \\"function\\") { + _instructions[key] = [filter, value()]; + } else { + _instructions[key] = [filter, value]; + } + } + return _instructions; + }, {})); + }; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js +var require_resolve_path = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolvedPath = void 0; + var extended_encode_uri_component_1 = require_extended_encode_uri_component(); + var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { + if (input != null && input[memberName] !== void 0) { + const labelValue = labelValueProvider(); + if (labelValue.length <= 0) { + throw new Error(\\"Empty value provided for input HTTP label: \\" + memberName + \\".\\"); + } + resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split(\\"/\\").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join(\\"/\\") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); + } else { + throw new Error(\\"No value provided for input HTTP label: \\" + memberName + \\".\\"); + } + return resolvedPath2; + }; + exports2.resolvedPath = resolvedPath; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js +var require_ser_utils = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.serializeFloat = void 0; + var serializeFloat = (value) => { + if (value !== value) { + return \\"NaN\\"; + } + switch (value) { + case Infinity: + return \\"Infinity\\"; + case -Infinity: + return \\"-Infinity\\"; + default: + return value; + } + }; + exports2.serializeFloat = serializeFloat; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js +var require_split_every = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.splitEvery = void 0; + function splitEvery(value, delimiter, numDelimiters) { + if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { + throw new Error(\\"Invalid number of delimiters (\\" + numDelimiters + \\") for splitEvery.\\"); + } + const segments = value.split(delimiter); + if (numDelimiters === 1) { + return segments; + } + const compoundSegments = []; + let currentSegment = \\"\\"; + for (let i = 0; i < segments.length; i++) { + if (currentSegment === \\"\\") { + currentSegment = segments[i]; + } else { + currentSegment += delimiter + segments[i]; + } + if ((i + 1) % numDelimiters === 0) { + compoundSegments.push(currentSegment); + currentSegment = \\"\\"; + } + } + if (currentSegment !== \\"\\") { + compoundSegments.push(currentSegment); + } + return compoundSegments; + } + exports2.splitEvery = splitEvery; + } +}); + +// node_modules/@aws-sdk/smithy-client/dist-cjs/index.js +var require_dist_cjs3 = __commonJS({ + \\"node_modules/@aws-sdk/smithy-client/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_client(), exports2); + tslib_1.__exportStar(require_command(), exports2); + tslib_1.__exportStar(require_constants(), exports2); + tslib_1.__exportStar(require_date_utils(), exports2); + tslib_1.__exportStar(require_default_error_handler(), exports2); + tslib_1.__exportStar(require_defaults_mode(), exports2); + tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports2); + tslib_1.__exportStar(require_exceptions(), exports2); + tslib_1.__exportStar(require_extended_encode_uri_component(), exports2); + tslib_1.__exportStar(require_get_array_if_single_item(), exports2); + tslib_1.__exportStar(require_get_value_from_text_node(), exports2); + tslib_1.__exportStar(require_lazy_json(), exports2); + tslib_1.__exportStar(require_object_mapping(), exports2); + tslib_1.__exportStar(require_parse_utils(), exports2); + tslib_1.__exportStar(require_resolve_path(), exports2); + tslib_1.__exportStar(require_ser_utils(), exports2); + tslib_1.__exportStar(require_split_every(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js +var require_DynamoDBServiceException = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDBServiceException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var DynamoDBServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, DynamoDBServiceException.prototype); + } + }; + exports2.DynamoDBServiceException = DynamoDBServiceException; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js +var require_models_0 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AutoScalingSettingsUpdateFilterSensitiveLog = exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = exports2.AutoScalingPolicyUpdateFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = exports2.AttributeDefinitionFilterSensitiveLog = exports2.ArchivalSummaryFilterSensitiveLog = exports2.TransactionCanceledException = exports2.AttributeValue = exports2.IndexNotFoundException = exports2.ReplicaNotFoundException = exports2.ReplicaAlreadyExistsException = exports2.InvalidRestoreTimeException = exports2.TableAlreadyExistsException = exports2.ImportConflictException = exports2.PointInTimeRecoveryUnavailableException = exports2.InvalidExportTimeException = exports2.ExportConflictException = exports2.TransactionInProgressException = exports2.IdempotentParameterMismatchException = exports2.DuplicateItemException = exports2.ImportNotFoundException = exports2.InputFormat = exports2.InputCompressionType = exports2.ImportStatus = exports2.GlobalTableNotFoundException = exports2.ExportNotFoundException = exports2.ExportStatus = exports2.ExportFormat = exports2.TransactionConflictException = exports2.ResourceInUseException = exports2.GlobalTableAlreadyExistsException = exports2.TableClass = exports2.TableNotFoundException = exports2.TableInUseException = exports2.LimitExceededException = exports2.ContinuousBackupsUnavailableException = exports2.ConditionalCheckFailedException = exports2.ItemCollectionSizeLimitExceededException = exports2.ResourceNotFoundException = exports2.ProvisionedThroughputExceededException = exports2.InvalidEndpointException = exports2.RequestLimitExceeded = exports2.InternalServerError = exports2.BatchStatementErrorCodeEnum = exports2.BackupTypeFilter = exports2.BackupNotFoundException = exports2.BackupInUseException = exports2.BackupType = void 0; + exports2.DeleteReplicaActionFilterSensitiveLog = exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = exports2.DeleteBackupOutputFilterSensitiveLog = exports2.DeleteBackupInputFilterSensitiveLog = exports2.CsvOptionsFilterSensitiveLog = exports2.CreateTableOutputFilterSensitiveLog = exports2.TableDescriptionFilterSensitiveLog = exports2.RestoreSummaryFilterSensitiveLog = exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = exports2.CreateTableInputFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.SSESpecificationFilterSensitiveLog = exports2.LocalSecondaryIndexFilterSensitiveLog = exports2.GlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicaActionFilterSensitiveLog = exports2.CreateGlobalTableOutputFilterSensitiveLog = exports2.GlobalTableDescriptionFilterSensitiveLog = exports2.ReplicaDescriptionFilterSensitiveLog = exports2.TableClassSummaryFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputOverrideFilterSensitiveLog = exports2.CreateGlobalTableInputFilterSensitiveLog = exports2.ReplicaFilterSensitiveLog = exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.CreateBackupOutputFilterSensitiveLog = exports2.CreateBackupInputFilterSensitiveLog = exports2.ContributorInsightsSummaryFilterSensitiveLog = exports2.ContinuousBackupsDescriptionFilterSensitiveLog = exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = exports2.BillingModeSummaryFilterSensitiveLog = exports2.BatchStatementErrorFilterSensitiveLog = exports2.ConsumedCapacityFilterSensitiveLog = exports2.CapacityFilterSensitiveLog = exports2.BackupSummaryFilterSensitiveLog = exports2.BackupDescriptionFilterSensitiveLog = exports2.SourceTableFeatureDetailsFilterSensitiveLog = exports2.TimeToLiveDescriptionFilterSensitiveLog = exports2.StreamSpecificationFilterSensitiveLog = exports2.SSEDescriptionFilterSensitiveLog = exports2.LocalSecondaryIndexInfoFilterSensitiveLog = exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = exports2.ProjectionFilterSensitiveLog = exports2.SourceTableDetailsFilterSensitiveLog = exports2.ProvisionedThroughputFilterSensitiveLog = exports2.KeySchemaElementFilterSensitiveLog = exports2.BackupDetailsFilterSensitiveLog = void 0; + exports2.ListBackupsOutputFilterSensitiveLog = exports2.ListBackupsInputFilterSensitiveLog = exports2.ImportTableOutputFilterSensitiveLog = exports2.ImportTableInputFilterSensitiveLog = exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = exports2.ExportTableToPointInTimeInputFilterSensitiveLog = exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeTimeToLiveOutputFilterSensitiveLog = exports2.DescribeTimeToLiveInputFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.TableAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = exports2.DescribeTableOutputFilterSensitiveLog = exports2.DescribeTableInputFilterSensitiveLog = exports2.DescribeLimitsOutputFilterSensitiveLog = exports2.DescribeLimitsInputFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisDataStreamDestinationFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeImportOutputFilterSensitiveLog = exports2.ImportTableDescriptionFilterSensitiveLog = exports2.TableCreationParametersFilterSensitiveLog = exports2.S3BucketSourceFilterSensitiveLog = exports2.InputFormatOptionsFilterSensitiveLog = exports2.DescribeImportInputFilterSensitiveLog = exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = exports2.ReplicaSettingsDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = exports2.DescribeGlobalTableOutputFilterSensitiveLog = exports2.DescribeGlobalTableInputFilterSensitiveLog = exports2.DescribeExportOutputFilterSensitiveLog = exports2.ExportDescriptionFilterSensitiveLog = exports2.DescribeExportInputFilterSensitiveLog = exports2.DescribeEndpointsResponseFilterSensitiveLog = exports2.EndpointFilterSensitiveLog = exports2.DescribeEndpointsRequestFilterSensitiveLog = exports2.DescribeContributorInsightsOutputFilterSensitiveLog = exports2.FailureExceptionFilterSensitiveLog = exports2.DescribeContributorInsightsInputFilterSensitiveLog = exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = exports2.DescribeContinuousBackupsInputFilterSensitiveLog = exports2.DescribeBackupOutputFilterSensitiveLog = exports2.DescribeBackupInputFilterSensitiveLog = exports2.DeleteTableOutputFilterSensitiveLog = exports2.DeleteTableInputFilterSensitiveLog = exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = void 0; + exports2.AttributeValueUpdateFilterSensitiveLog = exports2.AttributeValueFilterSensitiveLog = exports2.UpdateTimeToLiveOutputFilterSensitiveLog = exports2.UpdateTimeToLiveInputFilterSensitiveLog = exports2.TimeToLiveSpecificationFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.UpdateTableOutputFilterSensitiveLog = exports2.UpdateTableInputFilterSensitiveLog = exports2.ReplicationGroupUpdateFilterSensitiveLog = exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = exports2.ReplicaSettingsUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.UpdateGlobalTableOutputFilterSensitiveLog = exports2.UpdateGlobalTableInputFilterSensitiveLog = exports2.ReplicaUpdateFilterSensitiveLog = exports2.UpdateContributorInsightsOutputFilterSensitiveLog = exports2.UpdateContributorInsightsInputFilterSensitiveLog = exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = exports2.UpdateContinuousBackupsInputFilterSensitiveLog = exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = exports2.UntagResourceInputFilterSensitiveLog = exports2.TagResourceInputFilterSensitiveLog = exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = exports2.RestoreTableFromBackupOutputFilterSensitiveLog = exports2.RestoreTableFromBackupInputFilterSensitiveLog = exports2.ListTagsOfResourceOutputFilterSensitiveLog = exports2.ListTagsOfResourceInputFilterSensitiveLog = exports2.ListTablesOutputFilterSensitiveLog = exports2.ListTablesInputFilterSensitiveLog = exports2.ListImportsOutputFilterSensitiveLog = exports2.ImportSummaryFilterSensitiveLog = exports2.ListImportsInputFilterSensitiveLog = exports2.ListGlobalTablesOutputFilterSensitiveLog = exports2.GlobalTableFilterSensitiveLog = exports2.ListGlobalTablesInputFilterSensitiveLog = exports2.ListExportsOutputFilterSensitiveLog = exports2.ExportSummaryFilterSensitiveLog = exports2.ListExportsInputFilterSensitiveLog = exports2.ListContributorInsightsOutputFilterSensitiveLog = exports2.ListContributorInsightsInputFilterSensitiveLog = void 0; + exports2.TransactWriteItemsInputFilterSensitiveLog = exports2.TransactWriteItemFilterSensitiveLog = exports2.UpdateItemInputFilterSensitiveLog = exports2.BatchWriteItemOutputFilterSensitiveLog = exports2.QueryInputFilterSensitiveLog = exports2.PutItemInputFilterSensitiveLog = exports2.DeleteItemInputFilterSensitiveLog = exports2.BatchWriteItemInputFilterSensitiveLog = exports2.ScanInputFilterSensitiveLog = exports2.BatchGetItemOutputFilterSensitiveLog = exports2.WriteRequestFilterSensitiveLog = exports2.UpdateItemOutputFilterSensitiveLog = exports2.ScanOutputFilterSensitiveLog = exports2.QueryOutputFilterSensitiveLog = exports2.PutItemOutputFilterSensitiveLog = exports2.ExecuteStatementOutputFilterSensitiveLog = exports2.DeleteItemOutputFilterSensitiveLog = exports2.UpdateFilterSensitiveLog = exports2.PutFilterSensitiveLog = exports2.DeleteFilterSensitiveLog = exports2.ConditionCheckFilterSensitiveLog = exports2.TransactWriteItemsOutputFilterSensitiveLog = exports2.TransactGetItemsInputFilterSensitiveLog = exports2.ExpectedAttributeValueFilterSensitiveLog = exports2.BatchGetItemInputFilterSensitiveLog = exports2.TransactGetItemsOutputFilterSensitiveLog = exports2.ExecuteTransactionOutputFilterSensitiveLog = exports2.ExecuteTransactionInputFilterSensitiveLog = exports2.BatchExecuteStatementOutputFilterSensitiveLog = exports2.BatchExecuteStatementInputFilterSensitiveLog = exports2.TransactGetItemFilterSensitiveLog = exports2.KeysAndAttributesFilterSensitiveLog = exports2.PutRequestFilterSensitiveLog = exports2.ParameterizedStatementFilterSensitiveLog = exports2.ItemResponseFilterSensitiveLog = exports2.ItemCollectionMetricsFilterSensitiveLog = exports2.GetItemOutputFilterSensitiveLog = exports2.GetItemInputFilterSensitiveLog = exports2.GetFilterSensitiveLog = exports2.ExecuteStatementInputFilterSensitiveLog = exports2.DeleteRequestFilterSensitiveLog = exports2.ConditionFilterSensitiveLog = exports2.CancellationReasonFilterSensitiveLog = exports2.BatchStatementResponseFilterSensitiveLog = exports2.BatchStatementRequestFilterSensitiveLog = void 0; + var DynamoDBServiceException_1 = require_DynamoDBServiceException(); + var BackupType; + (function(BackupType2) { + BackupType2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; + BackupType2[\\"SYSTEM\\"] = \\"SYSTEM\\"; + BackupType2[\\"USER\\"] = \\"USER\\"; + })(BackupType = exports2.BackupType || (exports2.BackupType = {})); + var BackupInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"BackupInUseException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"BackupInUseException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, BackupInUseException.prototype); + } + }; + exports2.BackupInUseException = BackupInUseException; + var BackupNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"BackupNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"BackupNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, BackupNotFoundException.prototype); + } + }; + exports2.BackupNotFoundException = BackupNotFoundException; + var BackupTypeFilter; + (function(BackupTypeFilter2) { + BackupTypeFilter2[\\"ALL\\"] = \\"ALL\\"; + BackupTypeFilter2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; + BackupTypeFilter2[\\"SYSTEM\\"] = \\"SYSTEM\\"; + BackupTypeFilter2[\\"USER\\"] = \\"USER\\"; + })(BackupTypeFilter = exports2.BackupTypeFilter || (exports2.BackupTypeFilter = {})); + var BatchStatementErrorCodeEnum; + (function(BatchStatementErrorCodeEnum2) { + BatchStatementErrorCodeEnum2[\\"AccessDenied\\"] = \\"AccessDenied\\"; + BatchStatementErrorCodeEnum2[\\"ConditionalCheckFailed\\"] = \\"ConditionalCheckFailed\\"; + BatchStatementErrorCodeEnum2[\\"DuplicateItem\\"] = \\"DuplicateItem\\"; + BatchStatementErrorCodeEnum2[\\"InternalServerError\\"] = \\"InternalServerError\\"; + BatchStatementErrorCodeEnum2[\\"ItemCollectionSizeLimitExceeded\\"] = \\"ItemCollectionSizeLimitExceeded\\"; + BatchStatementErrorCodeEnum2[\\"ProvisionedThroughputExceeded\\"] = \\"ProvisionedThroughputExceeded\\"; + BatchStatementErrorCodeEnum2[\\"RequestLimitExceeded\\"] = \\"RequestLimitExceeded\\"; + BatchStatementErrorCodeEnum2[\\"ResourceNotFound\\"] = \\"ResourceNotFound\\"; + BatchStatementErrorCodeEnum2[\\"ThrottlingError\\"] = \\"ThrottlingError\\"; + BatchStatementErrorCodeEnum2[\\"TransactionConflict\\"] = \\"TransactionConflict\\"; + BatchStatementErrorCodeEnum2[\\"ValidationError\\"] = \\"ValidationError\\"; + })(BatchStatementErrorCodeEnum = exports2.BatchStatementErrorCodeEnum || (exports2.BatchStatementErrorCodeEnum = {})); + var InternalServerError = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InternalServerError\\", + $fault: \\"server\\", + ...opts + }); + this.name = \\"InternalServerError\\"; + this.$fault = \\"server\\"; + Object.setPrototypeOf(this, InternalServerError.prototype); + } + }; + exports2.InternalServerError = InternalServerError; + var RequestLimitExceeded = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"RequestLimitExceeded\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"RequestLimitExceeded\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, RequestLimitExceeded.prototype); + } + }; + exports2.RequestLimitExceeded = RequestLimitExceeded; + var InvalidEndpointException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InvalidEndpointException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidEndpointException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidEndpointException.prototype); + this.Message = opts.Message; + } + }; + exports2.InvalidEndpointException = InvalidEndpointException; + var ProvisionedThroughputExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ProvisionedThroughputExceededException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ProvisionedThroughputExceededException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype); + } + }; + exports2.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException; + var ResourceNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ResourceNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ResourceNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } + }; + exports2.ResourceNotFoundException = ResourceNotFoundException; + var ItemCollectionSizeLimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ItemCollectionSizeLimitExceededException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ItemCollectionSizeLimitExceededException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype); + } + }; + exports2.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException; + var ConditionalCheckFailedException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ConditionalCheckFailedException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ConditionalCheckFailedException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype); + } + }; + exports2.ConditionalCheckFailedException = ConditionalCheckFailedException; + var ContinuousBackupsUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ContinuousBackupsUnavailableException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ContinuousBackupsUnavailableException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype); + } + }; + exports2.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException; + var LimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"LimitExceededException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"LimitExceededException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, LimitExceededException.prototype); + } + }; + exports2.LimitExceededException = LimitExceededException; + var TableInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TableInUseException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TableInUseException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TableInUseException.prototype); + } + }; + exports2.TableInUseException = TableInUseException; + var TableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TableNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TableNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TableNotFoundException.prototype); + } + }; + exports2.TableNotFoundException = TableNotFoundException; + var TableClass; + (function(TableClass2) { + TableClass2[\\"STANDARD\\"] = \\"STANDARD\\"; + TableClass2[\\"STANDARD_INFREQUENT_ACCESS\\"] = \\"STANDARD_INFREQUENT_ACCESS\\"; + })(TableClass = exports2.TableClass || (exports2.TableClass = {})); + var GlobalTableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"GlobalTableAlreadyExistsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"GlobalTableAlreadyExistsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype); + } + }; + exports2.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException; + var ResourceInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ResourceInUseException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ResourceInUseException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ResourceInUseException.prototype); + } + }; + exports2.ResourceInUseException = ResourceInUseException; + var TransactionConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TransactionConflictException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TransactionConflictException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TransactionConflictException.prototype); + } + }; + exports2.TransactionConflictException = TransactionConflictException; + var ExportFormat; + (function(ExportFormat2) { + ExportFormat2[\\"DYNAMODB_JSON\\"] = \\"DYNAMODB_JSON\\"; + ExportFormat2[\\"ION\\"] = \\"ION\\"; + })(ExportFormat = exports2.ExportFormat || (exports2.ExportFormat = {})); + var ExportStatus; + (function(ExportStatus2) { + ExportStatus2[\\"COMPLETED\\"] = \\"COMPLETED\\"; + ExportStatus2[\\"FAILED\\"] = \\"FAILED\\"; + ExportStatus2[\\"IN_PROGRESS\\"] = \\"IN_PROGRESS\\"; + })(ExportStatus = exports2.ExportStatus || (exports2.ExportStatus = {})); + var ExportNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ExportNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ExportNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ExportNotFoundException.prototype); + } + }; + exports2.ExportNotFoundException = ExportNotFoundException; + var GlobalTableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"GlobalTableNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"GlobalTableNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype); + } + }; + exports2.GlobalTableNotFoundException = GlobalTableNotFoundException; + var ImportStatus; + (function(ImportStatus2) { + ImportStatus2[\\"CANCELLED\\"] = \\"CANCELLED\\"; + ImportStatus2[\\"CANCELLING\\"] = \\"CANCELLING\\"; + ImportStatus2[\\"COMPLETED\\"] = \\"COMPLETED\\"; + ImportStatus2[\\"FAILED\\"] = \\"FAILED\\"; + ImportStatus2[\\"IN_PROGRESS\\"] = \\"IN_PROGRESS\\"; + })(ImportStatus = exports2.ImportStatus || (exports2.ImportStatus = {})); + var InputCompressionType; + (function(InputCompressionType2) { + InputCompressionType2[\\"GZIP\\"] = \\"GZIP\\"; + InputCompressionType2[\\"NONE\\"] = \\"NONE\\"; + InputCompressionType2[\\"ZSTD\\"] = \\"ZSTD\\"; + })(InputCompressionType = exports2.InputCompressionType || (exports2.InputCompressionType = {})); + var InputFormat; + (function(InputFormat2) { + InputFormat2[\\"CSV\\"] = \\"CSV\\"; + InputFormat2[\\"DYNAMODB_JSON\\"] = \\"DYNAMODB_JSON\\"; + InputFormat2[\\"ION\\"] = \\"ION\\"; + })(InputFormat = exports2.InputFormat || (exports2.InputFormat = {})); + var ImportNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ImportNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ImportNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ImportNotFoundException.prototype); + } + }; + exports2.ImportNotFoundException = ImportNotFoundException; + var DuplicateItemException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"DuplicateItemException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"DuplicateItemException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, DuplicateItemException.prototype); + } + }; + exports2.DuplicateItemException = DuplicateItemException; + var IdempotentParameterMismatchException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"IdempotentParameterMismatchException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IdempotentParameterMismatchException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype); + this.Message = opts.Message; + } + }; + exports2.IdempotentParameterMismatchException = IdempotentParameterMismatchException; + var TransactionInProgressException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TransactionInProgressException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TransactionInProgressException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TransactionInProgressException.prototype); + this.Message = opts.Message; + } + }; + exports2.TransactionInProgressException = TransactionInProgressException; + var ExportConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ExportConflictException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ExportConflictException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ExportConflictException.prototype); + } + }; + exports2.ExportConflictException = ExportConflictException; + var InvalidExportTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InvalidExportTimeException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidExportTimeException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidExportTimeException.prototype); + } + }; + exports2.InvalidExportTimeException = InvalidExportTimeException; + var PointInTimeRecoveryUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"PointInTimeRecoveryUnavailableException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"PointInTimeRecoveryUnavailableException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype); + } + }; + exports2.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException; + var ImportConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ImportConflictException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ImportConflictException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ImportConflictException.prototype); + } + }; + exports2.ImportConflictException = ImportConflictException; + var TableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TableAlreadyExistsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TableAlreadyExistsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TableAlreadyExistsException.prototype); + } + }; + exports2.TableAlreadyExistsException = TableAlreadyExistsException; + var InvalidRestoreTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"InvalidRestoreTimeException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidRestoreTimeException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype); + } + }; + exports2.InvalidRestoreTimeException = InvalidRestoreTimeException; + var ReplicaAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ReplicaAlreadyExistsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ReplicaAlreadyExistsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype); + } + }; + exports2.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException; + var ReplicaNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"ReplicaNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ReplicaNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ReplicaNotFoundException.prototype); + } + }; + exports2.ReplicaNotFoundException = ReplicaNotFoundException; + var IndexNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"IndexNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IndexNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IndexNotFoundException.prototype); + } + }; + exports2.IndexNotFoundException = IndexNotFoundException; + var AttributeValue; + (function(AttributeValue2) { + AttributeValue2.visit = (value, visitor) => { + if (value.S !== void 0) + return visitor.S(value.S); + if (value.N !== void 0) + return visitor.N(value.N); + if (value.B !== void 0) + return visitor.B(value.B); + if (value.SS !== void 0) + return visitor.SS(value.SS); + if (value.NS !== void 0) + return visitor.NS(value.NS); + if (value.BS !== void 0) + return visitor.BS(value.BS); + if (value.M !== void 0) + return visitor.M(value.M); + if (value.L !== void 0) + return visitor.L(value.L); + if (value.NULL !== void 0) + return visitor.NULL(value.NULL); + if (value.BOOL !== void 0) + return visitor.BOOL(value.BOOL); + return visitor._(value.$unknown[0], value.$unknown[1]); + }; + })(AttributeValue = exports2.AttributeValue || (exports2.AttributeValue = {})); + var TransactionCanceledException = class extends DynamoDBServiceException_1.DynamoDBServiceException { + constructor(opts) { + super({ + name: \\"TransactionCanceledException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TransactionCanceledException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TransactionCanceledException.prototype); + this.Message = opts.Message; + this.CancellationReasons = opts.CancellationReasons; + } + }; + exports2.TransactionCanceledException = TransactionCanceledException; + var ArchivalSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ArchivalSummaryFilterSensitiveLog = ArchivalSummaryFilterSensitiveLog; + var AttributeDefinitionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AttributeDefinitionFilterSensitiveLog = AttributeDefinitionFilterSensitiveLog; + var AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog; + var AutoScalingPolicyDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = AutoScalingPolicyDescriptionFilterSensitiveLog; + var AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog; + var AutoScalingPolicyUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingPolicyUpdateFilterSensitiveLog = AutoScalingPolicyUpdateFilterSensitiveLog; + var AutoScalingSettingsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = AutoScalingSettingsDescriptionFilterSensitiveLog; + var AutoScalingSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AutoScalingSettingsUpdateFilterSensitiveLog = AutoScalingSettingsUpdateFilterSensitiveLog; + var BackupDetailsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BackupDetailsFilterSensitiveLog = BackupDetailsFilterSensitiveLog; + var KeySchemaElementFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KeySchemaElementFilterSensitiveLog = KeySchemaElementFilterSensitiveLog; + var ProvisionedThroughputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProvisionedThroughputFilterSensitiveLog = ProvisionedThroughputFilterSensitiveLog; + var SourceTableDetailsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SourceTableDetailsFilterSensitiveLog = SourceTableDetailsFilterSensitiveLog; + var ProjectionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProjectionFilterSensitiveLog = ProjectionFilterSensitiveLog; + var GlobalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = GlobalSecondaryIndexInfoFilterSensitiveLog; + var LocalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.LocalSecondaryIndexInfoFilterSensitiveLog = LocalSecondaryIndexInfoFilterSensitiveLog; + var SSEDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SSEDescriptionFilterSensitiveLog = SSEDescriptionFilterSensitiveLog; + var StreamSpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.StreamSpecificationFilterSensitiveLog = StreamSpecificationFilterSensitiveLog; + var TimeToLiveDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TimeToLiveDescriptionFilterSensitiveLog = TimeToLiveDescriptionFilterSensitiveLog; + var SourceTableFeatureDetailsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SourceTableFeatureDetailsFilterSensitiveLog = SourceTableFeatureDetailsFilterSensitiveLog; + var BackupDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BackupDescriptionFilterSensitiveLog = BackupDescriptionFilterSensitiveLog; + var BackupSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BackupSummaryFilterSensitiveLog = BackupSummaryFilterSensitiveLog; + var CapacityFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CapacityFilterSensitiveLog = CapacityFilterSensitiveLog; + var ConsumedCapacityFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ConsumedCapacityFilterSensitiveLog = ConsumedCapacityFilterSensitiveLog; + var BatchStatementErrorFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BatchStatementErrorFilterSensitiveLog = BatchStatementErrorFilterSensitiveLog; + var BillingModeSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.BillingModeSummaryFilterSensitiveLog = BillingModeSummaryFilterSensitiveLog; + var PointInTimeRecoveryDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = PointInTimeRecoveryDescriptionFilterSensitiveLog; + var ContinuousBackupsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ContinuousBackupsDescriptionFilterSensitiveLog = ContinuousBackupsDescriptionFilterSensitiveLog; + var ContributorInsightsSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ContributorInsightsSummaryFilterSensitiveLog = ContributorInsightsSummaryFilterSensitiveLog; + var CreateBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateBackupInputFilterSensitiveLog = CreateBackupInputFilterSensitiveLog; + var CreateBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateBackupOutputFilterSensitiveLog = CreateBackupOutputFilterSensitiveLog; + var CreateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = CreateGlobalSecondaryIndexActionFilterSensitiveLog; + var ReplicaFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaFilterSensitiveLog = ReplicaFilterSensitiveLog; + var CreateGlobalTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateGlobalTableInputFilterSensitiveLog = CreateGlobalTableInputFilterSensitiveLog; + var ProvisionedThroughputOverrideFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProvisionedThroughputOverrideFilterSensitiveLog = ProvisionedThroughputOverrideFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog; + var TableClassSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableClassSummaryFilterSensitiveLog = TableClassSummaryFilterSensitiveLog; + var ReplicaDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaDescriptionFilterSensitiveLog = ReplicaDescriptionFilterSensitiveLog; + var GlobalTableDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalTableDescriptionFilterSensitiveLog = GlobalTableDescriptionFilterSensitiveLog; + var CreateGlobalTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateGlobalTableOutputFilterSensitiveLog = CreateGlobalTableOutputFilterSensitiveLog; + var CreateReplicaActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateReplicaActionFilterSensitiveLog = CreateReplicaActionFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = ReplicaGlobalSecondaryIndexFilterSensitiveLog; + var CreateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = CreateReplicationGroupMemberActionFilterSensitiveLog; + var GlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexFilterSensitiveLog = GlobalSecondaryIndexFilterSensitiveLog; + var LocalSecondaryIndexFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.LocalSecondaryIndexFilterSensitiveLog = LocalSecondaryIndexFilterSensitiveLog; + var SSESpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.SSESpecificationFilterSensitiveLog = SSESpecificationFilterSensitiveLog; + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; + var CreateTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateTableInputFilterSensitiveLog = CreateTableInputFilterSensitiveLog; + var ProvisionedThroughputDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = ProvisionedThroughputDescriptionFilterSensitiveLog; + var GlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = GlobalSecondaryIndexDescriptionFilterSensitiveLog; + var LocalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = LocalSecondaryIndexDescriptionFilterSensitiveLog; + var RestoreSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreSummaryFilterSensitiveLog = RestoreSummaryFilterSensitiveLog; + var TableDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableDescriptionFilterSensitiveLog = TableDescriptionFilterSensitiveLog; + var CreateTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CreateTableOutputFilterSensitiveLog = CreateTableOutputFilterSensitiveLog; + var CsvOptionsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CsvOptionsFilterSensitiveLog = CsvOptionsFilterSensitiveLog; + var DeleteBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteBackupInputFilterSensitiveLog = DeleteBackupInputFilterSensitiveLog; + var DeleteBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteBackupOutputFilterSensitiveLog = DeleteBackupOutputFilterSensitiveLog; + var DeleteGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = DeleteGlobalSecondaryIndexActionFilterSensitiveLog; + var DeleteReplicaActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteReplicaActionFilterSensitiveLog = DeleteReplicaActionFilterSensitiveLog; + var DeleteReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = DeleteReplicationGroupMemberActionFilterSensitiveLog; + var DeleteTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteTableInputFilterSensitiveLog = DeleteTableInputFilterSensitiveLog; + var DeleteTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DeleteTableOutputFilterSensitiveLog = DeleteTableOutputFilterSensitiveLog; + var DescribeBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeBackupInputFilterSensitiveLog = DescribeBackupInputFilterSensitiveLog; + var DescribeBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeBackupOutputFilterSensitiveLog = DescribeBackupOutputFilterSensitiveLog; + var DescribeContinuousBackupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContinuousBackupsInputFilterSensitiveLog = DescribeContinuousBackupsInputFilterSensitiveLog; + var DescribeContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = DescribeContinuousBackupsOutputFilterSensitiveLog; + var DescribeContributorInsightsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContributorInsightsInputFilterSensitiveLog = DescribeContributorInsightsInputFilterSensitiveLog; + var FailureExceptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.FailureExceptionFilterSensitiveLog = FailureExceptionFilterSensitiveLog; + var DescribeContributorInsightsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeContributorInsightsOutputFilterSensitiveLog = DescribeContributorInsightsOutputFilterSensitiveLog; + var DescribeEndpointsRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeEndpointsRequestFilterSensitiveLog = DescribeEndpointsRequestFilterSensitiveLog; + var EndpointFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.EndpointFilterSensitiveLog = EndpointFilterSensitiveLog; + var DescribeEndpointsResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeEndpointsResponseFilterSensitiveLog = DescribeEndpointsResponseFilterSensitiveLog; + var DescribeExportInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeExportInputFilterSensitiveLog = DescribeExportInputFilterSensitiveLog; + var ExportDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportDescriptionFilterSensitiveLog = ExportDescriptionFilterSensitiveLog; + var DescribeExportOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeExportOutputFilterSensitiveLog = DescribeExportOutputFilterSensitiveLog; + var DescribeGlobalTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableInputFilterSensitiveLog = DescribeGlobalTableInputFilterSensitiveLog; + var DescribeGlobalTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableOutputFilterSensitiveLog = DescribeGlobalTableOutputFilterSensitiveLog; + var DescribeGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = DescribeGlobalTableSettingsInputFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog; + var ReplicaSettingsDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaSettingsDescriptionFilterSensitiveLog = ReplicaSettingsDescriptionFilterSensitiveLog; + var DescribeGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = DescribeGlobalTableSettingsOutputFilterSensitiveLog; + var DescribeImportInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeImportInputFilterSensitiveLog = DescribeImportInputFilterSensitiveLog; + var InputFormatOptionsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.InputFormatOptionsFilterSensitiveLog = InputFormatOptionsFilterSensitiveLog; + var S3BucketSourceFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.S3BucketSourceFilterSensitiveLog = S3BucketSourceFilterSensitiveLog; + var TableCreationParametersFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableCreationParametersFilterSensitiveLog = TableCreationParametersFilterSensitiveLog; + var ImportTableDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ImportTableDescriptionFilterSensitiveLog = ImportTableDescriptionFilterSensitiveLog; + var DescribeImportOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeImportOutputFilterSensitiveLog = DescribeImportOutputFilterSensitiveLog; + var DescribeKinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = DescribeKinesisStreamingDestinationInputFilterSensitiveLog; + var KinesisDataStreamDestinationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KinesisDataStreamDestinationFilterSensitiveLog = KinesisDataStreamDestinationFilterSensitiveLog; + var DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = DescribeKinesisStreamingDestinationOutputFilterSensitiveLog; + var DescribeLimitsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeLimitsInputFilterSensitiveLog = DescribeLimitsInputFilterSensitiveLog; + var DescribeLimitsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeLimitsOutputFilterSensitiveLog = DescribeLimitsOutputFilterSensitiveLog; + var DescribeTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableInputFilterSensitiveLog = DescribeTableInputFilterSensitiveLog; + var DescribeTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableOutputFilterSensitiveLog = DescribeTableOutputFilterSensitiveLog; + var DescribeTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = DescribeTableReplicaAutoScalingInputFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog; + var ReplicaAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = ReplicaAutoScalingDescriptionFilterSensitiveLog; + var TableAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TableAutoScalingDescriptionFilterSensitiveLog = TableAutoScalingDescriptionFilterSensitiveLog; + var DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = DescribeTableReplicaAutoScalingOutputFilterSensitiveLog; + var DescribeTimeToLiveInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTimeToLiveInputFilterSensitiveLog = DescribeTimeToLiveInputFilterSensitiveLog; + var DescribeTimeToLiveOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DescribeTimeToLiveOutputFilterSensitiveLog = DescribeTimeToLiveOutputFilterSensitiveLog; + var KinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KinesisStreamingDestinationInputFilterSensitiveLog = KinesisStreamingDestinationInputFilterSensitiveLog; + var KinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = KinesisStreamingDestinationOutputFilterSensitiveLog; + var ExportTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportTableToPointInTimeInputFilterSensitiveLog = ExportTableToPointInTimeInputFilterSensitiveLog; + var ExportTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = ExportTableToPointInTimeOutputFilterSensitiveLog; + var ImportTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ImportTableInputFilterSensitiveLog = ImportTableInputFilterSensitiveLog; + var ImportTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ImportTableOutputFilterSensitiveLog = ImportTableOutputFilterSensitiveLog; + var ListBackupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListBackupsInputFilterSensitiveLog = ListBackupsInputFilterSensitiveLog; + var ListBackupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListBackupsOutputFilterSensitiveLog = ListBackupsOutputFilterSensitiveLog; + var ListContributorInsightsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListContributorInsightsInputFilterSensitiveLog = ListContributorInsightsInputFilterSensitiveLog; + var ListContributorInsightsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListContributorInsightsOutputFilterSensitiveLog = ListContributorInsightsOutputFilterSensitiveLog; + var ListExportsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListExportsInputFilterSensitiveLog = ListExportsInputFilterSensitiveLog; + var ExportSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ExportSummaryFilterSensitiveLog = ExportSummaryFilterSensitiveLog; + var ListExportsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListExportsOutputFilterSensitiveLog = ListExportsOutputFilterSensitiveLog; + var ListGlobalTablesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListGlobalTablesInputFilterSensitiveLog = ListGlobalTablesInputFilterSensitiveLog; + var GlobalTableFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalTableFilterSensitiveLog = GlobalTableFilterSensitiveLog; + var ListGlobalTablesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListGlobalTablesOutputFilterSensitiveLog = ListGlobalTablesOutputFilterSensitiveLog; + var ListImportsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListImportsInputFilterSensitiveLog = ListImportsInputFilterSensitiveLog; + var ImportSummaryFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ImportSummaryFilterSensitiveLog = ImportSummaryFilterSensitiveLog; + var ListImportsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListImportsOutputFilterSensitiveLog = ListImportsOutputFilterSensitiveLog; + var ListTablesInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTablesInputFilterSensitiveLog = ListTablesInputFilterSensitiveLog; + var ListTablesOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTablesOutputFilterSensitiveLog = ListTablesOutputFilterSensitiveLog; + var ListTagsOfResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTagsOfResourceInputFilterSensitiveLog = ListTagsOfResourceInputFilterSensitiveLog; + var ListTagsOfResourceOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListTagsOfResourceOutputFilterSensitiveLog = ListTagsOfResourceOutputFilterSensitiveLog; + var RestoreTableFromBackupInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableFromBackupInputFilterSensitiveLog = RestoreTableFromBackupInputFilterSensitiveLog; + var RestoreTableFromBackupOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableFromBackupOutputFilterSensitiveLog = RestoreTableFromBackupOutputFilterSensitiveLog; + var RestoreTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = RestoreTableToPointInTimeInputFilterSensitiveLog; + var RestoreTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = RestoreTableToPointInTimeOutputFilterSensitiveLog; + var TagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog; + var UntagResourceInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog; + var PointInTimeRecoverySpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = PointInTimeRecoverySpecificationFilterSensitiveLog; + var UpdateContinuousBackupsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContinuousBackupsInputFilterSensitiveLog = UpdateContinuousBackupsInputFilterSensitiveLog; + var UpdateContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = UpdateContinuousBackupsOutputFilterSensitiveLog; + var UpdateContributorInsightsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContributorInsightsInputFilterSensitiveLog = UpdateContributorInsightsInputFilterSensitiveLog; + var UpdateContributorInsightsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateContributorInsightsOutputFilterSensitiveLog = UpdateContributorInsightsOutputFilterSensitiveLog; + var ReplicaUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaUpdateFilterSensitiveLog = ReplicaUpdateFilterSensitiveLog; + var UpdateGlobalTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableInputFilterSensitiveLog = UpdateGlobalTableInputFilterSensitiveLog; + var UpdateGlobalTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableOutputFilterSensitiveLog = UpdateGlobalTableOutputFilterSensitiveLog; + var GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; + var ReplicaSettingsUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaSettingsUpdateFilterSensitiveLog = ReplicaSettingsUpdateFilterSensitiveLog; + var UpdateGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = UpdateGlobalTableSettingsInputFilterSensitiveLog; + var UpdateGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = UpdateGlobalTableSettingsOutputFilterSensitiveLog; + var UpdateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = UpdateGlobalSecondaryIndexActionFilterSensitiveLog; + var GlobalSecondaryIndexUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = GlobalSecondaryIndexUpdateFilterSensitiveLog; + var UpdateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = UpdateReplicationGroupMemberActionFilterSensitiveLog; + var ReplicationGroupUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicationGroupUpdateFilterSensitiveLog = ReplicationGroupUpdateFilterSensitiveLog; + var UpdateTableInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableInputFilterSensitiveLog = UpdateTableInputFilterSensitiveLog; + var UpdateTableOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableOutputFilterSensitiveLog = UpdateTableOutputFilterSensitiveLog; + var GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; + var ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; + var ReplicaAutoScalingUpdateFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = ReplicaAutoScalingUpdateFilterSensitiveLog; + var UpdateTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = UpdateTableReplicaAutoScalingInputFilterSensitiveLog; + var UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = UpdateTableReplicaAutoScalingOutputFilterSensitiveLog; + var TimeToLiveSpecificationFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TimeToLiveSpecificationFilterSensitiveLog = TimeToLiveSpecificationFilterSensitiveLog; + var UpdateTimeToLiveInputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTimeToLiveInputFilterSensitiveLog = UpdateTimeToLiveInputFilterSensitiveLog; + var UpdateTimeToLiveOutputFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.UpdateTimeToLiveOutputFilterSensitiveLog = UpdateTimeToLiveOutputFilterSensitiveLog; + var AttributeValueFilterSensitiveLog = (obj) => { + if (obj.S !== void 0) + return { S: obj.S }; + if (obj.N !== void 0) + return { N: obj.N }; + if (obj.B !== void 0) + return { B: obj.B }; + if (obj.SS !== void 0) + return { SS: obj.SS }; + if (obj.NS !== void 0) + return { NS: obj.NS }; + if (obj.BS !== void 0) + return { BS: obj.BS }; + if (obj.M !== void 0) + return { + M: Object.entries(obj.M).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }; + if (obj.L !== void 0) + return { L: obj.L.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) }; + if (obj.NULL !== void 0) + return { NULL: obj.NULL }; + if (obj.BOOL !== void 0) + return { BOOL: obj.BOOL }; + if (obj.$unknown !== void 0) + return { [obj.$unknown[0]]: \\"UNKNOWN\\" }; + }; + exports2.AttributeValueFilterSensitiveLog = AttributeValueFilterSensitiveLog; + var AttributeValueUpdateFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) } + }); + exports2.AttributeValueUpdateFilterSensitiveLog = AttributeValueUpdateFilterSensitiveLog; + var BatchStatementRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } + }); + exports2.BatchStatementRequestFilterSensitiveLog = BatchStatementRequestFilterSensitiveLog; + var BatchStatementResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.BatchStatementResponseFilterSensitiveLog = BatchStatementResponseFilterSensitiveLog; + var CancellationReasonFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.CancellationReasonFilterSensitiveLog = CancellationReasonFilterSensitiveLog; + var ConditionFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.AttributeValueList && { + AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) + } + }); + exports2.ConditionFilterSensitiveLog = ConditionFilterSensitiveLog; + var DeleteRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.DeleteRequestFilterSensitiveLog = DeleteRequestFilterSensitiveLog; + var ExecuteStatementInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } + }); + exports2.ExecuteStatementInputFilterSensitiveLog = ExecuteStatementInputFilterSensitiveLog; + var GetFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.GetFilterSensitiveLog = GetFilterSensitiveLog; + var GetItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.GetItemInputFilterSensitiveLog = GetItemInputFilterSensitiveLog; + var GetItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.GetItemOutputFilterSensitiveLog = GetItemOutputFilterSensitiveLog; + var ItemCollectionMetricsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ItemCollectionKey && { + ItemCollectionKey: Object.entries(obj.ItemCollectionKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ItemCollectionMetricsFilterSensitiveLog = ItemCollectionMetricsFilterSensitiveLog; + var ItemResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ItemResponseFilterSensitiveLog = ItemResponseFilterSensitiveLog; + var ParameterizedStatementFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } + }); + exports2.ParameterizedStatementFilterSensitiveLog = ParameterizedStatementFilterSensitiveLog; + var PutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.PutRequestFilterSensitiveLog = PutRequestFilterSensitiveLog; + var KeysAndAttributesFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Keys && { + Keys: obj.Keys.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + } + }); + exports2.KeysAndAttributesFilterSensitiveLog = KeysAndAttributesFilterSensitiveLog; + var TransactGetItemFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Get && { Get: (0, exports2.GetFilterSensitiveLog)(obj.Get) } + }); + exports2.TransactGetItemFilterSensitiveLog = TransactGetItemFilterSensitiveLog; + var BatchExecuteStatementInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Statements && { Statements: obj.Statements.map((item) => (0, exports2.BatchStatementRequestFilterSensitiveLog)(item)) } + }); + exports2.BatchExecuteStatementInputFilterSensitiveLog = BatchExecuteStatementInputFilterSensitiveLog; + var BatchExecuteStatementOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.BatchStatementResponseFilterSensitiveLog)(item)) } + }); + exports2.BatchExecuteStatementOutputFilterSensitiveLog = BatchExecuteStatementOutputFilterSensitiveLog; + var ExecuteTransactionInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.TransactStatements && { + TransactStatements: obj.TransactStatements.map((item) => (0, exports2.ParameterizedStatementFilterSensitiveLog)(item)) + } + }); + exports2.ExecuteTransactionInputFilterSensitiveLog = ExecuteTransactionInputFilterSensitiveLog; + var ExecuteTransactionOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } + }); + exports2.ExecuteTransactionOutputFilterSensitiveLog = ExecuteTransactionOutputFilterSensitiveLog; + var TransactGetItemsOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } + }); + exports2.TransactGetItemsOutputFilterSensitiveLog = TransactGetItemsOutputFilterSensitiveLog; + var BatchGetItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.RequestItems && { + RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.BatchGetItemInputFilterSensitiveLog = BatchGetItemInputFilterSensitiveLog; + var ExpectedAttributeValueFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) }, + ...obj.AttributeValueList && { + AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) + } + }); + exports2.ExpectedAttributeValueFilterSensitiveLog = ExpectedAttributeValueFilterSensitiveLog; + var TransactGetItemsInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.TransactItems && { TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactGetItemFilterSensitiveLog)(item)) } + }); + exports2.TransactGetItemsInputFilterSensitiveLog = TransactGetItemsInputFilterSensitiveLog; + var TransactWriteItemsOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) + }), {}) + } + }); + exports2.TransactWriteItemsOutputFilterSensitiveLog = TransactWriteItemsOutputFilterSensitiveLog; + var ConditionCheckFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ConditionCheckFilterSensitiveLog = ConditionCheckFilterSensitiveLog; + var DeleteFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.DeleteFilterSensitiveLog = DeleteFilterSensitiveLog; + var PutFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.PutFilterSensitiveLog = PutFilterSensitiveLog; + var UpdateFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.UpdateFilterSensitiveLog = UpdateFilterSensitiveLog; + var DeleteItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Attributes && { + Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) + } + }); + exports2.DeleteItemOutputFilterSensitiveLog = DeleteItemOutputFilterSensitiveLog; + var ExecuteStatementOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Items && { + Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + }, + ...obj.LastEvaluatedKey && { + LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ExecuteStatementOutputFilterSensitiveLog = ExecuteStatementOutputFilterSensitiveLog; + var PutItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Attributes && { + Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) + } + }); + exports2.PutItemOutputFilterSensitiveLog = PutItemOutputFilterSensitiveLog; + var QueryOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Items && { + Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + }, + ...obj.LastEvaluatedKey && { + LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.QueryOutputFilterSensitiveLog = QueryOutputFilterSensitiveLog; + var ScanOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Items && { + Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {})) + }, + ...obj.LastEvaluatedKey && { + LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ScanOutputFilterSensitiveLog = ScanOutputFilterSensitiveLog; + var UpdateItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Attributes && { + Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) + } + }); + exports2.UpdateItemOutputFilterSensitiveLog = UpdateItemOutputFilterSensitiveLog; + var WriteRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.PutRequest && { PutRequest: (0, exports2.PutRequestFilterSensitiveLog)(obj.PutRequest) }, + ...obj.DeleteRequest && { DeleteRequest: (0, exports2.DeleteRequestFilterSensitiveLog)(obj.DeleteRequest) } + }); + exports2.WriteRequestFilterSensitiveLog = WriteRequestFilterSensitiveLog; + var BatchGetItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Responses && { + Responses: Object.entries(obj.Responses).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => Object.entries(item).reduce((acc2, [key2, value2]) => ({ + ...acc2, + [key2]: (0, exports2.AttributeValueFilterSensitiveLog)(value2) + }), {})) + }), {}) + }, + ...obj.UnprocessedKeys && { + UnprocessedKeys: Object.entries(obj.UnprocessedKeys).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.BatchGetItemOutputFilterSensitiveLog = BatchGetItemOutputFilterSensitiveLog; + var ScanInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ScanFilter && { + ScanFilter: Object.entries(obj.ScanFilter).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ConditionFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExclusiveStartKey && { + ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.ScanInputFilterSensitiveLog = ScanInputFilterSensitiveLog; + var BatchWriteItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.RequestItems && { + RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) + }), {}) + } + }); + exports2.BatchWriteItemInputFilterSensitiveLog = BatchWriteItemInputFilterSensitiveLog; + var DeleteItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.Expected && { + Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.DeleteItemInputFilterSensitiveLog = DeleteItemInputFilterSensitiveLog; + var PutItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Item && { + Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.Expected && { + Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.PutItemInputFilterSensitiveLog = PutItemInputFilterSensitiveLog; + var QueryInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.KeyConditions && { + KeyConditions: Object.entries(obj.KeyConditions).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ConditionFilterSensitiveLog)(value) + }), {}) + }, + ...obj.QueryFilter && { + QueryFilter: Object.entries(obj.QueryFilter).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ConditionFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExclusiveStartKey && { + ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.QueryInputFilterSensitiveLog = QueryInputFilterSensitiveLog; + var BatchWriteItemOutputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.UnprocessedItems && { + UnprocessedItems: Object.entries(obj.UnprocessedItems).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) + }), {}) + }, + ...obj.ItemCollectionMetrics && { + ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ + ...acc, + [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) + }), {}) + } + }); + exports2.BatchWriteItemOutputFilterSensitiveLog = BatchWriteItemOutputFilterSensitiveLog; + var UpdateItemInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.Key && { + Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.AttributeUpdates && { + AttributeUpdates: Object.entries(obj.AttributeUpdates).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueUpdateFilterSensitiveLog)(value) + }), {}) + }, + ...obj.Expected && { + Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) + }), {}) + }, + ...obj.ExpressionAttributeValues && { + ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ + ...acc, + [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) + }), {}) + } + }); + exports2.UpdateItemInputFilterSensitiveLog = UpdateItemInputFilterSensitiveLog; + var TransactWriteItemFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.ConditionCheck && { ConditionCheck: (0, exports2.ConditionCheckFilterSensitiveLog)(obj.ConditionCheck) }, + ...obj.Put && { Put: (0, exports2.PutFilterSensitiveLog)(obj.Put) }, + ...obj.Delete && { Delete: (0, exports2.DeleteFilterSensitiveLog)(obj.Delete) }, + ...obj.Update && { Update: (0, exports2.UpdateFilterSensitiveLog)(obj.Update) } + }); + exports2.TransactWriteItemFilterSensitiveLog = TransactWriteItemFilterSensitiveLog; + var TransactWriteItemsInputFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.TransactItems && { + TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactWriteItemFilterSensitiveLog)(item)) + } + }); + exports2.TransactWriteItemsInputFilterSensitiveLog = TransactWriteItemsInputFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js +var require_httpHandler = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js +var require_httpRequest = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.HttpRequest = void 0; + var HttpRequest = class { + constructor(options) { + this.method = options.method || \\"GET\\"; + this.hostname = options.hostname || \\"localhost\\"; + this.port = options.port; + this.query = options.query || {}; + this.headers = options.headers || {}; + this.body = options.body; + this.protocol = options.protocol ? options.protocol.slice(-1) !== \\":\\" ? \`\${options.protocol}:\` : options.protocol : \\"https:\\"; + this.path = options.path ? options.path.charAt(0) !== \\"/\\" ? \`/\${options.path}\` : options.path : \\"/\\"; + } + static isInstance(request) { + if (!request) + return false; + const req = request; + return \\"method\\" in req && \\"protocol\\" in req && \\"hostname\\" in req && \\"path\\" in req && typeof req[\\"query\\"] === \\"object\\" && typeof req[\\"headers\\"] === \\"object\\"; + } + clone() { + const cloned = new HttpRequest({ + ...this, + headers: { ...this.headers } + }); + if (cloned.query) + cloned.query = cloneQuery(cloned.query); + return cloned; + } + }; + exports2.HttpRequest = HttpRequest; + function cloneQuery(query) { + return Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + } + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js +var require_httpResponse = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.HttpResponse = void 0; + var HttpResponse = class { + constructor(options) { + this.statusCode = options.statusCode; + this.headers = options.headers || {}; + this.body = options.body; + } + static isInstance(response) { + if (!response) + return false; + const resp = response; + return typeof resp.statusCode === \\"number\\" && typeof resp.headers === \\"object\\"; + } + }; + exports2.HttpResponse = HttpResponse; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js +var require_isValidHostname = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isValidHostname = void 0; + function isValidHostname(hostname) { + const hostPattern = /^[a-z0-9][a-z0-9\\\\.\\\\-]*[a-z0-9]$/; + return hostPattern.test(hostname); + } + exports2.isValidHostname = isValidHostname; + } +}); + +// node_modules/@aws-sdk/protocol-http/dist-cjs/index.js +var require_dist_cjs4 = __commonJS({ + \\"node_modules/@aws-sdk/protocol-http/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_httpHandler(), exports2); + tslib_1.__exportStar(require_httpRequest(), exports2); + tslib_1.__exportStar(require_httpResponse(), exports2); + tslib_1.__exportStar(require_isValidHostname(), exports2); + } +}); + +// node_modules/uuid/dist/rng.js +var require_rng = __commonJS({ + \\"node_modules/uuid/dist/rng.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = rng; + var _crypto = _interopRequireDefault(require(\\"crypto\\")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var rnds8Pool = new Uint8Array(256); + var poolPtr = rnds8Pool.length; + function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + poolPtr = 0; + } + return rnds8Pool.slice(poolPtr, poolPtr += 16); + } + } +}); + +// node_modules/uuid/dist/regex.js +var require_regex = __commonJS({ + \\"node_modules/uuid/dist/regex.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/validate.js +var require_validate = __commonJS({ + \\"node_modules/uuid/dist/validate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _regex = _interopRequireDefault(require_regex()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function validate(uuid) { + return typeof uuid === \\"string\\" && _regex.default.test(uuid); + } + var _default = validate; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/stringify.js +var require_stringify = __commonJS({ + \\"node_modules/uuid/dist/stringify.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var byteToHex = []; + for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 256).toString(16).substr(1)); + } + function stringify(arr, offset = 0) { + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + \\"-\\" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + \\"-\\" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + \\"-\\" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + \\"-\\" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); + if (!(0, _validate.default)(uuid)) { + throw TypeError(\\"Stringified UUID is invalid\\"); + } + return uuid; + } + var _default = stringify; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v1.js +var require_v1 = __commonJS({ + \\"node_modules/uuid/dist/v1.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var _nodeId; + var _clockseq; + var _lastMSecs = 0; + var _lastNSecs = 0; + function v12(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + if (node == null) { + node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + if (clockseq == null) { + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; + } + } + let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); + let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; + if (dt < 0 && options.clockseq === void 0) { + clockseq = clockseq + 1 & 16383; + } + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { + nsecs = 0; + } + if (nsecs >= 1e4) { + throw new Error(\\"uuid.v1(): Can't create more than 10M uuids/sec\\"); + } + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; + msecs += 122192928e5; + const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; + b[i++] = tl >>> 24 & 255; + b[i++] = tl >>> 16 & 255; + b[i++] = tl >>> 8 & 255; + b[i++] = tl & 255; + const tmh = msecs / 4294967296 * 1e4 & 268435455; + b[i++] = tmh >>> 8 & 255; + b[i++] = tmh & 255; + b[i++] = tmh >>> 24 & 15 | 16; + b[i++] = tmh >>> 16 & 255; + b[i++] = clockseq >>> 8 | 128; + b[i++] = clockseq & 255; + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + return buf || (0, _stringify.default)(b); + } + var _default = v12; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/parse.js +var require_parse = __commonJS({ + \\"node_modules/uuid/dist/parse.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError(\\"Invalid UUID\\"); + } + let v; + const arr = new Uint8Array(16); + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 255; + arr[2] = v >>> 8 & 255; + arr[3] = v & 255; + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 255; + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 255; + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 255; + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; + arr[11] = v / 4294967296 & 255; + arr[12] = v >>> 24 & 255; + arr[13] = v >>> 16 & 255; + arr[14] = v >>> 8 & 255; + arr[15] = v & 255; + return arr; + } + var _default = parse; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v35.js +var require_v35 = __commonJS({ + \\"node_modules/uuid/dist/v35.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = _default; + exports2.URL = exports2.DNS = void 0; + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); + const bytes = []; + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + return bytes; + } + var DNS = \\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\\"; + exports2.DNS = DNS; + var URL2 = \\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\\"; + exports2.URL = URL2; + function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === \\"string\\") { + value = stringToBytes(value); + } + if (typeof namespace === \\"string\\") { + namespace = (0, _parse.default)(namespace); + } + if (namespace.length !== 16) { + throw TypeError(\\"Namespace must be array-like (16 iterable integer values, 0-255)\\"); + } + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 15 | version; + bytes[8] = bytes[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + return buf; + } + return (0, _stringify.default)(bytes); + } + try { + generateUUID.name = name; + } catch (err) { + } + generateUUID.DNS = DNS; + generateUUID.URL = URL2; + return generateUUID; + } + } +}); + +// node_modules/uuid/dist/md5.js +var require_md5 = __commonJS({ + \\"node_modules/uuid/dist/md5.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require(\\"crypto\\")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === \\"string\\") { + bytes = Buffer.from(bytes, \\"utf8\\"); + } + return _crypto.default.createHash(\\"md5\\").update(bytes).digest(); + } + var _default = md5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v3.js +var require_v3 = __commonJS({ + \\"node_modules/uuid/dist/v3.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _md = _interopRequireDefault(require_md5()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v32 = (0, _v.default)(\\"v3\\", 48, _md.default); + var _default = v32; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v4.js +var require_v4 = __commonJS({ + \\"node_modules/uuid/dist/v4.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _rng = _interopRequireDefault(require_rng()); + var _stringify = _interopRequireDefault(require_stringify()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || _rng.default)(); + rnds[6] = rnds[6] & 15 | 64; + rnds[8] = rnds[8] & 63 | 128; + if (buf) { + offset = offset || 0; + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + return buf; + } + return (0, _stringify.default)(rnds); + } + var _default = v4; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/sha1.js +var require_sha1 = __commonJS({ + \\"node_modules/uuid/dist/sha1.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _crypto = _interopRequireDefault(require(\\"crypto\\")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === \\"string\\") { + bytes = Buffer.from(bytes, \\"utf8\\"); + } + return _crypto.default.createHash(\\"sha1\\").update(bytes).digest(); + } + var _default = sha1; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/v5.js +var require_v5 = __commonJS({ + \\"node_modules/uuid/dist/v5.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _v = _interopRequireDefault(require_v35()); + var _sha = _interopRequireDefault(require_sha1()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + var v5 = (0, _v.default)(\\"v5\\", 80, _sha.default); + var _default = v5; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/nil.js +var require_nil = __commonJS({ + \\"node_modules/uuid/dist/nil.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _default = \\"00000000-0000-0000-0000-000000000000\\"; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/version.js +var require_version = __commonJS({ + \\"node_modules/uuid/dist/version.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + exports2.default = void 0; + var _validate = _interopRequireDefault(require_validate()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError(\\"Invalid UUID\\"); + } + return parseInt(uuid.substr(14, 1), 16); + } + var _default = version; + exports2.default = _default; + } +}); + +// node_modules/uuid/dist/index.js +var require_dist = __commonJS({ + \\"node_modules/uuid/dist/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { + value: true + }); + Object.defineProperty(exports2, \\"v1\\", { + enumerable: true, + get: function() { + return _v.default; + } + }); + Object.defineProperty(exports2, \\"v3\\", { + enumerable: true, + get: function() { + return _v2.default; + } + }); + Object.defineProperty(exports2, \\"v4\\", { + enumerable: true, + get: function() { + return _v3.default; + } + }); + Object.defineProperty(exports2, \\"v5\\", { + enumerable: true, + get: function() { + return _v4.default; + } + }); + Object.defineProperty(exports2, \\"NIL\\", { + enumerable: true, + get: function() { + return _nil.default; + } + }); + Object.defineProperty(exports2, \\"version\\", { + enumerable: true, + get: function() { + return _version.default; + } + }); + Object.defineProperty(exports2, \\"validate\\", { + enumerable: true, + get: function() { + return _validate.default; + } + }); + Object.defineProperty(exports2, \\"stringify\\", { + enumerable: true, + get: function() { + return _stringify.default; + } + }); + Object.defineProperty(exports2, \\"parse\\", { + enumerable: true, + get: function() { + return _parse.default; + } + }); + var _v = _interopRequireDefault(require_v1()); + var _v2 = _interopRequireDefault(require_v3()); + var _v3 = _interopRequireDefault(require_v4()); + var _v4 = _interopRequireDefault(require_v5()); + var _nil = _interopRequireDefault(require_nil()); + var _version = _interopRequireDefault(require_version()); + var _validate = _interopRequireDefault(require_validate()); + var _stringify = _interopRequireDefault(require_stringify()); + var _parse = _interopRequireDefault(require_parse()); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js +var require_Aws_json1_0 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.serializeAws_json1_0UpdateItemCommand = exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.serializeAws_json1_0UpdateGlobalTableCommand = exports2.serializeAws_json1_0UpdateContributorInsightsCommand = exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = exports2.serializeAws_json1_0UntagResourceCommand = exports2.serializeAws_json1_0TransactWriteItemsCommand = exports2.serializeAws_json1_0TransactGetItemsCommand = exports2.serializeAws_json1_0TagResourceCommand = exports2.serializeAws_json1_0ScanCommand = exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.serializeAws_json1_0RestoreTableFromBackupCommand = exports2.serializeAws_json1_0QueryCommand = exports2.serializeAws_json1_0PutItemCommand = exports2.serializeAws_json1_0ListTagsOfResourceCommand = exports2.serializeAws_json1_0ListTablesCommand = exports2.serializeAws_json1_0ListImportsCommand = exports2.serializeAws_json1_0ListGlobalTablesCommand = exports2.serializeAws_json1_0ListExportsCommand = exports2.serializeAws_json1_0ListContributorInsightsCommand = exports2.serializeAws_json1_0ListBackupsCommand = exports2.serializeAws_json1_0ImportTableCommand = exports2.serializeAws_json1_0GetItemCommand = exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = exports2.serializeAws_json1_0ExecuteTransactionCommand = exports2.serializeAws_json1_0ExecuteStatementCommand = exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeTimeToLiveCommand = exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0DescribeTableCommand = exports2.serializeAws_json1_0DescribeLimitsCommand = exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeImportCommand = exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.serializeAws_json1_0DescribeGlobalTableCommand = exports2.serializeAws_json1_0DescribeExportCommand = exports2.serializeAws_json1_0DescribeEndpointsCommand = exports2.serializeAws_json1_0DescribeContributorInsightsCommand = exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = exports2.serializeAws_json1_0DescribeBackupCommand = exports2.serializeAws_json1_0DeleteTableCommand = exports2.serializeAws_json1_0DeleteItemCommand = exports2.serializeAws_json1_0DeleteBackupCommand = exports2.serializeAws_json1_0CreateTableCommand = exports2.serializeAws_json1_0CreateGlobalTableCommand = exports2.serializeAws_json1_0CreateBackupCommand = exports2.serializeAws_json1_0BatchWriteItemCommand = exports2.serializeAws_json1_0BatchGetItemCommand = exports2.serializeAws_json1_0BatchExecuteStatementCommand = void 0; + exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = exports2.deserializeAws_json1_0UntagResourceCommand = exports2.deserializeAws_json1_0TransactWriteItemsCommand = exports2.deserializeAws_json1_0TransactGetItemsCommand = exports2.deserializeAws_json1_0TagResourceCommand = exports2.deserializeAws_json1_0ScanCommand = exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = exports2.deserializeAws_json1_0QueryCommand = exports2.deserializeAws_json1_0PutItemCommand = exports2.deserializeAws_json1_0ListTagsOfResourceCommand = exports2.deserializeAws_json1_0ListTablesCommand = exports2.deserializeAws_json1_0ListImportsCommand = exports2.deserializeAws_json1_0ListGlobalTablesCommand = exports2.deserializeAws_json1_0ListExportsCommand = exports2.deserializeAws_json1_0ListContributorInsightsCommand = exports2.deserializeAws_json1_0ListBackupsCommand = exports2.deserializeAws_json1_0ImportTableCommand = exports2.deserializeAws_json1_0GetItemCommand = exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = exports2.deserializeAws_json1_0ExecuteTransactionCommand = exports2.deserializeAws_json1_0ExecuteStatementCommand = exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0DescribeTableCommand = exports2.deserializeAws_json1_0DescribeLimitsCommand = exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeImportCommand = exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.deserializeAws_json1_0DescribeGlobalTableCommand = exports2.deserializeAws_json1_0DescribeExportCommand = exports2.deserializeAws_json1_0DescribeEndpointsCommand = exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = exports2.deserializeAws_json1_0DescribeBackupCommand = exports2.deserializeAws_json1_0DeleteTableCommand = exports2.deserializeAws_json1_0DeleteItemCommand = exports2.deserializeAws_json1_0DeleteBackupCommand = exports2.deserializeAws_json1_0CreateTableCommand = exports2.deserializeAws_json1_0CreateGlobalTableCommand = exports2.deserializeAws_json1_0CreateBackupCommand = exports2.deserializeAws_json1_0BatchWriteItemCommand = exports2.deserializeAws_json1_0BatchGetItemCommand = exports2.deserializeAws_json1_0BatchExecuteStatementCommand = exports2.serializeAws_json1_0UpdateTimeToLiveCommand = exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0UpdateTableCommand = void 0; + exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0UpdateTableCommand = exports2.deserializeAws_json1_0UpdateItemCommand = exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.deserializeAws_json1_0UpdateGlobalTableCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs3(); + var uuid_1 = require_dist(); + var DynamoDBServiceException_1 = require_DynamoDBServiceException(); + var models_0_1 = require_models_0(); + var serializeAws_json1_0BatchExecuteStatementCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.BatchExecuteStatement\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0BatchExecuteStatementInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0BatchExecuteStatementCommand = serializeAws_json1_0BatchExecuteStatementCommand; + var serializeAws_json1_0BatchGetItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.BatchGetItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0BatchGetItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0BatchGetItemCommand = serializeAws_json1_0BatchGetItemCommand; + var serializeAws_json1_0BatchWriteItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.BatchWriteItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0BatchWriteItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0BatchWriteItemCommand = serializeAws_json1_0BatchWriteItemCommand; + var serializeAws_json1_0CreateBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.CreateBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0CreateBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0CreateBackupCommand = serializeAws_json1_0CreateBackupCommand; + var serializeAws_json1_0CreateGlobalTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.CreateGlobalTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0CreateGlobalTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0CreateGlobalTableCommand = serializeAws_json1_0CreateGlobalTableCommand; + var serializeAws_json1_0CreateTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.CreateTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0CreateTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0CreateTableCommand = serializeAws_json1_0CreateTableCommand; + var serializeAws_json1_0DeleteBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DeleteBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DeleteBackupCommand = serializeAws_json1_0DeleteBackupCommand; + var serializeAws_json1_0DeleteItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DeleteItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DeleteItemCommand = serializeAws_json1_0DeleteItemCommand; + var serializeAws_json1_0DeleteTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DeleteTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DeleteTableCommand = serializeAws_json1_0DeleteTableCommand; + var serializeAws_json1_0DescribeBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeBackupCommand = serializeAws_json1_0DescribeBackupCommand; + var serializeAws_json1_0DescribeContinuousBackupsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContinuousBackups\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeContinuousBackupsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = serializeAws_json1_0DescribeContinuousBackupsCommand; + var serializeAws_json1_0DescribeContributorInsightsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContributorInsights\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeContributorInsightsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeContributorInsightsCommand = serializeAws_json1_0DescribeContributorInsightsCommand; + var serializeAws_json1_0DescribeEndpointsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeEndpoints\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeEndpointsRequest(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeEndpointsCommand = serializeAws_json1_0DescribeEndpointsCommand; + var serializeAws_json1_0DescribeExportCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeExport\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeExportInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeExportCommand = serializeAws_json1_0DescribeExportCommand; + var serializeAws_json1_0DescribeGlobalTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeGlobalTableCommand = serializeAws_json1_0DescribeGlobalTableCommand; + var serializeAws_json1_0DescribeGlobalTableSettingsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTableSettings\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableSettingsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = serializeAws_json1_0DescribeGlobalTableSettingsCommand; + var serializeAws_json1_0DescribeImportCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeImport\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeImportInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeImportCommand = serializeAws_json1_0DescribeImportCommand; + var serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeKinesisStreamingDestination\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeKinesisStreamingDestinationInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = serializeAws_json1_0DescribeKinesisStreamingDestinationCommand; + var serializeAws_json1_0DescribeLimitsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeLimits\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeLimitsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeLimitsCommand = serializeAws_json1_0DescribeLimitsCommand; + var serializeAws_json1_0DescribeTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeTableCommand = serializeAws_json1_0DescribeTableCommand; + var serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTableReplicaAutoScaling\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeTableReplicaAutoScalingInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = serializeAws_json1_0DescribeTableReplicaAutoScalingCommand; + var serializeAws_json1_0DescribeTimeToLiveCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTimeToLive\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0DescribeTimeToLiveInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DescribeTimeToLiveCommand = serializeAws_json1_0DescribeTimeToLiveCommand; + var serializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.DisableKinesisStreamingDestination\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = serializeAws_json1_0DisableKinesisStreamingDestinationCommand; + var serializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.EnableKinesisStreamingDestination\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = serializeAws_json1_0EnableKinesisStreamingDestinationCommand; + var serializeAws_json1_0ExecuteStatementCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteStatement\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ExecuteStatementInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ExecuteStatementCommand = serializeAws_json1_0ExecuteStatementCommand; + var serializeAws_json1_0ExecuteTransactionCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteTransaction\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ExecuteTransactionInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ExecuteTransactionCommand = serializeAws_json1_0ExecuteTransactionCommand; + var serializeAws_json1_0ExportTableToPointInTimeCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ExportTableToPointInTime\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ExportTableToPointInTimeInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = serializeAws_json1_0ExportTableToPointInTimeCommand; + var serializeAws_json1_0GetItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.GetItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0GetItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0GetItemCommand = serializeAws_json1_0GetItemCommand; + var serializeAws_json1_0ImportTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ImportTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ImportTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ImportTableCommand = serializeAws_json1_0ImportTableCommand; + var serializeAws_json1_0ListBackupsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListBackups\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListBackupsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListBackupsCommand = serializeAws_json1_0ListBackupsCommand; + var serializeAws_json1_0ListContributorInsightsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListContributorInsights\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListContributorInsightsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListContributorInsightsCommand = serializeAws_json1_0ListContributorInsightsCommand; + var serializeAws_json1_0ListExportsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListExports\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListExportsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListExportsCommand = serializeAws_json1_0ListExportsCommand; + var serializeAws_json1_0ListGlobalTablesCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListGlobalTables\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListGlobalTablesInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListGlobalTablesCommand = serializeAws_json1_0ListGlobalTablesCommand; + var serializeAws_json1_0ListImportsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListImports\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListImportsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListImportsCommand = serializeAws_json1_0ListImportsCommand; + var serializeAws_json1_0ListTablesCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListTables\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListTablesInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListTablesCommand = serializeAws_json1_0ListTablesCommand; + var serializeAws_json1_0ListTagsOfResourceCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.ListTagsOfResource\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ListTagsOfResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ListTagsOfResourceCommand = serializeAws_json1_0ListTagsOfResourceCommand; + var serializeAws_json1_0PutItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.PutItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0PutItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0PutItemCommand = serializeAws_json1_0PutItemCommand; + var serializeAws_json1_0QueryCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.Query\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0QueryInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0QueryCommand = serializeAws_json1_0QueryCommand; + var serializeAws_json1_0RestoreTableFromBackupCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableFromBackup\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0RestoreTableFromBackupInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0RestoreTableFromBackupCommand = serializeAws_json1_0RestoreTableFromBackupCommand; + var serializeAws_json1_0RestoreTableToPointInTimeCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableToPointInTime\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0RestoreTableToPointInTimeInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = serializeAws_json1_0RestoreTableToPointInTimeCommand; + var serializeAws_json1_0ScanCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.Scan\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0ScanInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0ScanCommand = serializeAws_json1_0ScanCommand; + var serializeAws_json1_0TagResourceCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.TagResource\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0TagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand; + var serializeAws_json1_0TransactGetItemsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.TransactGetItems\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0TransactGetItemsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0TransactGetItemsCommand = serializeAws_json1_0TransactGetItemsCommand; + var serializeAws_json1_0TransactWriteItemsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.TransactWriteItems\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0TransactWriteItemsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0TransactWriteItemsCommand = serializeAws_json1_0TransactWriteItemsCommand; + var serializeAws_json1_0UntagResourceCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UntagResource\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand; + var serializeAws_json1_0UpdateContinuousBackupsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContinuousBackups\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateContinuousBackupsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = serializeAws_json1_0UpdateContinuousBackupsCommand; + var serializeAws_json1_0UpdateContributorInsightsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContributorInsights\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateContributorInsightsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateContributorInsightsCommand = serializeAws_json1_0UpdateContributorInsightsCommand; + var serializeAws_json1_0UpdateGlobalTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateGlobalTableCommand = serializeAws_json1_0UpdateGlobalTableCommand; + var serializeAws_json1_0UpdateGlobalTableSettingsCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTableSettings\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableSettingsInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = serializeAws_json1_0UpdateGlobalTableSettingsCommand; + var serializeAws_json1_0UpdateItemCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateItem\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateItemInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateItemCommand = serializeAws_json1_0UpdateItemCommand; + var serializeAws_json1_0UpdateTableCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTable\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateTableInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateTableCommand = serializeAws_json1_0UpdateTableCommand; + var serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTableReplicaAutoScaling\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateTableReplicaAutoScalingInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = serializeAws_json1_0UpdateTableReplicaAutoScalingCommand; + var serializeAws_json1_0UpdateTimeToLiveCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-amz-json-1.0\\", + \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTimeToLive\\" + }; + let body; + body = JSON.stringify(serializeAws_json1_0UpdateTimeToLiveInput(input, context)); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_json1_0UpdateTimeToLiveCommand = serializeAws_json1_0UpdateTimeToLiveCommand; + var deserializeAws_json1_0BatchExecuteStatementCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0BatchExecuteStatementCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0BatchExecuteStatementOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0BatchExecuteStatementCommand = deserializeAws_json1_0BatchExecuteStatementCommand; + var deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0BatchGetItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0BatchGetItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0BatchGetItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0BatchGetItemCommand = deserializeAws_json1_0BatchGetItemCommand; + var deserializeAws_json1_0BatchGetItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0BatchWriteItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0BatchWriteItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0BatchWriteItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0BatchWriteItemCommand = deserializeAws_json1_0BatchWriteItemCommand; + var deserializeAws_json1_0BatchWriteItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0CreateBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0CreateBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0CreateBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0CreateBackupCommand = deserializeAws_json1_0CreateBackupCommand; + var deserializeAws_json1_0CreateBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupInUseException\\": + case \\"com.amazonaws.dynamodb#BackupInUseException\\": + throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); + case \\"ContinuousBackupsUnavailableException\\": + case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": + throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"TableInUseException\\": + case \\"com.amazonaws.dynamodb#TableInUseException\\": + throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0CreateGlobalTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0CreateGlobalTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0CreateGlobalTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0CreateGlobalTableCommand = deserializeAws_json1_0CreateGlobalTableCommand; + var deserializeAws_json1_0CreateGlobalTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException\\": + throw await deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0CreateTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0CreateTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0CreateTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0CreateTableCommand = deserializeAws_json1_0CreateTableCommand; + var deserializeAws_json1_0CreateTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DeleteBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DeleteBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DeleteBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DeleteBackupCommand = deserializeAws_json1_0DeleteBackupCommand; + var deserializeAws_json1_0DeleteBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupInUseException\\": + case \\"com.amazonaws.dynamodb#BackupInUseException\\": + throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); + case \\"BackupNotFoundException\\": + case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": + throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DeleteItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DeleteItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DeleteItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DeleteItemCommand = deserializeAws_json1_0DeleteItemCommand; + var deserializeAws_json1_0DeleteItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DeleteTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DeleteTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DeleteTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DeleteTableCommand = deserializeAws_json1_0DeleteTableCommand; + var deserializeAws_json1_0DeleteTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeBackupCommand = deserializeAws_json1_0DescribeBackupCommand; + var deserializeAws_json1_0DescribeBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupNotFoundException\\": + case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": + throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeContinuousBackupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeContinuousBackupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeContinuousBackupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = deserializeAws_json1_0DescribeContinuousBackupsCommand; + var deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeContributorInsightsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeContributorInsightsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeContributorInsightsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = deserializeAws_json1_0DescribeContributorInsightsCommand; + var deserializeAws_json1_0DescribeContributorInsightsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeEndpointsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeEndpointsResponse(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeEndpointsCommand = deserializeAws_json1_0DescribeEndpointsCommand; + var deserializeAws_json1_0DescribeEndpointsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + }; + var deserializeAws_json1_0DescribeExportCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeExportCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeExportOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeExportCommand = deserializeAws_json1_0DescribeExportCommand; + var deserializeAws_json1_0DescribeExportCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExportNotFoundException\\": + case \\"com.amazonaws.dynamodb#ExportNotFoundException\\": + throw await deserializeAws_json1_0ExportNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeGlobalTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeGlobalTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeGlobalTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeGlobalTableCommand = deserializeAws_json1_0DescribeGlobalTableCommand; + var deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeGlobalTableSettingsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeGlobalTableSettingsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeGlobalTableSettingsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = deserializeAws_json1_0DescribeGlobalTableSettingsCommand; + var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeImportCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeImportCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeImportOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeImportCommand = deserializeAws_json1_0DescribeImportCommand; + var deserializeAws_json1_0DescribeImportCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ImportNotFoundException\\": + case \\"com.amazonaws.dynamodb#ImportNotFoundException\\": + throw await deserializeAws_json1_0ImportNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand; + var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeLimitsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeLimitsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeLimitsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeLimitsCommand = deserializeAws_json1_0DescribeLimitsCommand; + var deserializeAws_json1_0DescribeLimitsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeTableCommand = deserializeAws_json1_0DescribeTableCommand; + var deserializeAws_json1_0DescribeTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand; + var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DescribeTimeToLiveCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DescribeTimeToLiveCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0DescribeTimeToLiveOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = deserializeAws_json1_0DescribeTimeToLiveCommand; + var deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = deserializeAws_json1_0DisableKinesisStreamingDestinationCommand; + var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = deserializeAws_json1_0EnableKinesisStreamingDestinationCommand; + var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ExecuteStatementCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ExecuteStatementCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ExecuteStatementOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ExecuteStatementCommand = deserializeAws_json1_0ExecuteStatementCommand; + var deserializeAws_json1_0ExecuteStatementCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"DuplicateItemException\\": + case \\"com.amazonaws.dynamodb#DuplicateItemException\\": + throw await deserializeAws_json1_0DuplicateItemExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ExecuteTransactionCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ExecuteTransactionCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ExecuteTransactionOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ExecuteTransactionCommand = deserializeAws_json1_0ExecuteTransactionCommand; + var deserializeAws_json1_0ExecuteTransactionCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"IdempotentParameterMismatchException\\": + case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": + throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionCanceledException\\": + case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": + throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); + case \\"TransactionInProgressException\\": + case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": + throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ExportTableToPointInTimeCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ExportTableToPointInTimeCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ExportTableToPointInTimeOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = deserializeAws_json1_0ExportTableToPointInTimeCommand; + var deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExportConflictException\\": + case \\"com.amazonaws.dynamodb#ExportConflictException\\": + throw await deserializeAws_json1_0ExportConflictExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidExportTimeException\\": + case \\"com.amazonaws.dynamodb#InvalidExportTimeException\\": + throw await deserializeAws_json1_0InvalidExportTimeExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"PointInTimeRecoveryUnavailableException\\": + case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": + throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0GetItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0GetItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0GetItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0GetItemCommand = deserializeAws_json1_0GetItemCommand; + var deserializeAws_json1_0GetItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ImportTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ImportTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ImportTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ImportTableCommand = deserializeAws_json1_0ImportTableCommand; + var deserializeAws_json1_0ImportTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ImportConflictException\\": + case \\"com.amazonaws.dynamodb#ImportConflictException\\": + throw await deserializeAws_json1_0ImportConflictExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListBackupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListBackupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListBackupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListBackupsCommand = deserializeAws_json1_0ListBackupsCommand; + var deserializeAws_json1_0ListBackupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListContributorInsightsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListContributorInsightsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListContributorInsightsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListContributorInsightsCommand = deserializeAws_json1_0ListContributorInsightsCommand; + var deserializeAws_json1_0ListContributorInsightsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListExportsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListExportsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListExportsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListExportsCommand = deserializeAws_json1_0ListExportsCommand; + var deserializeAws_json1_0ListExportsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListGlobalTablesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListGlobalTablesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListGlobalTablesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListGlobalTablesCommand = deserializeAws_json1_0ListGlobalTablesCommand; + var deserializeAws_json1_0ListGlobalTablesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListImportsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListImportsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListImportsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListImportsCommand = deserializeAws_json1_0ListImportsCommand; + var deserializeAws_json1_0ListImportsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListTablesCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListTablesCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListTablesOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListTablesCommand = deserializeAws_json1_0ListTablesCommand; + var deserializeAws_json1_0ListTablesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ListTagsOfResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ListTagsOfResourceCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ListTagsOfResourceOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ListTagsOfResourceCommand = deserializeAws_json1_0ListTagsOfResourceCommand; + var deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0PutItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0PutItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0PutItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0PutItemCommand = deserializeAws_json1_0PutItemCommand; + var deserializeAws_json1_0PutItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0QueryCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0QueryCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0QueryOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand; + var deserializeAws_json1_0QueryCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0RestoreTableFromBackupCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0RestoreTableFromBackupCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0RestoreTableFromBackupOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = deserializeAws_json1_0RestoreTableFromBackupCommand; + var deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"BackupInUseException\\": + case \\"com.amazonaws.dynamodb#BackupInUseException\\": + throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); + case \\"BackupNotFoundException\\": + case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": + throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"TableAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": + throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"TableInUseException\\": + case \\"com.amazonaws.dynamodb#TableInUseException\\": + throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0RestoreTableToPointInTimeCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0RestoreTableToPointInTimeCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0RestoreTableToPointInTimeOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = deserializeAws_json1_0RestoreTableToPointInTimeCommand; + var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"InvalidRestoreTimeException\\": + case \\"com.amazonaws.dynamodb#InvalidRestoreTimeException\\": + throw await deserializeAws_json1_0InvalidRestoreTimeExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"PointInTimeRecoveryUnavailableException\\": + case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": + throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); + case \\"TableAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": + throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"TableInUseException\\": + case \\"com.amazonaws.dynamodb#TableInUseException\\": + throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0ScanCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0ScanCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0ScanOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0ScanCommand = deserializeAws_json1_0ScanCommand; + var deserializeAws_json1_0ScanCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0TagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0TagResourceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand; + var deserializeAws_json1_0TagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0TransactGetItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0TransactGetItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0TransactGetItemsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0TransactGetItemsCommand = deserializeAws_json1_0TransactGetItemsCommand; + var deserializeAws_json1_0TransactGetItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionCanceledException\\": + case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": + throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0TransactWriteItemsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0TransactWriteItemsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0TransactWriteItemsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0TransactWriteItemsCommand = deserializeAws_json1_0TransactWriteItemsCommand; + var deserializeAws_json1_0TransactWriteItemsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"IdempotentParameterMismatchException\\": + case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": + throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionCanceledException\\": + case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": + throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); + case \\"TransactionInProgressException\\": + case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": + throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UntagResourceCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UntagResourceCommandError(output, context); + } + await collectBody(output.body, context); + const response = { + $metadata: deserializeMetadata(output) + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand; + var deserializeAws_json1_0UntagResourceCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateContinuousBackupsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateContinuousBackupsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateContinuousBackupsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = deserializeAws_json1_0UpdateContinuousBackupsCommand; + var deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ContinuousBackupsUnavailableException\\": + case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": + throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateContributorInsightsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateContributorInsightsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateContributorInsightsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = deserializeAws_json1_0UpdateContributorInsightsCommand; + var deserializeAws_json1_0UpdateContributorInsightsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateGlobalTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateGlobalTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateGlobalTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateGlobalTableCommand = deserializeAws_json1_0UpdateGlobalTableCommand; + var deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ReplicaAlreadyExistsException\\": + case \\"com.amazonaws.dynamodb#ReplicaAlreadyExistsException\\": + throw await deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse(parsedOutput, context); + case \\"ReplicaNotFoundException\\": + case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": + throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); + case \\"TableNotFoundException\\": + case \\"com.amazonaws.dynamodb#TableNotFoundException\\": + throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateGlobalTableSettingsCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateGlobalTableSettingsCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateGlobalTableSettingsOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = deserializeAws_json1_0UpdateGlobalTableSettingsCommand; + var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"GlobalTableNotFoundException\\": + case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": + throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); + case \\"IndexNotFoundException\\": + case \\"com.amazonaws.dynamodb#IndexNotFoundException\\": + throw await deserializeAws_json1_0IndexNotFoundExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ReplicaNotFoundException\\": + case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": + throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateItemCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateItemCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateItemOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateItemCommand = deserializeAws_json1_0UpdateItemCommand; + var deserializeAws_json1_0UpdateItemCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ConditionalCheckFailedException\\": + case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": + throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"ItemCollectionSizeLimitExceededException\\": + case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": + throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); + case \\"ProvisionedThroughputExceededException\\": + case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": + throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); + case \\"RequestLimitExceeded\\": + case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": + throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TransactionConflictException\\": + case \\"com.amazonaws.dynamodb#TransactionConflictException\\": + throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateTableCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateTableCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateTableOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateTableCommand = deserializeAws_json1_0UpdateTableCommand; + var deserializeAws_json1_0UpdateTableCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand; + var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0UpdateTimeToLiveCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_json1_0UpdateTimeToLiveCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_json1_0UpdateTimeToLiveOutput(data, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = deserializeAws_json1_0UpdateTimeToLiveCommand; + var deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InternalServerError\\": + case \\"com.amazonaws.dynamodb#InternalServerError\\": + throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); + case \\"InvalidEndpointException\\": + case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": + throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); + case \\"LimitExceededException\\": + case \\"com.amazonaws.dynamodb#LimitExceededException\\": + throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); + case \\"ResourceInUseException\\": + case \\"com.amazonaws.dynamodb#ResourceInUseException\\": + throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": + throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, + errorCode + }); + } + }; + var deserializeAws_json1_0BackupInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0BackupInUseException(body, context); + const exception = new models_0_1.BackupInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0BackupNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0BackupNotFoundException(body, context); + const exception = new models_0_1.BackupNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ConditionalCheckFailedExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ConditionalCheckFailedException(body, context); + const exception = new models_0_1.ConditionalCheckFailedException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ContinuousBackupsUnavailableException(body, context); + const exception = new models_0_1.ContinuousBackupsUnavailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0DuplicateItemExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0DuplicateItemException(body, context); + const exception = new models_0_1.DuplicateItemException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ExportConflictExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ExportConflictException(body, context); + const exception = new models_0_1.ExportConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ExportNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ExportNotFoundException(body, context); + const exception = new models_0_1.ExportNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0GlobalTableAlreadyExistsException(body, context); + const exception = new models_0_1.GlobalTableAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0GlobalTableNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0GlobalTableNotFoundException(body, context); + const exception = new models_0_1.GlobalTableNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0IdempotentParameterMismatchException(body, context); + const exception = new models_0_1.IdempotentParameterMismatchException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ImportConflictExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ImportConflictException(body, context); + const exception = new models_0_1.ImportConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ImportNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ImportNotFoundException(body, context); + const exception = new models_0_1.ImportNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0IndexNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0IndexNotFoundException(body, context); + const exception = new models_0_1.IndexNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InternalServerError(body, context); + const exception = new models_0_1.InternalServerError({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InvalidEndpointExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InvalidEndpointException(body, context); + const exception = new models_0_1.InvalidEndpointException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InvalidExportTimeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InvalidExportTimeException(body, context); + const exception = new models_0_1.InvalidExportTimeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0InvalidRestoreTimeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0InvalidRestoreTimeException(body, context); + const exception = new models_0_1.InvalidRestoreTimeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ItemCollectionSizeLimitExceededException(body, context); + const exception = new models_0_1.ItemCollectionSizeLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0LimitExceededException(body, context); + const exception = new models_0_1.LimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0PointInTimeRecoveryUnavailableException(body, context); + const exception = new models_0_1.PointInTimeRecoveryUnavailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ProvisionedThroughputExceededException(body, context); + const exception = new models_0_1.ProvisionedThroughputExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ReplicaAlreadyExistsException(body, context); + const exception = new models_0_1.ReplicaAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ReplicaNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ReplicaNotFoundException(body, context); + const exception = new models_0_1.ReplicaNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0RequestLimitExceededResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0RequestLimitExceeded(body, context); + const exception = new models_0_1.RequestLimitExceeded({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ResourceInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ResourceInUseException(body, context); + const exception = new models_0_1.ResourceInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context); + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TableAlreadyExistsException(body, context); + const exception = new models_0_1.TableAlreadyExistsException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TableInUseExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TableInUseException(body, context); + const exception = new models_0_1.TableInUseException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TableNotFoundExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TableNotFoundException(body, context); + const exception = new models_0_1.TableNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TransactionCanceledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TransactionCanceledException(body, context); + const exception = new models_0_1.TransactionCanceledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TransactionConflictExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TransactionConflictException(body, context); + const exception = new models_0_1.TransactionConflictException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_json1_0TransactionInProgressExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_json1_0TransactionInProgressException(body, context); + const exception = new models_0_1.TransactionInProgressException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_json1_0AttributeDefinition = (input, context) => { + return { + ...input.AttributeName != null && { AttributeName: input.AttributeName }, + ...input.AttributeType != null && { AttributeType: input.AttributeType } + }; + }; + var serializeAws_json1_0AttributeDefinitions = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeDefinition(entry, context); + }); + }; + var serializeAws_json1_0AttributeNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0AttributeUpdates = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValueUpdate(value, context) + }; + }, {}); + }; + var serializeAws_json1_0AttributeValue = (input, context) => { + return models_0_1.AttributeValue.visit(input, { + B: (value) => ({ B: context.base64Encoder(value) }), + BOOL: (value) => ({ BOOL: value }), + BS: (value) => ({ BS: serializeAws_json1_0BinarySetAttributeValue(value, context) }), + L: (value) => ({ L: serializeAws_json1_0ListAttributeValue(value, context) }), + M: (value) => ({ M: serializeAws_json1_0MapAttributeValue(value, context) }), + N: (value) => ({ N: value }), + NS: (value) => ({ NS: serializeAws_json1_0NumberSetAttributeValue(value, context) }), + NULL: (value) => ({ NULL: value }), + S: (value) => ({ S: value }), + SS: (value) => ({ SS: serializeAws_json1_0StringSetAttributeValue(value, context) }), + _: (name, value) => ({ name: value }) + }); + }; + var serializeAws_json1_0AttributeValueList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeValue(entry, context); + }); + }; + var serializeAws_json1_0AttributeValueUpdate = (input, context) => { + return { + ...input.Action != null && { Action: input.Action }, + ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } + }; + }; + var serializeAws_json1_0AutoScalingPolicyUpdate = (input, context) => { + return { + ...input.PolicyName != null && { PolicyName: input.PolicyName }, + ...input.TargetTrackingScalingPolicyConfiguration != null && { + TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context) + } + }; + }; + var serializeAws_json1_0AutoScalingSettingsUpdate = (input, context) => { + return { + ...input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled }, + ...input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn }, + ...input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits }, + ...input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits }, + ...input.ScalingPolicyUpdate != null && { + ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context) + } + }; + }; + var serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => { + return { + ...input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }, + ...input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }, + ...input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }, + ...input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) } + }; + }; + var serializeAws_json1_0BatchExecuteStatementInput = (input, context) => { + return { + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) } + }; + }; + var serializeAws_json1_0BatchGetItemInput = (input, context) => { + return { + ...input.RequestItems != null && { + RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity } + }; + }; + var serializeAws_json1_0BatchGetRequestMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0KeysAndAttributes(value, context) + }; + }, {}); + }; + var serializeAws_json1_0BatchStatementRequest = (input, context) => { + return { + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.Parameters != null && { + Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) + }, + ...input.Statement != null && { Statement: input.Statement } + }; + }; + var serializeAws_json1_0BatchWriteItemInput = (input, context) => { + return { + ...input.RequestItems != null && { + RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + } + }; + }; + var serializeAws_json1_0BatchWriteItemRequestMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0WriteRequests(value, context) + }; + }, {}); + }; + var serializeAws_json1_0BinarySetAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return context.base64Encoder(entry); + }); + }; + var serializeAws_json1_0Condition = (input, context) => { + return { + ...input.AttributeValueList != null && { + AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) + }, + ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator } + }; + }; + var serializeAws_json1_0ConditionCheck = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0CreateBackupInput = (input, context) => { + return { + ...input.BackupName != null && { BackupName: input.BackupName }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0CreateGlobalSecondaryIndexAction = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + } + }; + }; + var serializeAws_json1_0CreateGlobalTableInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, + ...input.ReplicationGroup != null && { + ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context) + } + }; + }; + var serializeAws_json1_0CreateReplicaAction = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0CreateReplicationGroupMemberAction = (input, context) => { + return { + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) + }, + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } + }; + }; + var serializeAws_json1_0CreateTableInput = (input, context) => { + return { + ...input.AttributeDefinitions != null && { + AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) + }, + ...input.BillingMode != null && { BillingMode: input.BillingMode }, + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.LocalSecondaryIndexes != null && { + LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context) + }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + }, + ...input.SSESpecification != null && { + SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) + }, + ...input.StreamSpecification != null && { + StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) + }, + ...input.TableClass != null && { TableClass: input.TableClass }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } + }; + }; + var serializeAws_json1_0CsvHeaderList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0CsvOptions = (input, context) => { + return { + ...input.Delimiter != null && { Delimiter: input.Delimiter }, + ...input.HeaderList != null && { HeaderList: serializeAws_json1_0CsvHeaderList(input.HeaderList, context) } + }; + }; + var serializeAws_json1_0Delete = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DeleteBackupInput = (input, context) => { + return { + ...input.BackupArn != null && { BackupArn: input.BackupArn } + }; + }; + var serializeAws_json1_0DeleteGlobalSecondaryIndexAction = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName } + }; + }; + var serializeAws_json1_0DeleteItemInput = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DeleteReplicaAction = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0DeleteReplicationGroupMemberAction = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0DeleteRequest = (input, context) => { + return { + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) } + }; + }; + var serializeAws_json1_0DeleteTableInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeBackupInput = (input, context) => { + return { + ...input.BackupArn != null && { BackupArn: input.BackupArn } + }; + }; + var serializeAws_json1_0DescribeContinuousBackupsInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeContributorInsightsInput = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeEndpointsRequest = (input, context) => { + return {}; + }; + var serializeAws_json1_0DescribeExportInput = (input, context) => { + return { + ...input.ExportArn != null && { ExportArn: input.ExportArn } + }; + }; + var serializeAws_json1_0DescribeGlobalTableInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } + }; + }; + var serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } + }; + }; + var serializeAws_json1_0DescribeImportInput = (input, context) => { + return { + ...input.ImportArn != null && { ImportArn: input.ImportArn } + }; + }; + var serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeLimitsInput = (input, context) => { + return {}; + }; + var serializeAws_json1_0DescribeTableInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeTableReplicaAutoScalingInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0DescribeTimeToLiveInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0ExecuteStatementInput = (input, context) => { + return { + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.Parameters != null && { + Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.Statement != null && { Statement: input.Statement } + }; + }; + var serializeAws_json1_0ExecuteTransactionInput = (input, context) => { + var _a; + return { + ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.TransactStatements != null && { + TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context) + } + }; + }; + var serializeAws_json1_0ExpectedAttributeMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0ExpectedAttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0ExpectedAttributeValue = (input, context) => { + return { + ...input.AttributeValueList != null && { + AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) + }, + ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }, + ...input.Exists != null && { Exists: input.Exists }, + ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } + }; + }; + var serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => { + var _a; + return { + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.ExportFormat != null && { ExportFormat: input.ExportFormat }, + ...input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1e3) }, + ...input.S3Bucket != null && { S3Bucket: input.S3Bucket }, + ...input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }, + ...input.S3Prefix != null && { S3Prefix: input.S3Prefix }, + ...input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm }, + ...input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId }, + ...input.TableArn != null && { TableArn: input.TableArn } + }; + }; + var serializeAws_json1_0ExpressionAttributeNameMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: value + }; + }, {}); + }; + var serializeAws_json1_0ExpressionAttributeValueMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0FilterConditionMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0Condition(value, context) + }; + }, {}); + }; + var serializeAws_json1_0Get = (input, context) => { + return { + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0GetItemInput = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndex = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { + ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) + } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate(entry, context); + }); + }; + var serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalSecondaryIndex(entry, context); + }); + }; + var serializeAws_json1_0GlobalSecondaryIndexUpdate = (input, context) => { + return { + ...input.Create != null && { + Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) + }, + ...input.Delete != null && { + Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) + }, + ...input.Update != null && { + Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) + } + }; + }; + var serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalSecondaryIndexUpdate(entry, context); + }); + }; + var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { + ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context) + }, + ...input.ProvisionedWriteCapacityUnits != null && { + ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits + } + }; + }; + var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context); + }); + }; + var serializeAws_json1_0ImportTableInput = (input, context) => { + var _a; + return { + ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.InputCompressionType != null && { InputCompressionType: input.InputCompressionType }, + ...input.InputFormat != null && { InputFormat: input.InputFormat }, + ...input.InputFormatOptions != null && { + InputFormatOptions: serializeAws_json1_0InputFormatOptions(input.InputFormatOptions, context) + }, + ...input.S3BucketSource != null && { + S3BucketSource: serializeAws_json1_0S3BucketSource(input.S3BucketSource, context) + }, + ...input.TableCreationParameters != null && { + TableCreationParameters: serializeAws_json1_0TableCreationParameters(input.TableCreationParameters, context) + } + }; + }; + var serializeAws_json1_0InputFormatOptions = (input, context) => { + return { + ...input.Csv != null && { Csv: serializeAws_json1_0CsvOptions(input.Csv, context) } + }; + }; + var serializeAws_json1_0Key = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0KeyConditions = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0Condition(value, context) + }; + }, {}); + }; + var serializeAws_json1_0KeyList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0Key(entry, context); + }); + }; + var serializeAws_json1_0KeysAndAttributes = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression } + }; + }; + var serializeAws_json1_0KeySchema = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0KeySchemaElement(entry, context); + }); + }; + var serializeAws_json1_0KeySchemaElement = (input, context) => { + return { + ...input.AttributeName != null && { AttributeName: input.AttributeName }, + ...input.KeyType != null && { KeyType: input.KeyType } + }; + }; + var serializeAws_json1_0KinesisStreamingDestinationInput = (input, context) => { + return { + ...input.StreamArn != null && { StreamArn: input.StreamArn }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0ListAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeValue(entry, context); + }); + }; + var serializeAws_json1_0ListBackupsInput = (input, context) => { + return { + ...input.BackupType != null && { BackupType: input.BackupType }, + ...input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.TimeRangeLowerBound != null && { + TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1e3) + }, + ...input.TimeRangeUpperBound != null && { + TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1e3) + } + }; + }; + var serializeAws_json1_0ListContributorInsightsInput = (input, context) => { + return { + ...input.MaxResults != null && { MaxResults: input.MaxResults }, + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0ListExportsInput = (input, context) => { + return { + ...input.MaxResults != null && { MaxResults: input.MaxResults }, + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.TableArn != null && { TableArn: input.TableArn } + }; + }; + var serializeAws_json1_0ListGlobalTablesInput = (input, context) => { + return { + ...input.ExclusiveStartGlobalTableName != null && { + ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName + }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0ListImportsInput = (input, context) => { + return { + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.PageSize != null && { PageSize: input.PageSize }, + ...input.TableArn != null && { TableArn: input.TableArn } + }; + }; + var serializeAws_json1_0ListTablesInput = (input, context) => { + return { + ...input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }, + ...input.Limit != null && { Limit: input.Limit } + }; + }; + var serializeAws_json1_0ListTagsOfResourceInput = (input, context) => { + return { + ...input.NextToken != null && { NextToken: input.NextToken }, + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn } + }; + }; + var serializeAws_json1_0LocalSecondaryIndex = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) } + }; + }; + var serializeAws_json1_0LocalSecondaryIndexList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0LocalSecondaryIndex(entry, context); + }); + }; + var serializeAws_json1_0MapAttributeValue = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0NonKeyAttributeNameList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0NumberSetAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0ParameterizedStatement = (input, context) => { + return { + ...input.Parameters != null && { + Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) + }, + ...input.Statement != null && { Statement: input.Statement } + }; + }; + var serializeAws_json1_0ParameterizedStatements = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ParameterizedStatement(entry, context); + }); + }; + var serializeAws_json1_0PartiQLBatchRequest = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0BatchStatementRequest(entry, context); + }); + }; + var serializeAws_json1_0PointInTimeRecoverySpecification = (input, context) => { + return { + ...input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled } + }; + }; + var serializeAws_json1_0PreparedStatementParameters = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0AttributeValue(entry, context); + }); + }; + var serializeAws_json1_0Projection = (input, context) => { + return { + ...input.NonKeyAttributes != null && { + NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context) + }, + ...input.ProjectionType != null && { ProjectionType: input.ProjectionType } + }; + }; + var serializeAws_json1_0ProvisionedThroughput = (input, context) => { + return { + ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }, + ...input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits } + }; + }; + var serializeAws_json1_0ProvisionedThroughputOverride = (input, context) => { + return { + ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits } + }; + }; + var serializeAws_json1_0Put = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0PutItemInput = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0PutItemInputAttributeMap = (input, context) => { + return Object.entries(input).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: serializeAws_json1_0AttributeValue(value, context) + }; + }, {}); + }; + var serializeAws_json1_0PutRequest = (input, context) => { + return { + ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) } + }; + }; + var serializeAws_json1_0QueryInput = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExclusiveStartKey != null && { + ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) + }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression }, + ...input.KeyConditions != null && { + KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context) + }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.QueryFilter != null && { + QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context) + }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward }, + ...input.Select != null && { Select: input.Select }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0Replica = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName } + }; + }; + var serializeAws_json1_0ReplicaAutoScalingUpdate = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.ReplicaGlobalSecondaryIndexUpdates != null && { + ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context) + }, + ...input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && { + ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context) + } + }; + }; + var serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaAutoScalingUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndex = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) + } + }; + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedReadCapacityAutoScalingUpdate != null && { + ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context) + } + }; + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaGlobalSecondaryIndex(entry, context); + }); + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && { + ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context) + }, + ...input.ProvisionedReadCapacityUnits != null && { + ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits + } + }; + }; + var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0Replica(entry, context); + }); + }; + var serializeAws_json1_0ReplicaSettingsUpdate = (input, context) => { + return { + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && { + ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context) + }, + ...input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && { + ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context) + }, + ...input.ReplicaProvisionedReadCapacityUnits != null && { + ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits + }, + ...input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass } + }; + }; + var serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaSettingsUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicationGroupUpdate = (input, context) => { + return { + ...input.Create != null && { + Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context) + }, + ...input.Delete != null && { + Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context) + }, + ...input.Update != null && { + Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context) + } + }; + }; + var serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicationGroupUpdate(entry, context); + }); + }; + var serializeAws_json1_0ReplicaUpdate = (input, context) => { + return { + ...input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }, + ...input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) } + }; + }; + var serializeAws_json1_0ReplicaUpdateList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0ReplicaUpdate(entry, context); + }); + }; + var serializeAws_json1_0RestoreTableFromBackupInput = (input, context) => { + return { + ...input.BackupArn != null && { BackupArn: input.BackupArn }, + ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, + ...input.GlobalSecondaryIndexOverride != null && { + GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) + }, + ...input.LocalSecondaryIndexOverride != null && { + LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) + }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) + }, + ...input.SSESpecificationOverride != null && { + SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) + }, + ...input.TargetTableName != null && { TargetTableName: input.TargetTableName } + }; + }; + var serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => { + return { + ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, + ...input.GlobalSecondaryIndexOverride != null && { + GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) + }, + ...input.LocalSecondaryIndexOverride != null && { + LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) + }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) + }, + ...input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1e3) }, + ...input.SSESpecificationOverride != null && { + SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) + }, + ...input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn }, + ...input.SourceTableName != null && { SourceTableName: input.SourceTableName }, + ...input.TargetTableName != null && { TargetTableName: input.TargetTableName }, + ...input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime } + }; + }; + var serializeAws_json1_0S3BucketSource = (input, context) => { + return { + ...input.S3Bucket != null && { S3Bucket: input.S3Bucket }, + ...input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }, + ...input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix } + }; + }; + var serializeAws_json1_0ScanInput = (input, context) => { + return { + ...input.AttributesToGet != null && { + AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) + }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, + ...input.ExclusiveStartKey != null && { + ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) + }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.Limit != null && { Limit: input.Limit }, + ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }, + ...input.Segment != null && { Segment: input.Segment }, + ...input.Select != null && { Select: input.Select }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.TotalSegments != null && { TotalSegments: input.TotalSegments } + }; + }; + var serializeAws_json1_0SSESpecification = (input, context) => { + return { + ...input.Enabled != null && { Enabled: input.Enabled }, + ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, + ...input.SSEType != null && { SSEType: input.SSEType } + }; + }; + var serializeAws_json1_0StreamSpecification = (input, context) => { + return { + ...input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled }, + ...input.StreamViewType != null && { StreamViewType: input.StreamViewType } + }; + }; + var serializeAws_json1_0StringSetAttributeValue = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0TableCreationParameters = (input, context) => { + return { + ...input.AttributeDefinitions != null && { + AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) + }, + ...input.BillingMode != null && { BillingMode: input.BillingMode }, + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + }, + ...input.SSESpecification != null && { + SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0Tag = (input, context) => { + return { + ...input.Key != null && { Key: input.Key }, + ...input.Value != null && { Value: input.Value } + }; + }; + var serializeAws_json1_0TagKeyList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return entry; + }); + }; + var serializeAws_json1_0TagList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0Tag(entry, context); + }); + }; + var serializeAws_json1_0TagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } + }; + }; + var serializeAws_json1_0TimeToLiveSpecification = (input, context) => { + return { + ...input.AttributeName != null && { AttributeName: input.AttributeName }, + ...input.Enabled != null && { Enabled: input.Enabled } + }; + }; + var serializeAws_json1_0TransactGetItem = (input, context) => { + return { + ...input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) } + }; + }; + var serializeAws_json1_0TransactGetItemList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0TransactGetItem(entry, context); + }); + }; + var serializeAws_json1_0TransactGetItemsInput = (input, context) => { + return { + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.TransactItems != null && { + TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context) + } + }; + }; + var serializeAws_json1_0TransactWriteItem = (input, context) => { + return { + ...input.ConditionCheck != null && { + ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context) + }, + ...input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }, + ...input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) }, + ...input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) } + }; + }; + var serializeAws_json1_0TransactWriteItemList = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0TransactWriteItem(entry, context); + }); + }; + var serializeAws_json1_0TransactWriteItemsInput = (input, context) => { + var _a; + return { + ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.TransactItems != null && { + TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context) + } + }; + }; + var serializeAws_json1_0UntagResourceInput = (input, context) => { + return { + ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, + ...input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) } + }; + }; + var serializeAws_json1_0Update = (input, context) => { + return { + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnValuesOnConditionCheckFailure != null && { + ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure + }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } + }; + }; + var serializeAws_json1_0UpdateContinuousBackupsInput = (input, context) => { + return { + ...input.PointInTimeRecoverySpecification != null && { + PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context) + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateContributorInsightsInput = (input, context) => { + return { + ...input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction }, + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateGlobalSecondaryIndexAction = (input, context) => { + return { + ...input.IndexName != null && { IndexName: input.IndexName }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + } + }; + }; + var serializeAws_json1_0UpdateGlobalTableInput = (input, context) => { + return { + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, + ...input.ReplicaUpdates != null && { + ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context) + } + }; + }; + var serializeAws_json1_0UpdateGlobalTableSettingsInput = (input, context) => { + return { + ...input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode }, + ...input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && { + GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context) + }, + ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, + ...input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { + GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context) + }, + ...input.GlobalTableProvisionedWriteCapacityUnits != null && { + GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits + }, + ...input.ReplicaSettingsUpdate != null && { + ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context) + } + }; + }; + var serializeAws_json1_0UpdateItemInput = (input, context) => { + return { + ...input.AttributeUpdates != null && { + AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context) + }, + ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, + ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, + ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, + ...input.ExpressionAttributeNames != null && { + ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) + }, + ...input.ExpressionAttributeValues != null && { + ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) + }, + ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, + ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, + ...input.ReturnItemCollectionMetrics != null && { + ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics + }, + ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, + ...input.TableName != null && { TableName: input.TableName }, + ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } + }; + }; + var serializeAws_json1_0UpdateReplicationGroupMemberAction = (input, context) => { + return { + ...input.GlobalSecondaryIndexes != null && { + GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) + }, + ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, + ...input.ProvisionedThroughputOverride != null && { + ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) + }, + ...input.RegionName != null && { RegionName: input.RegionName }, + ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } + }; + }; + var serializeAws_json1_0UpdateTableInput = (input, context) => { + return { + ...input.AttributeDefinitions != null && { + AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) + }, + ...input.BillingMode != null && { BillingMode: input.BillingMode }, + ...input.GlobalSecondaryIndexUpdates != null && { + GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context) + }, + ...input.ProvisionedThroughput != null && { + ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) + }, + ...input.ReplicaUpdates != null && { + ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context) + }, + ...input.SSESpecification != null && { + SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) + }, + ...input.StreamSpecification != null && { + StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) + }, + ...input.TableClass != null && { TableClass: input.TableClass }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateTableReplicaAutoScalingInput = (input, context) => { + return { + ...input.GlobalSecondaryIndexUpdates != null && { + GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context) + }, + ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { + ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) + }, + ...input.ReplicaUpdates != null && { + ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context) + }, + ...input.TableName != null && { TableName: input.TableName } + }; + }; + var serializeAws_json1_0UpdateTimeToLiveInput = (input, context) => { + return { + ...input.TableName != null && { TableName: input.TableName }, + ...input.TimeToLiveSpecification != null && { + TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context) + } + }; + }; + var serializeAws_json1_0WriteRequest = (input, context) => { + return { + ...input.DeleteRequest != null && { + DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context) + }, + ...input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) } + }; + }; + var serializeAws_json1_0WriteRequests = (input, context) => { + return input.filter((e) => e != null).map((entry) => { + return serializeAws_json1_0WriteRequest(entry, context); + }); + }; + var deserializeAws_json1_0ArchivalSummary = (output, context) => { + return { + ArchivalBackupArn: (0, smithy_client_1.expectString)(output.ArchivalBackupArn), + ArchivalDateTime: output.ArchivalDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ArchivalDateTime))) : void 0, + ArchivalReason: (0, smithy_client_1.expectString)(output.ArchivalReason) + }; + }; + var deserializeAws_json1_0AttributeDefinition = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + AttributeType: (0, smithy_client_1.expectString)(output.AttributeType) + }; + }; + var deserializeAws_json1_0AttributeDefinitions = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AttributeDefinition(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0AttributeMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0AttributeNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0AttributeValue = (output, context) => { + if (output.B != null) { + return { + B: context.base64Decoder(output.B) + }; + } + if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== void 0) { + return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) }; + } + if (output.BS != null) { + return { + BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context) + }; + } + if (output.L != null) { + return { + L: deserializeAws_json1_0ListAttributeValue(output.L, context) + }; + } + if (output.M != null) { + return { + M: deserializeAws_json1_0MapAttributeValue(output.M, context) + }; + } + if ((0, smithy_client_1.expectString)(output.N) !== void 0) { + return { N: (0, smithy_client_1.expectString)(output.N) }; + } + if (output.NS != null) { + return { + NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context) + }; + } + if ((0, smithy_client_1.expectBoolean)(output.NULL) !== void 0) { + return { NULL: (0, smithy_client_1.expectBoolean)(output.NULL) }; + } + if ((0, smithy_client_1.expectString)(output.S) !== void 0) { + return { S: (0, smithy_client_1.expectString)(output.S) }; + } + if (output.SS != null) { + return { + SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context) + }; + } + return { $unknown: Object.entries(output)[0] }; + }; + var deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) => { + return { + PolicyName: (0, smithy_client_1.expectString)(output.PolicyName), + TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context) : void 0 + }; + }; + var deserializeAws_json1_0AutoScalingPolicyDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AutoScalingPolicyDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) => { + return { + AutoScalingDisabled: (0, smithy_client_1.expectBoolean)(output.AutoScalingDisabled), + AutoScalingRoleArn: (0, smithy_client_1.expectString)(output.AutoScalingRoleArn), + MaximumUnits: (0, smithy_client_1.expectLong)(output.MaximumUnits), + MinimumUnits: (0, smithy_client_1.expectLong)(output.MinimumUnits), + ScalingPolicies: output.ScalingPolicies != null ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context) : void 0 + }; + }; + var deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription = (output, context) => { + return { + DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn), + ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown), + ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown), + TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue) + }; + }; + var deserializeAws_json1_0BackupDescription = (output, context) => { + return { + BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0, + SourceTableDetails: output.SourceTableDetails != null ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context) : void 0, + SourceTableFeatureDetails: output.SourceTableFeatureDetails != null ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context) : void 0 + }; + }; + var deserializeAws_json1_0BackupDetails = (output, context) => { + return { + BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), + BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, + BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, + BackupName: (0, smithy_client_1.expectString)(output.BackupName), + BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), + BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), + BackupType: (0, smithy_client_1.expectString)(output.BackupType) + }; + }; + var deserializeAws_json1_0BackupInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0BackupNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0BackupSummaries = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0BackupSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0BackupSummary = (output, context) => { + return { + BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), + BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, + BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, + BackupName: (0, smithy_client_1.expectString)(output.BackupName), + BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), + BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), + BackupType: (0, smithy_client_1.expectString)(output.BackupType), + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableId: (0, smithy_client_1.expectString)(output.TableId), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0BatchExecuteStatementOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : void 0 + }; + }; + var deserializeAws_json1_0BatchGetItemOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : void 0, + UnprocessedKeys: output.UnprocessedKeys != null ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context) : void 0 + }; + }; + var deserializeAws_json1_0BatchGetRequestMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0KeysAndAttributes(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0BatchGetResponseMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0ItemList(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0BatchStatementError = (output, context) => { + return { + Code: (0, smithy_client_1.expectString)(output.Code), + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0BatchStatementResponse = (output, context) => { + return { + Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : void 0, + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0BatchWriteItemOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0, + UnprocessedItems: output.UnprocessedItems != null ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context) : void 0 + }; + }; + var deserializeAws_json1_0BatchWriteItemRequestMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0WriteRequests(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0BillingModeSummary = (output, context) => { + return { + BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), + LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateToPayPerRequestDateTime))) : void 0 + }; + }; + var deserializeAws_json1_0BinarySetAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return context.base64Decoder(entry); + }); + return retVal; + }; + var deserializeAws_json1_0CancellationReason = (output, context) => { + return { + Code: (0, smithy_client_1.expectString)(output.Code), + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0CancellationReasonList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0CancellationReason(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0Capacity = (output, context) => { + return { + CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), + ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), + WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ConditionalCheckFailedException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ConsumedCapacity = (output, context) => { + return { + CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context) : void 0, + LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context) : void 0, + ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), + Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName), + WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ConsumedCapacity(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => { + return { + ContinuousBackupsStatus: (0, smithy_client_1.expectString)(output.ContinuousBackupsStatus), + PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0ContinuousBackupsUnavailableException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ContributorInsightsRuleList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0ContributorInsightsSummaries = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ContributorInsightsSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ContributorInsightsSummary = (output, context) => { + return { + ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0CreateBackupOutput = (output, context) => { + return { + BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0 + }; + }; + var deserializeAws_json1_0CreateGlobalTableOutput = (output, context) => { + return { + GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0CreateTableOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0CsvHeaderList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0CsvOptions = (output, context) => { + return { + Delimiter: (0, smithy_client_1.expectString)(output.Delimiter), + HeaderList: output.HeaderList != null ? deserializeAws_json1_0CsvHeaderList(output.HeaderList, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteBackupOutput = (output, context) => { + return { + BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteItemOutput = (output, context) => { + return { + Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteRequest = (output, context) => { + return { + Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : void 0 + }; + }; + var deserializeAws_json1_0DeleteTableOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeBackupOutput = (output, context) => { + return { + BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeContinuousBackupsOutput = (output, context) => { + return { + ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context) => { + return { + ContributorInsightsRuleList: output.ContributorInsightsRuleList != null ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context) : void 0, + ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), + FailureException: output.FailureException != null ? deserializeAws_json1_0FailureException(output.FailureException, context) : void 0, + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => { + return { + Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeExportOutput = (output, context) => { + return { + ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => { + return { + GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context) => { + return { + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeImportOutput = (output, context) => { + return { + ImportTableDescription: output.ImportTableDescription != null ? deserializeAws_json1_0ImportTableDescription(output.ImportTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => { + return { + KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0DescribeLimitsOutput = (output, context) => { + return { + AccountMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxReadCapacityUnits), + AccountMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxWriteCapacityUnits), + TableMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxReadCapacityUnits), + TableMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxWriteCapacityUnits) + }; + }; + var deserializeAws_json1_0DescribeTableOutput = (output, context) => { + return { + Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = (output, context) => { + return { + TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DescribeTimeToLiveOutput = (output, context) => { + return { + TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0DuplicateItemException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0Endpoint = (output, context) => { + return { + Address: (0, smithy_client_1.expectString)(output.Address), + CachePeriodInMinutes: (0, smithy_client_1.expectLong)(output.CachePeriodInMinutes) + }; + }; + var deserializeAws_json1_0Endpoints = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Endpoint(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ExecuteStatementOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, + LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ExecuteTransactionOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 + }; + }; + var deserializeAws_json1_0ExportConflictException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ExportDescription = (output, context) => { + return { + BilledSizeBytes: (0, smithy_client_1.expectLong)(output.BilledSizeBytes), + ClientToken: (0, smithy_client_1.expectString)(output.ClientToken), + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, + ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), + ExportFormat: (0, smithy_client_1.expectString)(output.ExportFormat), + ExportManifest: (0, smithy_client_1.expectString)(output.ExportManifest), + ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus), + ExportTime: output.ExportTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime))) : void 0, + FailureCode: (0, smithy_client_1.expectString)(output.FailureCode), + FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket), + S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner), + S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix), + S3SseAlgorithm: (0, smithy_client_1.expectString)(output.S3SseAlgorithm), + S3SseKmsKeyId: (0, smithy_client_1.expectString)(output.S3SseKmsKeyId), + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableId: (0, smithy_client_1.expectString)(output.TableId) + }; + }; + var deserializeAws_json1_0ExportNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ExportSummaries = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ExportSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ExportSummary = (output, context) => { + return { + ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), + ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus) + }; + }; + var deserializeAws_json1_0ExportTableToPointInTimeOutput = (output, context) => { + return { + ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0ExpressionAttributeNameMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: (0, smithy_client_1.expectString)(value) + }; + }, {}); + }; + var deserializeAws_json1_0FailureException = (output, context) => { + return { + ExceptionDescription: (0, smithy_client_1.expectString)(output.ExceptionDescription), + ExceptionName: (0, smithy_client_1.expectString)(output.ExceptionName) + }; + }; + var deserializeAws_json1_0GetItemOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalSecondaryIndex = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => { + return { + Backfilling: (0, smithy_client_1.expectBoolean)(output.Backfilling), + IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), + IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalSecondaryIndexDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalSecondaryIndexInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalSecondaryIndexList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalSecondaryIndex(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalTable = (output, context) => { + return { + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0GlobalTableDescription = (output, context) => { + return { + CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, + GlobalTableArn: (0, smithy_client_1.expectString)(output.GlobalTableArn), + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + GlobalTableStatus: (0, smithy_client_1.expectString)(output.GlobalTableStatus), + ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context) : void 0 + }; + }; + var deserializeAws_json1_0GlobalTableList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0GlobalTable(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0GlobalTableNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0IdempotentParameterMismatchException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0ImportConflictException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ImportNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ImportSummary = (output, context) => { + return { + CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn), + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, + ImportArn: (0, smithy_client_1.expectString)(output.ImportArn), + ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus), + InputFormat: (0, smithy_client_1.expectString)(output.InputFormat), + S3BucketSource: output.S3BucketSource != null ? deserializeAws_json1_0S3BucketSource(output.S3BucketSource, context) : void 0, + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn) + }; + }; + var deserializeAws_json1_0ImportSummaryList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ImportSummary(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ImportTableDescription = (output, context) => { + return { + ClientToken: (0, smithy_client_1.expectString)(output.ClientToken), + CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn), + EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, + ErrorCount: (0, smithy_client_1.expectLong)(output.ErrorCount), + FailureCode: (0, smithy_client_1.expectString)(output.FailureCode), + FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), + ImportArn: (0, smithy_client_1.expectString)(output.ImportArn), + ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus), + ImportedItemCount: (0, smithy_client_1.expectLong)(output.ImportedItemCount), + InputCompressionType: (0, smithy_client_1.expectString)(output.InputCompressionType), + InputFormat: (0, smithy_client_1.expectString)(output.InputFormat), + InputFormatOptions: output.InputFormatOptions != null ? deserializeAws_json1_0InputFormatOptions(output.InputFormatOptions, context) : void 0, + ProcessedItemCount: (0, smithy_client_1.expectLong)(output.ProcessedItemCount), + ProcessedSizeBytes: (0, smithy_client_1.expectLong)(output.ProcessedSizeBytes), + S3BucketSource: output.S3BucketSource != null ? deserializeAws_json1_0S3BucketSource(output.S3BucketSource, context) : void 0, + StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableCreationParameters: output.TableCreationParameters != null ? deserializeAws_json1_0TableCreationParameters(output.TableCreationParameters, context) : void 0, + TableId: (0, smithy_client_1.expectString)(output.TableId) + }; + }; + var deserializeAws_json1_0ImportTableOutput = (output, context) => { + return { + ImportTableDescription: output.ImportTableDescription != null ? deserializeAws_json1_0ImportTableDescription(output.ImportTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0IndexNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0InputFormatOptions = (output, context) => { + return { + Csv: output.Csv != null ? deserializeAws_json1_0CsvOptions(output.Csv, context) : void 0 + }; + }; + var deserializeAws_json1_0InternalServerError = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0InvalidEndpointException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0InvalidExportTimeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0InvalidRestoreTimeException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ItemCollectionKeyAttributeMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0ItemCollectionMetrics = (output, context) => { + return { + ItemCollectionKey: output.ItemCollectionKey != null ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context) : void 0, + SizeEstimateRangeGB: output.SizeEstimateRangeGB != null ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context) : void 0 + }; + }; + var deserializeAws_json1_0ItemCollectionMetricsMultiple = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ItemCollectionMetrics(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ItemCollectionMetricsPerTable = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0ItemCollectionMetricsMultiple(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.limitedParseDouble)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0ItemCollectionSizeLimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ItemList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AttributeMap(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ItemResponse = (output, context) => { + return { + Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 + }; + }; + var deserializeAws_json1_0ItemResponseList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ItemResponse(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0Key = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0KeyList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Key(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0KeysAndAttributes = (output, context) => { + return { + AttributesToGet: output.AttributesToGet != null ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context) : void 0, + ConsistentRead: (0, smithy_client_1.expectBoolean)(output.ConsistentRead), + ExpressionAttributeNames: output.ExpressionAttributeNames != null ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context) : void 0, + Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : void 0, + ProjectionExpression: (0, smithy_client_1.expectString)(output.ProjectionExpression) + }; + }; + var deserializeAws_json1_0KeySchema = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0KeySchemaElement(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0KeySchemaElement = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + KeyType: (0, smithy_client_1.expectString)(output.KeyType) + }; + }; + var deserializeAws_json1_0KinesisDataStreamDestination = (output, context) => { + return { + DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), + DestinationStatusDescription: (0, smithy_client_1.expectString)(output.DestinationStatusDescription), + StreamArn: (0, smithy_client_1.expectString)(output.StreamArn) + }; + }; + var deserializeAws_json1_0KinesisDataStreamDestinations = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0KinesisDataStreamDestination(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0KinesisStreamingDestinationOutput = (output, context) => { + return { + DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), + StreamArn: (0, smithy_client_1.expectString)(output.StreamArn), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0LimitExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ListAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(entry), context); + }); + return retVal; + }; + var deserializeAws_json1_0ListBackupsOutput = (output, context) => { + return { + BackupSummaries: output.BackupSummaries != null ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context) : void 0, + LastEvaluatedBackupArn: (0, smithy_client_1.expectString)(output.LastEvaluatedBackupArn) + }; + }; + var deserializeAws_json1_0ListContributorInsightsOutput = (output, context) => { + return { + ContributorInsightsSummaries: output.ContributorInsightsSummaries != null ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ListExportsOutput = (output, context) => { + return { + ExportSummaries: output.ExportSummaries != null ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => { + return { + GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : void 0, + LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName) + }; + }; + var deserializeAws_json1_0ListImportsOutput = (output, context) => { + return { + ImportSummaryList: output.ImportSummaryList != null ? deserializeAws_json1_0ImportSummaryList(output.ImportSummaryList, context) : void 0, + NextToken: (0, smithy_client_1.expectString)(output.NextToken) + }; + }; + var deserializeAws_json1_0ListTablesOutput = (output, context) => { + return { + LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName), + TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : void 0 + }; + }; + var deserializeAws_json1_0ListTagsOfResourceOutput = (output, context) => { + return { + NextToken: (0, smithy_client_1.expectString)(output.NextToken), + Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : void 0 + }; + }; + var deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) => { + return { + IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 + }; + }; + var deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0LocalSecondaryIndexDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0LocalSecondaryIndexInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 + }; + }; + var deserializeAws_json1_0MapAttributeValue = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0NonKeyAttributeNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0NumberSetAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0PartiQLBatchResponse = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0BatchStatementResponse(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => { + return { + EarliestRestorableDateTime: output.EarliestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EarliestRestorableDateTime))) : void 0, + LatestRestorableDateTime: output.LatestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestRestorableDateTime))) : void 0, + PointInTimeRecoveryStatus: (0, smithy_client_1.expectString)(output.PointInTimeRecoveryStatus) + }; + }; + var deserializeAws_json1_0PointInTimeRecoveryUnavailableException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0Projection = (output, context) => { + return { + NonKeyAttributes: output.NonKeyAttributes != null ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context) : void 0, + ProjectionType: (0, smithy_client_1.expectString)(output.ProjectionType) + }; + }; + var deserializeAws_json1_0ProvisionedThroughput = (output, context) => { + return { + ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), + WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ProvisionedThroughputDescription = (output, context) => { + return { + LastDecreaseDateTime: output.LastDecreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDecreaseDateTime))) : void 0, + LastIncreaseDateTime: output.LastIncreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastIncreaseDateTime))) : void 0, + NumberOfDecreasesToday: (0, smithy_client_1.expectLong)(output.NumberOfDecreasesToday), + ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), + WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ProvisionedThroughputExceededException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ProvisionedThroughputOverride = (output, context) => { + return { + ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits) + }; + }; + var deserializeAws_json1_0PutItemInputAttributeMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) + }; + }, {}); + }; + var deserializeAws_json1_0PutItemOutput = (output, context) => { + return { + Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0PutRequest = (output, context) => { + return { + Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : void 0 + }; + }; + var deserializeAws_json1_0QueryOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Count: (0, smithy_client_1.expectInt32)(output.Count), + Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, + LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, + ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) + }; + }; + var deserializeAws_json1_0Replica = (output, context) => { + return { + RegionName: (0, smithy_client_1.expectString)(output.RegionName) + }; + }; + var deserializeAws_json1_0ReplicaAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) => { + return { + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, + RegionName: (0, smithy_client_1.expectString)(output.RegionName), + ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, + ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus) + }; + }; + var deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaAutoScalingDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaDescription = (output, context) => { + return { + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, + KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId), + ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0, + RegionName: (0, smithy_client_1.expectString)(output.RegionName), + ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplicaInaccessibleDateTime))) : void 0, + ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), + ReplicaStatusDescription: (0, smithy_client_1.expectString)(output.ReplicaStatusDescription), + ReplicaStatusPercentProgress: (0, smithy_client_1.expectString)(output.ReplicaStatusPercentProgress), + ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), + ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => { + return { + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), + ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedReadCapacityUnits), + ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0, + ProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedWriteCapacityUnits) + }; + }; + var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Replica(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0ReplicaNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => { + return { + RegionName: (0, smithy_client_1.expectString)(output.RegionName), + ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context) : void 0, + ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context) : void 0, + ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, + ReplicaProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedReadCapacityUnits), + ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, + ReplicaProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedWriteCapacityUnits), + ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), + ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 + }; + }; + var deserializeAws_json1_0ReplicaSettingsDescriptionList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0ReplicaSettingsDescription(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0RequestLimitExceeded = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ResourceInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0ResourceNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0RestoreSummary = (output, context) => { + return { + RestoreDateTime: output.RestoreDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestoreDateTime))) : void 0, + RestoreInProgress: (0, smithy_client_1.expectBoolean)(output.RestoreInProgress), + SourceBackupArn: (0, smithy_client_1.expectString)(output.SourceBackupArn), + SourceTableArn: (0, smithy_client_1.expectString)(output.SourceTableArn) + }; + }; + var deserializeAws_json1_0RestoreTableFromBackupOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0S3BucketSource = (output, context) => { + return { + S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket), + S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner), + S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix) + }; + }; + var deserializeAws_json1_0ScanOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + Count: (0, smithy_client_1.expectInt32)(output.Count), + Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, + LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, + ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) + }; + }; + var deserializeAws_json1_0SecondaryIndexesCapacityMap = (output, context) => { + return Object.entries(output).reduce((acc, [key, value]) => { + if (value === null) { + return acc; + } + return { + ...acc, + [key]: deserializeAws_json1_0Capacity(value, context) + }; + }, {}); + }; + var deserializeAws_json1_0SourceTableDetails = (output, context) => { + return { + BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableCreationDateTime: output.TableCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TableCreationDateTime))) : void 0, + TableId: (0, smithy_client_1.expectString)(output.TableId), + TableName: (0, smithy_client_1.expectString)(output.TableName), + TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes) + }; + }; + var deserializeAws_json1_0SourceTableFeatureDetails = (output, context) => { + return { + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context) : void 0, + LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context) : void 0, + SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, + StreamDescription: output.StreamDescription != null ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context) : void 0, + TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0SSEDescription = (output, context) => { + return { + InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InaccessibleEncryptionDateTime))) : void 0, + KMSMasterKeyArn: (0, smithy_client_1.expectString)(output.KMSMasterKeyArn), + SSEType: (0, smithy_client_1.expectString)(output.SSEType), + Status: (0, smithy_client_1.expectString)(output.Status) + }; + }; + var deserializeAws_json1_0SSESpecification = (output, context) => { + return { + Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), + KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId), + SSEType: (0, smithy_client_1.expectString)(output.SSEType) + }; + }; + var deserializeAws_json1_0StreamSpecification = (output, context) => { + return { + StreamEnabled: (0, smithy_client_1.expectBoolean)(output.StreamEnabled), + StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType) + }; + }; + var deserializeAws_json1_0StringSetAttributeValue = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0TableAlreadyExistsException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0TableAutoScalingDescription = (output, context) => { + return { + Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName), + TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) + }; + }; + var deserializeAws_json1_0TableClassSummary = (output, context) => { + return { + LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, + TableClass: (0, smithy_client_1.expectString)(output.TableClass) + }; + }; + var deserializeAws_json1_0TableCreationParameters = (output, context) => { + return { + AttributeDefinitions: output.AttributeDefinitions != null ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context) : void 0, + BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexList(output.GlobalSecondaryIndexes, context) : void 0, + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0, + SSESpecification: output.SSESpecification != null ? deserializeAws_json1_0SSESpecification(output.SSESpecification, context) : void 0, + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0TableDescription = (output, context) => { + return { + ArchivalSummary: output.ArchivalSummary != null ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context) : void 0, + AttributeDefinitions: output.AttributeDefinitions != null ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context) : void 0, + BillingModeSummary: output.BillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context) : void 0, + CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, + GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, + GlobalTableVersion: (0, smithy_client_1.expectString)(output.GlobalTableVersion), + ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), + KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, + LatestStreamArn: (0, smithy_client_1.expectString)(output.LatestStreamArn), + LatestStreamLabel: (0, smithy_client_1.expectString)(output.LatestStreamLabel), + LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context) : void 0, + ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0, + Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : void 0, + RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : void 0, + SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, + StreamSpecification: output.StreamSpecification != null ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context) : void 0, + TableArn: (0, smithy_client_1.expectString)(output.TableArn), + TableClassSummary: output.TableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context) : void 0, + TableId: (0, smithy_client_1.expectString)(output.TableId), + TableName: (0, smithy_client_1.expectString)(output.TableName), + TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes), + TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) + }; + }; + var deserializeAws_json1_0TableInUseException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0TableNameList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return (0, smithy_client_1.expectString)(entry); + }); + return retVal; + }; + var deserializeAws_json1_0TableNotFoundException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0Tag = (output, context) => { + return { + Key: (0, smithy_client_1.expectString)(output.Key), + Value: (0, smithy_client_1.expectString)(output.Value) + }; + }; + var deserializeAws_json1_0TagList = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0Tag(entry, context); + }); + return retVal; + }; + var deserializeAws_json1_0TimeToLiveDescription = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + TimeToLiveStatus: (0, smithy_client_1.expectString)(output.TimeToLiveStatus) + }; + }; + var deserializeAws_json1_0TimeToLiveSpecification = (output, context) => { + return { + AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), + Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled) + }; + }; + var deserializeAws_json1_0TransactGetItemsOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 + }; + }; + var deserializeAws_json1_0TransactionCanceledException = (output, context) => { + return { + CancellationReasons: output.CancellationReasons != null ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context) : void 0, + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0TransactionConflictException = (output, context) => { + return { + message: (0, smithy_client_1.expectString)(output.message) + }; + }; + var deserializeAws_json1_0TransactionInProgressException = (output, context) => { + return { + Message: (0, smithy_client_1.expectString)(output.Message) + }; + }; + var deserializeAws_json1_0TransactWriteItemsOutput = (output, context) => { + return { + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateContinuousBackupsOutput = (output, context) => { + return { + ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateContributorInsightsOutput = (output, context) => { + return { + ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), + IndexName: (0, smithy_client_1.expectString)(output.IndexName), + TableName: (0, smithy_client_1.expectString)(output.TableName) + }; + }; + var deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => { + return { + GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateGlobalTableSettingsOutput = (output, context) => { + return { + GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), + ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateItemOutput = (output, context) => { + return { + Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, + ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, + ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateTableOutput = (output, context) => { + return { + TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = (output, context) => { + return { + TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 + }; + }; + var deserializeAws_json1_0UpdateTimeToLiveOutput = (output, context) => { + return { + TimeToLiveSpecification: output.TimeToLiveSpecification != null ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context) : void 0 + }; + }; + var deserializeAws_json1_0WriteRequest = (output, context) => { + return { + DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : void 0, + PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : void 0 + }; + }; + var deserializeAws_json1_0WriteRequests = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_json1_0WriteRequest(entry, context); + }); + return retVal; + }; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: \\"POST\\", + path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === \\"number\\") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(\\":\\") >= 0) { + cleanValue = cleanValue.split(\\":\\")[0]; + } + if (cleanValue.indexOf(\\"#\\") >= 0) { + cleanValue = cleanValue.split(\\"#\\")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data[\\"__type\\"] !== void 0) { + return sanitizeErrorCode(data[\\"__type\\"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js +var require_BatchExecuteStatementCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.BatchExecuteStatementCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var BatchExecuteStatementCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"BatchExecuteStatementCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchExecuteStatementInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchExecuteStatementOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0BatchExecuteStatementCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0BatchExecuteStatementCommand)(output, context); + } + }; + exports2.BatchExecuteStatementCommand = BatchExecuteStatementCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js +var require_BatchGetItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.BatchGetItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var BatchGetItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"BatchGetItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchGetItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchGetItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0BatchGetItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0BatchGetItemCommand)(output, context); + } + }; + exports2.BatchGetItemCommand = BatchGetItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js +var require_BatchWriteItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.BatchWriteItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var BatchWriteItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"BatchWriteItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.BatchWriteItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.BatchWriteItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0BatchWriteItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0BatchWriteItemCommand)(output, context); + } + }; + exports2.BatchWriteItemCommand = BatchWriteItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js +var require_CreateBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CreateBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var CreateBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"CreateBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0CreateBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0CreateBackupCommand)(output, context); + } + }; + exports2.CreateBackupCommand = CreateBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js +var require_CreateGlobalTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CreateGlobalTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var CreateGlobalTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"CreateGlobalTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateGlobalTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateGlobalTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0CreateGlobalTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0CreateGlobalTableCommand)(output, context); + } + }; + exports2.CreateGlobalTableCommand = CreateGlobalTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js +var require_CreateTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CreateTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var CreateTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"CreateTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.CreateTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.CreateTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0CreateTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0CreateTableCommand)(output, context); + } + }; + exports2.CreateTableCommand = CreateTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js +var require_DeleteBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DeleteBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DeleteBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DeleteBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DeleteBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteBackupCommand)(output, context); + } + }; + exports2.DeleteBackupCommand = DeleteBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js +var require_DeleteItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DeleteItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DeleteItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DeleteItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DeleteItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteItemCommand)(output, context); + } + }; + exports2.DeleteItemCommand = DeleteItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js +var require_DeleteTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DeleteTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DeleteTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DeleteTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DeleteTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DeleteTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DeleteTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteTableCommand)(output, context); + } + }; + exports2.DeleteTableCommand = DeleteTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js +var require_DescribeBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeBackupCommand)(output, context); + } + }; + exports2.DescribeBackupCommand = DescribeBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js +var require_DescribeContinuousBackupsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeContinuousBackupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeContinuousBackupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeContinuousBackupsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContinuousBackupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContinuousBackupsCommand)(output, context); + } + }; + exports2.DescribeContinuousBackupsCommand = DescribeContinuousBackupsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js +var require_DescribeContributorInsightsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeContributorInsightsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeContributorInsightsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeContributorInsightsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeContributorInsightsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeContributorInsightsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContributorInsightsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContributorInsightsCommand)(output, context); + } + }; + exports2.DescribeContributorInsightsCommand = DescribeContributorInsightsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js +var require_DescribeEndpointsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeEndpointsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeEndpointsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeEndpointsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeEndpointsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeEndpointsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeEndpointsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeEndpointsCommand)(output, context); + } + }; + exports2.DescribeEndpointsCommand = DescribeEndpointsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js +var require_DescribeExportCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeExportCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeExportCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeExportCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeExportInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeExportOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeExportCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeExportCommand)(output, context); + } + }; + exports2.DescribeExportCommand = DescribeExportCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js +var require_DescribeGlobalTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeGlobalTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeGlobalTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeGlobalTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeGlobalTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeGlobalTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableCommand)(output, context); + } + }; + exports2.DescribeGlobalTableCommand = DescribeGlobalTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js +var require_DescribeGlobalTableSettingsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeGlobalTableSettingsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeGlobalTableSettingsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeGlobalTableSettingsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(output, context); + } + }; + exports2.DescribeGlobalTableSettingsCommand = DescribeGlobalTableSettingsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeImportCommand.js +var require_DescribeImportCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeImportCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeImportCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeImportCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeImportCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeImportInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeImportOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeImportCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeImportCommand)(output, context); + } + }; + exports2.DescribeImportCommand = DescribeImportCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js +var require_DescribeKinesisStreamingDestinationCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeKinesisStreamingDestinationCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeKinesisStreamingDestinationCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(output, context); + } + }; + exports2.DescribeKinesisStreamingDestinationCommand = DescribeKinesisStreamingDestinationCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js +var require_DescribeLimitsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeLimitsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeLimitsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeLimitsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeLimitsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeLimitsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeLimitsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeLimitsCommand)(output, context); + } + }; + exports2.DescribeLimitsCommand = DescribeLimitsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js +var require_DescribeTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableCommand)(output, context); + } + }; + exports2.DescribeTableCommand = DescribeTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js +var require_DescribeTableReplicaAutoScalingCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeTableReplicaAutoScalingCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeTableReplicaAutoScalingCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(output, context); + } + }; + exports2.DescribeTableReplicaAutoScalingCommand = DescribeTableReplicaAutoScalingCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js +var require_DescribeTimeToLiveCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DescribeTimeToLiveCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DescribeTimeToLiveCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DescribeTimeToLiveCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DescribeTimeToLiveInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DescribeTimeToLiveOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTimeToLiveCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTimeToLiveCommand)(output, context); + } + }; + exports2.DescribeTimeToLiveCommand = DescribeTimeToLiveCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js +var require_DisableKinesisStreamingDestinationCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DisableKinesisStreamingDestinationCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var DisableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"DisableKinesisStreamingDestinationCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(output, context); + } + }; + exports2.DisableKinesisStreamingDestinationCommand = DisableKinesisStreamingDestinationCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js +var require_EnableKinesisStreamingDestinationCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.EnableKinesisStreamingDestinationCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var EnableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"EnableKinesisStreamingDestinationCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(output, context); + } + }; + exports2.EnableKinesisStreamingDestinationCommand = EnableKinesisStreamingDestinationCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js +var require_ExecuteStatementCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ExecuteStatementCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ExecuteStatementCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ExecuteStatementCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ExecuteStatementInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ExecuteStatementOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteStatementCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteStatementCommand)(output, context); + } + }; + exports2.ExecuteStatementCommand = ExecuteStatementCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js +var require_ExecuteTransactionCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ExecuteTransactionCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ExecuteTransactionCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ExecuteTransactionCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ExecuteTransactionInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ExecuteTransactionOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteTransactionCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteTransactionCommand)(output, context); + } + }; + exports2.ExecuteTransactionCommand = ExecuteTransactionCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js +var require_ExportTableToPointInTimeCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ExportTableToPointInTimeCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ExportTableToPointInTimeCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ExportTableToPointInTimeCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ExportTableToPointInTimeCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ExportTableToPointInTimeCommand)(output, context); + } + }; + exports2.ExportTableToPointInTimeCommand = ExportTableToPointInTimeCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js +var require_GetItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var GetItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"GetItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0GetItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0GetItemCommand)(output, context); + } + }; + exports2.GetItemCommand = GetItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ImportTableCommand.js +var require_ImportTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ImportTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ImportTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ImportTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ImportTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ImportTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ImportTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ImportTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ImportTableCommand)(output, context); + } + }; + exports2.ImportTableCommand = ImportTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js +var require_ListBackupsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListBackupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListBackupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListBackupsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListBackupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListBackupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListBackupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListBackupsCommand)(output, context); + } + }; + exports2.ListBackupsCommand = ListBackupsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js +var require_ListContributorInsightsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListContributorInsightsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListContributorInsightsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListContributorInsightsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListContributorInsightsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListContributorInsightsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListContributorInsightsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListContributorInsightsCommand)(output, context); + } + }; + exports2.ListContributorInsightsCommand = ListContributorInsightsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js +var require_ListExportsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListExportsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListExportsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListExportsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListExportsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListExportsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListExportsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListExportsCommand)(output, context); + } + }; + exports2.ListExportsCommand = ListExportsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js +var require_ListGlobalTablesCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListGlobalTablesCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListGlobalTablesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListGlobalTablesCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListGlobalTablesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListGlobalTablesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListGlobalTablesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListGlobalTablesCommand)(output, context); + } + }; + exports2.ListGlobalTablesCommand = ListGlobalTablesCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListImportsCommand.js +var require_ListImportsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListImportsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListImportsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListImportsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListImportsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListImportsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListImportsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListImportsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListImportsCommand)(output, context); + } + }; + exports2.ListImportsCommand = ListImportsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js +var require_ListTablesCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListTablesCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListTablesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListTablesCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListTablesInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListTablesOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListTablesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListTablesCommand)(output, context); + } + }; + exports2.ListTablesCommand = ListTablesCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js +var require_ListTagsOfResourceCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListTagsOfResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ListTagsOfResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ListTagsOfResourceCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListTagsOfResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListTagsOfResourceOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ListTagsOfResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ListTagsOfResourceCommand)(output, context); + } + }; + exports2.ListTagsOfResourceCommand = ListTagsOfResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js +var require_PutItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.PutItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var PutItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"PutItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.PutItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.PutItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0PutItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0PutItemCommand)(output, context); + } + }; + exports2.PutItemCommand = PutItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js +var require_QueryCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.QueryCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var QueryCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"QueryCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.QueryInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.QueryOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0QueryCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0QueryCommand)(output, context); + } + }; + exports2.QueryCommand = QueryCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js +var require_RestoreTableFromBackupCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.RestoreTableFromBackupCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var RestoreTableFromBackupCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"RestoreTableFromBackupCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RestoreTableFromBackupInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.RestoreTableFromBackupOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableFromBackupCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableFromBackupCommand)(output, context); + } + }; + exports2.RestoreTableFromBackupCommand = RestoreTableFromBackupCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js +var require_RestoreTableToPointInTimeCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.RestoreTableToPointInTimeCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var RestoreTableToPointInTimeCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"RestoreTableToPointInTimeCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableToPointInTimeCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(output, context); + } + }; + exports2.RestoreTableToPointInTimeCommand = RestoreTableToPointInTimeCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js +var require_ScanCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ScanCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var ScanCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"ScanCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ScanInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ScanOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0ScanCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0ScanCommand)(output, context); + } + }; + exports2.ScanCommand = ScanCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js +var require_TagResourceCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var TagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"TagResourceCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0TagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0TagResourceCommand)(output, context); + } + }; + exports2.TagResourceCommand = TagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js +var require_TransactGetItemsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TransactGetItemsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var TransactGetItemsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"TransactGetItemsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TransactGetItemsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.TransactGetItemsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0TransactGetItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0TransactGetItemsCommand)(output, context); + } + }; + exports2.TransactGetItemsCommand = TransactGetItemsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js +var require_TransactWriteItemsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TransactWriteItemsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var TransactWriteItemsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"TransactWriteItemsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.TransactWriteItemsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.TransactWriteItemsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0TransactWriteItemsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0TransactWriteItemsCommand)(output, context); + } + }; + exports2.TransactWriteItemsCommand = TransactWriteItemsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js +var require_UntagResourceCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UntagResourceCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UntagResourceCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UntagResourceCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UntagResourceCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UntagResourceCommand)(output, context); + } + }; + exports2.UntagResourceCommand = UntagResourceCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js +var require_UpdateContinuousBackupsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateContinuousBackupsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateContinuousBackupsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateContinuousBackupsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContinuousBackupsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContinuousBackupsCommand)(output, context); + } + }; + exports2.UpdateContinuousBackupsCommand = UpdateContinuousBackupsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js +var require_UpdateContributorInsightsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateContributorInsightsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateContributorInsightsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateContributorInsightsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateContributorInsightsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateContributorInsightsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContributorInsightsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContributorInsightsCommand)(output, context); + } + }; + exports2.UpdateContributorInsightsCommand = UpdateContributorInsightsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js +var require_UpdateGlobalTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateGlobalTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateGlobalTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateGlobalTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateGlobalTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateGlobalTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableCommand)(output, context); + } + }; + exports2.UpdateGlobalTableCommand = UpdateGlobalTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js +var require_UpdateGlobalTableSettingsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateGlobalTableSettingsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateGlobalTableSettingsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateGlobalTableSettingsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(output, context); + } + }; + exports2.UpdateGlobalTableSettingsCommand = UpdateGlobalTableSettingsCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js +var require_UpdateItemCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateItemCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateItemCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateItemCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateItemInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateItemOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateItemCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateItemCommand)(output, context); + } + }; + exports2.UpdateItemCommand = UpdateItemCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js +var require_UpdateTableCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateTableCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateTableCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateTableCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateTableInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateTableOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableCommand)(output, context); + } + }; + exports2.UpdateTableCommand = UpdateTableCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js +var require_UpdateTableReplicaAutoScalingCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateTableReplicaAutoScalingCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateTableReplicaAutoScalingCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(output, context); + } + }; + exports2.UpdateTableReplicaAutoScalingCommand = UpdateTableReplicaAutoScalingCommand; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js +var require_UpdateTimeToLiveCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UpdateTimeToLiveCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_0(); + var Aws_json1_0_1 = require_Aws_json1_0(); + var UpdateTimeToLiveCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"DynamoDBClient\\"; + const commandName = \\"UpdateTimeToLiveCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.UpdateTimeToLiveInputFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.UpdateTimeToLiveOutputFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTimeToLiveCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTimeToLiveCommand)(output, context); + } + }; + exports2.UpdateTimeToLiveCommand = UpdateTimeToLiveCommand; + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js +var require_booleanSelector = __commonJS({ + \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.booleanSelector = exports2.SelectorType = void 0; + var SelectorType; + (function(SelectorType2) { + SelectorType2[\\"ENV\\"] = \\"env\\"; + SelectorType2[\\"CONFIG\\"] = \\"shared config entry\\"; + })(SelectorType = exports2.SelectorType || (exports2.SelectorType = {})); + var booleanSelector = (obj, key, type) => { + if (!(key in obj)) + return void 0; + if (obj[key] === \\"true\\") + return true; + if (obj[key] === \\"false\\") + return false; + throw new Error(\`Cannot load \${type} \\"\${key}\\". Expected \\"true\\" or \\"false\\", got \${obj[key]}.\`); + }; + exports2.booleanSelector = booleanSelector; + } +}); + +// node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js +var require_dist_cjs5 = __commonJS({ + \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_booleanSelector(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = exports2.CONFIG_USE_DUALSTACK_ENDPOINT = exports2.ENV_USE_DUALSTACK_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs5(); + exports2.ENV_USE_DUALSTACK_ENDPOINT = \\"AWS_USE_DUALSTACK_ENDPOINT\\"; + exports2.CONFIG_USE_DUALSTACK_ENDPOINT = \\"use_dualstack_endpoint\\"; + exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = false; + exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +var require_NodeUseFipsEndpointConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_FIPS_ENDPOINT = exports2.CONFIG_USE_FIPS_ENDPOINT = exports2.ENV_USE_FIPS_ENDPOINT = void 0; + var util_config_provider_1 = require_dist_cjs5(); + exports2.ENV_USE_FIPS_ENDPOINT = \\"AWS_USE_FIPS_ENDPOINT\\"; + exports2.CONFIG_USE_FIPS_ENDPOINT = \\"use_fips_endpoint\\"; + exports2.DEFAULT_USE_FIPS_ENDPOINT = false; + exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), + configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), + default: false + }; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js +var require_normalizeProvider = __commonJS({ + \\"node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.normalizeProvider = void 0; + var normalizeProvider = (input) => { + if (typeof input === \\"function\\") + return input; + const promisified = Promise.resolve(input); + return () => promisified; + }; + exports2.normalizeProvider = normalizeProvider; + } +}); + +// node_modules/@aws-sdk/util-middleware/dist-cjs/index.js +var require_dist_cjs6 = __commonJS({ + \\"node_modules/@aws-sdk/util-middleware/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_normalizeProvider(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +var require_resolveCustomEndpointsConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveCustomEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs6(); + var resolveCustomEndpointsConfig = (input) => { + var _a; + const { endpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint), + isCustomEndpoint: true, + useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint) + }; + }; + exports2.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +var require_getEndpointFromRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getEndpointFromRegion = void 0; + var getEndpointFromRegion = async (input) => { + var _a; + const { tls = true } = input; + const region = await input.region(); + const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); + if (!dnsHostRegex.test(region)) { + throw new Error(\\"Invalid region in client config\\"); + } + const useDualstackEndpoint = await input.useDualstackEndpoint(); + const useFipsEndpoint = await input.useFipsEndpoint(); + const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; + if (!hostname) { + throw new Error(\\"Cannot resolve hostname from client config\\"); + } + return input.urlParser(\`\${tls ? \\"https:\\" : \\"http:\\"}//\${hostname}\`); + }; + exports2.getEndpointFromRegion = getEndpointFromRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +var require_resolveEndpointsConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveEndpointsConfig = void 0; + var util_middleware_1 = require_dist_cjs6(); + var getEndpointFromRegion_1 = require_getEndpointFromRegion(); + var resolveEndpointsConfig = (input) => { + var _a; + const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); + const { endpoint, useFipsEndpoint, urlParser } = input; + return { + ...input, + tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, + endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), + isCustomEndpoint: endpoint ? true : false, + useDualstackEndpoint + }; + }; + exports2.resolveEndpointsConfig = resolveEndpointsConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js +var require_endpointsConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports2); + tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports2); + tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports2); + tslib_1.__exportStar(require_resolveEndpointsConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js +var require_config = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_REGION_CONFIG_FILE_OPTIONS = exports2.NODE_REGION_CONFIG_OPTIONS = exports2.REGION_INI_NAME = exports2.REGION_ENV_NAME = void 0; + exports2.REGION_ENV_NAME = \\"AWS_REGION\\"; + exports2.REGION_INI_NAME = \\"region\\"; + exports2.NODE_REGION_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.REGION_ENV_NAME], + configFileSelector: (profile) => profile[exports2.REGION_INI_NAME], + default: () => { + throw new Error(\\"Region is missing\\"); + } + }; + exports2.NODE_REGION_CONFIG_FILE_OPTIONS = { + preferredFile: \\"credentials\\" + }; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +var require_isFipsRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isFipsRegion = void 0; + var isFipsRegion = (region) => typeof region === \\"string\\" && (region.startsWith(\\"fips-\\") || region.endsWith(\\"-fips\\")); + exports2.isFipsRegion = isFipsRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js +var require_getRealRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRealRegion = void 0; + var isFipsRegion_1 = require_isFipsRegion(); + var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? [\\"fips-aws-global\\", \\"aws-fips\\"].includes(region) ? \\"us-east-1\\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \\"\\") : region; + exports2.getRealRegion = getRealRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +var require_resolveRegionConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveRegionConfig = void 0; + var getRealRegion_1 = require_getRealRegion(); + var isFipsRegion_1 = require_isFipsRegion(); + var resolveRegionConfig = (input) => { + const { region, useFipsEndpoint } = input; + if (!region) { + throw new Error(\\"Region is missing\\"); + } + return { + ...input, + region: async () => { + if (typeof region === \\"string\\") { + return (0, getRealRegion_1.getRealRegion)(region); + } + const providedRegion = await region(); + return (0, getRealRegion_1.getRealRegion)(providedRegion); + }, + useFipsEndpoint: async () => { + const providedRegion = typeof region === \\"string\\" ? region : await region(); + if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { + return true; + } + return typeof useFipsEndpoint === \\"boolean\\" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); + } + }; + }; + exports2.resolveRegionConfig = resolveRegionConfig; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js +var require_regionConfig = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_config(), exports2); + tslib_1.__exportStar(require_resolveRegionConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js +var require_PartitionHash = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js +var require_RegionHash = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +var require_getHostnameFromVariants = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getHostnameFromVariants = void 0; + var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { + var _a; + return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes(\\"fips\\") && useDualstackEndpoint === tags.includes(\\"dualstack\\"))) === null || _a === void 0 ? void 0 : _a.hostname; + }; + exports2.getHostnameFromVariants = getHostnameFromVariants; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +var require_getResolvedHostname = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getResolvedHostname = void 0; + var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace(\\"{region}\\", resolvedRegion) : void 0; + exports2.getResolvedHostname = getResolvedHostname; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +var require_getResolvedPartition = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getResolvedPartition = void 0; + var getResolvedPartition = (region, { partitionHash }) => { + var _a; + return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : \\"aws\\"; + }; + exports2.getResolvedPartition = getResolvedPartition; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +var require_getResolvedSigningRegion = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getResolvedSigningRegion = void 0; + var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { + if (signingRegion) { + return signingRegion; + } else if (useFipsEndpoint) { + const regionRegexJs = regionRegex.replace(\\"\\\\\\\\\\\\\\\\\\", \\"\\\\\\\\\\").replace(/^\\\\^/g, \\"\\\\\\\\.\\").replace(/\\\\$$/g, \\"\\\\\\\\.\\"); + const regionRegexmatchArray = hostname.match(regionRegexJs); + if (regionRegexmatchArray) { + return regionRegexmatchArray[0].slice(1, -1); + } + } + }; + exports2.getResolvedSigningRegion = getResolvedSigningRegion; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +var require_getRegionInfo = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRegionInfo = void 0; + var getHostnameFromVariants_1 = require_getHostnameFromVariants(); + var getResolvedHostname_1 = require_getResolvedHostname(); + var getResolvedPartition_1 = require_getResolvedPartition(); + var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); + var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { + var _a, _b, _c, _d, _e, _f; + const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); + const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; + const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; + const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); + const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); + const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); + if (hostname === void 0) { + throw new Error(\`Endpoint resolution failed for: \${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}\`); + } + const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { + signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, + regionRegex: partitionHash[partition].regionRegex, + useFipsEndpoint + }); + return { + partition, + signingService, + hostname, + ...signingRegion && { signingRegion }, + ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { + signingService: regionHash[resolvedRegion].signingService + } + }; + }; + exports2.getRegionInfo = getRegionInfo; + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js +var require_regionInfo = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_PartitionHash(), exports2); + tslib_1.__exportStar(require_RegionHash(), exports2); + tslib_1.__exportStar(require_getRegionInfo(), exports2); + } +}); + +// node_modules/@aws-sdk/config-resolver/dist-cjs/index.js +var require_dist_cjs7 = __commonJS({ + \\"node_modules/@aws-sdk/config-resolver/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_endpointsConfig(), exports2); + tslib_1.__exportStar(require_regionConfig(), exports2); + tslib_1.__exportStar(require_regionInfo(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js +var require_dist_cjs8 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getContentLengthPlugin = exports2.contentLengthMiddlewareOptions = exports2.contentLengthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var CONTENT_LENGTH_HEADER = \\"content-length\\"; + function contentLengthMiddleware(bodyLengthChecker) { + return (next) => async (args) => { + const request = args.request; + if (protocol_http_1.HttpRequest.isInstance(request)) { + const { body, headers } = request; + if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { + try { + const length = bodyLengthChecker(body); + request.headers = { + ...request.headers, + [CONTENT_LENGTH_HEADER]: String(length) + }; + } catch (error) { + } + } + } + return next({ + ...args, + request + }); + }; + } + exports2.contentLengthMiddleware = contentLengthMiddleware; + exports2.contentLengthMiddlewareOptions = { + step: \\"build\\", + tags: [\\"SET_CONTENT_LENGTH\\", \\"CONTENT_LENGTH\\"], + name: \\"contentLengthMiddleware\\", + override: true + }; + var getContentLengthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports2.contentLengthMiddlewareOptions); + } + }); + exports2.getContentLengthPlugin = getContentLengthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js +var require_configurations = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = void 0; + var ENV_ENDPOINT_DISCOVERY = [\\"AWS_ENABLE_ENDPOINT_DISCOVERY\\", \\"AWS_ENDPOINT_DISCOVERY_ENABLED\\"]; + var CONFIG_ENDPOINT_DISCOVERY = \\"endpoint_discovery_enabled\\"; + var isFalsy = (value) => [\\"false\\", \\"0\\"].indexOf(value) >= 0; + exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + for (let i = 0; i < ENV_ENDPOINT_DISCOVERY.length; i++) { + const envKey = ENV_ENDPOINT_DISCOVERY[i]; + if (envKey in env) { + const value = env[envKey]; + if (value === \\"\\") { + throw Error(\`Environment variable \${envKey} can't be empty of undefined, got \\"\${value}\\"\`); + } + return !isFalsy(value); + } + } + }, + configFileSelector: (profile) => { + if (CONFIG_ENDPOINT_DISCOVERY in profile) { + const value = profile[CONFIG_ENDPOINT_DISCOVERY]; + if (value === void 0) { + throw Error(\`Shared config entry \${CONFIG_ENDPOINT_DISCOVERY} can't be undefined, got \\"\${value}\\"\`); + } + return !isFalsy(value); + } + }, + default: void 0 + }; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js +var require_getCacheKey = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCacheKey = void 0; + var getCacheKey = async (commandName, config, options) => { + const { accessKeyId } = await config.credentials(); + const { identifiers } = options; + return JSON.stringify({ + ...accessKeyId && { accessKeyId }, + ...identifiers && { + commandName, + identifiers: Object.entries(identifiers).sort().reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}) + } + }); + }; + exports2.getCacheKey = getCacheKey; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js +var require_updateDiscoveredEndpointInCache = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.updateDiscoveredEndpointInCache = void 0; + var requestQueue = {}; + var updateDiscoveredEndpointInCache = async (config, options) => new Promise((resolve, reject) => { + const { endpointCache } = config; + const { cacheKey, commandName, identifiers } = options; + const endpoints = endpointCache.get(cacheKey); + if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { + if (options.isDiscoveredEndpointRequired) { + if (!requestQueue[cacheKey]) + requestQueue[cacheKey] = []; + requestQueue[cacheKey].push({ resolve, reject }); + } else { + resolve(); + } + } else if (endpoints && endpoints.length > 0) { + resolve(); + } else { + const placeholderEndpoints = [{ Address: \\"\\", CachePeriodInMinutes: 1 }]; + endpointCache.set(cacheKey, placeholderEndpoints); + const command = new options.endpointDiscoveryCommandCtor({ + Operation: commandName.slice(0, -7), + Identifiers: identifiers + }); + const handler = command.resolveMiddleware(options.clientStack, config, options.options); + handler(command).then((result) => { + endpointCache.set(cacheKey, result.output.Endpoints); + if (requestQueue[cacheKey]) { + requestQueue[cacheKey].forEach(({ resolve: resolve2 }) => { + resolve2(); + }); + delete requestQueue[cacheKey]; + } + resolve(); + }).catch((error) => { + var _a; + if (error.name === \\"InvalidEndpointException\\" || ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 421) { + endpointCache.delete(cacheKey); + } + const errorToThrow = Object.assign(new Error(\`The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.\`), { reason: error }); + if (requestQueue[cacheKey]) { + requestQueue[cacheKey].forEach(({ reject: reject2 }) => { + reject2(errorToThrow); + }); + delete requestQueue[cacheKey]; + } + if (options.isDiscoveredEndpointRequired) { + reject(errorToThrow); + } else { + endpointCache.set(cacheKey, placeholderEndpoints); + resolve(); + } + }); + } + }); + exports2.updateDiscoveredEndpointInCache = updateDiscoveredEndpointInCache; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js +var require_endpointDiscoveryMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.endpointDiscoveryMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getCacheKey_1 = require_getCacheKey(); + var updateDiscoveredEndpointInCache_1 = require_updateDiscoveredEndpointInCache(); + var endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => { + if (config.isCustomEndpoint) { + if (config.isClientEndpointDiscoveryEnabled) { + throw new Error(\`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.\`); + } + return next(args); + } + const { endpointDiscoveryCommandCtor } = config; + const { isDiscoveredEndpointRequired, identifiers } = middlewareConfig; + const { clientName, commandName } = context; + const isEndpointDiscoveryEnabled = await config.endpointDiscoveryEnabled(); + const cacheKey = await (0, getCacheKey_1.getCacheKey)(commandName, config, { identifiers }); + if (isDiscoveredEndpointRequired) { + if (isEndpointDiscoveryEnabled === false) { + throw new Error(\`Endpoint Discovery is disabled but \${commandName} on \${clientName} requires it. Please check your configurations.\`); + } + await (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { + ...middlewareConfig, + commandName, + cacheKey, + endpointDiscoveryCommandCtor + }); + } else if (isEndpointDiscoveryEnabled) { + (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { + ...middlewareConfig, + commandName, + cacheKey, + endpointDiscoveryCommandCtor + }); + } + const { request } = args; + if (cacheKey && protocol_http_1.HttpRequest.isInstance(request)) { + const endpoint = config.endpointCache.getEndpoint(cacheKey); + if (endpoint) { + request.hostname = endpoint; + } + } + return next(args); + }; + exports2.endpointDiscoveryMiddleware = endpointDiscoveryMiddleware; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js +var require_getEndpointDiscoveryPlugin = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getEndpointDiscoveryOptionalPlugin = exports2.getEndpointDiscoveryRequiredPlugin = exports2.getEndpointDiscoveryPlugin = exports2.endpointDiscoveryMiddlewareOptions = void 0; + var endpointDiscoveryMiddleware_1 = require_endpointDiscoveryMiddleware(); + exports2.endpointDiscoveryMiddlewareOptions = { + name: \\"endpointDiscoveryMiddleware\\", + step: \\"build\\", + tags: [\\"ENDPOINT_DISCOVERY\\"], + override: true + }; + var getEndpointDiscoveryPlugin = (pluginConfig, middlewareConfig) => ({ + applyToStack: (commandStack) => { + commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, middlewareConfig), exports2.endpointDiscoveryMiddlewareOptions); + } + }); + exports2.getEndpointDiscoveryPlugin = getEndpointDiscoveryPlugin; + var getEndpointDiscoveryRequiredPlugin = (pluginConfig, middlewareConfig) => ({ + applyToStack: (commandStack) => { + commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: true }), exports2.endpointDiscoveryMiddlewareOptions); + } + }); + exports2.getEndpointDiscoveryRequiredPlugin = getEndpointDiscoveryRequiredPlugin; + var getEndpointDiscoveryOptionalPlugin = (pluginConfig, middlewareConfig) => ({ + applyToStack: (commandStack) => { + commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: false }), exports2.endpointDiscoveryMiddlewareOptions); + } + }); + exports2.getEndpointDiscoveryOptionalPlugin = getEndpointDiscoveryOptionalPlugin; + } +}); + +// node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js +var require_Endpoint = __commonJS({ + \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/obliterator/iterator.js +var require_iterator = __commonJS({ + \\"node_modules/obliterator/iterator.js\\"(exports2, module2) { + function Iterator(next) { + Object.defineProperty(this, \\"_next\\", { + writable: false, + enumerable: false, + value: next + }); + this.done = false; + } + Iterator.prototype.next = function() { + if (this.done) + return { done: true }; + var step = this._next(); + if (step.done) + this.done = true; + return step; + }; + if (typeof Symbol !== \\"undefined\\") + Iterator.prototype[Symbol.iterator] = function() { + return this; + }; + Iterator.of = function() { + var args = arguments, l = args.length, i = 0; + return new Iterator(function() { + if (i >= l) + return { done: true }; + return { done: false, value: args[i++] }; + }); + }; + Iterator.empty = function() { + var iterator = new Iterator(null); + iterator.done = true; + return iterator; + }; + Iterator.is = function(value) { + if (value instanceof Iterator) + return true; + return typeof value === \\"object\\" && value !== null && typeof value.next === \\"function\\"; + }; + module2.exports = Iterator; + } +}); + +// node_modules/obliterator/foreach.js +var require_foreach = __commonJS({ + \\"node_modules/obliterator/foreach.js\\"(exports2, module2) { + var ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== \\"undefined\\"; + var SYMBOL_SUPPORT = typeof Symbol !== \\"undefined\\"; + function forEach(iterable, callback) { + var iterator, k, i, l, s; + if (!iterable) + throw new Error(\\"obliterator/forEach: invalid iterable.\\"); + if (typeof callback !== \\"function\\") + throw new Error(\\"obliterator/forEach: expecting a callback.\\"); + if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { + for (i = 0, l = iterable.length; i < l; i++) + callback(iterable[i], i); + return; + } + if (typeof iterable.forEach === \\"function\\") { + iterable.forEach(callback); + return; + } + if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { + iterable = iterable[Symbol.iterator](); + } + if (typeof iterable.next === \\"function\\") { + iterator = iterable; + i = 0; + while (s = iterator.next(), s.done !== true) { + callback(s.value, i); + i++; + } + return; + } + for (k in iterable) { + if (iterable.hasOwnProperty(k)) { + callback(iterable[k], k); + } + } + return; + } + forEach.forEachWithNullKeys = function(iterable, callback) { + var iterator, k, i, l, s; + if (!iterable) + throw new Error(\\"obliterator/forEachWithNullKeys: invalid iterable.\\"); + if (typeof callback !== \\"function\\") + throw new Error(\\"obliterator/forEachWithNullKeys: expecting a callback.\\"); + if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { + for (i = 0, l = iterable.length; i < l; i++) + callback(iterable[i], null); + return; + } + if (iterable instanceof Set) { + iterable.forEach(function(value) { + callback(value, null); + }); + return; + } + if (typeof iterable.forEach === \\"function\\") { + iterable.forEach(callback); + return; + } + if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { + iterable = iterable[Symbol.iterator](); + } + if (typeof iterable.next === \\"function\\") { + iterator = iterable; + i = 0; + while (s = iterator.next(), s.done !== true) { + callback(s.value, null); + i++; + } + return; + } + for (k in iterable) { + if (iterable.hasOwnProperty(k)) { + callback(iterable[k], k); + } + } + return; + }; + module2.exports = forEach; + } +}); + +// node_modules/mnemonist/utils/typed-arrays.js +var require_typed_arrays = __commonJS({ + \\"node_modules/mnemonist/utils/typed-arrays.js\\"(exports2) { + var MAX_8BIT_INTEGER = Math.pow(2, 8) - 1; + var MAX_16BIT_INTEGER = Math.pow(2, 16) - 1; + var MAX_32BIT_INTEGER = Math.pow(2, 32) - 1; + var MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1; + var MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1; + var MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1; + exports2.getPointerArray = function(size) { + var maxIndex = size - 1; + if (maxIndex <= MAX_8BIT_INTEGER) + return Uint8Array; + if (maxIndex <= MAX_16BIT_INTEGER) + return Uint16Array; + if (maxIndex <= MAX_32BIT_INTEGER) + return Uint32Array; + return Float64Array; + }; + exports2.getSignedPointerArray = function(size) { + var maxIndex = size - 1; + if (maxIndex <= MAX_SIGNED_8BIT_INTEGER) + return Int8Array; + if (maxIndex <= MAX_SIGNED_16BIT_INTEGER) + return Int16Array; + if (maxIndex <= MAX_SIGNED_32BIT_INTEGER) + return Int32Array; + return Float64Array; + }; + exports2.getNumberType = function(value) { + if (value === (value | 0)) { + if (Math.sign(value) === -1) { + if (value <= 127 && value >= -128) + return Int8Array; + if (value <= 32767 && value >= -32768) + return Int16Array; + return Int32Array; + } else { + if (value <= 255) + return Uint8Array; + if (value <= 65535) + return Uint16Array; + return Uint32Array; + } + } + return Float64Array; + }; + var TYPE_PRIORITY = { + Uint8Array: 1, + Int8Array: 2, + Uint16Array: 3, + Int16Array: 4, + Uint32Array: 5, + Int32Array: 6, + Float32Array: 7, + Float64Array: 8 + }; + exports2.getMinimalRepresentation = function(array, getter) { + var maxType = null, maxPriority = 0, p, t, v, i, l; + for (i = 0, l = array.length; i < l; i++) { + v = getter ? getter(array[i]) : array[i]; + t = exports2.getNumberType(v); + p = TYPE_PRIORITY[t.name]; + if (p > maxPriority) { + maxPriority = p; + maxType = t; + } + } + return maxType; + }; + exports2.isTypedArray = function(value) { + return typeof ArrayBuffer !== \\"undefined\\" && ArrayBuffer.isView(value); + }; + exports2.concat = function() { + var length = 0, i, o, l; + for (i = 0, l = arguments.length; i < l; i++) + length += arguments[i].length; + var array = new arguments[0].constructor(length); + for (i = 0, o = 0; i < l; i++) { + array.set(arguments[i], o); + o += arguments[i].length; + } + return array; + }; + exports2.indices = function(length) { + var PointerArray = exports2.getPointerArray(length); + var array = new PointerArray(length); + for (var i = 0; i < length; i++) + array[i] = i; + return array; + }; + } +}); + +// node_modules/mnemonist/utils/iterables.js +var require_iterables = __commonJS({ + \\"node_modules/mnemonist/utils/iterables.js\\"(exports2) { + var forEach = require_foreach(); + var typed = require_typed_arrays(); + function isArrayLike(target) { + return Array.isArray(target) || typed.isTypedArray(target); + } + function guessLength(target) { + if (typeof target.length === \\"number\\") + return target.length; + if (typeof target.size === \\"number\\") + return target.size; + return; + } + function toArray(target) { + var l = guessLength(target); + var array = typeof l === \\"number\\" ? new Array(l) : []; + var i = 0; + forEach(target, function(value) { + array[i++] = value; + }); + return array; + } + function toArrayWithIndices(target) { + var l = guessLength(target); + var IndexArray = typeof l === \\"number\\" ? typed.getPointerArray(l) : Array; + var array = typeof l === \\"number\\" ? new Array(l) : []; + var indices = typeof l === \\"number\\" ? new IndexArray(l) : []; + var i = 0; + forEach(target, function(value) { + array[i] = value; + indices[i] = i++; + }); + return [array, indices]; + } + exports2.isArrayLike = isArrayLike; + exports2.guessLength = guessLength; + exports2.toArray = toArray; + exports2.toArrayWithIndices = toArrayWithIndices; + } +}); + +// node_modules/mnemonist/lru-cache.js +var require_lru_cache = __commonJS({ + \\"node_modules/mnemonist/lru-cache.js\\"(exports2, module2) { + var Iterator = require_iterator(); + var forEach = require_foreach(); + var typed = require_typed_arrays(); + var iterables = require_iterables(); + function LRUCache(Keys, Values, capacity) { + if (arguments.length < 2) { + capacity = Keys; + Keys = null; + Values = null; + } + this.capacity = capacity; + if (typeof this.capacity !== \\"number\\" || this.capacity <= 0) + throw new Error(\\"mnemonist/lru-cache: capacity should be positive number.\\"); + var PointerArray = typed.getPointerArray(capacity); + this.forward = new PointerArray(capacity); + this.backward = new PointerArray(capacity); + this.K = typeof Keys === \\"function\\" ? new Keys(capacity) : new Array(capacity); + this.V = typeof Values === \\"function\\" ? new Values(capacity) : new Array(capacity); + this.size = 0; + this.head = 0; + this.tail = 0; + this.items = {}; + } + LRUCache.prototype.clear = function() { + this.size = 0; + this.head = 0; + this.tail = 0; + this.items = {}; + }; + LRUCache.prototype.splayOnTop = function(pointer) { + var oldHead = this.head; + if (this.head === pointer) + return this; + var previous = this.backward[pointer], next = this.forward[pointer]; + if (this.tail === pointer) { + this.tail = previous; + } else { + this.backward[next] = previous; + } + this.forward[previous] = next; + this.backward[oldHead] = pointer; + this.head = pointer; + this.forward[pointer] = oldHead; + return this; + }; + LRUCache.prototype.set = function(key, value) { + var pointer = this.items[key]; + if (typeof pointer !== \\"undefined\\") { + this.splayOnTop(pointer); + this.V[pointer] = value; + return; + } + if (this.size < this.capacity) { + pointer = this.size++; + } else { + pointer = this.tail; + this.tail = this.backward[pointer]; + delete this.items[this.K[pointer]]; + } + this.items[key] = pointer; + this.K[pointer] = key; + this.V[pointer] = value; + this.forward[pointer] = this.head; + this.backward[this.head] = pointer; + this.head = pointer; + }; + LRUCache.prototype.setpop = function(key, value) { + var oldValue = null; + var oldKey = null; + var pointer = this.items[key]; + if (typeof pointer !== \\"undefined\\") { + this.splayOnTop(pointer); + oldValue = this.V[pointer]; + this.V[pointer] = value; + return { evicted: false, key, value: oldValue }; + } + if (this.size < this.capacity) { + pointer = this.size++; + } else { + pointer = this.tail; + this.tail = this.backward[pointer]; + oldValue = this.V[pointer]; + oldKey = this.K[pointer]; + delete this.items[this.K[pointer]]; + } + this.items[key] = pointer; + this.K[pointer] = key; + this.V[pointer] = value; + this.forward[pointer] = this.head; + this.backward[this.head] = pointer; + this.head = pointer; + if (oldKey) { + return { evicted: true, key: oldKey, value: oldValue }; + } else { + return null; + } + }; + LRUCache.prototype.has = function(key) { + return key in this.items; + }; + LRUCache.prototype.get = function(key) { + var pointer = this.items[key]; + if (typeof pointer === \\"undefined\\") + return; + this.splayOnTop(pointer); + return this.V[pointer]; + }; + LRUCache.prototype.peek = function(key) { + var pointer = this.items[key]; + if (typeof pointer === \\"undefined\\") + return; + return this.V[pointer]; + }; + LRUCache.prototype.forEach = function(callback, scope) { + scope = arguments.length > 1 ? scope : this; + var i = 0, l = this.size; + var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; + while (i < l) { + callback.call(scope, values[pointer], keys[pointer], this); + pointer = forward[pointer]; + i++; + } + }; + LRUCache.prototype.keys = function() { + var i = 0, l = this.size; + var pointer = this.head, keys = this.K, forward = this.forward; + return new Iterator(function() { + if (i >= l) + return { done: true }; + var key = keys[pointer]; + i++; + if (i < l) + pointer = forward[pointer]; + return { + done: false, + value: key + }; + }); + }; + LRUCache.prototype.values = function() { + var i = 0, l = this.size; + var pointer = this.head, values = this.V, forward = this.forward; + return new Iterator(function() { + if (i >= l) + return { done: true }; + var value = values[pointer]; + i++; + if (i < l) + pointer = forward[pointer]; + return { + done: false, + value + }; + }); + }; + LRUCache.prototype.entries = function() { + var i = 0, l = this.size; + var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; + return new Iterator(function() { + if (i >= l) + return { done: true }; + var key = keys[pointer], value = values[pointer]; + i++; + if (i < l) + pointer = forward[pointer]; + return { + done: false, + value: [key, value] + }; + }); + }; + if (typeof Symbol !== \\"undefined\\") + LRUCache.prototype[Symbol.iterator] = LRUCache.prototype.entries; + LRUCache.prototype.inspect = function() { + var proxy = /* @__PURE__ */ new Map(); + var iterator = this.entries(), step; + while (step = iterator.next(), !step.done) + proxy.set(step.value[0], step.value[1]); + Object.defineProperty(proxy, \\"constructor\\", { + value: LRUCache, + enumerable: false + }); + return proxy; + }; + if (typeof Symbol !== \\"undefined\\") + LRUCache.prototype[Symbol.for(\\"nodejs.util.inspect.custom\\")] = LRUCache.prototype.inspect; + LRUCache.from = function(iterable, Keys, Values, capacity) { + if (arguments.length < 2) { + capacity = iterables.guessLength(iterable); + if (typeof capacity !== \\"number\\") + throw new Error(\\"mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.\\"); + } else if (arguments.length === 2) { + capacity = Keys; + Keys = null; + Values = null; + } + var cache = new LRUCache(Keys, Values, capacity); + forEach(iterable, function(value, key) { + cache.set(key, value); + }); + return cache; + }; + module2.exports = LRUCache; + } +}); + +// node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js +var require_EndpointCache = __commonJS({ + \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.EndpointCache = void 0; + var tslib_1 = require_tslib(); + var lru_cache_1 = tslib_1.__importDefault(require_lru_cache()); + var EndpointCache = class { + constructor(capacity) { + this.cache = new lru_cache_1.default(capacity); + } + getEndpoint(key) { + const endpointsWithExpiry = this.get(key); + if (!endpointsWithExpiry || endpointsWithExpiry.length === 0) { + return void 0; + } + const endpoints = endpointsWithExpiry.map((endpoint) => endpoint.Address); + return endpoints[Math.floor(Math.random() * endpoints.length)]; + } + get(key) { + if (!this.has(key)) { + return; + } + const value = this.cache.get(key); + if (!value) { + return; + } + const now = Date.now(); + const endpointsWithExpiry = value.filter((endpoint) => now < endpoint.Expires); + if (endpointsWithExpiry.length === 0) { + this.delete(key); + return void 0; + } + return endpointsWithExpiry; + } + set(key, endpoints) { + const now = Date.now(); + this.cache.set(key, endpoints.map(({ Address, CachePeriodInMinutes }) => ({ + Address, + Expires: now + CachePeriodInMinutes * 60 * 1e3 + }))); + } + delete(key) { + this.cache.set(key, []); + } + has(key) { + if (!this.cache.has(key)) { + return false; + } + const endpoints = this.cache.peek(key); + if (!endpoints) { + return false; + } + return endpoints.length > 0; + } + clear() { + this.cache.clear(); + } + }; + exports2.EndpointCache = EndpointCache; + } +}); + +// node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js +var require_dist_cjs9 = __commonJS({ + \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Endpoint(), exports2); + tslib_1.__exportStar(require_EndpointCache(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js +var require_resolveEndpointDiscoveryConfig = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveEndpointDiscoveryConfig = void 0; + var endpoint_cache_1 = require_dist_cjs9(); + var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => { + var _a; + return { + ...input, + endpointDiscoveryCommandCtor, + endpointCache: new endpoint_cache_1.EndpointCache((_a = input.endpointCacheSize) !== null && _a !== void 0 ? _a : 1e3), + endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 ? () => Promise.resolve(input.endpointDiscoveryEnabled) : input.endpointDiscoveryEnabledProvider, + isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 + }; + }; + exports2.resolveEndpointDiscoveryConfig = resolveEndpointDiscoveryConfig; + } +}); + +// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js +var require_dist_cjs10 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations(), exports2); + tslib_1.__exportStar(require_getEndpointDiscoveryPlugin(), exports2); + tslib_1.__exportStar(require_resolveEndpointDiscoveryConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +var require_dist_cjs11 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getHostHeaderPlugin = exports2.hostHeaderMiddlewareOptions = exports2.hostHeaderMiddleware = exports2.resolveHostHeaderConfig = void 0; + var protocol_http_1 = require_dist_cjs4(); + function resolveHostHeaderConfig(input) { + return input; + } + exports2.resolveHostHeaderConfig = resolveHostHeaderConfig; + var hostHeaderMiddleware = (options) => (next) => async (args) => { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const { request } = args; + const { handlerProtocol = \\"\\" } = options.requestHandler.metadata || {}; + if (handlerProtocol.indexOf(\\"h2\\") >= 0 && !request.headers[\\":authority\\"]) { + delete request.headers[\\"host\\"]; + request.headers[\\":authority\\"] = \\"\\"; + } else if (!request.headers[\\"host\\"]) { + request.headers[\\"host\\"] = request.hostname; + } + return next(args); + }; + exports2.hostHeaderMiddleware = hostHeaderMiddleware; + exports2.hostHeaderMiddlewareOptions = { + name: \\"hostHeaderMiddleware\\", + step: \\"build\\", + priority: \\"low\\", + tags: [\\"HOST\\"], + override: true + }; + var getHostHeaderPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.hostHeaderMiddleware)(options), exports2.hostHeaderMiddlewareOptions); + } + }); + exports2.getHostHeaderPlugin = getHostHeaderPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +var require_loggerMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getLoggerPlugin = exports2.loggerMiddlewareOptions = exports2.loggerMiddleware = void 0; + var loggerMiddleware = () => (next, context) => async (args) => { + const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; + const response = await next(args); + if (!logger) { + return response; + } + if (typeof logger.info === \\"function\\") { + const { $metadata, ...outputWithoutMetadata } = response.output; + logger.info({ + clientName, + commandName, + input: inputFilterSensitiveLog(args.input), + output: outputFilterSensitiveLog(outputWithoutMetadata), + metadata: $metadata + }); + } + return response; + }; + exports2.loggerMiddleware = loggerMiddleware; + exports2.loggerMiddlewareOptions = { + name: \\"loggerMiddleware\\", + tags: [\\"LOGGER\\"], + step: \\"initialize\\", + override: true + }; + var getLoggerPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.loggerMiddleware)(), exports2.loggerMiddlewareOptions); + } + }); + exports2.getLoggerPlugin = getLoggerPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +var require_dist_cjs12 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_loggerMiddleware(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +var require_dist_cjs13 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRecursionDetectionPlugin = exports2.addRecursionDetectionMiddlewareOptions = exports2.recursionDetectionMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var TRACE_ID_HEADER_NAME = \\"X-Amzn-Trace-Id\\"; + var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; + var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; + var recursionDetectionMiddleware = (options) => (next) => async (args) => { + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request) || options.runtime !== \\"node\\" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { + return next(args); + } + const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; + const traceId = process.env[ENV_TRACE_ID]; + const nonEmptyString = (str) => typeof str === \\"string\\" && str.length > 0; + if (nonEmptyString(functionName) && nonEmptyString(traceId)) { + request.headers[TRACE_ID_HEADER_NAME] = traceId; + } + return next({ + ...args, + request + }); + }; + exports2.recursionDetectionMiddleware = recursionDetectionMiddleware; + exports2.addRecursionDetectionMiddlewareOptions = { + step: \\"build\\", + tags: [\\"RECURSION_DETECTION\\"], + name: \\"recursionDetectionMiddleware\\", + override: true, + priority: \\"low\\" + }; + var getRecursionDetectionPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.recursionDetectionMiddleware)(options), exports2.addRecursionDetectionMiddlewareOptions); + } + }); + exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js +var require_config2 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DEFAULT_RETRY_MODE = exports2.DEFAULT_MAX_ATTEMPTS = exports2.RETRY_MODES = void 0; + var RETRY_MODES; + (function(RETRY_MODES2) { + RETRY_MODES2[\\"STANDARD\\"] = \\"standard\\"; + RETRY_MODES2[\\"ADAPTIVE\\"] = \\"adaptive\\"; + })(RETRY_MODES = exports2.RETRY_MODES || (exports2.RETRY_MODES = {})); + exports2.DEFAULT_MAX_ATTEMPTS = 3; + exports2.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js +var require_constants2 = __commonJS({ + \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TRANSIENT_ERROR_STATUS_CODES = exports2.TRANSIENT_ERROR_CODES = exports2.THROTTLING_ERROR_CODES = exports2.CLOCK_SKEW_ERROR_CODES = void 0; + exports2.CLOCK_SKEW_ERROR_CODES = [ + \\"AuthFailure\\", + \\"InvalidSignatureException\\", + \\"RequestExpired\\", + \\"RequestInTheFuture\\", + \\"RequestTimeTooSkewed\\", + \\"SignatureDoesNotMatch\\" + ]; + exports2.THROTTLING_ERROR_CODES = [ + \\"BandwidthLimitExceeded\\", + \\"EC2ThrottledException\\", + \\"LimitExceededException\\", + \\"PriorRequestNotComplete\\", + \\"ProvisionedThroughputExceededException\\", + \\"RequestLimitExceeded\\", + \\"RequestThrottled\\", + \\"RequestThrottledException\\", + \\"SlowDown\\", + \\"ThrottledException\\", + \\"Throttling\\", + \\"ThrottlingException\\", + \\"TooManyRequestsException\\", + \\"TransactionInProgressException\\" + ]; + exports2.TRANSIENT_ERROR_CODES = [\\"AbortError\\", \\"TimeoutError\\", \\"RequestTimeout\\", \\"RequestTimeoutException\\"]; + exports2.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; + } +}); + +// node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js +var require_dist_cjs14 = __commonJS({ + \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isTransientError = exports2.isThrottlingError = exports2.isClockSkewError = exports2.isRetryableByTrait = void 0; + var constants_1 = require_constants2(); + var isRetryableByTrait = (error) => error.$retryable !== void 0; + exports2.isRetryableByTrait = isRetryableByTrait; + var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); + exports2.isClockSkewError = isClockSkewError; + var isThrottlingError = (error) => { + var _a, _b; + return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; + }; + exports2.isThrottlingError = isThrottlingError; + var isTransientError = (error) => { + var _a; + return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); + }; + exports2.isTransientError = isTransientError; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js +var require_DefaultRateLimiter = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DefaultRateLimiter = void 0; + var service_error_classification_1 = require_dist_cjs14(); + var DefaultRateLimiter = class { + constructor(options) { + var _a, _b, _c, _d, _e; + this.currentCapacity = 0; + this.enabled = false; + this.lastMaxRate = 0; + this.measuredTxRate = 0; + this.requestCount = 0; + this.lastTimestamp = 0; + this.timeWindow = 0; + this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; + this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; + this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; + this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; + this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; + const currentTimeInSeconds = this.getCurrentTimeInSeconds(); + this.lastThrottleTime = currentTimeInSeconds; + this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); + this.fillRate = this.minFillRate; + this.maxCapacity = this.minCapacity; + } + getCurrentTimeInSeconds() { + return Date.now() / 1e3; + } + async getSendToken() { + return this.acquireTokenBucket(1); + } + async acquireTokenBucket(amount) { + if (!this.enabled) { + return; + } + this.refillTokenBucket(); + if (amount > this.currentCapacity) { + const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; + await new Promise((resolve) => setTimeout(resolve, delay)); + } + this.currentCapacity = this.currentCapacity - amount; + } + refillTokenBucket() { + const timestamp = this.getCurrentTimeInSeconds(); + if (!this.lastTimestamp) { + this.lastTimestamp = timestamp; + return; + } + const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; + this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); + this.lastTimestamp = timestamp; + } + updateClientSendingRate(response) { + let calculatedRate; + this.updateMeasuredRate(); + if ((0, service_error_classification_1.isThrottlingError)(response)) { + const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); + this.lastMaxRate = rateToUse; + this.calculateTimeWindow(); + this.lastThrottleTime = this.getCurrentTimeInSeconds(); + calculatedRate = this.cubicThrottle(rateToUse); + this.enableTokenBucket(); + } else { + this.calculateTimeWindow(); + calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); + } + const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); + this.updateTokenBucketRate(newRate); + } + calculateTimeWindow() { + this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); + } + cubicThrottle(rateToUse) { + return this.getPrecise(rateToUse * this.beta); + } + cubicSuccess(timestamp) { + return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); + } + enableTokenBucket() { + this.enabled = true; + } + updateTokenBucketRate(newRate) { + this.refillTokenBucket(); + this.fillRate = Math.max(newRate, this.minFillRate); + this.maxCapacity = Math.max(newRate, this.minCapacity); + this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); + } + updateMeasuredRate() { + const t = this.getCurrentTimeInSeconds(); + const timeBucket = Math.floor(t * 2) / 2; + this.requestCount++; + if (timeBucket > this.lastTxRateBucket) { + const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); + this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); + this.requestCount = 0; + this.lastTxRateBucket = timeBucket; + } + } + getPrecise(num) { + return parseFloat(num.toFixed(8)); + } + }; + exports2.DefaultRateLimiter = DefaultRateLimiter; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js +var require_constants3 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.REQUEST_HEADER = exports2.INVOCATION_ID_HEADER = exports2.NO_RETRY_INCREMENT = exports2.TIMEOUT_RETRY_COST = exports2.RETRY_COST = exports2.INITIAL_RETRY_TOKENS = exports2.THROTTLING_RETRY_DELAY_BASE = exports2.MAXIMUM_RETRY_DELAY = exports2.DEFAULT_RETRY_DELAY_BASE = void 0; + exports2.DEFAULT_RETRY_DELAY_BASE = 100; + exports2.MAXIMUM_RETRY_DELAY = 20 * 1e3; + exports2.THROTTLING_RETRY_DELAY_BASE = 500; + exports2.INITIAL_RETRY_TOKENS = 500; + exports2.RETRY_COST = 5; + exports2.TIMEOUT_RETRY_COST = 10; + exports2.NO_RETRY_INCREMENT = 1; + exports2.INVOCATION_ID_HEADER = \\"amz-sdk-invocation-id\\"; + exports2.REQUEST_HEADER = \\"amz-sdk-request\\"; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js +var require_defaultRetryQuota = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getDefaultRetryQuota = void 0; + var constants_1 = require_constants3(); + var getDefaultRetryQuota = (initialRetryTokens, options) => { + var _a, _b, _c; + const MAX_CAPACITY = initialRetryTokens; + const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; + const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; + const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; + let availableCapacity = initialRetryTokens; + const getCapacityAmount = (error) => error.name === \\"TimeoutError\\" ? timeoutRetryCost : retryCost; + const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; + const retrieveRetryTokens = (error) => { + if (!hasRetryTokens(error)) { + throw new Error(\\"No retry token available\\"); + } + const capacityAmount = getCapacityAmount(error); + availableCapacity -= capacityAmount; + return capacityAmount; + }; + const releaseRetryTokens = (capacityReleaseAmount) => { + availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; + availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); + }; + return Object.freeze({ + hasRetryTokens, + retrieveRetryTokens, + releaseRetryTokens + }); + }; + exports2.getDefaultRetryQuota = getDefaultRetryQuota; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js +var require_delayDecider = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultDelayDecider = void 0; + var constants_1 = require_constants3(); + var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); + exports2.defaultDelayDecider = defaultDelayDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js +var require_retryDecider = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRetryDecider = void 0; + var service_error_classification_1 = require_dist_cjs14(); + var defaultRetryDecider = (error) => { + if (!error) { + return false; + } + return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); + }; + exports2.defaultRetryDecider = defaultRetryDecider; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js +var require_StandardRetryStrategy = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.StandardRetryStrategy = void 0; + var protocol_http_1 = require_dist_cjs4(); + var service_error_classification_1 = require_dist_cjs14(); + var uuid_1 = require_dist(); + var config_1 = require_config2(); + var constants_1 = require_constants3(); + var defaultRetryQuota_1 = require_defaultRetryQuota(); + var delayDecider_1 = require_delayDecider(); + var retryDecider_1 = require_retryDecider(); + var StandardRetryStrategy = class { + constructor(maxAttemptsProvider, options) { + var _a, _b, _c; + this.maxAttemptsProvider = maxAttemptsProvider; + this.mode = config_1.RETRY_MODES.STANDARD; + this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; + this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; + this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(constants_1.INITIAL_RETRY_TOKENS); + } + shouldRetry(error, attempts, maxAttempts) { + return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); + } + async getMaxAttempts() { + let maxAttempts; + try { + maxAttempts = await this.maxAttemptsProvider(); + } catch (error) { + maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; + } + return maxAttempts; + } + async retry(next, args, options) { + let retryTokenAmount; + let attempts = 0; + let totalDelay = 0; + const maxAttempts = await this.getMaxAttempts(); + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); + } + while (true) { + try { + if (protocol_http_1.HttpRequest.isInstance(request)) { + request.headers[constants_1.REQUEST_HEADER] = \`attempt=\${attempts + 1}; max=\${maxAttempts}\`; + } + if (options === null || options === void 0 ? void 0 : options.beforeRequest) { + await options.beforeRequest(); + } + const { response, output } = await next(args); + if (options === null || options === void 0 ? void 0 : options.afterRequest) { + options.afterRequest(response); + } + this.retryQuota.releaseRetryTokens(retryTokenAmount); + output.$metadata.attempts = attempts + 1; + output.$metadata.totalRetryDelay = totalDelay; + return { response, output }; + } catch (e) { + const err = asSdkError(e); + attempts++; + if (this.shouldRetry(err, attempts, maxAttempts)) { + retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); + const delay = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); + totalDelay += delay; + await new Promise((resolve) => setTimeout(resolve, delay)); + continue; + } + if (!err.$metadata) { + err.$metadata = {}; + } + err.$metadata.attempts = attempts; + err.$metadata.totalRetryDelay = totalDelay; + throw err; + } + } + } + }; + exports2.StandardRetryStrategy = StandardRetryStrategy; + var asSdkError = (error) => { + if (error instanceof Error) + return error; + if (error instanceof Object) + return Object.assign(new Error(), error); + if (typeof error === \\"string\\") + return new Error(error); + return new Error(\`AWS SDK error wrapper for \${error}\`); + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +var require_AdaptiveRetryStrategy = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AdaptiveRetryStrategy = void 0; + var config_1 = require_config2(); + var DefaultRateLimiter_1 = require_DefaultRateLimiter(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { + constructor(maxAttemptsProvider, options) { + const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; + super(maxAttemptsProvider, superOptions); + this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); + this.mode = config_1.RETRY_MODES.ADAPTIVE; + } + async retry(next, args) { + return super.retry(next, args, { + beforeRequest: async () => { + return this.rateLimiter.getSendToken(); + }, + afterRequest: (response) => { + this.rateLimiter.updateClientSendingRate(response); + } + }); + } + }; + exports2.AdaptiveRetryStrategy = AdaptiveRetryStrategy; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js +var require_configurations2 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = exports2.CONFIG_RETRY_MODE = exports2.ENV_RETRY_MODE = exports2.resolveRetryConfig = exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports2.CONFIG_MAX_ATTEMPTS = exports2.ENV_MAX_ATTEMPTS = void 0; + var util_middleware_1 = require_dist_cjs6(); + var AdaptiveRetryStrategy_1 = require_AdaptiveRetryStrategy(); + var config_1 = require_config2(); + var StandardRetryStrategy_1 = require_StandardRetryStrategy(); + exports2.ENV_MAX_ATTEMPTS = \\"AWS_MAX_ATTEMPTS\\"; + exports2.CONFIG_MAX_ATTEMPTS = \\"max_attempts\\"; + exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + const value = env[exports2.ENV_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(\`Environment variable \${exports2.ENV_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); + } + return maxAttempt; + }, + configFileSelector: (profile) => { + const value = profile[exports2.CONFIG_MAX_ATTEMPTS]; + if (!value) + return void 0; + const maxAttempt = parseInt(value); + if (Number.isNaN(maxAttempt)) { + throw new Error(\`Shared config file entry \${exports2.CONFIG_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); + } + return maxAttempt; + }, + default: config_1.DEFAULT_MAX_ATTEMPTS + }; + var resolveRetryConfig = (input) => { + var _a; + const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); + return { + ...input, + maxAttempts, + retryStrategy: async () => { + if (input.retryStrategy) { + return input.retryStrategy; + } + const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); + if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { + return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); + } + return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); + } + }; + }; + exports2.resolveRetryConfig = resolveRetryConfig; + exports2.ENV_RETRY_MODE = \\"AWS_RETRY_MODE\\"; + exports2.CONFIG_RETRY_MODE = \\"retry_mode\\"; + exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.ENV_RETRY_MODE], + configFileSelector: (profile) => profile[exports2.CONFIG_RETRY_MODE], + default: config_1.DEFAULT_RETRY_MODE + }; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +var require_omitRetryHeadersMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getOmitRetryHeadersPlugin = exports2.omitRetryHeadersMiddlewareOptions = exports2.omitRetryHeadersMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants3(); + var omitRetryHeadersMiddleware = () => (next) => async (args) => { + const { request } = args; + if (protocol_http_1.HttpRequest.isInstance(request)) { + delete request.headers[constants_1.INVOCATION_ID_HEADER]; + delete request.headers[constants_1.REQUEST_HEADER]; + } + return next(args); + }; + exports2.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; + exports2.omitRetryHeadersMiddlewareOptions = { + name: \\"omitRetryHeadersMiddleware\\", + tags: [\\"RETRY\\", \\"HEADERS\\", \\"OMIT_RETRY_HEADERS\\"], + relation: \\"before\\", + toMiddleware: \\"awsAuthMiddleware\\", + override: true + }; + var getOmitRetryHeadersPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports2.omitRetryHeadersMiddleware)(), exports2.omitRetryHeadersMiddlewareOptions); + } + }); + exports2.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js +var require_retryMiddleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRetryPlugin = exports2.retryMiddlewareOptions = exports2.retryMiddleware = void 0; + var retryMiddleware = (options) => (next, context) => async (args) => { + const retryStrategy = await options.retryStrategy(); + if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) + context.userAgent = [...context.userAgent || [], [\\"cfg/retry-mode\\", retryStrategy.mode]]; + return retryStrategy.retry(next, args); + }; + exports2.retryMiddleware = retryMiddleware; + exports2.retryMiddlewareOptions = { + name: \\"retryMiddleware\\", + tags: [\\"RETRY\\"], + step: \\"finalizeRequest\\", + priority: \\"high\\", + override: true + }; + var getRetryPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.retryMiddleware)(options), exports2.retryMiddlewareOptions); + } + }); + exports2.getRetryPlugin = getRetryPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js +var require_types = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js +var require_dist_cjs15 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports2); + tslib_1.__exportStar(require_DefaultRateLimiter(), exports2); + tslib_1.__exportStar(require_StandardRetryStrategy(), exports2); + tslib_1.__exportStar(require_config2(), exports2); + tslib_1.__exportStar(require_configurations2(), exports2); + tslib_1.__exportStar(require_delayDecider(), exports2); + tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports2); + tslib_1.__exportStar(require_retryDecider(), exports2); + tslib_1.__exportStar(require_retryMiddleware(), exports2); + tslib_1.__exportStar(require_types(), exports2); + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js +var require_ProviderError = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ProviderError = void 0; + var ProviderError = class extends Error { + constructor(message, tryNextLink = true) { + super(message); + this.tryNextLink = tryNextLink; + this.name = \\"ProviderError\\"; + Object.setPrototypeOf(this, ProviderError.prototype); + } + static from(error, tryNextLink = true) { + return Object.assign(new this(error.message, tryNextLink), error); + } + }; + exports2.ProviderError = ProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js +var require_CredentialsProviderError = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.CredentialsProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var CredentialsProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = \\"CredentialsProviderError\\"; + Object.setPrototypeOf(this, CredentialsProviderError.prototype); + } + }; + exports2.CredentialsProviderError = CredentialsProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js +var require_TokenProviderError = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.TokenProviderError = void 0; + var ProviderError_1 = require_ProviderError(); + var TokenProviderError = class extends ProviderError_1.ProviderError { + constructor(message, tryNextLink = true) { + super(message, tryNextLink); + this.tryNextLink = tryNextLink; + this.name = \\"TokenProviderError\\"; + Object.setPrototypeOf(this, TokenProviderError.prototype); + } + }; + exports2.TokenProviderError = TokenProviderError; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/chain.js +var require_chain = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/chain.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.chain = void 0; + var ProviderError_1 = require_ProviderError(); + function chain(...providers) { + return () => { + let promise = Promise.reject(new ProviderError_1.ProviderError(\\"No providers in chain\\")); + for (const provider of providers) { + promise = promise.catch((err) => { + if (err === null || err === void 0 ? void 0 : err.tryNextLink) { + return provider(); + } + throw err; + }); + } + return promise; + }; + } + exports2.chain = chain; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js +var require_fromStatic = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromStatic = void 0; + var fromStatic = (staticValue) => () => Promise.resolve(staticValue); + exports2.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js +var require_memoize = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.memoize = void 0; + var memoize = (provider, isExpired, requiresRefresh) => { + let resolved; + let pending; + let hasResult; + let isConstant = false; + const coalesceProvider = async () => { + if (!pending) { + pending = provider(); + } + try { + resolved = await pending; + hasResult = true; + isConstant = false; + } finally { + pending = void 0; + } + return resolved; + }; + if (isExpired === void 0) { + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + return resolved; + }; + } + return async (options) => { + if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { + resolved = await coalesceProvider(); + } + if (isConstant) { + return resolved; + } + if (requiresRefresh && !requiresRefresh(resolved)) { + isConstant = true; + return resolved; + } + if (isExpired(resolved)) { + await coalesceProvider(); + return resolved; + } + return resolved; + }; + }; + exports2.memoize = memoize; + } +}); + +// node_modules/@aws-sdk/property-provider/dist-cjs/index.js +var require_dist_cjs16 = __commonJS({ + \\"node_modules/@aws-sdk/property-provider/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_CredentialsProviderError(), exports2); + tslib_1.__exportStar(require_ProviderError(), exports2); + tslib_1.__exportStar(require_TokenProviderError(), exports2); + tslib_1.__exportStar(require_chain(), exports2); + tslib_1.__exportStar(require_fromStatic(), exports2); + tslib_1.__exportStar(require_memoize(), exports2); + } +}); + +// node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js +var require_dist_cjs17 = __commonJS({ + \\"node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toHex = exports2.fromHex = void 0; + var SHORT_TO_HEX = {}; + var HEX_TO_SHORT = {}; + for (let i = 0; i < 256; i++) { + let encodedByte = i.toString(16).toLowerCase(); + if (encodedByte.length === 1) { + encodedByte = \`0\${encodedByte}\`; + } + SHORT_TO_HEX[i] = encodedByte; + HEX_TO_SHORT[encodedByte] = i; + } + function fromHex(encoded) { + if (encoded.length % 2 !== 0) { + throw new Error(\\"Hex encoded strings must have an even number length\\"); + } + const out = new Uint8Array(encoded.length / 2); + for (let i = 0; i < encoded.length; i += 2) { + const encodedByte = encoded.slice(i, i + 2).toLowerCase(); + if (encodedByte in HEX_TO_SHORT) { + out[i / 2] = HEX_TO_SHORT[encodedByte]; + } else { + throw new Error(\`Cannot decode unrecognized sequence \${encodedByte} as hexadecimal\`); + } + } + return out; + } + exports2.fromHex = fromHex; + function toHex(bytes) { + let out = \\"\\"; + for (let i = 0; i < bytes.byteLength; i++) { + out += SHORT_TO_HEX[bytes[i]]; + } + return out; + } + exports2.toHex = toHex; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js +var require_constants4 = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.MAX_PRESIGNED_TTL = exports2.KEY_TYPE_IDENTIFIER = exports2.MAX_CACHE_SIZE = exports2.UNSIGNED_PAYLOAD = exports2.EVENT_ALGORITHM_IDENTIFIER = exports2.ALGORITHM_IDENTIFIER_V4A = exports2.ALGORITHM_IDENTIFIER = exports2.UNSIGNABLE_PATTERNS = exports2.SEC_HEADER_PATTERN = exports2.PROXY_HEADER_PATTERN = exports2.ALWAYS_UNSIGNABLE_HEADERS = exports2.HOST_HEADER = exports2.TOKEN_HEADER = exports2.SHA256_HEADER = exports2.SIGNATURE_HEADER = exports2.GENERATED_HEADERS = exports2.DATE_HEADER = exports2.AMZ_DATE_HEADER = exports2.AUTH_HEADER = exports2.REGION_SET_PARAM = exports2.TOKEN_QUERY_PARAM = exports2.SIGNATURE_QUERY_PARAM = exports2.EXPIRES_QUERY_PARAM = exports2.SIGNED_HEADERS_QUERY_PARAM = exports2.AMZ_DATE_QUERY_PARAM = exports2.CREDENTIAL_QUERY_PARAM = exports2.ALGORITHM_QUERY_PARAM = void 0; + exports2.ALGORITHM_QUERY_PARAM = \\"X-Amz-Algorithm\\"; + exports2.CREDENTIAL_QUERY_PARAM = \\"X-Amz-Credential\\"; + exports2.AMZ_DATE_QUERY_PARAM = \\"X-Amz-Date\\"; + exports2.SIGNED_HEADERS_QUERY_PARAM = \\"X-Amz-SignedHeaders\\"; + exports2.EXPIRES_QUERY_PARAM = \\"X-Amz-Expires\\"; + exports2.SIGNATURE_QUERY_PARAM = \\"X-Amz-Signature\\"; + exports2.TOKEN_QUERY_PARAM = \\"X-Amz-Security-Token\\"; + exports2.REGION_SET_PARAM = \\"X-Amz-Region-Set\\"; + exports2.AUTH_HEADER = \\"authorization\\"; + exports2.AMZ_DATE_HEADER = exports2.AMZ_DATE_QUERY_PARAM.toLowerCase(); + exports2.DATE_HEADER = \\"date\\"; + exports2.GENERATED_HEADERS = [exports2.AUTH_HEADER, exports2.AMZ_DATE_HEADER, exports2.DATE_HEADER]; + exports2.SIGNATURE_HEADER = exports2.SIGNATURE_QUERY_PARAM.toLowerCase(); + exports2.SHA256_HEADER = \\"x-amz-content-sha256\\"; + exports2.TOKEN_HEADER = exports2.TOKEN_QUERY_PARAM.toLowerCase(); + exports2.HOST_HEADER = \\"host\\"; + exports2.ALWAYS_UNSIGNABLE_HEADERS = { + authorization: true, + \\"cache-control\\": true, + connection: true, + expect: true, + from: true, + \\"keep-alive\\": true, + \\"max-forwards\\": true, + pragma: true, + referer: true, + te: true, + trailer: true, + \\"transfer-encoding\\": true, + upgrade: true, + \\"user-agent\\": true, + \\"x-amzn-trace-id\\": true + }; + exports2.PROXY_HEADER_PATTERN = /^proxy-/; + exports2.SEC_HEADER_PATTERN = /^sec-/; + exports2.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; + exports2.ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256\\"; + exports2.ALGORITHM_IDENTIFIER_V4A = \\"AWS4-ECDSA-P256-SHA256\\"; + exports2.EVENT_ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256-PAYLOAD\\"; + exports2.UNSIGNED_PAYLOAD = \\"UNSIGNED-PAYLOAD\\"; + exports2.MAX_CACHE_SIZE = 50; + exports2.KEY_TYPE_IDENTIFIER = \\"aws4_request\\"; + exports2.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js +var require_credentialDerivation = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.clearCredentialCache = exports2.getSigningKey = exports2.createScope = void 0; + var util_hex_encoding_1 = require_dist_cjs17(); + var constants_1 = require_constants4(); + var signingKeyCache = {}; + var cacheQueue = []; + var createScope = (shortDate, region, service) => \`\${shortDate}/\${region}/\${service}/\${constants_1.KEY_TYPE_IDENTIFIER}\`; + exports2.createScope = createScope; + var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { + const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); + const cacheKey = \`\${shortDate}:\${region}:\${service}:\${(0, util_hex_encoding_1.toHex)(credsHash)}:\${credentials.sessionToken}\`; + if (cacheKey in signingKeyCache) { + return signingKeyCache[cacheKey]; + } + cacheQueue.push(cacheKey); + while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { + delete signingKeyCache[cacheQueue.shift()]; + } + let key = \`AWS4\${credentials.secretAccessKey}\`; + for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { + key = await hmac(sha256Constructor, key, signable); + } + return signingKeyCache[cacheKey] = key; + }; + exports2.getSigningKey = getSigningKey; + var clearCredentialCache = () => { + cacheQueue.length = 0; + Object.keys(signingKeyCache).forEach((cacheKey) => { + delete signingKeyCache[cacheKey]; + }); + }; + exports2.clearCredentialCache = clearCredentialCache; + var hmac = (ctor, secret, data) => { + const hash = new ctor(secret); + hash.update(data); + return hash.digest(); + }; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js +var require_getCanonicalHeaders = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCanonicalHeaders = void 0; + var constants_1 = require_constants4(); + var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { + const canonical = {}; + for (const headerName of Object.keys(headers).sort()) { + if (headers[headerName] == void 0) { + continue; + } + const canonicalHeaderName = headerName.toLowerCase(); + if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { + if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { + continue; + } + } + canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\\\\s+/g, \\" \\"); + } + return canonical; + }; + exports2.getCanonicalHeaders = getCanonicalHeaders; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js +var require_escape_uri = __commonJS({ + \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.escapeUri = void 0; + var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); + exports2.escapeUri = escapeUri; + var hexEncode = (c) => \`%\${c.charCodeAt(0).toString(16).toUpperCase()}\`; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js +var require_escape_uri_path = __commonJS({ + \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.escapeUriPath = void 0; + var escape_uri_1 = require_escape_uri(); + var escapeUriPath = (uri) => uri.split(\\"/\\").map(escape_uri_1.escapeUri).join(\\"/\\"); + exports2.escapeUriPath = escapeUriPath; + } +}); + +// node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js +var require_dist_cjs18 = __commonJS({ + \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_escape_uri(), exports2); + tslib_1.__exportStar(require_escape_uri_path(), exports2); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js +var require_getCanonicalQuery = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCanonicalQuery = void 0; + var util_uri_escape_1 = require_dist_cjs18(); + var constants_1 = require_constants4(); + var getCanonicalQuery = ({ query = {} }) => { + const keys = []; + const serialized = {}; + for (const key of Object.keys(query).sort()) { + if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { + continue; + } + keys.push(key); + const value = query[key]; + if (typeof value === \\"string\\") { + serialized[key] = \`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value)}\`; + } else if (Array.isArray(value)) { + serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([\`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value2)}\`]), []).join(\\"&\\"); + } + } + return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join(\\"&\\"); + }; + exports2.getCanonicalQuery = getCanonicalQuery; + } +}); + +// node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js +var require_dist_cjs19 = __commonJS({ + \\"node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isArrayBuffer = void 0; + var isArrayBuffer = (arg) => typeof ArrayBuffer === \\"function\\" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === \\"[object ArrayBuffer]\\"; + exports2.isArrayBuffer = isArrayBuffer; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js +var require_getPayloadHash = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getPayloadHash = void 0; + var is_array_buffer_1 = require_dist_cjs19(); + var util_hex_encoding_1 = require_dist_cjs17(); + var constants_1 = require_constants4(); + var getPayloadHash = async ({ headers, body }, hashConstructor) => { + for (const headerName of Object.keys(headers)) { + if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { + return headers[headerName]; + } + } + if (body == void 0) { + return \\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\"; + } else if (typeof body === \\"string\\" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { + const hashCtor = new hashConstructor(); + hashCtor.update(body); + return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); + } + return constants_1.UNSIGNED_PAYLOAD; + }; + exports2.getPayloadHash = getPayloadHash; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js +var require_headerUtil = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.deleteHeader = exports2.getHeaderValue = exports2.hasHeader = void 0; + var hasHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return true; + } + } + return false; + }; + exports2.hasHeader = hasHeader; + var getHeaderValue = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + return headers[headerName]; + } + } + return void 0; + }; + exports2.getHeaderValue = getHeaderValue; + var deleteHeader = (soughtHeader, headers) => { + soughtHeader = soughtHeader.toLowerCase(); + for (const headerName of Object.keys(headers)) { + if (soughtHeader === headerName.toLowerCase()) { + delete headers[headerName]; + } + } + }; + exports2.deleteHeader = deleteHeader; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js +var require_cloneRequest = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.cloneQuery = exports2.cloneRequest = void 0; + var cloneRequest = ({ headers, query, ...rest }) => ({ + ...rest, + headers: { ...headers }, + query: query ? (0, exports2.cloneQuery)(query) : void 0 + }); + exports2.cloneRequest = cloneRequest; + var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { + const param = query[paramName]; + return { + ...carry, + [paramName]: Array.isArray(param) ? [...param] : param + }; + }, {}); + exports2.cloneQuery = cloneQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js +var require_moveHeadersToQuery = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.moveHeadersToQuery = void 0; + var cloneRequest_1 = require_cloneRequest(); + var moveHeadersToQuery = (request, options = {}) => { + var _a; + const { headers, query = {} } = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const name of Object.keys(headers)) { + const lname = name.toLowerCase(); + if (lname.slice(0, 6) === \\"x-amz-\\" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { + query[name] = headers[name]; + delete headers[name]; + } + } + return { + ...request, + headers, + query + }; + }; + exports2.moveHeadersToQuery = moveHeadersToQuery; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js +var require_prepareRequest = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.prepareRequest = void 0; + var cloneRequest_1 = require_cloneRequest(); + var constants_1 = require_constants4(); + var prepareRequest = (request) => { + request = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); + for (const headerName of Object.keys(request.headers)) { + if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { + delete request.headers[headerName]; + } + } + return request; + }; + exports2.prepareRequest = prepareRequest; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js +var require_utilDate = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toDate = exports2.iso8601 = void 0; + var iso8601 = (time) => (0, exports2.toDate)(time).toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); + exports2.iso8601 = iso8601; + var toDate = (time) => { + if (typeof time === \\"number\\") { + return new Date(time * 1e3); + } + if (typeof time === \\"string\\") { + if (Number(time)) { + return new Date(Number(time) * 1e3); + } + return new Date(time); + } + return time; + }; + exports2.toDate = toDate; + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js +var require_SignatureV4 = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SignatureV4 = void 0; + var util_hex_encoding_1 = require_dist_cjs17(); + var util_middleware_1 = require_dist_cjs6(); + var constants_1 = require_constants4(); + var credentialDerivation_1 = require_credentialDerivation(); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + var getPayloadHash_1 = require_getPayloadHash(); + var headerUtil_1 = require_headerUtil(); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + var prepareRequest_1 = require_prepareRequest(); + var utilDate_1 = require_utilDate(); + var SignatureV4 = class { + constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { + this.service = service; + this.sha256 = sha256; + this.uriEscapePath = uriEscapePath; + this.applyChecksum = typeof applyChecksum === \\"boolean\\" ? applyChecksum : true; + this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); + this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); + } + async presign(originalRequest, options = {}) { + const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { longDate, shortDate } = formatDate(signingDate); + if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { + return Promise.reject(\\"Signature version 4 presigned URLs must have an expiration date less than one week in the future\\"); + } + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); + if (credentials.sessionToken) { + request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; + } + request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; + request.query[constants_1.CREDENTIAL_QUERY_PARAM] = \`\${credentials.accessKeyId}/\${scope}\`; + request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; + request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); + request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); + return request; + } + async sign(toSign, options) { + if (typeof toSign === \\"string\\") { + return this.signString(toSign, options); + } else if (toSign.headers && toSign.payload) { + return this.signEvent(toSign, options); + } else { + return this.signRequest(toSign, options); + } + } + async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate, longDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); + const hash = new this.sha256(); + hash.update(headers); + const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); + const stringToSign = [ + constants_1.EVENT_ALGORITHM_IDENTIFIER, + longDate, + scope, + priorSignature, + hashedHeaders, + hashedPayload + ].join(\\"\\\\n\\"); + return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); + } + async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const { shortDate } = formatDate(signingDate); + const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { + const credentials = await this.credentialProvider(); + this.validateResolvedCredentials(credentials); + const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); + const request = (0, prepareRequest_1.prepareRequest)(requestToSign); + const { longDate, shortDate } = formatDate(signingDate); + const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); + request.headers[constants_1.AMZ_DATE_HEADER] = longDate; + if (credentials.sessionToken) { + request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; + } + const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); + if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { + request.headers[constants_1.SHA256_HEADER] = payloadHash; + } + const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); + const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); + request.headers[constants_1.AUTH_HEADER] = \`\${constants_1.ALGORITHM_IDENTIFIER} Credential=\${credentials.accessKeyId}/\${scope}, SignedHeaders=\${getCanonicalHeaderList(canonicalHeaders)}, Signature=\${signature}\`; + return request; + } + createCanonicalRequest(request, canonicalHeaders, payloadHash) { + const sortedHeaders = Object.keys(canonicalHeaders).sort(); + return \`\${request.method} +\${this.getCanonicalPath(request)} +\${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} +\${sortedHeaders.map((name) => \`\${name}:\${canonicalHeaders[name]}\`).join(\\"\\\\n\\")} + +\${sortedHeaders.join(\\";\\")} +\${payloadHash}\`; + } + async createStringToSign(longDate, credentialScope, canonicalRequest) { + const hash = new this.sha256(); + hash.update(canonicalRequest); + const hashedRequest = await hash.digest(); + return \`\${constants_1.ALGORITHM_IDENTIFIER} +\${longDate} +\${credentialScope} +\${(0, util_hex_encoding_1.toHex)(hashedRequest)}\`; + } + getCanonicalPath({ path }) { + if (this.uriEscapePath) { + const normalizedPathSegments = []; + for (const pathSegment of path.split(\\"/\\")) { + if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) + continue; + if (pathSegment === \\".\\") + continue; + if (pathSegment === \\"..\\") { + normalizedPathSegments.pop(); + } else { + normalizedPathSegments.push(pathSegment); + } + } + const normalizedPath = \`\${(path === null || path === void 0 ? void 0 : path.startsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\${normalizedPathSegments.join(\\"/\\")}\${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\`; + const doubleEncoded = encodeURIComponent(normalizedPath); + return doubleEncoded.replace(/%2F/g, \\"/\\"); + } + return path; + } + async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { + const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); + const hash = new this.sha256(await keyPromise); + hash.update(stringToSign); + return (0, util_hex_encoding_1.toHex)(await hash.digest()); + } + getSigningKey(credentials, region, shortDate, service) { + return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); + } + validateResolvedCredentials(credentials) { + if (typeof credentials !== \\"object\\" || typeof credentials.accessKeyId !== \\"string\\" || typeof credentials.secretAccessKey !== \\"string\\") { + throw new Error(\\"Resolved credential object is not valid\\"); + } + } + }; + exports2.SignatureV4 = SignatureV4; + var formatDate = (now) => { + const longDate = (0, utilDate_1.iso8601)(now).replace(/[\\\\-:]/g, \\"\\"); + return { + longDate, + shortDate: longDate.slice(0, 8) + }; + }; + var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(\\";\\"); + } +}); + +// node_modules/@aws-sdk/signature-v4/dist-cjs/index.js +var require_dist_cjs20 = __commonJS({ + \\"node_modules/@aws-sdk/signature-v4/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.prepareRequest = exports2.moveHeadersToQuery = exports2.getPayloadHash = exports2.getCanonicalQuery = exports2.getCanonicalHeaders = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SignatureV4(), exports2); + var getCanonicalHeaders_1 = require_getCanonicalHeaders(); + Object.defineProperty(exports2, \\"getCanonicalHeaders\\", { enumerable: true, get: function() { + return getCanonicalHeaders_1.getCanonicalHeaders; + } }); + var getCanonicalQuery_1 = require_getCanonicalQuery(); + Object.defineProperty(exports2, \\"getCanonicalQuery\\", { enumerable: true, get: function() { + return getCanonicalQuery_1.getCanonicalQuery; + } }); + var getPayloadHash_1 = require_getPayloadHash(); + Object.defineProperty(exports2, \\"getPayloadHash\\", { enumerable: true, get: function() { + return getPayloadHash_1.getPayloadHash; + } }); + var moveHeadersToQuery_1 = require_moveHeadersToQuery(); + Object.defineProperty(exports2, \\"moveHeadersToQuery\\", { enumerable: true, get: function() { + return moveHeadersToQuery_1.moveHeadersToQuery; + } }); + var prepareRequest_1 = require_prepareRequest(); + Object.defineProperty(exports2, \\"prepareRequest\\", { enumerable: true, get: function() { + return prepareRequest_1.prepareRequest; + } }); + tslib_1.__exportStar(require_credentialDerivation(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js +var require_configurations3 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveSigV4AuthConfig = exports2.resolveAwsAuthConfig = void 0; + var property_provider_1 = require_dist_cjs16(); + var signature_v4_1 = require_dist_cjs20(); + var CREDENTIAL_EXPIRE_WINDOW = 3e5; + var resolveAwsAuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = normalizeProvider(input.signer); + } else { + signer = () => normalizeProvider(input.region)().then(async (region) => [ + await input.regionInfoProvider(region, { + useFipsEndpoint: await input.useFipsEndpoint(), + useDualstackEndpoint: await input.useDualstackEndpoint() + }) || {}, + region + ]).then(([regionInfo, region]) => { + const { signingRegion, signingService } = regionInfo; + input.signingRegion = input.signingRegion || signingRegion || region; + input.signingName = input.signingName || signingService || input.serviceId; + const params = { + ...input, + credentials: normalizedCreds, + region: input.signingRegion, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + }; + const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; + return new signerConstructor(params); + }); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports2.resolveAwsAuthConfig = resolveAwsAuthConfig; + var resolveSigV4AuthConfig = (input) => { + const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); + const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; + let signer; + if (input.signer) { + signer = normalizeProvider(input.signer); + } else { + signer = normalizeProvider(new signature_v4_1.SignatureV4({ + credentials: normalizedCreds, + region: input.region, + service: input.signingName, + sha256, + uriEscapePath: signingEscapePath + })); + } + return { + ...input, + systemClockOffset, + signingEscapePath, + credentials: normalizedCreds, + signer + }; + }; + exports2.resolveSigV4AuthConfig = resolveSigV4AuthConfig; + var normalizeProvider = (input) => { + if (typeof input === \\"object\\") { + const promisified = Promise.resolve(input); + return () => promisified; + } + return input; + }; + var normalizeCredentialProvider = (credentials) => { + if (typeof credentials === \\"function\\") { + return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); + } + return normalizeProvider(credentials); + }; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +var require_getSkewCorrectedDate = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSkewCorrectedDate = void 0; + var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); + exports2.getSkewCorrectedDate = getSkewCorrectedDate; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +var require_isClockSkewed = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isClockSkewed = void 0; + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; + exports2.isClockSkewed = isClockSkewed; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +var require_getUpdatedSystemClockOffset = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getUpdatedSystemClockOffset = void 0; + var isClockSkewed_1 = require_isClockSkewed(); + var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { + const clockTimeInMs = Date.parse(clockTime); + if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { + return clockTimeInMs - Date.now(); + } + return currentSystemClockOffset; + }; + exports2.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js +var require_middleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin = exports2.awsAuthMiddlewareOptions = exports2.awsAuthMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); + var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); + var awsAuthMiddleware = (options) => (next, context) => async function(args) { + if (!protocol_http_1.HttpRequest.isInstance(args.request)) + return next(args); + const signer = await options.signer(); + const output = await next({ + ...args, + request: await signer.sign(args.request, { + signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), + signingRegion: context[\\"signing_region\\"], + signingService: context[\\"signing_service\\"] + }) + }).catch((error) => { + var _a; + const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); + if (serverTime) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); + } + throw error; + }); + const dateHeader = getDateHeader(output.response); + if (dateHeader) { + options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); + } + return output; + }; + exports2.awsAuthMiddleware = awsAuthMiddleware; + var getDateHeader = (response) => { + var _a, _b, _c; + return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; + }; + exports2.awsAuthMiddlewareOptions = { + name: \\"awsAuthMiddleware\\", + tags: [\\"SIGNATURE\\", \\"AWSAUTH\\"], + relation: \\"after\\", + toMiddleware: \\"retryMiddleware\\", + override: true + }; + var getAwsAuthPlugin = (options) => ({ + applyToStack: (clientStack) => { + clientStack.addRelativeTo((0, exports2.awsAuthMiddleware)(options), exports2.awsAuthMiddlewareOptions); + } + }); + exports2.getAwsAuthPlugin = getAwsAuthPlugin; + exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +var require_dist_cjs21 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations3(), exports2); + tslib_1.__exportStar(require_middleware(), exports2); + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +var require_configurations4 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveUserAgentConfig = void 0; + function resolveUserAgentConfig(input) { + return { + ...input, + customUserAgent: typeof input.customUserAgent === \\"string\\" ? [[input.customUserAgent]] : input.customUserAgent + }; + } + exports2.resolveUserAgentConfig = resolveUserAgentConfig; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +var require_constants5 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.UA_ESCAPE_REGEX = exports2.SPACE = exports2.X_AMZ_USER_AGENT = exports2.USER_AGENT = void 0; + exports2.USER_AGENT = \\"user-agent\\"; + exports2.X_AMZ_USER_AGENT = \\"x-amz-user-agent\\"; + exports2.SPACE = \\" \\"; + exports2.UA_ESCAPE_REGEX = /[^\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\.\\\\^\\\\_\\\\\`\\\\|\\\\~\\\\d\\\\w]/g; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +var require_user_agent_middleware = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getUserAgentPlugin = exports2.getUserAgentMiddlewareOptions = exports2.userAgentMiddleware = void 0; + var protocol_http_1 = require_dist_cjs4(); + var constants_1 = require_constants5(); + var userAgentMiddleware = (options) => (next, context) => async (args) => { + var _a, _b; + const { request } = args; + if (!protocol_http_1.HttpRequest.isInstance(request)) + return next(args); + const { headers } = request; + const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; + const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); + const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; + const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); + const normalUAValue = [ + ...defaultUserAgent.filter((section) => section.startsWith(\\"aws-sdk-\\")), + ...customUserAgent + ].join(constants_1.SPACE); + if (options.runtime !== \\"browser\\") { + if (normalUAValue) { + headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? \`\${headers[constants_1.USER_AGENT]} \${normalUAValue}\` : normalUAValue; + } + headers[constants_1.USER_AGENT] = sdkUserAgentValue; + } else { + headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; + } + return next({ + ...args, + request + }); + }; + exports2.userAgentMiddleware = userAgentMiddleware; + var escapeUserAgent = ([name, version]) => { + const prefixSeparatorIndex = name.indexOf(\\"/\\"); + const prefix = name.substring(0, prefixSeparatorIndex); + let uaName = name.substring(prefixSeparatorIndex + 1); + if (prefix === \\"api\\") { + uaName = uaName.toLowerCase(); + } + return [prefix, uaName, version].filter((item) => item && item.length > 0).map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, \\"_\\")).join(\\"/\\"); + }; + exports2.getUserAgentMiddlewareOptions = { + name: \\"getUserAgentMiddleware\\", + step: \\"build\\", + priority: \\"low\\", + tags: [\\"SET_USER_AGENT\\", \\"USER_AGENT\\"], + override: true + }; + var getUserAgentPlugin = (config) => ({ + applyToStack: (clientStack) => { + clientStack.add((0, exports2.userAgentMiddleware)(config), exports2.getUserAgentMiddlewareOptions); + } + }); + exports2.getUserAgentPlugin = getUserAgentPlugin; + } +}); + +// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +var require_dist_cjs22 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configurations4(), exports2); + tslib_1.__exportStar(require_user_agent_middleware(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/package.json +var require_package = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/package.json\\"(exports2, module2) { + module2.exports = { + name: \\"@aws-sdk/client-dynamodb\\", + description: \\"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native\\", + version: \\"3.163.0\\", + scripts: { + build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", + \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", + \\"build:docs\\": \\"typedoc\\", + \\"build:es\\": \\"tsc -p tsconfig.es.json\\", + \\"build:types\\": \\"tsc -p tsconfig.types.json\\", + \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", + clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" + }, + main: \\"./dist-cjs/index.js\\", + types: \\"./dist-types/index.d.ts\\", + module: \\"./dist-es/index.js\\", + sideEffects: false, + dependencies: { + \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", + \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", + \\"@aws-sdk/client-sts\\": \\"3.163.0\\", + \\"@aws-sdk/config-resolver\\": \\"3.163.0\\", + \\"@aws-sdk/credential-provider-node\\": \\"3.163.0\\", + \\"@aws-sdk/fetch-http-handler\\": \\"3.162.0\\", + \\"@aws-sdk/hash-node\\": \\"3.162.0\\", + \\"@aws-sdk/invalid-dependency\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-content-length\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-endpoint-discovery\\": \\"3.163.0\\", + \\"@aws-sdk/middleware-host-header\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-logger\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-recursion-detection\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-retry\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-serde\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-signing\\": \\"3.163.0\\", + \\"@aws-sdk/middleware-stack\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-user-agent\\": \\"3.162.0\\", + \\"@aws-sdk/node-config-provider\\": \\"3.162.0\\", + \\"@aws-sdk/node-http-handler\\": \\"3.162.0\\", + \\"@aws-sdk/protocol-http\\": \\"3.162.0\\", + \\"@aws-sdk/smithy-client\\": \\"3.162.0\\", + \\"@aws-sdk/types\\": \\"3.162.0\\", + \\"@aws-sdk/url-parser\\": \\"3.162.0\\", + \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-browser\\": \\"3.154.0\\", + \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.162.0\\", + \\"@aws-sdk/util-defaults-mode-node\\": \\"3.163.0\\", + \\"@aws-sdk/util-user-agent-browser\\": \\"3.162.0\\", + \\"@aws-sdk/util-user-agent-node\\": \\"3.162.0\\", + \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", + \\"@aws-sdk/util-waiter\\": \\"3.162.0\\", + tslib: \\"^2.3.1\\", + uuid: \\"^8.3.2\\" + }, + devDependencies: { + \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", + \\"@tsconfig/recommended\\": \\"1.0.1\\", + \\"@types/node\\": \\"^12.7.5\\", + \\"@types/uuid\\": \\"^8.3.0\\", + concurrently: \\"7.0.0\\", + \\"downlevel-dts\\": \\"0.7.0\\", + rimraf: \\"3.0.2\\", + typedoc: \\"0.19.2\\", + typescript: \\"~4.6.2\\" + }, + overrides: { + typedoc: { + typescript: \\"~4.6.2\\" + } + }, + engines: { + node: \\">=12.0.0\\" + }, + typesVersions: { + \\"<4.0\\": { + \\"dist-types/*\\": [ + \\"dist-types/ts3.4/*\\" + ] + } + }, + files: [ + \\"dist-*\\" + ], + author: { + name: \\"AWS SDK for JavaScript Team\\", + url: \\"https://aws.amazon.com/javascript/\\" + }, + license: \\"Apache-2.0\\", + browser: { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" + }, + \\"react-native\\": { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" + }, + homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb\\", + repository: { + type: \\"git\\", + url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", + directory: \\"clients/client-dynamodb\\" + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +var require_STSServiceException = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STSServiceException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var STSServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, STSServiceException.prototype); + } + }; + exports2.STSServiceException = STSServiceException; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +var require_models_02 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetSessionTokenResponseFilterSensitiveLog = exports2.GetSessionTokenRequestFilterSensitiveLog = exports2.GetFederationTokenResponseFilterSensitiveLog = exports2.FederatedUserFilterSensitiveLog = exports2.GetFederationTokenRequestFilterSensitiveLog = exports2.GetCallerIdentityResponseFilterSensitiveLog = exports2.GetCallerIdentityRequestFilterSensitiveLog = exports2.GetAccessKeyInfoResponseFilterSensitiveLog = exports2.GetAccessKeyInfoRequestFilterSensitiveLog = exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports2.AssumeRoleResponseFilterSensitiveLog = exports2.CredentialsFilterSensitiveLog = exports2.AssumeRoleRequestFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.PolicyDescriptorTypeFilterSensitiveLog = exports2.AssumedRoleUserFilterSensitiveLog = exports2.InvalidAuthorizationMessageException = exports2.IDPCommunicationErrorException = exports2.InvalidIdentityTokenException = exports2.IDPRejectedClaimException = exports2.RegionDisabledException = exports2.PackedPolicyTooLargeException = exports2.MalformedPolicyDocumentException = exports2.ExpiredTokenException = void 0; + var STSServiceException_1 = require_STSServiceException(); + var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"ExpiredTokenException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ExpiredTokenException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ExpiredTokenException.prototype); + } + }; + exports2.ExpiredTokenException = ExpiredTokenException; + var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"MalformedPolicyDocumentException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"MalformedPolicyDocumentException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); + } + }; + exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException; + var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"PackedPolicyTooLargeException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"PackedPolicyTooLargeException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); + } + }; + exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException; + var RegionDisabledException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"RegionDisabledException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"RegionDisabledException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, RegionDisabledException.prototype); + } + }; + exports2.RegionDisabledException = RegionDisabledException; + var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"IDPRejectedClaimException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IDPRejectedClaimException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); + } + }; + exports2.IDPRejectedClaimException = IDPRejectedClaimException; + var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"InvalidIdentityTokenException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidIdentityTokenException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); + } + }; + exports2.InvalidIdentityTokenException = InvalidIdentityTokenException; + var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"IDPCommunicationErrorException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"IDPCommunicationErrorException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); + } + }; + exports2.IDPCommunicationErrorException = IDPCommunicationErrorException; + var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { + constructor(opts) { + super({ + name: \\"InvalidAuthorizationMessageException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidAuthorizationMessageException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); + } + }; + exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; + var AssumedRoleUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; + var PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; + var TagFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; + var AssumeRoleRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; + var CredentialsFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; + var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; + var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; + var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; + var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; + var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; + var DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; + var DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; + var GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; + var GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; + var GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; + var GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; + var GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; + var FederatedUserFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; + var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; + var GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; + var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; + } +}); + +// node_modules/entities/lib/maps/entities.json +var require_entities = __commonJS({ + \\"node_modules/entities/lib/maps/entities.json\\"(exports2, module2) { + module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Abreve: \\"\\\\u0102\\", abreve: \\"\\\\u0103\\", ac: \\"\\\\u223E\\", acd: \\"\\\\u223F\\", acE: \\"\\\\u223E\\\\u0333\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", Acy: \\"\\\\u0410\\", acy: \\"\\\\u0430\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", af: \\"\\\\u2061\\", Afr: \\"\\\\u{1D504}\\", afr: \\"\\\\u{1D51E}\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", alefsym: \\"\\\\u2135\\", aleph: \\"\\\\u2135\\", Alpha: \\"\\\\u0391\\", alpha: \\"\\\\u03B1\\", Amacr: \\"\\\\u0100\\", amacr: \\"\\\\u0101\\", amalg: \\"\\\\u2A3F\\", amp: \\"&\\", AMP: \\"&\\", andand: \\"\\\\u2A55\\", And: \\"\\\\u2A53\\", and: \\"\\\\u2227\\", andd: \\"\\\\u2A5C\\", andslope: \\"\\\\u2A58\\", andv: \\"\\\\u2A5A\\", ang: \\"\\\\u2220\\", ange: \\"\\\\u29A4\\", angle: \\"\\\\u2220\\", angmsdaa: \\"\\\\u29A8\\", angmsdab: \\"\\\\u29A9\\", angmsdac: \\"\\\\u29AA\\", angmsdad: \\"\\\\u29AB\\", angmsdae: \\"\\\\u29AC\\", angmsdaf: \\"\\\\u29AD\\", angmsdag: \\"\\\\u29AE\\", angmsdah: \\"\\\\u29AF\\", angmsd: \\"\\\\u2221\\", angrt: \\"\\\\u221F\\", angrtvb: \\"\\\\u22BE\\", angrtvbd: \\"\\\\u299D\\", angsph: \\"\\\\u2222\\", angst: \\"\\\\xC5\\", angzarr: \\"\\\\u237C\\", Aogon: \\"\\\\u0104\\", aogon: \\"\\\\u0105\\", Aopf: \\"\\\\u{1D538}\\", aopf: \\"\\\\u{1D552}\\", apacir: \\"\\\\u2A6F\\", ap: \\"\\\\u2248\\", apE: \\"\\\\u2A70\\", ape: \\"\\\\u224A\\", apid: \\"\\\\u224B\\", apos: \\"'\\", ApplyFunction: \\"\\\\u2061\\", approx: \\"\\\\u2248\\", approxeq: \\"\\\\u224A\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Ascr: \\"\\\\u{1D49C}\\", ascr: \\"\\\\u{1D4B6}\\", Assign: \\"\\\\u2254\\", ast: \\"*\\", asymp: \\"\\\\u2248\\", asympeq: \\"\\\\u224D\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", awconint: \\"\\\\u2233\\", awint: \\"\\\\u2A11\\", backcong: \\"\\\\u224C\\", backepsilon: \\"\\\\u03F6\\", backprime: \\"\\\\u2035\\", backsim: \\"\\\\u223D\\", backsimeq: \\"\\\\u22CD\\", Backslash: \\"\\\\u2216\\", Barv: \\"\\\\u2AE7\\", barvee: \\"\\\\u22BD\\", barwed: \\"\\\\u2305\\", Barwed: \\"\\\\u2306\\", barwedge: \\"\\\\u2305\\", bbrk: \\"\\\\u23B5\\", bbrktbrk: \\"\\\\u23B6\\", bcong: \\"\\\\u224C\\", Bcy: \\"\\\\u0411\\", bcy: \\"\\\\u0431\\", bdquo: \\"\\\\u201E\\", becaus: \\"\\\\u2235\\", because: \\"\\\\u2235\\", Because: \\"\\\\u2235\\", bemptyv: \\"\\\\u29B0\\", bepsi: \\"\\\\u03F6\\", bernou: \\"\\\\u212C\\", Bernoullis: \\"\\\\u212C\\", Beta: \\"\\\\u0392\\", beta: \\"\\\\u03B2\\", beth: \\"\\\\u2136\\", between: \\"\\\\u226C\\", Bfr: \\"\\\\u{1D505}\\", bfr: \\"\\\\u{1D51F}\\", bigcap: \\"\\\\u22C2\\", bigcirc: \\"\\\\u25EF\\", bigcup: \\"\\\\u22C3\\", bigodot: \\"\\\\u2A00\\", bigoplus: \\"\\\\u2A01\\", bigotimes: \\"\\\\u2A02\\", bigsqcup: \\"\\\\u2A06\\", bigstar: \\"\\\\u2605\\", bigtriangledown: \\"\\\\u25BD\\", bigtriangleup: \\"\\\\u25B3\\", biguplus: \\"\\\\u2A04\\", bigvee: \\"\\\\u22C1\\", bigwedge: \\"\\\\u22C0\\", bkarow: \\"\\\\u290D\\", blacklozenge: \\"\\\\u29EB\\", blacksquare: \\"\\\\u25AA\\", blacktriangle: \\"\\\\u25B4\\", blacktriangledown: \\"\\\\u25BE\\", blacktriangleleft: \\"\\\\u25C2\\", blacktriangleright: \\"\\\\u25B8\\", blank: \\"\\\\u2423\\", blk12: \\"\\\\u2592\\", blk14: \\"\\\\u2591\\", blk34: \\"\\\\u2593\\", block: \\"\\\\u2588\\", bne: \\"=\\\\u20E5\\", bnequiv: \\"\\\\u2261\\\\u20E5\\", bNot: \\"\\\\u2AED\\", bnot: \\"\\\\u2310\\", Bopf: \\"\\\\u{1D539}\\", bopf: \\"\\\\u{1D553}\\", bot: \\"\\\\u22A5\\", bottom: \\"\\\\u22A5\\", bowtie: \\"\\\\u22C8\\", boxbox: \\"\\\\u29C9\\", boxdl: \\"\\\\u2510\\", boxdL: \\"\\\\u2555\\", boxDl: \\"\\\\u2556\\", boxDL: \\"\\\\u2557\\", boxdr: \\"\\\\u250C\\", boxdR: \\"\\\\u2552\\", boxDr: \\"\\\\u2553\\", boxDR: \\"\\\\u2554\\", boxh: \\"\\\\u2500\\", boxH: \\"\\\\u2550\\", boxhd: \\"\\\\u252C\\", boxHd: \\"\\\\u2564\\", boxhD: \\"\\\\u2565\\", boxHD: \\"\\\\u2566\\", boxhu: \\"\\\\u2534\\", boxHu: \\"\\\\u2567\\", boxhU: \\"\\\\u2568\\", boxHU: \\"\\\\u2569\\", boxminus: \\"\\\\u229F\\", boxplus: \\"\\\\u229E\\", boxtimes: \\"\\\\u22A0\\", boxul: \\"\\\\u2518\\", boxuL: \\"\\\\u255B\\", boxUl: \\"\\\\u255C\\", boxUL: \\"\\\\u255D\\", boxur: \\"\\\\u2514\\", boxuR: \\"\\\\u2558\\", boxUr: \\"\\\\u2559\\", boxUR: \\"\\\\u255A\\", boxv: \\"\\\\u2502\\", boxV: \\"\\\\u2551\\", boxvh: \\"\\\\u253C\\", boxvH: \\"\\\\u256A\\", boxVh: \\"\\\\u256B\\", boxVH: \\"\\\\u256C\\", boxvl: \\"\\\\u2524\\", boxvL: \\"\\\\u2561\\", boxVl: \\"\\\\u2562\\", boxVL: \\"\\\\u2563\\", boxvr: \\"\\\\u251C\\", boxvR: \\"\\\\u255E\\", boxVr: \\"\\\\u255F\\", boxVR: \\"\\\\u2560\\", bprime: \\"\\\\u2035\\", breve: \\"\\\\u02D8\\", Breve: \\"\\\\u02D8\\", brvbar: \\"\\\\xA6\\", bscr: \\"\\\\u{1D4B7}\\", Bscr: \\"\\\\u212C\\", bsemi: \\"\\\\u204F\\", bsim: \\"\\\\u223D\\", bsime: \\"\\\\u22CD\\", bsolb: \\"\\\\u29C5\\", bsol: \\"\\\\\\\\\\", bsolhsub: \\"\\\\u27C8\\", bull: \\"\\\\u2022\\", bullet: \\"\\\\u2022\\", bump: \\"\\\\u224E\\", bumpE: \\"\\\\u2AAE\\", bumpe: \\"\\\\u224F\\", Bumpeq: \\"\\\\u224E\\", bumpeq: \\"\\\\u224F\\", Cacute: \\"\\\\u0106\\", cacute: \\"\\\\u0107\\", capand: \\"\\\\u2A44\\", capbrcup: \\"\\\\u2A49\\", capcap: \\"\\\\u2A4B\\", cap: \\"\\\\u2229\\", Cap: \\"\\\\u22D2\\", capcup: \\"\\\\u2A47\\", capdot: \\"\\\\u2A40\\", CapitalDifferentialD: \\"\\\\u2145\\", caps: \\"\\\\u2229\\\\uFE00\\", caret: \\"\\\\u2041\\", caron: \\"\\\\u02C7\\", Cayleys: \\"\\\\u212D\\", ccaps: \\"\\\\u2A4D\\", Ccaron: \\"\\\\u010C\\", ccaron: \\"\\\\u010D\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", Ccirc: \\"\\\\u0108\\", ccirc: \\"\\\\u0109\\", Cconint: \\"\\\\u2230\\", ccups: \\"\\\\u2A4C\\", ccupssm: \\"\\\\u2A50\\", Cdot: \\"\\\\u010A\\", cdot: \\"\\\\u010B\\", cedil: \\"\\\\xB8\\", Cedilla: \\"\\\\xB8\\", cemptyv: \\"\\\\u29B2\\", cent: \\"\\\\xA2\\", centerdot: \\"\\\\xB7\\", CenterDot: \\"\\\\xB7\\", cfr: \\"\\\\u{1D520}\\", Cfr: \\"\\\\u212D\\", CHcy: \\"\\\\u0427\\", chcy: \\"\\\\u0447\\", check: \\"\\\\u2713\\", checkmark: \\"\\\\u2713\\", Chi: \\"\\\\u03A7\\", chi: \\"\\\\u03C7\\", circ: \\"\\\\u02C6\\", circeq: \\"\\\\u2257\\", circlearrowleft: \\"\\\\u21BA\\", circlearrowright: \\"\\\\u21BB\\", circledast: \\"\\\\u229B\\", circledcirc: \\"\\\\u229A\\", circleddash: \\"\\\\u229D\\", CircleDot: \\"\\\\u2299\\", circledR: \\"\\\\xAE\\", circledS: \\"\\\\u24C8\\", CircleMinus: \\"\\\\u2296\\", CirclePlus: \\"\\\\u2295\\", CircleTimes: \\"\\\\u2297\\", cir: \\"\\\\u25CB\\", cirE: \\"\\\\u29C3\\", cire: \\"\\\\u2257\\", cirfnint: \\"\\\\u2A10\\", cirmid: \\"\\\\u2AEF\\", cirscir: \\"\\\\u29C2\\", ClockwiseContourIntegral: \\"\\\\u2232\\", CloseCurlyDoubleQuote: \\"\\\\u201D\\", CloseCurlyQuote: \\"\\\\u2019\\", clubs: \\"\\\\u2663\\", clubsuit: \\"\\\\u2663\\", colon: \\":\\", Colon: \\"\\\\u2237\\", Colone: \\"\\\\u2A74\\", colone: \\"\\\\u2254\\", coloneq: \\"\\\\u2254\\", comma: \\",\\", commat: \\"@\\", comp: \\"\\\\u2201\\", compfn: \\"\\\\u2218\\", complement: \\"\\\\u2201\\", complexes: \\"\\\\u2102\\", cong: \\"\\\\u2245\\", congdot: \\"\\\\u2A6D\\", Congruent: \\"\\\\u2261\\", conint: \\"\\\\u222E\\", Conint: \\"\\\\u222F\\", ContourIntegral: \\"\\\\u222E\\", copf: \\"\\\\u{1D554}\\", Copf: \\"\\\\u2102\\", coprod: \\"\\\\u2210\\", Coproduct: \\"\\\\u2210\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", copysr: \\"\\\\u2117\\", CounterClockwiseContourIntegral: \\"\\\\u2233\\", crarr: \\"\\\\u21B5\\", cross: \\"\\\\u2717\\", Cross: \\"\\\\u2A2F\\", Cscr: \\"\\\\u{1D49E}\\", cscr: \\"\\\\u{1D4B8}\\", csub: \\"\\\\u2ACF\\", csube: \\"\\\\u2AD1\\", csup: \\"\\\\u2AD0\\", csupe: \\"\\\\u2AD2\\", ctdot: \\"\\\\u22EF\\", cudarrl: \\"\\\\u2938\\", cudarrr: \\"\\\\u2935\\", cuepr: \\"\\\\u22DE\\", cuesc: \\"\\\\u22DF\\", cularr: \\"\\\\u21B6\\", cularrp: \\"\\\\u293D\\", cupbrcap: \\"\\\\u2A48\\", cupcap: \\"\\\\u2A46\\", CupCap: \\"\\\\u224D\\", cup: \\"\\\\u222A\\", Cup: \\"\\\\u22D3\\", cupcup: \\"\\\\u2A4A\\", cupdot: \\"\\\\u228D\\", cupor: \\"\\\\u2A45\\", cups: \\"\\\\u222A\\\\uFE00\\", curarr: \\"\\\\u21B7\\", curarrm: \\"\\\\u293C\\", curlyeqprec: \\"\\\\u22DE\\", curlyeqsucc: \\"\\\\u22DF\\", curlyvee: \\"\\\\u22CE\\", curlywedge: \\"\\\\u22CF\\", curren: \\"\\\\xA4\\", curvearrowleft: \\"\\\\u21B6\\", curvearrowright: \\"\\\\u21B7\\", cuvee: \\"\\\\u22CE\\", cuwed: \\"\\\\u22CF\\", cwconint: \\"\\\\u2232\\", cwint: \\"\\\\u2231\\", cylcty: \\"\\\\u232D\\", dagger: \\"\\\\u2020\\", Dagger: \\"\\\\u2021\\", daleth: \\"\\\\u2138\\", darr: \\"\\\\u2193\\", Darr: \\"\\\\u21A1\\", dArr: \\"\\\\u21D3\\", dash: \\"\\\\u2010\\", Dashv: \\"\\\\u2AE4\\", dashv: \\"\\\\u22A3\\", dbkarow: \\"\\\\u290F\\", dblac: \\"\\\\u02DD\\", Dcaron: \\"\\\\u010E\\", dcaron: \\"\\\\u010F\\", Dcy: \\"\\\\u0414\\", dcy: \\"\\\\u0434\\", ddagger: \\"\\\\u2021\\", ddarr: \\"\\\\u21CA\\", DD: \\"\\\\u2145\\", dd: \\"\\\\u2146\\", DDotrahd: \\"\\\\u2911\\", ddotseq: \\"\\\\u2A77\\", deg: \\"\\\\xB0\\", Del: \\"\\\\u2207\\", Delta: \\"\\\\u0394\\", delta: \\"\\\\u03B4\\", demptyv: \\"\\\\u29B1\\", dfisht: \\"\\\\u297F\\", Dfr: \\"\\\\u{1D507}\\", dfr: \\"\\\\u{1D521}\\", dHar: \\"\\\\u2965\\", dharl: \\"\\\\u21C3\\", dharr: \\"\\\\u21C2\\", DiacriticalAcute: \\"\\\\xB4\\", DiacriticalDot: \\"\\\\u02D9\\", DiacriticalDoubleAcute: \\"\\\\u02DD\\", DiacriticalGrave: \\"\`\\", DiacriticalTilde: \\"\\\\u02DC\\", diam: \\"\\\\u22C4\\", diamond: \\"\\\\u22C4\\", Diamond: \\"\\\\u22C4\\", diamondsuit: \\"\\\\u2666\\", diams: \\"\\\\u2666\\", die: \\"\\\\xA8\\", DifferentialD: \\"\\\\u2146\\", digamma: \\"\\\\u03DD\\", disin: \\"\\\\u22F2\\", div: \\"\\\\xF7\\", divide: \\"\\\\xF7\\", divideontimes: \\"\\\\u22C7\\", divonx: \\"\\\\u22C7\\", DJcy: \\"\\\\u0402\\", djcy: \\"\\\\u0452\\", dlcorn: \\"\\\\u231E\\", dlcrop: \\"\\\\u230D\\", dollar: \\"$\\", Dopf: \\"\\\\u{1D53B}\\", dopf: \\"\\\\u{1D555}\\", Dot: \\"\\\\xA8\\", dot: \\"\\\\u02D9\\", DotDot: \\"\\\\u20DC\\", doteq: \\"\\\\u2250\\", doteqdot: \\"\\\\u2251\\", DotEqual: \\"\\\\u2250\\", dotminus: \\"\\\\u2238\\", dotplus: \\"\\\\u2214\\", dotsquare: \\"\\\\u22A1\\", doublebarwedge: \\"\\\\u2306\\", DoubleContourIntegral: \\"\\\\u222F\\", DoubleDot: \\"\\\\xA8\\", DoubleDownArrow: \\"\\\\u21D3\\", DoubleLeftArrow: \\"\\\\u21D0\\", DoubleLeftRightArrow: \\"\\\\u21D4\\", DoubleLeftTee: \\"\\\\u2AE4\\", DoubleLongLeftArrow: \\"\\\\u27F8\\", DoubleLongLeftRightArrow: \\"\\\\u27FA\\", DoubleLongRightArrow: \\"\\\\u27F9\\", DoubleRightArrow: \\"\\\\u21D2\\", DoubleRightTee: \\"\\\\u22A8\\", DoubleUpArrow: \\"\\\\u21D1\\", DoubleUpDownArrow: \\"\\\\u21D5\\", DoubleVerticalBar: \\"\\\\u2225\\", DownArrowBar: \\"\\\\u2913\\", downarrow: \\"\\\\u2193\\", DownArrow: \\"\\\\u2193\\", Downarrow: \\"\\\\u21D3\\", DownArrowUpArrow: \\"\\\\u21F5\\", DownBreve: \\"\\\\u0311\\", downdownarrows: \\"\\\\u21CA\\", downharpoonleft: \\"\\\\u21C3\\", downharpoonright: \\"\\\\u21C2\\", DownLeftRightVector: \\"\\\\u2950\\", DownLeftTeeVector: \\"\\\\u295E\\", DownLeftVectorBar: \\"\\\\u2956\\", DownLeftVector: \\"\\\\u21BD\\", DownRightTeeVector: \\"\\\\u295F\\", DownRightVectorBar: \\"\\\\u2957\\", DownRightVector: \\"\\\\u21C1\\", DownTeeArrow: \\"\\\\u21A7\\", DownTee: \\"\\\\u22A4\\", drbkarow: \\"\\\\u2910\\", drcorn: \\"\\\\u231F\\", drcrop: \\"\\\\u230C\\", Dscr: \\"\\\\u{1D49F}\\", dscr: \\"\\\\u{1D4B9}\\", DScy: \\"\\\\u0405\\", dscy: \\"\\\\u0455\\", dsol: \\"\\\\u29F6\\", Dstrok: \\"\\\\u0110\\", dstrok: \\"\\\\u0111\\", dtdot: \\"\\\\u22F1\\", dtri: \\"\\\\u25BF\\", dtrif: \\"\\\\u25BE\\", duarr: \\"\\\\u21F5\\", duhar: \\"\\\\u296F\\", dwangle: \\"\\\\u29A6\\", DZcy: \\"\\\\u040F\\", dzcy: \\"\\\\u045F\\", dzigrarr: \\"\\\\u27FF\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", easter: \\"\\\\u2A6E\\", Ecaron: \\"\\\\u011A\\", ecaron: \\"\\\\u011B\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", ecir: \\"\\\\u2256\\", ecolon: \\"\\\\u2255\\", Ecy: \\"\\\\u042D\\", ecy: \\"\\\\u044D\\", eDDot: \\"\\\\u2A77\\", Edot: \\"\\\\u0116\\", edot: \\"\\\\u0117\\", eDot: \\"\\\\u2251\\", ee: \\"\\\\u2147\\", efDot: \\"\\\\u2252\\", Efr: \\"\\\\u{1D508}\\", efr: \\"\\\\u{1D522}\\", eg: \\"\\\\u2A9A\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", egs: \\"\\\\u2A96\\", egsdot: \\"\\\\u2A98\\", el: \\"\\\\u2A99\\", Element: \\"\\\\u2208\\", elinters: \\"\\\\u23E7\\", ell: \\"\\\\u2113\\", els: \\"\\\\u2A95\\", elsdot: \\"\\\\u2A97\\", Emacr: \\"\\\\u0112\\", emacr: \\"\\\\u0113\\", empty: \\"\\\\u2205\\", emptyset: \\"\\\\u2205\\", EmptySmallSquare: \\"\\\\u25FB\\", emptyv: \\"\\\\u2205\\", EmptyVerySmallSquare: \\"\\\\u25AB\\", emsp13: \\"\\\\u2004\\", emsp14: \\"\\\\u2005\\", emsp: \\"\\\\u2003\\", ENG: \\"\\\\u014A\\", eng: \\"\\\\u014B\\", ensp: \\"\\\\u2002\\", Eogon: \\"\\\\u0118\\", eogon: \\"\\\\u0119\\", Eopf: \\"\\\\u{1D53C}\\", eopf: \\"\\\\u{1D556}\\", epar: \\"\\\\u22D5\\", eparsl: \\"\\\\u29E3\\", eplus: \\"\\\\u2A71\\", epsi: \\"\\\\u03B5\\", Epsilon: \\"\\\\u0395\\", epsilon: \\"\\\\u03B5\\", epsiv: \\"\\\\u03F5\\", eqcirc: \\"\\\\u2256\\", eqcolon: \\"\\\\u2255\\", eqsim: \\"\\\\u2242\\", eqslantgtr: \\"\\\\u2A96\\", eqslantless: \\"\\\\u2A95\\", Equal: \\"\\\\u2A75\\", equals: \\"=\\", EqualTilde: \\"\\\\u2242\\", equest: \\"\\\\u225F\\", Equilibrium: \\"\\\\u21CC\\", equiv: \\"\\\\u2261\\", equivDD: \\"\\\\u2A78\\", eqvparsl: \\"\\\\u29E5\\", erarr: \\"\\\\u2971\\", erDot: \\"\\\\u2253\\", escr: \\"\\\\u212F\\", Escr: \\"\\\\u2130\\", esdot: \\"\\\\u2250\\", Esim: \\"\\\\u2A73\\", esim: \\"\\\\u2242\\", Eta: \\"\\\\u0397\\", eta: \\"\\\\u03B7\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", euro: \\"\\\\u20AC\\", excl: \\"!\\", exist: \\"\\\\u2203\\", Exists: \\"\\\\u2203\\", expectation: \\"\\\\u2130\\", exponentiale: \\"\\\\u2147\\", ExponentialE: \\"\\\\u2147\\", fallingdotseq: \\"\\\\u2252\\", Fcy: \\"\\\\u0424\\", fcy: \\"\\\\u0444\\", female: \\"\\\\u2640\\", ffilig: \\"\\\\uFB03\\", fflig: \\"\\\\uFB00\\", ffllig: \\"\\\\uFB04\\", Ffr: \\"\\\\u{1D509}\\", ffr: \\"\\\\u{1D523}\\", filig: \\"\\\\uFB01\\", FilledSmallSquare: \\"\\\\u25FC\\", FilledVerySmallSquare: \\"\\\\u25AA\\", fjlig: \\"fj\\", flat: \\"\\\\u266D\\", fllig: \\"\\\\uFB02\\", fltns: \\"\\\\u25B1\\", fnof: \\"\\\\u0192\\", Fopf: \\"\\\\u{1D53D}\\", fopf: \\"\\\\u{1D557}\\", forall: \\"\\\\u2200\\", ForAll: \\"\\\\u2200\\", fork: \\"\\\\u22D4\\", forkv: \\"\\\\u2AD9\\", Fouriertrf: \\"\\\\u2131\\", fpartint: \\"\\\\u2A0D\\", frac12: \\"\\\\xBD\\", frac13: \\"\\\\u2153\\", frac14: \\"\\\\xBC\\", frac15: \\"\\\\u2155\\", frac16: \\"\\\\u2159\\", frac18: \\"\\\\u215B\\", frac23: \\"\\\\u2154\\", frac25: \\"\\\\u2156\\", frac34: \\"\\\\xBE\\", frac35: \\"\\\\u2157\\", frac38: \\"\\\\u215C\\", frac45: \\"\\\\u2158\\", frac56: \\"\\\\u215A\\", frac58: \\"\\\\u215D\\", frac78: \\"\\\\u215E\\", frasl: \\"\\\\u2044\\", frown: \\"\\\\u2322\\", fscr: \\"\\\\u{1D4BB}\\", Fscr: \\"\\\\u2131\\", gacute: \\"\\\\u01F5\\", Gamma: \\"\\\\u0393\\", gamma: \\"\\\\u03B3\\", Gammad: \\"\\\\u03DC\\", gammad: \\"\\\\u03DD\\", gap: \\"\\\\u2A86\\", Gbreve: \\"\\\\u011E\\", gbreve: \\"\\\\u011F\\", Gcedil: \\"\\\\u0122\\", Gcirc: \\"\\\\u011C\\", gcirc: \\"\\\\u011D\\", Gcy: \\"\\\\u0413\\", gcy: \\"\\\\u0433\\", Gdot: \\"\\\\u0120\\", gdot: \\"\\\\u0121\\", ge: \\"\\\\u2265\\", gE: \\"\\\\u2267\\", gEl: \\"\\\\u2A8C\\", gel: \\"\\\\u22DB\\", geq: \\"\\\\u2265\\", geqq: \\"\\\\u2267\\", geqslant: \\"\\\\u2A7E\\", gescc: \\"\\\\u2AA9\\", ges: \\"\\\\u2A7E\\", gesdot: \\"\\\\u2A80\\", gesdoto: \\"\\\\u2A82\\", gesdotol: \\"\\\\u2A84\\", gesl: \\"\\\\u22DB\\\\uFE00\\", gesles: \\"\\\\u2A94\\", Gfr: \\"\\\\u{1D50A}\\", gfr: \\"\\\\u{1D524}\\", gg: \\"\\\\u226B\\", Gg: \\"\\\\u22D9\\", ggg: \\"\\\\u22D9\\", gimel: \\"\\\\u2137\\", GJcy: \\"\\\\u0403\\", gjcy: \\"\\\\u0453\\", gla: \\"\\\\u2AA5\\", gl: \\"\\\\u2277\\", glE: \\"\\\\u2A92\\", glj: \\"\\\\u2AA4\\", gnap: \\"\\\\u2A8A\\", gnapprox: \\"\\\\u2A8A\\", gne: \\"\\\\u2A88\\", gnE: \\"\\\\u2269\\", gneq: \\"\\\\u2A88\\", gneqq: \\"\\\\u2269\\", gnsim: \\"\\\\u22E7\\", Gopf: \\"\\\\u{1D53E}\\", gopf: \\"\\\\u{1D558}\\", grave: \\"\`\\", GreaterEqual: \\"\\\\u2265\\", GreaterEqualLess: \\"\\\\u22DB\\", GreaterFullEqual: \\"\\\\u2267\\", GreaterGreater: \\"\\\\u2AA2\\", GreaterLess: \\"\\\\u2277\\", GreaterSlantEqual: \\"\\\\u2A7E\\", GreaterTilde: \\"\\\\u2273\\", Gscr: \\"\\\\u{1D4A2}\\", gscr: \\"\\\\u210A\\", gsim: \\"\\\\u2273\\", gsime: \\"\\\\u2A8E\\", gsiml: \\"\\\\u2A90\\", gtcc: \\"\\\\u2AA7\\", gtcir: \\"\\\\u2A7A\\", gt: \\">\\", GT: \\">\\", Gt: \\"\\\\u226B\\", gtdot: \\"\\\\u22D7\\", gtlPar: \\"\\\\u2995\\", gtquest: \\"\\\\u2A7C\\", gtrapprox: \\"\\\\u2A86\\", gtrarr: \\"\\\\u2978\\", gtrdot: \\"\\\\u22D7\\", gtreqless: \\"\\\\u22DB\\", gtreqqless: \\"\\\\u2A8C\\", gtrless: \\"\\\\u2277\\", gtrsim: \\"\\\\u2273\\", gvertneqq: \\"\\\\u2269\\\\uFE00\\", gvnE: \\"\\\\u2269\\\\uFE00\\", Hacek: \\"\\\\u02C7\\", hairsp: \\"\\\\u200A\\", half: \\"\\\\xBD\\", hamilt: \\"\\\\u210B\\", HARDcy: \\"\\\\u042A\\", hardcy: \\"\\\\u044A\\", harrcir: \\"\\\\u2948\\", harr: \\"\\\\u2194\\", hArr: \\"\\\\u21D4\\", harrw: \\"\\\\u21AD\\", Hat: \\"^\\", hbar: \\"\\\\u210F\\", Hcirc: \\"\\\\u0124\\", hcirc: \\"\\\\u0125\\", hearts: \\"\\\\u2665\\", heartsuit: \\"\\\\u2665\\", hellip: \\"\\\\u2026\\", hercon: \\"\\\\u22B9\\", hfr: \\"\\\\u{1D525}\\", Hfr: \\"\\\\u210C\\", HilbertSpace: \\"\\\\u210B\\", hksearow: \\"\\\\u2925\\", hkswarow: \\"\\\\u2926\\", hoarr: \\"\\\\u21FF\\", homtht: \\"\\\\u223B\\", hookleftarrow: \\"\\\\u21A9\\", hookrightarrow: \\"\\\\u21AA\\", hopf: \\"\\\\u{1D559}\\", Hopf: \\"\\\\u210D\\", horbar: \\"\\\\u2015\\", HorizontalLine: \\"\\\\u2500\\", hscr: \\"\\\\u{1D4BD}\\", Hscr: \\"\\\\u210B\\", hslash: \\"\\\\u210F\\", Hstrok: \\"\\\\u0126\\", hstrok: \\"\\\\u0127\\", HumpDownHump: \\"\\\\u224E\\", HumpEqual: \\"\\\\u224F\\", hybull: \\"\\\\u2043\\", hyphen: \\"\\\\u2010\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", ic: \\"\\\\u2063\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", Icy: \\"\\\\u0418\\", icy: \\"\\\\u0438\\", Idot: \\"\\\\u0130\\", IEcy: \\"\\\\u0415\\", iecy: \\"\\\\u0435\\", iexcl: \\"\\\\xA1\\", iff: \\"\\\\u21D4\\", ifr: \\"\\\\u{1D526}\\", Ifr: \\"\\\\u2111\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", ii: \\"\\\\u2148\\", iiiint: \\"\\\\u2A0C\\", iiint: \\"\\\\u222D\\", iinfin: \\"\\\\u29DC\\", iiota: \\"\\\\u2129\\", IJlig: \\"\\\\u0132\\", ijlig: \\"\\\\u0133\\", Imacr: \\"\\\\u012A\\", imacr: \\"\\\\u012B\\", image: \\"\\\\u2111\\", ImaginaryI: \\"\\\\u2148\\", imagline: \\"\\\\u2110\\", imagpart: \\"\\\\u2111\\", imath: \\"\\\\u0131\\", Im: \\"\\\\u2111\\", imof: \\"\\\\u22B7\\", imped: \\"\\\\u01B5\\", Implies: \\"\\\\u21D2\\", incare: \\"\\\\u2105\\", in: \\"\\\\u2208\\", infin: \\"\\\\u221E\\", infintie: \\"\\\\u29DD\\", inodot: \\"\\\\u0131\\", intcal: \\"\\\\u22BA\\", int: \\"\\\\u222B\\", Int: \\"\\\\u222C\\", integers: \\"\\\\u2124\\", Integral: \\"\\\\u222B\\", intercal: \\"\\\\u22BA\\", Intersection: \\"\\\\u22C2\\", intlarhk: \\"\\\\u2A17\\", intprod: \\"\\\\u2A3C\\", InvisibleComma: \\"\\\\u2063\\", InvisibleTimes: \\"\\\\u2062\\", IOcy: \\"\\\\u0401\\", iocy: \\"\\\\u0451\\", Iogon: \\"\\\\u012E\\", iogon: \\"\\\\u012F\\", Iopf: \\"\\\\u{1D540}\\", iopf: \\"\\\\u{1D55A}\\", Iota: \\"\\\\u0399\\", iota: \\"\\\\u03B9\\", iprod: \\"\\\\u2A3C\\", iquest: \\"\\\\xBF\\", iscr: \\"\\\\u{1D4BE}\\", Iscr: \\"\\\\u2110\\", isin: \\"\\\\u2208\\", isindot: \\"\\\\u22F5\\", isinE: \\"\\\\u22F9\\", isins: \\"\\\\u22F4\\", isinsv: \\"\\\\u22F3\\", isinv: \\"\\\\u2208\\", it: \\"\\\\u2062\\", Itilde: \\"\\\\u0128\\", itilde: \\"\\\\u0129\\", Iukcy: \\"\\\\u0406\\", iukcy: \\"\\\\u0456\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", Jcirc: \\"\\\\u0134\\", jcirc: \\"\\\\u0135\\", Jcy: \\"\\\\u0419\\", jcy: \\"\\\\u0439\\", Jfr: \\"\\\\u{1D50D}\\", jfr: \\"\\\\u{1D527}\\", jmath: \\"\\\\u0237\\", Jopf: \\"\\\\u{1D541}\\", jopf: \\"\\\\u{1D55B}\\", Jscr: \\"\\\\u{1D4A5}\\", jscr: \\"\\\\u{1D4BF}\\", Jsercy: \\"\\\\u0408\\", jsercy: \\"\\\\u0458\\", Jukcy: \\"\\\\u0404\\", jukcy: \\"\\\\u0454\\", Kappa: \\"\\\\u039A\\", kappa: \\"\\\\u03BA\\", kappav: \\"\\\\u03F0\\", Kcedil: \\"\\\\u0136\\", kcedil: \\"\\\\u0137\\", Kcy: \\"\\\\u041A\\", kcy: \\"\\\\u043A\\", Kfr: \\"\\\\u{1D50E}\\", kfr: \\"\\\\u{1D528}\\", kgreen: \\"\\\\u0138\\", KHcy: \\"\\\\u0425\\", khcy: \\"\\\\u0445\\", KJcy: \\"\\\\u040C\\", kjcy: \\"\\\\u045C\\", Kopf: \\"\\\\u{1D542}\\", kopf: \\"\\\\u{1D55C}\\", Kscr: \\"\\\\u{1D4A6}\\", kscr: \\"\\\\u{1D4C0}\\", lAarr: \\"\\\\u21DA\\", Lacute: \\"\\\\u0139\\", lacute: \\"\\\\u013A\\", laemptyv: \\"\\\\u29B4\\", lagran: \\"\\\\u2112\\", Lambda: \\"\\\\u039B\\", lambda: \\"\\\\u03BB\\", lang: \\"\\\\u27E8\\", Lang: \\"\\\\u27EA\\", langd: \\"\\\\u2991\\", langle: \\"\\\\u27E8\\", lap: \\"\\\\u2A85\\", Laplacetrf: \\"\\\\u2112\\", laquo: \\"\\\\xAB\\", larrb: \\"\\\\u21E4\\", larrbfs: \\"\\\\u291F\\", larr: \\"\\\\u2190\\", Larr: \\"\\\\u219E\\", lArr: \\"\\\\u21D0\\", larrfs: \\"\\\\u291D\\", larrhk: \\"\\\\u21A9\\", larrlp: \\"\\\\u21AB\\", larrpl: \\"\\\\u2939\\", larrsim: \\"\\\\u2973\\", larrtl: \\"\\\\u21A2\\", latail: \\"\\\\u2919\\", lAtail: \\"\\\\u291B\\", lat: \\"\\\\u2AAB\\", late: \\"\\\\u2AAD\\", lates: \\"\\\\u2AAD\\\\uFE00\\", lbarr: \\"\\\\u290C\\", lBarr: \\"\\\\u290E\\", lbbrk: \\"\\\\u2772\\", lbrace: \\"{\\", lbrack: \\"[\\", lbrke: \\"\\\\u298B\\", lbrksld: \\"\\\\u298F\\", lbrkslu: \\"\\\\u298D\\", Lcaron: \\"\\\\u013D\\", lcaron: \\"\\\\u013E\\", Lcedil: \\"\\\\u013B\\", lcedil: \\"\\\\u013C\\", lceil: \\"\\\\u2308\\", lcub: \\"{\\", Lcy: \\"\\\\u041B\\", lcy: \\"\\\\u043B\\", ldca: \\"\\\\u2936\\", ldquo: \\"\\\\u201C\\", ldquor: \\"\\\\u201E\\", ldrdhar: \\"\\\\u2967\\", ldrushar: \\"\\\\u294B\\", ldsh: \\"\\\\u21B2\\", le: \\"\\\\u2264\\", lE: \\"\\\\u2266\\", LeftAngleBracket: \\"\\\\u27E8\\", LeftArrowBar: \\"\\\\u21E4\\", leftarrow: \\"\\\\u2190\\", LeftArrow: \\"\\\\u2190\\", Leftarrow: \\"\\\\u21D0\\", LeftArrowRightArrow: \\"\\\\u21C6\\", leftarrowtail: \\"\\\\u21A2\\", LeftCeiling: \\"\\\\u2308\\", LeftDoubleBracket: \\"\\\\u27E6\\", LeftDownTeeVector: \\"\\\\u2961\\", LeftDownVectorBar: \\"\\\\u2959\\", LeftDownVector: \\"\\\\u21C3\\", LeftFloor: \\"\\\\u230A\\", leftharpoondown: \\"\\\\u21BD\\", leftharpoonup: \\"\\\\u21BC\\", leftleftarrows: \\"\\\\u21C7\\", leftrightarrow: \\"\\\\u2194\\", LeftRightArrow: \\"\\\\u2194\\", Leftrightarrow: \\"\\\\u21D4\\", leftrightarrows: \\"\\\\u21C6\\", leftrightharpoons: \\"\\\\u21CB\\", leftrightsquigarrow: \\"\\\\u21AD\\", LeftRightVector: \\"\\\\u294E\\", LeftTeeArrow: \\"\\\\u21A4\\", LeftTee: \\"\\\\u22A3\\", LeftTeeVector: \\"\\\\u295A\\", leftthreetimes: \\"\\\\u22CB\\", LeftTriangleBar: \\"\\\\u29CF\\", LeftTriangle: \\"\\\\u22B2\\", LeftTriangleEqual: \\"\\\\u22B4\\", LeftUpDownVector: \\"\\\\u2951\\", LeftUpTeeVector: \\"\\\\u2960\\", LeftUpVectorBar: \\"\\\\u2958\\", LeftUpVector: \\"\\\\u21BF\\", LeftVectorBar: \\"\\\\u2952\\", LeftVector: \\"\\\\u21BC\\", lEg: \\"\\\\u2A8B\\", leg: \\"\\\\u22DA\\", leq: \\"\\\\u2264\\", leqq: \\"\\\\u2266\\", leqslant: \\"\\\\u2A7D\\", lescc: \\"\\\\u2AA8\\", les: \\"\\\\u2A7D\\", lesdot: \\"\\\\u2A7F\\", lesdoto: \\"\\\\u2A81\\", lesdotor: \\"\\\\u2A83\\", lesg: \\"\\\\u22DA\\\\uFE00\\", lesges: \\"\\\\u2A93\\", lessapprox: \\"\\\\u2A85\\", lessdot: \\"\\\\u22D6\\", lesseqgtr: \\"\\\\u22DA\\", lesseqqgtr: \\"\\\\u2A8B\\", LessEqualGreater: \\"\\\\u22DA\\", LessFullEqual: \\"\\\\u2266\\", LessGreater: \\"\\\\u2276\\", lessgtr: \\"\\\\u2276\\", LessLess: \\"\\\\u2AA1\\", lesssim: \\"\\\\u2272\\", LessSlantEqual: \\"\\\\u2A7D\\", LessTilde: \\"\\\\u2272\\", lfisht: \\"\\\\u297C\\", lfloor: \\"\\\\u230A\\", Lfr: \\"\\\\u{1D50F}\\", lfr: \\"\\\\u{1D529}\\", lg: \\"\\\\u2276\\", lgE: \\"\\\\u2A91\\", lHar: \\"\\\\u2962\\", lhard: \\"\\\\u21BD\\", lharu: \\"\\\\u21BC\\", lharul: \\"\\\\u296A\\", lhblk: \\"\\\\u2584\\", LJcy: \\"\\\\u0409\\", ljcy: \\"\\\\u0459\\", llarr: \\"\\\\u21C7\\", ll: \\"\\\\u226A\\", Ll: \\"\\\\u22D8\\", llcorner: \\"\\\\u231E\\", Lleftarrow: \\"\\\\u21DA\\", llhard: \\"\\\\u296B\\", lltri: \\"\\\\u25FA\\", Lmidot: \\"\\\\u013F\\", lmidot: \\"\\\\u0140\\", lmoustache: \\"\\\\u23B0\\", lmoust: \\"\\\\u23B0\\", lnap: \\"\\\\u2A89\\", lnapprox: \\"\\\\u2A89\\", lne: \\"\\\\u2A87\\", lnE: \\"\\\\u2268\\", lneq: \\"\\\\u2A87\\", lneqq: \\"\\\\u2268\\", lnsim: \\"\\\\u22E6\\", loang: \\"\\\\u27EC\\", loarr: \\"\\\\u21FD\\", lobrk: \\"\\\\u27E6\\", longleftarrow: \\"\\\\u27F5\\", LongLeftArrow: \\"\\\\u27F5\\", Longleftarrow: \\"\\\\u27F8\\", longleftrightarrow: \\"\\\\u27F7\\", LongLeftRightArrow: \\"\\\\u27F7\\", Longleftrightarrow: \\"\\\\u27FA\\", longmapsto: \\"\\\\u27FC\\", longrightarrow: \\"\\\\u27F6\\", LongRightArrow: \\"\\\\u27F6\\", Longrightarrow: \\"\\\\u27F9\\", looparrowleft: \\"\\\\u21AB\\", looparrowright: \\"\\\\u21AC\\", lopar: \\"\\\\u2985\\", Lopf: \\"\\\\u{1D543}\\", lopf: \\"\\\\u{1D55D}\\", loplus: \\"\\\\u2A2D\\", lotimes: \\"\\\\u2A34\\", lowast: \\"\\\\u2217\\", lowbar: \\"_\\", LowerLeftArrow: \\"\\\\u2199\\", LowerRightArrow: \\"\\\\u2198\\", loz: \\"\\\\u25CA\\", lozenge: \\"\\\\u25CA\\", lozf: \\"\\\\u29EB\\", lpar: \\"(\\", lparlt: \\"\\\\u2993\\", lrarr: \\"\\\\u21C6\\", lrcorner: \\"\\\\u231F\\", lrhar: \\"\\\\u21CB\\", lrhard: \\"\\\\u296D\\", lrm: \\"\\\\u200E\\", lrtri: \\"\\\\u22BF\\", lsaquo: \\"\\\\u2039\\", lscr: \\"\\\\u{1D4C1}\\", Lscr: \\"\\\\u2112\\", lsh: \\"\\\\u21B0\\", Lsh: \\"\\\\u21B0\\", lsim: \\"\\\\u2272\\", lsime: \\"\\\\u2A8D\\", lsimg: \\"\\\\u2A8F\\", lsqb: \\"[\\", lsquo: \\"\\\\u2018\\", lsquor: \\"\\\\u201A\\", Lstrok: \\"\\\\u0141\\", lstrok: \\"\\\\u0142\\", ltcc: \\"\\\\u2AA6\\", ltcir: \\"\\\\u2A79\\", lt: \\"<\\", LT: \\"<\\", Lt: \\"\\\\u226A\\", ltdot: \\"\\\\u22D6\\", lthree: \\"\\\\u22CB\\", ltimes: \\"\\\\u22C9\\", ltlarr: \\"\\\\u2976\\", ltquest: \\"\\\\u2A7B\\", ltri: \\"\\\\u25C3\\", ltrie: \\"\\\\u22B4\\", ltrif: \\"\\\\u25C2\\", ltrPar: \\"\\\\u2996\\", lurdshar: \\"\\\\u294A\\", luruhar: \\"\\\\u2966\\", lvertneqq: \\"\\\\u2268\\\\uFE00\\", lvnE: \\"\\\\u2268\\\\uFE00\\", macr: \\"\\\\xAF\\", male: \\"\\\\u2642\\", malt: \\"\\\\u2720\\", maltese: \\"\\\\u2720\\", Map: \\"\\\\u2905\\", map: \\"\\\\u21A6\\", mapsto: \\"\\\\u21A6\\", mapstodown: \\"\\\\u21A7\\", mapstoleft: \\"\\\\u21A4\\", mapstoup: \\"\\\\u21A5\\", marker: \\"\\\\u25AE\\", mcomma: \\"\\\\u2A29\\", Mcy: \\"\\\\u041C\\", mcy: \\"\\\\u043C\\", mdash: \\"\\\\u2014\\", mDDot: \\"\\\\u223A\\", measuredangle: \\"\\\\u2221\\", MediumSpace: \\"\\\\u205F\\", Mellintrf: \\"\\\\u2133\\", Mfr: \\"\\\\u{1D510}\\", mfr: \\"\\\\u{1D52A}\\", mho: \\"\\\\u2127\\", micro: \\"\\\\xB5\\", midast: \\"*\\", midcir: \\"\\\\u2AF0\\", mid: \\"\\\\u2223\\", middot: \\"\\\\xB7\\", minusb: \\"\\\\u229F\\", minus: \\"\\\\u2212\\", minusd: \\"\\\\u2238\\", minusdu: \\"\\\\u2A2A\\", MinusPlus: \\"\\\\u2213\\", mlcp: \\"\\\\u2ADB\\", mldr: \\"\\\\u2026\\", mnplus: \\"\\\\u2213\\", models: \\"\\\\u22A7\\", Mopf: \\"\\\\u{1D544}\\", mopf: \\"\\\\u{1D55E}\\", mp: \\"\\\\u2213\\", mscr: \\"\\\\u{1D4C2}\\", Mscr: \\"\\\\u2133\\", mstpos: \\"\\\\u223E\\", Mu: \\"\\\\u039C\\", mu: \\"\\\\u03BC\\", multimap: \\"\\\\u22B8\\", mumap: \\"\\\\u22B8\\", nabla: \\"\\\\u2207\\", Nacute: \\"\\\\u0143\\", nacute: \\"\\\\u0144\\", nang: \\"\\\\u2220\\\\u20D2\\", nap: \\"\\\\u2249\\", napE: \\"\\\\u2A70\\\\u0338\\", napid: \\"\\\\u224B\\\\u0338\\", napos: \\"\\\\u0149\\", napprox: \\"\\\\u2249\\", natural: \\"\\\\u266E\\", naturals: \\"\\\\u2115\\", natur: \\"\\\\u266E\\", nbsp: \\"\\\\xA0\\", nbump: \\"\\\\u224E\\\\u0338\\", nbumpe: \\"\\\\u224F\\\\u0338\\", ncap: \\"\\\\u2A43\\", Ncaron: \\"\\\\u0147\\", ncaron: \\"\\\\u0148\\", Ncedil: \\"\\\\u0145\\", ncedil: \\"\\\\u0146\\", ncong: \\"\\\\u2247\\", ncongdot: \\"\\\\u2A6D\\\\u0338\\", ncup: \\"\\\\u2A42\\", Ncy: \\"\\\\u041D\\", ncy: \\"\\\\u043D\\", ndash: \\"\\\\u2013\\", nearhk: \\"\\\\u2924\\", nearr: \\"\\\\u2197\\", neArr: \\"\\\\u21D7\\", nearrow: \\"\\\\u2197\\", ne: \\"\\\\u2260\\", nedot: \\"\\\\u2250\\\\u0338\\", NegativeMediumSpace: \\"\\\\u200B\\", NegativeThickSpace: \\"\\\\u200B\\", NegativeThinSpace: \\"\\\\u200B\\", NegativeVeryThinSpace: \\"\\\\u200B\\", nequiv: \\"\\\\u2262\\", nesear: \\"\\\\u2928\\", nesim: \\"\\\\u2242\\\\u0338\\", NestedGreaterGreater: \\"\\\\u226B\\", NestedLessLess: \\"\\\\u226A\\", NewLine: \\"\\\\n\\", nexist: \\"\\\\u2204\\", nexists: \\"\\\\u2204\\", Nfr: \\"\\\\u{1D511}\\", nfr: \\"\\\\u{1D52B}\\", ngE: \\"\\\\u2267\\\\u0338\\", nge: \\"\\\\u2271\\", ngeq: \\"\\\\u2271\\", ngeqq: \\"\\\\u2267\\\\u0338\\", ngeqslant: \\"\\\\u2A7E\\\\u0338\\", nges: \\"\\\\u2A7E\\\\u0338\\", nGg: \\"\\\\u22D9\\\\u0338\\", ngsim: \\"\\\\u2275\\", nGt: \\"\\\\u226B\\\\u20D2\\", ngt: \\"\\\\u226F\\", ngtr: \\"\\\\u226F\\", nGtv: \\"\\\\u226B\\\\u0338\\", nharr: \\"\\\\u21AE\\", nhArr: \\"\\\\u21CE\\", nhpar: \\"\\\\u2AF2\\", ni: \\"\\\\u220B\\", nis: \\"\\\\u22FC\\", nisd: \\"\\\\u22FA\\", niv: \\"\\\\u220B\\", NJcy: \\"\\\\u040A\\", njcy: \\"\\\\u045A\\", nlarr: \\"\\\\u219A\\", nlArr: \\"\\\\u21CD\\", nldr: \\"\\\\u2025\\", nlE: \\"\\\\u2266\\\\u0338\\", nle: \\"\\\\u2270\\", nleftarrow: \\"\\\\u219A\\", nLeftarrow: \\"\\\\u21CD\\", nleftrightarrow: \\"\\\\u21AE\\", nLeftrightarrow: \\"\\\\u21CE\\", nleq: \\"\\\\u2270\\", nleqq: \\"\\\\u2266\\\\u0338\\", nleqslant: \\"\\\\u2A7D\\\\u0338\\", nles: \\"\\\\u2A7D\\\\u0338\\", nless: \\"\\\\u226E\\", nLl: \\"\\\\u22D8\\\\u0338\\", nlsim: \\"\\\\u2274\\", nLt: \\"\\\\u226A\\\\u20D2\\", nlt: \\"\\\\u226E\\", nltri: \\"\\\\u22EA\\", nltrie: \\"\\\\u22EC\\", nLtv: \\"\\\\u226A\\\\u0338\\", nmid: \\"\\\\u2224\\", NoBreak: \\"\\\\u2060\\", NonBreakingSpace: \\"\\\\xA0\\", nopf: \\"\\\\u{1D55F}\\", Nopf: \\"\\\\u2115\\", Not: \\"\\\\u2AEC\\", not: \\"\\\\xAC\\", NotCongruent: \\"\\\\u2262\\", NotCupCap: \\"\\\\u226D\\", NotDoubleVerticalBar: \\"\\\\u2226\\", NotElement: \\"\\\\u2209\\", NotEqual: \\"\\\\u2260\\", NotEqualTilde: \\"\\\\u2242\\\\u0338\\", NotExists: \\"\\\\u2204\\", NotGreater: \\"\\\\u226F\\", NotGreaterEqual: \\"\\\\u2271\\", NotGreaterFullEqual: \\"\\\\u2267\\\\u0338\\", NotGreaterGreater: \\"\\\\u226B\\\\u0338\\", NotGreaterLess: \\"\\\\u2279\\", NotGreaterSlantEqual: \\"\\\\u2A7E\\\\u0338\\", NotGreaterTilde: \\"\\\\u2275\\", NotHumpDownHump: \\"\\\\u224E\\\\u0338\\", NotHumpEqual: \\"\\\\u224F\\\\u0338\\", notin: \\"\\\\u2209\\", notindot: \\"\\\\u22F5\\\\u0338\\", notinE: \\"\\\\u22F9\\\\u0338\\", notinva: \\"\\\\u2209\\", notinvb: \\"\\\\u22F7\\", notinvc: \\"\\\\u22F6\\", NotLeftTriangleBar: \\"\\\\u29CF\\\\u0338\\", NotLeftTriangle: \\"\\\\u22EA\\", NotLeftTriangleEqual: \\"\\\\u22EC\\", NotLess: \\"\\\\u226E\\", NotLessEqual: \\"\\\\u2270\\", NotLessGreater: \\"\\\\u2278\\", NotLessLess: \\"\\\\u226A\\\\u0338\\", NotLessSlantEqual: \\"\\\\u2A7D\\\\u0338\\", NotLessTilde: \\"\\\\u2274\\", NotNestedGreaterGreater: \\"\\\\u2AA2\\\\u0338\\", NotNestedLessLess: \\"\\\\u2AA1\\\\u0338\\", notni: \\"\\\\u220C\\", notniva: \\"\\\\u220C\\", notnivb: \\"\\\\u22FE\\", notnivc: \\"\\\\u22FD\\", NotPrecedes: \\"\\\\u2280\\", NotPrecedesEqual: \\"\\\\u2AAF\\\\u0338\\", NotPrecedesSlantEqual: \\"\\\\u22E0\\", NotReverseElement: \\"\\\\u220C\\", NotRightTriangleBar: \\"\\\\u29D0\\\\u0338\\", NotRightTriangle: \\"\\\\u22EB\\", NotRightTriangleEqual: \\"\\\\u22ED\\", NotSquareSubset: \\"\\\\u228F\\\\u0338\\", NotSquareSubsetEqual: \\"\\\\u22E2\\", NotSquareSuperset: \\"\\\\u2290\\\\u0338\\", NotSquareSupersetEqual: \\"\\\\u22E3\\", NotSubset: \\"\\\\u2282\\\\u20D2\\", NotSubsetEqual: \\"\\\\u2288\\", NotSucceeds: \\"\\\\u2281\\", NotSucceedsEqual: \\"\\\\u2AB0\\\\u0338\\", NotSucceedsSlantEqual: \\"\\\\u22E1\\", NotSucceedsTilde: \\"\\\\u227F\\\\u0338\\", NotSuperset: \\"\\\\u2283\\\\u20D2\\", NotSupersetEqual: \\"\\\\u2289\\", NotTilde: \\"\\\\u2241\\", NotTildeEqual: \\"\\\\u2244\\", NotTildeFullEqual: \\"\\\\u2247\\", NotTildeTilde: \\"\\\\u2249\\", NotVerticalBar: \\"\\\\u2224\\", nparallel: \\"\\\\u2226\\", npar: \\"\\\\u2226\\", nparsl: \\"\\\\u2AFD\\\\u20E5\\", npart: \\"\\\\u2202\\\\u0338\\", npolint: \\"\\\\u2A14\\", npr: \\"\\\\u2280\\", nprcue: \\"\\\\u22E0\\", nprec: \\"\\\\u2280\\", npreceq: \\"\\\\u2AAF\\\\u0338\\", npre: \\"\\\\u2AAF\\\\u0338\\", nrarrc: \\"\\\\u2933\\\\u0338\\", nrarr: \\"\\\\u219B\\", nrArr: \\"\\\\u21CF\\", nrarrw: \\"\\\\u219D\\\\u0338\\", nrightarrow: \\"\\\\u219B\\", nRightarrow: \\"\\\\u21CF\\", nrtri: \\"\\\\u22EB\\", nrtrie: \\"\\\\u22ED\\", nsc: \\"\\\\u2281\\", nsccue: \\"\\\\u22E1\\", nsce: \\"\\\\u2AB0\\\\u0338\\", Nscr: \\"\\\\u{1D4A9}\\", nscr: \\"\\\\u{1D4C3}\\", nshortmid: \\"\\\\u2224\\", nshortparallel: \\"\\\\u2226\\", nsim: \\"\\\\u2241\\", nsime: \\"\\\\u2244\\", nsimeq: \\"\\\\u2244\\", nsmid: \\"\\\\u2224\\", nspar: \\"\\\\u2226\\", nsqsube: \\"\\\\u22E2\\", nsqsupe: \\"\\\\u22E3\\", nsub: \\"\\\\u2284\\", nsubE: \\"\\\\u2AC5\\\\u0338\\", nsube: \\"\\\\u2288\\", nsubset: \\"\\\\u2282\\\\u20D2\\", nsubseteq: \\"\\\\u2288\\", nsubseteqq: \\"\\\\u2AC5\\\\u0338\\", nsucc: \\"\\\\u2281\\", nsucceq: \\"\\\\u2AB0\\\\u0338\\", nsup: \\"\\\\u2285\\", nsupE: \\"\\\\u2AC6\\\\u0338\\", nsupe: \\"\\\\u2289\\", nsupset: \\"\\\\u2283\\\\u20D2\\", nsupseteq: \\"\\\\u2289\\", nsupseteqq: \\"\\\\u2AC6\\\\u0338\\", ntgl: \\"\\\\u2279\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", ntlg: \\"\\\\u2278\\", ntriangleleft: \\"\\\\u22EA\\", ntrianglelefteq: \\"\\\\u22EC\\", ntriangleright: \\"\\\\u22EB\\", ntrianglerighteq: \\"\\\\u22ED\\", Nu: \\"\\\\u039D\\", nu: \\"\\\\u03BD\\", num: \\"#\\", numero: \\"\\\\u2116\\", numsp: \\"\\\\u2007\\", nvap: \\"\\\\u224D\\\\u20D2\\", nvdash: \\"\\\\u22AC\\", nvDash: \\"\\\\u22AD\\", nVdash: \\"\\\\u22AE\\", nVDash: \\"\\\\u22AF\\", nvge: \\"\\\\u2265\\\\u20D2\\", nvgt: \\">\\\\u20D2\\", nvHarr: \\"\\\\u2904\\", nvinfin: \\"\\\\u29DE\\", nvlArr: \\"\\\\u2902\\", nvle: \\"\\\\u2264\\\\u20D2\\", nvlt: \\"<\\\\u20D2\\", nvltrie: \\"\\\\u22B4\\\\u20D2\\", nvrArr: \\"\\\\u2903\\", nvrtrie: \\"\\\\u22B5\\\\u20D2\\", nvsim: \\"\\\\u223C\\\\u20D2\\", nwarhk: \\"\\\\u2923\\", nwarr: \\"\\\\u2196\\", nwArr: \\"\\\\u21D6\\", nwarrow: \\"\\\\u2196\\", nwnear: \\"\\\\u2927\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", oast: \\"\\\\u229B\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", ocir: \\"\\\\u229A\\", Ocy: \\"\\\\u041E\\", ocy: \\"\\\\u043E\\", odash: \\"\\\\u229D\\", Odblac: \\"\\\\u0150\\", odblac: \\"\\\\u0151\\", odiv: \\"\\\\u2A38\\", odot: \\"\\\\u2299\\", odsold: \\"\\\\u29BC\\", OElig: \\"\\\\u0152\\", oelig: \\"\\\\u0153\\", ofcir: \\"\\\\u29BF\\", Ofr: \\"\\\\u{1D512}\\", ofr: \\"\\\\u{1D52C}\\", ogon: \\"\\\\u02DB\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ogt: \\"\\\\u29C1\\", ohbar: \\"\\\\u29B5\\", ohm: \\"\\\\u03A9\\", oint: \\"\\\\u222E\\", olarr: \\"\\\\u21BA\\", olcir: \\"\\\\u29BE\\", olcross: \\"\\\\u29BB\\", oline: \\"\\\\u203E\\", olt: \\"\\\\u29C0\\", Omacr: \\"\\\\u014C\\", omacr: \\"\\\\u014D\\", Omega: \\"\\\\u03A9\\", omega: \\"\\\\u03C9\\", Omicron: \\"\\\\u039F\\", omicron: \\"\\\\u03BF\\", omid: \\"\\\\u29B6\\", ominus: \\"\\\\u2296\\", Oopf: \\"\\\\u{1D546}\\", oopf: \\"\\\\u{1D560}\\", opar: \\"\\\\u29B7\\", OpenCurlyDoubleQuote: \\"\\\\u201C\\", OpenCurlyQuote: \\"\\\\u2018\\", operp: \\"\\\\u29B9\\", oplus: \\"\\\\u2295\\", orarr: \\"\\\\u21BB\\", Or: \\"\\\\u2A54\\", or: \\"\\\\u2228\\", ord: \\"\\\\u2A5D\\", order: \\"\\\\u2134\\", orderof: \\"\\\\u2134\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", origof: \\"\\\\u22B6\\", oror: \\"\\\\u2A56\\", orslope: \\"\\\\u2A57\\", orv: \\"\\\\u2A5B\\", oS: \\"\\\\u24C8\\", Oscr: \\"\\\\u{1D4AA}\\", oscr: \\"\\\\u2134\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", osol: \\"\\\\u2298\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", otimesas: \\"\\\\u2A36\\", Otimes: \\"\\\\u2A37\\", otimes: \\"\\\\u2297\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", ovbar: \\"\\\\u233D\\", OverBar: \\"\\\\u203E\\", OverBrace: \\"\\\\u23DE\\", OverBracket: \\"\\\\u23B4\\", OverParenthesis: \\"\\\\u23DC\\", para: \\"\\\\xB6\\", parallel: \\"\\\\u2225\\", par: \\"\\\\u2225\\", parsim: \\"\\\\u2AF3\\", parsl: \\"\\\\u2AFD\\", part: \\"\\\\u2202\\", PartialD: \\"\\\\u2202\\", Pcy: \\"\\\\u041F\\", pcy: \\"\\\\u043F\\", percnt: \\"%\\", period: \\".\\", permil: \\"\\\\u2030\\", perp: \\"\\\\u22A5\\", pertenk: \\"\\\\u2031\\", Pfr: \\"\\\\u{1D513}\\", pfr: \\"\\\\u{1D52D}\\", Phi: \\"\\\\u03A6\\", phi: \\"\\\\u03C6\\", phiv: \\"\\\\u03D5\\", phmmat: \\"\\\\u2133\\", phone: \\"\\\\u260E\\", Pi: \\"\\\\u03A0\\", pi: \\"\\\\u03C0\\", pitchfork: \\"\\\\u22D4\\", piv: \\"\\\\u03D6\\", planck: \\"\\\\u210F\\", planckh: \\"\\\\u210E\\", plankv: \\"\\\\u210F\\", plusacir: \\"\\\\u2A23\\", plusb: \\"\\\\u229E\\", pluscir: \\"\\\\u2A22\\", plus: \\"+\\", plusdo: \\"\\\\u2214\\", plusdu: \\"\\\\u2A25\\", pluse: \\"\\\\u2A72\\", PlusMinus: \\"\\\\xB1\\", plusmn: \\"\\\\xB1\\", plussim: \\"\\\\u2A26\\", plustwo: \\"\\\\u2A27\\", pm: \\"\\\\xB1\\", Poincareplane: \\"\\\\u210C\\", pointint: \\"\\\\u2A15\\", popf: \\"\\\\u{1D561}\\", Popf: \\"\\\\u2119\\", pound: \\"\\\\xA3\\", prap: \\"\\\\u2AB7\\", Pr: \\"\\\\u2ABB\\", pr: \\"\\\\u227A\\", prcue: \\"\\\\u227C\\", precapprox: \\"\\\\u2AB7\\", prec: \\"\\\\u227A\\", preccurlyeq: \\"\\\\u227C\\", Precedes: \\"\\\\u227A\\", PrecedesEqual: \\"\\\\u2AAF\\", PrecedesSlantEqual: \\"\\\\u227C\\", PrecedesTilde: \\"\\\\u227E\\", preceq: \\"\\\\u2AAF\\", precnapprox: \\"\\\\u2AB9\\", precneqq: \\"\\\\u2AB5\\", precnsim: \\"\\\\u22E8\\", pre: \\"\\\\u2AAF\\", prE: \\"\\\\u2AB3\\", precsim: \\"\\\\u227E\\", prime: \\"\\\\u2032\\", Prime: \\"\\\\u2033\\", primes: \\"\\\\u2119\\", prnap: \\"\\\\u2AB9\\", prnE: \\"\\\\u2AB5\\", prnsim: \\"\\\\u22E8\\", prod: \\"\\\\u220F\\", Product: \\"\\\\u220F\\", profalar: \\"\\\\u232E\\", profline: \\"\\\\u2312\\", profsurf: \\"\\\\u2313\\", prop: \\"\\\\u221D\\", Proportional: \\"\\\\u221D\\", Proportion: \\"\\\\u2237\\", propto: \\"\\\\u221D\\", prsim: \\"\\\\u227E\\", prurel: \\"\\\\u22B0\\", Pscr: \\"\\\\u{1D4AB}\\", pscr: \\"\\\\u{1D4C5}\\", Psi: \\"\\\\u03A8\\", psi: \\"\\\\u03C8\\", puncsp: \\"\\\\u2008\\", Qfr: \\"\\\\u{1D514}\\", qfr: \\"\\\\u{1D52E}\\", qint: \\"\\\\u2A0C\\", qopf: \\"\\\\u{1D562}\\", Qopf: \\"\\\\u211A\\", qprime: \\"\\\\u2057\\", Qscr: \\"\\\\u{1D4AC}\\", qscr: \\"\\\\u{1D4C6}\\", quaternions: \\"\\\\u210D\\", quatint: \\"\\\\u2A16\\", quest: \\"?\\", questeq: \\"\\\\u225F\\", quot: '\\"', QUOT: '\\"', rAarr: \\"\\\\u21DB\\", race: \\"\\\\u223D\\\\u0331\\", Racute: \\"\\\\u0154\\", racute: \\"\\\\u0155\\", radic: \\"\\\\u221A\\", raemptyv: \\"\\\\u29B3\\", rang: \\"\\\\u27E9\\", Rang: \\"\\\\u27EB\\", rangd: \\"\\\\u2992\\", range: \\"\\\\u29A5\\", rangle: \\"\\\\u27E9\\", raquo: \\"\\\\xBB\\", rarrap: \\"\\\\u2975\\", rarrb: \\"\\\\u21E5\\", rarrbfs: \\"\\\\u2920\\", rarrc: \\"\\\\u2933\\", rarr: \\"\\\\u2192\\", Rarr: \\"\\\\u21A0\\", rArr: \\"\\\\u21D2\\", rarrfs: \\"\\\\u291E\\", rarrhk: \\"\\\\u21AA\\", rarrlp: \\"\\\\u21AC\\", rarrpl: \\"\\\\u2945\\", rarrsim: \\"\\\\u2974\\", Rarrtl: \\"\\\\u2916\\", rarrtl: \\"\\\\u21A3\\", rarrw: \\"\\\\u219D\\", ratail: \\"\\\\u291A\\", rAtail: \\"\\\\u291C\\", ratio: \\"\\\\u2236\\", rationals: \\"\\\\u211A\\", rbarr: \\"\\\\u290D\\", rBarr: \\"\\\\u290F\\", RBarr: \\"\\\\u2910\\", rbbrk: \\"\\\\u2773\\", rbrace: \\"}\\", rbrack: \\"]\\", rbrke: \\"\\\\u298C\\", rbrksld: \\"\\\\u298E\\", rbrkslu: \\"\\\\u2990\\", Rcaron: \\"\\\\u0158\\", rcaron: \\"\\\\u0159\\", Rcedil: \\"\\\\u0156\\", rcedil: \\"\\\\u0157\\", rceil: \\"\\\\u2309\\", rcub: \\"}\\", Rcy: \\"\\\\u0420\\", rcy: \\"\\\\u0440\\", rdca: \\"\\\\u2937\\", rdldhar: \\"\\\\u2969\\", rdquo: \\"\\\\u201D\\", rdquor: \\"\\\\u201D\\", rdsh: \\"\\\\u21B3\\", real: \\"\\\\u211C\\", realine: \\"\\\\u211B\\", realpart: \\"\\\\u211C\\", reals: \\"\\\\u211D\\", Re: \\"\\\\u211C\\", rect: \\"\\\\u25AD\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", ReverseElement: \\"\\\\u220B\\", ReverseEquilibrium: \\"\\\\u21CB\\", ReverseUpEquilibrium: \\"\\\\u296F\\", rfisht: \\"\\\\u297D\\", rfloor: \\"\\\\u230B\\", rfr: \\"\\\\u{1D52F}\\", Rfr: \\"\\\\u211C\\", rHar: \\"\\\\u2964\\", rhard: \\"\\\\u21C1\\", rharu: \\"\\\\u21C0\\", rharul: \\"\\\\u296C\\", Rho: \\"\\\\u03A1\\", rho: \\"\\\\u03C1\\", rhov: \\"\\\\u03F1\\", RightAngleBracket: \\"\\\\u27E9\\", RightArrowBar: \\"\\\\u21E5\\", rightarrow: \\"\\\\u2192\\", RightArrow: \\"\\\\u2192\\", Rightarrow: \\"\\\\u21D2\\", RightArrowLeftArrow: \\"\\\\u21C4\\", rightarrowtail: \\"\\\\u21A3\\", RightCeiling: \\"\\\\u2309\\", RightDoubleBracket: \\"\\\\u27E7\\", RightDownTeeVector: \\"\\\\u295D\\", RightDownVectorBar: \\"\\\\u2955\\", RightDownVector: \\"\\\\u21C2\\", RightFloor: \\"\\\\u230B\\", rightharpoondown: \\"\\\\u21C1\\", rightharpoonup: \\"\\\\u21C0\\", rightleftarrows: \\"\\\\u21C4\\", rightleftharpoons: \\"\\\\u21CC\\", rightrightarrows: \\"\\\\u21C9\\", rightsquigarrow: \\"\\\\u219D\\", RightTeeArrow: \\"\\\\u21A6\\", RightTee: \\"\\\\u22A2\\", RightTeeVector: \\"\\\\u295B\\", rightthreetimes: \\"\\\\u22CC\\", RightTriangleBar: \\"\\\\u29D0\\", RightTriangle: \\"\\\\u22B3\\", RightTriangleEqual: \\"\\\\u22B5\\", RightUpDownVector: \\"\\\\u294F\\", RightUpTeeVector: \\"\\\\u295C\\", RightUpVectorBar: \\"\\\\u2954\\", RightUpVector: \\"\\\\u21BE\\", RightVectorBar: \\"\\\\u2953\\", RightVector: \\"\\\\u21C0\\", ring: \\"\\\\u02DA\\", risingdotseq: \\"\\\\u2253\\", rlarr: \\"\\\\u21C4\\", rlhar: \\"\\\\u21CC\\", rlm: \\"\\\\u200F\\", rmoustache: \\"\\\\u23B1\\", rmoust: \\"\\\\u23B1\\", rnmid: \\"\\\\u2AEE\\", roang: \\"\\\\u27ED\\", roarr: \\"\\\\u21FE\\", robrk: \\"\\\\u27E7\\", ropar: \\"\\\\u2986\\", ropf: \\"\\\\u{1D563}\\", Ropf: \\"\\\\u211D\\", roplus: \\"\\\\u2A2E\\", rotimes: \\"\\\\u2A35\\", RoundImplies: \\"\\\\u2970\\", rpar: \\")\\", rpargt: \\"\\\\u2994\\", rppolint: \\"\\\\u2A12\\", rrarr: \\"\\\\u21C9\\", Rrightarrow: \\"\\\\u21DB\\", rsaquo: \\"\\\\u203A\\", rscr: \\"\\\\u{1D4C7}\\", Rscr: \\"\\\\u211B\\", rsh: \\"\\\\u21B1\\", Rsh: \\"\\\\u21B1\\", rsqb: \\"]\\", rsquo: \\"\\\\u2019\\", rsquor: \\"\\\\u2019\\", rthree: \\"\\\\u22CC\\", rtimes: \\"\\\\u22CA\\", rtri: \\"\\\\u25B9\\", rtrie: \\"\\\\u22B5\\", rtrif: \\"\\\\u25B8\\", rtriltri: \\"\\\\u29CE\\", RuleDelayed: \\"\\\\u29F4\\", ruluhar: \\"\\\\u2968\\", rx: \\"\\\\u211E\\", Sacute: \\"\\\\u015A\\", sacute: \\"\\\\u015B\\", sbquo: \\"\\\\u201A\\", scap: \\"\\\\u2AB8\\", Scaron: \\"\\\\u0160\\", scaron: \\"\\\\u0161\\", Sc: \\"\\\\u2ABC\\", sc: \\"\\\\u227B\\", sccue: \\"\\\\u227D\\", sce: \\"\\\\u2AB0\\", scE: \\"\\\\u2AB4\\", Scedil: \\"\\\\u015E\\", scedil: \\"\\\\u015F\\", Scirc: \\"\\\\u015C\\", scirc: \\"\\\\u015D\\", scnap: \\"\\\\u2ABA\\", scnE: \\"\\\\u2AB6\\", scnsim: \\"\\\\u22E9\\", scpolint: \\"\\\\u2A13\\", scsim: \\"\\\\u227F\\", Scy: \\"\\\\u0421\\", scy: \\"\\\\u0441\\", sdotb: \\"\\\\u22A1\\", sdot: \\"\\\\u22C5\\", sdote: \\"\\\\u2A66\\", searhk: \\"\\\\u2925\\", searr: \\"\\\\u2198\\", seArr: \\"\\\\u21D8\\", searrow: \\"\\\\u2198\\", sect: \\"\\\\xA7\\", semi: \\";\\", seswar: \\"\\\\u2929\\", setminus: \\"\\\\u2216\\", setmn: \\"\\\\u2216\\", sext: \\"\\\\u2736\\", Sfr: \\"\\\\u{1D516}\\", sfr: \\"\\\\u{1D530}\\", sfrown: \\"\\\\u2322\\", sharp: \\"\\\\u266F\\", SHCHcy: \\"\\\\u0429\\", shchcy: \\"\\\\u0449\\", SHcy: \\"\\\\u0428\\", shcy: \\"\\\\u0448\\", ShortDownArrow: \\"\\\\u2193\\", ShortLeftArrow: \\"\\\\u2190\\", shortmid: \\"\\\\u2223\\", shortparallel: \\"\\\\u2225\\", ShortRightArrow: \\"\\\\u2192\\", ShortUpArrow: \\"\\\\u2191\\", shy: \\"\\\\xAD\\", Sigma: \\"\\\\u03A3\\", sigma: \\"\\\\u03C3\\", sigmaf: \\"\\\\u03C2\\", sigmav: \\"\\\\u03C2\\", sim: \\"\\\\u223C\\", simdot: \\"\\\\u2A6A\\", sime: \\"\\\\u2243\\", simeq: \\"\\\\u2243\\", simg: \\"\\\\u2A9E\\", simgE: \\"\\\\u2AA0\\", siml: \\"\\\\u2A9D\\", simlE: \\"\\\\u2A9F\\", simne: \\"\\\\u2246\\", simplus: \\"\\\\u2A24\\", simrarr: \\"\\\\u2972\\", slarr: \\"\\\\u2190\\", SmallCircle: \\"\\\\u2218\\", smallsetminus: \\"\\\\u2216\\", smashp: \\"\\\\u2A33\\", smeparsl: \\"\\\\u29E4\\", smid: \\"\\\\u2223\\", smile: \\"\\\\u2323\\", smt: \\"\\\\u2AAA\\", smte: \\"\\\\u2AAC\\", smtes: \\"\\\\u2AAC\\\\uFE00\\", SOFTcy: \\"\\\\u042C\\", softcy: \\"\\\\u044C\\", solbar: \\"\\\\u233F\\", solb: \\"\\\\u29C4\\", sol: \\"/\\", Sopf: \\"\\\\u{1D54A}\\", sopf: \\"\\\\u{1D564}\\", spades: \\"\\\\u2660\\", spadesuit: \\"\\\\u2660\\", spar: \\"\\\\u2225\\", sqcap: \\"\\\\u2293\\", sqcaps: \\"\\\\u2293\\\\uFE00\\", sqcup: \\"\\\\u2294\\", sqcups: \\"\\\\u2294\\\\uFE00\\", Sqrt: \\"\\\\u221A\\", sqsub: \\"\\\\u228F\\", sqsube: \\"\\\\u2291\\", sqsubset: \\"\\\\u228F\\", sqsubseteq: \\"\\\\u2291\\", sqsup: \\"\\\\u2290\\", sqsupe: \\"\\\\u2292\\", sqsupset: \\"\\\\u2290\\", sqsupseteq: \\"\\\\u2292\\", square: \\"\\\\u25A1\\", Square: \\"\\\\u25A1\\", SquareIntersection: \\"\\\\u2293\\", SquareSubset: \\"\\\\u228F\\", SquareSubsetEqual: \\"\\\\u2291\\", SquareSuperset: \\"\\\\u2290\\", SquareSupersetEqual: \\"\\\\u2292\\", SquareUnion: \\"\\\\u2294\\", squarf: \\"\\\\u25AA\\", squ: \\"\\\\u25A1\\", squf: \\"\\\\u25AA\\", srarr: \\"\\\\u2192\\", Sscr: \\"\\\\u{1D4AE}\\", sscr: \\"\\\\u{1D4C8}\\", ssetmn: \\"\\\\u2216\\", ssmile: \\"\\\\u2323\\", sstarf: \\"\\\\u22C6\\", Star: \\"\\\\u22C6\\", star: \\"\\\\u2606\\", starf: \\"\\\\u2605\\", straightepsilon: \\"\\\\u03F5\\", straightphi: \\"\\\\u03D5\\", strns: \\"\\\\xAF\\", sub: \\"\\\\u2282\\", Sub: \\"\\\\u22D0\\", subdot: \\"\\\\u2ABD\\", subE: \\"\\\\u2AC5\\", sube: \\"\\\\u2286\\", subedot: \\"\\\\u2AC3\\", submult: \\"\\\\u2AC1\\", subnE: \\"\\\\u2ACB\\", subne: \\"\\\\u228A\\", subplus: \\"\\\\u2ABF\\", subrarr: \\"\\\\u2979\\", subset: \\"\\\\u2282\\", Subset: \\"\\\\u22D0\\", subseteq: \\"\\\\u2286\\", subseteqq: \\"\\\\u2AC5\\", SubsetEqual: \\"\\\\u2286\\", subsetneq: \\"\\\\u228A\\", subsetneqq: \\"\\\\u2ACB\\", subsim: \\"\\\\u2AC7\\", subsub: \\"\\\\u2AD5\\", subsup: \\"\\\\u2AD3\\", succapprox: \\"\\\\u2AB8\\", succ: \\"\\\\u227B\\", succcurlyeq: \\"\\\\u227D\\", Succeeds: \\"\\\\u227B\\", SucceedsEqual: \\"\\\\u2AB0\\", SucceedsSlantEqual: \\"\\\\u227D\\", SucceedsTilde: \\"\\\\u227F\\", succeq: \\"\\\\u2AB0\\", succnapprox: \\"\\\\u2ABA\\", succneqq: \\"\\\\u2AB6\\", succnsim: \\"\\\\u22E9\\", succsim: \\"\\\\u227F\\", SuchThat: \\"\\\\u220B\\", sum: \\"\\\\u2211\\", Sum: \\"\\\\u2211\\", sung: \\"\\\\u266A\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", sup: \\"\\\\u2283\\", Sup: \\"\\\\u22D1\\", supdot: \\"\\\\u2ABE\\", supdsub: \\"\\\\u2AD8\\", supE: \\"\\\\u2AC6\\", supe: \\"\\\\u2287\\", supedot: \\"\\\\u2AC4\\", Superset: \\"\\\\u2283\\", SupersetEqual: \\"\\\\u2287\\", suphsol: \\"\\\\u27C9\\", suphsub: \\"\\\\u2AD7\\", suplarr: \\"\\\\u297B\\", supmult: \\"\\\\u2AC2\\", supnE: \\"\\\\u2ACC\\", supne: \\"\\\\u228B\\", supplus: \\"\\\\u2AC0\\", supset: \\"\\\\u2283\\", Supset: \\"\\\\u22D1\\", supseteq: \\"\\\\u2287\\", supseteqq: \\"\\\\u2AC6\\", supsetneq: \\"\\\\u228B\\", supsetneqq: \\"\\\\u2ACC\\", supsim: \\"\\\\u2AC8\\", supsub: \\"\\\\u2AD4\\", supsup: \\"\\\\u2AD6\\", swarhk: \\"\\\\u2926\\", swarr: \\"\\\\u2199\\", swArr: \\"\\\\u21D9\\", swarrow: \\"\\\\u2199\\", swnwar: \\"\\\\u292A\\", szlig: \\"\\\\xDF\\", Tab: \\" \\", target: \\"\\\\u2316\\", Tau: \\"\\\\u03A4\\", tau: \\"\\\\u03C4\\", tbrk: \\"\\\\u23B4\\", Tcaron: \\"\\\\u0164\\", tcaron: \\"\\\\u0165\\", Tcedil: \\"\\\\u0162\\", tcedil: \\"\\\\u0163\\", Tcy: \\"\\\\u0422\\", tcy: \\"\\\\u0442\\", tdot: \\"\\\\u20DB\\", telrec: \\"\\\\u2315\\", Tfr: \\"\\\\u{1D517}\\", tfr: \\"\\\\u{1D531}\\", there4: \\"\\\\u2234\\", therefore: \\"\\\\u2234\\", Therefore: \\"\\\\u2234\\", Theta: \\"\\\\u0398\\", theta: \\"\\\\u03B8\\", thetasym: \\"\\\\u03D1\\", thetav: \\"\\\\u03D1\\", thickapprox: \\"\\\\u2248\\", thicksim: \\"\\\\u223C\\", ThickSpace: \\"\\\\u205F\\\\u200A\\", ThinSpace: \\"\\\\u2009\\", thinsp: \\"\\\\u2009\\", thkap: \\"\\\\u2248\\", thksim: \\"\\\\u223C\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", tilde: \\"\\\\u02DC\\", Tilde: \\"\\\\u223C\\", TildeEqual: \\"\\\\u2243\\", TildeFullEqual: \\"\\\\u2245\\", TildeTilde: \\"\\\\u2248\\", timesbar: \\"\\\\u2A31\\", timesb: \\"\\\\u22A0\\", times: \\"\\\\xD7\\", timesd: \\"\\\\u2A30\\", tint: \\"\\\\u222D\\", toea: \\"\\\\u2928\\", topbot: \\"\\\\u2336\\", topcir: \\"\\\\u2AF1\\", top: \\"\\\\u22A4\\", Topf: \\"\\\\u{1D54B}\\", topf: \\"\\\\u{1D565}\\", topfork: \\"\\\\u2ADA\\", tosa: \\"\\\\u2929\\", tprime: \\"\\\\u2034\\", trade: \\"\\\\u2122\\", TRADE: \\"\\\\u2122\\", triangle: \\"\\\\u25B5\\", triangledown: \\"\\\\u25BF\\", triangleleft: \\"\\\\u25C3\\", trianglelefteq: \\"\\\\u22B4\\", triangleq: \\"\\\\u225C\\", triangleright: \\"\\\\u25B9\\", trianglerighteq: \\"\\\\u22B5\\", tridot: \\"\\\\u25EC\\", trie: \\"\\\\u225C\\", triminus: \\"\\\\u2A3A\\", TripleDot: \\"\\\\u20DB\\", triplus: \\"\\\\u2A39\\", trisb: \\"\\\\u29CD\\", tritime: \\"\\\\u2A3B\\", trpezium: \\"\\\\u23E2\\", Tscr: \\"\\\\u{1D4AF}\\", tscr: \\"\\\\u{1D4C9}\\", TScy: \\"\\\\u0426\\", tscy: \\"\\\\u0446\\", TSHcy: \\"\\\\u040B\\", tshcy: \\"\\\\u045B\\", Tstrok: \\"\\\\u0166\\", tstrok: \\"\\\\u0167\\", twixt: \\"\\\\u226C\\", twoheadleftarrow: \\"\\\\u219E\\", twoheadrightarrow: \\"\\\\u21A0\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", uarr: \\"\\\\u2191\\", Uarr: \\"\\\\u219F\\", uArr: \\"\\\\u21D1\\", Uarrocir: \\"\\\\u2949\\", Ubrcy: \\"\\\\u040E\\", ubrcy: \\"\\\\u045E\\", Ubreve: \\"\\\\u016C\\", ubreve: \\"\\\\u016D\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ucy: \\"\\\\u0423\\", ucy: \\"\\\\u0443\\", udarr: \\"\\\\u21C5\\", Udblac: \\"\\\\u0170\\", udblac: \\"\\\\u0171\\", udhar: \\"\\\\u296E\\", ufisht: \\"\\\\u297E\\", Ufr: \\"\\\\u{1D518}\\", ufr: \\"\\\\u{1D532}\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uHar: \\"\\\\u2963\\", uharl: \\"\\\\u21BF\\", uharr: \\"\\\\u21BE\\", uhblk: \\"\\\\u2580\\", ulcorn: \\"\\\\u231C\\", ulcorner: \\"\\\\u231C\\", ulcrop: \\"\\\\u230F\\", ultri: \\"\\\\u25F8\\", Umacr: \\"\\\\u016A\\", umacr: \\"\\\\u016B\\", uml: \\"\\\\xA8\\", UnderBar: \\"_\\", UnderBrace: \\"\\\\u23DF\\", UnderBracket: \\"\\\\u23B5\\", UnderParenthesis: \\"\\\\u23DD\\", Union: \\"\\\\u22C3\\", UnionPlus: \\"\\\\u228E\\", Uogon: \\"\\\\u0172\\", uogon: \\"\\\\u0173\\", Uopf: \\"\\\\u{1D54C}\\", uopf: \\"\\\\u{1D566}\\", UpArrowBar: \\"\\\\u2912\\", uparrow: \\"\\\\u2191\\", UpArrow: \\"\\\\u2191\\", Uparrow: \\"\\\\u21D1\\", UpArrowDownArrow: \\"\\\\u21C5\\", updownarrow: \\"\\\\u2195\\", UpDownArrow: \\"\\\\u2195\\", Updownarrow: \\"\\\\u21D5\\", UpEquilibrium: \\"\\\\u296E\\", upharpoonleft: \\"\\\\u21BF\\", upharpoonright: \\"\\\\u21BE\\", uplus: \\"\\\\u228E\\", UpperLeftArrow: \\"\\\\u2196\\", UpperRightArrow: \\"\\\\u2197\\", upsi: \\"\\\\u03C5\\", Upsi: \\"\\\\u03D2\\", upsih: \\"\\\\u03D2\\", Upsilon: \\"\\\\u03A5\\", upsilon: \\"\\\\u03C5\\", UpTeeArrow: \\"\\\\u21A5\\", UpTee: \\"\\\\u22A5\\", upuparrows: \\"\\\\u21C8\\", urcorn: \\"\\\\u231D\\", urcorner: \\"\\\\u231D\\", urcrop: \\"\\\\u230E\\", Uring: \\"\\\\u016E\\", uring: \\"\\\\u016F\\", urtri: \\"\\\\u25F9\\", Uscr: \\"\\\\u{1D4B0}\\", uscr: \\"\\\\u{1D4CA}\\", utdot: \\"\\\\u22F0\\", Utilde: \\"\\\\u0168\\", utilde: \\"\\\\u0169\\", utri: \\"\\\\u25B5\\", utrif: \\"\\\\u25B4\\", uuarr: \\"\\\\u21C8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", uwangle: \\"\\\\u29A7\\", vangrt: \\"\\\\u299C\\", varepsilon: \\"\\\\u03F5\\", varkappa: \\"\\\\u03F0\\", varnothing: \\"\\\\u2205\\", varphi: \\"\\\\u03D5\\", varpi: \\"\\\\u03D6\\", varpropto: \\"\\\\u221D\\", varr: \\"\\\\u2195\\", vArr: \\"\\\\u21D5\\", varrho: \\"\\\\u03F1\\", varsigma: \\"\\\\u03C2\\", varsubsetneq: \\"\\\\u228A\\\\uFE00\\", varsubsetneqq: \\"\\\\u2ACB\\\\uFE00\\", varsupsetneq: \\"\\\\u228B\\\\uFE00\\", varsupsetneqq: \\"\\\\u2ACC\\\\uFE00\\", vartheta: \\"\\\\u03D1\\", vartriangleleft: \\"\\\\u22B2\\", vartriangleright: \\"\\\\u22B3\\", vBar: \\"\\\\u2AE8\\", Vbar: \\"\\\\u2AEB\\", vBarv: \\"\\\\u2AE9\\", Vcy: \\"\\\\u0412\\", vcy: \\"\\\\u0432\\", vdash: \\"\\\\u22A2\\", vDash: \\"\\\\u22A8\\", Vdash: \\"\\\\u22A9\\", VDash: \\"\\\\u22AB\\", Vdashl: \\"\\\\u2AE6\\", veebar: \\"\\\\u22BB\\", vee: \\"\\\\u2228\\", Vee: \\"\\\\u22C1\\", veeeq: \\"\\\\u225A\\", vellip: \\"\\\\u22EE\\", verbar: \\"|\\", Verbar: \\"\\\\u2016\\", vert: \\"|\\", Vert: \\"\\\\u2016\\", VerticalBar: \\"\\\\u2223\\", VerticalLine: \\"|\\", VerticalSeparator: \\"\\\\u2758\\", VerticalTilde: \\"\\\\u2240\\", VeryThinSpace: \\"\\\\u200A\\", Vfr: \\"\\\\u{1D519}\\", vfr: \\"\\\\u{1D533}\\", vltri: \\"\\\\u22B2\\", vnsub: \\"\\\\u2282\\\\u20D2\\", vnsup: \\"\\\\u2283\\\\u20D2\\", Vopf: \\"\\\\u{1D54D}\\", vopf: \\"\\\\u{1D567}\\", vprop: \\"\\\\u221D\\", vrtri: \\"\\\\u22B3\\", Vscr: \\"\\\\u{1D4B1}\\", vscr: \\"\\\\u{1D4CB}\\", vsubnE: \\"\\\\u2ACB\\\\uFE00\\", vsubne: \\"\\\\u228A\\\\uFE00\\", vsupnE: \\"\\\\u2ACC\\\\uFE00\\", vsupne: \\"\\\\u228B\\\\uFE00\\", Vvdash: \\"\\\\u22AA\\", vzigzag: \\"\\\\u299A\\", Wcirc: \\"\\\\u0174\\", wcirc: \\"\\\\u0175\\", wedbar: \\"\\\\u2A5F\\", wedge: \\"\\\\u2227\\", Wedge: \\"\\\\u22C0\\", wedgeq: \\"\\\\u2259\\", weierp: \\"\\\\u2118\\", Wfr: \\"\\\\u{1D51A}\\", wfr: \\"\\\\u{1D534}\\", Wopf: \\"\\\\u{1D54E}\\", wopf: \\"\\\\u{1D568}\\", wp: \\"\\\\u2118\\", wr: \\"\\\\u2240\\", wreath: \\"\\\\u2240\\", Wscr: \\"\\\\u{1D4B2}\\", wscr: \\"\\\\u{1D4CC}\\", xcap: \\"\\\\u22C2\\", xcirc: \\"\\\\u25EF\\", xcup: \\"\\\\u22C3\\", xdtri: \\"\\\\u25BD\\", Xfr: \\"\\\\u{1D51B}\\", xfr: \\"\\\\u{1D535}\\", xharr: \\"\\\\u27F7\\", xhArr: \\"\\\\u27FA\\", Xi: \\"\\\\u039E\\", xi: \\"\\\\u03BE\\", xlarr: \\"\\\\u27F5\\", xlArr: \\"\\\\u27F8\\", xmap: \\"\\\\u27FC\\", xnis: \\"\\\\u22FB\\", xodot: \\"\\\\u2A00\\", Xopf: \\"\\\\u{1D54F}\\", xopf: \\"\\\\u{1D569}\\", xoplus: \\"\\\\u2A01\\", xotime: \\"\\\\u2A02\\", xrarr: \\"\\\\u27F6\\", xrArr: \\"\\\\u27F9\\", Xscr: \\"\\\\u{1D4B3}\\", xscr: \\"\\\\u{1D4CD}\\", xsqcup: \\"\\\\u2A06\\", xuplus: \\"\\\\u2A04\\", xutri: \\"\\\\u25B3\\", xvee: \\"\\\\u22C1\\", xwedge: \\"\\\\u22C0\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", YAcy: \\"\\\\u042F\\", yacy: \\"\\\\u044F\\", Ycirc: \\"\\\\u0176\\", ycirc: \\"\\\\u0177\\", Ycy: \\"\\\\u042B\\", ycy: \\"\\\\u044B\\", yen: \\"\\\\xA5\\", Yfr: \\"\\\\u{1D51C}\\", yfr: \\"\\\\u{1D536}\\", YIcy: \\"\\\\u0407\\", yicy: \\"\\\\u0457\\", Yopf: \\"\\\\u{1D550}\\", yopf: \\"\\\\u{1D56A}\\", Yscr: \\"\\\\u{1D4B4}\\", yscr: \\"\\\\u{1D4CE}\\", YUcy: \\"\\\\u042E\\", yucy: \\"\\\\u044E\\", yuml: \\"\\\\xFF\\", Yuml: \\"\\\\u0178\\", Zacute: \\"\\\\u0179\\", zacute: \\"\\\\u017A\\", Zcaron: \\"\\\\u017D\\", zcaron: \\"\\\\u017E\\", Zcy: \\"\\\\u0417\\", zcy: \\"\\\\u0437\\", Zdot: \\"\\\\u017B\\", zdot: \\"\\\\u017C\\", zeetrf: \\"\\\\u2128\\", ZeroWidthSpace: \\"\\\\u200B\\", Zeta: \\"\\\\u0396\\", zeta: \\"\\\\u03B6\\", zfr: \\"\\\\u{1D537}\\", Zfr: \\"\\\\u2128\\", ZHcy: \\"\\\\u0416\\", zhcy: \\"\\\\u0436\\", zigrarr: \\"\\\\u21DD\\", zopf: \\"\\\\u{1D56B}\\", Zopf: \\"\\\\u2124\\", Zscr: \\"\\\\u{1D4B5}\\", zscr: \\"\\\\u{1D4CF}\\", zwj: \\"\\\\u200D\\", zwnj: \\"\\\\u200C\\" }; + } +}); + +// node_modules/entities/lib/maps/legacy.json +var require_legacy = __commonJS({ + \\"node_modules/entities/lib/maps/legacy.json\\"(exports2, module2) { + module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", amp: \\"&\\", AMP: \\"&\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", brvbar: \\"\\\\xA6\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", cedil: \\"\\\\xB8\\", cent: \\"\\\\xA2\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", curren: \\"\\\\xA4\\", deg: \\"\\\\xB0\\", divide: \\"\\\\xF7\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", frac12: \\"\\\\xBD\\", frac14: \\"\\\\xBC\\", frac34: \\"\\\\xBE\\", gt: \\">\\", GT: \\">\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", iexcl: \\"\\\\xA1\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", iquest: \\"\\\\xBF\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", laquo: \\"\\\\xAB\\", lt: \\"<\\", LT: \\"<\\", macr: \\"\\\\xAF\\", micro: \\"\\\\xB5\\", middot: \\"\\\\xB7\\", nbsp: \\"\\\\xA0\\", not: \\"\\\\xAC\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", para: \\"\\\\xB6\\", plusmn: \\"\\\\xB1\\", pound: \\"\\\\xA3\\", quot: '\\"', QUOT: '\\"', raquo: \\"\\\\xBB\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", sect: \\"\\\\xA7\\", shy: \\"\\\\xAD\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", szlig: \\"\\\\xDF\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", times: \\"\\\\xD7\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uml: \\"\\\\xA8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", yen: \\"\\\\xA5\\", yuml: \\"\\\\xFF\\" }; + } +}); + +// node_modules/entities/lib/maps/xml.json +var require_xml = __commonJS({ + \\"node_modules/entities/lib/maps/xml.json\\"(exports2, module2) { + module2.exports = { amp: \\"&\\", apos: \\"'\\", gt: \\">\\", lt: \\"<\\", quot: '\\"' }; + } +}); + +// node_modules/entities/lib/maps/decode.json +var require_decode = __commonJS({ + \\"node_modules/entities/lib/maps/decode.json\\"(exports2, module2) { + module2.exports = { \\"0\\": 65533, \\"128\\": 8364, \\"130\\": 8218, \\"131\\": 402, \\"132\\": 8222, \\"133\\": 8230, \\"134\\": 8224, \\"135\\": 8225, \\"136\\": 710, \\"137\\": 8240, \\"138\\": 352, \\"139\\": 8249, \\"140\\": 338, \\"142\\": 381, \\"145\\": 8216, \\"146\\": 8217, \\"147\\": 8220, \\"148\\": 8221, \\"149\\": 8226, \\"150\\": 8211, \\"151\\": 8212, \\"152\\": 732, \\"153\\": 8482, \\"154\\": 353, \\"155\\": 8250, \\"156\\": 339, \\"158\\": 382, \\"159\\": 376 }; + } +}); + +// node_modules/entities/lib/decode_codepoint.js +var require_decode_codepoint = __commonJS({ + \\"node_modules/entities/lib/decode_codepoint.js\\"(exports2) { + \\"use strict\\"; + var __importDefault = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var decode_json_1 = __importDefault(require_decode()); + var fromCodePoint = String.fromCodePoint || function(codePoint) { + var output = \\"\\"; + if (codePoint > 65535) { + codePoint -= 65536; + output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296); + codePoint = 56320 | codePoint & 1023; + } + output += String.fromCharCode(codePoint); + return output; + }; + function decodeCodePoint(codePoint) { + if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) { + return \\"\\\\uFFFD\\"; + } + if (codePoint in decode_json_1.default) { + codePoint = decode_json_1.default[codePoint]; + } + return fromCodePoint(codePoint); + } + exports2.default = decodeCodePoint; + } +}); + +// node_modules/entities/lib/decode.js +var require_decode2 = __commonJS({ + \\"node_modules/entities/lib/decode.js\\"(exports2) { + \\"use strict\\"; + var __importDefault = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decodeHTML = exports2.decodeHTMLStrict = exports2.decodeXML = void 0; + var entities_json_1 = __importDefault(require_entities()); + var legacy_json_1 = __importDefault(require_legacy()); + var xml_json_1 = __importDefault(require_xml()); + var decode_codepoint_1 = __importDefault(require_decode_codepoint()); + var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\\\\da-fA-F]+|#\\\\d+);/g; + exports2.decodeXML = getStrictDecoder(xml_json_1.default); + exports2.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); + function getStrictDecoder(map) { + var replace = getReplacer(map); + return function(str) { + return String(str).replace(strictEntityRe, replace); + }; + } + var sorter = function(a, b) { + return a < b ? 1 : -1; + }; + exports2.decodeHTML = function() { + var legacy = Object.keys(legacy_json_1.default).sort(sorter); + var keys = Object.keys(entities_json_1.default).sort(sorter); + for (var i = 0, j = 0; i < keys.length; i++) { + if (legacy[j] === keys[i]) { + keys[i] += \\";?\\"; + j++; + } else { + keys[i] += \\";\\"; + } + } + var re = new RegExp(\\"&(?:\\" + keys.join(\\"|\\") + \\"|#[xX][\\\\\\\\da-fA-F]+;?|#\\\\\\\\d+;?)\\", \\"g\\"); + var replace = getReplacer(entities_json_1.default); + function replacer(str) { + if (str.substr(-1) !== \\";\\") + str += \\";\\"; + return replace(str); + } + return function(str) { + return String(str).replace(re, replacer); + }; + }(); + function getReplacer(map) { + return function replace(str) { + if (str.charAt(1) === \\"#\\") { + var secondChar = str.charAt(2); + if (secondChar === \\"X\\" || secondChar === \\"x\\") { + return decode_codepoint_1.default(parseInt(str.substr(3), 16)); + } + return decode_codepoint_1.default(parseInt(str.substr(2), 10)); + } + return map[str.slice(1, -1)] || str; + }; + } + } +}); + +// node_modules/entities/lib/encode.js +var require_encode = __commonJS({ + \\"node_modules/entities/lib/encode.js\\"(exports2) { + \\"use strict\\"; + var __importDefault = exports2 && exports2.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { \\"default\\": mod }; + }; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = void 0; + var xml_json_1 = __importDefault(require_xml()); + var inverseXML = getInverseObj(xml_json_1.default); + var xmlReplacer = getInverseReplacer(inverseXML); + exports2.encodeXML = getASCIIEncoder(inverseXML); + var entities_json_1 = __importDefault(require_entities()); + var inverseHTML = getInverseObj(entities_json_1.default); + var htmlReplacer = getInverseReplacer(inverseHTML); + exports2.encodeHTML = getInverse(inverseHTML, htmlReplacer); + exports2.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); + function getInverseObj(obj) { + return Object.keys(obj).sort().reduce(function(inverse, name) { + inverse[obj[name]] = \\"&\\" + name + \\";\\"; + return inverse; + }, {}); + } + function getInverseReplacer(inverse) { + var single = []; + var multiple = []; + for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { + var k = _a[_i]; + if (k.length === 1) { + single.push(\\"\\\\\\\\\\" + k); + } else { + multiple.push(k); + } + } + single.sort(); + for (var start = 0; start < single.length - 1; start++) { + var end = start; + while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { + end += 1; + } + var count = 1 + end - start; + if (count < 3) + continue; + single.splice(start, count, single[start] + \\"-\\" + single[end]); + } + multiple.unshift(\\"[\\" + single.join(\\"\\") + \\"]\\"); + return new RegExp(multiple.join(\\"|\\"), \\"g\\"); + } + var reNonASCII = /(?:[\\\\x80-\\\\uD7FF\\\\uE000-\\\\uFFFF]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF])/g; + var getCodePoint = String.prototype.codePointAt != null ? function(str) { + return str.codePointAt(0); + } : function(c) { + return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; + }; + function singleCharReplacer(c) { + return \\"&#x\\" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + \\";\\"; + } + function getInverse(inverse, re) { + return function(data) { + return data.replace(re, function(name) { + return inverse[name]; + }).replace(reNonASCII, singleCharReplacer); + }; + } + var reEscapeChars = new RegExp(xmlReplacer.source + \\"|\\" + reNonASCII.source, \\"g\\"); + function escape(data) { + return data.replace(reEscapeChars, singleCharReplacer); + } + exports2.escape = escape; + function escapeUTF8(data) { + return data.replace(xmlReplacer, singleCharReplacer); + } + exports2.escapeUTF8 = escapeUTF8; + function getASCIIEncoder(obj) { + return function(data) { + return data.replace(reEscapeChars, function(c) { + return obj[c] || singleCharReplacer(c); + }); + }; + } + } +}); + +// node_modules/entities/lib/index.js +var require_lib = __commonJS({ + \\"node_modules/entities/lib/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decodeXMLStrict = exports2.decodeHTML5Strict = exports2.decodeHTML4Strict = exports2.decodeHTML5 = exports2.decodeHTML4 = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.decodeXML = exports2.encodeHTML5 = exports2.encodeHTML4 = exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = exports2.encode = exports2.decodeStrict = exports2.decode = void 0; + var decode_1 = require_decode2(); + var encode_1 = require_encode(); + function decode(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); + } + exports2.decode = decode; + function decodeStrict(data, level) { + return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); + } + exports2.decodeStrict = decodeStrict; + function encode(data, level) { + return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); + } + exports2.encode = encode; + var encode_2 = require_encode(); + Object.defineProperty(exports2, \\"encodeXML\\", { enumerable: true, get: function() { + return encode_2.encodeXML; + } }); + Object.defineProperty(exports2, \\"encodeHTML\\", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports2, \\"encodeNonAsciiHTML\\", { enumerable: true, get: function() { + return encode_2.encodeNonAsciiHTML; + } }); + Object.defineProperty(exports2, \\"escape\\", { enumerable: true, get: function() { + return encode_2.escape; + } }); + Object.defineProperty(exports2, \\"escapeUTF8\\", { enumerable: true, get: function() { + return encode_2.escapeUTF8; + } }); + Object.defineProperty(exports2, \\"encodeHTML4\\", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + Object.defineProperty(exports2, \\"encodeHTML5\\", { enumerable: true, get: function() { + return encode_2.encodeHTML; + } }); + var decode_2 = require_decode2(); + Object.defineProperty(exports2, \\"decodeXML\\", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + Object.defineProperty(exports2, \\"decodeHTML\\", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports2, \\"decodeHTMLStrict\\", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports2, \\"decodeHTML4\\", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports2, \\"decodeHTML5\\", { enumerable: true, get: function() { + return decode_2.decodeHTML; + } }); + Object.defineProperty(exports2, \\"decodeHTML4Strict\\", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports2, \\"decodeHTML5Strict\\", { enumerable: true, get: function() { + return decode_2.decodeHTMLStrict; + } }); + Object.defineProperty(exports2, \\"decodeXMLStrict\\", { enumerable: true, get: function() { + return decode_2.decodeXML; + } }); + } +}); + +// node_modules/fast-xml-parser/src/util.js +var require_util = __commonJS({ + \\"node_modules/fast-xml-parser/src/util.js\\"(exports2) { + \\"use strict\\"; + var nameStartChar = \\":A-Za-z_\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\"; + var nameChar = nameStartChar + \\"\\\\\\\\-.\\\\\\\\d\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040\\"; + var nameRegexp = \\"[\\" + nameStartChar + \\"][\\" + nameChar + \\"]*\\"; + var regexName = new RegExp(\\"^\\" + nameRegexp + \\"$\\"); + var getAllMatches = function(string, regex) { + const matches = []; + let match = regex.exec(string); + while (match) { + const allmatches = []; + const len = match.length; + for (let index = 0; index < len; index++) { + allmatches.push(match[index]); + } + matches.push(allmatches); + match = regex.exec(string); + } + return matches; + }; + var isName = function(string) { + const match = regexName.exec(string); + return !(match === null || typeof match === \\"undefined\\"); + }; + exports2.isExist = function(v) { + return typeof v !== \\"undefined\\"; + }; + exports2.isEmptyObject = function(obj) { + return Object.keys(obj).length === 0; + }; + exports2.merge = function(target, a, arrayMode) { + if (a) { + const keys = Object.keys(a); + const len = keys.length; + for (let i = 0; i < len; i++) { + if (arrayMode === \\"strict\\") { + target[keys[i]] = [a[keys[i]]]; + } else { + target[keys[i]] = a[keys[i]]; + } + } + } + }; + exports2.getValue = function(v) { + if (exports2.isExist(v)) { + return v; + } else { + return \\"\\"; + } + }; + exports2.buildOptions = function(options, defaultOptions, props) { + var newOptions = {}; + if (!options) { + return defaultOptions; + } + for (let i = 0; i < props.length; i++) { + if (options[props[i]] !== void 0) { + newOptions[props[i]] = options[props[i]]; + } else { + newOptions[props[i]] = defaultOptions[props[i]]; + } + } + return newOptions; + }; + exports2.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) { + if (arrayMode === false) { + return false; + } else if (arrayMode instanceof RegExp) { + return arrayMode.test(tagName); + } else if (typeof arrayMode === \\"function\\") { + return !!arrayMode(tagName, parentTagName); + } + return arrayMode === \\"strict\\"; + }; + exports2.isName = isName; + exports2.getAllMatches = getAllMatches; + exports2.nameRegexp = nameRegexp; + } +}); + +// node_modules/fast-xml-parser/src/node2json.js +var require_node2json = __commonJS({ + \\"node_modules/fast-xml-parser/src/node2json.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var convertToJson = function(node, options, parentTagName) { + const jObj = {}; + if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { + return util.isExist(node.val) ? node.val : \\"\\"; + } + if (util.isExist(node.val) && !(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { + const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName); + jObj[options.textNodeName] = asArray ? [node.val] : node.val; + } + util.merge(jObj, node.attrsMap, options.arrayMode); + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + const tagName = keys[index]; + if (node.child[tagName] && node.child[tagName].length > 1) { + jObj[tagName] = []; + for (let tag in node.child[tagName]) { + if (node.child[tagName].hasOwnProperty(tag)) { + jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); + } + } + } else { + const result = convertToJson(node.child[tagName][0], options, tagName); + const asArray = options.arrayMode === true && typeof result === \\"object\\" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); + jObj[tagName] = asArray ? [result] : result; + } + } + return jObj; + }; + exports2.convertToJson = convertToJson; + } +}); + +// node_modules/fast-xml-parser/src/xmlNode.js +var require_xmlNode = __commonJS({ + \\"node_modules/fast-xml-parser/src/xmlNode.js\\"(exports2, module2) { + \\"use strict\\"; + module2.exports = function(tagname, parent, val) { + this.tagname = tagname; + this.parent = parent; + this.child = {}; + this.attrsMap = {}; + this.val = val; + this.addChild = function(child) { + if (Array.isArray(this.child[child.tagname])) { + this.child[child.tagname].push(child); + } else { + this.child[child.tagname] = [child]; + } + }; + }; + } +}); + +// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js +var require_xmlstr2xmlnode = __commonJS({ + \\"node_modules/fast-xml-parser/src/xmlstr2xmlnode.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var xmlNode = require_xmlNode(); + var regx = \\"<((!\\\\\\\\[CDATA\\\\\\\\[([\\\\\\\\s\\\\\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\\\\\/)(NAME)\\\\\\\\s*>))([^<]*)\\".replace(/NAME/g, util.nameRegexp); + if (!Number.parseInt && window.parseInt) { + Number.parseInt = window.parseInt; + } + if (!Number.parseFloat && window.parseFloat) { + Number.parseFloat = window.parseFloat; + } + var defaultOptions = { + attributeNamePrefix: \\"@_\\", + attrNodeName: false, + textNodeName: \\"#text\\", + ignoreAttributes: true, + ignoreNameSpace: false, + allowBooleanAttributes: false, + parseNodeValue: true, + parseAttributeValue: false, + arrayMode: false, + trimValues: true, + cdataTagName: false, + cdataPositionChar: \\"\\\\\\\\c\\", + tagValueProcessor: function(a, tagName) { + return a; + }, + attrValueProcessor: function(a, attrName) { + return a; + }, + stopNodes: [] + }; + exports2.defaultOptions = defaultOptions; + var props = [ + \\"attributeNamePrefix\\", + \\"attrNodeName\\", + \\"textNodeName\\", + \\"ignoreAttributes\\", + \\"ignoreNameSpace\\", + \\"allowBooleanAttributes\\", + \\"parseNodeValue\\", + \\"parseAttributeValue\\", + \\"arrayMode\\", + \\"trimValues\\", + \\"cdataTagName\\", + \\"cdataPositionChar\\", + \\"tagValueProcessor\\", + \\"attrValueProcessor\\", + \\"parseTrueNumberOnly\\", + \\"stopNodes\\" + ]; + exports2.props = props; + function processTagValue(tagName, val, options) { + if (val) { + if (options.trimValues) { + val = val.trim(); + } + val = options.tagValueProcessor(val, tagName); + val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); + } + return val; + } + function resolveNameSpace(tagname, options) { + if (options.ignoreNameSpace) { + const tags = tagname.split(\\":\\"); + const prefix = tagname.charAt(0) === \\"/\\" ? \\"/\\" : \\"\\"; + if (tags[0] === \\"xmlns\\") { + return \\"\\"; + } + if (tags.length === 2) { + tagname = prefix + tags[1]; + } + } + return tagname; + } + function parseValue(val, shouldParse, parseTrueNumberOnly) { + if (shouldParse && typeof val === \\"string\\") { + let parsed; + if (val.trim() === \\"\\" || isNaN(val)) { + parsed = val === \\"true\\" ? true : val === \\"false\\" ? false : val; + } else { + if (val.indexOf(\\"0x\\") !== -1) { + parsed = Number.parseInt(val, 16); + } else if (val.indexOf(\\".\\") !== -1) { + parsed = Number.parseFloat(val); + val = val.replace(/\\\\.?0+$/, \\"\\"); + } else { + parsed = Number.parseInt(val, 10); + } + if (parseTrueNumberOnly) { + parsed = String(parsed) === val ? parsed : val; + } + } + return parsed; + } else { + if (util.isExist(val)) { + return val; + } else { + return \\"\\"; + } + } + } + var attrsRegx = new RegExp(\`([^\\\\\\\\s=]+)\\\\\\\\s*(=\\\\\\\\s*(['\\"])(.*?)\\\\\\\\3)?\`, \\"g\\"); + function buildAttributesMap(attrStr, options) { + if (!options.ignoreAttributes && typeof attrStr === \\"string\\") { + attrStr = attrStr.replace(/\\\\r?\\\\n/g, \\" \\"); + const matches = util.getAllMatches(attrStr, attrsRegx); + const len = matches.length; + const attrs = {}; + for (let i = 0; i < len; i++) { + const attrName = resolveNameSpace(matches[i][1], options); + if (attrName.length) { + if (matches[i][4] !== void 0) { + if (options.trimValues) { + matches[i][4] = matches[i][4].trim(); + } + matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); + attrs[options.attributeNamePrefix + attrName] = parseValue( + matches[i][4], + options.parseAttributeValue, + options.parseTrueNumberOnly + ); + } else if (options.allowBooleanAttributes) { + attrs[options.attributeNamePrefix + attrName] = true; + } + } + } + if (!Object.keys(attrs).length) { + return; + } + if (options.attrNodeName) { + const attrCollection = {}; + attrCollection[options.attrNodeName] = attrs; + return attrCollection; + } + return attrs; + } + } + var getTraversalObj = function(xmlData, options) { + xmlData = xmlData.replace(/\\\\r\\\\n?/g, \\"\\\\n\\"); + options = buildOptions(options, defaultOptions, props); + const xmlObj = new xmlNode(\\"!xml\\"); + let currentNode = xmlObj; + let textData = \\"\\"; + for (let i = 0; i < xmlData.length; i++) { + const ch = xmlData[i]; + if (ch === \\"<\\") { + if (xmlData[i + 1] === \\"/\\") { + const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"Closing Tag is not closed.\\"); + let tagName = xmlData.substring(i + 2, closeIndex).trim(); + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(\\":\\"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + } + } + if (currentNode) { + if (currentNode.val) { + currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(tagName, textData, options); + } else { + currentNode.val = processTagValue(tagName, textData, options); + } + } + if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { + currentNode.child = []; + if (currentNode.attrsMap == void 0) { + currentNode.attrsMap = {}; + } + currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1); + } + currentNode = currentNode.parent; + textData = \\"\\"; + i = closeIndex; + } else if (xmlData[i + 1] === \\"?\\") { + i = findClosingIndex(xmlData, \\"?>\\", i, \\"Pi Tag is not closed.\\"); + } else if (xmlData.substr(i + 1, 3) === \\"!--\\") { + i = findClosingIndex(xmlData, \\"-->\\", i, \\"Comment is not closed.\\"); + } else if (xmlData.substr(i + 1, 2) === \\"!D\\") { + const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"DOCTYPE is not closed.\\"); + const tagExp = xmlData.substring(i, closeIndex); + if (tagExp.indexOf(\\"[\\") >= 0) { + i = xmlData.indexOf(\\"]>\\", i) + 1; + } else { + i = closeIndex; + } + } else if (xmlData.substr(i + 1, 2) === \\"![\\") { + const closeIndex = findClosingIndex(xmlData, \\"]]>\\", i, \\"CDATA is not closed.\\") - 2; + const tagExp = xmlData.substring(i + 9, closeIndex); + if (textData) { + currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); + textData = \\"\\"; + } + if (options.cdataTagName) { + const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); + currentNode.addChild(childNode); + currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; + if (tagExp) { + childNode.val = tagExp; + } + } else { + currentNode.val = (currentNode.val || \\"\\") + (tagExp || \\"\\"); + } + i = closeIndex + 2; + } else { + const result = closingIndexForOpeningTag(xmlData, i + 1); + let tagExp = result.data; + const closeIndex = result.index; + const separatorIndex = tagExp.indexOf(\\" \\"); + let tagName = tagExp; + let shouldBuildAttributesMap = true; + if (separatorIndex !== -1) { + tagName = tagExp.substr(0, separatorIndex).replace(/\\\\s\\\\s*$/, \\"\\"); + tagExp = tagExp.substr(separatorIndex + 1); + } + if (options.ignoreNameSpace) { + const colonIndex = tagName.indexOf(\\":\\"); + if (colonIndex !== -1) { + tagName = tagName.substr(colonIndex + 1); + shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); + } + } + if (currentNode && textData) { + if (currentNode.tagname !== \\"!xml\\") { + currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); + } + } + if (tagExp.length > 0 && tagExp.lastIndexOf(\\"/\\") === tagExp.length - 1) { + if (tagName[tagName.length - 1] === \\"/\\") { + tagName = tagName.substr(0, tagName.length - 1); + tagExp = tagName; + } else { + tagExp = tagExp.substr(0, tagExp.length - 1); + } + const childNode = new xmlNode(tagName, currentNode, \\"\\"); + if (tagName !== tagExp) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + } else { + const childNode = new xmlNode(tagName, currentNode); + if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { + childNode.startIndex = closeIndex; + } + if (tagName !== tagExp && shouldBuildAttributesMap) { + childNode.attrsMap = buildAttributesMap(tagExp, options); + } + currentNode.addChild(childNode); + currentNode = childNode; + } + textData = \\"\\"; + i = closeIndex; + } + } else { + textData += xmlData[i]; + } + } + return xmlObj; + }; + function closingIndexForOpeningTag(data, i) { + let attrBoundary; + let tagExp = \\"\\"; + for (let index = i; index < data.length; index++) { + let ch = data[index]; + if (attrBoundary) { + if (ch === attrBoundary) + attrBoundary = \\"\\"; + } else if (ch === '\\"' || ch === \\"'\\") { + attrBoundary = ch; + } else if (ch === \\">\\") { + return { + data: tagExp, + index + }; + } else if (ch === \\" \\") { + ch = \\" \\"; + } + tagExp += ch; + } + } + function findClosingIndex(xmlData, str, i, errMsg) { + const closingIndex = xmlData.indexOf(str, i); + if (closingIndex === -1) { + throw new Error(errMsg); + } else { + return closingIndex + str.length - 1; + } + } + exports2.getTraversalObj = getTraversalObj; + } +}); + +// node_modules/fast-xml-parser/src/validator.js +var require_validator = __commonJS({ + \\"node_modules/fast-xml-parser/src/validator.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var defaultOptions = { + allowBooleanAttributes: false + }; + var props = [\\"allowBooleanAttributes\\"]; + exports2.validate = function(xmlData, options) { + options = util.buildOptions(options, defaultOptions, props); + const tags = []; + let tagFound = false; + let reachedRoot = false; + if (xmlData[0] === \\"\\\\uFEFF\\") { + xmlData = xmlData.substr(1); + } + for (let i = 0; i < xmlData.length; i++) { + if (xmlData[i] === \\"<\\" && xmlData[i + 1] === \\"?\\") { + i += 2; + i = readPI(xmlData, i); + if (i.err) + return i; + } else if (xmlData[i] === \\"<\\") { + i++; + if (xmlData[i] === \\"!\\") { + i = readCommentAndCDATA(xmlData, i); + continue; + } else { + let closingTag = false; + if (xmlData[i] === \\"/\\") { + closingTag = true; + i++; + } + let tagName = \\"\\"; + for (; i < xmlData.length && xmlData[i] !== \\">\\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\"\\\\n\\" && xmlData[i] !== \\"\\\\r\\"; i++) { + tagName += xmlData[i]; + } + tagName = tagName.trim(); + if (tagName[tagName.length - 1] === \\"/\\") { + tagName = tagName.substring(0, tagName.length - 1); + i--; + } + if (!validateTagName(tagName)) { + let msg; + if (tagName.trim().length === 0) { + msg = \\"There is an unnecessary space between tag name and backward slash ' 0) { + return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + tagName + \\"' can't have attributes or invalid starting.\\", getLineNumberForPosition(xmlData, i)); + } else { + const otg = tags.pop(); + if (tagName !== otg) { + return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + otg + \\"' is expected inplace of '\\" + tagName + \\"'.\\", getLineNumberForPosition(xmlData, i)); + } + if (tags.length == 0) { + reachedRoot = true; + } + } + } else { + const isValid = validateAttributeString(attrStr, options); + if (isValid !== true) { + return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); + } + if (reachedRoot === true) { + return getErrorObject(\\"InvalidXml\\", \\"Multiple possible root nodes found.\\", getLineNumberForPosition(xmlData, i)); + } else { + tags.push(tagName); + } + tagFound = true; + } + for (i++; i < xmlData.length; i++) { + if (xmlData[i] === \\"<\\") { + if (xmlData[i + 1] === \\"!\\") { + i++; + i = readCommentAndCDATA(xmlData, i); + continue; + } else if (xmlData[i + 1] === \\"?\\") { + i = readPI(xmlData, ++i); + if (i.err) + return i; + } else { + break; + } + } else if (xmlData[i] === \\"&\\") { + const afterAmp = validateAmpersand(xmlData, i); + if (afterAmp == -1) + return getErrorObject(\\"InvalidChar\\", \\"char '&' is not expected.\\", getLineNumberForPosition(xmlData, i)); + i = afterAmp; + } + } + if (xmlData[i] === \\"<\\") { + i--; + } + } + } else { + if (xmlData[i] === \\" \\" || xmlData[i] === \\" \\" || xmlData[i] === \\"\\\\n\\" || xmlData[i] === \\"\\\\r\\") { + continue; + } + return getErrorObject(\\"InvalidChar\\", \\"char '\\" + xmlData[i] + \\"' is not expected.\\", getLineNumberForPosition(xmlData, i)); + } + } + if (!tagFound) { + return getErrorObject(\\"InvalidXml\\", \\"Start tag expected.\\", 1); + } else if (tags.length > 0) { + return getErrorObject(\\"InvalidXml\\", \\"Invalid '\\" + JSON.stringify(tags, null, 4).replace(/\\\\r?\\\\n/g, \\"\\") + \\"' found.\\", 1); + } + return true; + }; + function readPI(xmlData, i) { + var start = i; + for (; i < xmlData.length; i++) { + if (xmlData[i] == \\"?\\" || xmlData[i] == \\" \\") { + var tagname = xmlData.substr(start, i - start); + if (i > 5 && tagname === \\"xml\\") { + return getErrorObject(\\"InvalidXml\\", \\"XML declaration allowed only at the start of the document.\\", getLineNumberForPosition(xmlData, i)); + } else if (xmlData[i] == \\"?\\" && xmlData[i + 1] == \\">\\") { + i++; + break; + } else { + continue; + } + } + } + return i; + } + function readCommentAndCDATA(xmlData, i) { + if (xmlData.length > i + 5 && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\"-\\") { + for (i += 3; i < xmlData.length; i++) { + if (xmlData[i] === \\"-\\" && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\">\\") { + i += 2; + break; + } + } + } else if (xmlData.length > i + 8 && xmlData[i + 1] === \\"D\\" && xmlData[i + 2] === \\"O\\" && xmlData[i + 3] === \\"C\\" && xmlData[i + 4] === \\"T\\" && xmlData[i + 5] === \\"Y\\" && xmlData[i + 6] === \\"P\\" && xmlData[i + 7] === \\"E\\") { + let angleBracketsCount = 1; + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === \\"<\\") { + angleBracketsCount++; + } else if (xmlData[i] === \\">\\") { + angleBracketsCount--; + if (angleBracketsCount === 0) { + break; + } + } + } + } else if (xmlData.length > i + 9 && xmlData[i + 1] === \\"[\\" && xmlData[i + 2] === \\"C\\" && xmlData[i + 3] === \\"D\\" && xmlData[i + 4] === \\"A\\" && xmlData[i + 5] === \\"T\\" && xmlData[i + 6] === \\"A\\" && xmlData[i + 7] === \\"[\\") { + for (i += 8; i < xmlData.length; i++) { + if (xmlData[i] === \\"]\\" && xmlData[i + 1] === \\"]\\" && xmlData[i + 2] === \\">\\") { + i += 2; + break; + } + } + } + return i; + } + var doubleQuote = '\\"'; + var singleQuote = \\"'\\"; + function readAttributeStr(xmlData, i) { + let attrStr = \\"\\"; + let startChar = \\"\\"; + let tagClosed = false; + for (; i < xmlData.length; i++) { + if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { + if (startChar === \\"\\") { + startChar = xmlData[i]; + } else if (startChar !== xmlData[i]) { + continue; + } else { + startChar = \\"\\"; + } + } else if (xmlData[i] === \\">\\") { + if (startChar === \\"\\") { + tagClosed = true; + break; + } + } + attrStr += xmlData[i]; + } + if (startChar !== \\"\\") { + return false; + } + return { + value: attrStr, + index: i, + tagClosed + }; + } + var validAttrStrRegxp = new RegExp(\`(\\\\\\\\s*)([^\\\\\\\\s=]+)(\\\\\\\\s*=)?(\\\\\\\\s*(['\\"])(([\\\\\\\\s\\\\\\\\S])*?)\\\\\\\\5)?\`, \\"g\\"); + function validateAttributeString(attrStr, options) { + const matches = util.getAllMatches(attrStr, validAttrStrRegxp); + const attrNames = {}; + for (let i = 0; i < matches.length; i++) { + if (matches[i][1].length === 0) { + return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + matches[i][2] + \\"' has no space in starting.\\", getPositionFromMatch(attrStr, matches[i][0])); + } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { + return getErrorObject(\\"InvalidAttr\\", \\"boolean attribute '\\" + matches[i][2] + \\"' is not allowed.\\", getPositionFromMatch(attrStr, matches[i][0])); + } + const attrName = matches[i][2]; + if (!validateAttrName(attrName)) { + return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is an invalid name.\\", getPositionFromMatch(attrStr, matches[i][0])); + } + if (!attrNames.hasOwnProperty(attrName)) { + attrNames[attrName] = 1; + } else { + return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is repeated.\\", getPositionFromMatch(attrStr, matches[i][0])); + } + } + return true; + } + function validateNumberAmpersand(xmlData, i) { + let re = /\\\\d/; + if (xmlData[i] === \\"x\\") { + i++; + re = /[\\\\da-fA-F]/; + } + for (; i < xmlData.length; i++) { + if (xmlData[i] === \\";\\") + return i; + if (!xmlData[i].match(re)) + break; + } + return -1; + } + function validateAmpersand(xmlData, i) { + i++; + if (xmlData[i] === \\";\\") + return -1; + if (xmlData[i] === \\"#\\") { + i++; + return validateNumberAmpersand(xmlData, i); + } + let count = 0; + for (; i < xmlData.length; i++, count++) { + if (xmlData[i].match(/\\\\w/) && count < 20) + continue; + if (xmlData[i] === \\";\\") + break; + return -1; + } + return i; + } + function getErrorObject(code, message, lineNumber) { + return { + err: { + code, + msg: message, + line: lineNumber + } + }; + } + function validateAttrName(attrName) { + return util.isName(attrName); + } + function validateTagName(tagname) { + return util.isName(tagname); + } + function getLineNumberForPosition(xmlData, index) { + var lines = xmlData.substring(0, index).split(/\\\\r?\\\\n/); + return lines.length; + } + function getPositionFromMatch(attrStr, match) { + return attrStr.indexOf(match) + match.length; + } + } +}); + +// node_modules/fast-xml-parser/src/nimndata.js +var require_nimndata = __commonJS({ + \\"node_modules/fast-xml-parser/src/nimndata.js\\"(exports2) { + \\"use strict\\"; + var char = function(a) { + return String.fromCharCode(a); + }; + var chars = { + nilChar: char(176), + missingChar: char(201), + nilPremitive: char(175), + missingPremitive: char(200), + emptyChar: char(178), + emptyValue: char(177), + boundryChar: char(179), + objStart: char(198), + arrStart: char(204), + arrayEnd: char(185) + }; + var charsArr = [ + chars.nilChar, + chars.nilPremitive, + chars.missingChar, + chars.missingPremitive, + chars.boundryChar, + chars.emptyChar, + chars.emptyValue, + chars.arrayEnd, + chars.objStart, + chars.arrStart + ]; + var _e = function(node, e_schema, options) { + if (typeof e_schema === \\"string\\") { + if (node && node[0] && node[0].val !== void 0) { + return getValue(node[0].val, e_schema); + } else { + return getValue(node, e_schema); + } + } else { + const hasValidData = hasData(node); + if (hasValidData === true) { + let str = \\"\\"; + if (Array.isArray(e_schema)) { + str += chars.arrStart; + const itemSchema = e_schema[0]; + const arr_len = node.length; + if (typeof itemSchema === \\"string\\") { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = getValue(node[arr_i].val, itemSchema); + str = processValue(str, r); + } + } else { + for (let arr_i = 0; arr_i < arr_len; arr_i++) { + const r = _e(node[arr_i], itemSchema, options); + str = processValue(str, r); + } + } + str += chars.arrayEnd; + } else { + str += chars.objStart; + const keys = Object.keys(e_schema); + if (Array.isArray(node)) { + node = node[0]; + } + for (let i in keys) { + const key = keys[i]; + let r; + if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { + r = _e(node.attrsMap[key], e_schema[key], options); + } else if (key === options.textNodeName) { + r = _e(node.val, e_schema[key], options); + } else { + r = _e(node.child[key], e_schema[key], options); + } + str = processValue(str, r); + } + } + return str; + } else { + return hasValidData; + } + } + }; + var getValue = function(a) { + switch (a) { + case void 0: + return chars.missingPremitive; + case null: + return chars.nilPremitive; + case \\"\\": + return chars.emptyValue; + default: + return a; + } + }; + var processValue = function(str, r) { + if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { + str += chars.boundryChar; + } + return str + r; + }; + var isAppChar = function(ch) { + return charsArr.indexOf(ch) !== -1; + }; + function hasData(jObj) { + if (jObj === void 0) { + return chars.missingChar; + } else if (jObj === null) { + return chars.nilChar; + } else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) { + return chars.emptyChar; + } else { + return true; + } + } + var x2j = require_xmlstr2xmlnode(); + var buildOptions = require_util().buildOptions; + var convert2nimn = function(node, e_schema, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + return _e(node, e_schema, options); + }; + exports2.convert2nimn = convert2nimn; + } +}); + +// node_modules/fast-xml-parser/src/node2json_str.js +var require_node2json_str = __commonJS({ + \\"node_modules/fast-xml-parser/src/node2json_str.js\\"(exports2) { + \\"use strict\\"; + var util = require_util(); + var buildOptions = require_util().buildOptions; + var x2j = require_xmlstr2xmlnode(); + var convertToJsonString = function(node, options) { + options = buildOptions(options, x2j.defaultOptions, x2j.props); + options.indentBy = options.indentBy || \\"\\"; + return _cToJsonStr(node, options, 0); + }; + var _cToJsonStr = function(node, options, level) { + let jObj = \\"{\\"; + const keys = Object.keys(node.child); + for (let index = 0; index < keys.length; index++) { + var tagname = keys[index]; + if (node.child[tagname] && node.child[tagname].length > 1) { + jObj += '\\"' + tagname + '\\" : [ '; + for (var tag in node.child[tagname]) { + jObj += _cToJsonStr(node.child[tagname][tag], options) + \\" , \\"; + } + jObj = jObj.substr(0, jObj.length - 1) + \\" ] \\"; + } else { + jObj += '\\"' + tagname + '\\" : ' + _cToJsonStr(node.child[tagname][0], options) + \\" ,\\"; + } + } + util.merge(jObj, node.attrsMap); + if (util.isEmptyObject(jObj)) { + return util.isExist(node.val) ? node.val : \\"\\"; + } else { + if (util.isExist(node.val)) { + if (!(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { + jObj += '\\"' + options.textNodeName + '\\" : ' + stringval(node.val); + } + } + } + if (jObj[jObj.length - 1] === \\",\\") { + jObj = jObj.substr(0, jObj.length - 2); + } + return jObj + \\"}\\"; + }; + function stringval(v) { + if (v === true || v === false || !isNaN(v)) { + return v; + } else { + return '\\"' + v + '\\"'; + } + } + exports2.convertToJsonString = convertToJsonString; + } +}); + +// node_modules/fast-xml-parser/src/json2xml.js +var require_json2xml = __commonJS({ + \\"node_modules/fast-xml-parser/src/json2xml.js\\"(exports2, module2) { + \\"use strict\\"; + var buildOptions = require_util().buildOptions; + var defaultOptions = { + attributeNamePrefix: \\"@_\\", + attrNodeName: false, + textNodeName: \\"#text\\", + ignoreAttributes: true, + cdataTagName: false, + cdataPositionChar: \\"\\\\\\\\c\\", + format: false, + indentBy: \\" \\", + supressEmptyNode: false, + tagValueProcessor: function(a) { + return a; + }, + attrValueProcessor: function(a) { + return a; + } + }; + var props = [ + \\"attributeNamePrefix\\", + \\"attrNodeName\\", + \\"textNodeName\\", + \\"ignoreAttributes\\", + \\"cdataTagName\\", + \\"cdataPositionChar\\", + \\"format\\", + \\"indentBy\\", + \\"supressEmptyNode\\", + \\"tagValueProcessor\\", + \\"attrValueProcessor\\" + ]; + function Parser(options) { + this.options = buildOptions(options, defaultOptions, props); + if (this.options.ignoreAttributes || this.options.attrNodeName) { + this.isAttribute = function() { + return false; + }; + } else { + this.attrPrefixLen = this.options.attributeNamePrefix.length; + this.isAttribute = isAttribute; + } + if (this.options.cdataTagName) { + this.isCDATA = isCDATA; + } else { + this.isCDATA = function() { + return false; + }; + } + this.replaceCDATAstr = replaceCDATAstr; + this.replaceCDATAarr = replaceCDATAarr; + if (this.options.format) { + this.indentate = indentate; + this.tagEndChar = \\">\\\\n\\"; + this.newLine = \\"\\\\n\\"; + } else { + this.indentate = function() { + return \\"\\"; + }; + this.tagEndChar = \\">\\"; + this.newLine = \\"\\"; + } + if (this.options.supressEmptyNode) { + this.buildTextNode = buildEmptyTextNode; + this.buildObjNode = buildEmptyObjNode; + } else { + this.buildTextNode = buildTextValNode; + this.buildObjNode = buildObjectNode; + } + this.buildTextValNode = buildTextValNode; + this.buildObjectNode = buildObjectNode; + } + Parser.prototype.parse = function(jObj) { + return this.j2x(jObj, 0).val; + }; + Parser.prototype.j2x = function(jObj, level) { + let attrStr = \\"\\"; + let val = \\"\\"; + const keys = Object.keys(jObj); + const len = keys.length; + for (let i = 0; i < len; i++) { + const key = keys[i]; + if (typeof jObj[key] === \\"undefined\\") { + } else if (jObj[key] === null) { + val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; + } else if (jObj[key] instanceof Date) { + val += this.buildTextNode(jObj[key], key, \\"\\", level); + } else if (typeof jObj[key] !== \\"object\\") { + const attr = this.isAttribute(key); + if (attr) { + attrStr += \\" \\" + attr + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key]) + '\\"'; + } else if (this.isCDATA(key)) { + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAstr(\\"\\", jObj[key]); + } + } else { + if (key === this.options.textNodeName) { + if (jObj[this.options.cdataTagName]) { + } else { + val += this.options.tagValueProcessor(\\"\\" + jObj[key]); + } + } else { + val += this.buildTextNode(jObj[key], key, \\"\\", level); + } + } + } else if (Array.isArray(jObj[key])) { + if (this.isCDATA(key)) { + val += this.indentate(level); + if (jObj[this.options.textNodeName]) { + val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); + } else { + val += this.replaceCDATAarr(\\"\\", jObj[key]); + } + } else { + const arrLen = jObj[key].length; + for (let j = 0; j < arrLen; j++) { + const item = jObj[key][j]; + if (typeof item === \\"undefined\\") { + } else if (item === null) { + val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; + } else if (typeof item === \\"object\\") { + const result = this.j2x(item, level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } else { + val += this.buildTextNode(item, key, \\"\\", level); + } + } + } + } else { + if (this.options.attrNodeName && key === this.options.attrNodeName) { + const Ks = Object.keys(jObj[key]); + const L = Ks.length; + for (let j = 0; j < L; j++) { + attrStr += \\" \\" + Ks[j] + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key][Ks[j]]) + '\\"'; + } + } else { + const result = this.j2x(jObj[key], level + 1); + val += this.buildObjNode(result.val, key, result.attrStr, level); + } + } + } + return { attrStr, val }; + }; + function replaceCDATAstr(str, cdata) { + str = this.options.tagValueProcessor(\\"\\" + str); + if (this.options.cdataPositionChar === \\"\\" || str === \\"\\") { + return str + \\"\\"); + } + return str + this.newLine; + } + } + function buildObjectNode(val, key, attrStr, level) { + if (attrStr && !val.includes(\\"<\\")) { + return this.indentate(level) + \\"<\\" + key + attrStr + \\">\\" + val + \\"\\" + this.options.tagValueProcessor(val) + \\" { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleRequest(input, context), + Action: \\"AssumeRole\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; + var serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), + Action: \\"AssumeRoleWithSAML\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; + var serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), + Action: \\"AssumeRoleWithWebIdentity\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; + var serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), + Action: \\"DecodeAuthorizationMessage\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; + var serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetAccessKeyInfoRequest(input, context), + Action: \\"GetAccessKeyInfo\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; + var serializeAws_queryGetCallerIdentityCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetCallerIdentityRequest(input, context), + Action: \\"GetCallerIdentity\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; + var serializeAws_queryGetFederationTokenCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetFederationTokenRequest(input, context), + Action: \\"GetFederationToken\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; + var serializeAws_queryGetSessionTokenCommand = async (input, context) => { + const headers = { + \\"content-type\\": \\"application/x-www-form-urlencoded\\" + }; + let body; + body = buildFormUrlencodedString({ + ...serializeAws_queryGetSessionTokenRequest(input, context), + Action: \\"GetSessionToken\\", + Version: \\"2011-06-15\\" + }); + return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); + }; + exports2.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryAssumeRoleCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; + var deserializeAws_queryAssumeRoleCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExpiredTokenException\\": + case \\"com.amazonaws.sts#ExpiredTokenException\\": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; + var deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExpiredTokenException\\": + case \\"com.amazonaws.sts#ExpiredTokenException\\": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case \\"IDPRejectedClaimException\\": + case \\"com.amazonaws.sts#IDPRejectedClaimException\\": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case \\"InvalidIdentityTokenException\\": + case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; + var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"ExpiredTokenException\\": + case \\"com.amazonaws.sts#ExpiredTokenException\\": + throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); + case \\"IDPCommunicationErrorException\\": + case \\"com.amazonaws.sts#IDPCommunicationErrorException\\": + throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); + case \\"IDPRejectedClaimException\\": + case \\"com.amazonaws.sts#IDPRejectedClaimException\\": + throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); + case \\"InvalidIdentityTokenException\\": + case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": + throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; + var deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidAuthorizationMessageException\\": + case \\"com.amazonaws.sts#InvalidAuthorizationMessageException\\": + throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; + var deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetCallerIdentityCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; + var deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + }; + var deserializeAws_queryGetFederationTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetFederationTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; + var deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"MalformedPolicyDocumentException\\": + case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": + throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); + case \\"PackedPolicyTooLargeException\\": + case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": + throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryGetSessionTokenCommand = async (output, context) => { + if (output.statusCode >= 300) { + return deserializeAws_queryGetSessionTokenCommandError(output, context); + } + const data = await parseBody(output.body, context); + let contents = {}; + contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); + const response = { + $metadata: deserializeMetadata(output), + ...contents + }; + return Promise.resolve(response); + }; + exports2.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; + var deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadQueryErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"RegionDisabledException\\": + case \\"com.amazonaws.sts#RegionDisabledException\\": + throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody: parsedBody.Error, + exceptionCtor: STSServiceException_1.STSServiceException, + errorCode + }); + } + }; + var deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); + const exception = new models_0_1.ExpiredTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); + const exception = new models_0_1.IDPCommunicationErrorException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); + const exception = new models_0_1.IDPRejectedClaimException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); + const exception = new models_0_1.InvalidAuthorizationMessageException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); + const exception = new models_0_1.InvalidIdentityTokenException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); + const exception = new models_0_1.MalformedPolicyDocumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); + const exception = new models_0_1.PackedPolicyTooLargeException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { + const body = parsedOutput.body; + const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); + const exception = new models_0_1.RegionDisabledException({ + $metadata: deserializeMetadata(parsedOutput), + ...deserialized + }); + return (0, smithy_client_1.decorateServiceException)(exception, body); + }; + var serializeAws_queryAssumeRoleRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries[\\"RoleArn\\"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries[\\"RoleSessionName\\"] = input.RoleSessionName; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`Tags.\${key}\`; + entries[loc] = value; + }); + } + if (input.TransitiveTagKeys != null) { + const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`TransitiveTagKeys.\${key}\`; + entries[loc] = value; + }); + } + if (input.ExternalId != null) { + entries[\\"ExternalId\\"] = input.ExternalId; + } + if (input.SerialNumber != null) { + entries[\\"SerialNumber\\"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries[\\"TokenCode\\"] = input.TokenCode; + } + if (input.SourceIdentity != null) { + entries[\\"SourceIdentity\\"] = input.SourceIdentity; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries[\\"RoleArn\\"] = input.RoleArn; + } + if (input.PrincipalArn != null) { + entries[\\"PrincipalArn\\"] = input.PrincipalArn; + } + if (input.SAMLAssertion != null) { + entries[\\"SAMLAssertion\\"] = input.SAMLAssertion; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { + const entries = {}; + if (input.RoleArn != null) { + entries[\\"RoleArn\\"] = input.RoleArn; + } + if (input.RoleSessionName != null) { + entries[\\"RoleSessionName\\"] = input.RoleSessionName; + } + if (input.WebIdentityToken != null) { + entries[\\"WebIdentityToken\\"] = input.WebIdentityToken; + } + if (input.ProviderId != null) { + entries[\\"ProviderId\\"] = input.ProviderId; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + return entries; + }; + var serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { + const entries = {}; + if (input.EncodedMessage != null) { + entries[\\"EncodedMessage\\"] = input.EncodedMessage; + } + return entries; + }; + var serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { + const entries = {}; + if (input.AccessKeyId != null) { + entries[\\"AccessKeyId\\"] = input.AccessKeyId; + } + return entries; + }; + var serializeAws_queryGetCallerIdentityRequest = (input, context) => { + const entries = {}; + return entries; + }; + var serializeAws_queryGetFederationTokenRequest = (input, context) => { + const entries = {}; + if (input.Name != null) { + entries[\\"Name\\"] = input.Name; + } + if (input.Policy != null) { + entries[\\"Policy\\"] = input.Policy; + } + if (input.PolicyArns != null) { + const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`PolicyArns.\${key}\`; + entries[loc] = value; + }); + } + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + if (input.Tags != null) { + const memberEntries = serializeAws_querytagListType(input.Tags, context); + Object.entries(memberEntries).forEach(([key, value]) => { + const loc = \`Tags.\${key}\`; + entries[loc] = value; + }); + } + return entries; + }; + var serializeAws_queryGetSessionTokenRequest = (input, context) => { + const entries = {}; + if (input.DurationSeconds != null) { + entries[\\"DurationSeconds\\"] = input.DurationSeconds; + } + if (input.SerialNumber != null) { + entries[\\"SerialNumber\\"] = input.SerialNumber; + } + if (input.TokenCode != null) { + entries[\\"TokenCode\\"] = input.TokenCode; + } + return entries; + }; + var serializeAws_querypolicyDescriptorListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[\`member.\${counter}.\${key}\`] = value; + }); + counter++; + } + return entries; + }; + var serializeAws_queryPolicyDescriptorType = (input, context) => { + const entries = {}; + if (input.arn != null) { + entries[\\"arn\\"] = input.arn; + } + return entries; + }; + var serializeAws_queryTag = (input, context) => { + const entries = {}; + if (input.Key != null) { + entries[\\"Key\\"] = input.Key; + } + if (input.Value != null) { + entries[\\"Value\\"] = input.Value; + } + return entries; + }; + var serializeAws_querytagKeyListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + entries[\`member.\${counter}\`] = entry; + counter++; + } + return entries; + }; + var serializeAws_querytagListType = (input, context) => { + const entries = {}; + let counter = 1; + for (const entry of input) { + if (entry === null) { + continue; + } + const memberEntries = serializeAws_queryTag(entry, context); + Object.entries(memberEntries).forEach(([key, value]) => { + entries[\`member.\${counter}.\${key}\`] = value; + }); + counter++; + } + return entries; + }; + var deserializeAws_queryAssumedRoleUser = (output, context) => { + const contents = { + AssumedRoleId: void 0, + Arn: void 0 + }; + if (output[\\"AssumedRoleId\\"] !== void 0) { + contents.AssumedRoleId = (0, smithy_client_1.expectString)(output[\\"AssumedRoleId\\"]); + } + if (output[\\"Arn\\"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + SourceIdentity: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"AssumedRoleUser\\"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + if (output[\\"SourceIdentity\\"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { + const contents = { + Credentials: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Subject: void 0, + SubjectType: void 0, + Issuer: void 0, + Audience: void 0, + NameQualifier: void 0, + SourceIdentity: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"AssumedRoleUser\\"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + if (output[\\"Subject\\"] !== void 0) { + contents.Subject = (0, smithy_client_1.expectString)(output[\\"Subject\\"]); + } + if (output[\\"SubjectType\\"] !== void 0) { + contents.SubjectType = (0, smithy_client_1.expectString)(output[\\"SubjectType\\"]); + } + if (output[\\"Issuer\\"] !== void 0) { + contents.Issuer = (0, smithy_client_1.expectString)(output[\\"Issuer\\"]); + } + if (output[\\"Audience\\"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); + } + if (output[\\"NameQualifier\\"] !== void 0) { + contents.NameQualifier = (0, smithy_client_1.expectString)(output[\\"NameQualifier\\"]); + } + if (output[\\"SourceIdentity\\"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); + } + return contents; + }; + var deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { + const contents = { + Credentials: void 0, + SubjectFromWebIdentityToken: void 0, + AssumedRoleUser: void 0, + PackedPolicySize: void 0, + Provider: void 0, + Audience: void 0, + SourceIdentity: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"SubjectFromWebIdentityToken\\"] !== void 0) { + contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output[\\"SubjectFromWebIdentityToken\\"]); + } + if (output[\\"AssumedRoleUser\\"] !== void 0) { + contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + if (output[\\"Provider\\"] !== void 0) { + contents.Provider = (0, smithy_client_1.expectString)(output[\\"Provider\\"]); + } + if (output[\\"Audience\\"] !== void 0) { + contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); + } + if (output[\\"SourceIdentity\\"] !== void 0) { + contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); + } + return contents; + }; + var deserializeAws_queryCredentials = (output, context) => { + const contents = { + AccessKeyId: void 0, + SecretAccessKey: void 0, + SessionToken: void 0, + Expiration: void 0 + }; + if (output[\\"AccessKeyId\\"] !== void 0) { + contents.AccessKeyId = (0, smithy_client_1.expectString)(output[\\"AccessKeyId\\"]); + } + if (output[\\"SecretAccessKey\\"] !== void 0) { + contents.SecretAccessKey = (0, smithy_client_1.expectString)(output[\\"SecretAccessKey\\"]); + } + if (output[\\"SessionToken\\"] !== void 0) { + contents.SessionToken = (0, smithy_client_1.expectString)(output[\\"SessionToken\\"]); + } + if (output[\\"Expiration\\"] !== void 0) { + contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output[\\"Expiration\\"])); + } + return contents; + }; + var deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { + const contents = { + DecodedMessage: void 0 + }; + if (output[\\"DecodedMessage\\"] !== void 0) { + contents.DecodedMessage = (0, smithy_client_1.expectString)(output[\\"DecodedMessage\\"]); + } + return contents; + }; + var deserializeAws_queryExpiredTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryFederatedUser = (output, context) => { + const contents = { + FederatedUserId: void 0, + Arn: void 0 + }; + if (output[\\"FederatedUserId\\"] !== void 0) { + contents.FederatedUserId = (0, smithy_client_1.expectString)(output[\\"FederatedUserId\\"]); + } + if (output[\\"Arn\\"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); + } + return contents; + }; + var deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { + const contents = { + Account: void 0 + }; + if (output[\\"Account\\"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); + } + return contents; + }; + var deserializeAws_queryGetCallerIdentityResponse = (output, context) => { + const contents = { + UserId: void 0, + Account: void 0, + Arn: void 0 + }; + if (output[\\"UserId\\"] !== void 0) { + contents.UserId = (0, smithy_client_1.expectString)(output[\\"UserId\\"]); + } + if (output[\\"Account\\"] !== void 0) { + contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); + } + if (output[\\"Arn\\"] !== void 0) { + contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); + } + return contents; + }; + var deserializeAws_queryGetFederationTokenResponse = (output, context) => { + const contents = { + Credentials: void 0, + FederatedUser: void 0, + PackedPolicySize: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + if (output[\\"FederatedUser\\"] !== void 0) { + contents.FederatedUser = deserializeAws_queryFederatedUser(output[\\"FederatedUser\\"], context); + } + if (output[\\"PackedPolicySize\\"] !== void 0) { + contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); + } + return contents; + }; + var deserializeAws_queryGetSessionTokenResponse = (output, context) => { + const contents = { + Credentials: void 0 + }; + if (output[\\"Credentials\\"] !== void 0) { + contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); + } + return contents; + }; + var deserializeAws_queryIDPCommunicationErrorException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryIDPRejectedClaimException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryInvalidIdentityTokenException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeAws_queryRegionDisabledException = (output, context) => { + const contents = { + message: void 0 + }; + if (output[\\"message\\"] !== void 0) { + contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); + } + return contents; + }; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const contents = { + protocol, + hostname, + port, + method: \\"POST\\", + path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, + headers + }; + if (resolvedHostname !== void 0) { + contents.hostname = resolvedHostname; + } + if (body !== void 0) { + contents.body = body; + } + return new protocol_http_1.HttpRequest(contents); + }; + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { + attributeNamePrefix: \\"\\", + ignoreAttributes: false, + parseNodeValue: false, + trimValues: false, + tagValueProcessor: (val) => val.trim() === \\"\\" && val.includes(\\"\\\\n\\") ? \\"\\" : (0, entities_1.decodeHTML)(val) + }); + const textNodeName = \\"#text\\"; + const key = Object.keys(parsedObj)[0]; + const parsedObjToReturn = parsedObj[key]; + if (parsedObjToReturn[textNodeName]) { + parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; + delete parsedObjToReturn[textNodeName]; + } + return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); + } + return {}; + }); + var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + \\"=\\" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join(\\"&\\"); + var loadQueryErrorCode = (output, data) => { + if (data.Error.Code !== void 0) { + return data.Error.Code; + } + if (output.statusCode == 404) { + return \\"NotFound\\"; + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +var require_AssumeRoleCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AssumeRoleCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"AssumeRoleCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); + } + }; + exports2.AssumeRoleCommand = AssumeRoleCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +var require_AssumeRoleWithSAMLCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AssumeRoleWithSAMLCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithSAMLCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"AssumeRoleWithSAMLCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); + } + }; + exports2.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +var require_AssumeRoleWithWebIdentityCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.AssumeRoleWithWebIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"AssumeRoleWithWebIdentityCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); + } + }; + exports2.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +var require_DecodeAuthorizationMessageCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DecodeAuthorizationMessageCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var DecodeAuthorizationMessageCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"DecodeAuthorizationMessageCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); + } + }; + exports2.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +var require_GetAccessKeyInfoCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetAccessKeyInfoCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetAccessKeyInfoCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetAccessKeyInfoCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); + } + }; + exports2.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +var require_GetCallerIdentityCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetCallerIdentityCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetCallerIdentityCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetCallerIdentityCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); + } + }; + exports2.GetCallerIdentityCommand = GetCallerIdentityCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +var require_GetFederationTokenCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetFederationTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetFederationTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetFederationTokenCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); + } + }; + exports2.GetFederationTokenCommand = GetFederationTokenCommand; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +var require_GetSessionTokenCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetSessionTokenCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var middleware_signing_1 = require_dist_cjs21(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_02(); + var Aws_query_1 = require_Aws_query(); + var GetSessionTokenCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"STSClient\\"; + const commandName = \\"GetSessionTokenCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); + } + }; + exports2.GetSessionTokenCommand = GetSessionTokenCommand; + } +}); + +// node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +var require_dist_cjs23 = __commonJS({ + \\"node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveStsAuthConfig = void 0; + var middleware_signing_1 = require_dist_cjs21(); + var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ + ...input, + stsClientCtor + }); + exports2.resolveStsAuthConfig = resolveStsAuthConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/package.json +var require_package2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/package.json\\"(exports2, module2) { + module2.exports = { + name: \\"@aws-sdk/client-sts\\", + description: \\"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native\\", + version: \\"3.163.0\\", + scripts: { + build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", + \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", + \\"build:docs\\": \\"typedoc\\", + \\"build:es\\": \\"tsc -p tsconfig.es.json\\", + \\"build:types\\": \\"tsc -p tsconfig.types.json\\", + \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", + clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\", + test: \\"yarn test:unit\\", + \\"test:unit\\": \\"jest\\" + }, + main: \\"./dist-cjs/index.js\\", + types: \\"./dist-types/index.d.ts\\", + module: \\"./dist-es/index.js\\", + sideEffects: false, + dependencies: { + \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", + \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", + \\"@aws-sdk/config-resolver\\": \\"3.163.0\\", + \\"@aws-sdk/credential-provider-node\\": \\"3.163.0\\", + \\"@aws-sdk/fetch-http-handler\\": \\"3.162.0\\", + \\"@aws-sdk/hash-node\\": \\"3.162.0\\", + \\"@aws-sdk/invalid-dependency\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-content-length\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-host-header\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-logger\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-recursion-detection\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-retry\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-sdk-sts\\": \\"3.163.0\\", + \\"@aws-sdk/middleware-serde\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-signing\\": \\"3.163.0\\", + \\"@aws-sdk/middleware-stack\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-user-agent\\": \\"3.162.0\\", + \\"@aws-sdk/node-config-provider\\": \\"3.162.0\\", + \\"@aws-sdk/node-http-handler\\": \\"3.162.0\\", + \\"@aws-sdk/protocol-http\\": \\"3.162.0\\", + \\"@aws-sdk/smithy-client\\": \\"3.162.0\\", + \\"@aws-sdk/types\\": \\"3.162.0\\", + \\"@aws-sdk/url-parser\\": \\"3.162.0\\", + \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-browser\\": \\"3.154.0\\", + \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.162.0\\", + \\"@aws-sdk/util-defaults-mode-node\\": \\"3.163.0\\", + \\"@aws-sdk/util-user-agent-browser\\": \\"3.162.0\\", + \\"@aws-sdk/util-user-agent-node\\": \\"3.162.0\\", + \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", + entities: \\"2.2.0\\", + \\"fast-xml-parser\\": \\"3.19.0\\", + tslib: \\"^2.3.1\\" + }, + devDependencies: { + \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", + \\"@tsconfig/recommended\\": \\"1.0.1\\", + \\"@types/node\\": \\"^12.7.5\\", + concurrently: \\"7.0.0\\", + \\"downlevel-dts\\": \\"0.7.0\\", + rimraf: \\"3.0.2\\", + typedoc: \\"0.19.2\\", + typescript: \\"~4.6.2\\" + }, + overrides: { + typedoc: { + typescript: \\"~4.6.2\\" + } + }, + engines: { + node: \\">=12.0.0\\" + }, + typesVersions: { + \\"<4.0\\": { + \\"dist-types/*\\": [ + \\"dist-types/ts3.4/*\\" + ] + } + }, + files: [ + \\"dist-*\\" + ], + author: { + name: \\"AWS SDK for JavaScript Team\\", + url: \\"https://aws.amazon.com/javascript/\\" + }, + license: \\"Apache-2.0\\", + browser: { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" + }, + \\"react-native\\": { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" + }, + homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts\\", + repository: { + type: \\"git\\", + url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", + directory: \\"clients/client-sts\\" + } + }; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +var require_defaultStsRoleAssumers = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var ASSUME_ROLE_DEFAULT_REGION = \\"us-east-1\\"; + var decorateDefaultRegion = (region) => { + if (typeof region !== \\"function\\") { + return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; + } + return async () => { + try { + return await region(); + } catch (e) { + return ASSUME_ROLE_DEFAULT_REGION; + } + }; + }; + var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { + let stsClient; + let closureSourceCreds; + return async (sourceCreds, params) => { + closureSourceCreds = sourceCreds; + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + credentialDefaultProvider: () => async () => closureSourceCreds, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(\`Invalid response from STS.assumeRole call with role \${params.RoleArn}\`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { + let stsClient; + return async (params) => { + if (!stsClient) { + const { logger, region, requestHandler } = stsOptions; + stsClient = new stsClientCtor({ + logger, + region: decorateDefaultRegion(region || stsOptions.region), + ...requestHandler ? { requestHandler } : {} + }); + } + const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); + if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { + throw new Error(\`Invalid response from STS.assumeRoleWithWebIdentity call with role \${params.RoleArn}\`); + } + return { + accessKeyId: Credentials.AccessKeyId, + secretAccessKey: Credentials.SecretAccessKey, + sessionToken: Credentials.SessionToken, + expiration: Credentials.Expiration + }; + }; + }; + exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports2.getDefaultRoleAssumer)(input, input.stsClientCtor), + roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), + ...input + }); + exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +var require_fromEnv = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromEnv = exports2.ENV_EXPIRATION = exports2.ENV_SESSION = exports2.ENV_SECRET = exports2.ENV_KEY = void 0; + var property_provider_1 = require_dist_cjs16(); + exports2.ENV_KEY = \\"AWS_ACCESS_KEY_ID\\"; + exports2.ENV_SECRET = \\"AWS_SECRET_ACCESS_KEY\\"; + exports2.ENV_SESSION = \\"AWS_SESSION_TOKEN\\"; + exports2.ENV_EXPIRATION = \\"AWS_CREDENTIAL_EXPIRATION\\"; + var fromEnv = () => async () => { + const accessKeyId = process.env[exports2.ENV_KEY]; + const secretAccessKey = process.env[exports2.ENV_SECRET]; + const sessionToken = process.env[exports2.ENV_SESSION]; + const expiry = process.env[exports2.ENV_EXPIRATION]; + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...sessionToken && { sessionToken }, + ...expiry && { expiration: new Date(expiry) } + }; + } + throw new property_provider_1.CredentialsProviderError(\\"Unable to find environment variable credentials.\\"); + }; + exports2.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +var require_dist_cjs24 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromEnv(), exports2); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js +var require_getHomeDir = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getHomeDir = void 0; + var os_1 = require(\\"os\\"); + var path_1 = require(\\"path\\"); + var getHomeDir = () => { + const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = \`C:\${path_1.sep}\` } = process.env; + if (HOME) + return HOME; + if (USERPROFILE) + return USERPROFILE; + if (HOMEPATH) + return \`\${HOMEDRIVE}\${HOMEPATH}\`; + return (0, os_1.homedir)(); + }; + exports2.getHomeDir = getHomeDir; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js +var require_getProfileName = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getProfileName = exports2.DEFAULT_PROFILE = exports2.ENV_PROFILE = void 0; + exports2.ENV_PROFILE = \\"AWS_PROFILE\\"; + exports2.DEFAULT_PROFILE = \\"default\\"; + var getProfileName = (init) => init.profile || process.env[exports2.ENV_PROFILE] || exports2.DEFAULT_PROFILE; + exports2.getProfileName = getProfileName; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +var require_getSSOTokenFilepath = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSSOTokenFilepath = void 0; + var crypto_1 = require(\\"crypto\\"); + var path_1 = require(\\"path\\"); + var getHomeDir_1 = require_getHomeDir(); + var getSSOTokenFilepath = (ssoStartUrl) => { + const hasher = (0, crypto_1.createHash)(\\"sha1\\"); + const cacheName = hasher.update(ssoStartUrl).digest(\\"hex\\"); + return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"sso\\", \\"cache\\", \`\${cacheName}.json\`); + }; + exports2.getSSOTokenFilepath = getSSOTokenFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +var require_getSSOTokenFromFile = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSSOTokenFromFile = void 0; + var fs_1 = require(\\"fs\\"); + var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); + var { readFile } = fs_1.promises; + var getSSOTokenFromFile = async (ssoStartUrl) => { + const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); + const ssoTokenText = await readFile(ssoTokenFilepath, \\"utf8\\"); + return JSON.parse(ssoTokenText); + }; + exports2.getSSOTokenFromFile = getSSOTokenFromFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +var require_getConfigFilepath = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getConfigFilepath = exports2.ENV_CONFIG_PATH = void 0; + var path_1 = require(\\"path\\"); + var getHomeDir_1 = require_getHomeDir(); + exports2.ENV_CONFIG_PATH = \\"AWS_CONFIG_FILE\\"; + var getConfigFilepath = () => process.env[exports2.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"config\\"); + exports2.getConfigFilepath = getConfigFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +var require_getCredentialsFilepath = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getCredentialsFilepath = exports2.ENV_CREDENTIALS_PATH = void 0; + var path_1 = require(\\"path\\"); + var getHomeDir_1 = require_getHomeDir(); + exports2.ENV_CREDENTIALS_PATH = \\"AWS_SHARED_CREDENTIALS_FILE\\"; + var getCredentialsFilepath = () => process.env[exports2.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"credentials\\"); + exports2.getCredentialsFilepath = getCredentialsFilepath; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js +var require_getProfileData = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getProfileData = void 0; + var profileKeyRegex = /^profile\\\\s([\\"'])?([^\\\\1]+)\\\\1$/; + var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { + ...data.default && { default: data.default } + }); + exports2.getProfileData = getProfileData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js +var require_parseIni = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseIni = void 0; + var profileNameBlockList = [\\"__proto__\\", \\"profile __proto__\\"]; + var parseIni = (iniData) => { + const map = {}; + let currentSection; + for (let line of iniData.split(/\\\\r?\\\\n/)) { + line = line.split(/(^|\\\\s)[;#]/)[0].trim(); + const isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; + if (isSection) { + currentSection = line.substring(1, line.length - 1); + if (profileNameBlockList.includes(currentSection)) { + throw new Error(\`Found invalid profile name \\"\${currentSection}\\"\`); + } + } else if (currentSection) { + const indexOfEqualsSign = line.indexOf(\\"=\\"); + const start = 0; + const end = line.length - 1; + const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; + if (isAssignment) { + const [name, value] = [ + line.substring(0, indexOfEqualsSign).trim(), + line.substring(indexOfEqualsSign + 1).trim() + ]; + map[currentSection] = map[currentSection] || {}; + map[currentSection][name] = value; + } + } + } + return map; + }; + exports2.parseIni = parseIni; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js +var require_slurpFile = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.slurpFile = void 0; + var fs_1 = require(\\"fs\\"); + var { readFile } = fs_1.promises; + var filePromisesHash = {}; + var slurpFile = (path) => { + if (!filePromisesHash[path]) { + filePromisesHash[path] = readFile(path, \\"utf8\\"); + } + return filePromisesHash[path]; + }; + exports2.slurpFile = slurpFile; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +var require_loadSharedConfigFiles = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadSharedConfigFiles = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getCredentialsFilepath_1 = require_getCredentialsFilepath(); + var getProfileData_1 = require_getProfileData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSharedConfigFiles = async (init = {}) => { + const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; + const parsedFiles = await Promise.all([ + (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), + (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError) + ]); + return { + configFile: parsedFiles[0], + credentialsFile: parsedFiles[1] + }; + }; + exports2.loadSharedConfigFiles = loadSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +var require_getSsoSessionData = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getSsoSessionData = void 0; + var ssoSessionKeyRegex = /^sso-session\\\\s([\\"'])?([^\\\\1]+)\\\\1$/; + var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); + exports2.getSsoSessionData = getSsoSessionData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +var require_loadSsoSessionData = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadSsoSessionData = void 0; + var getConfigFilepath_1 = require_getConfigFilepath(); + var getSsoSessionData_1 = require_getSsoSessionData(); + var parseIni_1 = require_parseIni(); + var slurpFile_1 = require_slurpFile(); + var swallowError = () => ({}); + var loadSsoSessionData = async (init = {}) => { + var _a; + return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); + }; + exports2.loadSsoSessionData = loadSsoSessionData; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +var require_parseKnownFiles = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseKnownFiles = void 0; + var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); + var parseKnownFiles = async (init) => { + const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); + return { + ...parsedFiles.configFile, + ...parsedFiles.credentialsFile + }; + }; + exports2.parseKnownFiles = parseKnownFiles; + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js +var require_types2 = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js +var require_dist_cjs25 = __commonJS({ + \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_getHomeDir(), exports2); + tslib_1.__exportStar(require_getProfileName(), exports2); + tslib_1.__exportStar(require_getSSOTokenFilepath(), exports2); + tslib_1.__exportStar(require_getSSOTokenFromFile(), exports2); + tslib_1.__exportStar(require_loadSharedConfigFiles(), exports2); + tslib_1.__exportStar(require_loadSsoSessionData(), exports2); + tslib_1.__exportStar(require_parseKnownFiles(), exports2); + tslib_1.__exportStar(require_types2(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +var require_httpRequest2 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.httpRequest = void 0; + var property_provider_1 = require_dist_cjs16(); + var buffer_1 = require(\\"buffer\\"); + var http_1 = require(\\"http\\"); + function httpRequest(options) { + return new Promise((resolve, reject) => { + var _a; + const req = (0, http_1.request)({ + method: \\"GET\\", + ...options, + hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\\\\[(.+)\\\\]$/, \\"$1\\") + }); + req.on(\\"error\\", (err) => { + reject(Object.assign(new property_provider_1.ProviderError(\\"Unable to connect to instance metadata service\\"), err)); + req.destroy(); + }); + req.on(\\"timeout\\", () => { + reject(new property_provider_1.ProviderError(\\"TimeoutError from instance metadata service\\")); + req.destroy(); + }); + req.on(\\"response\\", (res) => { + const { statusCode = 400 } = res; + if (statusCode < 200 || 300 <= statusCode) { + reject(Object.assign(new property_provider_1.ProviderError(\\"Error response received from instance metadata service\\"), { statusCode })); + req.destroy(); + } + const chunks = []; + res.on(\\"data\\", (chunk) => { + chunks.push(chunk); + }); + res.on(\\"end\\", () => { + resolve(buffer_1.Buffer.concat(chunks)); + req.destroy(); + }); + }); + req.end(); + }); + } + exports2.httpRequest = httpRequest; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +var require_ImdsCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromImdsCredentials = exports2.isImdsCredentials = void 0; + var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.AccessKeyId === \\"string\\" && typeof arg.SecretAccessKey === \\"string\\" && typeof arg.Token === \\"string\\" && typeof arg.Expiration === \\"string\\"; + exports2.isImdsCredentials = isImdsCredentials; + var fromImdsCredentials = (creds) => ({ + accessKeyId: creds.AccessKeyId, + secretAccessKey: creds.SecretAccessKey, + sessionToken: creds.Token, + expiration: new Date(creds.Expiration) + }); + exports2.fromImdsCredentials = fromImdsCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +var require_RemoteProviderInit = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.providerConfigFromInit = exports2.DEFAULT_MAX_RETRIES = exports2.DEFAULT_TIMEOUT = void 0; + exports2.DEFAULT_TIMEOUT = 1e3; + exports2.DEFAULT_MAX_RETRIES = 0; + var providerConfigFromInit = ({ maxRetries = exports2.DEFAULT_MAX_RETRIES, timeout = exports2.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); + exports2.providerConfigFromInit = providerConfigFromInit; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js +var require_retry = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.retry = void 0; + var retry = (toRetry, maxRetries) => { + let promise = toRetry(); + for (let i = 0; i < maxRetries; i++) { + promise = promise.catch(toRetry); + } + return promise; + }; + exports2.retry = retry; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js +var require_fromContainerMetadata = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromContainerMetadata = exports2.ENV_CMDS_AUTH_TOKEN = exports2.ENV_CMDS_RELATIVE_URI = exports2.ENV_CMDS_FULL_URI = void 0; + var property_provider_1 = require_dist_cjs16(); + var url_1 = require(\\"url\\"); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + exports2.ENV_CMDS_FULL_URI = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; + exports2.ENV_CMDS_RELATIVE_URI = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; + exports2.ENV_CMDS_AUTH_TOKEN = \\"AWS_CONTAINER_AUTHORIZATION_TOKEN\\"; + var fromContainerMetadata = (init = {}) => { + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + return () => (0, retry_1.retry)(async () => { + const requestOptions = await getCmdsUri(); + const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }, maxRetries); + }; + exports2.fromContainerMetadata = fromContainerMetadata; + var requestFromEcsImds = async (timeout, options) => { + if (process.env[exports2.ENV_CMDS_AUTH_TOKEN]) { + options.headers = { + ...options.headers, + Authorization: process.env[exports2.ENV_CMDS_AUTH_TOKEN] + }; + } + const buffer = await (0, httpRequest_1.httpRequest)({ + ...options, + timeout + }); + return buffer.toString(); + }; + var CMDS_IP = \\"169.254.170.2\\"; + var GREENGRASS_HOSTS = { + localhost: true, + \\"127.0.0.1\\": true + }; + var GREENGRASS_PROTOCOLS = { + \\"http:\\": true, + \\"https:\\": true + }; + var getCmdsUri = async () => { + if (process.env[exports2.ENV_CMDS_RELATIVE_URI]) { + return { + hostname: CMDS_IP, + path: process.env[exports2.ENV_CMDS_RELATIVE_URI] + }; + } + if (process.env[exports2.ENV_CMDS_FULL_URI]) { + const parsed = (0, url_1.parse)(process.env[exports2.ENV_CMDS_FULL_URI]); + if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { + throw new property_provider_1.CredentialsProviderError(\`\${parsed.hostname} is not a valid container metadata service hostname\`, false); + } + if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { + throw new property_provider_1.CredentialsProviderError(\`\${parsed.protocol} is not a valid container metadata service protocol\`, false); + } + return { + ...parsed, + port: parsed.port ? parseInt(parsed.port, 10) : void 0 + }; + } + throw new property_provider_1.CredentialsProviderError(\`The container metadata credential provider cannot be used unless the \${exports2.ENV_CMDS_RELATIVE_URI} or \${exports2.ENV_CMDS_FULL_URI} environment variable is set\`, false); + }; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js +var require_fromEnv2 = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromEnv = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromEnv = (envVarSelector) => async () => { + try { + const config = envVarSelector(process.env); + if (config === void 0) { + throw new Error(); + } + return config; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config from environment variables with getter: \${envVarSelector}\`); + } + }; + exports2.fromEnv = fromEnv; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js +var require_fromSharedConfigFiles = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromSharedConfigFiles = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var fromSharedConfigFiles = (configSelector, { preferredFile = \\"config\\", ...init } = {}) => async () => { + const profile = (0, shared_ini_file_loader_1.getProfileName)(init); + const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); + const profileFromCredentials = credentialsFile[profile] || {}; + const profileFromConfig = configFile[profile] || {}; + const mergedProfile = preferredFile === \\"config\\" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; + try { + const configValue = configSelector(mergedProfile); + if (configValue === void 0) { + throw new Error(); + } + return configValue; + } catch (e) { + throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config for profile \${profile} in SDK configuration files with getter: \${configSelector}\`); + } + }; + exports2.fromSharedConfigFiles = fromSharedConfigFiles; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js +var require_fromStatic2 = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromStatic = void 0; + var property_provider_1 = require_dist_cjs16(); + var isFunction = (func) => typeof func === \\"function\\"; + var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); + exports2.fromStatic = fromStatic; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js +var require_configLoader = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.loadConfig = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromEnv_1 = require_fromEnv2(); + var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); + var fromStatic_1 = require_fromStatic2(); + var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); + exports2.loadConfig = loadConfig; + } +}); + +// node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js +var require_dist_cjs26 = __commonJS({ + \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_configLoader(), exports2); + } +}); + +// node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js +var require_dist_cjs27 = __commonJS({ + \\"node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseQueryString = void 0; + function parseQueryString(querystring) { + const query = {}; + querystring = querystring.replace(/^\\\\?/, \\"\\"); + if (querystring) { + for (const pair of querystring.split(\\"&\\")) { + let [key, value = null] = pair.split(\\"=\\"); + key = decodeURIComponent(key); + if (value) { + value = decodeURIComponent(value); + } + if (!(key in query)) { + query[key] = value; + } else if (Array.isArray(query[key])) { + query[key].push(value); + } else { + query[key] = [query[key], value]; + } + } + } + return query; + } + exports2.parseQueryString = parseQueryString; + } +}); + +// node_modules/@aws-sdk/url-parser/dist-cjs/index.js +var require_dist_cjs28 = __commonJS({ + \\"node_modules/@aws-sdk/url-parser/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.parseUrl = void 0; + var querystring_parser_1 = require_dist_cjs27(); + var parseUrl = (url) => { + const { hostname, pathname, port, protocol, search } = new URL(url); + let query; + if (search) { + query = (0, querystring_parser_1.parseQueryString)(search); + } + return { + hostname, + port: port ? parseInt(port) : void 0, + protocol, + path: pathname, + query + }; + }; + exports2.parseUrl = parseUrl; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js +var require_Endpoint2 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Endpoint = void 0; + var Endpoint; + (function(Endpoint2) { + Endpoint2[\\"IPv4\\"] = \\"http://169.254.169.254\\"; + Endpoint2[\\"IPv6\\"] = \\"http://[fd00:ec2::254]\\"; + })(Endpoint = exports2.Endpoint || (exports2.Endpoint = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +var require_EndpointConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ENDPOINT_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_NAME = exports2.ENV_ENDPOINT_NAME = void 0; + exports2.ENV_ENDPOINT_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT\\"; + exports2.CONFIG_ENDPOINT_NAME = \\"ec2_metadata_service_endpoint\\"; + exports2.ENDPOINT_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_NAME], + configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_NAME], + default: void 0 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js +var require_EndpointMode = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.EndpointMode = void 0; + var EndpointMode; + (function(EndpointMode2) { + EndpointMode2[\\"IPv4\\"] = \\"IPv4\\"; + EndpointMode2[\\"IPv6\\"] = \\"IPv6\\"; + })(EndpointMode = exports2.EndpointMode || (exports2.EndpointMode = {})); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +var require_EndpointModeConfigOptions = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ENDPOINT_MODE_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_MODE_NAME = exports2.ENV_ENDPOINT_MODE_NAME = void 0; + var EndpointMode_1 = require_EndpointMode(); + exports2.ENV_ENDPOINT_MODE_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE\\"; + exports2.CONFIG_ENDPOINT_MODE_NAME = \\"ec2_metadata_service_endpoint_mode\\"; + exports2.ENDPOINT_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_MODE_NAME], + configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_MODE_NAME], + default: EndpointMode_1.EndpointMode.IPv4 + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +var require_getInstanceMetadataEndpoint = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getInstanceMetadataEndpoint = void 0; + var node_config_provider_1 = require_dist_cjs26(); + var url_parser_1 = require_dist_cjs28(); + var Endpoint_1 = require_Endpoint2(); + var EndpointConfigOptions_1 = require_EndpointConfigOptions(); + var EndpointMode_1 = require_EndpointMode(); + var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); + var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); + exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; + var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); + var getFromEndpointModeConfig = async () => { + const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); + switch (endpointMode) { + case EndpointMode_1.EndpointMode.IPv4: + return Endpoint_1.Endpoint.IPv4; + case EndpointMode_1.EndpointMode.IPv6: + return Endpoint_1.Endpoint.IPv6; + default: + throw new Error(\`Unsupported endpoint mode: \${endpointMode}. Select from \${Object.values(EndpointMode_1.EndpointMode)}\`); + } + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +var require_getExtendedInstanceMetadataCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getExtendedInstanceMetadataCredentials = void 0; + var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; + var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; + var STATIC_STABILITY_DOC_URL = \\"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\\"; + var getExtendedInstanceMetadataCredentials = (credentials, logger) => { + var _a; + const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); + const newExpiration = new Date(Date.now() + refreshInterval * 1e3); + logger.warn(\\"Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after \${new Date(newExpiration)}.\\\\nFor more information, please visit: \\" + STATIC_STABILITY_DOC_URL); + const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; + return { + ...credentials, + ...originalExpiration ? { originalExpiration } : {}, + expiration: newExpiration + }; + }; + exports2.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +var require_staticStabilityProvider = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.staticStabilityProvider = void 0; + var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); + var staticStabilityProvider = (provider, options = {}) => { + const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; + let pastCredentials; + return async () => { + let credentials; + try { + credentials = await provider(); + if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); + } + } catch (e) { + if (pastCredentials) { + logger.warn(\\"Credential renew failed: \\", e); + credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); + } else { + throw e; + } + } + pastCredentials = credentials; + return credentials; + }; + }; + exports2.staticStabilityProvider = staticStabilityProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +var require_fromInstanceMetadata = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromInstanceMetadata = void 0; + var property_provider_1 = require_dist_cjs16(); + var httpRequest_1 = require_httpRequest2(); + var ImdsCredentials_1 = require_ImdsCredentials(); + var RemoteProviderInit_1 = require_RemoteProviderInit(); + var retry_1 = require_retry(); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + var staticStabilityProvider_1 = require_staticStabilityProvider(); + var IMDS_PATH = \\"/latest/meta-data/iam/security-credentials/\\"; + var IMDS_TOKEN_PATH = \\"/latest/api/token\\"; + var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); + exports2.fromInstanceMetadata = fromInstanceMetadata; + var getInstanceImdsProvider = (init) => { + let disableFetchToken = false; + const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); + const getCredentials = async (maxRetries2, options) => { + const profile = (await (0, retry_1.retry)(async () => { + let profile2; + try { + profile2 = await getProfile(options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return profile2; + }, maxRetries2)).trim(); + return (0, retry_1.retry)(async () => { + let creds; + try { + creds = await getCredentialsFromProfile(profile, options); + } catch (err) { + if (err.statusCode === 401) { + disableFetchToken = false; + } + throw err; + } + return creds; + }, maxRetries2); + }; + return async () => { + const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); + if (disableFetchToken) { + return getCredentials(maxRetries, { ...endpoint, timeout }); + } else { + let token; + try { + token = (await getMetadataToken({ ...endpoint, timeout })).toString(); + } catch (error) { + if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { + throw Object.assign(error, { + message: \\"EC2 Metadata token request returned error\\" + }); + } else if (error.message === \\"TimeoutError\\" || [403, 404, 405].includes(error.statusCode)) { + disableFetchToken = true; + } + return getCredentials(maxRetries, { ...endpoint, timeout }); + } + return getCredentials(maxRetries, { + ...endpoint, + headers: { + \\"x-aws-ec2-metadata-token\\": token + }, + timeout + }); + } + }; + }; + var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_TOKEN_PATH, + method: \\"PUT\\", + headers: { + \\"x-aws-ec2-metadata-token-ttl-seconds\\": \\"21600\\" + } + }); + var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); + var getCredentialsFromProfile = async (profile, options) => { + const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ + ...options, + path: IMDS_PATH + profile + })).toString()); + if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { + throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); + } + return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js +var require_types3 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js +var require_dist_cjs29 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getInstanceMetadataEndpoint = exports2.httpRequest = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromContainerMetadata(), exports2); + tslib_1.__exportStar(require_fromInstanceMetadata(), exports2); + tslib_1.__exportStar(require_RemoteProviderInit(), exports2); + tslib_1.__exportStar(require_types3(), exports2); + var httpRequest_1 = require_httpRequest2(); + Object.defineProperty(exports2, \\"httpRequest\\", { enumerable: true, get: function() { + return httpRequest_1.httpRequest; + } }); + var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); + Object.defineProperty(exports2, \\"getInstanceMetadataEndpoint\\", { enumerable: true, get: function() { + return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +var require_resolveCredentialSource = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveCredentialSource = void 0; + var credential_provider_env_1 = require_dist_cjs24(); + var credential_provider_imds_1 = require_dist_cjs29(); + var property_provider_1 = require_dist_cjs16(); + var resolveCredentialSource = (credentialSource, profileName) => { + const sourceProvidersMap = { + EcsContainer: credential_provider_imds_1.fromContainerMetadata, + Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, + Environment: credential_provider_env_1.fromEnv + }; + if (credentialSource in sourceProvidersMap) { + return sourceProvidersMap[credentialSource](); + } else { + throw new property_provider_1.CredentialsProviderError(\`Unsupported credential source in profile \${profileName}. Got \${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.\`); + } + }; + exports2.resolveCredentialSource = resolveCredentialSource; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +var require_resolveAssumeRoleCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveAssumeRoleCredentials = exports2.isAssumeRoleProfile = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var resolveCredentialSource_1 = require_resolveCredentialSource(); + var resolveProfileData_1 = require_resolveProfileData(); + var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.external_id) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); + exports2.isAssumeRoleProfile = isAssumeRoleProfile; + var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === \\"string\\" && typeof arg.credential_source === \\"undefined\\"; + var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === \\"string\\" && typeof arg.source_profile === \\"undefined\\"; + var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (!options.roleAssumer) { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires a role to be assumed, but no role assumption callback was provided.\`, false); + } + const { source_profile } = data; + if (source_profile && source_profile in visitedProfiles) { + throw new property_provider_1.CredentialsProviderError(\`Detected a cycle attempting to resolve credentials for profile \${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: \` + Object.keys(visitedProfiles).join(\\", \\"), false); + } + const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { + ...visitedProfiles, + [source_profile]: true + }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); + const params = { + RoleArn: data.role_arn, + RoleSessionName: data.role_session_name || \`aws-sdk-js-\${Date.now()}\`, + ExternalId: data.external_id + }; + const { mfa_serial } = data; + if (mfa_serial) { + if (!options.mfaCodeProvider) { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires multi-factor authentication, but no MFA code callback was provided.\`, false); + } + params.SerialNumber = mfa_serial; + params.TokenCode = await options.mfaCodeProvider(mfa_serial); + } + const sourceCreds = await sourceCredsProvider; + return options.roleAssumer(sourceCreds, params); + }; + exports2.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +var require_isSsoProfile = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isSsoProfile = void 0; + var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === \\"string\\" || typeof arg.sso_account_id === \\"string\\" || typeof arg.sso_region === \\"string\\" || typeof arg.sso_role_name === \\"string\\"); + exports2.isSsoProfile = isSsoProfile; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +var require_SSOServiceException = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSOServiceException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var SSOServiceException = class extends smithy_client_1.ServiceException { + constructor(options) { + super(options); + Object.setPrototypeOf(this, SSOServiceException.prototype); + } + }; + exports2.SSOServiceException = SSOServiceException; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +var require_models_03 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.LogoutRequestFilterSensitiveLog = exports2.ListAccountsResponseFilterSensitiveLog = exports2.ListAccountsRequestFilterSensitiveLog = exports2.ListAccountRolesResponseFilterSensitiveLog = exports2.RoleInfoFilterSensitiveLog = exports2.ListAccountRolesRequestFilterSensitiveLog = exports2.GetRoleCredentialsResponseFilterSensitiveLog = exports2.RoleCredentialsFilterSensitiveLog = exports2.GetRoleCredentialsRequestFilterSensitiveLog = exports2.AccountInfoFilterSensitiveLog = exports2.UnauthorizedException = exports2.TooManyRequestsException = exports2.ResourceNotFoundException = exports2.InvalidRequestException = void 0; + var smithy_client_1 = require_dist_cjs3(); + var SSOServiceException_1 = require_SSOServiceException(); + var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"InvalidRequestException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"InvalidRequestException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, InvalidRequestException.prototype); + } + }; + exports2.InvalidRequestException = InvalidRequestException; + var ResourceNotFoundException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"ResourceNotFoundException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"ResourceNotFoundException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, ResourceNotFoundException.prototype); + } + }; + exports2.ResourceNotFoundException = ResourceNotFoundException; + var TooManyRequestsException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"TooManyRequestsException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"TooManyRequestsException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + } + }; + exports2.TooManyRequestsException = TooManyRequestsException; + var UnauthorizedException = class extends SSOServiceException_1.SSOServiceException { + constructor(opts) { + super({ + name: \\"UnauthorizedException\\", + $fault: \\"client\\", + ...opts + }); + this.name = \\"UnauthorizedException\\"; + this.$fault = \\"client\\"; + Object.setPrototypeOf(this, UnauthorizedException.prototype); + } + }; + exports2.UnauthorizedException = UnauthorizedException; + var AccountInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; + var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; + var RoleCredentialsFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, + ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; + var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.roleCredentials && { roleCredentials: (0, exports2.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } + }); + exports2.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; + var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; + var RoleInfoFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; + var ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; + var ListAccountsRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; + var ListAccountsResponseFilterSensitiveLog = (obj) => ({ + ...obj + }); + exports2.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; + var LogoutRequestFilterSensitiveLog = (obj) => ({ + ...obj, + ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } + }); + exports2.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +var require_Aws_restJson1 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.deserializeAws_restJson1LogoutCommand = exports2.deserializeAws_restJson1ListAccountsCommand = exports2.deserializeAws_restJson1ListAccountRolesCommand = exports2.deserializeAws_restJson1GetRoleCredentialsCommand = exports2.serializeAws_restJson1LogoutCommand = exports2.serializeAws_restJson1ListAccountsCommand = exports2.serializeAws_restJson1ListAccountRolesCommand = exports2.serializeAws_restJson1GetRoleCredentialsCommand = void 0; + var protocol_http_1 = require_dist_cjs4(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var SSOServiceException_1 = require_SSOServiceException(); + var serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/federation/credentials\`; + const query = map({ + role_name: [, input.roleName], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"GET\\", + headers, + path: resolvedPath, + query, + body + }); + }; + exports2.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; + var serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/roles\`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], + account_id: [, input.accountId] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"GET\\", + headers, + path: resolvedPath, + query, + body + }); + }; + exports2.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; + var serializeAws_restJson1ListAccountsCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/accounts\`; + const query = map({ + next_token: [, input.nextToken], + max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()] + }); + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"GET\\", + headers, + path: resolvedPath, + query, + body + }); + }; + exports2.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; + var serializeAws_restJson1LogoutCommand = async (input, context) => { + const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); + const headers = map({}, isSerializableHeaderValue, { + \\"x-amz-sso_bearer_token\\": input.accessToken + }); + const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/logout\`; + let body; + return new protocol_http_1.HttpRequest({ + protocol, + hostname, + port, + method: \\"POST\\", + headers, + path: resolvedPath, + body + }); + }; + exports2.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); + if (data.roleCredentials != null) { + contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); + } + return contents; + }; + exports2.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; + var deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.sso#ResourceNotFoundException\\": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountRolesCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + if (data.roleList != null) { + contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); + } + return contents; + }; + exports2.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; + var deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.sso#ResourceNotFoundException\\": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1ListAccountsCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1ListAccountsCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); + if (data.accountList != null) { + contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); + } + if (data.nextToken != null) { + contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); + } + return contents; + }; + exports2.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; + var deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"ResourceNotFoundException\\": + case \\"com.amazonaws.sso#ResourceNotFoundException\\": + throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var deserializeAws_restJson1LogoutCommand = async (output, context) => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return deserializeAws_restJson1LogoutCommandError(output, context); + } + const contents = map({ + $metadata: deserializeMetadata(output) + }); + await collectBody(output.body, context); + return contents; + }; + exports2.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; + var deserializeAws_restJson1LogoutCommandError = async (output, context) => { + const parsedOutput = { + ...output, + body: await parseBody(output.body, context) + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case \\"InvalidRequestException\\": + case \\"com.amazonaws.sso#InvalidRequestException\\": + throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); + case \\"TooManyRequestsException\\": + case \\"com.amazonaws.sso#TooManyRequestsException\\": + throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); + case \\"UnauthorizedException\\": + case \\"com.amazonaws.sso#UnauthorizedException\\": + throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + (0, smithy_client_1.throwDefaultError)({ + output, + parsedBody, + exceptionCtor: SSOServiceException_1.SSOServiceException, + errorCode + }); + } + }; + var map = smithy_client_1.map; + var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.InvalidRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.ResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.TooManyRequestsException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { + const contents = map({}); + const data = parsedOutput.body; + if (data.message != null) { + contents.message = (0, smithy_client_1.expectString)(data.message); + } + const exception = new models_0_1.UnauthorizedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents + }); + return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); + }; + var deserializeAws_restJson1AccountInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + accountName: (0, smithy_client_1.expectString)(output.accountName), + emailAddress: (0, smithy_client_1.expectString)(output.emailAddress) + }; + }; + var deserializeAws_restJson1AccountListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1AccountInfo(entry, context); + }); + return retVal; + }; + var deserializeAws_restJson1RoleCredentials = (output, context) => { + return { + accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), + expiration: (0, smithy_client_1.expectLong)(output.expiration), + secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), + sessionToken: (0, smithy_client_1.expectString)(output.sessionToken) + }; + }; + var deserializeAws_restJson1RoleInfo = (output, context) => { + return { + accountId: (0, smithy_client_1.expectString)(output.accountId), + roleName: (0, smithy_client_1.expectString)(output.roleName) + }; + }; + var deserializeAws_restJson1RoleListType = (output, context) => { + const retVal = (output || []).filter((e) => e != null).map((entry) => { + if (entry === null) { + return null; + } + return deserializeAws_restJson1RoleInfo(entry, context); + }); + return retVal; + }; + var deserializeMetadata = (output) => { + var _a; + return { + httpStatusCode: output.statusCode, + requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], + extendedRequestId: output.headers[\\"x-amz-id-2\\"], + cfId: output.headers[\\"x-amz-cf-id\\"] + }; + }; + var collectBody = (streamBody = new Uint8Array(), context) => { + if (streamBody instanceof Uint8Array) { + return Promise.resolve(streamBody); + } + return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); + }; + var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== \\"\\" && (!Object.getOwnPropertyNames(value).includes(\\"length\\") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes(\\"size\\") || value.size != 0); + var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + var loadRestJsonErrorCode = (output, data) => { + const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + const sanitizeErrorCode = (rawValue) => { + let cleanValue = rawValue; + if (typeof cleanValue === \\"number\\") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(\\":\\") >= 0) { + cleanValue = cleanValue.split(\\":\\")[0]; + } + if (cleanValue.indexOf(\\"#\\") >= 0) { + cleanValue = cleanValue.split(\\"#\\")[1]; + } + return cleanValue; + }; + const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); + if (headerKey !== void 0) { + return sanitizeErrorCode(output.headers[headerKey]); + } + if (data.code !== void 0) { + return sanitizeErrorCode(data.code); + } + if (data[\\"__type\\"] !== void 0) { + return sanitizeErrorCode(data[\\"__type\\"]); + } + }; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +var require_GetRoleCredentialsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.GetRoleCredentialsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var GetRoleCredentialsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"GetRoleCredentialsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); + } + }; + exports2.GetRoleCredentialsCommand = GetRoleCredentialsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +var require_ListAccountRolesCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListAccountRolesCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountRolesCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"ListAccountRolesCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); + } + }; + exports2.ListAccountRolesCommand = ListAccountRolesCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +var require_ListAccountsCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.ListAccountsCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var ListAccountsCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"ListAccountsCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, + outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); + } + }; + exports2.ListAccountsCommand = ListAccountsCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +var require_LogoutCommand = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.LogoutCommand = void 0; + var middleware_serde_1 = require_dist_cjs(); + var smithy_client_1 = require_dist_cjs3(); + var models_0_1 = require_models_03(); + var Aws_restJson1_1 = require_Aws_restJson1(); + var LogoutCommand = class extends smithy_client_1.Command { + constructor(input) { + super(); + this.input = input; + } + resolveMiddleware(clientStack, configuration, options) { + this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); + const stack = clientStack.concat(this.middlewareStack); + const { logger } = configuration; + const clientName = \\"SSOClient\\"; + const commandName = \\"LogoutCommand\\"; + const handlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, + outputFilterSensitiveLog: (output) => output + }; + const { requestHandler } = configuration; + return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); + } + serialize(input, context) { + return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); + } + deserialize(output, context) { + return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); + } + }; + exports2.LogoutCommand = LogoutCommand; + } +}); + +// node_modules/@aws-sdk/client-sso/package.json +var require_package3 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/package.json\\"(exports2, module2) { + module2.exports = { + name: \\"@aws-sdk/client-sso\\", + description: \\"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native\\", + version: \\"3.163.0\\", + scripts: { + build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", + \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", + \\"build:docs\\": \\"typedoc\\", + \\"build:es\\": \\"tsc -p tsconfig.es.json\\", + \\"build:types\\": \\"tsc -p tsconfig.types.json\\", + \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", + clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" + }, + main: \\"./dist-cjs/index.js\\", + types: \\"./dist-types/index.d.ts\\", + module: \\"./dist-es/index.js\\", + sideEffects: false, + dependencies: { + \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", + \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", + \\"@aws-sdk/config-resolver\\": \\"3.163.0\\", + \\"@aws-sdk/fetch-http-handler\\": \\"3.162.0\\", + \\"@aws-sdk/hash-node\\": \\"3.162.0\\", + \\"@aws-sdk/invalid-dependency\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-content-length\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-host-header\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-logger\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-recursion-detection\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-retry\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-serde\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-stack\\": \\"3.162.0\\", + \\"@aws-sdk/middleware-user-agent\\": \\"3.162.0\\", + \\"@aws-sdk/node-config-provider\\": \\"3.162.0\\", + \\"@aws-sdk/node-http-handler\\": \\"3.162.0\\", + \\"@aws-sdk/protocol-http\\": \\"3.162.0\\", + \\"@aws-sdk/smithy-client\\": \\"3.162.0\\", + \\"@aws-sdk/types\\": \\"3.162.0\\", + \\"@aws-sdk/url-parser\\": \\"3.162.0\\", + \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-body-length-browser\\": \\"3.154.0\\", + \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", + \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.162.0\\", + \\"@aws-sdk/util-defaults-mode-node\\": \\"3.163.0\\", + \\"@aws-sdk/util-user-agent-browser\\": \\"3.162.0\\", + \\"@aws-sdk/util-user-agent-node\\": \\"3.162.0\\", + \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", + \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", + tslib: \\"^2.3.1\\" + }, + devDependencies: { + \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", + \\"@tsconfig/recommended\\": \\"1.0.1\\", + \\"@types/node\\": \\"^12.7.5\\", + concurrently: \\"7.0.0\\", + \\"downlevel-dts\\": \\"0.7.0\\", + rimraf: \\"3.0.2\\", + typedoc: \\"0.19.2\\", + typescript: \\"~4.6.2\\" + }, + overrides: { + typedoc: { + typescript: \\"~4.6.2\\" + } + }, + engines: { + node: \\">=12.0.0\\" + }, + typesVersions: { + \\"<4.0\\": { + \\"dist-types/*\\": [ + \\"dist-types/ts3.4/*\\" + ] + } + }, + files: [ + \\"dist-*\\" + ], + author: { + name: \\"AWS SDK for JavaScript Team\\", + url: \\"https://aws.amazon.com/javascript/\\" + }, + license: \\"Apache-2.0\\", + browser: { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" + }, + \\"react-native\\": { + \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" + }, + homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso\\", + repository: { + type: \\"git\\", + url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", + directory: \\"clients/client-sso\\" + } + }; + } +}); + +// node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js +var require_dist_cjs30 = __commonJS({ + \\"node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromString = exports2.fromArrayBuffer = void 0; + var is_array_buffer_1 = require_dist_cjs19(); + var buffer_1 = require(\\"buffer\\"); + var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { + if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { + throw new TypeError(\`The \\"input\\" argument must be ArrayBuffer. Received type \${typeof input} (\${input})\`); + } + return buffer_1.Buffer.from(input, offset, length); + }; + exports2.fromArrayBuffer = fromArrayBuffer; + var fromString = (input, encoding) => { + if (typeof input !== \\"string\\") { + throw new TypeError(\`The \\"input\\" argument must be of type string. Received type \${typeof input} (\${input})\`); + } + return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); + }; + exports2.fromString = fromString; + } +}); + +// node_modules/@aws-sdk/hash-node/dist-cjs/index.js +var require_dist_cjs31 = __commonJS({ + \\"node_modules/@aws-sdk/hash-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Hash = void 0; + var util_buffer_from_1 = require_dist_cjs30(); + var buffer_1 = require(\\"buffer\\"); + var crypto_1 = require(\\"crypto\\"); + var Hash = class { + constructor(algorithmIdentifier, secret) { + this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); + } + update(toHash, encoding) { + this.hash.update(castSourceData(toHash, encoding)); + } + digest() { + return Promise.resolve(this.hash.digest()); + } + }; + exports2.Hash = Hash; + function castSourceData(toCast, encoding) { + if (buffer_1.Buffer.isBuffer(toCast)) { + return toCast; + } + if (typeof toCast === \\"string\\") { + return (0, util_buffer_from_1.fromString)(toCast, encoding); + } + if (ArrayBuffer.isView(toCast)) { + return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); + } + return (0, util_buffer_from_1.fromArrayBuffer)(toCast); + } + } +}); + +// node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js +var require_dist_cjs32 = __commonJS({ + \\"node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.buildQueryString = void 0; + var util_uri_escape_1 = require_dist_cjs18(); + function buildQueryString(query) { + const parts = []; + for (let key of Object.keys(query).sort()) { + const value = query[key]; + key = (0, util_uri_escape_1.escapeUri)(key); + if (Array.isArray(value)) { + for (let i = 0, iLen = value.length; i < iLen; i++) { + parts.push(\`\${key}=\${(0, util_uri_escape_1.escapeUri)(value[i])}\`); + } + } else { + let qsEntry = key; + if (value || typeof value === \\"string\\") { + qsEntry += \`=\${(0, util_uri_escape_1.escapeUri)(value)}\`; + } + parts.push(qsEntry); + } + } + return parts.join(\\"&\\"); + } + exports2.buildQueryString = buildQueryString; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js +var require_constants6 = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODEJS_TIMEOUT_ERROR_CODES = void 0; + exports2.NODEJS_TIMEOUT_ERROR_CODES = [\\"ECONNRESET\\", \\"EPIPE\\", \\"ETIMEDOUT\\"]; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js +var require_get_transformed_headers = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getTransformedHeaders = void 0; + var getTransformedHeaders = (headers) => { + const transformedHeaders = {}; + for (const name of Object.keys(headers)) { + const headerValues = headers[name]; + transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(\\",\\") : headerValues; + } + return transformedHeaders; + }; + exports2.getTransformedHeaders = getTransformedHeaders; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js +var require_set_connection_timeout = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.setConnectionTimeout = void 0; + var setConnectionTimeout = (request, reject, timeoutInMs = 0) => { + if (!timeoutInMs) { + return; + } + request.on(\\"socket\\", (socket) => { + if (socket.connecting) { + const timeoutId = setTimeout(() => { + request.destroy(); + reject(Object.assign(new Error(\`Socket timed out without establishing a connection within \${timeoutInMs} ms\`), { + name: \\"TimeoutError\\" + })); + }, timeoutInMs); + socket.on(\\"connect\\", () => { + clearTimeout(timeoutId); + }); + } + }); + }; + exports2.setConnectionTimeout = setConnectionTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js +var require_set_socket_timeout = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.setSocketTimeout = void 0; + var setSocketTimeout = (request, reject, timeoutInMs = 0) => { + request.setTimeout(timeoutInMs, () => { + request.destroy(); + reject(Object.assign(new Error(\`Connection timed out after \${timeoutInMs} ms\`), { name: \\"TimeoutError\\" })); + }); + }; + exports2.setSocketTimeout = setSocketTimeout; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js +var require_write_request_body = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.writeRequestBody = void 0; + var stream_1 = require(\\"stream\\"); + function writeRequestBody(httpRequest, request) { + const expect = request.headers[\\"Expect\\"] || request.headers[\\"expect\\"]; + if (expect === \\"100-continue\\") { + httpRequest.on(\\"continue\\", () => { + writeBody(httpRequest, request.body); + }); + } else { + writeBody(httpRequest, request.body); + } + } + exports2.writeRequestBody = writeRequestBody; + function writeBody(httpRequest, body) { + if (body instanceof stream_1.Readable) { + body.pipe(httpRequest); + } else if (body) { + httpRequest.end(Buffer.from(body)); + } else { + httpRequest.end(); + } + } + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js +var require_node_http_handler = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NodeHttpHandler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs32(); + var http_1 = require(\\"http\\"); + var https_1 = require(\\"https\\"); + var constants_1 = require_constants6(); + var get_transformed_headers_1 = require_get_transformed_headers(); + var set_connection_timeout_1 = require_set_connection_timeout(); + var set_socket_timeout_1 = require_set_socket_timeout(); + var write_request_body_1 = require_write_request_body(); + var NodeHttpHandler = class { + constructor(options) { + this.metadata = { handlerProtocol: \\"http/1.1\\" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === \\"function\\") { + options().then((_options) => { + resolve(this.resolveDefaultConfig(_options)); + }).catch(reject); + } else { + resolve(this.resolveDefaultConfig(options)); + } + }); + } + resolveDefaultConfig(options) { + const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; + const keepAlive = true; + const maxSockets = 50; + return { + connectionTimeout, + socketTimeout, + httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), + httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) + }; + } + destroy() { + var _a, _b, _c, _d; + (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); + (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + return new Promise((resolve, reject) => { + if (!this.config) { + throw new Error(\\"Node HTTP request handler config is not resolved\\"); + } + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + reject(abortError); + return; + } + const isSSL = request.protocol === \\"https:\\"; + const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); + const nodeHttpsOptions = { + headers: request.headers, + host: request.hostname, + method: request.method, + path: queryString ? \`\${request.path}?\${queryString}\` : request.path, + port: request.port, + agent: isSSL ? this.config.httpsAgent : this.config.httpAgent + }; + const requestFunc = isSSL ? https_1.request : http_1.request; + const req = requestFunc(nodeHttpsOptions, (res) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: res.statusCode || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), + body: res + }); + resolve({ response: httpResponse }); + }); + req.on(\\"error\\", (err) => { + if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { + reject(Object.assign(err, { name: \\"TimeoutError\\" })); + } else { + reject(err); + } + }); + (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); + (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout); + if (abortSignal) { + abortSignal.onabort = () => { + req.abort(); + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + reject(abortError); + }; + } + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + }; + exports2.NodeHttpHandler = NodeHttpHandler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js +var require_node_http2_handler = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NodeHttp2Handler = void 0; + var protocol_http_1 = require_dist_cjs4(); + var querystring_builder_1 = require_dist_cjs32(); + var http2_1 = require(\\"http2\\"); + var get_transformed_headers_1 = require_get_transformed_headers(); + var write_request_body_1 = require_write_request_body(); + var NodeHttp2Handler = class { + constructor(options) { + this.metadata = { handlerProtocol: \\"h2\\" }; + this.configProvider = new Promise((resolve, reject) => { + if (typeof options === \\"function\\") { + options().then((opts) => { + resolve(opts || {}); + }).catch(reject); + } else { + resolve(options || {}); + } + }); + this.sessionCache = /* @__PURE__ */ new Map(); + } + destroy() { + for (const sessions of this.sessionCache.values()) { + sessions.forEach((session) => this.destroySession(session)); + } + this.sessionCache.clear(); + } + async handle(request, { abortSignal } = {}) { + if (!this.config) { + this.config = await this.configProvider; + } + const { requestTimeout, disableConcurrentStreams } = this.config; + return new Promise((resolve, rejectOriginal) => { + let fulfilled = false; + if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { + fulfilled = true; + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + rejectOriginal(abortError); + return; + } + const { hostname, method, port, protocol, path, query } = request; + const authority = \`\${protocol}//\${hostname}\${port ? \`:\${port}\` : \\"\\"}\`; + const session = this.getSession(authority, disableConcurrentStreams || false); + const reject = (err) => { + if (disableConcurrentStreams) { + this.destroySession(session); + } + fulfilled = true; + rejectOriginal(err); + }; + const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); + const req = session.request({ + ...request.headers, + [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? \`\${path}?\${queryString}\` : path, + [http2_1.constants.HTTP2_HEADER_METHOD]: method + }); + session.ref(); + req.on(\\"response\\", (headers) => { + const httpResponse = new protocol_http_1.HttpResponse({ + statusCode: headers[\\":status\\"] || -1, + headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), + body: req + }); + fulfilled = true; + resolve({ response: httpResponse }); + if (disableConcurrentStreams) { + session.close(); + this.deleteSessionFromCache(authority, session); + } + }); + if (requestTimeout) { + req.setTimeout(requestTimeout, () => { + req.close(); + const timeoutError = new Error(\`Stream timed out because of no activity for \${requestTimeout} ms\`); + timeoutError.name = \\"TimeoutError\\"; + reject(timeoutError); + }); + } + if (abortSignal) { + abortSignal.onabort = () => { + req.close(); + const abortError = new Error(\\"Request aborted\\"); + abortError.name = \\"AbortError\\"; + reject(abortError); + }; + } + req.on(\\"frameError\\", (type, code, id) => { + reject(new Error(\`Frame type id \${type} in stream id \${id} has failed with code \${code}.\`)); + }); + req.on(\\"error\\", reject); + req.on(\\"aborted\\", () => { + reject(new Error(\`HTTP/2 stream is abnormally aborted in mid-communication with result code \${req.rstCode}.\`)); + }); + req.on(\\"close\\", () => { + session.unref(); + if (disableConcurrentStreams) { + session.destroy(); + } + if (!fulfilled) { + reject(new Error(\\"Unexpected error: http2 request did not get a response\\")); + } + }); + (0, write_request_body_1.writeRequestBody)(req, request); + }); + } + getSession(authority, disableConcurrentStreams) { + var _a; + const sessionCache = this.sessionCache; + const existingSessions = sessionCache.get(authority) || []; + if (existingSessions.length > 0 && !disableConcurrentStreams) + return existingSessions[0]; + const newSession = (0, http2_1.connect)(authority); + newSession.unref(); + const destroySessionCb = () => { + this.destroySession(newSession); + this.deleteSessionFromCache(authority, newSession); + }; + newSession.on(\\"goaway\\", destroySessionCb); + newSession.on(\\"error\\", destroySessionCb); + newSession.on(\\"frameError\\", destroySessionCb); + newSession.on(\\"close\\", () => this.deleteSessionFromCache(authority, newSession)); + if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { + newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); + } + existingSessions.push(newSession); + sessionCache.set(authority, existingSessions); + return newSession; + } + destroySession(session) { + if (!session.destroyed) { + session.destroy(); + } + } + deleteSessionFromCache(authority, session) { + const existingSessions = this.sessionCache.get(authority) || []; + if (!existingSessions.includes(session)) { + return; + } + this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); + } + }; + exports2.NodeHttp2Handler = NodeHttp2Handler; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js +var require_collector = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.Collector = void 0; + var stream_1 = require(\\"stream\\"); + var Collector = class extends stream_1.Writable { + constructor() { + super(...arguments); + this.bufferedBytes = []; + } + _write(chunk, encoding, callback) { + this.bufferedBytes.push(chunk); + callback(); + } + }; + exports2.Collector = Collector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js +var require_stream_collector = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.streamCollector = void 0; + var collector_1 = require_collector(); + var streamCollector = (stream) => new Promise((resolve, reject) => { + const collector = new collector_1.Collector(); + stream.pipe(collector); + stream.on(\\"error\\", (err) => { + collector.end(); + reject(err); + }); + collector.on(\\"error\\", reject); + collector.on(\\"finish\\", function() { + const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); + resolve(bytes); + }); + }); + exports2.streamCollector = streamCollector; + } +}); + +// node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js +var require_dist_cjs33 = __commonJS({ + \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_node_http_handler(), exports2); + tslib_1.__exportStar(require_node_http2_handler(), exports2); + tslib_1.__exportStar(require_stream_collector(), exports2); + } +}); + +// node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js +var require_dist_cjs34 = __commonJS({ + \\"node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toBase64 = exports2.fromBase64 = void 0; + var util_buffer_from_1 = require_dist_cjs30(); + var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; + function fromBase64(input) { + if (input.length * 3 % 4 !== 0) { + throw new TypeError(\`Incorrect padding on base64 string.\`); + } + if (!BASE64_REGEX.exec(input)) { + throw new TypeError(\`Invalid base64 string.\`); + } + const buffer = (0, util_buffer_from_1.fromString)(input, \\"base64\\"); + return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); + } + exports2.fromBase64 = fromBase64; + function toBase64(input) { + return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"base64\\"); + } + exports2.toBase64 = toBase64; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js +var require_calculateBodyLength = __commonJS({ + \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.calculateBodyLength = void 0; + var fs_1 = require(\\"fs\\"); + var calculateBodyLength = (body) => { + if (!body) { + return 0; + } + if (typeof body === \\"string\\") { + return Buffer.from(body).length; + } else if (typeof body.byteLength === \\"number\\") { + return body.byteLength; + } else if (typeof body.size === \\"number\\") { + return body.size; + } else if (typeof body.path === \\"string\\" || Buffer.isBuffer(body.path)) { + return (0, fs_1.lstatSync)(body.path).size; + } else if (typeof body.fd === \\"number\\") { + return (0, fs_1.fstatSync)(body.fd).size; + } + throw new Error(\`Body Length computation failed for \${body}\`); + }; + exports2.calculateBodyLength = calculateBodyLength; + } +}); + +// node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js +var require_dist_cjs35 = __commonJS({ + \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_calculateBodyLength(), exports2); + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +var require_is_crt_available = __commonJS({ + \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js\\"(exports2, module2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.isCrtAvailable = void 0; + var isCrtAvailable = () => { + try { + if (typeof require === \\"function\\" && typeof module2 !== \\"undefined\\" && module2.require && require(\\"aws-crt\\")) { + return [\\"md/crt-avail\\"]; + } + return null; + } catch (e) { + return null; + } + }; + exports2.isCrtAvailable = isCrtAvailable; + } +}); + +// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +var require_dist_cjs36 = __commonJS({ + \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultUserAgent = exports2.UA_APP_ID_INI_NAME = exports2.UA_APP_ID_ENV_NAME = void 0; + var node_config_provider_1 = require_dist_cjs26(); + var os_1 = require(\\"os\\"); + var process_1 = require(\\"process\\"); + var is_crt_available_1 = require_is_crt_available(); + exports2.UA_APP_ID_ENV_NAME = \\"AWS_SDK_UA_APP_ID\\"; + exports2.UA_APP_ID_INI_NAME = \\"sdk-ua-app-id\\"; + var defaultUserAgent = ({ serviceId, clientVersion }) => { + const sections = [ + [\\"aws-sdk-js\\", clientVersion], + [\`os/\${(0, os_1.platform)()}\`, (0, os_1.release)()], + [\\"lang/js\\"], + [\\"md/nodejs\\", \`\${process_1.versions.node}\`] + ]; + const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); + if (crtAvailable) { + sections.push(crtAvailable); + } + if (serviceId) { + sections.push([\`api/\${serviceId}\`, clientVersion]); + } + if (process_1.env.AWS_EXECUTION_ENV) { + sections.push([\`exec-env/\${process_1.env.AWS_EXECUTION_ENV}\`]); + } + const appIdPromise = (0, node_config_provider_1.loadConfig)({ + environmentVariableSelector: (env) => env[exports2.UA_APP_ID_ENV_NAME], + configFileSelector: (profile) => profile[exports2.UA_APP_ID_INI_NAME], + default: void 0 + })(); + let resolvedUserAgent = void 0; + return async () => { + if (!resolvedUserAgent) { + const appId = await appIdPromise; + resolvedUserAgent = appId ? [...sections, [\`app/\${appId}\`]] : [...sections]; + } + return resolvedUserAgent; + }; + }; + exports2.defaultUserAgent = defaultUserAgent; + } +}); + +// node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js +var require_dist_cjs37 = __commonJS({ + \\"node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.toUtf8 = exports2.fromUtf8 = void 0; + var util_buffer_from_1 = require_dist_cjs30(); + var fromUtf8 = (input) => { + const buf = (0, util_buffer_from_1.fromString)(input, \\"utf8\\"); + return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); + }; + exports2.fromUtf8 = fromUtf8; + var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"utf8\\"); + exports2.toUtf8 = toUtf8; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js +var require_endpoints = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs7(); + var regionHash = { + \\"ap-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-east-1\\" + }, + \\"ap-northeast-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-northeast-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-northeast-1\\" + }, + \\"ap-northeast-2\\": { + variants: [ + { + hostname: \\"portal.sso.ap-northeast-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-northeast-2\\" + }, + \\"ap-northeast-3\\": { + variants: [ + { + hostname: \\"portal.sso.ap-northeast-3.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-northeast-3\\" + }, + \\"ap-south-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-south-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-south-1\\" + }, + \\"ap-southeast-1\\": { + variants: [ + { + hostname: \\"portal.sso.ap-southeast-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-southeast-1\\" + }, + \\"ap-southeast-2\\": { + variants: [ + { + hostname: \\"portal.sso.ap-southeast-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ap-southeast-2\\" + }, + \\"ca-central-1\\": { + variants: [ + { + hostname: \\"portal.sso.ca-central-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"ca-central-1\\" + }, + \\"eu-central-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-central-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-central-1\\" + }, + \\"eu-north-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-north-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-north-1\\" + }, + \\"eu-south-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-south-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-south-1\\" + }, + \\"eu-west-1\\": { + variants: [ + { + hostname: \\"portal.sso.eu-west-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-west-1\\" + }, + \\"eu-west-2\\": { + variants: [ + { + hostname: \\"portal.sso.eu-west-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-west-2\\" + }, + \\"eu-west-3\\": { + variants: [ + { + hostname: \\"portal.sso.eu-west-3.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"eu-west-3\\" + }, + \\"me-south-1\\": { + variants: [ + { + hostname: \\"portal.sso.me-south-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"me-south-1\\" + }, + \\"sa-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.sa-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"sa-east-1\\" + }, + \\"us-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.us-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-east-1\\" + }, + \\"us-east-2\\": { + variants: [ + { + hostname: \\"portal.sso.us-east-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-east-2\\" + }, + \\"us-gov-east-1\\": { + variants: [ + { + hostname: \\"portal.sso.us-gov-east-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-gov-east-1\\" + }, + \\"us-gov-west-1\\": { + variants: [ + { + hostname: \\"portal.sso.us-gov-west-1.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-gov-west-1\\" + }, + \\"us-west-2\\": { + variants: [ + { + hostname: \\"portal.sso.us-west-2.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-west-2\\" + } + }; + var partitionHash = { + aws: { + regions: [ + \\"af-south-1\\", + \\"ap-east-1\\", + \\"ap-northeast-1\\", + \\"ap-northeast-2\\", + \\"ap-northeast-3\\", + \\"ap-south-1\\", + \\"ap-southeast-1\\", + \\"ap-southeast-2\\", + \\"ap-southeast-3\\", + \\"ca-central-1\\", + \\"eu-central-1\\", + \\"eu-north-1\\", + \\"eu-south-1\\", + \\"eu-west-1\\", + \\"eu-west-2\\", + \\"eu-west-3\\", + \\"me-central-1\\", + \\"me-south-1\\", + \\"sa-east-1\\", + \\"us-east-1\\", + \\"us-east-2\\", + \\"us-west-1\\", + \\"us-west-2\\" + ], + regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"portal.sso-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"portal.sso.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-cn\\": { + regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], + regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.amazonaws.com.cn\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.amazonaws.com.cn\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"portal.sso-fips.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"portal.sso.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-iso\\": { + regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], + regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.c2s.ic.gov\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.c2s.ic.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-iso-b\\": { + regions: [\\"us-isob-east-1\\"], + regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.sc2s.sgov.gov\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.sc2s.sgov.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-us-gov\\": { + regions: [\\"us-gov-east-1\\", \\"us-gov-west-1\\"], + regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"portal.sso.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"portal.sso-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"portal.sso.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: \\"awsssoportal\\", + regionHash, + partitionHash + }); + exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs28(); + var endpoints_1 = require_endpoints(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: \\"2019-06-10\\", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"SSO\\", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js +var require_constants7 = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.IMDS_REGION_PATH = exports2.DEFAULTS_MODE_OPTIONS = exports2.ENV_IMDS_DISABLED = exports2.AWS_DEFAULT_REGION_ENV = exports2.AWS_REGION_ENV = exports2.AWS_EXECUTION_ENV = void 0; + exports2.AWS_EXECUTION_ENV = \\"AWS_EXECUTION_ENV\\"; + exports2.AWS_REGION_ENV = \\"AWS_REGION\\"; + exports2.AWS_DEFAULT_REGION_ENV = \\"AWS_DEFAULT_REGION\\"; + exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; + exports2.DEFAULTS_MODE_OPTIONS = [\\"in-region\\", \\"cross-region\\", \\"mobile\\", \\"standard\\", \\"legacy\\"]; + exports2.IMDS_REGION_PATH = \\"/latest/meta-data/placement/region\\"; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +var require_defaultsModeConfig = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; + var AWS_DEFAULTS_MODE_ENV = \\"AWS_DEFAULTS_MODE\\"; + var AWS_DEFAULTS_MODE_CONFIG = \\"defaults_mode\\"; + exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { + environmentVariableSelector: (env) => { + return env[AWS_DEFAULTS_MODE_ENV]; + }, + configFileSelector: (profile) => { + return profile[AWS_DEFAULTS_MODE_CONFIG]; + }, + default: \\"legacy\\" + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +var require_resolveDefaultsModeConfig = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveDefaultsModeConfig = void 0; + var config_resolver_1 = require_dist_cjs7(); + var credential_provider_imds_1 = require_dist_cjs29(); + var node_config_provider_1 = require_dist_cjs26(); + var property_provider_1 = require_dist_cjs16(); + var constants_1 = require_constants7(); + var defaultsModeConfig_1 = require_defaultsModeConfig(); + var resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, property_provider_1.memoize)(async () => { + const mode = typeof defaultsMode === \\"function\\" ? await defaultsMode() : defaultsMode; + switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { + case \\"auto\\": + return resolveNodeDefaultsModeAuto(region); + case \\"in-region\\": + case \\"cross-region\\": + case \\"mobile\\": + case \\"standard\\": + case \\"legacy\\": + return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); + case void 0: + return Promise.resolve(\\"legacy\\"); + default: + throw new Error(\`Invalid parameter for \\"defaultsMode\\", expect \${constants_1.DEFAULTS_MODE_OPTIONS.join(\\", \\")}, got \${mode}\`); + } + }); + exports2.resolveDefaultsModeConfig = resolveDefaultsModeConfig; + var resolveNodeDefaultsModeAuto = async (clientRegion) => { + if (clientRegion) { + const resolvedRegion = typeof clientRegion === \\"function\\" ? await clientRegion() : clientRegion; + const inferredRegion = await inferPhysicalRegion(); + if (!inferredRegion) { + return \\"standard\\"; + } + if (resolvedRegion === inferredRegion) { + return \\"in-region\\"; + } else { + return \\"cross-region\\"; + } + } + return \\"standard\\"; + }; + var inferPhysicalRegion = async () => { + var _a; + if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { + return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; + } + if (!process.env[constants_1.ENV_IMDS_DISABLED]) { + try { + const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); + return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); + } catch (e) { + } + } + }; + } +}); + +// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js +var require_dist_cjs38 = __commonJS({ + \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +var require_runtimeConfig = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package3()); + var config_resolver_1 = require_dist_cjs7(); + var hash_node_1 = require_dist_cjs31(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs26(); + var node_http_handler_1 = require_dist_cjs33(); + var util_base64_node_1 = require_dist_cjs34(); + var util_body_length_node_1 = require_dist_cjs35(); + var util_user_agent_node_1 = require_dist_cjs36(); + var util_utf8_node_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared(); + var smithy_client_1 = require_dist_cjs3(); + var util_defaults_mode_node_1 = require_dist_cjs38(); + var smithy_client_2 = require_dist_cjs3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: \\"node\\", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, \\"sha256\\"), + streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, + utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8 + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +var require_SSOClient = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSOClient = void 0; + var config_resolver_1 = require_dist_cjs7(); + var middleware_content_length_1 = require_dist_cjs8(); + var middleware_host_header_1 = require_dist_cjs11(); + var middleware_logger_1 = require_dist_cjs12(); + var middleware_recursion_detection_1 = require_dist_cjs13(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_user_agent_1 = require_dist_cjs22(); + var smithy_client_1 = require_dist_cjs3(); + var runtimeConfig_1 = require_runtimeConfig(); + var SSOClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); + super(_config_5); + this.config = _config_5; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports2.SSOClient = SSOClient; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +var require_SSO = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSO = void 0; + var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var LogoutCommand_1 = require_LogoutCommand(); + var SSOClient_1 = require_SSOClient(); + var SSO = class extends SSOClient_1.SSOClient { + getRoleCredentials(args, optionsOrCb, cb) { + const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccountRoles(args, optionsOrCb, cb) { + const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listAccounts(args, optionsOrCb, cb) { + const command = new ListAccountsCommand_1.ListAccountsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + logout(args, optionsOrCb, cb) { + const command = new LogoutCommand_1.LogoutCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports2.SSO = SSO; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +var require_commands = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports2); + tslib_1.__exportStar(require_ListAccountRolesCommand(), exports2); + tslib_1.__exportStar(require_ListAccountsCommand(), exports2); + tslib_1.__exportStar(require_LogoutCommand(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +var require_models = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_03(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +var require_Interfaces = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +var require_ListAccountRolesPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListAccountRoles = void 0; + var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccountRoles(input, ...args); + }; + async function* paginateListAccountRoles(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input[\\"maxResults\\"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListAccountRoles = paginateListAccountRoles; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +var require_ListAccountsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListAccounts = void 0; + var ListAccountsCommand_1 = require_ListAccountsCommand(); + var SSO_1 = require_SSO(); + var SSOClient_1 = require_SSOClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listAccounts(input, ...args); + }; + async function* paginateListAccounts(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.nextToken = token; + input[\\"maxResults\\"] = config.pageSize; + if (config.client instanceof SSO_1.SSO) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof SSOClient_1.SSOClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); + } + yield page; + const prevToken = token; + token = page.nextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListAccounts = paginateListAccounts; + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +var require_pagination = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces(), exports2); + tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports2); + tslib_1.__exportStar(require_ListAccountsPaginator(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sso/dist-cjs/index.js +var require_dist_cjs39 = __commonJS({ + \\"node_modules/@aws-sdk/client-sso/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.SSOServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_SSO(), exports2); + tslib_1.__exportStar(require_SSOClient(), exports2); + tslib_1.__exportStar(require_commands(), exports2); + tslib_1.__exportStar(require_models(), exports2); + tslib_1.__exportStar(require_pagination(), exports2); + var SSOServiceException_1 = require_SSOServiceException(); + Object.defineProperty(exports2, \\"SSOServiceException\\", { enumerable: true, get: function() { + return SSOServiceException_1.SSOServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +var require_resolveSSOCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveSSOCredentials = void 0; + var client_sso_1 = require_dist_cjs39(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; + var SHOULD_FAIL_CREDENTIAL_CHAIN = false; + var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => { + let token; + const refreshMessage = \`To refresh this SSO session run aws sso login with the corresponding profile.\`; + try { + token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); + } catch (e) { + throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile is invalid. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { + throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile has expired. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { accessToken } = token; + const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); + let ssoResp; + try { + ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ + accountId: ssoAccountId, + roleName: ssoRoleName, + accessToken + })); + } catch (e) { + throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); + } + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; + if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { + throw new property_provider_1.CredentialsProviderError(\\"SSO returns an invalid temporary credential.\\", SHOULD_FAIL_CREDENTIAL_CHAIN); + } + return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; + }; + exports2.resolveSSOCredentials = resolveSSOCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +var require_validateSsoProfile = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.validateSsoProfile = void 0; + var property_provider_1 = require_dist_cjs16(); + var validateSsoProfile = (profile) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; + if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { + throw new property_provider_1.CredentialsProviderError(\`Profile is configured with invalid SSO credentials. Required parameters \\"sso_account_id\\", \\"sso_region\\", \\"sso_role_name\\", \\"sso_start_url\\". Got \${Object.keys(profile).join(\\", \\")} +Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html\`, false); + } + return profile; + }; + exports2.validateSsoProfile = validateSsoProfile; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +var require_fromSSO = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromSSO = void 0; + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var isSsoProfile_1 = require_isSsoProfile(); + var resolveSSOCredentials_1 = require_resolveSSOCredentials(); + var validateSsoProfile_1 = require_validateSsoProfile(); + var fromSSO = (init = {}) => async () => { + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; + if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); + const profile = profiles[profileName]; + if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} is not configured with SSO credentials.\`); + } + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name, + ssoClient + }); + } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include \\"ssoStartUrl\\", \\"ssoAccountId\\", \\"ssoRegion\\", \\"ssoRoleName\\"'); + } else { + return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); + } + }; + exports2.fromSSO = fromSSO; + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +var require_types4 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +var require_dist_cjs40 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromSSO(), exports2); + tslib_1.__exportStar(require_isSsoProfile(), exports2); + tslib_1.__exportStar(require_types4(), exports2); + tslib_1.__exportStar(require_validateSsoProfile(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +var require_resolveSsoCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveSsoCredentials = exports2.isSsoProfile = void 0; + var credential_provider_sso_1 = require_dist_cjs40(); + var credential_provider_sso_2 = require_dist_cjs40(); + Object.defineProperty(exports2, \\"isSsoProfile\\", { enumerable: true, get: function() { + return credential_provider_sso_2.isSsoProfile; + } }); + var resolveSsoCredentials = (data) => { + const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); + return (0, credential_provider_sso_1.fromSSO)({ + ssoStartUrl: sso_start_url, + ssoAccountId: sso_account_id, + ssoRegion: sso_region, + ssoRoleName: sso_role_name + })(); + }; + exports2.resolveSsoCredentials = resolveSsoCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +var require_resolveStaticCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveStaticCredentials = exports2.isStaticCredsProfile = void 0; + var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.aws_access_key_id === \\"string\\" && typeof arg.aws_secret_access_key === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.aws_session_token) > -1; + exports2.isStaticCredsProfile = isStaticCredsProfile; + var resolveStaticCredentials = (profile) => Promise.resolve({ + accessKeyId: profile.aws_access_key_id, + secretAccessKey: profile.aws_secret_access_key, + sessionToken: profile.aws_session_token + }); + exports2.resolveStaticCredentials = resolveStaticCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +var require_fromWebToken = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromWebToken = void 0; + var property_provider_1 = require_dist_cjs16(); + var fromWebToken = (init) => () => { + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; + if (!roleAssumerWithWebIdentity) { + throw new property_provider_1.CredentialsProviderError(\`Role Arn '\${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.\`, false); + } + return roleAssumerWithWebIdentity({ + RoleArn: roleArn, + RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : \`aws-sdk-js-session-\${Date.now()}\`, + WebIdentityToken: webIdentityToken, + ProviderId: providerId, + PolicyArns: policyArns, + Policy: policy, + DurationSeconds: durationSeconds + }); + }; + exports2.fromWebToken = fromWebToken; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +var require_fromTokenFile = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromTokenFile = void 0; + var property_provider_1 = require_dist_cjs16(); + var fs_1 = require(\\"fs\\"); + var fromWebToken_1 = require_fromWebToken(); + var ENV_TOKEN_FILE = \\"AWS_WEB_IDENTITY_TOKEN_FILE\\"; + var ENV_ROLE_ARN = \\"AWS_ROLE_ARN\\"; + var ENV_ROLE_SESSION_NAME = \\"AWS_ROLE_SESSION_NAME\\"; + var fromTokenFile = (init = {}) => async () => { + return resolveTokenFile(init); + }; + exports2.fromTokenFile = fromTokenFile; + var resolveTokenFile = (init) => { + var _a, _b, _c; + const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; + const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; + const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; + if (!webIdentityTokenFile || !roleArn) { + throw new property_provider_1.CredentialsProviderError(\\"Web identity configuration not specified\\"); + } + return (0, fromWebToken_1.fromWebToken)({ + ...init, + webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: \\"ascii\\" }), + roleArn, + roleSessionName + })(); + }; + } +}); + +// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +var require_dist_cjs41 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromTokenFile(), exports2); + tslib_1.__exportStar(require_fromWebToken(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +var require_resolveWebIdentityCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveWebIdentityCredentials = exports2.isWebIdentityProfile = void 0; + var credential_provider_web_identity_1 = require_dist_cjs41(); + var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.web_identity_token_file === \\"string\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1; + exports2.isWebIdentityProfile = isWebIdentityProfile; + var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity + })(); + exports2.resolveWebIdentityCredentials = resolveWebIdentityCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +var require_resolveProfileData = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveProfileData = void 0; + var property_provider_1 = require_dist_cjs16(); + var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); + var resolveSsoCredentials_1 = require_resolveSsoCredentials(); + var resolveStaticCredentials_1 = require_resolveStaticCredentials(); + var resolveWebIdentityCredentials_1 = require_resolveWebIdentityCredentials(); + var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { + const data = profiles[profileName]; + if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { + return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); + } + if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { + return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); + } + if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { + return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); + } + if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { + return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); + } + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found or parsed in shared credentials file.\`); + }; + exports2.resolveProfileData = resolveProfileData; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +var require_fromIni = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromIni = void 0; + var shared_ini_file_loader_1 = require_dist_cjs25(); + var resolveProfileData_1 = require_resolveProfileData(); + var fromIni = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); + }; + exports2.fromIni = fromIni; + } +}); + +// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +var require_dist_cjs42 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromIni(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +var require_getValidatedProcessCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getValidatedProcessCredentials = void 0; + var getValidatedProcessCredentials = (profileName, data) => { + if (data.Version !== 1) { + throw Error(\`Profile \${profileName} credential_process did not return Version 1.\`); + } + if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { + throw Error(\`Profile \${profileName} credential_process returned invalid credentials.\`); + } + if (data.Expiration) { + const currentTime = new Date(); + const expireTime = new Date(data.Expiration); + if (expireTime < currentTime) { + throw Error(\`Profile \${profileName} credential_process returned expired credentials.\`); + } + } + return { + accessKeyId: data.AccessKeyId, + secretAccessKey: data.SecretAccessKey, + ...data.SessionToken && { sessionToken: data.SessionToken }, + ...data.Expiration && { expiration: new Date(data.Expiration) } + }; + }; + exports2.getValidatedProcessCredentials = getValidatedProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +var require_resolveProcessCredentials = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.resolveProcessCredentials = void 0; + var property_provider_1 = require_dist_cjs16(); + var child_process_1 = require(\\"child_process\\"); + var util_1 = require(\\"util\\"); + var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); + var resolveProcessCredentials = async (profileName, profiles) => { + const profile = profiles[profileName]; + if (profiles[profileName]) { + const credentialProcess = profile[\\"credential_process\\"]; + if (credentialProcess !== void 0) { + const execPromise = (0, util_1.promisify)(child_process_1.exec); + try { + const { stdout } = await execPromise(credentialProcess); + let data; + try { + data = JSON.parse(stdout.trim()); + } catch (_a) { + throw Error(\`Profile \${profileName} credential_process returned invalid JSON.\`); + } + return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); + } catch (error) { + throw new property_provider_1.CredentialsProviderError(error.message); + } + } else { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} did not contain credential_process.\`); + } + } else { + throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found in shared credentials file.\`); + } + }; + exports2.resolveProcessCredentials = resolveProcessCredentials; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +var require_fromProcess = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.fromProcess = void 0; + var shared_ini_file_loader_1 = require_dist_cjs25(); + var resolveProcessCredentials_1 = require_resolveProcessCredentials(); + var fromProcess = (init = {}) => async () => { + const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); + return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); + }; + exports2.fromProcess = fromProcess; + } +}); + +// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +var require_dist_cjs43 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_fromProcess(), exports2); + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +var require_remoteProvider = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.remoteProvider = exports2.ENV_IMDS_DISABLED = void 0; + var credential_provider_imds_1 = require_dist_cjs29(); + var property_provider_1 = require_dist_cjs16(); + exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; + var remoteProvider = (init) => { + if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { + return (0, credential_provider_imds_1.fromContainerMetadata)(init); + } + if (process.env[exports2.ENV_IMDS_DISABLED]) { + return async () => { + throw new property_provider_1.CredentialsProviderError(\\"EC2 Instance Metadata Service access disabled\\"); + }; + } + return (0, credential_provider_imds_1.fromInstanceMetadata)(init); + }; + exports2.remoteProvider = remoteProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +var require_defaultProvider = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultProvider = void 0; + var credential_provider_env_1 = require_dist_cjs24(); + var credential_provider_ini_1 = require_dist_cjs42(); + var credential_provider_process_1 = require_dist_cjs43(); + var credential_provider_sso_1 = require_dist_cjs40(); + var credential_provider_web_identity_1 = require_dist_cjs41(); + var property_provider_1 = require_dist_cjs16(); + var shared_ini_file_loader_1 = require_dist_cjs25(); + var remoteProvider_1 = require_remoteProvider(); + var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { + throw new property_provider_1.CredentialsProviderError(\\"Could not load credentials from any providers\\", false); + }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); + exports2.defaultProvider = defaultProvider; + } +}); + +// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +var require_dist_cjs44 = __commonJS({ + \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_defaultProvider(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js +var require_endpoints2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs7(); + var regionHash = { + \\"aws-global\\": { + variants: [ + { + hostname: \\"sts.amazonaws.com\\", + tags: [] + } + ], + signingRegion: \\"us-east-1\\" + }, + \\"us-east-1\\": { + variants: [ + { + hostname: \\"sts-fips.us-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-east-2\\": { + variants: [ + { + hostname: \\"sts-fips.us-east-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-east-1\\": { + variants: [ + { + hostname: \\"sts.us-gov-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-west-1\\": { + variants: [ + { + hostname: \\"sts.us-gov-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-1\\": { + variants: [ + { + hostname: \\"sts-fips.us-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-2\\": { + variants: [ + { + hostname: \\"sts-fips.us-west-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + \\"af-south-1\\", + \\"ap-east-1\\", + \\"ap-northeast-1\\", + \\"ap-northeast-2\\", + \\"ap-northeast-3\\", + \\"ap-south-1\\", + \\"ap-southeast-1\\", + \\"ap-southeast-2\\", + \\"ap-southeast-3\\", + \\"aws-global\\", + \\"ca-central-1\\", + \\"eu-central-1\\", + \\"eu-north-1\\", + \\"eu-south-1\\", + \\"eu-west-1\\", + \\"eu-west-2\\", + \\"eu-west-3\\", + \\"me-central-1\\", + \\"me-south-1\\", + \\"sa-east-1\\", + \\"us-east-1\\", + \\"us-east-1-fips\\", + \\"us-east-2\\", + \\"us-east-2-fips\\", + \\"us-west-1\\", + \\"us-west-1-fips\\", + \\"us-west-2\\", + \\"us-west-2-fips\\" + ], + regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"sts-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"sts.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-cn\\": { + regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], + regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.amazonaws.com.cn\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.amazonaws.com.cn\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"sts-fips.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"sts.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-iso\\": { + regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], + regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.c2s.ic.gov\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.c2s.ic.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-iso-b\\": { + regions: [\\"us-isob-east-1\\"], + regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.sc2s.sgov.gov\\", + tags: [] + }, + { + hostname: \\"sts-fips.{region}.sc2s.sgov.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-us-gov\\": { + regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], + regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"sts.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"sts.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"sts-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"sts.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: \\"sts\\", + regionHash, + partitionHash + }); + exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs28(); + var endpoints_1 = require_endpoints2(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: \\"2011-06-15\\", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"STS\\", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +var require_runtimeConfig2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package2()); + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var config_resolver_1 = require_dist_cjs7(); + var credential_provider_node_1 = require_dist_cjs44(); + var hash_node_1 = require_dist_cjs31(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs26(); + var node_http_handler_1 = require_dist_cjs33(); + var util_base64_node_1 = require_dist_cjs34(); + var util_body_length_node_1 = require_dist_cjs35(); + var util_user_agent_node_1 = require_dist_cjs36(); + var util_utf8_node_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); + var smithy_client_1 = require_dist_cjs3(); + var util_defaults_mode_node_1 = require_dist_cjs38(); + var smithy_client_2 = require_dist_cjs3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: \\"node\\", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, \\"sha256\\"), + streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, + utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +var require_STSClient = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STSClient = void 0; + var config_resolver_1 = require_dist_cjs7(); + var middleware_content_length_1 = require_dist_cjs8(); + var middleware_host_header_1 = require_dist_cjs11(); + var middleware_logger_1 = require_dist_cjs12(); + var middleware_recursion_detection_1 = require_dist_cjs13(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_sdk_sts_1 = require_dist_cjs23(); + var middleware_user_agent_1 = require_dist_cjs22(); + var smithy_client_1 = require_dist_cjs3(); + var runtimeConfig_1 = require_runtimeConfig2(); + var STSClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + super(_config_6); + this.config = _config_6; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports2.STSClient = STSClient; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +var require_STS = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/STS.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STS = void 0; + var AssumeRoleCommand_1 = require_AssumeRoleCommand(); + var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); + var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); + var DecodeAuthorizationMessageCommand_1 = require_DecodeAuthorizationMessageCommand(); + var GetAccessKeyInfoCommand_1 = require_GetAccessKeyInfoCommand(); + var GetCallerIdentityCommand_1 = require_GetCallerIdentityCommand(); + var GetFederationTokenCommand_1 = require_GetFederationTokenCommand(); + var GetSessionTokenCommand_1 = require_GetSessionTokenCommand(); + var STSClient_1 = require_STSClient(); + var STS = class extends STSClient_1.STSClient { + assumeRole(args, optionsOrCb, cb) { + const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithSAML(args, optionsOrCb, cb) { + const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + assumeRoleWithWebIdentity(args, optionsOrCb, cb) { + const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + decodeAuthorizationMessage(args, optionsOrCb, cb) { + const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getAccessKeyInfo(args, optionsOrCb, cb) { + const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getCallerIdentity(args, optionsOrCb, cb) { + const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getFederationToken(args, optionsOrCb, cb) { + const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getSessionToken(args, optionsOrCb, cb) { + const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports2.STS = STS; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +var require_commands2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_AssumeRoleCommand(), exports2); + tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports2); + tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports2); + tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports2); + tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports2); + tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports2); + tslib_1.__exportStar(require_GetFederationTokenCommand(), exports2); + tslib_1.__exportStar(require_GetSessionTokenCommand(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +var require_defaultRoleAssumers = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; + var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); + var STSClient_1 = require_STSClient(); + var getCustomizableStsClientCtor = (baseCtor, customizations) => { + if (!customizations) + return baseCtor; + else + return class CustomizableSTSClient extends baseCtor { + constructor(config) { + super(config); + for (const customization of customizations) { + this.middlewareStack.use(customization); + } + } + }; + }; + var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); + exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; + var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); + exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; + var decorateDefaultCredentialProvider = (provider) => (input) => provider({ + roleAssumer: (0, exports2.getDefaultRoleAssumer)(input), + roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input), + ...input + }); + exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +var require_models2 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_02(), exports2); + } +}); + +// node_modules/@aws-sdk/client-sts/dist-cjs/index.js +var require_dist_cjs45 = __commonJS({ + \\"node_modules/@aws-sdk/client-sts/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.STSServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_STS(), exports2); + tslib_1.__exportStar(require_STSClient(), exports2); + tslib_1.__exportStar(require_commands2(), exports2); + tslib_1.__exportStar(require_defaultRoleAssumers(), exports2); + tslib_1.__exportStar(require_models2(), exports2); + var STSServiceException_1 = require_STSServiceException(); + Object.defineProperty(exports2, \\"STSServiceException\\", { enumerable: true, get: function() { + return STSServiceException_1.STSServiceException; + } }); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js +var require_endpoints3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.defaultRegionInfoProvider = void 0; + var config_resolver_1 = require_dist_cjs7(); + var regionHash = { + \\"ca-central-1\\": { + variants: [ + { + hostname: \\"dynamodb-fips.ca-central-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + local: { + variants: [ + { + hostname: \\"localhost:8000\\", + tags: [] + } + ], + signingRegion: \\"us-east-1\\" + }, + \\"us-east-1\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-east-2\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-east-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-east-1\\": { + variants: [ + { + hostname: \\"dynamodb.us-gov-east-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-gov-west-1\\": { + variants: [ + { + hostname: \\"dynamodb.us-gov-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-1\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-west-1.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + }, + \\"us-west-2\\": { + variants: [ + { + hostname: \\"dynamodb-fips.us-west-2.amazonaws.com\\", + tags: [\\"fips\\"] + } + ] + } + }; + var partitionHash = { + aws: { + regions: [ + \\"af-south-1\\", + \\"ap-east-1\\", + \\"ap-northeast-1\\", + \\"ap-northeast-2\\", + \\"ap-northeast-3\\", + \\"ap-south-1\\", + \\"ap-southeast-1\\", + \\"ap-southeast-2\\", + \\"ap-southeast-3\\", + \\"ca-central-1\\", + \\"ca-central-1-fips\\", + \\"eu-central-1\\", + \\"eu-north-1\\", + \\"eu-south-1\\", + \\"eu-west-1\\", + \\"eu-west-2\\", + \\"eu-west-3\\", + \\"local\\", + \\"me-central-1\\", + \\"me-south-1\\", + \\"sa-east-1\\", + \\"us-east-1\\", + \\"us-east-1-fips\\", + \\"us-east-2\\", + \\"us-east-2-fips\\", + \\"us-west-1\\", + \\"us-west-1-fips\\", + \\"us-west-2\\", + \\"us-west-2-fips\\" + ], + regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"dynamodb-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"dynamodb.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-cn\\": { + regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], + regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.amazonaws.com.cn\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.amazonaws.com.cn\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"dynamodb-fips.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"dynamodb.{region}.api.amazonwebservices.com.cn\\", + tags: [\\"dualstack\\"] + } + ] + }, + \\"aws-iso\\": { + regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], + regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.c2s.ic.gov\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.c2s.ic.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-iso-b\\": { + regions: [\\"us-isob-east-1\\"], + regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.sc2s.sgov.gov\\", + tags: [] + }, + { + hostname: \\"dynamodb-fips.{region}.sc2s.sgov.gov\\", + tags: [\\"fips\\"] + } + ] + }, + \\"aws-us-gov\\": { + regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], + regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", + variants: [ + { + hostname: \\"dynamodb.{region}.amazonaws.com\\", + tags: [] + }, + { + hostname: \\"dynamodb.{region}.amazonaws.com\\", + tags: [\\"fips\\"] + }, + { + hostname: \\"dynamodb-fips.{region}.api.aws\\", + tags: [\\"dualstack\\", \\"fips\\"] + }, + { + hostname: \\"dynamodb.{region}.api.aws\\", + tags: [\\"dualstack\\"] + } + ] + } + }; + var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { + ...options, + signingService: \\"dynamodb\\", + regionHash, + partitionHash + }); + exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js +var require_runtimeConfig_shared3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var url_parser_1 = require_dist_cjs28(); + var endpoints_1 = require_endpoints3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e; + return { + apiVersion: \\"2012-08-10\\", + disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, + logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, + regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, + serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"DynamoDB\\", + urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js +var require_runtimeConfig3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.getRuntimeConfig = void 0; + var tslib_1 = require_tslib(); + var package_json_1 = tslib_1.__importDefault(require_package()); + var client_sts_1 = require_dist_cjs45(); + var config_resolver_1 = require_dist_cjs7(); + var credential_provider_node_1 = require_dist_cjs44(); + var hash_node_1 = require_dist_cjs31(); + var middleware_endpoint_discovery_1 = require_dist_cjs10(); + var middleware_retry_1 = require_dist_cjs15(); + var node_config_provider_1 = require_dist_cjs26(); + var node_http_handler_1 = require_dist_cjs33(); + var util_base64_node_1 = require_dist_cjs34(); + var util_body_length_node_1 = require_dist_cjs35(); + var util_user_agent_node_1 = require_dist_cjs36(); + var util_utf8_node_1 = require_dist_cjs37(); + var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); + var smithy_client_1 = require_dist_cjs3(); + var util_defaults_mode_node_1 = require_dist_cjs38(); + var smithy_client_2 = require_dist_cjs3(); + var getRuntimeConfig = (config) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; + (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); + const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); + const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); + const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); + return { + ...clientSharedValues, + ...config, + runtime: \\"node\\", + defaultsMode, + base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, + base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, + bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, + credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), + defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), + endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), + maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), + retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)({ + ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE + }), + sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, \\"sha256\\"), + streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector, + useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8, + utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8 + }; + }; + exports2.getRuntimeConfig = getRuntimeConfig; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js +var require_DynamoDBClient = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDBClient = void 0; + var config_resolver_1 = require_dist_cjs7(); + var middleware_content_length_1 = require_dist_cjs8(); + var middleware_endpoint_discovery_1 = require_dist_cjs10(); + var middleware_host_header_1 = require_dist_cjs11(); + var middleware_logger_1 = require_dist_cjs12(); + var middleware_recursion_detection_1 = require_dist_cjs13(); + var middleware_retry_1 = require_dist_cjs15(); + var middleware_signing_1 = require_dist_cjs21(); + var middleware_user_agent_1 = require_dist_cjs22(); + var smithy_client_1 = require_dist_cjs3(); + var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); + var runtimeConfig_1 = require_runtimeConfig3(); + var DynamoDBClient = class extends smithy_client_1.Client { + constructor(configuration) { + const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); + const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); + const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); + const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); + const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); + const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); + const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); + const _config_7 = (0, middleware_endpoint_discovery_1.resolveEndpointDiscoveryConfig)(_config_6, { + endpointDiscoveryCommandCtor: DescribeEndpointsCommand_1.DescribeEndpointsCommand + }); + super(_config_7); + this.config = _config_7; + this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); + this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); + this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); + this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); + this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); + this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); + } + destroy() { + super.destroy(); + } + }; + exports2.DynamoDBClient = DynamoDBClient; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js +var require_DynamoDB = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDB = void 0; + var BatchExecuteStatementCommand_1 = require_BatchExecuteStatementCommand(); + var BatchGetItemCommand_1 = require_BatchGetItemCommand(); + var BatchWriteItemCommand_1 = require_BatchWriteItemCommand(); + var CreateBackupCommand_1 = require_CreateBackupCommand(); + var CreateGlobalTableCommand_1 = require_CreateGlobalTableCommand(); + var CreateTableCommand_1 = require_CreateTableCommand(); + var DeleteBackupCommand_1 = require_DeleteBackupCommand(); + var DeleteItemCommand_1 = require_DeleteItemCommand(); + var DeleteTableCommand_1 = require_DeleteTableCommand(); + var DescribeBackupCommand_1 = require_DescribeBackupCommand(); + var DescribeContinuousBackupsCommand_1 = require_DescribeContinuousBackupsCommand(); + var DescribeContributorInsightsCommand_1 = require_DescribeContributorInsightsCommand(); + var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); + var DescribeExportCommand_1 = require_DescribeExportCommand(); + var DescribeGlobalTableCommand_1 = require_DescribeGlobalTableCommand(); + var DescribeGlobalTableSettingsCommand_1 = require_DescribeGlobalTableSettingsCommand(); + var DescribeImportCommand_1 = require_DescribeImportCommand(); + var DescribeKinesisStreamingDestinationCommand_1 = require_DescribeKinesisStreamingDestinationCommand(); + var DescribeLimitsCommand_1 = require_DescribeLimitsCommand(); + var DescribeTableCommand_1 = require_DescribeTableCommand(); + var DescribeTableReplicaAutoScalingCommand_1 = require_DescribeTableReplicaAutoScalingCommand(); + var DescribeTimeToLiveCommand_1 = require_DescribeTimeToLiveCommand(); + var DisableKinesisStreamingDestinationCommand_1 = require_DisableKinesisStreamingDestinationCommand(); + var EnableKinesisStreamingDestinationCommand_1 = require_EnableKinesisStreamingDestinationCommand(); + var ExecuteStatementCommand_1 = require_ExecuteStatementCommand(); + var ExecuteTransactionCommand_1 = require_ExecuteTransactionCommand(); + var ExportTableToPointInTimeCommand_1 = require_ExportTableToPointInTimeCommand(); + var GetItemCommand_1 = require_GetItemCommand(); + var ImportTableCommand_1 = require_ImportTableCommand(); + var ListBackupsCommand_1 = require_ListBackupsCommand(); + var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); + var ListExportsCommand_1 = require_ListExportsCommand(); + var ListGlobalTablesCommand_1 = require_ListGlobalTablesCommand(); + var ListImportsCommand_1 = require_ListImportsCommand(); + var ListTablesCommand_1 = require_ListTablesCommand(); + var ListTagsOfResourceCommand_1 = require_ListTagsOfResourceCommand(); + var PutItemCommand_1 = require_PutItemCommand(); + var QueryCommand_1 = require_QueryCommand(); + var RestoreTableFromBackupCommand_1 = require_RestoreTableFromBackupCommand(); + var RestoreTableToPointInTimeCommand_1 = require_RestoreTableToPointInTimeCommand(); + var ScanCommand_1 = require_ScanCommand(); + var TagResourceCommand_1 = require_TagResourceCommand(); + var TransactGetItemsCommand_1 = require_TransactGetItemsCommand(); + var TransactWriteItemsCommand_1 = require_TransactWriteItemsCommand(); + var UntagResourceCommand_1 = require_UntagResourceCommand(); + var UpdateContinuousBackupsCommand_1 = require_UpdateContinuousBackupsCommand(); + var UpdateContributorInsightsCommand_1 = require_UpdateContributorInsightsCommand(); + var UpdateGlobalTableCommand_1 = require_UpdateGlobalTableCommand(); + var UpdateGlobalTableSettingsCommand_1 = require_UpdateGlobalTableSettingsCommand(); + var UpdateItemCommand_1 = require_UpdateItemCommand(); + var UpdateTableCommand_1 = require_UpdateTableCommand(); + var UpdateTableReplicaAutoScalingCommand_1 = require_UpdateTableReplicaAutoScalingCommand(); + var UpdateTimeToLiveCommand_1 = require_UpdateTimeToLiveCommand(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var DynamoDB = class extends DynamoDBClient_1.DynamoDBClient { + batchExecuteStatement(args, optionsOrCb, cb) { + const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchGetItem(args, optionsOrCb, cb) { + const command = new BatchGetItemCommand_1.BatchGetItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + batchWriteItem(args, optionsOrCb, cb) { + const command = new BatchWriteItemCommand_1.BatchWriteItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createBackup(args, optionsOrCb, cb) { + const command = new CreateBackupCommand_1.CreateBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createGlobalTable(args, optionsOrCb, cb) { + const command = new CreateGlobalTableCommand_1.CreateGlobalTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + createTable(args, optionsOrCb, cb) { + const command = new CreateTableCommand_1.CreateTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteBackup(args, optionsOrCb, cb) { + const command = new DeleteBackupCommand_1.DeleteBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteItem(args, optionsOrCb, cb) { + const command = new DeleteItemCommand_1.DeleteItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + deleteTable(args, optionsOrCb, cb) { + const command = new DeleteTableCommand_1.DeleteTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeBackup(args, optionsOrCb, cb) { + const command = new DescribeBackupCommand_1.DescribeBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeContinuousBackups(args, optionsOrCb, cb) { + const command = new DescribeContinuousBackupsCommand_1.DescribeContinuousBackupsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeContributorInsights(args, optionsOrCb, cb) { + const command = new DescribeContributorInsightsCommand_1.DescribeContributorInsightsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeEndpoints(args, optionsOrCb, cb) { + const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeExport(args, optionsOrCb, cb) { + const command = new DescribeExportCommand_1.DescribeExportCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeGlobalTable(args, optionsOrCb, cb) { + const command = new DescribeGlobalTableCommand_1.DescribeGlobalTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeGlobalTableSettings(args, optionsOrCb, cb) { + const command = new DescribeGlobalTableSettingsCommand_1.DescribeGlobalTableSettingsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeImport(args, optionsOrCb, cb) { + const command = new DescribeImportCommand_1.DescribeImportCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeKinesisStreamingDestination(args, optionsOrCb, cb) { + const command = new DescribeKinesisStreamingDestinationCommand_1.DescribeKinesisStreamingDestinationCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeLimits(args, optionsOrCb, cb) { + const command = new DescribeLimitsCommand_1.DescribeLimitsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeTable(args, optionsOrCb, cb) { + const command = new DescribeTableCommand_1.DescribeTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeTableReplicaAutoScaling(args, optionsOrCb, cb) { + const command = new DescribeTableReplicaAutoScalingCommand_1.DescribeTableReplicaAutoScalingCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + describeTimeToLive(args, optionsOrCb, cb) { + const command = new DescribeTimeToLiveCommand_1.DescribeTimeToLiveCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + disableKinesisStreamingDestination(args, optionsOrCb, cb) { + const command = new DisableKinesisStreamingDestinationCommand_1.DisableKinesisStreamingDestinationCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + enableKinesisStreamingDestination(args, optionsOrCb, cb) { + const command = new EnableKinesisStreamingDestinationCommand_1.EnableKinesisStreamingDestinationCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + executeStatement(args, optionsOrCb, cb) { + const command = new ExecuteStatementCommand_1.ExecuteStatementCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + executeTransaction(args, optionsOrCb, cb) { + const command = new ExecuteTransactionCommand_1.ExecuteTransactionCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + exportTableToPointInTime(args, optionsOrCb, cb) { + const command = new ExportTableToPointInTimeCommand_1.ExportTableToPointInTimeCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + getItem(args, optionsOrCb, cb) { + const command = new GetItemCommand_1.GetItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + importTable(args, optionsOrCb, cb) { + const command = new ImportTableCommand_1.ImportTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listBackups(args, optionsOrCb, cb) { + const command = new ListBackupsCommand_1.ListBackupsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listContributorInsights(args, optionsOrCb, cb) { + const command = new ListContributorInsightsCommand_1.ListContributorInsightsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listExports(args, optionsOrCb, cb) { + const command = new ListExportsCommand_1.ListExportsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listGlobalTables(args, optionsOrCb, cb) { + const command = new ListGlobalTablesCommand_1.ListGlobalTablesCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listImports(args, optionsOrCb, cb) { + const command = new ListImportsCommand_1.ListImportsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listTables(args, optionsOrCb, cb) { + const command = new ListTablesCommand_1.ListTablesCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + listTagsOfResource(args, optionsOrCb, cb) { + const command = new ListTagsOfResourceCommand_1.ListTagsOfResourceCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + putItem(args, optionsOrCb, cb) { + const command = new PutItemCommand_1.PutItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + query(args, optionsOrCb, cb) { + const command = new QueryCommand_1.QueryCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + restoreTableFromBackup(args, optionsOrCb, cb) { + const command = new RestoreTableFromBackupCommand_1.RestoreTableFromBackupCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + restoreTableToPointInTime(args, optionsOrCb, cb) { + const command = new RestoreTableToPointInTimeCommand_1.RestoreTableToPointInTimeCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + scan(args, optionsOrCb, cb) { + const command = new ScanCommand_1.ScanCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + tagResource(args, optionsOrCb, cb) { + const command = new TagResourceCommand_1.TagResourceCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + transactGetItems(args, optionsOrCb, cb) { + const command = new TransactGetItemsCommand_1.TransactGetItemsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + transactWriteItems(args, optionsOrCb, cb) { + const command = new TransactWriteItemsCommand_1.TransactWriteItemsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + untagResource(args, optionsOrCb, cb) { + const command = new UntagResourceCommand_1.UntagResourceCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateContinuousBackups(args, optionsOrCb, cb) { + const command = new UpdateContinuousBackupsCommand_1.UpdateContinuousBackupsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateContributorInsights(args, optionsOrCb, cb) { + const command = new UpdateContributorInsightsCommand_1.UpdateContributorInsightsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateGlobalTable(args, optionsOrCb, cb) { + const command = new UpdateGlobalTableCommand_1.UpdateGlobalTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateGlobalTableSettings(args, optionsOrCb, cb) { + const command = new UpdateGlobalTableSettingsCommand_1.UpdateGlobalTableSettingsCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateItem(args, optionsOrCb, cb) { + const command = new UpdateItemCommand_1.UpdateItemCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateTable(args, optionsOrCb, cb) { + const command = new UpdateTableCommand_1.UpdateTableCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateTableReplicaAutoScaling(args, optionsOrCb, cb) { + const command = new UpdateTableReplicaAutoScalingCommand_1.UpdateTableReplicaAutoScalingCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + updateTimeToLive(args, optionsOrCb, cb) { + const command = new UpdateTimeToLiveCommand_1.UpdateTimeToLiveCommand(args); + if (typeof optionsOrCb === \\"function\\") { + this.send(command, optionsOrCb); + } else if (typeof cb === \\"function\\") { + if (typeof optionsOrCb !== \\"object\\") + throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); + this.send(command, optionsOrCb || {}, cb); + } else { + return this.send(command, optionsOrCb); + } + } + }; + exports2.DynamoDB = DynamoDB; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js +var require_commands3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_BatchExecuteStatementCommand(), exports2); + tslib_1.__exportStar(require_BatchGetItemCommand(), exports2); + tslib_1.__exportStar(require_BatchWriteItemCommand(), exports2); + tslib_1.__exportStar(require_CreateBackupCommand(), exports2); + tslib_1.__exportStar(require_CreateGlobalTableCommand(), exports2); + tslib_1.__exportStar(require_CreateTableCommand(), exports2); + tslib_1.__exportStar(require_DeleteBackupCommand(), exports2); + tslib_1.__exportStar(require_DeleteItemCommand(), exports2); + tslib_1.__exportStar(require_DeleteTableCommand(), exports2); + tslib_1.__exportStar(require_DescribeBackupCommand(), exports2); + tslib_1.__exportStar(require_DescribeContinuousBackupsCommand(), exports2); + tslib_1.__exportStar(require_DescribeContributorInsightsCommand(), exports2); + tslib_1.__exportStar(require_DescribeEndpointsCommand(), exports2); + tslib_1.__exportStar(require_DescribeExportCommand(), exports2); + tslib_1.__exportStar(require_DescribeGlobalTableCommand(), exports2); + tslib_1.__exportStar(require_DescribeGlobalTableSettingsCommand(), exports2); + tslib_1.__exportStar(require_DescribeImportCommand(), exports2); + tslib_1.__exportStar(require_DescribeKinesisStreamingDestinationCommand(), exports2); + tslib_1.__exportStar(require_DescribeLimitsCommand(), exports2); + tslib_1.__exportStar(require_DescribeTableCommand(), exports2); + tslib_1.__exportStar(require_DescribeTableReplicaAutoScalingCommand(), exports2); + tslib_1.__exportStar(require_DescribeTimeToLiveCommand(), exports2); + tslib_1.__exportStar(require_DisableKinesisStreamingDestinationCommand(), exports2); + tslib_1.__exportStar(require_EnableKinesisStreamingDestinationCommand(), exports2); + tslib_1.__exportStar(require_ExecuteStatementCommand(), exports2); + tslib_1.__exportStar(require_ExecuteTransactionCommand(), exports2); + tslib_1.__exportStar(require_ExportTableToPointInTimeCommand(), exports2); + tslib_1.__exportStar(require_GetItemCommand(), exports2); + tslib_1.__exportStar(require_ImportTableCommand(), exports2); + tslib_1.__exportStar(require_ListBackupsCommand(), exports2); + tslib_1.__exportStar(require_ListContributorInsightsCommand(), exports2); + tslib_1.__exportStar(require_ListExportsCommand(), exports2); + tslib_1.__exportStar(require_ListGlobalTablesCommand(), exports2); + tslib_1.__exportStar(require_ListImportsCommand(), exports2); + tslib_1.__exportStar(require_ListTablesCommand(), exports2); + tslib_1.__exportStar(require_ListTagsOfResourceCommand(), exports2); + tslib_1.__exportStar(require_PutItemCommand(), exports2); + tslib_1.__exportStar(require_QueryCommand(), exports2); + tslib_1.__exportStar(require_RestoreTableFromBackupCommand(), exports2); + tslib_1.__exportStar(require_RestoreTableToPointInTimeCommand(), exports2); + tslib_1.__exportStar(require_ScanCommand(), exports2); + tslib_1.__exportStar(require_TagResourceCommand(), exports2); + tslib_1.__exportStar(require_TransactGetItemsCommand(), exports2); + tslib_1.__exportStar(require_TransactWriteItemsCommand(), exports2); + tslib_1.__exportStar(require_UntagResourceCommand(), exports2); + tslib_1.__exportStar(require_UpdateContinuousBackupsCommand(), exports2); + tslib_1.__exportStar(require_UpdateContributorInsightsCommand(), exports2); + tslib_1.__exportStar(require_UpdateGlobalTableCommand(), exports2); + tslib_1.__exportStar(require_UpdateGlobalTableSettingsCommand(), exports2); + tslib_1.__exportStar(require_UpdateItemCommand(), exports2); + tslib_1.__exportStar(require_UpdateTableCommand(), exports2); + tslib_1.__exportStar(require_UpdateTableReplicaAutoScalingCommand(), exports2); + tslib_1.__exportStar(require_UpdateTimeToLiveCommand(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js +var require_models3 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_models_0(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js +var require_Interfaces2 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js +var require_ListContributorInsightsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListContributorInsights = void 0; + var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListContributorInsightsCommand_1.ListContributorInsightsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listContributorInsights(input, ...args); + }; + async function* paginateListContributorInsights(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input[\\"MaxResults\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListContributorInsights = paginateListContributorInsights; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js +var require_ListExportsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListExports = void 0; + var ListExportsCommand_1 = require_ListExportsCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listExports(input, ...args); + }; + async function* paginateListExports(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input[\\"MaxResults\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListExports = paginateListExports; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListImportsPaginator.js +var require_ListImportsPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListImportsPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListImports = void 0; + var ListImportsCommand_1 = require_ListImportsCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listImports(input, ...args); + }; + async function* paginateListImports(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.NextToken = token; + input[\\"PageSize\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.NextToken; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListImports = paginateListImports; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js +var require_ListTablesPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateListTables = void 0; + var ListTablesCommand_1 = require_ListTablesCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.listTables(input, ...args); + }; + async function* paginateListTables(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.ExclusiveStartTableName = token; + input[\\"Limit\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.LastEvaluatedTableName; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateListTables = paginateListTables; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js +var require_QueryPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateQuery = void 0; + var QueryCommand_1 = require_QueryCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new QueryCommand_1.QueryCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.query(input, ...args); + }; + async function* paginateQuery(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.ExclusiveStartKey = token; + input[\\"Limit\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.LastEvaluatedKey; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateQuery = paginateQuery; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js +var require_ScanPaginator = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.paginateScan = void 0; + var ScanCommand_1 = require_ScanCommand(); + var DynamoDB_1 = require_DynamoDB(); + var DynamoDBClient_1 = require_DynamoDBClient(); + var makePagedClientRequest = async (client, input, ...args) => { + return await client.send(new ScanCommand_1.ScanCommand(input), ...args); + }; + var makePagedRequest = async (client, input, ...args) => { + return await client.scan(input, ...args); + }; + async function* paginateScan(config, input, ...additionalArguments) { + let token = config.startingToken || void 0; + let hasNext = true; + let page; + while (hasNext) { + input.ExclusiveStartKey = token; + input[\\"Limit\\"] = config.pageSize; + if (config.client instanceof DynamoDB_1.DynamoDB) { + page = await makePagedRequest(config.client, input, ...additionalArguments); + } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { + page = await makePagedClientRequest(config.client, input, ...additionalArguments); + } else { + throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); + } + yield page; + const prevToken = token; + token = page.LastEvaluatedKey; + hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); + } + return void 0; + } + exports2.paginateScan = paginateScan; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js +var require_pagination2 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_Interfaces2(), exports2); + tslib_1.__exportStar(require_ListContributorInsightsPaginator(), exports2); + tslib_1.__exportStar(require_ListExportsPaginator(), exports2); + tslib_1.__exportStar(require_ListImportsPaginator(), exports2); + tslib_1.__exportStar(require_ListTablesPaginator(), exports2); + tslib_1.__exportStar(require_QueryPaginator(), exports2); + tslib_1.__exportStar(require_ScanPaginator(), exports2); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js +var require_sleep = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.sleep = void 0; + var sleep = (seconds) => { + return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); + }; + exports2.sleep = sleep; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js +var require_waiter = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.checkExceptions = exports2.WaiterState = exports2.waiterServiceDefaults = void 0; + exports2.waiterServiceDefaults = { + minDelay: 2, + maxDelay: 120 + }; + var WaiterState; + (function(WaiterState2) { + WaiterState2[\\"ABORTED\\"] = \\"ABORTED\\"; + WaiterState2[\\"FAILURE\\"] = \\"FAILURE\\"; + WaiterState2[\\"SUCCESS\\"] = \\"SUCCESS\\"; + WaiterState2[\\"RETRY\\"] = \\"RETRY\\"; + WaiterState2[\\"TIMEOUT\\"] = \\"TIMEOUT\\"; + })(WaiterState = exports2.WaiterState || (exports2.WaiterState = {})); + var checkExceptions = (result) => { + if (result.state === WaiterState.ABORTED) { + const abortError = new Error(\`\${JSON.stringify({ + ...result, + reason: \\"Request was aborted\\" + })}\`); + abortError.name = \\"AbortError\\"; + throw abortError; + } else if (result.state === WaiterState.TIMEOUT) { + const timeoutError = new Error(\`\${JSON.stringify({ + ...result, + reason: \\"Waiter has timed out\\" + })}\`); + timeoutError.name = \\"TimeoutError\\"; + throw timeoutError; + } else if (result.state !== WaiterState.SUCCESS) { + throw new Error(\`\${JSON.stringify({ result })}\`); + } + return result; + }; + exports2.checkExceptions = checkExceptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js +var require_poller = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.runPolling = void 0; + var sleep_1 = require_sleep(); + var waiter_1 = require_waiter(); + var exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { + if (attempt > attemptCeiling) + return maxDelay; + const delay = minDelay * 2 ** (attempt - 1); + return randomInRange(minDelay, delay); + }; + var randomInRange = (min, max) => min + Math.random() * (max - min); + var runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { + var _a; + const { state } = await acceptorChecks(client, input); + if (state !== waiter_1.WaiterState.RETRY) { + return { state }; + } + let currentAttempt = 1; + const waitUntil = Date.now() + maxWaitTime * 1e3; + const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; + while (true) { + if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { + return { state: waiter_1.WaiterState.ABORTED }; + } + const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); + if (Date.now() + delay * 1e3 > waitUntil) { + return { state: waiter_1.WaiterState.TIMEOUT }; + } + await (0, sleep_1.sleep)(delay); + const { state: state2 } = await acceptorChecks(client, input); + if (state2 !== waiter_1.WaiterState.RETRY) { + return { state: state2 }; + } + currentAttempt += 1; + } + }; + exports2.runPolling = runPolling; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js +var require_validate2 = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.validateWaiterOptions = void 0; + var validateWaiterOptions = (options) => { + if (options.maxWaitTime < 1) { + throw new Error(\`WaiterConfiguration.maxWaitTime must be greater than 0\`); + } else if (options.minDelay < 1) { + throw new Error(\`WaiterConfiguration.minDelay must be greater than 0\`); + } else if (options.maxDelay < 1) { + throw new Error(\`WaiterConfiguration.maxDelay must be greater than 0\`); + } else if (options.maxWaitTime <= options.minDelay) { + throw new Error(\`WaiterConfiguration.maxWaitTime [\${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); + } else if (options.maxDelay < options.minDelay) { + throw new Error(\`WaiterConfiguration.maxDelay [\${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); + } + }; + exports2.validateWaiterOptions = validateWaiterOptions; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js +var require_utils = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_sleep(), exports2); + tslib_1.__exportStar(require_validate2(), exports2); + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js +var require_createWaiter = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.createWaiter = void 0; + var poller_1 = require_poller(); + var utils_1 = require_utils(); + var waiter_1 = require_waiter(); + var abortTimeout = async (abortSignal) => { + return new Promise((resolve) => { + abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); + }); + }; + var createWaiter = async (options, input, acceptorChecks) => { + const params = { + ...waiter_1.waiterServiceDefaults, + ...options + }; + (0, utils_1.validateWaiterOptions)(params); + const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; + if (options.abortController) { + exitConditions.push(abortTimeout(options.abortController.signal)); + } + if (options.abortSignal) { + exitConditions.push(abortTimeout(options.abortSignal)); + } + return Promise.race(exitConditions); + }; + exports2.createWaiter = createWaiter; + } +}); + +// node_modules/@aws-sdk/util-waiter/dist-cjs/index.js +var require_dist_cjs46 = __commonJS({ + \\"node_modules/@aws-sdk/util-waiter/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_createWaiter(), exports2); + tslib_1.__exportStar(require_waiter(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js +var require_waitForTableExists = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.waitUntilTableExists = exports2.waitForTableExists = void 0; + var util_waiter_1 = require_dist_cjs46(); + var DescribeTableCommand_1 = require_DescribeTableCommand(); + var checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); + reason = result; + try { + const returnComparator = () => { + return result.Table.TableStatus; + }; + if (returnComparator() === \\"ACTIVE\\") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } catch (e) { + } + } catch (exception) { + reason = exception; + if (exception.name && exception.name == \\"ResourceNotFoundException\\") { + return { state: util_waiter_1.WaiterState.RETRY, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; + }; + var waitForTableExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + }; + exports2.waitForTableExists = waitForTableExists; + var waitUntilTableExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); + }; + exports2.waitUntilTableExists = waitUntilTableExists; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js +var require_waitForTableNotExists = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.waitUntilTableNotExists = exports2.waitForTableNotExists = void 0; + var util_waiter_1 = require_dist_cjs46(); + var DescribeTableCommand_1 = require_DescribeTableCommand(); + var checkState = async (client, input) => { + let reason; + try { + const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); + reason = result; + } catch (exception) { + reason = exception; + if (exception.name && exception.name == \\"ResourceNotFoundException\\") { + return { state: util_waiter_1.WaiterState.SUCCESS, reason }; + } + } + return { state: util_waiter_1.WaiterState.RETRY, reason }; + }; + var waitForTableNotExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + }; + exports2.waitForTableNotExists = waitForTableNotExists; + var waitUntilTableNotExists = async (params, input) => { + const serviceDefaults = { minDelay: 20, maxDelay: 120 }; + const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); + return (0, util_waiter_1.checkExceptions)(result); + }; + exports2.waitUntilTableNotExists = waitUntilTableNotExists; + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js +var require_waiters = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_waitForTableExists(), exports2); + tslib_1.__exportStar(require_waitForTableNotExists(), exports2); + } +}); + +// node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js +var require_dist_cjs47 = __commonJS({ + \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js\\"(exports2) { + \\"use strict\\"; + Object.defineProperty(exports2, \\"__esModule\\", { value: true }); + exports2.DynamoDBServiceException = void 0; + var tslib_1 = require_tslib(); + tslib_1.__exportStar(require_DynamoDB(), exports2); + tslib_1.__exportStar(require_DynamoDBClient(), exports2); + tslib_1.__exportStar(require_commands3(), exports2); + tslib_1.__exportStar(require_models3(), exports2); + tslib_1.__exportStar(require_pagination2(), exports2); + tslib_1.__exportStar(require_waiters(), exports2); + var DynamoDBServiceException_1 = require_DynamoDBServiceException(); + Object.defineProperty(exports2, \\"DynamoDBServiceException\\", { enumerable: true, get: function() { + return DynamoDBServiceException_1.DynamoDBServiceException; + } }); + } +}); + +// +var v0; +var v2 = require_dist_cjs47(); +var v3 = v2.DynamoDBClient; +var v1 = v3; +v0 = () => { + const client = new v1({}); + return client.config.serviceId; +}; +exports.handler = v0; +" +`; + exports[`instantiating the AWS SDK without esbuild 1`] = ` "var v0; const v2 = {}; @@ -32108,6 +56701,359 @@ exports.handler = v0; " `; +exports[`serialize a class declaration 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + method() { + v3++; + return v3; + } +}; +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method(); + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a class declaration with constructor 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + constructor() { + v3 += 1; + } + method() { + v3++; + return v3; + } +}; +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method(); + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a class hierarchy 1`] = ` +"// +var v0; +var v2; +var v4; +var v5 = 0; +v4 = class Foo { + method() { + return v5 += 1; + } +}; +var v3 = v4; +v2 = class Bar extends v3 { + method() { + return super.method() + 1; + } +}; +var v1 = v2; +v0 = () => { + const bar = new v1(); + return [bar.method(), v5]; +}; +exports.handler = v0; +" +`; + +exports[`serialize a class mix-in 1`] = ` +"// +var v0; +var v2; +var v4; +var v5 = 0; +v4 = () => { + return class Foo { + method() { + return v5 += 1; + } + }; +}; +var v3 = v4; +v2 = class Bar extends v3() { + method() { + return super.method() + 1; + } +}; +var v1 = v2; +v0 = () => { + const bar = new v1(); + return [bar.method(), v5]; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + get method() { + return v3 += 1; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { + return v3 += 2; +} }); +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method; + foo.method; + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter and setter 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + set method(val) { + v3 += val; + } + get method() { + return v3; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { + return v3 + 1; +}, set: function set(val) { + v3 += val + 1; +} }); +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + set method(val) { + v3 += val; + } + get method() { + return v3; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { + return v3 + 1; +}, set: Object.getOwnPropertyDescriptor(v2.prototype, \\"method\\").set }); +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method = 1; + foo.method = 1; + return foo.method; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class method 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + method() { + v3 += 1; + } +}; +var v4; +v4 = function() { + v3 += 2; +}; +var v5 = {}; +v5.constructor = v4; +v4.prototype = v5; +v2.prototype.method = v4; +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method(); + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class method that has been re-set 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + method() { + v3 += 1; + } +}; +var v4; +v4 = function() { + v3 += 2; +}; +var v5 = {}; +v5.constructor = v4; +v4.prototype = v5; +v2.prototype.method = v4; +var v1 = v2; +var v6 = function method() { + v3 += 1; +}; +v0 = () => { + const foo = new v1(); + foo.method(); + v1.prototype.method = v6; + foo.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched class setter 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + set method(val) { + v3 += val; + } +}; +Object.defineProperty(v2.prototype, \\"method\\", { set: function set(val) { + v3 += val + 1; +} }); +var v1 = v2; +v0 = () => { + const foo = new v1(); + foo.method = 1; + foo.method = 1; + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class arrow function 1`] = ` +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; +}; + +// +var v0; +var v2; +var v3 = 0; +var _a; +v2 = (_a = class { +}, __publicField(_a, \\"method\\", () => { + v3 += 1; +}), _a); +var v4; +v4 = function() { + v3 += 2; +}; +var v5 = {}; +v5.constructor = v4; +v4.prototype = v5; +v2.method = v4; +var v1 = v2; +v0 = () => { + v1.method(); + v1.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class method 1`] = ` +"// +var v0; +var v2; +var v3 = 0; +v2 = class Foo { + method() { + v3 += 1; + } +}; +var v4; +v4 = function() { + v3 += 2; +}; +var v5 = {}; +v5.constructor = v4; +v4.prototype = v5; +v2.method = v4; +var v1 = v2; +v0 = () => { + v1.method(); + v1.method(); + return v3; +}; +exports.handler = v0; +" +`; + +exports[`serialize a monkey-patched static class property 1`] = ` +"var __defProp = Object.defineProperty; +var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; +var __publicField = (obj, key, value) => { + __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); + return value; +}; + +// +var v0; +var v2; +var _a; +v2 = (_a = class { +}, __publicField(_a, \\"prop\\", 1), _a); +v2.prop = 2; +var v1 = v2; +v0 = () => { + return v1.prop; +}; +exports.handler = v0; +" +`; + exports[`serialize a proxy 1`] = ` "// var v0; @@ -32127,3 +57073,16 @@ v0 = () => { exports.handler = v0; " `; + +exports[`serialize an imported module 1`] = ` +"// +var v0; +v0 = function isNode(a) { + return typeof (a == null ? void 0 : a.kind) === \\"number\\"; +}; +var v1 = {}; +v1.constructor = v0; +v0.prototype = v1; +exports.handler = v0; +" +`; From 4f3744a6ea7dd4d332eab345a4e90c0b6151c2e5 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 7 Sep 2022 17:28:11 -0700 Subject: [PATCH 076/107] feat: avoid generating free variable names that collide with closure internals --- src/aws-sdk/iam.ts | 1 - src/function.ts | 2 +- src/serialize-closure.ts | 362 +++++++++++------- .../serialize-closure.test.ts.snap | 156 +++++++- test/serialize-closure.test.ts | 150 ++++++++ 5 files changed, 538 insertions(+), 133 deletions(-) diff --git a/src/aws-sdk/iam.ts b/src/aws-sdk/iam.ts index 6835c0b6..88e1191e 100644 --- a/src/aws-sdk/iam.ts +++ b/src/aws-sdk/iam.ts @@ -71,7 +71,6 @@ export const IAM_SERVICE_PREFIX: Record = { ComprehendMedical: "comprehendmedical", ComputeOptimizer: "compute-optimizer", ConfigService: "config", - ControlTower: "controltower", Connect: "connect", ConnectCampaigns: "connect-campaigns", ConnectContactLens: "connect", diff --git a/src/function.ts b/src/function.ts index 6506867d..9f758566 100644 --- a/src/function.ts +++ b/src/function.ts @@ -728,7 +728,7 @@ export class Function< try { await callbackLambdaCode.generate( nativeIntegrationsPrewarm, - // TODO: make default ASYNC until we are happy + // TODO: make the default ASYNC until we are happy props?.serializer ?? SerializerImpl.STABLE_DEBUGGER ); } catch (e) { diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index ec0fc36e..ec3ec35c 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -6,6 +6,7 @@ import ts from "typescript"; import { assertNever } from "./assert"; import { + BindingName, ClassDecl, FunctionLike, GetAccessorDecl, @@ -121,6 +122,7 @@ import { newExpr, } from "./serialize-util"; import { AnyClass, AnyFunction } from "./util"; +import { forEachChild } from "./visit"; export interface SerializeClosureProps extends esbuild.BuildOptions { /** @@ -211,12 +213,11 @@ export function serializeClosure( ); let i = 0; - const uniqueName = (scope?: FunctionlessNode) => { - const names = scope?.getLexicalScope(); + const uniqueName = (illegalNames?: Set) => { let name; do { name = `v${i++}`; - } while (names?.has(name)); + } while (illegalNames?.has(name)); return name; }; @@ -364,7 +365,6 @@ export function serializeClosure( } function serializeValue(value: any): ts.Expression { - ts.SyntaxKind; if (value === undefined) { return undefinedExpr(); } else if (value === null) { @@ -434,11 +434,13 @@ export function serializeClosure( ) ); - // for each item in the array, serialize the value and push it into the array - // vArr.push(vItem1, vItem2) - emit( - exprStmt(callExpr(propAccessExpr(arr, "push"), value.map(serialize))) - ); + if (value.length > 0) { + // for each item in the array, serialize the value and push it into the array + // vArr.push(vItem1, vItem2) + emit( + exprStmt(callExpr(propAccessExpr(arr, "push"), value.map(serialize))) + ); + } return arr; } else if (util.types.isProxy(value)) { @@ -592,25 +594,62 @@ export function serializeClosure( // declare an empty var for this function const func = singleton(value, () => emitVarDecl("var", uniqueName())); - emit(exprStmt(assignExpr(func, toTS(ast) as ts.Expression))); + emit( + exprStmt( + assignExpr(func, toTS(ast, getIllegalNames(ast)) as ts.Expression) + ) + ); defineProperties(value, func); return func; } + function getIllegalNames(ast: FunctionlessNode): Set { + const names = new Set(); + forEachChild(ast, function visit(node) { + if (isParameterDecl(node) || isVariableDecl(node)) { + getNames(node.name).forEach((name) => names.add(name)); + } else if ( + (isFunctionDecl(node) || + isFunctionExpr(node) || + isClassDecl(node) || + isClassExpr(node)) && + node.name + ) { + if (typeof node.name === "string") { + names.add(node.name); + } else { + names.add(node.name.name); + } + } + forEachChild(node, visit); + }); + return names; + } + + function getNames(name: BindingName): string[] { + if (isIdentifier(name)) { + return [name.name]; + } else { + return name.bindings.flatMap((binding) => + isBindingElem(binding) ? getNames(binding.name) : [] + ); + } + } + function serializeBoundFunction(func: AnyFunction) { const components = unbind(func); if (components) { const boundThis = serialize(components.boundThis); const boundArgs = serialize(components.boundArgs); - const targetFuntion = serialize(components.targetFunction); + const targetFunction = serialize(components.targetFunction); return singleton(func, () => emitVarDecl( "const", uniqueName(), - callExpr(propAccessExpr(targetFuntion, "bind"), [ + callExpr(propAccessExpr(targetFunction, "bind"), [ boundThis, boundArgs, ]) @@ -644,10 +683,17 @@ export function serializeClosure( ): ts.Expression { // emit the class to the closure const classDecl = singleton(classVal, () => - emitVarDecl("var", uniqueName(classAST)) + emitVarDecl("var", uniqueName()) ); - emit(exprStmt(assignExpr(classDecl, toTS(classAST) as ts.Expression))); + emit( + exprStmt( + assignExpr( + classDecl, + toTS(classAST, getIllegalNames(classAST)) as ts.Expression + ) + ) + ); monkeyPatch(classDecl, classVal, classVal, ["prototype"]); monkeyPatch( @@ -867,6 +913,10 @@ export function serializeClosure( function serializeMethodAsFunction( method: MethodDecl ): ts.FunctionExpression { + // find all names used as identifiers in the AST + // we must ensure that no free variables collide with these names + const illegalNames = getIllegalNames(method); + return ts.factory.createFunctionExpression( method.isAsync ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] @@ -874,19 +924,21 @@ export function serializeClosure( method.isAsterisk ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) : undefined, - toTS(method.name) as ts.Identifier, + toTS(method.name, illegalNames) as ts.Identifier, undefined, - method.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), + method.parameters.map( + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration + ), undefined, - toTS(method.body) as ts.Block + toTS(method.body, illegalNames) as ts.Block ); } /** * Convert a {@link FunctionlessNode} into its TypeScript counter-part and set the Source Map Range. */ - function toTS(node: FunctionlessNode): ts.Node { - const tsNode = _toTS(node); + function toTS(node: FunctionlessNode, illegalNames: Set): ts.Node { + const tsNode = _toTS(node, illegalNames); ts.setSourceMapRange(tsNode, { pos: node.span[0], end: node.span[1], @@ -898,7 +950,7 @@ export function serializeClosure( /** * Convert a {@link FunctionlessNode} into its TypeScript counter-part. */ - function _toTS(node: FunctionlessNode): ts.Node { + function _toTS(node: FunctionlessNode, illegalNames: Set): ts.Node { if (isReferenceExpr(node)) { // get the set of ReferenceExpr instances for thisId let thisId = referenceInstanceIDs.get(node.thisId); @@ -911,7 +963,7 @@ export function serializeClosure( // a ts.Identifier that uniquely references the memory location of this variable in the serialized closure let varId: ts.Identifier | undefined = referenceIds.get(varKey); if (varId === undefined) { - const varName = uniqueName(node); + const varName = uniqueName(illegalNames); varId = ts.factory.createIdentifier(varName); referenceIds.set(varKey, varId); @@ -927,10 +979,12 @@ export function serializeClosure( ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] : undefined, undefined, - node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), + node.parameters.map( + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration + ), undefined, undefined, - toTS(node.body) as ts.Block + toTS(node.body, illegalNames) as ts.Block ); } else if (isFunctionDecl(node)) { if (node.parent === undefined) { @@ -946,10 +1000,10 @@ export function serializeClosure( node.name, undefined, node.parameters.map( - (param) => toTS(param) as ts.ParameterDeclaration + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration ), undefined, - toTS(node.body) as ts.Block + toTS(node.body, illegalNames) as ts.Block ); } else { // if it's not the root, then maintain the FunctionDeclaration SyntaxKind @@ -964,10 +1018,10 @@ export function serializeClosure( node.name, undefined, node.parameters.map( - (param) => toTS(param) as ts.ParameterDeclaration + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration ), undefined, - toTS(node.body) as ts.Block + toTS(node.body, illegalNames) as ts.Block ); } } else if (isFunctionExpr(node)) { @@ -980,9 +1034,11 @@ export function serializeClosure( : undefined, node.name, undefined, - node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), + node.parameters.map( + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration + ), undefined, - toTS(node.body) as ts.Block + toTS(node.body, illegalNames) as ts.Block ); } else if (isParameterDecl(node)) { return ts.factory.createParameterDeclaration( @@ -991,14 +1047,16 @@ export function serializeClosure( node.isRest ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) : undefined, - toTS(node.name) as ts.BindingName, + toTS(node.name, illegalNames) as ts.BindingName, undefined, undefined, - node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined + node.initializer + ? (toTS(node.initializer, illegalNames) as ts.Expression) + : undefined ); } else if (isBlockStmt(node)) { return ts.factory.createBlock( - node.statements.map((stmt) => toTS(stmt) as ts.Statement) + node.statements.map((stmt) => toTS(stmt, illegalNames) as ts.Statement) ); } else if (isThisExpr(node)) { return ts.factory.createThis(); @@ -1010,34 +1068,34 @@ export function serializeClosure( return ts.factory.createPrivateIdentifier(node.name); } else if (isPropAccessExpr(node)) { return ts.factory.createPropertyAccessChain( - toTS(node.expr) as ts.Expression, + toTS(node.expr, illegalNames) as ts.Expression, node.isOptional ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) : undefined, - toTS(node.name) as ts.MemberName + toTS(node.name, illegalNames) as ts.MemberName ); } else if (isElementAccessExpr(node)) { return ts.factory.createElementAccessChain( - toTS(node.expr) as ts.Expression, + toTS(node.expr, illegalNames) as ts.Expression, node.isOptional ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) : undefined, - toTS(node.element) as ts.Expression + toTS(node.element, illegalNames) as ts.Expression ); } else if (isCallExpr(node)) { return ts.factory.createCallExpression( - toTS(node.expr) as ts.Expression, + toTS(node.expr, illegalNames) as ts.Expression, undefined, - node.args.map((arg) => toTS(arg) as ts.Expression) + node.args.map((arg) => toTS(arg, illegalNames) as ts.Expression) ); } else if (isNewExpr(node)) { return ts.factory.createNewExpression( - toTS(node.expr) as ts.Expression, + toTS(node.expr, illegalNames) as ts.Expression, undefined, - node.args.map((arg) => toTS(arg) as ts.Expression) + node.args.map((arg) => toTS(arg, illegalNames) as ts.Expression) ); } else if (isArgument(node)) { - return toTS(node.expr); + return toTS(node.expr, illegalNames); } else if (isUndefinedLiteralExpr(node)) { return ts.factory.createIdentifier("undefined"); } else if (isNullLiteralExpr(node)) { @@ -1052,39 +1110,45 @@ export function serializeClosure( return stringExpr(node.value); } else if (isArrayLiteralExpr(node)) { return ts.factory.createArrayLiteralExpression( - node.items.map((item) => toTS(item) as ts.Expression), + node.items.map((item) => toTS(item, illegalNames) as ts.Expression), undefined ); } else if (isSpreadElementExpr(node)) { - return ts.factory.createSpreadElement(toTS(node.expr) as ts.Expression); + return ts.factory.createSpreadElement( + toTS(node.expr, illegalNames) as ts.Expression + ); } else if (isObjectLiteralExpr(node)) { return ts.factory.createObjectLiteralExpression( node.properties.map( - (prop) => toTS(prop) as ts.ObjectLiteralElementLike + (prop) => toTS(prop, illegalNames) as ts.ObjectLiteralElementLike ), undefined ); } else if (isPropAssignExpr(node)) { return ts.factory.createPropertyAssignment( - toTS(node.name) as ts.PropertyName, - toTS(node.expr) as ts.Expression + toTS(node.name, illegalNames) as ts.PropertyName, + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isSpreadAssignExpr(node)) { - return ts.factory.createSpreadElement(toTS(node.expr) as ts.Expression); + return ts.factory.createSpreadElement( + toTS(node.expr, illegalNames) as ts.Expression + ); } else if (isComputedPropertyNameExpr(node)) { return ts.factory.createComputedPropertyName( - toTS(node.expr) as ts.Expression + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isOmittedExpr(node)) { return ts.factory.createOmittedExpression(); } else if (isVariableStmt(node)) { return ts.factory.createVariableStatement( undefined, - toTS(node.declList) as ts.VariableDeclarationList + toTS(node.declList, illegalNames) as ts.VariableDeclarationList ); } else if (isVariableDeclList(node)) { return ts.factory.createVariableDeclarationList( - node.decls.map((decl) => toTS(decl) as ts.VariableDeclaration), + node.decls.map( + (decl) => toTS(decl, illegalNames) as ts.VariableDeclaration + ), node.varKind === VariableDeclKind.Const ? ts.NodeFlags.Const : node.varKind === VariableDeclKind.Let @@ -1093,10 +1157,12 @@ export function serializeClosure( ); } else if (isVariableDecl(node)) { return ts.factory.createVariableDeclaration( - toTS(node.name) as ts.BindingName, + toTS(node.name, illegalNames) as ts.BindingName, undefined, undefined, - node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined + node.initializer + ? (toTS(node.initializer, illegalNames) as ts.Expression) + : undefined ); } else if (isBindingElem(node)) { return ts.factory.createBindingElement( @@ -1104,18 +1170,24 @@ export function serializeClosure( ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) : undefined, node.propertyName - ? (toTS(node.propertyName) as ts.PropertyName) + ? (toTS(node.propertyName, illegalNames) as ts.PropertyName) : undefined, - toTS(node.name) as ts.BindingName, - node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined + toTS(node.name, illegalNames) as ts.BindingName, + node.initializer + ? (toTS(node.initializer, illegalNames) as ts.Expression) + : undefined ); } else if (isObjectBinding(node)) { return ts.factory.createObjectBindingPattern( - node.bindings.map((binding) => toTS(binding) as ts.BindingElement) + node.bindings.map( + (binding) => toTS(binding, illegalNames) as ts.BindingElement + ) ); } else if (isArrayBinding(node)) { return ts.factory.createArrayBindingPattern( - node.bindings.map((binding) => toTS(binding) as ts.BindingElement) + node.bindings.map( + (binding) => toTS(binding, illegalNames) as ts.BindingElement + ) ); } else if (isClassDecl(node) || isClassExpr(node)) { return ( @@ -1131,26 +1203,30 @@ export function serializeClosure( ? [ ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [ ts.factory.createExpressionWithTypeArguments( - toTS(node.heritage) as ts.Expression, + toTS(node.heritage, illegalNames) as ts.Expression, [] ), ]), ] : undefined, - node.members.map((member) => toTS(member) as ts.ClassElement) + node.members.map( + (member) => toTS(member, illegalNames) as ts.ClassElement + ) ); } else if (isClassStaticBlockDecl(node)) { return ts.factory.createClassStaticBlockDeclaration( undefined, undefined, - toTS(node.block) as ts.Block + toTS(node.block, illegalNames) as ts.Block ); } else if (isConstructorDecl(node)) { return ts.factory.createConstructorDeclaration( undefined, undefined, - node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), - toTS(node.body) as ts.Block + node.parameters.map( + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration + ), + toTS(node.body, illegalNames) as ts.Block ); } else if (isPropDecl(node)) { return ts.factory.createPropertyDeclaration( @@ -1158,10 +1234,12 @@ export function serializeClosure( node.isStatic ? [ts.factory.createModifier(ts.SyntaxKind.StaticKeyword)] : undefined, - toTS(node.name) as ts.PropertyName, + toTS(node.name, illegalNames) as ts.PropertyName, undefined, undefined, - node.initializer ? (toTS(node.initializer) as ts.Expression) : undefined + node.initializer + ? (toTS(node.initializer, illegalNames) as ts.Expression) + : undefined ); } else if (isMethodDecl(node)) { return ts.factory.createMethodDeclaration( @@ -1172,48 +1250,56 @@ export function serializeClosure( node.isAsterisk ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) : undefined, - toTS(node.name) as ts.PropertyName, + toTS(node.name, illegalNames) as ts.PropertyName, undefined, undefined, - node.parameters.map((param) => toTS(param) as ts.ParameterDeclaration), + node.parameters.map( + (param) => toTS(param, illegalNames) as ts.ParameterDeclaration + ), undefined, - toTS(node.body) as ts.Block + toTS(node.body, illegalNames) as ts.Block ); } else if (isGetAccessorDecl(node)) { return ts.factory.createGetAccessorDeclaration( undefined, undefined, - toTS(node.name) as ts.PropertyName, + toTS(node.name, illegalNames) as ts.PropertyName, [], undefined, - toTS(node.body) as ts.Block + toTS(node.body, illegalNames) as ts.Block ); } else if (isSetAccessorDecl(node)) { return ts.factory.createSetAccessorDeclaration( undefined, undefined, - toTS(node.name) as ts.PropertyName, - node.parameter ? [toTS(node.parameter) as ts.ParameterDeclaration] : [], - toTS(node.body) as ts.Block + toTS(node.name, illegalNames) as ts.PropertyName, + node.parameter + ? [toTS(node.parameter, illegalNames) as ts.ParameterDeclaration] + : [], + toTS(node.body, illegalNames) as ts.Block ); } else if (isExprStmt(node)) { return ts.factory.createExpressionStatement( - toTS(node.expr) as ts.Expression + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isAwaitExpr(node)) { - return ts.factory.createAwaitExpression(toTS(node.expr) as ts.Expression); + return ts.factory.createAwaitExpression( + toTS(node.expr, illegalNames) as ts.Expression + ); } else if (isYieldExpr(node)) { if (node.delegate) { return ts.factory.createYieldExpression( ts.factory.createToken(ts.SyntaxKind.AsteriskToken), node.expr - ? (toTS(node.expr) as ts.Expression) + ? (toTS(node.expr, illegalNames) as ts.Expression) : ts.factory.createIdentifier("undefined") ); } else { return ts.factory.createYieldExpression( undefined, - node.expr ? (toTS(node.expr) as ts.Expression) : undefined + node.expr + ? (toTS(node.expr, illegalNames) as ts.Expression) + : undefined ); } } else if (isUnaryExpr(node)) { @@ -1231,11 +1317,11 @@ export function serializeClosure( : node.op === "~" ? ts.SyntaxKind.TildeToken : assertNever(node.op), - toTS(node.expr) as ts.Expression + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isPostfixUnaryExpr(node)) { return ts.factory.createPostfixUnaryExpression( - toTS(node.expr) as ts.Expression, + toTS(node.expr, illegalNames) as ts.Expression, node.op === "++" ? ts.SyntaxKind.PlusPlusToken : node.op === "--" @@ -1244,50 +1330,56 @@ export function serializeClosure( ); } else if (isBinaryExpr(node)) { return ts.factory.createBinaryExpression( - toTS(node.left) as ts.Expression, + toTS(node.left, illegalNames) as ts.Expression, toTSOperator(node.op), - toTS(node.right) as ts.Expression + toTS(node.right, illegalNames) as ts.Expression ); } else if (isConditionExpr(node)) { return ts.factory.createConditionalExpression( - toTS(node.when) as ts.Expression, + toTS(node.when, illegalNames) as ts.Expression, undefined, - toTS(node.then) as ts.Expression, + toTS(node.then, illegalNames) as ts.Expression, undefined, - toTS(node._else) as ts.Expression + toTS(node._else, illegalNames) as ts.Expression ); } else if (isIfStmt(node)) { return ts.factory.createIfStatement( - toTS(node.when) as ts.Expression, - toTS(node.then) as ts.Statement, - node._else ? (toTS(node._else) as ts.Statement) : undefined + toTS(node.when, illegalNames) as ts.Expression, + toTS(node.then, illegalNames) as ts.Statement, + node._else + ? (toTS(node._else, illegalNames) as ts.Statement) + : undefined ); } else if (isSwitchStmt(node)) { return ts.factory.createSwitchStatement( - toTS(node.expr) as ts.Expression, + toTS(node.expr, illegalNames) as ts.Expression, ts.factory.createCaseBlock( - node.clauses.map((clause) => toTS(clause) as ts.CaseOrDefaultClause) + node.clauses.map( + (clause) => toTS(clause, illegalNames) as ts.CaseOrDefaultClause + ) ) ); } else if (isCaseClause(node)) { return ts.factory.createCaseClause( - toTS(node.expr) as ts.Expression, - node.statements.map((stmt) => toTS(stmt) as ts.Statement) + toTS(node.expr, illegalNames) as ts.Expression, + node.statements.map((stmt) => toTS(stmt, illegalNames) as ts.Statement) ); } else if (isDefaultClause(node)) { return ts.factory.createDefaultClause( - node.statements.map((stmt) => toTS(stmt) as ts.Statement) + node.statements.map((stmt) => toTS(stmt, illegalNames) as ts.Statement) ); } else if (isForStmt(node)) { return ts.factory.createForStatement( node.initializer - ? (toTS(node.initializer) as ts.ForInitializer) + ? (toTS(node.initializer, illegalNames) as ts.ForInitializer) + : undefined, + node.condition + ? (toTS(node.condition, illegalNames) as ts.Expression) : undefined, - node.condition ? (toTS(node.condition) as ts.Expression) : undefined, node.incrementor - ? (toTS(node.incrementor) as ts.Expression) + ? (toTS(node.incrementor, illegalNames) as ts.Expression) : undefined, - toTS(node.body) as ts.Statement + toTS(node.body, illegalNames) as ts.Statement ); } else if (isForOfStmt(node)) { return ts.factory.createForOfStatement( @@ -1296,82 +1388,90 @@ export function serializeClosure( : undefined, isVariableDecl(node.initializer) ? ts.factory.createVariableDeclarationList([ - toTS(node.initializer) as ts.VariableDeclaration, + toTS(node.initializer, illegalNames) as ts.VariableDeclaration, ]) - : (toTS(node.initializer) as ts.ForInitializer), - toTS(node.expr) as ts.Expression, - toTS(node.body) as ts.Statement + : (toTS(node.initializer, illegalNames) as ts.ForInitializer), + toTS(node.expr, illegalNames) as ts.Expression, + toTS(node.body, illegalNames) as ts.Statement ); } else if (isForInStmt(node)) { return ts.factory.createForInStatement( isVariableDecl(node.initializer) ? ts.factory.createVariableDeclarationList([ - toTS(node.initializer) as ts.VariableDeclaration, + toTS(node.initializer, illegalNames) as ts.VariableDeclaration, ]) - : (toTS(node.initializer) as ts.ForInitializer), - toTS(node.expr) as ts.Expression, - toTS(node.body) as ts.Statement + : (toTS(node.initializer, illegalNames) as ts.ForInitializer), + toTS(node.expr, illegalNames) as ts.Expression, + toTS(node.body, illegalNames) as ts.Statement ); } else if (isWhileStmt(node)) { return ts.factory.createWhileStatement( - toTS(node.condition) as ts.Expression, - toTS(node.block) as ts.Statement + toTS(node.condition, illegalNames) as ts.Expression, + toTS(node.block, illegalNames) as ts.Statement ); } else if (isDoStmt(node)) { return ts.factory.createDoStatement( - toTS(node.block) as ts.Statement, - toTS(node.condition) as ts.Expression + toTS(node.block, illegalNames) as ts.Statement, + toTS(node.condition, illegalNames) as ts.Expression ); } else if (isBreakStmt(node)) { return ts.factory.createBreakStatement( - node.label ? (toTS(node.label) as ts.Identifier) : undefined + node.label + ? (toTS(node.label, illegalNames) as ts.Identifier) + : undefined ); } else if (isContinueStmt(node)) { return ts.factory.createContinueStatement( - node.label ? (toTS(node.label) as ts.Identifier) : undefined + node.label + ? (toTS(node.label, illegalNames) as ts.Identifier) + : undefined ); } else if (isLabelledStmt(node)) { return ts.factory.createLabeledStatement( - toTS(node.label) as ts.Identifier, - toTS(node.stmt) as ts.Statement + toTS(node.label, illegalNames) as ts.Identifier, + toTS(node.stmt, illegalNames) as ts.Statement ); } else if (isTryStmt(node)) { return ts.factory.createTryStatement( - toTS(node.tryBlock) as ts.Block, + toTS(node.tryBlock, illegalNames) as ts.Block, node.catchClause - ? (toTS(node.catchClause) as ts.CatchClause) + ? (toTS(node.catchClause, illegalNames) as ts.CatchClause) : undefined, - node.finallyBlock ? (toTS(node.finallyBlock) as ts.Block) : undefined + node.finallyBlock + ? (toTS(node.finallyBlock, illegalNames) as ts.Block) + : undefined ); } else if (isCatchClause(node)) { return ts.factory.createCatchClause( node.variableDecl - ? (toTS(node.variableDecl) as ts.VariableDeclaration) + ? (toTS(node.variableDecl, illegalNames) as ts.VariableDeclaration) : undefined, - toTS(node.block) as ts.Block + toTS(node.block, illegalNames) as ts.Block ); } else if (isThrowStmt(node)) { - return ts.factory.createThrowStatement(toTS(node.expr) as ts.Expression); + return ts.factory.createThrowStatement( + toTS(node.expr, illegalNames) as ts.Expression + ); } else if (isDeleteExpr(node)) { return ts.factory.createDeleteExpression( - toTS(node.expr) as ts.Expression + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isParenthesizedExpr(node)) { return ts.factory.createParenthesizedExpression( - toTS(node.expr) as ts.Expression + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isRegexExpr(node)) { return ts.factory.createRegularExpressionLiteral(node.regex.toString()); } else if (isTemplateExpr(node)) { return ts.factory.createTemplateExpression( - toTS(node.head) as ts.TemplateHead, - node.spans.map((span) => toTS(span) as ts.TemplateSpan) + toTS(node.head, illegalNames) as ts.TemplateHead, + node.spans.map((span) => toTS(span, illegalNames) as ts.TemplateSpan) ); } else if (isTaggedTemplateExpr(node)) { return ts.factory.createTaggedTemplateExpression( - toTS(node.tag) as ts.Expression, + toTS(node.tag, illegalNames) as ts.Expression, undefined, - toTS(node.template) as ts.TemplateLiteral + toTS(node.template, illegalNames) as ts.TemplateLiteral ); } else if (isNoSubstitutionTemplateLiteral(node)) { return ts.factory.createNoSubstitutionTemplateLiteral(node.text); @@ -1379,8 +1479,8 @@ export function serializeClosure( return ts.factory.createTemplateHead(node.text); } else if (isTemplateSpan(node)) { return ts.factory.createTemplateSpan( - toTS(node.expr) as ts.Expression, - toTS(node.literal) as ts.TemplateMiddle | ts.TemplateTail + toTS(node.expr, illegalNames) as ts.Expression, + toTS(node.literal, illegalNames) as ts.TemplateMiddle | ts.TemplateTail ); } else if (isTemplateMiddle(node)) { return ts.factory.createTemplateMiddle(node.text); @@ -1388,24 +1488,26 @@ export function serializeClosure( return ts.factory.createTemplateTail(node.text); } else if (isTypeOfExpr(node)) { return ts.factory.createTypeOfExpression( - toTS(node.expr) as ts.Expression + toTS(node.expr, illegalNames) as ts.Expression ); } else if (isVoidExpr(node)) { - return ts.factory.createVoidExpression(toTS(node.expr) as ts.Expression); + return ts.factory.createVoidExpression( + toTS(node.expr, illegalNames) as ts.Expression + ); } else if (isDebuggerStmt(node)) { return ts.factory.createDebuggerStatement(); } else if (isEmptyStmt(node)) { return ts.factory.createEmptyStatement(); } else if (isReturnStmt(node)) { return ts.factory.createReturnStatement( - node.expr ? (toTS(node.expr) as ts.Expression) : undefined + node.expr ? (toTS(node.expr, illegalNames) as ts.Expression) : undefined ); } else if (isImportKeyword(node)) { return ts.factory.createToken(ts.SyntaxKind.ImportKeyword); } else if (isWithStmt(node)) { return ts.factory.createWithStatement( - toTS(node.expr) as ts.Expression, - toTS(node.stmt) as ts.Statement + toTS(node.expr, illegalNames) as ts.Expression, + toTS(node.stmt, illegalNames) as ts.Statement ); } else if (isErr(node)) { throw node.error; diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index a89af2f6..d606a745 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -90,6 +90,161 @@ exports.handler = v0; " `; +exports[`avoid collision with a locally scoped array binding 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + const [v1] = [2]; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a locally scoped array binding with nested object binding 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + const [{ v1 }] = [{ v1: 2 }]; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a locally scoped class 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + class v1 { + foo = 2; + } + return new v1().foo + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a locally scoped function 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + function v1() { + return 2; + } + return v1() + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a locally scoped object binding variable 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + const { v1 } = { v1: 2 }; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a locally scoped object binding variable with renamed property 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + const { v2: v1 } = { v2: 2 }; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a locally scoped variable 1`] = ` +"// +var v0; +var v2 = 1; +v0 = () => { + let free = v2; + const v1 = 2; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a parameter array binding 1`] = ` +"// +var v0; +var v2 = 1; +v0 = ([v1]) => { + let free = v2; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a parameter declaration 1`] = ` +"// +var v0; +var v2 = 1; +v0 = (v1) => { + let free = v2; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a parameter object binding 1`] = ` +"// +var v0; +var v2 = 1; +v0 = ({ v1 }) => { + let free = v2; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a parameter object binding renamed 1`] = ` +"// +var v0; +var v2 = 1; +v0 = ({ v2: v1 }) => { + let free = v2; + return v1 + free; +}; +exports.handler = v0; +" +`; + +exports[`avoid collision with a parameter with object binding nested in array binding 1`] = ` +"// +var v0; +var v2 = 1; +v0 = ([{ v1 }]) => { + let free = v2; + return v1 + free; +}; +exports.handler = v0; +" +`; + exports[`avoid name collision with a closure's lexical scope 1`] = ` "// var v0; @@ -56684,7 +56839,6 @@ var v0; var v2 = {}; v2.prop = \\"hello\\"; var v3 = []; -v3.push(); var v4; v4 = function foo() { return this.prop; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 98ead8a9..29efcb03 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -438,6 +438,156 @@ test("avoid name collision with a closure's lexical scope", async () => { expect(closure()).toEqual(1); }); +test("avoid collision with a locally scoped variable", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + const v1 = 2; + return v1 + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a locally scoped object binding variable", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + const { v1 } = { v1: 2 }; + return v1 + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a locally scoped object binding variable with renamed property", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + const { v2: v1 } = { v2: 2 }; + return v1 + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a locally scoped array binding", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + const [v1] = [2]; + return v1 + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a locally scoped array binding with nested object binding", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + const [{ v1 }] = [{ v1: 2 }]; + return v1 + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a locally scoped function", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + function v1() { + return 2; + } + return v1() + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a locally scoped class", async () => { + const one = 1; + const closure = await expectClosure(() => { + // capture the v0 free variable + let free = one; + // shadow the v0 free variable + class v1 { + foo = 2; + } + return new v1().foo + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a parameter declaration", async () => { + const one = 1; + const closure = await expectClosure((v1: number) => { + // capture the v0 free variable + let free = one; + return v1 + free; + }); + + expect(closure(2)).toEqual(3); +}); + +test("avoid collision with a parameter object binding", async () => { + const one = 1; + const closure = await expectClosure(({ v1 }: { v1: number }) => { + // capture the v0 free variable + let free = one; + return v1 + free; + }); + + expect(closure({ v1: 2 })).toEqual(3); +}); + +test("avoid collision with a parameter object binding renamed", async () => { + const one = 1; + const closure = await expectClosure(({ v2: v1 }: { v2: number }) => { + // capture the v0 free variable + let free = one; + return v1 + free; + }); + + expect(closure({ v2: 2 })).toEqual(3); +}); + +test("avoid collision with a parameter array binding", async () => { + const one = 1; + const closure = await expectClosure(([v1]: [number]) => { + // capture the v0 free variable + let free = one; + return v1 + free; + }); + + expect(closure([2])).toEqual(3); +}); + +test("avoid collision with a parameter with object binding nested in array binding", async () => { + const one = 1; + const closure = await expectClosure(([{ v1 }]: [{ v1: number }]) => { + // capture the v0 free variable + let free = one; + return v1 + free; + }); + + expect(closure([{ v1: 2 }])).toEqual(3); +}); + test("instantiating the AWS SDK", async () => { const closure = await expectClosure(() => { const client = new AWS.DynamoDB(); From 114d5f31d45ab9d0a3117f0b73b4811abf8839bd Mon Sep 17 00:00:00 2001 From: sam Date: Thu, 8 Sep 2022 22:20:43 -0700 Subject: [PATCH 077/107] feat: support source maps in serialized closures --- .projen/deps.json | 6 +- .projenrc.ts | 3 +- .vscode/launch.json | 1 + package.json | 9 +- src/expression.ts | 11 +- src/serialize-closure.ts | 1223 +- src/serialize-globals.ts | 11 +- src/serialize-util.ts | 137 +- src/span.ts | 8 +- src/statement.ts | 19 +- .../serialize-closure.test.ts.snap | 57615 +--------------- test/serialize-closure.test.ts | 26 +- yarn.lock | 42 +- 13 files changed, 1272 insertions(+), 57839 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index b828fe23..d8ab725a 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -227,7 +227,7 @@ }, { "name": "@functionless/ast-reflection", - "version": "^0.2.2", + "version": "^0.2.3", "type": "runtime" }, { @@ -258,6 +258,10 @@ { "name": "minimatch", "type": "runtime" + }, + { + "name": "source-map", + "type": "runtime" } ], "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." diff --git a/.projenrc.ts b/.projenrc.ts index c75caf9e..3915131c 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -85,10 +85,11 @@ const project = new CustomTypescriptProject({ "fs-extra", "minimatch", "@functionless/nodejs-closure-serializer", - "@functionless/ast-reflection@^0.2.2", + "@functionless/ast-reflection@^0.2.3", "@swc/cli", "@swc/core@1.2.245", "@swc/register", + "source-map", ], devDeps: [ `@aws-cdk/aws-appsync-alpha@${MIN_CDK_VERSION}-alpha.0`, diff --git a/.vscode/launch.json b/.vscode/launch.json index c2d0d2f4..1f573804 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -98,6 +98,7 @@ "disableOptimisticBPs": true, "program": "${workspaceFolder}/node_modules/.bin/jest", "cwd": "${workspaceFolder}", + "runtimeArgs": ["--enable-source-maps"], "args": [ "--runInBand", "--watchAll=false", diff --git a/package.json b/package.json index fb32c8d6..c4cfd6e5 100644 --- a/package.json +++ b/package.json @@ -86,19 +86,24 @@ "@aws-cdk/aws-appsync-alpha": "*" }, "dependencies": { - "@functionless/ast-reflection": "^0.2.2", + "@functionless/ast-reflection": "^0.2.3", "@functionless/nodejs-closure-serializer": "^0.1.2", "@swc/cli": "^0.1.57", "@swc/core": "1.2.245", "@swc/register": "^0.1.10", "@types/aws-lambda": "^8.10.102", "fs-extra": "^10.1.0", - "minimatch": "^5.1.0" + "minimatch": "^5.1.0", + "source-map": "^0.7.4" }, "main": "lib/index.js", "license": "Apache-2.0", "version": "0.0.0", "types": "lib/index.d.ts", + "resolutions": { + "@types/responselike": "1.0.0", + "got": "12.3.1" + }, "lint-staged": { "*.{tsx,jsx,ts,js,json,md,css}": [ "eslint --fix" diff --git a/src/expression.ts b/src/expression.ts index 581e74e7..245ca49e 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -331,9 +331,18 @@ export class CallExpr< */ span: Span, readonly expr: E, - readonly args: Argument[] + readonly args: Argument[], + /** + * Is this an optionally chained call? + * + * a?.() + */ + readonly isOptional: boolean | undefined ) { super(NodeKind.CallExpr, span, arguments); + this.ensure(expr, "expr", ["Expr"]); + this.ensureArrayOf(args, "args", [NodeKind.Argument]); + this.ensure(isOptional, "isOptional", ["boolean", "undefined"]); } } diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index ec3ec35c..788b823a 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,7 +1,7 @@ import fs from "fs"; import path from "path"; import util from "util"; -import esbuild from "esbuild"; +import { CodeWithSourceMap, SourceNode } from "source-map"; import ts from "typescript"; import { assertNever } from "./assert"; @@ -14,7 +14,7 @@ import { SetAccessorDecl, VariableDeclKind, } from "./declaration"; -import { BinaryOp, ClassExpr } from "./expression"; +import { ClassExpr } from "./expression"; import { isArgument, isArrayBinding, @@ -120,18 +120,22 @@ import { callExpr, setPropertyStmt, newExpr, + bigIntExpr, + regExpr, + SourceNodeOrString, + createSourceNode, + createSourceNodeWithoutSpan, } from "./serialize-util"; import { AnyClass, AnyFunction } from "./util"; import { forEachChild } from "./visit"; -export interface SerializeClosureProps extends esbuild.BuildOptions { +export interface SerializeClosureProps { /** - * Whether to favor require statements and es-build's tree-shaking over a pure - * traversal of the in-memory graph. + * Whether to use require statements when a value is detected to be imported from another module. * * @default true */ - useESBuild?: boolean; + requireModules?: boolean; /** * A function to prevent serialization of certain objects captured during the serialization. Primarily used to @@ -158,6 +162,20 @@ export interface SerializeClosureProps extends esbuild.BuildOptions { isFactoryFunction?: boolean; } +/** + * Serialize a {@link CodeWithSourceMap} to a JavaScript string with the source map + * as a base64-encoded comment at the end of the file. + * + * @param code the code and source map + * @returns a a JavaScript string with the source map as a base64-encoded comment at the end of the file. + */ +export function serializeCodeWithSourceMap(code: CodeWithSourceMap) { + const map = Buffer.from(JSON.stringify(code.map.toJSON())).toString( + "base64url" + ); + return `${code.code}\n//# sourceMappingURL=data:application/json;base64,${map}`; +} + /** * Serialize a closure to a bundle that can be remotely executed. * @param func @@ -167,7 +185,7 @@ export interface SerializeClosureProps extends esbuild.BuildOptions { export function serializeClosure( func: AnyFunction, options?: SerializeClosureProps -): string { +): CodeWithSourceMap { interface RequiredModule { path: string; exportName?: string; @@ -221,114 +239,56 @@ export function serializeClosure( return name; }; - const statements: ts.Statement[] = []; + const statements: (SourceNode | string)[] = []; // stores a map of value to a ts.Expression producing that value - const valueIds = new Map(); + const valueIds = new Map(); const singleton = (() => { - return function (value: any, produce: () => T): T { + return function (value: any, produce: () => string): string { // optimize for number of map get/set operations as this is hot code let expr = valueIds.get(value); if (expr === undefined) { expr = produce(); valueIds.set(value, expr); } - return expr as T; + return expr; }; })(); // stores a map of a `` to a ts.Identifier pointing to the unique location of that variable - const referenceIds = new Map(); + const referenceIds = new Map(); // map ReferenceExpr (syntactically) to the Closure Instance ID const referenceInstanceIDs = new Map(); - const f = serialize(func); - emit( - exprStmt( - assignExpr( - propAccessExpr(idExpr("exports"), "handler"), - options?.isFactoryFunction ? callExpr(f, []) : f - ) - ) - ); - - const printer = ts.createPrinter({ - newLine: ts.NewLineKind.LineFeed, - }); - - const sourceFile = ts.factory.createSourceFile( - statements, - ts.factory.createToken(ts.SyntaxKind.EndOfFileToken), - ts.NodeFlags.JavaScriptFile - ); + const handler = serialize(func); + emit(`exports.handler = ${handler}`); // looks like TS does not expose the source-map functionality // TODO: figure out how to generate a source map since we have all the information ... - const script = printer.printFile(sourceFile); - - if (options?.useESBuild === false) { - return script; - } else { - try { - const bundle = esbuild.buildSync({ - stdin: { - contents: script, - resolveDir: process.cwd(), - }, - bundle: true, - write: false, - metafile: true, - platform: "node", - target: "node14", - external: [ - "aws-sdk", - "aws-cdk-lib", - "esbuild", - ...(options?.external ?? []), - ], - }); + const script = new SourceNode(1, 0, "index.js", statements); - if (bundle.outputFiles[0] === undefined) { - throw new Error("No output files after bundling with ES Build"); - } - - return bundle.outputFiles[0].text; - } catch (err) { - throw err; - } - } + return script.toStringWithSourceMap(); - function emit(...stmts: ts.Statement[]) { - statements.push(...stmts); + function emit(...stmts: (string | SourceNode)[]) { + statements.push(...stmts.flatMap((stmt) => [stmt, "\n"])); } function emitVarDecl( varKind: "const" | "let" | "var", varName: string, - expr?: ts.Expression | undefined - ): ts.Identifier { + expr?: SourceNodeOrString | undefined + ): string { emit( - ts.factory.createVariableStatement( - undefined, - ts.factory.createVariableDeclarationList( - [ - ts.factory.createVariableDeclaration( - varName, - undefined, - undefined, - expr - ), - ], - varKind === "var" - ? ts.NodeFlags.None - : varKind === "const" - ? ts.NodeFlags.Const - : ts.NodeFlags.Let - ) + createSourceNodeWithoutSpan( + varKind, + " ", + varName, + ...(expr ? [" = ", expr] : []), + ";" ) ); - return ts.factory.createIdentifier(varName); + return varName; } function emitRequire(mod: string) { @@ -360,11 +320,11 @@ export function serializeClosure( } } - function serialize(value: any): ts.Expression { + function serialize(value: any): string { return valueIds.get(value) ?? serializeValue(value); } - function serializeValue(value: any): ts.Expression { + function serializeValue(value: any): string { if (value === undefined) { return undefinedExpr(); } else if (value === null) { @@ -376,7 +336,7 @@ export function serializeClosure( } else if (typeof value === "number") { return numberExpr(value); } else if (typeof value === "bigint") { - return ts.factory.createBigIntLiteral(value.toString(10)); + return bigIntExpr(value); } else if (typeof value === "symbol") { const symbol = serialize(Symbol); return singleton(value, () => { @@ -408,18 +368,10 @@ export function serializeClosure( } return stringExpr(value); } else if (value instanceof RegExp) { - return singleton(value, () => - ts.factory.createRegularExpressionLiteral( - `/${value.source}/${value.global ? "g" : ""}${ - value.ignoreCase ? "i" : "" - }${value.multiline ? "m" : ""}` - ) - ); + return singleton(value, () => regExpr(value)); } else if (value instanceof Date) { return singleton(value, () => - ts.factory.createNewExpression(idExpr("Date"), undefined, [ - numberExpr(value.getTime()), - ]) + newExpr(idExpr("Date"), [numberExpr(value.getTime())]) ); } else if (Array.isArray(value)) { // TODO: should we check the array's prototype? @@ -427,11 +379,7 @@ export function serializeClosure( // emit an empty array // var vArr = [] const arr = singleton(value, () => - emitVarDecl( - "const", - uniqueName(), - ts.factory.createArrayLiteralExpression([]) - ) + emitVarDecl("const", uniqueName(), `[]`) ); if (value.length > 0) { @@ -476,7 +424,7 @@ export function serializeClosure( const mod = requireCache.get(value); - if (mod && options?.useESBuild !== false) { + if (mod && options?.requireModules !== false) { return serializeModule(value, mod); } @@ -537,7 +485,7 @@ export function serializeClosure( // if this is a reference to an exported value from a module // and we're using esbuild, then emit a require - if (exportedValue && options?.useESBuild !== false) { + if (exportedValue && options?.requireModules !== false) { return serializeModule(value, exportedValue); } @@ -594,11 +542,7 @@ export function serializeClosure( // declare an empty var for this function const func = singleton(value, () => emitVarDecl("var", uniqueName())); - emit( - exprStmt( - assignExpr(func, toTS(ast, getIllegalNames(ast)) as ts.Expression) - ) - ); + emit(exprStmt(assignExpr(func, toSourceNode(ast, getIllegalNames(ast))))); defineProperties(value, func); @@ -680,7 +624,7 @@ export function serializeClosure( function serializeClass( classVal: AnyClass, classAST: ClassExpr | ClassDecl - ): ts.Expression { + ): string { // emit the class to the closure const classDecl = singleton(classVal, () => emitVarDecl("var", uniqueName()) @@ -688,10 +632,7 @@ export function serializeClosure( emit( exprStmt( - assignExpr( - classDecl, - toTS(classAST, getIllegalNames(classAST)) as ts.Expression - ) + assignExpr(classDecl, toSourceNode(classAST, getIllegalNames(classAST))) ) ); @@ -706,11 +647,7 @@ export function serializeClosure( return classDecl; } - function defineProperties( - value: unknown, - expr: ts.Expression, - ignore?: string[] - ) { + function defineProperties(value: unknown, expr: string, ignore?: string[]) { const ignoreSet = ignore ? new Set() : undefined; // for each of the object's own properties, emit a statement that assigns the value of that property // vObj.propName = vValue @@ -777,7 +714,7 @@ export function serializeClosure( * A ts.Expression pointing to the value within the closure that contains the * patched properties. */ - varName: ts.Expression, + varName: SourceNodeOrString, /** * The value being serialized. */ @@ -824,12 +761,12 @@ export function serializeClosure( type PatchedPropAccessor = | { - patched: ts.Expression; + patched: SourceNodeOrString; original?: never; } | { patched?: never; - original: ts.Expression; + original: SourceNodeOrString; }; /** @@ -910,47 +847,37 @@ export function serializeClosure( /** * Serialize a {@link MethodDecl} as a {@link ts.FunctionExpression} so that it can be individually referenced. */ - function serializeMethodAsFunction( - method: MethodDecl - ): ts.FunctionExpression { + function serializeMethodAsFunction(node: MethodDecl): string { // find all names used as identifiers in the AST // we must ensure that no free variables collide with these names - const illegalNames = getIllegalNames(method); - - return ts.factory.createFunctionExpression( - method.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - method.isAsterisk - ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) - : undefined, - toTS(method.name, illegalNames) as ts.Identifier, - undefined, - method.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - undefined, - toTS(method.body, illegalNames) as ts.Block + const illegalNames = getIllegalNames(node); + + const methodName = uniqueName(); + + emit( + createSourceNode(node, [ + `const ${methodName} = `, + ...(node.isAsync ? ["async"] : []), + "function ", + ...(node.isAsterisk ? ["*"] : []), + ...(node.name ? [toSourceNode(node.name, illegalNames)] : []), + "(", + ...node.parameters.flatMap((param) => [ + toSourceNode(param, illegalNames), + ",", + ]), + ")", + toSourceNode(node.body, illegalNames), + ]) ); - } - /** - * Convert a {@link FunctionlessNode} into its TypeScript counter-part and set the Source Map Range. - */ - function toTS(node: FunctionlessNode, illegalNames: Set): ts.Node { - const tsNode = _toTS(node, illegalNames); - ts.setSourceMapRange(tsNode, { - pos: node.span[0], - end: node.span[1], - source: undefined, // TODO: acquire this - }); - return tsNode; + return methodName; } - /** - * Convert a {@link FunctionlessNode} into its TypeScript counter-part. - */ - function _toTS(node: FunctionlessNode, illegalNames: Set): ts.Node { + function toSourceNode( + node: FunctionlessNode, + illegalNames: Set + ): SourceNode { if (isReferenceExpr(node)) { // get the set of ReferenceExpr instances for thisId let thisId = referenceInstanceIDs.get(node.thisId); @@ -961,554 +888,518 @@ export function serializeClosure( const varKey = `${node.getFileName()} ${node.name} ${node.id} ${thisId}`; // a ts.Identifier that uniquely references the memory location of this variable in the serialized closure - let varId: ts.Identifier | undefined = referenceIds.get(varKey); + let varId: string | undefined = referenceIds.get(varKey); if (varId === undefined) { - const varName = uniqueName(illegalNames); - varId = ts.factory.createIdentifier(varName); + varId = uniqueName(illegalNames); referenceIds.set(varKey, varId); const value = serialize(node.ref()); // emit a unique variable with the current value - emitVarDecl("var", varName, value); + emitVarDecl("var", varId, value); } - return varId; + return createSourceNode(node, varId); } else if (isArrowFunctionExpr(node)) { - return ts.factory.createArrowFunction( - node.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - undefined, - node.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - undefined, - undefined, - toTS(node.body, illegalNames) as ts.Block - ); - } else if (isFunctionDecl(node)) { - if (node.parent === undefined) { - // if this is the root of a tree, then we must declare it as a FunctionExpression - // so that it can be assigned to a variable in the serialized closure - return ts.factory.createFunctionExpression( - node.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - node.isAsterisk - ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) - : undefined, - node.name, - undefined, - node.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - undefined, - toTS(node.body, illegalNames) as ts.Block - ); - } else { - // if it's not the root, then maintain the FunctionDeclaration SyntaxKind - return ts.factory.createFunctionDeclaration( - undefined, - node.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - node.isAsterisk - ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) - : undefined, - node.name, - undefined, - node.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - undefined, - toTS(node.body, illegalNames) as ts.Block - ); - } - } else if (isFunctionExpr(node)) { - return ts.factory.createFunctionExpression( - node.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - node.isAsterisk - ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) - : undefined, - node.name, - undefined, - node.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - undefined, - toTS(node.body, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + ...(node.isAsync ? ["async"] : []), + "(", + ...node.parameters.flatMap((param) => [ + toSourceNode(param, illegalNames), + ",", + ]), + ") => ", + toSourceNode(node.body, illegalNames), + ]); + } else if (isFunctionDecl(node) || isFunctionExpr(node)) { + return createSourceNode(node, [ + ...(node.isAsync ? ["async"] : []), + "function ", + ...(node.isAsterisk ? ["*"] : []), + ...(node.name ? [node.name] : []), + "(", + ...node.parameters.flatMap((param) => [ + toSourceNode(param, illegalNames), + ",", + ]), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isParameterDecl(node)) { - return ts.factory.createParameterDeclaration( - undefined, - undefined, - node.isRest - ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) - : undefined, - toTS(node.name, illegalNames) as ts.BindingName, - undefined, - undefined, - node.initializer - ? (toTS(node.initializer, illegalNames) as ts.Expression) - : undefined - ); + return createSourceNode(node, [ + ...(node.isRest ? ["..."] : []), + toSourceNode(node.name, illegalNames), + ...(node.initializer + ? ["=", toSourceNode(node.initializer, illegalNames)] + : []), + ]); } else if (isBlockStmt(node)) { - return ts.factory.createBlock( - node.statements.map((stmt) => toTS(stmt, illegalNames) as ts.Statement) - ); + return createSourceNode(node, [ + "{\n", + ...node.statements.flatMap((stmt) => [ + toSourceNode(stmt, illegalNames), + "\n", + ]), + "}\n", + ]); } else if (isThisExpr(node)) { - return ts.factory.createThis(); + return createSourceNode(node, ["this"]); } else if (isSuperKeyword(node)) { - return ts.factory.createSuper(); + return createSourceNode(node, ["super"]); } else if (isIdentifier(node)) { - return ts.factory.createIdentifier(node.name); + return createSourceNode(node, [node.name]); } else if (isPrivateIdentifier(node)) { - return ts.factory.createPrivateIdentifier(node.name); + return createSourceNode(node, [node.name]); } else if (isPropAccessExpr(node)) { - return ts.factory.createPropertyAccessChain( - toTS(node.expr, illegalNames) as ts.Expression, - node.isOptional - ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) - : undefined, - toTS(node.name, illegalNames) as ts.MemberName - ); + return createSourceNode(node, [ + toSourceNode(node.expr, illegalNames), + ...(node.isOptional ? ["?."] : ["."]), + toSourceNode(node.name, illegalNames), + ]); } else if (isElementAccessExpr(node)) { - return ts.factory.createElementAccessChain( - toTS(node.expr, illegalNames) as ts.Expression, - node.isOptional - ? ts.factory.createToken(ts.SyntaxKind.QuestionDotToken) - : undefined, - toTS(node.element, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + toSourceNode(node.expr, illegalNames), + ...(node.isOptional ? ["?."] : []), + "[", + toSourceNode(node.element, illegalNames), + "]", + ]); } else if (isCallExpr(node)) { - return ts.factory.createCallExpression( - toTS(node.expr, illegalNames) as ts.Expression, - undefined, - node.args.map((arg) => toTS(arg, illegalNames) as ts.Expression) - ); + return createSourceNode(node, [ + toSourceNode(node.expr, illegalNames), + ...(node.isOptional ? ["?."] : []), + "(", + ...node.args.flatMap((arg) => [ + toSourceNode(arg.expr, illegalNames), + ",", + ]), + ")", + ]); } else if (isNewExpr(node)) { - return ts.factory.createNewExpression( - toTS(node.expr, illegalNames) as ts.Expression, - undefined, - node.args.map((arg) => toTS(arg, illegalNames) as ts.Expression) - ); + return createSourceNode(node, [ + "new ", + toSourceNode(node.expr, illegalNames), + "(", + ...node.args.flatMap((arg) => [toSourceNode(arg, illegalNames), ","]), + ")", + ]); } else if (isArgument(node)) { - return toTS(node.expr, illegalNames); + return toSourceNode(node.expr, illegalNames); } else if (isUndefinedLiteralExpr(node)) { - return ts.factory.createIdentifier("undefined"); + return createSourceNode(node, "undefined"); } else if (isNullLiteralExpr(node)) { - return ts.factory.createNull(); + return createSourceNode(node, "null"); } else if (isBooleanLiteralExpr(node)) { - return node.value ? ts.factory.createTrue() : ts.factory.createFalse(); + return createSourceNode(node, node.value ? "true" : "false"); } else if (isNumberLiteralExpr(node)) { - return ts.factory.createNumericLiteral(node.value); + return createSourceNode(node, node.value.toString(10)); } else if (isBigIntExpr(node)) { - return ts.factory.createBigIntLiteral(node.value.toString(10)); + return createSourceNode(node, `${node.value.toString(10)}n`); } else if (isStringLiteralExpr(node)) { - return stringExpr(node.value); + return createSourceNode(node, stringExpr(node.value)); } else if (isArrayLiteralExpr(node)) { - return ts.factory.createArrayLiteralExpression( - node.items.map((item) => toTS(item, illegalNames) as ts.Expression), - undefined - ); + return createSourceNode(node, [ + "[", + ...node.items.flatMap((item) => [ + toSourceNode(item, illegalNames), + ",", + ]), + "]", + ]); } else if (isSpreadElementExpr(node)) { - return ts.factory.createSpreadElement( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "...", + toSourceNode(node.expr, illegalNames), + ]); } else if (isObjectLiteralExpr(node)) { - return ts.factory.createObjectLiteralExpression( - node.properties.map( - (prop) => toTS(prop, illegalNames) as ts.ObjectLiteralElementLike - ), - undefined - ); + return createSourceNode(node, [ + "{", + ...node.properties.flatMap((prop) => [ + toSourceNode(prop, illegalNames), + ",", + ]), + "}", + ]); } else if (isPropAssignExpr(node)) { - return ts.factory.createPropertyAssignment( - toTS(node.name, illegalNames) as ts.PropertyName, - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + toSourceNode(node.name, illegalNames), + ":", + toSourceNode(node.expr, illegalNames), + ]); } else if (isSpreadAssignExpr(node)) { - return ts.factory.createSpreadElement( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "...", + toSourceNode(node.expr, illegalNames), + ]); } else if (isComputedPropertyNameExpr(node)) { - return ts.factory.createComputedPropertyName( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "[", + toSourceNode(node.expr, illegalNames), + "]", + ]); } else if (isOmittedExpr(node)) { - return ts.factory.createOmittedExpression(); + return createSourceNode(node, ""); } else if (isVariableStmt(node)) { - return ts.factory.createVariableStatement( - undefined, - toTS(node.declList, illegalNames) as ts.VariableDeclarationList - ); + return toSourceNode(node.declList, illegalNames); } else if (isVariableDeclList(node)) { - return ts.factory.createVariableDeclarationList( - node.decls.map( - (decl) => toTS(decl, illegalNames) as ts.VariableDeclaration - ), + return createSourceNode(node, [ node.varKind === VariableDeclKind.Const - ? ts.NodeFlags.Const + ? "const" : node.varKind === VariableDeclKind.Let - ? ts.NodeFlags.Let - : ts.NodeFlags.None - ); + ? "let" + : "var", + " ", + ...node.decls.flatMap((decl, i) => [ + toSourceNode(decl, illegalNames), + ...(i < node.decls.length - 1 ? [","] : []), + ]), + ]); } else if (isVariableDecl(node)) { - return ts.factory.createVariableDeclaration( - toTS(node.name, illegalNames) as ts.BindingName, - undefined, - undefined, - node.initializer - ? (toTS(node.initializer, illegalNames) as ts.Expression) - : undefined - ); + return createSourceNode(node, [ + toSourceNode(node.name, illegalNames), + ...(node.initializer + ? ["=", toSourceNode(node.initializer, illegalNames)] + : []), + ]); } else if (isBindingElem(node)) { - return ts.factory.createBindingElement( - node.rest - ? ts.factory.createToken(ts.SyntaxKind.DotDotDotToken) - : undefined, - node.propertyName - ? (toTS(node.propertyName, illegalNames) as ts.PropertyName) - : undefined, - toTS(node.name, illegalNames) as ts.BindingName, - node.initializer - ? (toTS(node.initializer, illegalNames) as ts.Expression) - : undefined - ); + return createSourceNode(node, [ + ...(node.rest ? ["..."] : []), + ...(node.propertyName + ? [toSourceNode(node.propertyName, illegalNames), ":"] + : []), + toSourceNode(node.name, illegalNames), + ...(node.initializer + ? ["=", toSourceNode(node.initializer, illegalNames)] + : []), + ]); } else if (isObjectBinding(node)) { - return ts.factory.createObjectBindingPattern( - node.bindings.map( - (binding) => toTS(binding, illegalNames) as ts.BindingElement - ) - ); + return createSourceNode(node, [ + "{", + ...node.bindings.flatMap((binding) => [ + toSourceNode(binding, illegalNames), + ",", + ]), + "}", + ]); } else if (isArrayBinding(node)) { - return ts.factory.createArrayBindingPattern( - node.bindings.map( - (binding) => toTS(binding, illegalNames) as ts.BindingElement - ) - ); + return createSourceNode(node, [ + "[", + ...node.bindings.flatMap((binding) => [ + toSourceNode(binding, illegalNames), + ",", + ]), + "]", + ]); } else if (isClassDecl(node) || isClassExpr(node)) { - return ( - isClassDecl(node) && node.parent !== undefined // if this is the root ClassDecl, it must be a ts.ClassExpression to be assigned to a variable - ? ts.factory.createClassDeclaration - : ts.factory.createClassExpression - )( - undefined, - undefined, - node.name?.name, - undefined, - node.heritage - ? [ - ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [ - ts.factory.createExpressionWithTypeArguments( - toTS(node.heritage, illegalNames) as ts.Expression, - [] - ), - ]), - ] - : undefined, - node.members.map( - (member) => toTS(member, illegalNames) as ts.ClassElement - ) - ); + return createSourceNode(node, [ + "class ", + ...(node.name ? [toSourceNode(node.name, illegalNames)] : []), + ...(node.heritage + ? [" extends ", toSourceNode(node.heritage, illegalNames)] + : []), + "{\n", + ...node.members.flatMap((member) => [ + toSourceNode(member, illegalNames), + "\n", + ]), + "}", + ]); } else if (isClassStaticBlockDecl(node)) { - return ts.factory.createClassStaticBlockDeclaration( - undefined, - undefined, - toTS(node.block, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + "static ", + toSourceNode(node.block, illegalNames), + ]); } else if (isConstructorDecl(node)) { - return ts.factory.createConstructorDeclaration( - undefined, - undefined, - node.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - toTS(node.body, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + "constructor(", + ...node.parameters.flatMap((param) => [ + toSourceNode(param, illegalNames), + ",", + ]), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isPropDecl(node)) { - return ts.factory.createPropertyDeclaration( - undefined, - node.isStatic - ? [ts.factory.createModifier(ts.SyntaxKind.StaticKeyword)] - : undefined, - toTS(node.name, illegalNames) as ts.PropertyName, - undefined, - undefined, - node.initializer - ? (toTS(node.initializer, illegalNames) as ts.Expression) - : undefined - ); + return createSourceNode(node, [ + ...(node.isStatic ? ["static "] : [""]), + toSourceNode(node.name, illegalNames), + ...(node.initializer + ? [" = ", toSourceNode(node.initializer, illegalNames)] + : []), + ]); } else if (isMethodDecl(node)) { - return ts.factory.createMethodDeclaration( - undefined, - node.isAsync - ? [ts.factory.createModifier(ts.SyntaxKind.AsyncKeyword)] - : undefined, - node.isAsterisk - ? ts.factory.createToken(ts.SyntaxKind.AsteriskToken) - : undefined, - toTS(node.name, illegalNames) as ts.PropertyName, - undefined, - undefined, - node.parameters.map( - (param) => toTS(param, illegalNames) as ts.ParameterDeclaration - ), - undefined, - toTS(node.body, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + ...(node.isAsync ? [" async "] : []), + toSourceNode(node.name, illegalNames), + ...(node.isAsterisk ? ["*"] : []), + "(", + ...node.parameters.flatMap((param) => [ + toSourceNode(param, illegalNames), + ",", + ]), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isGetAccessorDecl(node)) { - return ts.factory.createGetAccessorDeclaration( - undefined, - undefined, - toTS(node.name, illegalNames) as ts.PropertyName, - [], - undefined, - toTS(node.body, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + "get ", + toSourceNode(node.name, illegalNames), + "()", + toSourceNode(node.body, illegalNames), + ]); } else if (isSetAccessorDecl(node)) { - return ts.factory.createSetAccessorDeclaration( - undefined, - undefined, - toTS(node.name, illegalNames) as ts.PropertyName, - node.parameter - ? [toTS(node.parameter, illegalNames) as ts.ParameterDeclaration] - : [], - toTS(node.body, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + "set ", + toSourceNode(node.name, illegalNames), + "(", + ...(node.parameter ? [toSourceNode(node.parameter, illegalNames)] : []), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isExprStmt(node)) { - return ts.factory.createExpressionStatement( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + toSourceNode(node.expr, illegalNames), + ";", + ]); } else if (isAwaitExpr(node)) { - return ts.factory.createAwaitExpression( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "await ", + toSourceNode(node.expr, illegalNames), + ]); } else if (isYieldExpr(node)) { - if (node.delegate) { - return ts.factory.createYieldExpression( - ts.factory.createToken(ts.SyntaxKind.AsteriskToken), - node.expr - ? (toTS(node.expr, illegalNames) as ts.Expression) - : ts.factory.createIdentifier("undefined") - ); - } else { - return ts.factory.createYieldExpression( - undefined, - node.expr - ? (toTS(node.expr, illegalNames) as ts.Expression) - : undefined - ); - } + return createSourceNode(node, [ + "yield", + ...(node.delegate ? ["*"] : []), + " ", + toSourceNode(node.expr, illegalNames), + ]); } else if (isUnaryExpr(node)) { - return ts.factory.createPrefixUnaryExpression( - node.op === "!" - ? ts.SyntaxKind.ExclamationToken - : node.op === "+" - ? ts.SyntaxKind.PlusToken - : node.op === "++" - ? ts.SyntaxKind.PlusPlusToken - : node.op === "-" - ? ts.SyntaxKind.MinusToken - : node.op === "--" - ? ts.SyntaxKind.MinusMinusToken - : node.op === "~" - ? ts.SyntaxKind.TildeToken - : assertNever(node.op), - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + node.op, + toSourceNode(node.expr, illegalNames), + ]); } else if (isPostfixUnaryExpr(node)) { - return ts.factory.createPostfixUnaryExpression( - toTS(node.expr, illegalNames) as ts.Expression, - node.op === "++" - ? ts.SyntaxKind.PlusPlusToken - : node.op === "--" - ? ts.SyntaxKind.MinusMinusToken - : assertNever(node.op) - ); + return createSourceNode(node, [ + toSourceNode(node.expr, illegalNames), + node.op, + ]); } else if (isBinaryExpr(node)) { - return ts.factory.createBinaryExpression( - toTS(node.left, illegalNames) as ts.Expression, - toTSOperator(node.op), - toTS(node.right, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + toSourceNode(node.left, illegalNames), + node.op, + toSourceNode(node.right, illegalNames), + ]); } else if (isConditionExpr(node)) { - return ts.factory.createConditionalExpression( - toTS(node.when, illegalNames) as ts.Expression, - undefined, - toTS(node.then, illegalNames) as ts.Expression, - undefined, - toTS(node._else, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + toSourceNode(node.when, illegalNames), + " ? ", + toSourceNode(node.then, illegalNames), + " : ", + toSourceNode(node._else, illegalNames), + ]); } else if (isIfStmt(node)) { - return ts.factory.createIfStatement( - toTS(node.when, illegalNames) as ts.Expression, - toTS(node.then, illegalNames) as ts.Statement, - node._else - ? (toTS(node._else, illegalNames) as ts.Statement) - : undefined - ); + return createSourceNode(node, [ + "if (", + toSourceNode(node.when, illegalNames), + ")", + ...(isBlockStmt(node.then) + ? [toSourceNode(node.then, illegalNames)] + : [toSourceNode(node.then, illegalNames), ";"]), + + ...(node._else + ? ["else ", toSourceNode(node._else, illegalNames)] + : []), + ]); } else if (isSwitchStmt(node)) { - return ts.factory.createSwitchStatement( - toTS(node.expr, illegalNames) as ts.Expression, - ts.factory.createCaseBlock( - node.clauses.map( - (clause) => toTS(clause, illegalNames) as ts.CaseOrDefaultClause - ) - ) - ); + return createSourceNode(node, [ + "switch (", + toSourceNode(node.expr, illegalNames), + ") {\n", + ...node.clauses.flatMap((clause) => [ + toSourceNode(clause, illegalNames), + "\n", + ]), + "}", + ]); } else if (isCaseClause(node)) { - return ts.factory.createCaseClause( - toTS(node.expr, illegalNames) as ts.Expression, - node.statements.map((stmt) => toTS(stmt, illegalNames) as ts.Statement) - ); + return createSourceNode(node, [ + "case ", + toSourceNode(node.expr, illegalNames), + ":", + ...node.statements.flatMap((stmt) => [ + toSourceNode(stmt, illegalNames), + "\n", + ]), + ]); } else if (isDefaultClause(node)) { - return ts.factory.createDefaultClause( - node.statements.map((stmt) => toTS(stmt, illegalNames) as ts.Statement) - ); + return createSourceNode(node, [ + "default:\n", + ...node.statements.flatMap((stmt) => [ + toSourceNode(stmt, illegalNames), + "\n", + ]), + ]); } else if (isForStmt(node)) { - return ts.factory.createForStatement( - node.initializer - ? (toTS(node.initializer, illegalNames) as ts.ForInitializer) - : undefined, - node.condition - ? (toTS(node.condition, illegalNames) as ts.Expression) - : undefined, - node.incrementor - ? (toTS(node.incrementor, illegalNames) as ts.Expression) - : undefined, - toTS(node.body, illegalNames) as ts.Statement - ); + return createSourceNode(node, [ + "for (", + ...(node.initializer + ? [toSourceNode(node.initializer, illegalNames)] + : []), + ";", + ...(node.condition ? [toSourceNode(node.condition, illegalNames)] : []), + ";", + ...(node.incrementor + ? [toSourceNode(node.incrementor, illegalNames)] + : []), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isForOfStmt(node)) { - return ts.factory.createForOfStatement( - node.isAwait - ? ts.factory.createToken(ts.SyntaxKind.AwaitKeyword) - : undefined, - isVariableDecl(node.initializer) - ? ts.factory.createVariableDeclarationList([ - toTS(node.initializer, illegalNames) as ts.VariableDeclaration, - ]) - : (toTS(node.initializer, illegalNames) as ts.ForInitializer), - toTS(node.expr, illegalNames) as ts.Expression, - toTS(node.body, illegalNames) as ts.Statement - ); + return createSourceNode(node, [ + "for", + ...(node.isAwait ? [" await "] : []), + "(", + toSourceNode(node.initializer, illegalNames), + " of ", + toSourceNode(node.expr, illegalNames), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isForInStmt(node)) { - return ts.factory.createForInStatement( - isVariableDecl(node.initializer) - ? ts.factory.createVariableDeclarationList([ - toTS(node.initializer, illegalNames) as ts.VariableDeclaration, - ]) - : (toTS(node.initializer, illegalNames) as ts.ForInitializer), - toTS(node.expr, illegalNames) as ts.Expression, - toTS(node.body, illegalNames) as ts.Statement - ); + return createSourceNode(node, [ + "for", + toSourceNode(node.initializer, illegalNames), + " in ", + toSourceNode(node.expr, illegalNames), + ")", + toSourceNode(node.body, illegalNames), + ]); } else if (isWhileStmt(node)) { - return ts.factory.createWhileStatement( - toTS(node.condition, illegalNames) as ts.Expression, - toTS(node.block, illegalNames) as ts.Statement - ); + return createSourceNode(node, [ + "while (", + toSourceNode(node.condition, illegalNames), + ")", + toSourceNode(node.block, illegalNames), + ]); } else if (isDoStmt(node)) { - return ts.factory.createDoStatement( - toTS(node.block, illegalNames) as ts.Statement, - toTS(node.condition, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "do", + toSourceNode(node.block, illegalNames), + "while (", + toSourceNode(node.condition, illegalNames), + ");", + ]); } else if (isBreakStmt(node)) { - return ts.factory.createBreakStatement( - node.label - ? (toTS(node.label, illegalNames) as ts.Identifier) - : undefined - ); + return createSourceNode(node, "break;"); } else if (isContinueStmt(node)) { - return ts.factory.createContinueStatement( - node.label - ? (toTS(node.label, illegalNames) as ts.Identifier) - : undefined - ); + return createSourceNode(node, "continue;"); } else if (isLabelledStmt(node)) { - return ts.factory.createLabeledStatement( - toTS(node.label, illegalNames) as ts.Identifier, - toTS(node.stmt, illegalNames) as ts.Statement - ); + return createSourceNode(node, [ + `${node.label.name}:`, + toSourceNode(node.stmt, illegalNames), + ]); } else if (isTryStmt(node)) { - return ts.factory.createTryStatement( - toTS(node.tryBlock, illegalNames) as ts.Block, - node.catchClause - ? (toTS(node.catchClause, illegalNames) as ts.CatchClause) - : undefined, - node.finallyBlock - ? (toTS(node.finallyBlock, illegalNames) as ts.Block) - : undefined - ); + return createSourceNode(node, [ + `try `, + toSourceNode(node.tryBlock, illegalNames), + ...(node.catchClause + ? [toSourceNode(node.catchClause, illegalNames)] + : []), + ...(node.finallyBlock + ? ["finally ", toSourceNode(node.finallyBlock, illegalNames)] + : []), + ]); } else if (isCatchClause(node)) { - return ts.factory.createCatchClause( - node.variableDecl - ? (toTS(node.variableDecl, illegalNames) as ts.VariableDeclaration) - : undefined, - toTS(node.block, illegalNames) as ts.Block - ); + return createSourceNode(node, [ + `catch`, + ...(node.variableDecl + ? [toSourceNode(node.variableDecl, illegalNames)] + : []), + toSourceNode(node.block, illegalNames), + ]); } else if (isThrowStmt(node)) { - return ts.factory.createThrowStatement( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + `throw `, + toSourceNode(node.expr, illegalNames), + ";", + ]); } else if (isDeleteExpr(node)) { - return ts.factory.createDeleteExpression( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + `delete `, + toSourceNode(node.expr, illegalNames), + ";", + ]); } else if (isParenthesizedExpr(node)) { - return ts.factory.createParenthesizedExpression( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + `(`, + toSourceNode(node.expr, illegalNames), + ")", + ]); } else if (isRegexExpr(node)) { - return ts.factory.createRegularExpressionLiteral(node.regex.toString()); + return createSourceNode(node, [ + "/", + node.regex.source, + "/", + node.regex.flags, + ]); } else if (isTemplateExpr(node)) { - return ts.factory.createTemplateExpression( - toTS(node.head, illegalNames) as ts.TemplateHead, - node.spans.map((span) => toTS(span, illegalNames) as ts.TemplateSpan) - ); + return createSourceNode(node, [ + "`", + node.head.text, + ...node.spans.map((span) => toSourceNode(span, illegalNames)), + "`", + ]); } else if (isTaggedTemplateExpr(node)) { - return ts.factory.createTaggedTemplateExpression( - toTS(node.tag, illegalNames) as ts.Expression, - undefined, - toTS(node.template, illegalNames) as ts.TemplateLiteral - ); + return createSourceNode(node, [ + toSourceNode(node.tag, illegalNames), + toSourceNode(node.template, illegalNames), + ]); } else if (isNoSubstitutionTemplateLiteral(node)) { - return ts.factory.createNoSubstitutionTemplateLiteral(node.text); - } else if (isTemplateHead(node)) { - return ts.factory.createTemplateHead(node.text); + return createSourceNode(node, ["`", node.text, "`"]); + } else if ( + isTemplateHead(node) || + isTemplateMiddle(node) || + isTemplateTail(node) + ) { + return createSourceNode(node, node.text); } else if (isTemplateSpan(node)) { - return ts.factory.createTemplateSpan( - toTS(node.expr, illegalNames) as ts.Expression, - toTS(node.literal, illegalNames) as ts.TemplateMiddle | ts.TemplateTail - ); - } else if (isTemplateMiddle(node)) { - return ts.factory.createTemplateMiddle(node.text); - } else if (isTemplateTail(node)) { - return ts.factory.createTemplateTail(node.text); + return createSourceNode(node, [ + createSourceNode(node, [ + "${", + toSourceNode(node.expr, illegalNames), + "}", + ]), + toSourceNode(node.literal, illegalNames), + ]); } else if (isTypeOfExpr(node)) { - return ts.factory.createTypeOfExpression( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "typeof ", + toSourceNode(node.expr, illegalNames), + ]); } else if (isVoidExpr(node)) { - return ts.factory.createVoidExpression( - toTS(node.expr, illegalNames) as ts.Expression - ); + return createSourceNode(node, [ + "void ", + toSourceNode(node.expr, illegalNames), + ]); } else if (isDebuggerStmt(node)) { - return ts.factory.createDebuggerStatement(); + return createSourceNode(node, "debugger;"); } else if (isEmptyStmt(node)) { - return ts.factory.createEmptyStatement(); + return createSourceNode(node, ";"); } else if (isReturnStmt(node)) { - return ts.factory.createReturnStatement( - node.expr ? (toTS(node.expr, illegalNames) as ts.Expression) : undefined + return createSourceNode( + node, + node.expr + ? ["return ", toSourceNode(node.expr, illegalNames), ";"] + : "return;" ); } else if (isImportKeyword(node)) { - return ts.factory.createToken(ts.SyntaxKind.ImportKeyword); + return createSourceNode(node, "import"); } else if (isWithStmt(node)) { - return ts.factory.createWithStatement( - toTS(node.expr, illegalNames) as ts.Expression, - toTS(node.stmt, illegalNames) as ts.Statement - ); + return createSourceNode(node, [ + "with(", + toSourceNode(node.expr, illegalNames), + ")", + toSourceNode(node.stmt, illegalNames), + ]); } else if (isErr(node)) { throw node.error; } else { @@ -1516,91 +1407,3 @@ export function serializeClosure( } } } - -function toTSOperator(op: BinaryOp): ts.BinaryOperator { - return op === "!=" - ? ts.SyntaxKind.ExclamationEqualsToken - : op === "!==" - ? ts.SyntaxKind.ExclamationEqualsEqualsToken - : op === "==" - ? ts.SyntaxKind.EqualsEqualsToken - : op === "===" - ? ts.SyntaxKind.EqualsEqualsEqualsToken - : op === "%" - ? ts.SyntaxKind.PercentToken - : op === "%=" - ? ts.SyntaxKind.PercentEqualsToken - : op === "&&" - ? ts.SyntaxKind.AmpersandAmpersandToken - : op === "&" - ? ts.SyntaxKind.AmpersandAmpersandToken - : op === "*" - ? ts.SyntaxKind.AsteriskToken - : op === "**" - ? ts.SyntaxKind.AsteriskToken - : op === "&&=" - ? ts.SyntaxKind.AmpersandAmpersandEqualsToken - : op === "&=" - ? ts.SyntaxKind.AmpersandEqualsToken - : op === "**=" - ? ts.SyntaxKind.AsteriskAsteriskEqualsToken - : op === "*=" - ? ts.SyntaxKind.AsteriskEqualsToken - : op === "+" - ? ts.SyntaxKind.PlusToken - : op === "+=" - ? ts.SyntaxKind.PlusEqualsToken - : op === "," - ? ts.SyntaxKind.CommaToken - : op === "-" - ? ts.SyntaxKind.MinusToken - : op === "-=" - ? ts.SyntaxKind.MinusEqualsToken - : op === "/" - ? ts.SyntaxKind.SlashToken - : op === "/=" - ? ts.SyntaxKind.SlashEqualsToken - : op === "<" - ? ts.SyntaxKind.LessThanToken - : op === "<=" - ? ts.SyntaxKind.LessThanEqualsToken - : op === "<<" - ? ts.SyntaxKind.LessThanLessThanToken - : op === "<<=" - ? ts.SyntaxKind.LessThanLessThanEqualsToken - : op === "=" - ? ts.SyntaxKind.EqualsToken - : op === ">" - ? ts.SyntaxKind.GreaterThanToken - : op === ">>" - ? ts.SyntaxKind.GreaterThanGreaterThanToken - : op === ">>>" - ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanToken - : op === ">=" - ? ts.SyntaxKind.GreaterThanEqualsToken - : op === ">>=" - ? ts.SyntaxKind.GreaterThanGreaterThanEqualsToken - : op === ">>>=" - ? ts.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken - : op === "??" - ? ts.SyntaxKind.QuestionQuestionToken - : op === "??=" - ? ts.SyntaxKind.QuestionQuestionEqualsToken - : op === "^" - ? ts.SyntaxKind.CaretToken - : op === "^=" - ? ts.SyntaxKind.CaretEqualsToken - : op === "in" - ? ts.SyntaxKind.InKeyword - : op === "instanceof" - ? ts.SyntaxKind.InstanceOfKeyword - : op === "|" - ? ts.SyntaxKind.BarToken - : op === "||" - ? ts.SyntaxKind.BarBarToken - : op === "|=" - ? ts.SyntaxKind.BarEqualsToken - : op === "||=" - ? ts.SyntaxKind.BarBarEqualsToken - : assertNever(op); -} diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts index 24aaa0d5..3c64ee5b 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-globals.ts @@ -1,10 +1,9 @@ // sourced from the lib.*.d.ts files import module from "module"; -import ts from "typescript"; import globals from "./serialize-globals.json"; import { callExpr, idExpr, propAccessExpr, stringExpr } from "./serialize-util"; -export const Globals = new Map ts.Expression>(); +export const Globals = new Map string>(); for (const valueName of globals) { if (valueName in global) { @@ -20,7 +19,7 @@ for (const moduleName of module.builtinModules) { registerOwnProperties(module, requireModule, true); } -function registerValue(value: any, expr: ts.Expression) { +function registerValue(value: any, expr: string) { if (Globals.has(value)) { return; } @@ -35,11 +34,7 @@ function registerValue(value: any, expr: ts.Expression) { } } -function registerOwnProperties( - value: any, - expr: ts.Expression, - isModule: boolean -) { +function registerOwnProperties(value: any, expr: string, isModule: boolean) { if ( value && (typeof value === "object" || typeof value === "function") && diff --git a/src/serialize-util.ts b/src/serialize-util.ts index c7dfcf55..36629bee 100644 --- a/src/serialize-util.ts +++ b/src/serialize-util.ts @@ -1,91 +1,152 @@ -import ts from "typescript"; +import path from "path"; +import { SourceNode } from "source-map"; +import { FunctionlessNode } from "./node"; export function undefinedExpr() { - return ts.factory.createIdentifier("undefined"); + return "undefined"; } export function nullExpr() { - return ts.factory.createNull(); + return "null"; } export function trueExpr() { - return ts.factory.createTrue(); + return "true"; } export function falseExpr() { - return ts.factory.createFalse(); + return "false"; } export function idExpr(name: string) { - return ts.factory.createIdentifier(name); + return name; } export function stringExpr(name: string) { - return ts.factory.createStringLiteral(name); + // this seems dangerous - are we handling this right? + return `"${name.replaceAll('"', '\\"').replaceAll("\n", "\\n")}"`; } export function numberExpr(num: number) { - return ts.factory.createNumericLiteral(num); + return num.toString(10); } -export function objectExpr(obj: Record) { - return ts.factory.createObjectLiteralExpression( - Object.entries(obj).map(([name, val]) => - ts.factory.createPropertyAssignment(name, val) - ) +export function bigIntExpr(num: bigint) { + return `${num.toString(10)}n`; +} + +export function regExpr(regex: RegExp) { + return `/${regex.source}/${regex.flags}`; +} + +export function objectExpr(obj: Record) { + return createSourceNodeWithoutSpan( + "{", + ...Object.entries(obj).flatMap(([name, val]) => [ + createSourceNodeWithoutSpan(name, " : ", val), + ",", + ]), + "}" ); } const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; -export function propAccessExpr(expr: ts.Expression, name: string) { - if (name.match(propNameRegex)) { - return ts.factory.createPropertyAccessExpression(expr, name); +export type SourceNodeOrString = string | SourceNode; + +export function createSourceNodeWithoutSpan( + ...exprs: S +): S extends string ? string : SourceNodeOrString { + if (exprs.every((expr) => typeof expr === "string")) { + return exprs.join(""); } else { - return ts.factory.createElementAccessExpression(expr, stringExpr(name)); + return new SourceNode(null, null, "index.js", exprs) as any; } } -export function assignExpr(left: ts.Expression, right: ts.Expression) { - return ts.factory.createBinaryExpression( - left, - ts.factory.createToken(ts.SyntaxKind.EqualsToken), - right +export function createSourceNode( + node: FunctionlessNode, + chunks: string | SourceNodeOrString[] +) { + const absoluteFileName = node.getFileName(); + + return new SourceNode( + node.span[0], + node.span[1], + path.relative(process.cwd(), absoluteFileName), + chunks ); } -export function callExpr(expr: ts.Expression, args: ts.Expression[]) { - return ts.factory.createCallExpression(expr, undefined, args); +export function propAccessExpr( + expr: S, + name: string +): S extends string ? string : SourceNodeOrString { + if (name.match(propNameRegex)) { + return createSourceNodeWithoutSpan(expr, ".", name) as S extends string + ? string + : SourceNodeOrString; + } else { + return createSourceNodeWithoutSpan(expr, "[", name, "]") as S extends string + ? string + : SourceNodeOrString; + } } -export function newExpr(expr: ts.Expression, args: ts.Expression[]) { - return ts.factory.createNewExpression(expr, undefined, args); +export function assignExpr( + left: SourceNodeOrString | SourceNode, + right: SourceNodeOrString | SourceNode +) { + return createSourceNodeWithoutSpan(left, " = ", right); +} + +export function callExpr< + E extends SourceNodeOrString, + A extends SourceNodeOrString +>(expr: E, args: A[]): E | A extends string ? string : SourceNodeOrString { + return createSourceNodeWithoutSpan( + expr, + "(", + ...args.flatMap((arg) => [arg, ","]), + ")" + ) as E | A extends string ? string : SourceNodeOrString; +} + +export function newExpr(expr: string, args: string[]): string; +export function newExpr(expr: SourceNodeOrString, args: SourceNodeOrString[]) { + return createSourceNodeWithoutSpan( + "new ", + expr, + "(", + ...args.flatMap((arg) => [arg, ","]), + ")" + ); } -export function exprStmt(expr: ts.Expression): ts.Statement { - return ts.factory.createExpressionStatement(expr); +export function exprStmt(expr: SourceNodeOrString | SourceNode) { + return createSourceNodeWithoutSpan(expr, ";"); } export function setPropertyStmt( - on: ts.Expression, + on: SourceNodeOrString, key: string, - value: ts.Expression + value: SourceNodeOrString ) { - return exprStmt(setPropertyExpr(on, key, value)); + return createSourceNodeWithoutSpan(setPropertyExpr(on, key, value), ";"); } export function setPropertyExpr( - on: ts.Expression, + on: SourceNodeOrString, key: string, - value: ts.Expression + value: SourceNodeOrString ) { return assignExpr(propAccessExpr(on, key), value); } export function definePropertyExpr( - on: ts.Expression, - name: ts.Expression, - value: ts.Expression + on: SourceNodeOrString, + name: SourceNodeOrString, + value: SourceNodeOrString ) { return callExpr(propAccessExpr(idExpr("Object"), "defineProperty"), [ on, @@ -95,8 +156,8 @@ export function definePropertyExpr( } export function getOwnPropertyDescriptorExpr( - obj: ts.Expression, - key: ts.Expression + obj: SourceNodeOrString, + key: SourceNodeOrString ) { return callExpr( propAccessExpr(idExpr("Object"), "getOwnPropertyDescriptor"), diff --git a/src/span.ts b/src/span.ts index 215f2b7b..cd1ca9fc 100644 --- a/src/span.ts +++ b/src/span.ts @@ -4,13 +4,13 @@ */ export type Span = [ /** - * Character position where this span starts. + * 1-based line number of the span. */ - start: number, + line: number, /** - * Character position where this span ends. + * 0-based column of the span. */ - end: number + col: number ]; /** diff --git a/src/statement.ts b/src/statement.ts index cdf8e6f7..c9e99e6d 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -175,9 +175,9 @@ export class ForOfStmt extends BaseStmt { * Range of text in the source file where this Node resides. */ span: Span, - readonly initializer: VariableDecl | Identifier, + readonly initializer: VariableDeclList | Identifier, readonly expr: Expr, - readonly body: BlockStmt, + readonly body: Stmt, /** * Whether this is a for-await-of statement * ```ts @@ -188,10 +188,11 @@ export class ForOfStmt extends BaseStmt { ) { super(NodeKind.ForOfStmt, span, arguments); this.ensure(initializer, "initializer", [ - NodeKind.VariableDecl, + NodeKind.VariableDeclList, NodeKind.Identifier, ]); this.ensure(expr, "expr", ["Expr"]); + this.ensure(body, "body", ["Stmt"]); this.ensure(isAwait, "isAwait", ["boolean"]); } } @@ -216,13 +217,13 @@ export class ForStmt extends BaseStmt { * Range of text in the source file where this Node resides. */ span: Span, - readonly body: BlockStmt, + readonly body: Stmt, readonly initializer?: VariableDeclList | Expr, readonly condition?: Expr, readonly incrementor?: Expr ) { super(NodeKind.ForStmt, span, arguments); - this.ensure(body, "body", [NodeKind.BlockStmt]); + this.ensure(body, "body", ["Stmt"]); this.ensure(initializer, "initializer", [ "undefined", "Expr", @@ -326,11 +327,11 @@ export class WhileStmt extends BaseStmt { */ span: Span, readonly condition: Expr, - readonly block: BlockStmt + readonly block: Stmt ) { super(NodeKind.WhileStmt, span, arguments); this.ensure(condition, "condition", ["Expr"]); - this.ensure(block, "block", [NodeKind.BlockStmt]); + this.ensure(block, "block", ["Stmt"]); } } @@ -340,11 +341,11 @@ export class DoStmt extends BaseStmt { * Range of text in the source file where this Node resides. */ span: Span, - readonly block: BlockStmt, + readonly block: Stmt, readonly condition: Expr ) { super(NodeKind.DoStmt, span, arguments); - this.ensure(block, "block", [NodeKind.BlockStmt]); + this.ensure(block, "block", ["Stmt"]); this.ensure(condition, "condition", ["Expr"]); } } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index d606a745..63275424 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -1,57242 +1,783 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`all observers of a free variable share the same reference 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = function up() { - v3 += 2; -}; -var v4 = {}; +v2 = function up(){ +v3+=2; +} +; +const v4 = {}; v4.constructor = v2; v2.prototype = v4; var v1 = v2; var v6; -v6 = function down() { - v3 -= 1; -}; -var v7 = {}; +v6 = function down(){ +v3-=1; +} +; +const v7 = {}; v7.constructor = v6; v6.prototype = v7; var v5 = v6; v0 = () => { - v1(); - v5(); - return v3; -}; -exports.handler = v0; -" +v1(); +v5(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzBrRDBtRCxhQWNBO0FBTVYsRUFBSyxFQUtBLENBTEMsQ0FOSTtBQUFBO0NEeGxEMW1EO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtLQzZtRCtvRCxlQWdCQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRDduRC9vRDtBQUFBO0FBQUE7QUFBQTtBQUFBO0tDc3JEc3VELE1BTUE7QUFNakMsRUFBRSxFQUFDLENBTjhCO0FBZ0JyQixFQUFFLEVBQUMsQ0FoQmtCO0FBNEJKLE9BT0QsRUFQQyxDQTVCSTtBQUFBO0NENXJEdHVEO0FBQUEifQ" `; exports[`all observers of a free variable share the same reference even when two instances 1`] = ` -"// -var v0; -var v2 = []; +"var v0; +const v2 = []; var v3; var v5; var v6 = 0; -v5 = function up() { - v6 += 2; -}; -var v7 = {}; +v5 = function up(){ +v6+=2; +} +; +const v7 = {}; v7.constructor = v5; v5.prototype = v7; var v4 = v5; var v9; -v9 = function down() { - v6 -= 1; -}; -var v10 = {}; +v9 = function down(){ +v6-=1; +} +; +const v10 = {}; v10.constructor = v9; v9.prototype = v10; var v8 = v9; v3 = () => { - v4(); - v8(); - return v6; -}; +v4(); +v8(); +return v6; +} +; var v11; var v13; var v14 = 0; -v13 = function up2() { - v14 += 2; -}; -var v15 = {}; +v13 = function up(){ +v14+=2; +} +; +const v15 = {}; v15.constructor = v13; v13.prototype = v15; var v12 = v13; var v17; -v17 = function down2() { - v14 -= 1; -}; -var v18 = {}; -v18.constructor = v17; -v17.prototype = v18; -var v16 = v17; -v11 = () => { - v12(); - v16(); - return v14; -}; -v2.push(v3, v11); -var v1 = v2; -v0 = () => { - return v1.map((closure) => { - return closure(); - }); -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped array binding 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - const [v1] = [2]; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped array binding with nested object binding 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - const [{ v1 }] = [{ v1: 2 }]; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped class 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - class v1 { - foo = 2; - } - return new v1().foo + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped function 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - function v1() { - return 2; - } - return v1() + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped object binding variable 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - const { v1 } = { v1: 2 }; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped object binding variable with renamed property 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - const { v2: v1 } = { v2: 2 }; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a locally scoped variable 1`] = ` -"// -var v0; -var v2 = 1; -v0 = () => { - let free = v2; - const v1 = 2; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a parameter array binding 1`] = ` -"// -var v0; -var v2 = 1; -v0 = ([v1]) => { - let free = v2; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a parameter declaration 1`] = ` -"// -var v0; -var v2 = 1; -v0 = (v1) => { - let free = v2; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a parameter object binding 1`] = ` -"// -var v0; -var v2 = 1; -v0 = ({ v1 }) => { - let free = v2; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a parameter object binding renamed 1`] = ` -"// -var v0; -var v2 = 1; -v0 = ({ v2: v1 }) => { - let free = v2; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid collision with a parameter with object binding nested in array binding 1`] = ` -"// -var v0; -var v2 = 1; -v0 = ([{ v1 }]) => { - let free = v2; - return v1 + free; -}; -exports.handler = v0; -" -`; - -exports[`avoid name collision with a closure's lexical scope 1`] = ` -"// -var v0; -var v3; -var v5; -var v6 = 0; -v5 = class v1 { - foo() { - return v6 += 1; - } -}; -var v4 = v5; -v3 = class v2 extends v4 { -}; -var v12 = v3; -v0 = () => { - const v32 = new v12(); - return v32.foo(); -}; -exports.handler = v0; -" -`; - -exports[`instantiating the AWS SDK 1`] = ` -"// -var v0; -var v2 = require(\\"aws-sdk\\"); -var v1 = v2; -v0 = () => { - const client = new v1.DynamoDB(); - return client.config.endpoint; -}; -exports.handler = v0; -" -`; - -exports[`instantiating the AWS SDK v3 1`] = ` -"var __getOwnPropNames = Object.getOwnPropertyNames; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; - -// node_modules/tslib/tslib.js -var require_tslib = __commonJS({ - \\"node_modules/tslib/tslib.js\\"(exports2, module2) { - var __extends; - var __assign; - var __rest; - var __decorate; - var __param; - var __metadata; - var __awaiter; - var __generator; - var __exportStar; - var __values; - var __read; - var __spread; - var __spreadArrays; - var __spreadArray; - var __await; - var __asyncGenerator; - var __asyncDelegator; - var __asyncValues; - var __makeTemplateObject; - var __importStar; - var __importDefault; - var __classPrivateFieldGet; - var __classPrivateFieldSet; - var __classPrivateFieldIn; - var __createBinding; - (function(factory) { - var root = typeof global === \\"object\\" ? global : typeof self === \\"object\\" ? self : typeof this === \\"object\\" ? this : {}; - if (typeof define === \\"function\\" && define.amd) { - define(\\"tslib\\", [\\"exports\\"], function(exports3) { - factory(createExporter(root, createExporter(exports3))); - }); - } else if (typeof module2 === \\"object\\" && typeof module2.exports === \\"object\\") { - factory(createExporter(root, createExporter(module2.exports))); - } else { - factory(createExporter(root)); - } - function createExporter(exports3, previous) { - if (exports3 !== root) { - if (typeof Object.create === \\"function\\") { - Object.defineProperty(exports3, \\"__esModule\\", { value: true }); - } else { - exports3.__esModule = true; - } - } - return function(id, v) { - return exports3[id] = previous ? previous(id, v) : v; - }; - } - })(function(exporter) { - var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { - d.__proto__ = b; - } || function(d, b) { - for (var p in b) - if (Object.prototype.hasOwnProperty.call(b, p)) - d[p] = b[p]; - }; - __extends = function(d, b) { - if (typeof b !== \\"function\\" && b !== null) - throw new TypeError(\\"Class extends value \\" + String(b) + \\" is not a constructor or null\\"); - extendStatics(d, b); - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - __rest = function(s, e) { - var t = {}; - for (var p in s) - if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === \\"function\\") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - __decorate = function(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === \\"object\\" && typeof Reflect.decorate === \\"function\\") - r = Reflect.decorate(decorators, target, key, desc); - else - for (var i = decorators.length - 1; i >= 0; i--) - if (d = decorators[i]) - r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - __param = function(paramIndex, decorator) { - return function(target, key) { - decorator(target, key, paramIndex); - }; - }; - __metadata = function(metadataKey, metadataValue) { - if (typeof Reflect === \\"object\\" && typeof Reflect.metadata === \\"function\\") - return Reflect.metadata(metadataKey, metadataValue); - }; - __awaiter = function(thisArg, _arguments, P, generator) { - function adopt(value) { - return value instanceof P ? value : new P(function(resolve) { - resolve(value); - }); - } - return new (P || (P = Promise))(function(resolve, reject) { - function fulfilled(value) { - try { - step(generator.next(value)); - } catch (e) { - reject(e); - } - } - function rejected(value) { - try { - step(generator[\\"throw\\"](value)); - } catch (e) { - reject(e); - } - } - function step(result) { - result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); - } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - __generator = function(thisArg, body) { - var _ = { label: 0, sent: function() { - if (t[0] & 1) - throw t[1]; - return t[1]; - }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), \\"throw\\": verb(1), \\"return\\": verb(2) }, typeof Symbol === \\"function\\" && (g[Symbol.iterator] = function() { - return this; - }), g; - function verb(n) { - return function(v) { - return step([n, v]); - }; - } - function step(op) { - if (f) - throw new TypeError(\\"Generator is already executing.\\"); - while (_) - try { - if (f = 1, y && (t = op[0] & 2 ? y[\\"return\\"] : op[0] ? y[\\"throw\\"] || ((t = y[\\"return\\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) - return t; - if (y = 0, t) - op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: - case 1: - t = op; - break; - case 4: - _.label++; - return { value: op[1], done: false }; - case 5: - _.label++; - y = op[1]; - op = [0]; - continue; - case 7: - op = _.ops.pop(); - _.trys.pop(); - continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { - _ = 0; - continue; - } - if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { - _.label = op[1]; - break; - } - if (op[0] === 6 && _.label < t[1]) { - _.label = t[1]; - t = op; - break; - } - if (t && _.label < t[2]) { - _.label = t[2]; - _.ops.push(op); - break; - } - if (t[2]) - _.ops.pop(); - _.trys.pop(); - continue; - } - op = body.call(thisArg, _); - } catch (e) { - op = [6, e]; - y = 0; - } finally { - f = t = 0; - } - if (op[0] & 5) - throw op[1]; - return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - __exportStar = function(m, o) { - for (var p in m) - if (p !== \\"default\\" && !Object.prototype.hasOwnProperty.call(o, p)) - __createBinding(o, m, p); - }; - __createBinding = Object.create ? function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || (\\"get\\" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { - return m[k]; - } }; - } - Object.defineProperty(o, k2, desc); - } : function(o, m, k, k2) { - if (k2 === void 0) - k2 = k; - o[k2] = m[k]; - }; - __values = function(o) { - var s = typeof Symbol === \\"function\\" && Symbol.iterator, m = s && o[s], i = 0; - if (m) - return m.call(o); - if (o && typeof o.length === \\"number\\") - return { - next: function() { - if (o && i >= o.length) - o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? \\"Object is not iterable.\\" : \\"Symbol.iterator is not defined.\\"); - }; - __read = function(o, n) { - var m = typeof Symbol === \\"function\\" && o[Symbol.iterator]; - if (!m) - return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) - ar.push(r.value); - } catch (error) { - e = { error }; - } finally { - try { - if (r && !r.done && (m = i[\\"return\\"])) - m.call(i); - } finally { - if (e) - throw e.error; - } - } - return ar; - }; - __spread = function() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - __spreadArrays = function() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) - s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - __spreadArray = function(to, from, pack) { - if (pack || arguments.length === 2) - for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) - ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - }; - __await = function(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - __asyncGenerator = function(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) - throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { - return this; - }, i; - function verb(n) { - if (g[n]) - i[n] = function(v) { - return new Promise(function(a, b) { - q.push([n, v, a, b]) > 1 || resume(n, v); - }); - }; - } - function resume(n, v) { - try { - step(g[n](v)); - } catch (e) { - settle(q[0][3], e); - } - } - function step(r) { - r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); - } - function fulfill(value) { - resume(\\"next\\", value); - } - function reject(value) { - resume(\\"throw\\", value); - } - function settle(f, v) { - if (f(v), q.shift(), q.length) - resume(q[0][0], q[0][1]); - } - }; - __asyncDelegator = function(o) { - var i, p; - return i = {}, verb(\\"next\\"), verb(\\"throw\\", function(e) { - throw e; - }), verb(\\"return\\"), i[Symbol.iterator] = function() { - return this; - }, i; - function verb(n, f) { - i[n] = o[n] ? function(v) { - return (p = !p) ? { value: __await(o[n](v)), done: n === \\"return\\" } : f ? f(v) : v; - } : f; - } - }; - __asyncValues = function(o) { - if (!Symbol.asyncIterator) - throw new TypeError(\\"Symbol.asyncIterator is not defined.\\"); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === \\"function\\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\\"next\\"), verb(\\"throw\\"), verb(\\"return\\"), i[Symbol.asyncIterator] = function() { - return this; - }, i); - function verb(n) { - i[n] = o[n] && function(v) { - return new Promise(function(resolve, reject) { - v = o[n](v), settle(resolve, reject, v.done, v.value); - }); - }; - } - function settle(resolve, reject, d, v) { - Promise.resolve(v).then(function(v4) { - resolve({ value: v4, done: d }); - }, reject); - } - }; - __makeTemplateObject = function(cooked, raw) { - if (Object.defineProperty) { - Object.defineProperty(cooked, \\"raw\\", { value: raw }); - } else { - cooked.raw = raw; - } - return cooked; - }; - var __setModuleDefault = Object.create ? function(o, v) { - Object.defineProperty(o, \\"default\\", { enumerable: true, value: v }); - } : function(o, v) { - o[\\"default\\"] = v; - }; - __importStar = function(mod) { - if (mod && mod.__esModule) - return mod; - var result = {}; - if (mod != null) { - for (var k in mod) - if (k !== \\"default\\" && Object.prototype.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k); - } - __setModuleDefault(result, mod); - return result; - }; - __importDefault = function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - __classPrivateFieldGet = function(receiver, state, kind, f) { - if (kind === \\"a\\" && !f) - throw new TypeError(\\"Private accessor was defined without a getter\\"); - if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError(\\"Cannot read private member from an object whose class did not declare it\\"); - return kind === \\"m\\" ? f : kind === \\"a\\" ? f.call(receiver) : f ? f.value : state.get(receiver); - }; - __classPrivateFieldSet = function(receiver, state, value, kind, f) { - if (kind === \\"m\\") - throw new TypeError(\\"Private method is not writable\\"); - if (kind === \\"a\\" && !f) - throw new TypeError(\\"Private accessor was defined without a setter\\"); - if (typeof state === \\"function\\" ? receiver !== state || !f : !state.has(receiver)) - throw new TypeError(\\"Cannot write private member to an object whose class did not declare it\\"); - return kind === \\"a\\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; - }; - __classPrivateFieldIn = function(state, receiver) { - if (receiver === null || typeof receiver !== \\"object\\" && typeof receiver !== \\"function\\") - throw new TypeError(\\"Cannot use 'in' operator on non-object\\"); - return typeof state === \\"function\\" ? receiver === state : state.has(receiver); - }; - exporter(\\"__extends\\", __extends); - exporter(\\"__assign\\", __assign); - exporter(\\"__rest\\", __rest); - exporter(\\"__decorate\\", __decorate); - exporter(\\"__param\\", __param); - exporter(\\"__metadata\\", __metadata); - exporter(\\"__awaiter\\", __awaiter); - exporter(\\"__generator\\", __generator); - exporter(\\"__exportStar\\", __exportStar); - exporter(\\"__createBinding\\", __createBinding); - exporter(\\"__values\\", __values); - exporter(\\"__read\\", __read); - exporter(\\"__spread\\", __spread); - exporter(\\"__spreadArrays\\", __spreadArrays); - exporter(\\"__spreadArray\\", __spreadArray); - exporter(\\"__await\\", __await); - exporter(\\"__asyncGenerator\\", __asyncGenerator); - exporter(\\"__asyncDelegator\\", __asyncDelegator); - exporter(\\"__asyncValues\\", __asyncValues); - exporter(\\"__makeTemplateObject\\", __makeTemplateObject); - exporter(\\"__importStar\\", __importStar); - exporter(\\"__importDefault\\", __importDefault); - exporter(\\"__classPrivateFieldGet\\", __classPrivateFieldGet); - exporter(\\"__classPrivateFieldSet\\", __classPrivateFieldSet); - exporter(\\"__classPrivateFieldIn\\", __classPrivateFieldIn); - }); - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js -var require_deserializerMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.deserializerMiddleware = void 0; - var deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed - }; - } catch (error) { - Object.defineProperty(error, \\"$response\\", { - value: response - }); - throw error; - } - }; - exports2.deserializerMiddleware = deserializerMiddleware; - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js -var require_serializerMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serializerMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.serializerMiddleware = void 0; - var serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - const request = await serializer(args.input, options); - return next({ - ...args, - request - }); - }; - exports2.serializerMiddleware = serializerMiddleware; - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js -var require_serdePlugin = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/serdePlugin.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSerdePlugin = exports2.serializerMiddlewareOption = exports2.deserializerMiddlewareOption = void 0; - var deserializerMiddleware_1 = require_deserializerMiddleware(); - var serializerMiddleware_1 = require_serializerMiddleware(); - exports2.deserializerMiddlewareOption = { - name: \\"deserializerMiddleware\\", - step: \\"deserialize\\", - tags: [\\"DESERIALIZER\\"], - override: true - }; - exports2.serializerMiddlewareOption = { - name: \\"serializerMiddleware\\", - step: \\"serialize\\", - tags: [\\"SERIALIZER\\"], - override: true - }; - function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports2.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports2.serializerMiddlewareOption); - } - }; - } - exports2.getSerdePlugin = getSerdePlugin; - } -}); - -// node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js -var require_dist_cjs = __commonJS({ - \\"node_modules/@aws-sdk/middleware-serde/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_deserializerMiddleware(), exports2); - tslib_1.__exportStar(require_serdePlugin(), exports2); - tslib_1.__exportStar(require_serializerMiddleware(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js -var require_MiddlewareStack = __commonJS({ - \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/MiddlewareStack.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.constructStack = void 0; - var constructStack = () => { - let absoluteEntries = []; - let relativeEntries = []; - const entriesNameSet = /* @__PURE__ */ new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || priorityWeights[b.priority || \\"normal\\"] - priorityWeights[a.priority || \\"normal\\"]); - const removeByName = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.name && entry.name === toRemove) { - isRemoved = true; - entriesNameSet.delete(toRemove); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const removeByReference = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.middleware === toRemove) { - isRemoved = true; - if (entry.name) - entriesNameSet.delete(entry.name); - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const cloneTo = (toStack) => { - absoluteEntries.forEach((entry) => { - toStack.add(entry.middleware, { ...entry }); - }); - relativeEntries.forEach((entry) => { - toStack.addRelativeTo(entry.middleware, { ...entry }); - }); - return toStack; - }; - const expandRelativeMiddlewareList = (from) => { - const expandedMiddlewareList = []; - from.before.forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - expandedMiddlewareList.push(from); - from.after.reverse().forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - return expandedMiddlewareList; - }; - const getMiddlewareList = () => { - const normalizedAbsoluteEntries = []; - const normalizedRelativeEntries = []; - const normalizedEntriesNameMap = {}; - absoluteEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [] - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedAbsoluteEntries.push(normalizedEntry); - }); - relativeEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [] - }; - if (normalizedEntry.name) - normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry; - normalizedRelativeEntries.push(normalizedEntry); - }); - normalizedRelativeEntries.forEach((entry) => { - if (entry.toMiddleware) { - const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; - if (toMiddleware === void 0) { - throw new Error(\`\${entry.toMiddleware} is not found when adding \${entry.name || \\"anonymous\\"} middleware \${entry.relation} \${entry.toMiddleware}\`); - } - if (entry.relation === \\"after\\") { - toMiddleware.after.push(entry); - } - if (entry.relation === \\"before\\") { - toMiddleware.before.push(entry); - } - } - }); - const mainChain = sort(normalizedAbsoluteEntries).map(expandRelativeMiddlewareList).reduce((wholeList, expendedMiddlewareList) => { - wholeList.push(...expendedMiddlewareList); - return wholeList; - }, []); - return mainChain.map((entry) => entry.middleware); - }; - const stack = { - add: (middleware, options = {}) => { - const { name, override } = options; - const entry = { - step: \\"initialize\\", - priority: \\"normal\\", - middleware, - ...options - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(\`Duplicate middleware name '\${name}'\`); - const toOverrideIndex = absoluteEntries.findIndex((entry2) => entry2.name === name); - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) { - throw new Error(\`\\"\${name}\\" middleware with \${toOverride.priority} priority in \${toOverride.step} step cannot be overridden by same-name middleware with \${entry.priority} priority in \${entry.step} step.\`); - } - absoluteEntries.splice(toOverrideIndex, 1); - } - entriesNameSet.add(name); - } - absoluteEntries.push(entry); - }, - addRelativeTo: (middleware, options) => { - const { name, override } = options; - const entry = { - middleware, - ...options - }; - if (name) { - if (entriesNameSet.has(name)) { - if (!override) - throw new Error(\`Duplicate middleware name '\${name}'\`); - const toOverrideIndex = relativeEntries.findIndex((entry2) => entry2.name === name); - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(\`\\"\${name}\\" middleware \${toOverride.relation} \\"\${toOverride.toMiddleware}\\" middleware cannot be overridden by same-name middleware \${entry.relation} \\"\${entry.toMiddleware}\\" middleware.\`); - } - relativeEntries.splice(toOverrideIndex, 1); - } - entriesNameSet.add(name); - } - relativeEntries.push(entry); - }, - clone: () => cloneTo((0, exports2.constructStack)()), - use: (plugin) => { - plugin.applyToStack(stack); - }, - remove: (toRemove) => { - if (typeof toRemove === \\"string\\") - return removeByName(toRemove); - else - return removeByReference(toRemove); - }, - removeByTag: (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const { tags, name } = entry; - if (tags && tags.includes(toRemove)) { - if (name) - entriesNameSet.delete(name); - isRemoved = true; - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }, - concat: (from) => { - const cloned = cloneTo((0, exports2.constructStack)()); - cloned.use(from); - return cloned; - }, - applyToStack: cloneTo, - resolve: (handler, context) => { - for (const middleware of getMiddlewareList().reverse()) { - handler = middleware(handler, context); - } - return handler; - } - }; - return stack; - }; - exports2.constructStack = constructStack; - var stepWeights = { - initialize: 5, - serialize: 4, - build: 3, - finalizeRequest: 2, - deserialize: 1 - }; - var priorityWeights = { - high: 3, - normal: 2, - low: 1 - }; - } -}); - -// node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js -var require_dist_cjs2 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-stack/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_MiddlewareStack(), exports2); - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/client.js -var require_client = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/client.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Client = void 0; - var middleware_stack_1 = require_dist_cjs2(); - var Client = class { - constructor(config) { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== \\"function\\" ? optionsOrCb : void 0; - const callback = typeof optionsOrCb === \\"function\\" ? optionsOrCb : cb; - const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler(command).then((result) => callback(null, result.output), (err) => callback(err)).catch(() => { - }); - } else { - return handler(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } - }; - exports2.Client = Client; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/command.js -var require_command = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/command.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Command = void 0; - var middleware_stack_1 = require_dist_cjs2(); - var Command = class { - constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - } - }; - exports2.Command = Command; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js -var require_constants = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SENSITIVE_STRING = void 0; - exports2.SENSITIVE_STRING = \\"***SensitiveInformation***\\"; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js -var require_parse_utils = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/parse-utils.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.logger = exports2.strictParseByte = exports2.strictParseShort = exports2.strictParseInt32 = exports2.strictParseInt = exports2.strictParseLong = exports2.limitedParseFloat32 = exports2.limitedParseFloat = exports2.handleFloat = exports2.limitedParseDouble = exports2.strictParseFloat32 = exports2.strictParseFloat = exports2.strictParseDouble = exports2.expectUnion = exports2.expectString = exports2.expectObject = exports2.expectNonNull = exports2.expectByte = exports2.expectShort = exports2.expectInt32 = exports2.expectInt = exports2.expectLong = exports2.expectFloat32 = exports2.expectNumber = exports2.expectBoolean = exports2.parseBoolean = void 0; - var parseBoolean = (value) => { - switch (value) { - case \\"true\\": - return true; - case \\"false\\": - return false; - default: - throw new Error(\`Unable to parse boolean value \\"\${value}\\"\`); - } - }; - exports2.parseBoolean = parseBoolean; - var expectBoolean = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"number\\") { - if (value === 0 || value === 1) { - exports2.logger.warn(stackTraceWarning(\`Expected boolean, got \${typeof value}: \${value}\`)); - } - if (value === 0) { - return false; - } - if (value === 1) { - return true; - } - } - if (typeof value === \\"string\\") { - const lower = value.toLowerCase(); - if (lower === \\"false\\" || lower === \\"true\\") { - exports2.logger.warn(stackTraceWarning(\`Expected boolean, got \${typeof value}: \${value}\`)); - } - if (lower === \\"false\\") { - return false; - } - if (lower === \\"true\\") { - return true; - } - } - if (typeof value === \\"boolean\\") { - return value; - } - throw new TypeError(\`Expected boolean, got \${typeof value}: \${value}\`); - }; - exports2.expectBoolean = expectBoolean; - var expectNumber = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"string\\") { - const parsed = parseFloat(value); - if (!Number.isNaN(parsed)) { - if (String(parsed) !== String(value)) { - exports2.logger.warn(stackTraceWarning(\`Expected number but observed string: \${value}\`)); - } - return parsed; - } - } - if (typeof value === \\"number\\") { - return value; - } - throw new TypeError(\`Expected number, got \${typeof value}: \${value}\`); - }; - exports2.expectNumber = expectNumber; - var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); - var expectFloat32 = (value) => { - const expected = (0, exports2.expectNumber)(value); - if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(\`Expected 32-bit float, got \${value}\`); - } - } - return expected; - }; - exports2.expectFloat32 = expectFloat32; - var expectLong = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(\`Expected integer, got \${typeof value}: \${value}\`); - }; - exports2.expectLong = expectLong; - exports2.expectInt = exports2.expectLong; - var expectInt32 = (value) => expectSizedInt(value, 32); - exports2.expectInt32 = expectInt32; - var expectShort = (value) => expectSizedInt(value, 16); - exports2.expectShort = expectShort; - var expectByte = (value) => expectSizedInt(value, 8); - exports2.expectByte = expectByte; - var expectSizedInt = (value, size) => { - const expected = (0, exports2.expectLong)(value); - if (expected !== void 0 && castInt(expected, size) !== expected) { - throw new TypeError(\`Expected \${size}-bit integer, got \${value}\`); - } - return expected; - }; - var castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } - }; - var expectNonNull = (value, location) => { - if (value === null || value === void 0) { - if (location) { - throw new TypeError(\`Expected a non-null value for \${location}\`); - } - throw new TypeError(\\"Expected a non-null value\\"); - } - return value; - }; - exports2.expectNonNull = expectNonNull; - var expectObject = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"object\\" && !Array.isArray(value)) { - return value; - } - const receivedType = Array.isArray(value) ? \\"array\\" : typeof value; - throw new TypeError(\`Expected object, got \${receivedType}: \${value}\`); - }; - exports2.expectObject = expectObject; - var expectString = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value === \\"string\\") { - return value; - } - if ([\\"boolean\\", \\"number\\", \\"bigint\\"].includes(typeof value)) { - exports2.logger.warn(stackTraceWarning(\`Expected string, got \${typeof value}: \${value}\`)); - return String(value); - } - throw new TypeError(\`Expected string, got \${typeof value}: \${value}\`); - }; - exports2.expectString = expectString; - var expectUnion = (value) => { - if (value === null || value === void 0) { - return void 0; - } - const asObject = (0, exports2.expectObject)(value); - const setKeys = Object.entries(asObject).filter(([, v]) => v != null).map(([k]) => k); - if (setKeys.length === 0) { - throw new TypeError(\`Unions must have exactly one non-null member. None were found.\`); - } - if (setKeys.length > 1) { - throw new TypeError(\`Unions must have exactly one non-null member. Keys \${setKeys} were not null.\`); - } - return asObject; - }; - exports2.expectUnion = expectUnion; - var strictParseDouble = (value) => { - if (typeof value == \\"string\\") { - return (0, exports2.expectNumber)(parseNumber(value)); - } - return (0, exports2.expectNumber)(value); - }; - exports2.strictParseDouble = strictParseDouble; - exports2.strictParseFloat = exports2.strictParseDouble; - var strictParseFloat32 = (value) => { - if (typeof value == \\"string\\") { - return (0, exports2.expectFloat32)(parseNumber(value)); - } - return (0, exports2.expectFloat32)(value); - }; - exports2.strictParseFloat32 = strictParseFloat32; - var NUMBER_REGEX = /(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)|(-?Infinity)|(NaN)/g; - var parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(\`Expected real number, got implicit NaN\`); - } - return parseFloat(value); - }; - var limitedParseDouble = (value) => { - if (typeof value == \\"string\\") { - return parseFloatString(value); - } - return (0, exports2.expectNumber)(value); - }; - exports2.limitedParseDouble = limitedParseDouble; - exports2.handleFloat = exports2.limitedParseDouble; - exports2.limitedParseFloat = exports2.limitedParseDouble; - var limitedParseFloat32 = (value) => { - if (typeof value == \\"string\\") { - return parseFloatString(value); - } - return (0, exports2.expectFloat32)(value); - }; - exports2.limitedParseFloat32 = limitedParseFloat32; - var parseFloatString = (value) => { - switch (value) { - case \\"NaN\\": - return NaN; - case \\"Infinity\\": - return Infinity; - case \\"-Infinity\\": - return -Infinity; - default: - throw new Error(\`Unable to parse float value: \${value}\`); - } - }; - var strictParseLong = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectLong)(parseNumber(value)); - } - return (0, exports2.expectLong)(value); - }; - exports2.strictParseLong = strictParseLong; - exports2.strictParseInt = exports2.strictParseLong; - var strictParseInt32 = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectInt32)(parseNumber(value)); - } - return (0, exports2.expectInt32)(value); - }; - exports2.strictParseInt32 = strictParseInt32; - var strictParseShort = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectShort)(parseNumber(value)); - } - return (0, exports2.expectShort)(value); - }; - exports2.strictParseShort = strictParseShort; - var strictParseByte = (value) => { - if (typeof value === \\"string\\") { - return (0, exports2.expectByte)(parseNumber(value)); - } - return (0, exports2.expectByte)(value); - }; - exports2.strictParseByte = strictParseByte; - var stackTraceWarning = (message) => { - return String(new TypeError(message).stack || message).split(\\"\\\\n\\").slice(0, 5).filter((s) => !s.includes(\\"stackTraceWarning\\")).join(\\"\\\\n\\"); - }; - exports2.logger = { - warn: console.warn - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js -var require_date_utils = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/date-utils.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseEpochTimestamp = exports2.parseRfc7231DateTime = exports2.parseRfc3339DateTime = exports2.dateToUtcString = void 0; - var parse_utils_1 = require_parse_utils(); - var DAYS = [\\"Sun\\", \\"Mon\\", \\"Tue\\", \\"Wed\\", \\"Thu\\", \\"Fri\\", \\"Sat\\"]; - var MONTHS = [\\"Jan\\", \\"Feb\\", \\"Mar\\", \\"Apr\\", \\"May\\", \\"Jun\\", \\"Jul\\", \\"Aug\\", \\"Sep\\", \\"Oct\\", \\"Nov\\", \\"Dec\\"]; - function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? \`0\${dayOfMonthInt}\` : \`\${dayOfMonthInt}\`; - const hoursString = hoursInt < 10 ? \`0\${hoursInt}\` : \`\${hoursInt}\`; - const minutesString = minutesInt < 10 ? \`0\${minutesInt}\` : \`\${minutesInt}\`; - const secondsString = secondsInt < 10 ? \`0\${secondsInt}\` : \`\${secondsInt}\`; - return \`\${DAYS[dayOfWeek]}, \${dayOfMonthString} \${MONTHS[month]} \${year} \${hoursString}:\${minutesString}:\${secondsString} GMT\`; - } - exports2.dateToUtcString = dateToUtcString; - var RFC3339 = new RegExp(/^(\\\\d{4})-(\\\\d{2})-(\\\\d{2})[tT](\\\\d{2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))?[zZ]$/); - var parseRfc3339DateTime = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== \\"string\\") { - throw new TypeError(\\"RFC-3339 date-times must be expressed as strings\\"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError(\\"Invalid RFC-3339 date-time value\\"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, \\"month\\", 1, 12); - const day = parseDateValue(dayStr, \\"day\\", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - }; - exports2.parseRfc3339DateTime = parseRfc3339DateTime; - var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\\\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\\\d{4}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); - var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\\\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? GMT$/); - var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\\\\d{2}) (\\\\d{1,2}):(\\\\d{2}):(\\\\d{2})(?:\\\\.(\\\\d+))? (\\\\d{4})$/); - var parseRfc7231DateTime = (value) => { - if (value === null || value === void 0) { - return void 0; - } - if (typeof value !== \\"string\\") { - throw new TypeError(\\"RFC-7231 date-times must be expressed as strings\\"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, \\"day\\", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), \\"day\\", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError(\\"Invalid RFC-7231 date-time value\\"); - }; - exports2.parseRfc7231DateTime = parseRfc7231DateTime; - var parseEpochTimestamp = (value) => { - if (value === null || value === void 0) { - return void 0; - } - let valueAsDouble; - if (typeof value === \\"number\\") { - valueAsDouble = value; - } else if (typeof value === \\"string\\") { - valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); - } else { - throw new TypeError(\\"Epoch timestamps must be expressed as floating point numbers or their string representation\\"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError(\\"Epoch timestamps must be valid, non-Infinite, non-NaN numerics\\"); - } - return new Date(Math.round(valueAsDouble * 1e3)); - }; - exports2.parseEpochTimestamp = parseEpochTimestamp; - var buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, \\"hour\\", 0, 23), parseDateValue(time.minutes, \\"minute\\", 0, 59), parseDateValue(time.seconds, \\"seconds\\", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); - }; - var parseTwoDigitYear = (value) => { - const thisYear = new Date().getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; - }; - var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3; - var adjustRfc850Year = (input) => { - if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); - } - return input; - }; - var parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(\`Invalid month: \${value}\`); - } - return monthIdx + 1; - }; - var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; - var validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(\`Invalid day for \${MONTHS[month]} in \${year}: \${day}\`); - } - }; - var isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - }; - var parseDateValue = (value, type, lower, upper) => { - const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(\`\${type} must be between \${lower} and \${upper}, inclusive\`); - } - return dateVal; - }; - var parseMilliseconds = (value) => { - if (value === null || value === void 0) { - return 0; - } - return (0, parse_utils_1.strictParseFloat32)(\\"0.\\" + value) * 1e3; - }; - var stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === \\"0\\") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js -var require_exceptions = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/exceptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decorateServiceException = exports2.ServiceException = void 0; - var ServiceException = class extends Error { - constructor(options) { - super(options.message); - Object.setPrototypeOf(this, ServiceException.prototype); - this.name = options.name; - this.$fault = options.$fault; - this.$metadata = options.$metadata; - } - }; - exports2.ServiceException = ServiceException; - var decorateServiceException = (exception, additions = {}) => { - Object.entries(additions).filter(([, v]) => v !== void 0).forEach(([k, v]) => { - if (exception[k] == void 0 || exception[k] === \\"\\") { - exception[k] = v; - } - }); - const message = exception.message || exception.Message || \\"UnknownError\\"; - exception.message = message; - delete exception.Message; - return exception; - }; - exports2.decorateServiceException = decorateServiceException; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js -var require_default_error_handler = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/default-error-handler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.throwDefaultError = void 0; - var exceptions_1 = require_exceptions(); - var throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata(output); - const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + \\"\\" : void 0; - const response = new exceptionCtor({ - name: parsedBody.code || parsedBody.Code || errorCode || statusCode || \\"UnknowError\\", - $fault: \\"client\\", - $metadata - }); - throw (0, exceptions_1.decorateServiceException)(response, parsedBody); - }; - exports2.throwDefaultError = throwDefaultError; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js -var require_defaults_mode = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/defaults-mode.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadConfigsForDefaultMode = void 0; - var loadConfigsForDefaultMode = (mode) => { - switch (mode) { - case \\"standard\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 3100 - }; - case \\"in-region\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 1100 - }; - case \\"cross-region\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 3100 - }; - case \\"mobile\\": - return { - retryMode: \\"standard\\", - connectionTimeout: 3e4 - }; - default: - return {}; - } - }; - exports2.loadConfigsForDefaultMode = loadConfigsForDefaultMode; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js -var require_emitWarningIfUnsupportedVersion = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.emitWarningIfUnsupportedVersion = void 0; - var warningEmitted = false; - var emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf(\\".\\"))) < 14) { - warningEmitted = true; - process.emitWarning(\`The AWS SDK for JavaScript (v3) will -no longer support Node.js \${version} on November 1, 2022. - -To continue receiving updates to AWS services, bug fixes, and security -updates please upgrade to Node.js 14.x or later. - -For details, please refer our blog post: https://a.co/48dbdYz\`, \`NodeDeprecationWarning\`); - } - }; - exports2.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js -var require_extended_encode_uri_component = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/extended-encode-uri-component.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.extendedEncodeURIComponent = void 0; - function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function(c) { - return \\"%\\" + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - exports2.extendedEncodeURIComponent = extendedEncodeURIComponent; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js -var require_get_array_if_single_item = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-array-if-single-item.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getArrayIfSingleItem = void 0; - var getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; - exports2.getArrayIfSingleItem = getArrayIfSingleItem; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js -var require_get_value_from_text_node = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/get-value-from-text-node.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getValueFromTextNode = void 0; - var getValueFromTextNode = (obj) => { - const textNodeName = \\"#text\\"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== void 0) { - obj[key] = obj[key][textNodeName]; - } else if (typeof obj[key] === \\"object\\" && obj[key] !== null) { - obj[key] = (0, exports2.getValueFromTextNode)(obj[key]); - } - } - return obj; - }; - exports2.getValueFromTextNode = getValueFromTextNode; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js -var require_lazy_json = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/lazy-json.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.LazyJsonString = exports2.StringWrapper = void 0; - var StringWrapper = function() { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; - }; - exports2.StringWrapper = StringWrapper; - exports2.StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: exports2.StringWrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - Object.setPrototypeOf(exports2.StringWrapper, String); - var LazyJsonString = class extends exports2.StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } else if (object instanceof String || typeof object === \\"string\\") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } - }; - exports2.LazyJsonString = LazyJsonString; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js -var require_object_mapping = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/object-mapping.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.convertMap = exports2.map = void 0; - function map(arg0, arg1, arg2) { - let target; - let filter; - let instructions; - if (typeof arg1 === \\"undefined\\" && typeof arg2 === \\"undefined\\") { - target = {}; - instructions = arg0; - } else { - target = arg0; - if (typeof arg1 === \\"function\\") { - filter = arg1; - instructions = arg2; - return mapWithFilter(target, filter, instructions); - } else { - instructions = arg1; - } - } - for (const key of Object.keys(instructions)) { - if (!Array.isArray(instructions[key])) { - target[key] = instructions[key]; - continue; - } - let [filter2, value] = instructions[key]; - if (typeof value === \\"function\\") { - let _value; - const defaultFilterPassed = filter2 === void 0 && (_value = value()) != null; - const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(void 0) || typeof filter2 !== \\"function\\" && !!filter2; - if (defaultFilterPassed) { - target[key] = _value; - } else if (customFilterPassed) { - target[key] = value(); - } - } else { - const defaultFilterPassed = filter2 === void 0 && value != null; - const customFilterPassed = typeof filter2 === \\"function\\" && !!filter2(value) || typeof filter2 !== \\"function\\" && !!filter2; - if (defaultFilterPassed || customFilterPassed) { - target[key] = value; - } - } - } - return target; - } - exports2.map = map; - var convertMap = (target) => { - const output = {}; - for (const [k, v] of Object.entries(target || {})) { - output[k] = [, v]; - } - return output; - }; - exports2.convertMap = convertMap; - var mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } else { - if (typeof value === \\"function\\") { - _instructions[key] = [filter, value()]; - } else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); - }; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js -var require_resolve_path = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/resolve-path.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolvedPath = void 0; - var extended_encode_uri_component_1 = require_extended_encode_uri_component(); - var resolvedPath = (resolvedPath2, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { - if (input != null && input[memberName] !== void 0) { - const labelValue = labelValueProvider(); - if (labelValue.length <= 0) { - throw new Error(\\"Empty value provided for input HTTP label: \\" + memberName + \\".\\"); - } - resolvedPath2 = resolvedPath2.replace(uriLabel, isGreedyLabel ? labelValue.split(\\"/\\").map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)).join(\\"/\\") : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); - } else { - throw new Error(\\"No value provided for input HTTP label: \\" + memberName + \\".\\"); - } - return resolvedPath2; - }; - exports2.resolvedPath = resolvedPath; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js -var require_ser_utils = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/ser-utils.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.serializeFloat = void 0; - var serializeFloat = (value) => { - if (value !== value) { - return \\"NaN\\"; - } - switch (value) { - case Infinity: - return \\"Infinity\\"; - case -Infinity: - return \\"-Infinity\\"; - default: - return value; - } - }; - exports2.serializeFloat = serializeFloat; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js -var require_split_every = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/split-every.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.splitEvery = void 0; - function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error(\\"Invalid number of delimiters (\\" + numDelimiters + \\") for splitEvery.\\"); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = \\"\\"; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === \\"\\") { - currentSegment = segments[i]; - } else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = \\"\\"; - } - } - if (currentSegment !== \\"\\") { - compoundSegments.push(currentSegment); - } - return compoundSegments; - } - exports2.splitEvery = splitEvery; - } -}); - -// node_modules/@aws-sdk/smithy-client/dist-cjs/index.js -var require_dist_cjs3 = __commonJS({ - \\"node_modules/@aws-sdk/smithy-client/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_client(), exports2); - tslib_1.__exportStar(require_command(), exports2); - tslib_1.__exportStar(require_constants(), exports2); - tslib_1.__exportStar(require_date_utils(), exports2); - tslib_1.__exportStar(require_default_error_handler(), exports2); - tslib_1.__exportStar(require_defaults_mode(), exports2); - tslib_1.__exportStar(require_emitWarningIfUnsupportedVersion(), exports2); - tslib_1.__exportStar(require_exceptions(), exports2); - tslib_1.__exportStar(require_extended_encode_uri_component(), exports2); - tslib_1.__exportStar(require_get_array_if_single_item(), exports2); - tslib_1.__exportStar(require_get_value_from_text_node(), exports2); - tslib_1.__exportStar(require_lazy_json(), exports2); - tslib_1.__exportStar(require_object_mapping(), exports2); - tslib_1.__exportStar(require_parse_utils(), exports2); - tslib_1.__exportStar(require_resolve_path(), exports2); - tslib_1.__exportStar(require_ser_utils(), exports2); - tslib_1.__exportStar(require_split_every(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js -var require_DynamoDBServiceException = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/DynamoDBServiceException.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDBServiceException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var DynamoDBServiceException = class extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, DynamoDBServiceException.prototype); - } - }; - exports2.DynamoDBServiceException = DynamoDBServiceException; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js -var require_models_0 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/models_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AutoScalingSettingsUpdateFilterSensitiveLog = exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = exports2.AutoScalingPolicyUpdateFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = exports2.AttributeDefinitionFilterSensitiveLog = exports2.ArchivalSummaryFilterSensitiveLog = exports2.TransactionCanceledException = exports2.AttributeValue = exports2.IndexNotFoundException = exports2.ReplicaNotFoundException = exports2.ReplicaAlreadyExistsException = exports2.InvalidRestoreTimeException = exports2.TableAlreadyExistsException = exports2.ImportConflictException = exports2.PointInTimeRecoveryUnavailableException = exports2.InvalidExportTimeException = exports2.ExportConflictException = exports2.TransactionInProgressException = exports2.IdempotentParameterMismatchException = exports2.DuplicateItemException = exports2.ImportNotFoundException = exports2.InputFormat = exports2.InputCompressionType = exports2.ImportStatus = exports2.GlobalTableNotFoundException = exports2.ExportNotFoundException = exports2.ExportStatus = exports2.ExportFormat = exports2.TransactionConflictException = exports2.ResourceInUseException = exports2.GlobalTableAlreadyExistsException = exports2.TableClass = exports2.TableNotFoundException = exports2.TableInUseException = exports2.LimitExceededException = exports2.ContinuousBackupsUnavailableException = exports2.ConditionalCheckFailedException = exports2.ItemCollectionSizeLimitExceededException = exports2.ResourceNotFoundException = exports2.ProvisionedThroughputExceededException = exports2.InvalidEndpointException = exports2.RequestLimitExceeded = exports2.InternalServerError = exports2.BatchStatementErrorCodeEnum = exports2.BackupTypeFilter = exports2.BackupNotFoundException = exports2.BackupInUseException = exports2.BackupType = void 0; - exports2.DeleteReplicaActionFilterSensitiveLog = exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = exports2.DeleteBackupOutputFilterSensitiveLog = exports2.DeleteBackupInputFilterSensitiveLog = exports2.CsvOptionsFilterSensitiveLog = exports2.CreateTableOutputFilterSensitiveLog = exports2.TableDescriptionFilterSensitiveLog = exports2.RestoreSummaryFilterSensitiveLog = exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = exports2.CreateTableInputFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.SSESpecificationFilterSensitiveLog = exports2.LocalSecondaryIndexFilterSensitiveLog = exports2.GlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = exports2.CreateReplicaActionFilterSensitiveLog = exports2.CreateGlobalTableOutputFilterSensitiveLog = exports2.GlobalTableDescriptionFilterSensitiveLog = exports2.ReplicaDescriptionFilterSensitiveLog = exports2.TableClassSummaryFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = exports2.ProvisionedThroughputOverrideFilterSensitiveLog = exports2.CreateGlobalTableInputFilterSensitiveLog = exports2.ReplicaFilterSensitiveLog = exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.CreateBackupOutputFilterSensitiveLog = exports2.CreateBackupInputFilterSensitiveLog = exports2.ContributorInsightsSummaryFilterSensitiveLog = exports2.ContinuousBackupsDescriptionFilterSensitiveLog = exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = exports2.BillingModeSummaryFilterSensitiveLog = exports2.BatchStatementErrorFilterSensitiveLog = exports2.ConsumedCapacityFilterSensitiveLog = exports2.CapacityFilterSensitiveLog = exports2.BackupSummaryFilterSensitiveLog = exports2.BackupDescriptionFilterSensitiveLog = exports2.SourceTableFeatureDetailsFilterSensitiveLog = exports2.TimeToLiveDescriptionFilterSensitiveLog = exports2.StreamSpecificationFilterSensitiveLog = exports2.SSEDescriptionFilterSensitiveLog = exports2.LocalSecondaryIndexInfoFilterSensitiveLog = exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = exports2.ProjectionFilterSensitiveLog = exports2.SourceTableDetailsFilterSensitiveLog = exports2.ProvisionedThroughputFilterSensitiveLog = exports2.KeySchemaElementFilterSensitiveLog = exports2.BackupDetailsFilterSensitiveLog = void 0; - exports2.ListBackupsOutputFilterSensitiveLog = exports2.ListBackupsInputFilterSensitiveLog = exports2.ImportTableOutputFilterSensitiveLog = exports2.ImportTableInputFilterSensitiveLog = exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = exports2.ExportTableToPointInTimeInputFilterSensitiveLog = exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeTimeToLiveOutputFilterSensitiveLog = exports2.DescribeTimeToLiveInputFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.TableAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = exports2.DescribeTableOutputFilterSensitiveLog = exports2.DescribeTableInputFilterSensitiveLog = exports2.DescribeLimitsOutputFilterSensitiveLog = exports2.DescribeLimitsInputFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = exports2.KinesisDataStreamDestinationFilterSensitiveLog = exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = exports2.DescribeImportOutputFilterSensitiveLog = exports2.ImportTableDescriptionFilterSensitiveLog = exports2.TableCreationParametersFilterSensitiveLog = exports2.S3BucketSourceFilterSensitiveLog = exports2.InputFormatOptionsFilterSensitiveLog = exports2.DescribeImportInputFilterSensitiveLog = exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = exports2.ReplicaSettingsDescriptionFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = exports2.DescribeGlobalTableOutputFilterSensitiveLog = exports2.DescribeGlobalTableInputFilterSensitiveLog = exports2.DescribeExportOutputFilterSensitiveLog = exports2.ExportDescriptionFilterSensitiveLog = exports2.DescribeExportInputFilterSensitiveLog = exports2.DescribeEndpointsResponseFilterSensitiveLog = exports2.EndpointFilterSensitiveLog = exports2.DescribeEndpointsRequestFilterSensitiveLog = exports2.DescribeContributorInsightsOutputFilterSensitiveLog = exports2.FailureExceptionFilterSensitiveLog = exports2.DescribeContributorInsightsInputFilterSensitiveLog = exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = exports2.DescribeContinuousBackupsInputFilterSensitiveLog = exports2.DescribeBackupOutputFilterSensitiveLog = exports2.DescribeBackupInputFilterSensitiveLog = exports2.DeleteTableOutputFilterSensitiveLog = exports2.DeleteTableInputFilterSensitiveLog = exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = void 0; - exports2.AttributeValueUpdateFilterSensitiveLog = exports2.AttributeValueFilterSensitiveLog = exports2.UpdateTimeToLiveOutputFilterSensitiveLog = exports2.UpdateTimeToLiveInputFilterSensitiveLog = exports2.TimeToLiveSpecificationFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = exports2.UpdateTableOutputFilterSensitiveLog = exports2.UpdateTableInputFilterSensitiveLog = exports2.ReplicationGroupUpdateFilterSensitiveLog = exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = exports2.ReplicaSettingsUpdateFilterSensitiveLog = exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = exports2.UpdateGlobalTableOutputFilterSensitiveLog = exports2.UpdateGlobalTableInputFilterSensitiveLog = exports2.ReplicaUpdateFilterSensitiveLog = exports2.UpdateContributorInsightsOutputFilterSensitiveLog = exports2.UpdateContributorInsightsInputFilterSensitiveLog = exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = exports2.UpdateContinuousBackupsInputFilterSensitiveLog = exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = exports2.UntagResourceInputFilterSensitiveLog = exports2.TagResourceInputFilterSensitiveLog = exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = exports2.RestoreTableFromBackupOutputFilterSensitiveLog = exports2.RestoreTableFromBackupInputFilterSensitiveLog = exports2.ListTagsOfResourceOutputFilterSensitiveLog = exports2.ListTagsOfResourceInputFilterSensitiveLog = exports2.ListTablesOutputFilterSensitiveLog = exports2.ListTablesInputFilterSensitiveLog = exports2.ListImportsOutputFilterSensitiveLog = exports2.ImportSummaryFilterSensitiveLog = exports2.ListImportsInputFilterSensitiveLog = exports2.ListGlobalTablesOutputFilterSensitiveLog = exports2.GlobalTableFilterSensitiveLog = exports2.ListGlobalTablesInputFilterSensitiveLog = exports2.ListExportsOutputFilterSensitiveLog = exports2.ExportSummaryFilterSensitiveLog = exports2.ListExportsInputFilterSensitiveLog = exports2.ListContributorInsightsOutputFilterSensitiveLog = exports2.ListContributorInsightsInputFilterSensitiveLog = void 0; - exports2.TransactWriteItemsInputFilterSensitiveLog = exports2.TransactWriteItemFilterSensitiveLog = exports2.UpdateItemInputFilterSensitiveLog = exports2.BatchWriteItemOutputFilterSensitiveLog = exports2.QueryInputFilterSensitiveLog = exports2.PutItemInputFilterSensitiveLog = exports2.DeleteItemInputFilterSensitiveLog = exports2.BatchWriteItemInputFilterSensitiveLog = exports2.ScanInputFilterSensitiveLog = exports2.BatchGetItemOutputFilterSensitiveLog = exports2.WriteRequestFilterSensitiveLog = exports2.UpdateItemOutputFilterSensitiveLog = exports2.ScanOutputFilterSensitiveLog = exports2.QueryOutputFilterSensitiveLog = exports2.PutItemOutputFilterSensitiveLog = exports2.ExecuteStatementOutputFilterSensitiveLog = exports2.DeleteItemOutputFilterSensitiveLog = exports2.UpdateFilterSensitiveLog = exports2.PutFilterSensitiveLog = exports2.DeleteFilterSensitiveLog = exports2.ConditionCheckFilterSensitiveLog = exports2.TransactWriteItemsOutputFilterSensitiveLog = exports2.TransactGetItemsInputFilterSensitiveLog = exports2.ExpectedAttributeValueFilterSensitiveLog = exports2.BatchGetItemInputFilterSensitiveLog = exports2.TransactGetItemsOutputFilterSensitiveLog = exports2.ExecuteTransactionOutputFilterSensitiveLog = exports2.ExecuteTransactionInputFilterSensitiveLog = exports2.BatchExecuteStatementOutputFilterSensitiveLog = exports2.BatchExecuteStatementInputFilterSensitiveLog = exports2.TransactGetItemFilterSensitiveLog = exports2.KeysAndAttributesFilterSensitiveLog = exports2.PutRequestFilterSensitiveLog = exports2.ParameterizedStatementFilterSensitiveLog = exports2.ItemResponseFilterSensitiveLog = exports2.ItemCollectionMetricsFilterSensitiveLog = exports2.GetItemOutputFilterSensitiveLog = exports2.GetItemInputFilterSensitiveLog = exports2.GetFilterSensitiveLog = exports2.ExecuteStatementInputFilterSensitiveLog = exports2.DeleteRequestFilterSensitiveLog = exports2.ConditionFilterSensitiveLog = exports2.CancellationReasonFilterSensitiveLog = exports2.BatchStatementResponseFilterSensitiveLog = exports2.BatchStatementRequestFilterSensitiveLog = void 0; - var DynamoDBServiceException_1 = require_DynamoDBServiceException(); - var BackupType; - (function(BackupType2) { - BackupType2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; - BackupType2[\\"SYSTEM\\"] = \\"SYSTEM\\"; - BackupType2[\\"USER\\"] = \\"USER\\"; - })(BackupType = exports2.BackupType || (exports2.BackupType = {})); - var BackupInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"BackupInUseException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"BackupInUseException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, BackupInUseException.prototype); - } - }; - exports2.BackupInUseException = BackupInUseException; - var BackupNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"BackupNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"BackupNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, BackupNotFoundException.prototype); - } - }; - exports2.BackupNotFoundException = BackupNotFoundException; - var BackupTypeFilter; - (function(BackupTypeFilter2) { - BackupTypeFilter2[\\"ALL\\"] = \\"ALL\\"; - BackupTypeFilter2[\\"AWS_BACKUP\\"] = \\"AWS_BACKUP\\"; - BackupTypeFilter2[\\"SYSTEM\\"] = \\"SYSTEM\\"; - BackupTypeFilter2[\\"USER\\"] = \\"USER\\"; - })(BackupTypeFilter = exports2.BackupTypeFilter || (exports2.BackupTypeFilter = {})); - var BatchStatementErrorCodeEnum; - (function(BatchStatementErrorCodeEnum2) { - BatchStatementErrorCodeEnum2[\\"AccessDenied\\"] = \\"AccessDenied\\"; - BatchStatementErrorCodeEnum2[\\"ConditionalCheckFailed\\"] = \\"ConditionalCheckFailed\\"; - BatchStatementErrorCodeEnum2[\\"DuplicateItem\\"] = \\"DuplicateItem\\"; - BatchStatementErrorCodeEnum2[\\"InternalServerError\\"] = \\"InternalServerError\\"; - BatchStatementErrorCodeEnum2[\\"ItemCollectionSizeLimitExceeded\\"] = \\"ItemCollectionSizeLimitExceeded\\"; - BatchStatementErrorCodeEnum2[\\"ProvisionedThroughputExceeded\\"] = \\"ProvisionedThroughputExceeded\\"; - BatchStatementErrorCodeEnum2[\\"RequestLimitExceeded\\"] = \\"RequestLimitExceeded\\"; - BatchStatementErrorCodeEnum2[\\"ResourceNotFound\\"] = \\"ResourceNotFound\\"; - BatchStatementErrorCodeEnum2[\\"ThrottlingError\\"] = \\"ThrottlingError\\"; - BatchStatementErrorCodeEnum2[\\"TransactionConflict\\"] = \\"TransactionConflict\\"; - BatchStatementErrorCodeEnum2[\\"ValidationError\\"] = \\"ValidationError\\"; - })(BatchStatementErrorCodeEnum = exports2.BatchStatementErrorCodeEnum || (exports2.BatchStatementErrorCodeEnum = {})); - var InternalServerError = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InternalServerError\\", - $fault: \\"server\\", - ...opts - }); - this.name = \\"InternalServerError\\"; - this.$fault = \\"server\\"; - Object.setPrototypeOf(this, InternalServerError.prototype); - } - }; - exports2.InternalServerError = InternalServerError; - var RequestLimitExceeded = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"RequestLimitExceeded\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"RequestLimitExceeded\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, RequestLimitExceeded.prototype); - } - }; - exports2.RequestLimitExceeded = RequestLimitExceeded; - var InvalidEndpointException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InvalidEndpointException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidEndpointException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidEndpointException.prototype); - this.Message = opts.Message; - } - }; - exports2.InvalidEndpointException = InvalidEndpointException; - var ProvisionedThroughputExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ProvisionedThroughputExceededException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ProvisionedThroughputExceededException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype); - } - }; - exports2.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException; - var ResourceNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ResourceNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ResourceNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } - }; - exports2.ResourceNotFoundException = ResourceNotFoundException; - var ItemCollectionSizeLimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ItemCollectionSizeLimitExceededException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ItemCollectionSizeLimitExceededException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ItemCollectionSizeLimitExceededException.prototype); - } - }; - exports2.ItemCollectionSizeLimitExceededException = ItemCollectionSizeLimitExceededException; - var ConditionalCheckFailedException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ConditionalCheckFailedException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ConditionalCheckFailedException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype); - } - }; - exports2.ConditionalCheckFailedException = ConditionalCheckFailedException; - var ContinuousBackupsUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ContinuousBackupsUnavailableException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ContinuousBackupsUnavailableException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ContinuousBackupsUnavailableException.prototype); - } - }; - exports2.ContinuousBackupsUnavailableException = ContinuousBackupsUnavailableException; - var LimitExceededException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"LimitExceededException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"LimitExceededException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, LimitExceededException.prototype); - } - }; - exports2.LimitExceededException = LimitExceededException; - var TableInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TableInUseException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TableInUseException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TableInUseException.prototype); - } - }; - exports2.TableInUseException = TableInUseException; - var TableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TableNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TableNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TableNotFoundException.prototype); - } - }; - exports2.TableNotFoundException = TableNotFoundException; - var TableClass; - (function(TableClass2) { - TableClass2[\\"STANDARD\\"] = \\"STANDARD\\"; - TableClass2[\\"STANDARD_INFREQUENT_ACCESS\\"] = \\"STANDARD_INFREQUENT_ACCESS\\"; - })(TableClass = exports2.TableClass || (exports2.TableClass = {})); - var GlobalTableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"GlobalTableAlreadyExistsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"GlobalTableAlreadyExistsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, GlobalTableAlreadyExistsException.prototype); - } - }; - exports2.GlobalTableAlreadyExistsException = GlobalTableAlreadyExistsException; - var ResourceInUseException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ResourceInUseException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ResourceInUseException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - } - }; - exports2.ResourceInUseException = ResourceInUseException; - var TransactionConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TransactionConflictException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TransactionConflictException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TransactionConflictException.prototype); - } - }; - exports2.TransactionConflictException = TransactionConflictException; - var ExportFormat; - (function(ExportFormat2) { - ExportFormat2[\\"DYNAMODB_JSON\\"] = \\"DYNAMODB_JSON\\"; - ExportFormat2[\\"ION\\"] = \\"ION\\"; - })(ExportFormat = exports2.ExportFormat || (exports2.ExportFormat = {})); - var ExportStatus; - (function(ExportStatus2) { - ExportStatus2[\\"COMPLETED\\"] = \\"COMPLETED\\"; - ExportStatus2[\\"FAILED\\"] = \\"FAILED\\"; - ExportStatus2[\\"IN_PROGRESS\\"] = \\"IN_PROGRESS\\"; - })(ExportStatus = exports2.ExportStatus || (exports2.ExportStatus = {})); - var ExportNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ExportNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ExportNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ExportNotFoundException.prototype); - } - }; - exports2.ExportNotFoundException = ExportNotFoundException; - var GlobalTableNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"GlobalTableNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"GlobalTableNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, GlobalTableNotFoundException.prototype); - } - }; - exports2.GlobalTableNotFoundException = GlobalTableNotFoundException; - var ImportStatus; - (function(ImportStatus2) { - ImportStatus2[\\"CANCELLED\\"] = \\"CANCELLED\\"; - ImportStatus2[\\"CANCELLING\\"] = \\"CANCELLING\\"; - ImportStatus2[\\"COMPLETED\\"] = \\"COMPLETED\\"; - ImportStatus2[\\"FAILED\\"] = \\"FAILED\\"; - ImportStatus2[\\"IN_PROGRESS\\"] = \\"IN_PROGRESS\\"; - })(ImportStatus = exports2.ImportStatus || (exports2.ImportStatus = {})); - var InputCompressionType; - (function(InputCompressionType2) { - InputCompressionType2[\\"GZIP\\"] = \\"GZIP\\"; - InputCompressionType2[\\"NONE\\"] = \\"NONE\\"; - InputCompressionType2[\\"ZSTD\\"] = \\"ZSTD\\"; - })(InputCompressionType = exports2.InputCompressionType || (exports2.InputCompressionType = {})); - var InputFormat; - (function(InputFormat2) { - InputFormat2[\\"CSV\\"] = \\"CSV\\"; - InputFormat2[\\"DYNAMODB_JSON\\"] = \\"DYNAMODB_JSON\\"; - InputFormat2[\\"ION\\"] = \\"ION\\"; - })(InputFormat = exports2.InputFormat || (exports2.InputFormat = {})); - var ImportNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ImportNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ImportNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ImportNotFoundException.prototype); - } - }; - exports2.ImportNotFoundException = ImportNotFoundException; - var DuplicateItemException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"DuplicateItemException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"DuplicateItemException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, DuplicateItemException.prototype); - } - }; - exports2.DuplicateItemException = DuplicateItemException; - var IdempotentParameterMismatchException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"IdempotentParameterMismatchException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IdempotentParameterMismatchException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype); - this.Message = opts.Message; - } - }; - exports2.IdempotentParameterMismatchException = IdempotentParameterMismatchException; - var TransactionInProgressException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TransactionInProgressException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TransactionInProgressException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TransactionInProgressException.prototype); - this.Message = opts.Message; - } - }; - exports2.TransactionInProgressException = TransactionInProgressException; - var ExportConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ExportConflictException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ExportConflictException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ExportConflictException.prototype); - } - }; - exports2.ExportConflictException = ExportConflictException; - var InvalidExportTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InvalidExportTimeException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidExportTimeException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidExportTimeException.prototype); - } - }; - exports2.InvalidExportTimeException = InvalidExportTimeException; - var PointInTimeRecoveryUnavailableException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"PointInTimeRecoveryUnavailableException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"PointInTimeRecoveryUnavailableException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, PointInTimeRecoveryUnavailableException.prototype); - } - }; - exports2.PointInTimeRecoveryUnavailableException = PointInTimeRecoveryUnavailableException; - var ImportConflictException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ImportConflictException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ImportConflictException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ImportConflictException.prototype); - } - }; - exports2.ImportConflictException = ImportConflictException; - var TableAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TableAlreadyExistsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TableAlreadyExistsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TableAlreadyExistsException.prototype); - } - }; - exports2.TableAlreadyExistsException = TableAlreadyExistsException; - var InvalidRestoreTimeException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"InvalidRestoreTimeException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidRestoreTimeException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidRestoreTimeException.prototype); - } - }; - exports2.InvalidRestoreTimeException = InvalidRestoreTimeException; - var ReplicaAlreadyExistsException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ReplicaAlreadyExistsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ReplicaAlreadyExistsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ReplicaAlreadyExistsException.prototype); - } - }; - exports2.ReplicaAlreadyExistsException = ReplicaAlreadyExistsException; - var ReplicaNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"ReplicaNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ReplicaNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ReplicaNotFoundException.prototype); - } - }; - exports2.ReplicaNotFoundException = ReplicaNotFoundException; - var IndexNotFoundException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"IndexNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IndexNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IndexNotFoundException.prototype); - } - }; - exports2.IndexNotFoundException = IndexNotFoundException; - var AttributeValue; - (function(AttributeValue2) { - AttributeValue2.visit = (value, visitor) => { - if (value.S !== void 0) - return visitor.S(value.S); - if (value.N !== void 0) - return visitor.N(value.N); - if (value.B !== void 0) - return visitor.B(value.B); - if (value.SS !== void 0) - return visitor.SS(value.SS); - if (value.NS !== void 0) - return visitor.NS(value.NS); - if (value.BS !== void 0) - return visitor.BS(value.BS); - if (value.M !== void 0) - return visitor.M(value.M); - if (value.L !== void 0) - return visitor.L(value.L); - if (value.NULL !== void 0) - return visitor.NULL(value.NULL); - if (value.BOOL !== void 0) - return visitor.BOOL(value.BOOL); - return visitor._(value.$unknown[0], value.$unknown[1]); - }; - })(AttributeValue = exports2.AttributeValue || (exports2.AttributeValue = {})); - var TransactionCanceledException = class extends DynamoDBServiceException_1.DynamoDBServiceException { - constructor(opts) { - super({ - name: \\"TransactionCanceledException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TransactionCanceledException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TransactionCanceledException.prototype); - this.Message = opts.Message; - this.CancellationReasons = opts.CancellationReasons; - } - }; - exports2.TransactionCanceledException = TransactionCanceledException; - var ArchivalSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ArchivalSummaryFilterSensitiveLog = ArchivalSummaryFilterSensitiveLog; - var AttributeDefinitionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AttributeDefinitionFilterSensitiveLog = AttributeDefinitionFilterSensitiveLog; - var AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationDescriptionFilterSensitiveLog; - var AutoScalingPolicyDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingPolicyDescriptionFilterSensitiveLog = AutoScalingPolicyDescriptionFilterSensitiveLog; - var AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog = AutoScalingTargetTrackingScalingPolicyConfigurationUpdateFilterSensitiveLog; - var AutoScalingPolicyUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingPolicyUpdateFilterSensitiveLog = AutoScalingPolicyUpdateFilterSensitiveLog; - var AutoScalingSettingsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingSettingsDescriptionFilterSensitiveLog = AutoScalingSettingsDescriptionFilterSensitiveLog; - var AutoScalingSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AutoScalingSettingsUpdateFilterSensitiveLog = AutoScalingSettingsUpdateFilterSensitiveLog; - var BackupDetailsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BackupDetailsFilterSensitiveLog = BackupDetailsFilterSensitiveLog; - var KeySchemaElementFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KeySchemaElementFilterSensitiveLog = KeySchemaElementFilterSensitiveLog; - var ProvisionedThroughputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProvisionedThroughputFilterSensitiveLog = ProvisionedThroughputFilterSensitiveLog; - var SourceTableDetailsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SourceTableDetailsFilterSensitiveLog = SourceTableDetailsFilterSensitiveLog; - var ProjectionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProjectionFilterSensitiveLog = ProjectionFilterSensitiveLog; - var GlobalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexInfoFilterSensitiveLog = GlobalSecondaryIndexInfoFilterSensitiveLog; - var LocalSecondaryIndexInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.LocalSecondaryIndexInfoFilterSensitiveLog = LocalSecondaryIndexInfoFilterSensitiveLog; - var SSEDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SSEDescriptionFilterSensitiveLog = SSEDescriptionFilterSensitiveLog; - var StreamSpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.StreamSpecificationFilterSensitiveLog = StreamSpecificationFilterSensitiveLog; - var TimeToLiveDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TimeToLiveDescriptionFilterSensitiveLog = TimeToLiveDescriptionFilterSensitiveLog; - var SourceTableFeatureDetailsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SourceTableFeatureDetailsFilterSensitiveLog = SourceTableFeatureDetailsFilterSensitiveLog; - var BackupDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BackupDescriptionFilterSensitiveLog = BackupDescriptionFilterSensitiveLog; - var BackupSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BackupSummaryFilterSensitiveLog = BackupSummaryFilterSensitiveLog; - var CapacityFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CapacityFilterSensitiveLog = CapacityFilterSensitiveLog; - var ConsumedCapacityFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ConsumedCapacityFilterSensitiveLog = ConsumedCapacityFilterSensitiveLog; - var BatchStatementErrorFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BatchStatementErrorFilterSensitiveLog = BatchStatementErrorFilterSensitiveLog; - var BillingModeSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.BillingModeSummaryFilterSensitiveLog = BillingModeSummaryFilterSensitiveLog; - var PointInTimeRecoveryDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.PointInTimeRecoveryDescriptionFilterSensitiveLog = PointInTimeRecoveryDescriptionFilterSensitiveLog; - var ContinuousBackupsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ContinuousBackupsDescriptionFilterSensitiveLog = ContinuousBackupsDescriptionFilterSensitiveLog; - var ContributorInsightsSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ContributorInsightsSummaryFilterSensitiveLog = ContributorInsightsSummaryFilterSensitiveLog; - var CreateBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateBackupInputFilterSensitiveLog = CreateBackupInputFilterSensitiveLog; - var CreateBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateBackupOutputFilterSensitiveLog = CreateBackupOutputFilterSensitiveLog; - var CreateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateGlobalSecondaryIndexActionFilterSensitiveLog = CreateGlobalSecondaryIndexActionFilterSensitiveLog; - var ReplicaFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaFilterSensitiveLog = ReplicaFilterSensitiveLog; - var CreateGlobalTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateGlobalTableInputFilterSensitiveLog = CreateGlobalTableInputFilterSensitiveLog; - var ProvisionedThroughputOverrideFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProvisionedThroughputOverrideFilterSensitiveLog = ProvisionedThroughputOverrideFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexDescriptionFilterSensitiveLog; - var TableClassSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableClassSummaryFilterSensitiveLog = TableClassSummaryFilterSensitiveLog; - var ReplicaDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaDescriptionFilterSensitiveLog = ReplicaDescriptionFilterSensitiveLog; - var GlobalTableDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalTableDescriptionFilterSensitiveLog = GlobalTableDescriptionFilterSensitiveLog; - var CreateGlobalTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateGlobalTableOutputFilterSensitiveLog = CreateGlobalTableOutputFilterSensitiveLog; - var CreateReplicaActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateReplicaActionFilterSensitiveLog = CreateReplicaActionFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexFilterSensitiveLog = ReplicaGlobalSecondaryIndexFilterSensitiveLog; - var CreateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateReplicationGroupMemberActionFilterSensitiveLog = CreateReplicationGroupMemberActionFilterSensitiveLog; - var GlobalSecondaryIndexFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexFilterSensitiveLog = GlobalSecondaryIndexFilterSensitiveLog; - var LocalSecondaryIndexFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.LocalSecondaryIndexFilterSensitiveLog = LocalSecondaryIndexFilterSensitiveLog; - var SSESpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.SSESpecificationFilterSensitiveLog = SSESpecificationFilterSensitiveLog; - var TagFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; - var CreateTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateTableInputFilterSensitiveLog = CreateTableInputFilterSensitiveLog; - var ProvisionedThroughputDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ProvisionedThroughputDescriptionFilterSensitiveLog = ProvisionedThroughputDescriptionFilterSensitiveLog; - var GlobalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexDescriptionFilterSensitiveLog = GlobalSecondaryIndexDescriptionFilterSensitiveLog; - var LocalSecondaryIndexDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.LocalSecondaryIndexDescriptionFilterSensitiveLog = LocalSecondaryIndexDescriptionFilterSensitiveLog; - var RestoreSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreSummaryFilterSensitiveLog = RestoreSummaryFilterSensitiveLog; - var TableDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableDescriptionFilterSensitiveLog = TableDescriptionFilterSensitiveLog; - var CreateTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CreateTableOutputFilterSensitiveLog = CreateTableOutputFilterSensitiveLog; - var CsvOptionsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CsvOptionsFilterSensitiveLog = CsvOptionsFilterSensitiveLog; - var DeleteBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteBackupInputFilterSensitiveLog = DeleteBackupInputFilterSensitiveLog; - var DeleteBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteBackupOutputFilterSensitiveLog = DeleteBackupOutputFilterSensitiveLog; - var DeleteGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteGlobalSecondaryIndexActionFilterSensitiveLog = DeleteGlobalSecondaryIndexActionFilterSensitiveLog; - var DeleteReplicaActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteReplicaActionFilterSensitiveLog = DeleteReplicaActionFilterSensitiveLog; - var DeleteReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteReplicationGroupMemberActionFilterSensitiveLog = DeleteReplicationGroupMemberActionFilterSensitiveLog; - var DeleteTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteTableInputFilterSensitiveLog = DeleteTableInputFilterSensitiveLog; - var DeleteTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DeleteTableOutputFilterSensitiveLog = DeleteTableOutputFilterSensitiveLog; - var DescribeBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeBackupInputFilterSensitiveLog = DescribeBackupInputFilterSensitiveLog; - var DescribeBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeBackupOutputFilterSensitiveLog = DescribeBackupOutputFilterSensitiveLog; - var DescribeContinuousBackupsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContinuousBackupsInputFilterSensitiveLog = DescribeContinuousBackupsInputFilterSensitiveLog; - var DescribeContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContinuousBackupsOutputFilterSensitiveLog = DescribeContinuousBackupsOutputFilterSensitiveLog; - var DescribeContributorInsightsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContributorInsightsInputFilterSensitiveLog = DescribeContributorInsightsInputFilterSensitiveLog; - var FailureExceptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.FailureExceptionFilterSensitiveLog = FailureExceptionFilterSensitiveLog; - var DescribeContributorInsightsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeContributorInsightsOutputFilterSensitiveLog = DescribeContributorInsightsOutputFilterSensitiveLog; - var DescribeEndpointsRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeEndpointsRequestFilterSensitiveLog = DescribeEndpointsRequestFilterSensitiveLog; - var EndpointFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.EndpointFilterSensitiveLog = EndpointFilterSensitiveLog; - var DescribeEndpointsResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeEndpointsResponseFilterSensitiveLog = DescribeEndpointsResponseFilterSensitiveLog; - var DescribeExportInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeExportInputFilterSensitiveLog = DescribeExportInputFilterSensitiveLog; - var ExportDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportDescriptionFilterSensitiveLog = ExportDescriptionFilterSensitiveLog; - var DescribeExportOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeExportOutputFilterSensitiveLog = DescribeExportOutputFilterSensitiveLog; - var DescribeGlobalTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableInputFilterSensitiveLog = DescribeGlobalTableInputFilterSensitiveLog; - var DescribeGlobalTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableOutputFilterSensitiveLog = DescribeGlobalTableOutputFilterSensitiveLog; - var DescribeGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableSettingsInputFilterSensitiveLog = DescribeGlobalTableSettingsInputFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog; - var ReplicaSettingsDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaSettingsDescriptionFilterSensitiveLog = ReplicaSettingsDescriptionFilterSensitiveLog; - var DescribeGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeGlobalTableSettingsOutputFilterSensitiveLog = DescribeGlobalTableSettingsOutputFilterSensitiveLog; - var DescribeImportInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeImportInputFilterSensitiveLog = DescribeImportInputFilterSensitiveLog; - var InputFormatOptionsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.InputFormatOptionsFilterSensitiveLog = InputFormatOptionsFilterSensitiveLog; - var S3BucketSourceFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.S3BucketSourceFilterSensitiveLog = S3BucketSourceFilterSensitiveLog; - var TableCreationParametersFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableCreationParametersFilterSensitiveLog = TableCreationParametersFilterSensitiveLog; - var ImportTableDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ImportTableDescriptionFilterSensitiveLog = ImportTableDescriptionFilterSensitiveLog; - var DescribeImportOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeImportOutputFilterSensitiveLog = DescribeImportOutputFilterSensitiveLog; - var DescribeKinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeKinesisStreamingDestinationInputFilterSensitiveLog = DescribeKinesisStreamingDestinationInputFilterSensitiveLog; - var KinesisDataStreamDestinationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KinesisDataStreamDestinationFilterSensitiveLog = KinesisDataStreamDestinationFilterSensitiveLog; - var DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = DescribeKinesisStreamingDestinationOutputFilterSensitiveLog; - var DescribeLimitsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeLimitsInputFilterSensitiveLog = DescribeLimitsInputFilterSensitiveLog; - var DescribeLimitsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeLimitsOutputFilterSensitiveLog = DescribeLimitsOutputFilterSensitiveLog; - var DescribeTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableInputFilterSensitiveLog = DescribeTableInputFilterSensitiveLog; - var DescribeTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableOutputFilterSensitiveLog = DescribeTableOutputFilterSensitiveLog; - var DescribeTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableReplicaAutoScalingInputFilterSensitiveLog = DescribeTableReplicaAutoScalingInputFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingDescriptionFilterSensitiveLog; - var ReplicaAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaAutoScalingDescriptionFilterSensitiveLog = ReplicaAutoScalingDescriptionFilterSensitiveLog; - var TableAutoScalingDescriptionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TableAutoScalingDescriptionFilterSensitiveLog = TableAutoScalingDescriptionFilterSensitiveLog; - var DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog = DescribeTableReplicaAutoScalingOutputFilterSensitiveLog; - var DescribeTimeToLiveInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTimeToLiveInputFilterSensitiveLog = DescribeTimeToLiveInputFilterSensitiveLog; - var DescribeTimeToLiveOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DescribeTimeToLiveOutputFilterSensitiveLog = DescribeTimeToLiveOutputFilterSensitiveLog; - var KinesisStreamingDestinationInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KinesisStreamingDestinationInputFilterSensitiveLog = KinesisStreamingDestinationInputFilterSensitiveLog; - var KinesisStreamingDestinationOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.KinesisStreamingDestinationOutputFilterSensitiveLog = KinesisStreamingDestinationOutputFilterSensitiveLog; - var ExportTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportTableToPointInTimeInputFilterSensitiveLog = ExportTableToPointInTimeInputFilterSensitiveLog; - var ExportTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportTableToPointInTimeOutputFilterSensitiveLog = ExportTableToPointInTimeOutputFilterSensitiveLog; - var ImportTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ImportTableInputFilterSensitiveLog = ImportTableInputFilterSensitiveLog; - var ImportTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ImportTableOutputFilterSensitiveLog = ImportTableOutputFilterSensitiveLog; - var ListBackupsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListBackupsInputFilterSensitiveLog = ListBackupsInputFilterSensitiveLog; - var ListBackupsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListBackupsOutputFilterSensitiveLog = ListBackupsOutputFilterSensitiveLog; - var ListContributorInsightsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListContributorInsightsInputFilterSensitiveLog = ListContributorInsightsInputFilterSensitiveLog; - var ListContributorInsightsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListContributorInsightsOutputFilterSensitiveLog = ListContributorInsightsOutputFilterSensitiveLog; - var ListExportsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListExportsInputFilterSensitiveLog = ListExportsInputFilterSensitiveLog; - var ExportSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ExportSummaryFilterSensitiveLog = ExportSummaryFilterSensitiveLog; - var ListExportsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListExportsOutputFilterSensitiveLog = ListExportsOutputFilterSensitiveLog; - var ListGlobalTablesInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListGlobalTablesInputFilterSensitiveLog = ListGlobalTablesInputFilterSensitiveLog; - var GlobalTableFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalTableFilterSensitiveLog = GlobalTableFilterSensitiveLog; - var ListGlobalTablesOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListGlobalTablesOutputFilterSensitiveLog = ListGlobalTablesOutputFilterSensitiveLog; - var ListImportsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListImportsInputFilterSensitiveLog = ListImportsInputFilterSensitiveLog; - var ImportSummaryFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ImportSummaryFilterSensitiveLog = ImportSummaryFilterSensitiveLog; - var ListImportsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListImportsOutputFilterSensitiveLog = ListImportsOutputFilterSensitiveLog; - var ListTablesInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTablesInputFilterSensitiveLog = ListTablesInputFilterSensitiveLog; - var ListTablesOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTablesOutputFilterSensitiveLog = ListTablesOutputFilterSensitiveLog; - var ListTagsOfResourceInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTagsOfResourceInputFilterSensitiveLog = ListTagsOfResourceInputFilterSensitiveLog; - var ListTagsOfResourceOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListTagsOfResourceOutputFilterSensitiveLog = ListTagsOfResourceOutputFilterSensitiveLog; - var RestoreTableFromBackupInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableFromBackupInputFilterSensitiveLog = RestoreTableFromBackupInputFilterSensitiveLog; - var RestoreTableFromBackupOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableFromBackupOutputFilterSensitiveLog = RestoreTableFromBackupOutputFilterSensitiveLog; - var RestoreTableToPointInTimeInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableToPointInTimeInputFilterSensitiveLog = RestoreTableToPointInTimeInputFilterSensitiveLog; - var RestoreTableToPointInTimeOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RestoreTableToPointInTimeOutputFilterSensitiveLog = RestoreTableToPointInTimeOutputFilterSensitiveLog; - var TagResourceInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TagResourceInputFilterSensitiveLog = TagResourceInputFilterSensitiveLog; - var UntagResourceInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UntagResourceInputFilterSensitiveLog = UntagResourceInputFilterSensitiveLog; - var PointInTimeRecoverySpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.PointInTimeRecoverySpecificationFilterSensitiveLog = PointInTimeRecoverySpecificationFilterSensitiveLog; - var UpdateContinuousBackupsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContinuousBackupsInputFilterSensitiveLog = UpdateContinuousBackupsInputFilterSensitiveLog; - var UpdateContinuousBackupsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContinuousBackupsOutputFilterSensitiveLog = UpdateContinuousBackupsOutputFilterSensitiveLog; - var UpdateContributorInsightsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContributorInsightsInputFilterSensitiveLog = UpdateContributorInsightsInputFilterSensitiveLog; - var UpdateContributorInsightsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateContributorInsightsOutputFilterSensitiveLog = UpdateContributorInsightsOutputFilterSensitiveLog; - var ReplicaUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaUpdateFilterSensitiveLog = ReplicaUpdateFilterSensitiveLog; - var UpdateGlobalTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableInputFilterSensitiveLog = UpdateGlobalTableInputFilterSensitiveLog; - var UpdateGlobalTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableOutputFilterSensitiveLog = UpdateGlobalTableOutputFilterSensitiveLog; - var GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = GlobalTableGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexSettingsUpdateFilterSensitiveLog; - var ReplicaSettingsUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaSettingsUpdateFilterSensitiveLog = ReplicaSettingsUpdateFilterSensitiveLog; - var UpdateGlobalTableSettingsInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableSettingsInputFilterSensitiveLog = UpdateGlobalTableSettingsInputFilterSensitiveLog; - var UpdateGlobalTableSettingsOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalTableSettingsOutputFilterSensitiveLog = UpdateGlobalTableSettingsOutputFilterSensitiveLog; - var UpdateGlobalSecondaryIndexActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateGlobalSecondaryIndexActionFilterSensitiveLog = UpdateGlobalSecondaryIndexActionFilterSensitiveLog; - var GlobalSecondaryIndexUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexUpdateFilterSensitiveLog = GlobalSecondaryIndexUpdateFilterSensitiveLog; - var UpdateReplicationGroupMemberActionFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateReplicationGroupMemberActionFilterSensitiveLog = UpdateReplicationGroupMemberActionFilterSensitiveLog; - var ReplicationGroupUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicationGroupUpdateFilterSensitiveLog = ReplicationGroupUpdateFilterSensitiveLog; - var UpdateTableInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableInputFilterSensitiveLog = UpdateTableInputFilterSensitiveLog; - var UpdateTableOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableOutputFilterSensitiveLog = UpdateTableOutputFilterSensitiveLog; - var GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = GlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; - var ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog = ReplicaGlobalSecondaryIndexAutoScalingUpdateFilterSensitiveLog; - var ReplicaAutoScalingUpdateFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ReplicaAutoScalingUpdateFilterSensitiveLog = ReplicaAutoScalingUpdateFilterSensitiveLog; - var UpdateTableReplicaAutoScalingInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableReplicaAutoScalingInputFilterSensitiveLog = UpdateTableReplicaAutoScalingInputFilterSensitiveLog; - var UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog = UpdateTableReplicaAutoScalingOutputFilterSensitiveLog; - var TimeToLiveSpecificationFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TimeToLiveSpecificationFilterSensitiveLog = TimeToLiveSpecificationFilterSensitiveLog; - var UpdateTimeToLiveInputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTimeToLiveInputFilterSensitiveLog = UpdateTimeToLiveInputFilterSensitiveLog; - var UpdateTimeToLiveOutputFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.UpdateTimeToLiveOutputFilterSensitiveLog = UpdateTimeToLiveOutputFilterSensitiveLog; - var AttributeValueFilterSensitiveLog = (obj) => { - if (obj.S !== void 0) - return { S: obj.S }; - if (obj.N !== void 0) - return { N: obj.N }; - if (obj.B !== void 0) - return { B: obj.B }; - if (obj.SS !== void 0) - return { SS: obj.SS }; - if (obj.NS !== void 0) - return { NS: obj.NS }; - if (obj.BS !== void 0) - return { BS: obj.BS }; - if (obj.M !== void 0) - return { - M: Object.entries(obj.M).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }; - if (obj.L !== void 0) - return { L: obj.L.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) }; - if (obj.NULL !== void 0) - return { NULL: obj.NULL }; - if (obj.BOOL !== void 0) - return { BOOL: obj.BOOL }; - if (obj.$unknown !== void 0) - return { [obj.$unknown[0]]: \\"UNKNOWN\\" }; - }; - exports2.AttributeValueFilterSensitiveLog = AttributeValueFilterSensitiveLog; - var AttributeValueUpdateFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) } - }); - exports2.AttributeValueUpdateFilterSensitiveLog = AttributeValueUpdateFilterSensitiveLog; - var BatchStatementRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } - }); - exports2.BatchStatementRequestFilterSensitiveLog = BatchStatementRequestFilterSensitiveLog; - var BatchStatementResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.BatchStatementResponseFilterSensitiveLog = BatchStatementResponseFilterSensitiveLog; - var CancellationReasonFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.CancellationReasonFilterSensitiveLog = CancellationReasonFilterSensitiveLog; - var ConditionFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.AttributeValueList && { - AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) - } - }); - exports2.ConditionFilterSensitiveLog = ConditionFilterSensitiveLog; - var DeleteRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.DeleteRequestFilterSensitiveLog = DeleteRequestFilterSensitiveLog; - var ExecuteStatementInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } - }); - exports2.ExecuteStatementInputFilterSensitiveLog = ExecuteStatementInputFilterSensitiveLog; - var GetFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.GetFilterSensitiveLog = GetFilterSensitiveLog; - var GetItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.GetItemInputFilterSensitiveLog = GetItemInputFilterSensitiveLog; - var GetItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.GetItemOutputFilterSensitiveLog = GetItemOutputFilterSensitiveLog; - var ItemCollectionMetricsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ItemCollectionKey && { - ItemCollectionKey: Object.entries(obj.ItemCollectionKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ItemCollectionMetricsFilterSensitiveLog = ItemCollectionMetricsFilterSensitiveLog; - var ItemResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ItemResponseFilterSensitiveLog = ItemResponseFilterSensitiveLog; - var ParameterizedStatementFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) } - }); - exports2.ParameterizedStatementFilterSensitiveLog = ParameterizedStatementFilterSensitiveLog; - var PutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.PutRequestFilterSensitiveLog = PutRequestFilterSensitiveLog; - var KeysAndAttributesFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Keys && { - Keys: obj.Keys.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - } - }); - exports2.KeysAndAttributesFilterSensitiveLog = KeysAndAttributesFilterSensitiveLog; - var TransactGetItemFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Get && { Get: (0, exports2.GetFilterSensitiveLog)(obj.Get) } - }); - exports2.TransactGetItemFilterSensitiveLog = TransactGetItemFilterSensitiveLog; - var BatchExecuteStatementInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Statements && { Statements: obj.Statements.map((item) => (0, exports2.BatchStatementRequestFilterSensitiveLog)(item)) } - }); - exports2.BatchExecuteStatementInputFilterSensitiveLog = BatchExecuteStatementInputFilterSensitiveLog; - var BatchExecuteStatementOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.BatchStatementResponseFilterSensitiveLog)(item)) } - }); - exports2.BatchExecuteStatementOutputFilterSensitiveLog = BatchExecuteStatementOutputFilterSensitiveLog; - var ExecuteTransactionInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.TransactStatements && { - TransactStatements: obj.TransactStatements.map((item) => (0, exports2.ParameterizedStatementFilterSensitiveLog)(item)) - } - }); - exports2.ExecuteTransactionInputFilterSensitiveLog = ExecuteTransactionInputFilterSensitiveLog; - var ExecuteTransactionOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } - }); - exports2.ExecuteTransactionOutputFilterSensitiveLog = ExecuteTransactionOutputFilterSensitiveLog; - var TransactGetItemsOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { Responses: obj.Responses.map((item) => (0, exports2.ItemResponseFilterSensitiveLog)(item)) } - }); - exports2.TransactGetItemsOutputFilterSensitiveLog = TransactGetItemsOutputFilterSensitiveLog; - var BatchGetItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.RequestItems && { - RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.BatchGetItemInputFilterSensitiveLog = BatchGetItemInputFilterSensitiveLog; - var ExpectedAttributeValueFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Value && { Value: (0, exports2.AttributeValueFilterSensitiveLog)(obj.Value) }, - ...obj.AttributeValueList && { - AttributeValueList: obj.AttributeValueList.map((item) => (0, exports2.AttributeValueFilterSensitiveLog)(item)) - } - }); - exports2.ExpectedAttributeValueFilterSensitiveLog = ExpectedAttributeValueFilterSensitiveLog; - var TransactGetItemsInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.TransactItems && { TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactGetItemFilterSensitiveLog)(item)) } - }); - exports2.TransactGetItemsInputFilterSensitiveLog = TransactGetItemsInputFilterSensitiveLog; - var TransactWriteItemsOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) - }), {}) - } - }); - exports2.TransactWriteItemsOutputFilterSensitiveLog = TransactWriteItemsOutputFilterSensitiveLog; - var ConditionCheckFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ConditionCheckFilterSensitiveLog = ConditionCheckFilterSensitiveLog; - var DeleteFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.DeleteFilterSensitiveLog = DeleteFilterSensitiveLog; - var PutFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.PutFilterSensitiveLog = PutFilterSensitiveLog; - var UpdateFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.UpdateFilterSensitiveLog = UpdateFilterSensitiveLog; - var DeleteItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Attributes && { - Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) - } - }); - exports2.DeleteItemOutputFilterSensitiveLog = DeleteItemOutputFilterSensitiveLog; - var ExecuteStatementOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Items && { - Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - }, - ...obj.LastEvaluatedKey && { - LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ExecuteStatementOutputFilterSensitiveLog = ExecuteStatementOutputFilterSensitiveLog; - var PutItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Attributes && { - Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) - } - }); - exports2.PutItemOutputFilterSensitiveLog = PutItemOutputFilterSensitiveLog; - var QueryOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Items && { - Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - }, - ...obj.LastEvaluatedKey && { - LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.QueryOutputFilterSensitiveLog = QueryOutputFilterSensitiveLog; - var ScanOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Items && { - Items: obj.Items.map((item) => Object.entries(item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {})) - }, - ...obj.LastEvaluatedKey && { - LastEvaluatedKey: Object.entries(obj.LastEvaluatedKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ScanOutputFilterSensitiveLog = ScanOutputFilterSensitiveLog; - var UpdateItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Attributes && { - Attributes: Object.entries(obj.Attributes).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(obj.ItemCollectionMetrics) - } - }); - exports2.UpdateItemOutputFilterSensitiveLog = UpdateItemOutputFilterSensitiveLog; - var WriteRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.PutRequest && { PutRequest: (0, exports2.PutRequestFilterSensitiveLog)(obj.PutRequest) }, - ...obj.DeleteRequest && { DeleteRequest: (0, exports2.DeleteRequestFilterSensitiveLog)(obj.DeleteRequest) } - }); - exports2.WriteRequestFilterSensitiveLog = WriteRequestFilterSensitiveLog; - var BatchGetItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Responses && { - Responses: Object.entries(obj.Responses).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => Object.entries(item).reduce((acc2, [key2, value2]) => ({ - ...acc2, - [key2]: (0, exports2.AttributeValueFilterSensitiveLog)(value2) - }), {})) - }), {}) - }, - ...obj.UnprocessedKeys && { - UnprocessedKeys: Object.entries(obj.UnprocessedKeys).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.KeysAndAttributesFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.BatchGetItemOutputFilterSensitiveLog = BatchGetItemOutputFilterSensitiveLog; - var ScanInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ScanFilter && { - ScanFilter: Object.entries(obj.ScanFilter).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ConditionFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExclusiveStartKey && { - ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.ScanInputFilterSensitiveLog = ScanInputFilterSensitiveLog; - var BatchWriteItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.RequestItems && { - RequestItems: Object.entries(obj.RequestItems).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) - }), {}) - } - }); - exports2.BatchWriteItemInputFilterSensitiveLog = BatchWriteItemInputFilterSensitiveLog; - var DeleteItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.Expected && { - Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.DeleteItemInputFilterSensitiveLog = DeleteItemInputFilterSensitiveLog; - var PutItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Item && { - Item: Object.entries(obj.Item).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.Expected && { - Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.PutItemInputFilterSensitiveLog = PutItemInputFilterSensitiveLog; - var QueryInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.KeyConditions && { - KeyConditions: Object.entries(obj.KeyConditions).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ConditionFilterSensitiveLog)(value) - }), {}) - }, - ...obj.QueryFilter && { - QueryFilter: Object.entries(obj.QueryFilter).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ConditionFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExclusiveStartKey && { - ExclusiveStartKey: Object.entries(obj.ExclusiveStartKey).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.QueryInputFilterSensitiveLog = QueryInputFilterSensitiveLog; - var BatchWriteItemOutputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.UnprocessedItems && { - UnprocessedItems: Object.entries(obj.UnprocessedItems).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.WriteRequestFilterSensitiveLog)(item)) - }), {}) - }, - ...obj.ItemCollectionMetrics && { - ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce((acc, [key, value]) => ({ - ...acc, - [key]: value.map((item) => (0, exports2.ItemCollectionMetricsFilterSensitiveLog)(item)) - }), {}) - } - }); - exports2.BatchWriteItemOutputFilterSensitiveLog = BatchWriteItemOutputFilterSensitiveLog; - var UpdateItemInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.Key && { - Key: Object.entries(obj.Key).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.AttributeUpdates && { - AttributeUpdates: Object.entries(obj.AttributeUpdates).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueUpdateFilterSensitiveLog)(value) - }), {}) - }, - ...obj.Expected && { - Expected: Object.entries(obj.Expected).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.ExpectedAttributeValueFilterSensitiveLog)(value) - }), {}) - }, - ...obj.ExpressionAttributeValues && { - ExpressionAttributeValues: Object.entries(obj.ExpressionAttributeValues).reduce((acc, [key, value]) => ({ - ...acc, - [key]: (0, exports2.AttributeValueFilterSensitiveLog)(value) - }), {}) - } - }); - exports2.UpdateItemInputFilterSensitiveLog = UpdateItemInputFilterSensitiveLog; - var TransactWriteItemFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.ConditionCheck && { ConditionCheck: (0, exports2.ConditionCheckFilterSensitiveLog)(obj.ConditionCheck) }, - ...obj.Put && { Put: (0, exports2.PutFilterSensitiveLog)(obj.Put) }, - ...obj.Delete && { Delete: (0, exports2.DeleteFilterSensitiveLog)(obj.Delete) }, - ...obj.Update && { Update: (0, exports2.UpdateFilterSensitiveLog)(obj.Update) } - }); - exports2.TransactWriteItemFilterSensitiveLog = TransactWriteItemFilterSensitiveLog; - var TransactWriteItemsInputFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.TransactItems && { - TransactItems: obj.TransactItems.map((item) => (0, exports2.TransactWriteItemFilterSensitiveLog)(item)) - } - }); - exports2.TransactWriteItemsInputFilterSensitiveLog = TransactWriteItemsInputFilterSensitiveLog; - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js -var require_httpHandler = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpHandler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js -var require_httpRequest = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.HttpRequest = void 0; - var HttpRequest = class { - constructor(options) { - this.method = options.method || \\"GET\\"; - this.hostname = options.hostname || \\"localhost\\"; - this.port = options.port; - this.query = options.query || {}; - this.headers = options.headers || {}; - this.body = options.body; - this.protocol = options.protocol ? options.protocol.slice(-1) !== \\":\\" ? \`\${options.protocol}:\` : options.protocol : \\"https:\\"; - this.path = options.path ? options.path.charAt(0) !== \\"/\\" ? \`/\${options.path}\` : options.path : \\"/\\"; - } - static isInstance(request) { - if (!request) - return false; - const req = request; - return \\"method\\" in req && \\"protocol\\" in req && \\"hostname\\" in req && \\"path\\" in req && typeof req[\\"query\\"] === \\"object\\" && typeof req[\\"headers\\"] === \\"object\\"; - } - clone() { - const cloned = new HttpRequest({ - ...this, - headers: { ...this.headers } - }); - if (cloned.query) - cloned.query = cloneQuery(cloned.query); - return cloned; - } - }; - exports2.HttpRequest = HttpRequest; - function cloneQuery(query) { - return Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param - }; - }, {}); - } - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js -var require_httpResponse = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/httpResponse.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.HttpResponse = void 0; - var HttpResponse = class { - constructor(options) { - this.statusCode = options.statusCode; - this.headers = options.headers || {}; - this.body = options.body; - } - static isInstance(response) { - if (!response) - return false; - const resp = response; - return typeof resp.statusCode === \\"number\\" && typeof resp.headers === \\"object\\"; - } - }; - exports2.HttpResponse = HttpResponse; - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js -var require_isValidHostname = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/isValidHostname.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isValidHostname = void 0; - function isValidHostname(hostname) { - const hostPattern = /^[a-z0-9][a-z0-9\\\\.\\\\-]*[a-z0-9]$/; - return hostPattern.test(hostname); - } - exports2.isValidHostname = isValidHostname; - } -}); - -// node_modules/@aws-sdk/protocol-http/dist-cjs/index.js -var require_dist_cjs4 = __commonJS({ - \\"node_modules/@aws-sdk/protocol-http/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_httpHandler(), exports2); - tslib_1.__exportStar(require_httpRequest(), exports2); - tslib_1.__exportStar(require_httpResponse(), exports2); - tslib_1.__exportStar(require_isValidHostname(), exports2); - } -}); - -// node_modules/uuid/dist/rng.js -var require_rng = __commonJS({ - \\"node_modules/uuid/dist/rng.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = rng; - var _crypto = _interopRequireDefault(require(\\"crypto\\")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var rnds8Pool = new Uint8Array(256); - var poolPtr = rnds8Pool.length; - function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - poolPtr = 0; - } - return rnds8Pool.slice(poolPtr, poolPtr += 16); - } - } -}); - -// node_modules/uuid/dist/regex.js -var require_regex = __commonJS({ - \\"node_modules/uuid/dist/regex.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/validate.js -var require_validate = __commonJS({ - \\"node_modules/uuid/dist/validate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _regex = _interopRequireDefault(require_regex()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function validate(uuid) { - return typeof uuid === \\"string\\" && _regex.default.test(uuid); - } - var _default = validate; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/stringify.js -var require_stringify = __commonJS({ - \\"node_modules/uuid/dist/stringify.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var byteToHex = []; - for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 256).toString(16).substr(1)); - } - function stringify(arr, offset = 0) { - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + \\"-\\" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + \\"-\\" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + \\"-\\" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + \\"-\\" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); - if (!(0, _validate.default)(uuid)) { - throw TypeError(\\"Stringified UUID is invalid\\"); - } - return uuid; - } - var _default = stringify; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v1.js -var require_v1 = __commonJS({ - \\"node_modules/uuid/dist/v1.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _rng = _interopRequireDefault(require_rng()); - var _stringify = _interopRequireDefault(require_stringify()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var _nodeId; - var _clockseq; - var _lastMSecs = 0; - var _lastNSecs = 0; - function v12(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq; - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - if (node == null) { - node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - if (clockseq == null) { - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383; - } - } - let msecs = options.msecs !== void 0 ? options.msecs : Date.now(); - let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1; - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4; - if (dt < 0 && options.clockseq === void 0) { - clockseq = clockseq + 1 & 16383; - } - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) { - nsecs = 0; - } - if (nsecs >= 1e4) { - throw new Error(\\"uuid.v1(): Can't create more than 10M uuids/sec\\"); - } - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; - msecs += 122192928e5; - const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296; - b[i++] = tl >>> 24 & 255; - b[i++] = tl >>> 16 & 255; - b[i++] = tl >>> 8 & 255; - b[i++] = tl & 255; - const tmh = msecs / 4294967296 * 1e4 & 268435455; - b[i++] = tmh >>> 8 & 255; - b[i++] = tmh & 255; - b[i++] = tmh >>> 24 & 15 | 16; - b[i++] = tmh >>> 16 & 255; - b[i++] = clockseq >>> 8 | 128; - b[i++] = clockseq & 255; - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - return buf || (0, _stringify.default)(b); - } - var _default = v12; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/parse.js -var require_parse = __commonJS({ - \\"node_modules/uuid/dist/parse.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError(\\"Invalid UUID\\"); - } - let v; - const arr = new Uint8Array(16); - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 255; - arr[2] = v >>> 8 & 255; - arr[3] = v & 255; - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 255; - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 255; - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 255; - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255; - arr[11] = v / 4294967296 & 255; - arr[12] = v >>> 24 & 255; - arr[13] = v >>> 16 & 255; - arr[14] = v >>> 8 & 255; - arr[15] = v & 255; - return arr; - } - var _default = parse; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v35.js -var require_v35 = __commonJS({ - \\"node_modules/uuid/dist/v35.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = _default; - exports2.URL = exports2.DNS = void 0; - var _stringify = _interopRequireDefault(require_stringify()); - var _parse = _interopRequireDefault(require_parse()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); - const bytes = []; - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - return bytes; - } - var DNS = \\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\\"; - exports2.DNS = DNS; - var URL2 = \\"6ba7b811-9dad-11d1-80b4-00c04fd430c8\\"; - exports2.URL = URL2; - function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === \\"string\\") { - value = stringToBytes(value); - } - if (typeof namespace === \\"string\\") { - namespace = (0, _parse.default)(namespace); - } - if (namespace.length !== 16) { - throw TypeError(\\"Namespace must be array-like (16 iterable integer values, 0-255)\\"); - } - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 15 | version; - bytes[8] = bytes[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - return buf; - } - return (0, _stringify.default)(bytes); - } - try { - generateUUID.name = name; - } catch (err) { - } - generateUUID.DNS = DNS; - generateUUID.URL = URL2; - return generateUUID; - } - } -}); - -// node_modules/uuid/dist/md5.js -var require_md5 = __commonJS({ - \\"node_modules/uuid/dist/md5.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _crypto = _interopRequireDefault(require(\\"crypto\\")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === \\"string\\") { - bytes = Buffer.from(bytes, \\"utf8\\"); - } - return _crypto.default.createHash(\\"md5\\").update(bytes).digest(); - } - var _default = md5; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v3.js -var require_v3 = __commonJS({ - \\"node_modules/uuid/dist/v3.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _v = _interopRequireDefault(require_v35()); - var _md = _interopRequireDefault(require_md5()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var v32 = (0, _v.default)(\\"v3\\", 48, _md.default); - var _default = v32; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v4.js -var require_v4 = __commonJS({ - \\"node_modules/uuid/dist/v4.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _rng = _interopRequireDefault(require_rng()); - var _stringify = _interopRequireDefault(require_stringify()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function v4(options, buf, offset) { - options = options || {}; - const rnds = options.random || (options.rng || _rng.default)(); - rnds[6] = rnds[6] & 15 | 64; - rnds[8] = rnds[8] & 63 | 128; - if (buf) { - offset = offset || 0; - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - return buf; - } - return (0, _stringify.default)(rnds); - } - var _default = v4; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/sha1.js -var require_sha1 = __commonJS({ - \\"node_modules/uuid/dist/sha1.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _crypto = _interopRequireDefault(require(\\"crypto\\")); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === \\"string\\") { - bytes = Buffer.from(bytes, \\"utf8\\"); - } - return _crypto.default.createHash(\\"sha1\\").update(bytes).digest(); - } - var _default = sha1; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/v5.js -var require_v5 = __commonJS({ - \\"node_modules/uuid/dist/v5.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _v = _interopRequireDefault(require_v35()); - var _sha = _interopRequireDefault(require_sha1()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - var v5 = (0, _v.default)(\\"v5\\", 80, _sha.default); - var _default = v5; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/nil.js -var require_nil = __commonJS({ - \\"node_modules/uuid/dist/nil.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _default = \\"00000000-0000-0000-0000-000000000000\\"; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/version.js -var require_version = __commonJS({ - \\"node_modules/uuid/dist/version.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - exports2.default = void 0; - var _validate = _interopRequireDefault(require_validate()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError(\\"Invalid UUID\\"); - } - return parseInt(uuid.substr(14, 1), 16); - } - var _default = version; - exports2.default = _default; - } -}); - -// node_modules/uuid/dist/index.js -var require_dist = __commonJS({ - \\"node_modules/uuid/dist/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { - value: true - }); - Object.defineProperty(exports2, \\"v1\\", { - enumerable: true, - get: function() { - return _v.default; - } - }); - Object.defineProperty(exports2, \\"v3\\", { - enumerable: true, - get: function() { - return _v2.default; - } - }); - Object.defineProperty(exports2, \\"v4\\", { - enumerable: true, - get: function() { - return _v3.default; - } - }); - Object.defineProperty(exports2, \\"v5\\", { - enumerable: true, - get: function() { - return _v4.default; - } - }); - Object.defineProperty(exports2, \\"NIL\\", { - enumerable: true, - get: function() { - return _nil.default; - } - }); - Object.defineProperty(exports2, \\"version\\", { - enumerable: true, - get: function() { - return _version.default; - } - }); - Object.defineProperty(exports2, \\"validate\\", { - enumerable: true, - get: function() { - return _validate.default; - } - }); - Object.defineProperty(exports2, \\"stringify\\", { - enumerable: true, - get: function() { - return _stringify.default; - } - }); - Object.defineProperty(exports2, \\"parse\\", { - enumerable: true, - get: function() { - return _parse.default; - } - }); - var _v = _interopRequireDefault(require_v1()); - var _v2 = _interopRequireDefault(require_v3()); - var _v3 = _interopRequireDefault(require_v4()); - var _v4 = _interopRequireDefault(require_v5()); - var _nil = _interopRequireDefault(require_nil()); - var _version = _interopRequireDefault(require_version()); - var _validate = _interopRequireDefault(require_validate()); - var _stringify = _interopRequireDefault(require_stringify()); - var _parse = _interopRequireDefault(require_parse()); - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj }; - } - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js -var require_Aws_json1_0 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/protocols/Aws_json1_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.serializeAws_json1_0UpdateItemCommand = exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.serializeAws_json1_0UpdateGlobalTableCommand = exports2.serializeAws_json1_0UpdateContributorInsightsCommand = exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = exports2.serializeAws_json1_0UntagResourceCommand = exports2.serializeAws_json1_0TransactWriteItemsCommand = exports2.serializeAws_json1_0TransactGetItemsCommand = exports2.serializeAws_json1_0TagResourceCommand = exports2.serializeAws_json1_0ScanCommand = exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.serializeAws_json1_0RestoreTableFromBackupCommand = exports2.serializeAws_json1_0QueryCommand = exports2.serializeAws_json1_0PutItemCommand = exports2.serializeAws_json1_0ListTagsOfResourceCommand = exports2.serializeAws_json1_0ListTablesCommand = exports2.serializeAws_json1_0ListImportsCommand = exports2.serializeAws_json1_0ListGlobalTablesCommand = exports2.serializeAws_json1_0ListExportsCommand = exports2.serializeAws_json1_0ListContributorInsightsCommand = exports2.serializeAws_json1_0ListBackupsCommand = exports2.serializeAws_json1_0ImportTableCommand = exports2.serializeAws_json1_0GetItemCommand = exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = exports2.serializeAws_json1_0ExecuteTransactionCommand = exports2.serializeAws_json1_0ExecuteStatementCommand = exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeTimeToLiveCommand = exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0DescribeTableCommand = exports2.serializeAws_json1_0DescribeLimitsCommand = exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.serializeAws_json1_0DescribeImportCommand = exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.serializeAws_json1_0DescribeGlobalTableCommand = exports2.serializeAws_json1_0DescribeExportCommand = exports2.serializeAws_json1_0DescribeEndpointsCommand = exports2.serializeAws_json1_0DescribeContributorInsightsCommand = exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = exports2.serializeAws_json1_0DescribeBackupCommand = exports2.serializeAws_json1_0DeleteTableCommand = exports2.serializeAws_json1_0DeleteItemCommand = exports2.serializeAws_json1_0DeleteBackupCommand = exports2.serializeAws_json1_0CreateTableCommand = exports2.serializeAws_json1_0CreateGlobalTableCommand = exports2.serializeAws_json1_0CreateBackupCommand = exports2.serializeAws_json1_0BatchWriteItemCommand = exports2.serializeAws_json1_0BatchGetItemCommand = exports2.serializeAws_json1_0BatchExecuteStatementCommand = void 0; - exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = exports2.deserializeAws_json1_0UntagResourceCommand = exports2.deserializeAws_json1_0TransactWriteItemsCommand = exports2.deserializeAws_json1_0TransactGetItemsCommand = exports2.deserializeAws_json1_0TagResourceCommand = exports2.deserializeAws_json1_0ScanCommand = exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = exports2.deserializeAws_json1_0QueryCommand = exports2.deserializeAws_json1_0PutItemCommand = exports2.deserializeAws_json1_0ListTagsOfResourceCommand = exports2.deserializeAws_json1_0ListTablesCommand = exports2.deserializeAws_json1_0ListImportsCommand = exports2.deserializeAws_json1_0ListGlobalTablesCommand = exports2.deserializeAws_json1_0ListExportsCommand = exports2.deserializeAws_json1_0ListContributorInsightsCommand = exports2.deserializeAws_json1_0ListBackupsCommand = exports2.deserializeAws_json1_0ImportTableCommand = exports2.deserializeAws_json1_0GetItemCommand = exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = exports2.deserializeAws_json1_0ExecuteTransactionCommand = exports2.deserializeAws_json1_0ExecuteStatementCommand = exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0DescribeTableCommand = exports2.deserializeAws_json1_0DescribeLimitsCommand = exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports2.deserializeAws_json1_0DescribeImportCommand = exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = exports2.deserializeAws_json1_0DescribeGlobalTableCommand = exports2.deserializeAws_json1_0DescribeExportCommand = exports2.deserializeAws_json1_0DescribeEndpointsCommand = exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = exports2.deserializeAws_json1_0DescribeBackupCommand = exports2.deserializeAws_json1_0DeleteTableCommand = exports2.deserializeAws_json1_0DeleteItemCommand = exports2.deserializeAws_json1_0DeleteBackupCommand = exports2.deserializeAws_json1_0CreateTableCommand = exports2.deserializeAws_json1_0CreateGlobalTableCommand = exports2.deserializeAws_json1_0CreateBackupCommand = exports2.deserializeAws_json1_0BatchWriteItemCommand = exports2.deserializeAws_json1_0BatchGetItemCommand = exports2.deserializeAws_json1_0BatchExecuteStatementCommand = exports2.serializeAws_json1_0UpdateTimeToLiveCommand = exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.serializeAws_json1_0UpdateTableCommand = void 0; - exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports2.deserializeAws_json1_0UpdateTableCommand = exports2.deserializeAws_json1_0UpdateItemCommand = exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = exports2.deserializeAws_json1_0UpdateGlobalTableCommand = void 0; - var protocol_http_1 = require_dist_cjs4(); - var smithy_client_1 = require_dist_cjs3(); - var uuid_1 = require_dist(); - var DynamoDBServiceException_1 = require_DynamoDBServiceException(); - var models_0_1 = require_models_0(); - var serializeAws_json1_0BatchExecuteStatementCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.BatchExecuteStatement\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0BatchExecuteStatementInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0BatchExecuteStatementCommand = serializeAws_json1_0BatchExecuteStatementCommand; - var serializeAws_json1_0BatchGetItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.BatchGetItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0BatchGetItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0BatchGetItemCommand = serializeAws_json1_0BatchGetItemCommand; - var serializeAws_json1_0BatchWriteItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.BatchWriteItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0BatchWriteItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0BatchWriteItemCommand = serializeAws_json1_0BatchWriteItemCommand; - var serializeAws_json1_0CreateBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.CreateBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0CreateBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0CreateBackupCommand = serializeAws_json1_0CreateBackupCommand; - var serializeAws_json1_0CreateGlobalTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.CreateGlobalTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0CreateGlobalTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0CreateGlobalTableCommand = serializeAws_json1_0CreateGlobalTableCommand; - var serializeAws_json1_0CreateTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.CreateTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0CreateTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0CreateTableCommand = serializeAws_json1_0CreateTableCommand; - var serializeAws_json1_0DeleteBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DeleteBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DeleteBackupCommand = serializeAws_json1_0DeleteBackupCommand; - var serializeAws_json1_0DeleteItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DeleteItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DeleteItemCommand = serializeAws_json1_0DeleteItemCommand; - var serializeAws_json1_0DeleteTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DeleteTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DeleteTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DeleteTableCommand = serializeAws_json1_0DeleteTableCommand; - var serializeAws_json1_0DescribeBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeBackupCommand = serializeAws_json1_0DescribeBackupCommand; - var serializeAws_json1_0DescribeContinuousBackupsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContinuousBackups\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeContinuousBackupsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeContinuousBackupsCommand = serializeAws_json1_0DescribeContinuousBackupsCommand; - var serializeAws_json1_0DescribeContributorInsightsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeContributorInsights\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeContributorInsightsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeContributorInsightsCommand = serializeAws_json1_0DescribeContributorInsightsCommand; - var serializeAws_json1_0DescribeEndpointsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeEndpoints\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeEndpointsRequest(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeEndpointsCommand = serializeAws_json1_0DescribeEndpointsCommand; - var serializeAws_json1_0DescribeExportCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeExport\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeExportInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeExportCommand = serializeAws_json1_0DescribeExportCommand; - var serializeAws_json1_0DescribeGlobalTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeGlobalTableCommand = serializeAws_json1_0DescribeGlobalTableCommand; - var serializeAws_json1_0DescribeGlobalTableSettingsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeGlobalTableSettings\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeGlobalTableSettingsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeGlobalTableSettingsCommand = serializeAws_json1_0DescribeGlobalTableSettingsCommand; - var serializeAws_json1_0DescribeImportCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeImport\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeImportInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeImportCommand = serializeAws_json1_0DescribeImportCommand; - var serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeKinesisStreamingDestination\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeKinesisStreamingDestinationInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = serializeAws_json1_0DescribeKinesisStreamingDestinationCommand; - var serializeAws_json1_0DescribeLimitsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeLimits\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeLimitsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeLimitsCommand = serializeAws_json1_0DescribeLimitsCommand; - var serializeAws_json1_0DescribeTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeTableCommand = serializeAws_json1_0DescribeTableCommand; - var serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTableReplicaAutoScaling\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeTableReplicaAutoScalingInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = serializeAws_json1_0DescribeTableReplicaAutoScalingCommand; - var serializeAws_json1_0DescribeTimeToLiveCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DescribeTimeToLive\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0DescribeTimeToLiveInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DescribeTimeToLiveCommand = serializeAws_json1_0DescribeTimeToLiveCommand; - var serializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.DisableKinesisStreamingDestination\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = serializeAws_json1_0DisableKinesisStreamingDestinationCommand; - var serializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.EnableKinesisStreamingDestination\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0KinesisStreamingDestinationInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = serializeAws_json1_0EnableKinesisStreamingDestinationCommand; - var serializeAws_json1_0ExecuteStatementCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteStatement\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ExecuteStatementInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ExecuteStatementCommand = serializeAws_json1_0ExecuteStatementCommand; - var serializeAws_json1_0ExecuteTransactionCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ExecuteTransaction\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ExecuteTransactionInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ExecuteTransactionCommand = serializeAws_json1_0ExecuteTransactionCommand; - var serializeAws_json1_0ExportTableToPointInTimeCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ExportTableToPointInTime\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ExportTableToPointInTimeInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ExportTableToPointInTimeCommand = serializeAws_json1_0ExportTableToPointInTimeCommand; - var serializeAws_json1_0GetItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.GetItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0GetItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0GetItemCommand = serializeAws_json1_0GetItemCommand; - var serializeAws_json1_0ImportTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ImportTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ImportTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ImportTableCommand = serializeAws_json1_0ImportTableCommand; - var serializeAws_json1_0ListBackupsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListBackups\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListBackupsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListBackupsCommand = serializeAws_json1_0ListBackupsCommand; - var serializeAws_json1_0ListContributorInsightsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListContributorInsights\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListContributorInsightsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListContributorInsightsCommand = serializeAws_json1_0ListContributorInsightsCommand; - var serializeAws_json1_0ListExportsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListExports\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListExportsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListExportsCommand = serializeAws_json1_0ListExportsCommand; - var serializeAws_json1_0ListGlobalTablesCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListGlobalTables\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListGlobalTablesInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListGlobalTablesCommand = serializeAws_json1_0ListGlobalTablesCommand; - var serializeAws_json1_0ListImportsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListImports\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListImportsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListImportsCommand = serializeAws_json1_0ListImportsCommand; - var serializeAws_json1_0ListTablesCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListTables\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListTablesInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListTablesCommand = serializeAws_json1_0ListTablesCommand; - var serializeAws_json1_0ListTagsOfResourceCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.ListTagsOfResource\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ListTagsOfResourceInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ListTagsOfResourceCommand = serializeAws_json1_0ListTagsOfResourceCommand; - var serializeAws_json1_0PutItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.PutItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0PutItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0PutItemCommand = serializeAws_json1_0PutItemCommand; - var serializeAws_json1_0QueryCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.Query\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0QueryInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0QueryCommand = serializeAws_json1_0QueryCommand; - var serializeAws_json1_0RestoreTableFromBackupCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableFromBackup\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0RestoreTableFromBackupInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0RestoreTableFromBackupCommand = serializeAws_json1_0RestoreTableFromBackupCommand; - var serializeAws_json1_0RestoreTableToPointInTimeCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.RestoreTableToPointInTime\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0RestoreTableToPointInTimeInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0RestoreTableToPointInTimeCommand = serializeAws_json1_0RestoreTableToPointInTimeCommand; - var serializeAws_json1_0ScanCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.Scan\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0ScanInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0ScanCommand = serializeAws_json1_0ScanCommand; - var serializeAws_json1_0TagResourceCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.TagResource\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0TagResourceInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand; - var serializeAws_json1_0TransactGetItemsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.TransactGetItems\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0TransactGetItemsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0TransactGetItemsCommand = serializeAws_json1_0TransactGetItemsCommand; - var serializeAws_json1_0TransactWriteItemsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.TransactWriteItems\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0TransactWriteItemsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0TransactWriteItemsCommand = serializeAws_json1_0TransactWriteItemsCommand; - var serializeAws_json1_0UntagResourceCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UntagResource\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UntagResourceInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand; - var serializeAws_json1_0UpdateContinuousBackupsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContinuousBackups\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateContinuousBackupsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateContinuousBackupsCommand = serializeAws_json1_0UpdateContinuousBackupsCommand; - var serializeAws_json1_0UpdateContributorInsightsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateContributorInsights\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateContributorInsightsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateContributorInsightsCommand = serializeAws_json1_0UpdateContributorInsightsCommand; - var serializeAws_json1_0UpdateGlobalTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateGlobalTableCommand = serializeAws_json1_0UpdateGlobalTableCommand; - var serializeAws_json1_0UpdateGlobalTableSettingsCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateGlobalTableSettings\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateGlobalTableSettingsInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateGlobalTableSettingsCommand = serializeAws_json1_0UpdateGlobalTableSettingsCommand; - var serializeAws_json1_0UpdateItemCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateItem\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateItemInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateItemCommand = serializeAws_json1_0UpdateItemCommand; - var serializeAws_json1_0UpdateTableCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTable\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateTableInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateTableCommand = serializeAws_json1_0UpdateTableCommand; - var serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTableReplicaAutoScaling\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateTableReplicaAutoScalingInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = serializeAws_json1_0UpdateTableReplicaAutoScalingCommand; - var serializeAws_json1_0UpdateTimeToLiveCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-amz-json-1.0\\", - \\"x-amz-target\\": \\"DynamoDB_20120810.UpdateTimeToLive\\" - }; - let body; - body = JSON.stringify(serializeAws_json1_0UpdateTimeToLiveInput(input, context)); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_json1_0UpdateTimeToLiveCommand = serializeAws_json1_0UpdateTimeToLiveCommand; - var deserializeAws_json1_0BatchExecuteStatementCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0BatchExecuteStatementCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0BatchExecuteStatementOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0BatchExecuteStatementCommand = deserializeAws_json1_0BatchExecuteStatementCommand; - var deserializeAws_json1_0BatchExecuteStatementCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0BatchGetItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0BatchGetItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0BatchGetItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0BatchGetItemCommand = deserializeAws_json1_0BatchGetItemCommand; - var deserializeAws_json1_0BatchGetItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0BatchWriteItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0BatchWriteItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0BatchWriteItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0BatchWriteItemCommand = deserializeAws_json1_0BatchWriteItemCommand; - var deserializeAws_json1_0BatchWriteItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0CreateBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0CreateBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0CreateBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0CreateBackupCommand = deserializeAws_json1_0CreateBackupCommand; - var deserializeAws_json1_0CreateBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupInUseException\\": - case \\"com.amazonaws.dynamodb#BackupInUseException\\": - throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); - case \\"ContinuousBackupsUnavailableException\\": - case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": - throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"TableInUseException\\": - case \\"com.amazonaws.dynamodb#TableInUseException\\": - throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0CreateGlobalTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0CreateGlobalTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0CreateGlobalTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0CreateGlobalTableCommand = deserializeAws_json1_0CreateGlobalTableCommand; - var deserializeAws_json1_0CreateGlobalTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException\\": - throw await deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0CreateTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0CreateTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0CreateTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0CreateTableCommand = deserializeAws_json1_0CreateTableCommand; - var deserializeAws_json1_0CreateTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DeleteBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DeleteBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DeleteBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DeleteBackupCommand = deserializeAws_json1_0DeleteBackupCommand; - var deserializeAws_json1_0DeleteBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupInUseException\\": - case \\"com.amazonaws.dynamodb#BackupInUseException\\": - throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); - case \\"BackupNotFoundException\\": - case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": - throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DeleteItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DeleteItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DeleteItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DeleteItemCommand = deserializeAws_json1_0DeleteItemCommand; - var deserializeAws_json1_0DeleteItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DeleteTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DeleteTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DeleteTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DeleteTableCommand = deserializeAws_json1_0DeleteTableCommand; - var deserializeAws_json1_0DeleteTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeBackupCommand = deserializeAws_json1_0DescribeBackupCommand; - var deserializeAws_json1_0DescribeBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupNotFoundException\\": - case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": - throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeContinuousBackupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeContinuousBackupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeContinuousBackupsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeContinuousBackupsCommand = deserializeAws_json1_0DescribeContinuousBackupsCommand; - var deserializeAws_json1_0DescribeContinuousBackupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeContributorInsightsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeContributorInsightsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeContributorInsightsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeContributorInsightsCommand = deserializeAws_json1_0DescribeContributorInsightsCommand; - var deserializeAws_json1_0DescribeContributorInsightsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeEndpointsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeEndpointsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeEndpointsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeEndpointsCommand = deserializeAws_json1_0DescribeEndpointsCommand; - var deserializeAws_json1_0DescribeEndpointsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - }; - var deserializeAws_json1_0DescribeExportCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeExportCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeExportOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeExportCommand = deserializeAws_json1_0DescribeExportCommand; - var deserializeAws_json1_0DescribeExportCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExportNotFoundException\\": - case \\"com.amazonaws.dynamodb#ExportNotFoundException\\": - throw await deserializeAws_json1_0ExportNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeGlobalTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeGlobalTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeGlobalTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeGlobalTableCommand = deserializeAws_json1_0DescribeGlobalTableCommand; - var deserializeAws_json1_0DescribeGlobalTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeGlobalTableSettingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeGlobalTableSettingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeGlobalTableSettingsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = deserializeAws_json1_0DescribeGlobalTableSettingsCommand; - var deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeImportCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeImportCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeImportOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeImportCommand = deserializeAws_json1_0DescribeImportCommand; - var deserializeAws_json1_0DescribeImportCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ImportNotFoundException\\": - case \\"com.amazonaws.dynamodb#ImportNotFoundException\\": - throw await deserializeAws_json1_0ImportNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand; - var deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeLimitsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeLimitsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeLimitsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeLimitsCommand = deserializeAws_json1_0DescribeLimitsCommand; - var deserializeAws_json1_0DescribeLimitsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeTableCommand = deserializeAws_json1_0DescribeTableCommand; - var deserializeAws_json1_0DescribeTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand; - var deserializeAws_json1_0DescribeTableReplicaAutoScalingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DescribeTimeToLiveCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DescribeTimeToLiveCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0DescribeTimeToLiveOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DescribeTimeToLiveCommand = deserializeAws_json1_0DescribeTimeToLiveCommand; - var deserializeAws_json1_0DescribeTimeToLiveCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = deserializeAws_json1_0DisableKinesisStreamingDestinationCommand; - var deserializeAws_json1_0DisableKinesisStreamingDestinationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0KinesisStreamingDestinationOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = deserializeAws_json1_0EnableKinesisStreamingDestinationCommand; - var deserializeAws_json1_0EnableKinesisStreamingDestinationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ExecuteStatementCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ExecuteStatementCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ExecuteStatementOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ExecuteStatementCommand = deserializeAws_json1_0ExecuteStatementCommand; - var deserializeAws_json1_0ExecuteStatementCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"DuplicateItemException\\": - case \\"com.amazonaws.dynamodb#DuplicateItemException\\": - throw await deserializeAws_json1_0DuplicateItemExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ExecuteTransactionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ExecuteTransactionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ExecuteTransactionOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ExecuteTransactionCommand = deserializeAws_json1_0ExecuteTransactionCommand; - var deserializeAws_json1_0ExecuteTransactionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"IdempotentParameterMismatchException\\": - case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": - throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionCanceledException\\": - case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": - throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); - case \\"TransactionInProgressException\\": - case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": - throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ExportTableToPointInTimeCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ExportTableToPointInTimeCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ExportTableToPointInTimeOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ExportTableToPointInTimeCommand = deserializeAws_json1_0ExportTableToPointInTimeCommand; - var deserializeAws_json1_0ExportTableToPointInTimeCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExportConflictException\\": - case \\"com.amazonaws.dynamodb#ExportConflictException\\": - throw await deserializeAws_json1_0ExportConflictExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidExportTimeException\\": - case \\"com.amazonaws.dynamodb#InvalidExportTimeException\\": - throw await deserializeAws_json1_0InvalidExportTimeExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"PointInTimeRecoveryUnavailableException\\": - case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": - throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0GetItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0GetItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0GetItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0GetItemCommand = deserializeAws_json1_0GetItemCommand; - var deserializeAws_json1_0GetItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ImportTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ImportTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ImportTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ImportTableCommand = deserializeAws_json1_0ImportTableCommand; - var deserializeAws_json1_0ImportTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ImportConflictException\\": - case \\"com.amazonaws.dynamodb#ImportConflictException\\": - throw await deserializeAws_json1_0ImportConflictExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListBackupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListBackupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListBackupsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListBackupsCommand = deserializeAws_json1_0ListBackupsCommand; - var deserializeAws_json1_0ListBackupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListContributorInsightsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListContributorInsightsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListContributorInsightsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListContributorInsightsCommand = deserializeAws_json1_0ListContributorInsightsCommand; - var deserializeAws_json1_0ListContributorInsightsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListExportsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListExportsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListExportsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListExportsCommand = deserializeAws_json1_0ListExportsCommand; - var deserializeAws_json1_0ListExportsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListGlobalTablesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListGlobalTablesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListGlobalTablesOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListGlobalTablesCommand = deserializeAws_json1_0ListGlobalTablesCommand; - var deserializeAws_json1_0ListGlobalTablesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListImportsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListImportsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListImportsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListImportsCommand = deserializeAws_json1_0ListImportsCommand; - var deserializeAws_json1_0ListImportsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListTablesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListTablesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListTablesOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListTablesCommand = deserializeAws_json1_0ListTablesCommand; - var deserializeAws_json1_0ListTablesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ListTagsOfResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ListTagsOfResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ListTagsOfResourceOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ListTagsOfResourceCommand = deserializeAws_json1_0ListTagsOfResourceCommand; - var deserializeAws_json1_0ListTagsOfResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0PutItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0PutItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0PutItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0PutItemCommand = deserializeAws_json1_0PutItemCommand; - var deserializeAws_json1_0PutItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0QueryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0QueryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0QueryOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0QueryCommand = deserializeAws_json1_0QueryCommand; - var deserializeAws_json1_0QueryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0RestoreTableFromBackupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0RestoreTableFromBackupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0RestoreTableFromBackupOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0RestoreTableFromBackupCommand = deserializeAws_json1_0RestoreTableFromBackupCommand; - var deserializeAws_json1_0RestoreTableFromBackupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"BackupInUseException\\": - case \\"com.amazonaws.dynamodb#BackupInUseException\\": - throw await deserializeAws_json1_0BackupInUseExceptionResponse(parsedOutput, context); - case \\"BackupNotFoundException\\": - case \\"com.amazonaws.dynamodb#BackupNotFoundException\\": - throw await deserializeAws_json1_0BackupNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"TableAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": - throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"TableInUseException\\": - case \\"com.amazonaws.dynamodb#TableInUseException\\": - throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0RestoreTableToPointInTimeCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0RestoreTableToPointInTimeCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0RestoreTableToPointInTimeOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0RestoreTableToPointInTimeCommand = deserializeAws_json1_0RestoreTableToPointInTimeCommand; - var deserializeAws_json1_0RestoreTableToPointInTimeCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"InvalidRestoreTimeException\\": - case \\"com.amazonaws.dynamodb#InvalidRestoreTimeException\\": - throw await deserializeAws_json1_0InvalidRestoreTimeExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"PointInTimeRecoveryUnavailableException\\": - case \\"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException\\": - throw await deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse(parsedOutput, context); - case \\"TableAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#TableAlreadyExistsException\\": - throw await deserializeAws_json1_0TableAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"TableInUseException\\": - case \\"com.amazonaws.dynamodb#TableInUseException\\": - throw await deserializeAws_json1_0TableInUseExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0ScanCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0ScanCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0ScanOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0ScanCommand = deserializeAws_json1_0ScanCommand; - var deserializeAws_json1_0ScanCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0TagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0TagResourceCommandError(output, context); - } - await collectBody(output.body, context); - const response = { - $metadata: deserializeMetadata(output) - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand; - var deserializeAws_json1_0TagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0TransactGetItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0TransactGetItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0TransactGetItemsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0TransactGetItemsCommand = deserializeAws_json1_0TransactGetItemsCommand; - var deserializeAws_json1_0TransactGetItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionCanceledException\\": - case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": - throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0TransactWriteItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0TransactWriteItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0TransactWriteItemsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0TransactWriteItemsCommand = deserializeAws_json1_0TransactWriteItemsCommand; - var deserializeAws_json1_0TransactWriteItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"IdempotentParameterMismatchException\\": - case \\"com.amazonaws.dynamodb#IdempotentParameterMismatchException\\": - throw await deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionCanceledException\\": - case \\"com.amazonaws.dynamodb#TransactionCanceledException\\": - throw await deserializeAws_json1_0TransactionCanceledExceptionResponse(parsedOutput, context); - case \\"TransactionInProgressException\\": - case \\"com.amazonaws.dynamodb#TransactionInProgressException\\": - throw await deserializeAws_json1_0TransactionInProgressExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UntagResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UntagResourceCommandError(output, context); - } - await collectBody(output.body, context); - const response = { - $metadata: deserializeMetadata(output) - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand; - var deserializeAws_json1_0UntagResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateContinuousBackupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateContinuousBackupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateContinuousBackupsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateContinuousBackupsCommand = deserializeAws_json1_0UpdateContinuousBackupsCommand; - var deserializeAws_json1_0UpdateContinuousBackupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ContinuousBackupsUnavailableException\\": - case \\"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException\\": - throw await deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateContributorInsightsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateContributorInsightsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateContributorInsightsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateContributorInsightsCommand = deserializeAws_json1_0UpdateContributorInsightsCommand; - var deserializeAws_json1_0UpdateContributorInsightsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateGlobalTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateGlobalTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateGlobalTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateGlobalTableCommand = deserializeAws_json1_0UpdateGlobalTableCommand; - var deserializeAws_json1_0UpdateGlobalTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ReplicaAlreadyExistsException\\": - case \\"com.amazonaws.dynamodb#ReplicaAlreadyExistsException\\": - throw await deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse(parsedOutput, context); - case \\"ReplicaNotFoundException\\": - case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": - throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); - case \\"TableNotFoundException\\": - case \\"com.amazonaws.dynamodb#TableNotFoundException\\": - throw await deserializeAws_json1_0TableNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateGlobalTableSettingsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateGlobalTableSettingsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateGlobalTableSettingsOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = deserializeAws_json1_0UpdateGlobalTableSettingsCommand; - var deserializeAws_json1_0UpdateGlobalTableSettingsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"GlobalTableNotFoundException\\": - case \\"com.amazonaws.dynamodb#GlobalTableNotFoundException\\": - throw await deserializeAws_json1_0GlobalTableNotFoundExceptionResponse(parsedOutput, context); - case \\"IndexNotFoundException\\": - case \\"com.amazonaws.dynamodb#IndexNotFoundException\\": - throw await deserializeAws_json1_0IndexNotFoundExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ReplicaNotFoundException\\": - case \\"com.amazonaws.dynamodb#ReplicaNotFoundException\\": - throw await deserializeAws_json1_0ReplicaNotFoundExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateItemOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateItemCommand = deserializeAws_json1_0UpdateItemCommand; - var deserializeAws_json1_0UpdateItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ConditionalCheckFailedException\\": - case \\"com.amazonaws.dynamodb#ConditionalCheckFailedException\\": - throw await deserializeAws_json1_0ConditionalCheckFailedExceptionResponse(parsedOutput, context); - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"ItemCollectionSizeLimitExceededException\\": - case \\"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException\\": - throw await deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse(parsedOutput, context); - case \\"ProvisionedThroughputExceededException\\": - case \\"com.amazonaws.dynamodb#ProvisionedThroughputExceededException\\": - throw await deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse(parsedOutput, context); - case \\"RequestLimitExceeded\\": - case \\"com.amazonaws.dynamodb#RequestLimitExceeded\\": - throw await deserializeAws_json1_0RequestLimitExceededResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TransactionConflictException\\": - case \\"com.amazonaws.dynamodb#TransactionConflictException\\": - throw await deserializeAws_json1_0TransactionConflictExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateTableCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateTableCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateTableOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateTableCommand = deserializeAws_json1_0UpdateTableCommand; - var deserializeAws_json1_0UpdateTableCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand; - var deserializeAws_json1_0UpdateTableReplicaAutoScalingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0UpdateTimeToLiveCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_json1_0UpdateTimeToLiveCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_json1_0UpdateTimeToLiveOutput(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_json1_0UpdateTimeToLiveCommand = deserializeAws_json1_0UpdateTimeToLiveCommand; - var deserializeAws_json1_0UpdateTimeToLiveCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InternalServerError\\": - case \\"com.amazonaws.dynamodb#InternalServerError\\": - throw await deserializeAws_json1_0InternalServerErrorResponse(parsedOutput, context); - case \\"InvalidEndpointException\\": - case \\"com.amazonaws.dynamodb#InvalidEndpointException\\": - throw await deserializeAws_json1_0InvalidEndpointExceptionResponse(parsedOutput, context); - case \\"LimitExceededException\\": - case \\"com.amazonaws.dynamodb#LimitExceededException\\": - throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context); - case \\"ResourceInUseException\\": - case \\"com.amazonaws.dynamodb#ResourceInUseException\\": - throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.dynamodb#ResourceNotFoundException\\": - throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException, - errorCode - }); - } - }; - var deserializeAws_json1_0BackupInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0BackupInUseException(body, context); - const exception = new models_0_1.BackupInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0BackupNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0BackupNotFoundException(body, context); - const exception = new models_0_1.BackupNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ConditionalCheckFailedExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ConditionalCheckFailedException(body, context); - const exception = new models_0_1.ConditionalCheckFailedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ContinuousBackupsUnavailableExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ContinuousBackupsUnavailableException(body, context); - const exception = new models_0_1.ContinuousBackupsUnavailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0DuplicateItemExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0DuplicateItemException(body, context); - const exception = new models_0_1.DuplicateItemException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ExportConflictExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ExportConflictException(body, context); - const exception = new models_0_1.ExportConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ExportNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ExportNotFoundException(body, context); - const exception = new models_0_1.ExportNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0GlobalTableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0GlobalTableAlreadyExistsException(body, context); - const exception = new models_0_1.GlobalTableAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0GlobalTableNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0GlobalTableNotFoundException(body, context); - const exception = new models_0_1.GlobalTableNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0IdempotentParameterMismatchException(body, context); - const exception = new models_0_1.IdempotentParameterMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ImportConflictExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ImportConflictException(body, context); - const exception = new models_0_1.ImportConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ImportNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ImportNotFoundException(body, context); - const exception = new models_0_1.ImportNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0IndexNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0IndexNotFoundException(body, context); - const exception = new models_0_1.IndexNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InternalServerErrorResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InternalServerError(body, context); - const exception = new models_0_1.InternalServerError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InvalidEndpointExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InvalidEndpointException(body, context); - const exception = new models_0_1.InvalidEndpointException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InvalidExportTimeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InvalidExportTimeException(body, context); - const exception = new models_0_1.InvalidExportTimeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0InvalidRestoreTimeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0InvalidRestoreTimeException(body, context); - const exception = new models_0_1.InvalidRestoreTimeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ItemCollectionSizeLimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ItemCollectionSizeLimitExceededException(body, context); - const exception = new models_0_1.ItemCollectionSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0LimitExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0LimitExceededException(body, context); - const exception = new models_0_1.LimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0PointInTimeRecoveryUnavailableExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0PointInTimeRecoveryUnavailableException(body, context); - const exception = new models_0_1.PointInTimeRecoveryUnavailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ProvisionedThroughputExceededException(body, context); - const exception = new models_0_1.ProvisionedThroughputExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ReplicaAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ReplicaAlreadyExistsException(body, context); - const exception = new models_0_1.ReplicaAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ReplicaNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ReplicaNotFoundException(body, context); - const exception = new models_0_1.ReplicaNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0RequestLimitExceededResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0RequestLimitExceeded(body, context); - const exception = new models_0_1.RequestLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ResourceInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ResourceInUseException(body, context); - const exception = new models_0_1.ResourceInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context); - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TableAlreadyExistsExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TableAlreadyExistsException(body, context); - const exception = new models_0_1.TableAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TableInUseExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TableInUseException(body, context); - const exception = new models_0_1.TableInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TableNotFoundExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TableNotFoundException(body, context); - const exception = new models_0_1.TableNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TransactionCanceledExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TransactionCanceledException(body, context); - const exception = new models_0_1.TransactionCanceledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TransactionConflictExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TransactionConflictException(body, context); - const exception = new models_0_1.TransactionConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_json1_0TransactionInProgressExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_json1_0TransactionInProgressException(body, context); - const exception = new models_0_1.TransactionInProgressException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var serializeAws_json1_0AttributeDefinition = (input, context) => { - return { - ...input.AttributeName != null && { AttributeName: input.AttributeName }, - ...input.AttributeType != null && { AttributeType: input.AttributeType } - }; - }; - var serializeAws_json1_0AttributeDefinitions = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeDefinition(entry, context); - }); - }; - var serializeAws_json1_0AttributeNameList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0AttributeUpdates = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValueUpdate(value, context) - }; - }, {}); - }; - var serializeAws_json1_0AttributeValue = (input, context) => { - return models_0_1.AttributeValue.visit(input, { - B: (value) => ({ B: context.base64Encoder(value) }), - BOOL: (value) => ({ BOOL: value }), - BS: (value) => ({ BS: serializeAws_json1_0BinarySetAttributeValue(value, context) }), - L: (value) => ({ L: serializeAws_json1_0ListAttributeValue(value, context) }), - M: (value) => ({ M: serializeAws_json1_0MapAttributeValue(value, context) }), - N: (value) => ({ N: value }), - NS: (value) => ({ NS: serializeAws_json1_0NumberSetAttributeValue(value, context) }), - NULL: (value) => ({ NULL: value }), - S: (value) => ({ S: value }), - SS: (value) => ({ SS: serializeAws_json1_0StringSetAttributeValue(value, context) }), - _: (name, value) => ({ name: value }) - }); - }; - var serializeAws_json1_0AttributeValueList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeValue(entry, context); - }); - }; - var serializeAws_json1_0AttributeValueUpdate = (input, context) => { - return { - ...input.Action != null && { Action: input.Action }, - ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } - }; - }; - var serializeAws_json1_0AutoScalingPolicyUpdate = (input, context) => { - return { - ...input.PolicyName != null && { PolicyName: input.PolicyName }, - ...input.TargetTrackingScalingPolicyConfiguration != null && { - TargetTrackingScalingPolicyConfiguration: serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate(input.TargetTrackingScalingPolicyConfiguration, context) - } - }; - }; - var serializeAws_json1_0AutoScalingSettingsUpdate = (input, context) => { - return { - ...input.AutoScalingDisabled != null && { AutoScalingDisabled: input.AutoScalingDisabled }, - ...input.AutoScalingRoleArn != null && { AutoScalingRoleArn: input.AutoScalingRoleArn }, - ...input.MaximumUnits != null && { MaximumUnits: input.MaximumUnits }, - ...input.MinimumUnits != null && { MinimumUnits: input.MinimumUnits }, - ...input.ScalingPolicyUpdate != null && { - ScalingPolicyUpdate: serializeAws_json1_0AutoScalingPolicyUpdate(input.ScalingPolicyUpdate, context) - } - }; - }; - var serializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationUpdate = (input, context) => { - return { - ...input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }, - ...input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }, - ...input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }, - ...input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) } - }; - }; - var serializeAws_json1_0BatchExecuteStatementInput = (input, context) => { - return { - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.Statements != null && { Statements: serializeAws_json1_0PartiQLBatchRequest(input.Statements, context) } - }; - }; - var serializeAws_json1_0BatchGetItemInput = (input, context) => { - return { - ...input.RequestItems != null && { - RequestItems: serializeAws_json1_0BatchGetRequestMap(input.RequestItems, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity } - }; - }; - var serializeAws_json1_0BatchGetRequestMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0KeysAndAttributes(value, context) - }; - }, {}); - }; - var serializeAws_json1_0BatchStatementRequest = (input, context) => { - return { - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.Parameters != null && { - Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) - }, - ...input.Statement != null && { Statement: input.Statement } - }; - }; - var serializeAws_json1_0BatchWriteItemInput = (input, context) => { - return { - ...input.RequestItems != null && { - RequestItems: serializeAws_json1_0BatchWriteItemRequestMap(input.RequestItems, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - } - }; - }; - var serializeAws_json1_0BatchWriteItemRequestMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0WriteRequests(value, context) - }; - }, {}); - }; - var serializeAws_json1_0BinarySetAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return context.base64Encoder(entry); - }); - }; - var serializeAws_json1_0Condition = (input, context) => { - return { - ...input.AttributeValueList != null && { - AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) - }, - ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator } - }; - }; - var serializeAws_json1_0ConditionCheck = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0CreateBackupInput = (input, context) => { - return { - ...input.BackupName != null && { BackupName: input.BackupName }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0CreateGlobalSecondaryIndexAction = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - } - }; - }; - var serializeAws_json1_0CreateGlobalTableInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, - ...input.ReplicationGroup != null && { - ReplicationGroup: serializeAws_json1_0ReplicaList(input.ReplicationGroup, context) - } - }; - }; - var serializeAws_json1_0CreateReplicaAction = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0CreateReplicationGroupMemberAction = (input, context) => { - return { - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) - }, - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } - }; - }; - var serializeAws_json1_0CreateTableInput = (input, context) => { - return { - ...input.AttributeDefinitions != null && { - AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) - }, - ...input.BillingMode != null && { BillingMode: input.BillingMode }, - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.LocalSecondaryIndexes != null && { - LocalSecondaryIndexes: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexes, context) - }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - }, - ...input.SSESpecification != null && { - SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) - }, - ...input.StreamSpecification != null && { - StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) - }, - ...input.TableClass != null && { TableClass: input.TableClass }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } - }; - }; - var serializeAws_json1_0CsvHeaderList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0CsvOptions = (input, context) => { - return { - ...input.Delimiter != null && { Delimiter: input.Delimiter }, - ...input.HeaderList != null && { HeaderList: serializeAws_json1_0CsvHeaderList(input.HeaderList, context) } - }; - }; - var serializeAws_json1_0Delete = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DeleteBackupInput = (input, context) => { - return { - ...input.BackupArn != null && { BackupArn: input.BackupArn } - }; - }; - var serializeAws_json1_0DeleteGlobalSecondaryIndexAction = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName } - }; - }; - var serializeAws_json1_0DeleteItemInput = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DeleteReplicaAction = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0DeleteReplicationGroupMemberAction = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0DeleteRequest = (input, context) => { - return { - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) } - }; - }; - var serializeAws_json1_0DeleteTableInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeBackupInput = (input, context) => { - return { - ...input.BackupArn != null && { BackupArn: input.BackupArn } - }; - }; - var serializeAws_json1_0DescribeContinuousBackupsInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeContributorInsightsInput = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeEndpointsRequest = (input, context) => { - return {}; - }; - var serializeAws_json1_0DescribeExportInput = (input, context) => { - return { - ...input.ExportArn != null && { ExportArn: input.ExportArn } - }; - }; - var serializeAws_json1_0DescribeGlobalTableInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } - }; - }; - var serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName } - }; - }; - var serializeAws_json1_0DescribeImportInput = (input, context) => { - return { - ...input.ImportArn != null && { ImportArn: input.ImportArn } - }; - }; - var serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeLimitsInput = (input, context) => { - return {}; - }; - var serializeAws_json1_0DescribeTableInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeTableReplicaAutoScalingInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0DescribeTimeToLiveInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0ExecuteStatementInput = (input, context) => { - return { - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.Parameters != null && { - Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.Statement != null && { Statement: input.Statement } - }; - }; - var serializeAws_json1_0ExecuteTransactionInput = (input, context) => { - var _a; - return { - ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.TransactStatements != null && { - TransactStatements: serializeAws_json1_0ParameterizedStatements(input.TransactStatements, context) - } - }; - }; - var serializeAws_json1_0ExpectedAttributeMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0ExpectedAttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0ExpectedAttributeValue = (input, context) => { - return { - ...input.AttributeValueList != null && { - AttributeValueList: serializeAws_json1_0AttributeValueList(input.AttributeValueList, context) - }, - ...input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }, - ...input.Exists != null && { Exists: input.Exists }, - ...input.Value != null && { Value: serializeAws_json1_0AttributeValue(input.Value, context) } - }; - }; - var serializeAws_json1_0ExportTableToPointInTimeInput = (input, context) => { - var _a; - return { - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.ExportFormat != null && { ExportFormat: input.ExportFormat }, - ...input.ExportTime != null && { ExportTime: Math.round(input.ExportTime.getTime() / 1e3) }, - ...input.S3Bucket != null && { S3Bucket: input.S3Bucket }, - ...input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }, - ...input.S3Prefix != null && { S3Prefix: input.S3Prefix }, - ...input.S3SseAlgorithm != null && { S3SseAlgorithm: input.S3SseAlgorithm }, - ...input.S3SseKmsKeyId != null && { S3SseKmsKeyId: input.S3SseKmsKeyId }, - ...input.TableArn != null && { TableArn: input.TableArn } - }; - }; - var serializeAws_json1_0ExpressionAttributeNameMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: value - }; - }, {}); - }; - var serializeAws_json1_0ExpressionAttributeValueMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0FilterConditionMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0Condition(value, context) - }; - }, {}); - }; - var serializeAws_json1_0Get = (input, context) => { - return { - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0GetItemInput = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndex = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { - ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) - } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdate(entry, context); - }); - }; - var serializeAws_json1_0GlobalSecondaryIndexList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalSecondaryIndex(entry, context); - }); - }; - var serializeAws_json1_0GlobalSecondaryIndexUpdate = (input, context) => { - return { - ...input.Create != null && { - Create: serializeAws_json1_0CreateGlobalSecondaryIndexAction(input.Create, context) - }, - ...input.Delete != null && { - Delete: serializeAws_json1_0DeleteGlobalSecondaryIndexAction(input.Delete, context) - }, - ...input.Update != null && { - Update: serializeAws_json1_0UpdateGlobalSecondaryIndexAction(input.Update, context) - } - }; - }; - var serializeAws_json1_0GlobalSecondaryIndexUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalSecondaryIndexUpdate(entry, context); - }); - }; - var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { - ProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingSettingsUpdate, context) - }, - ...input.ProvisionedWriteCapacityUnits != null && { - ProvisionedWriteCapacityUnits: input.ProvisionedWriteCapacityUnits - } - }; - }; - var serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context); - }); - }; - var serializeAws_json1_0ImportTableInput = (input, context) => { - var _a; - return { - ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.InputCompressionType != null && { InputCompressionType: input.InputCompressionType }, - ...input.InputFormat != null && { InputFormat: input.InputFormat }, - ...input.InputFormatOptions != null && { - InputFormatOptions: serializeAws_json1_0InputFormatOptions(input.InputFormatOptions, context) - }, - ...input.S3BucketSource != null && { - S3BucketSource: serializeAws_json1_0S3BucketSource(input.S3BucketSource, context) - }, - ...input.TableCreationParameters != null && { - TableCreationParameters: serializeAws_json1_0TableCreationParameters(input.TableCreationParameters, context) - } - }; - }; - var serializeAws_json1_0InputFormatOptions = (input, context) => { - return { - ...input.Csv != null && { Csv: serializeAws_json1_0CsvOptions(input.Csv, context) } - }; - }; - var serializeAws_json1_0Key = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0KeyConditions = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0Condition(value, context) - }; - }, {}); - }; - var serializeAws_json1_0KeyList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0Key(entry, context); - }); - }; - var serializeAws_json1_0KeysAndAttributes = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.Keys != null && { Keys: serializeAws_json1_0KeyList(input.Keys, context) }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression } - }; - }; - var serializeAws_json1_0KeySchema = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0KeySchemaElement(entry, context); - }); - }; - var serializeAws_json1_0KeySchemaElement = (input, context) => { - return { - ...input.AttributeName != null && { AttributeName: input.AttributeName }, - ...input.KeyType != null && { KeyType: input.KeyType } - }; - }; - var serializeAws_json1_0KinesisStreamingDestinationInput = (input, context) => { - return { - ...input.StreamArn != null && { StreamArn: input.StreamArn }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0ListAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeValue(entry, context); - }); - }; - var serializeAws_json1_0ListBackupsInput = (input, context) => { - return { - ...input.BackupType != null && { BackupType: input.BackupType }, - ...input.ExclusiveStartBackupArn != null && { ExclusiveStartBackupArn: input.ExclusiveStartBackupArn }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.TimeRangeLowerBound != null && { - TimeRangeLowerBound: Math.round(input.TimeRangeLowerBound.getTime() / 1e3) - }, - ...input.TimeRangeUpperBound != null && { - TimeRangeUpperBound: Math.round(input.TimeRangeUpperBound.getTime() / 1e3) - } - }; - }; - var serializeAws_json1_0ListContributorInsightsInput = (input, context) => { - return { - ...input.MaxResults != null && { MaxResults: input.MaxResults }, - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0ListExportsInput = (input, context) => { - return { - ...input.MaxResults != null && { MaxResults: input.MaxResults }, - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.TableArn != null && { TableArn: input.TableArn } - }; - }; - var serializeAws_json1_0ListGlobalTablesInput = (input, context) => { - return { - ...input.ExclusiveStartGlobalTableName != null && { - ExclusiveStartGlobalTableName: input.ExclusiveStartGlobalTableName - }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0ListImportsInput = (input, context) => { - return { - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.PageSize != null && { PageSize: input.PageSize }, - ...input.TableArn != null && { TableArn: input.TableArn } - }; - }; - var serializeAws_json1_0ListTablesInput = (input, context) => { - return { - ...input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }, - ...input.Limit != null && { Limit: input.Limit } - }; - }; - var serializeAws_json1_0ListTagsOfResourceInput = (input, context) => { - return { - ...input.NextToken != null && { NextToken: input.NextToken }, - ...input.ResourceArn != null && { ResourceArn: input.ResourceArn } - }; - }; - var serializeAws_json1_0LocalSecondaryIndex = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.Projection != null && { Projection: serializeAws_json1_0Projection(input.Projection, context) } - }; - }; - var serializeAws_json1_0LocalSecondaryIndexList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0LocalSecondaryIndex(entry, context); - }); - }; - var serializeAws_json1_0MapAttributeValue = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0NonKeyAttributeNameList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0NumberSetAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0ParameterizedStatement = (input, context) => { - return { - ...input.Parameters != null && { - Parameters: serializeAws_json1_0PreparedStatementParameters(input.Parameters, context) - }, - ...input.Statement != null && { Statement: input.Statement } - }; - }; - var serializeAws_json1_0ParameterizedStatements = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ParameterizedStatement(entry, context); - }); - }; - var serializeAws_json1_0PartiQLBatchRequest = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0BatchStatementRequest(entry, context); - }); - }; - var serializeAws_json1_0PointInTimeRecoverySpecification = (input, context) => { - return { - ...input.PointInTimeRecoveryEnabled != null && { PointInTimeRecoveryEnabled: input.PointInTimeRecoveryEnabled } - }; - }; - var serializeAws_json1_0PreparedStatementParameters = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0AttributeValue(entry, context); - }); - }; - var serializeAws_json1_0Projection = (input, context) => { - return { - ...input.NonKeyAttributes != null && { - NonKeyAttributes: serializeAws_json1_0NonKeyAttributeNameList(input.NonKeyAttributes, context) - }, - ...input.ProjectionType != null && { ProjectionType: input.ProjectionType } - }; - }; - var serializeAws_json1_0ProvisionedThroughput = (input, context) => { - return { - ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits }, - ...input.WriteCapacityUnits != null && { WriteCapacityUnits: input.WriteCapacityUnits } - }; - }; - var serializeAws_json1_0ProvisionedThroughputOverride = (input, context) => { - return { - ...input.ReadCapacityUnits != null && { ReadCapacityUnits: input.ReadCapacityUnits } - }; - }; - var serializeAws_json1_0Put = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0PutItemInput = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0PutItemInputAttributeMap = (input, context) => { - return Object.entries(input).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: serializeAws_json1_0AttributeValue(value, context) - }; - }, {}); - }; - var serializeAws_json1_0PutRequest = (input, context) => { - return { - ...input.Item != null && { Item: serializeAws_json1_0PutItemInputAttributeMap(input.Item, context) } - }; - }; - var serializeAws_json1_0QueryInput = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExclusiveStartKey != null && { - ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) - }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.KeyConditionExpression != null && { KeyConditionExpression: input.KeyConditionExpression }, - ...input.KeyConditions != null && { - KeyConditions: serializeAws_json1_0KeyConditions(input.KeyConditions, context) - }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.QueryFilter != null && { - QueryFilter: serializeAws_json1_0FilterConditionMap(input.QueryFilter, context) - }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ScanIndexForward != null && { ScanIndexForward: input.ScanIndexForward }, - ...input.Select != null && { Select: input.Select }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0Replica = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName } - }; - }; - var serializeAws_json1_0ReplicaAutoScalingUpdate = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.ReplicaGlobalSecondaryIndexUpdates != null && { - ReplicaGlobalSecondaryIndexUpdates: serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList(input.ReplicaGlobalSecondaryIndexUpdates, context) - }, - ...input.ReplicaProvisionedReadCapacityAutoScalingUpdate != null && { - ReplicaProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingUpdate, context) - } - }; - }; - var serializeAws_json1_0ReplicaAutoScalingUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaAutoScalingUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndex = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) - } - }; - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedReadCapacityAutoScalingUpdate != null && { - ProvisionedReadCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingUpdate, context) - } - }; - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaGlobalSecondaryIndex(entry, context); - }); - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedReadCapacityAutoScalingSettingsUpdate != null && { - ProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedReadCapacityAutoScalingSettingsUpdate, context) - }, - ...input.ProvisionedReadCapacityUnits != null && { - ProvisionedReadCapacityUnits: input.ProvisionedReadCapacityUnits - } - }; - }; - var serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0Replica(entry, context); - }); - }; - var serializeAws_json1_0ReplicaSettingsUpdate = (input, context) => { - return { - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.ReplicaGlobalSecondaryIndexSettingsUpdate != null && { - ReplicaGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsUpdateList(input.ReplicaGlobalSecondaryIndexSettingsUpdate, context) - }, - ...input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate != null && { - ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate, context) - }, - ...input.ReplicaProvisionedReadCapacityUnits != null && { - ReplicaProvisionedReadCapacityUnits: input.ReplicaProvisionedReadCapacityUnits - }, - ...input.ReplicaTableClass != null && { ReplicaTableClass: input.ReplicaTableClass } - }; - }; - var serializeAws_json1_0ReplicaSettingsUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaSettingsUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicationGroupUpdate = (input, context) => { - return { - ...input.Create != null && { - Create: serializeAws_json1_0CreateReplicationGroupMemberAction(input.Create, context) - }, - ...input.Delete != null && { - Delete: serializeAws_json1_0DeleteReplicationGroupMemberAction(input.Delete, context) - }, - ...input.Update != null && { - Update: serializeAws_json1_0UpdateReplicationGroupMemberAction(input.Update, context) - } - }; - }; - var serializeAws_json1_0ReplicationGroupUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicationGroupUpdate(entry, context); - }); - }; - var serializeAws_json1_0ReplicaUpdate = (input, context) => { - return { - ...input.Create != null && { Create: serializeAws_json1_0CreateReplicaAction(input.Create, context) }, - ...input.Delete != null && { Delete: serializeAws_json1_0DeleteReplicaAction(input.Delete, context) } - }; - }; - var serializeAws_json1_0ReplicaUpdateList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0ReplicaUpdate(entry, context); - }); - }; - var serializeAws_json1_0RestoreTableFromBackupInput = (input, context) => { - return { - ...input.BackupArn != null && { BackupArn: input.BackupArn }, - ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, - ...input.GlobalSecondaryIndexOverride != null && { - GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) - }, - ...input.LocalSecondaryIndexOverride != null && { - LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) - }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) - }, - ...input.SSESpecificationOverride != null && { - SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) - }, - ...input.TargetTableName != null && { TargetTableName: input.TargetTableName } - }; - }; - var serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => { - return { - ...input.BillingModeOverride != null && { BillingModeOverride: input.BillingModeOverride }, - ...input.GlobalSecondaryIndexOverride != null && { - GlobalSecondaryIndexOverride: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexOverride, context) - }, - ...input.LocalSecondaryIndexOverride != null && { - LocalSecondaryIndexOverride: serializeAws_json1_0LocalSecondaryIndexList(input.LocalSecondaryIndexOverride, context) - }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughputOverride, context) - }, - ...input.RestoreDateTime != null && { RestoreDateTime: Math.round(input.RestoreDateTime.getTime() / 1e3) }, - ...input.SSESpecificationOverride != null && { - SSESpecificationOverride: serializeAws_json1_0SSESpecification(input.SSESpecificationOverride, context) - }, - ...input.SourceTableArn != null && { SourceTableArn: input.SourceTableArn }, - ...input.SourceTableName != null && { SourceTableName: input.SourceTableName }, - ...input.TargetTableName != null && { TargetTableName: input.TargetTableName }, - ...input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime } - }; - }; - var serializeAws_json1_0S3BucketSource = (input, context) => { - return { - ...input.S3Bucket != null && { S3Bucket: input.S3Bucket }, - ...input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }, - ...input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix } - }; - }; - var serializeAws_json1_0ScanInput = (input, context) => { - return { - ...input.AttributesToGet != null && { - AttributesToGet: serializeAws_json1_0AttributeNameList(input.AttributesToGet, context) - }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.ConsistentRead != null && { ConsistentRead: input.ConsistentRead }, - ...input.ExclusiveStartKey != null && { - ExclusiveStartKey: serializeAws_json1_0Key(input.ExclusiveStartKey, context) - }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.FilterExpression != null && { FilterExpression: input.FilterExpression }, - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.Limit != null && { Limit: input.Limit }, - ...input.ProjectionExpression != null && { ProjectionExpression: input.ProjectionExpression }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ScanFilter != null && { ScanFilter: serializeAws_json1_0FilterConditionMap(input.ScanFilter, context) }, - ...input.Segment != null && { Segment: input.Segment }, - ...input.Select != null && { Select: input.Select }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.TotalSegments != null && { TotalSegments: input.TotalSegments } - }; - }; - var serializeAws_json1_0SSESpecification = (input, context) => { - return { - ...input.Enabled != null && { Enabled: input.Enabled }, - ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, - ...input.SSEType != null && { SSEType: input.SSEType } - }; - }; - var serializeAws_json1_0StreamSpecification = (input, context) => { - return { - ...input.StreamEnabled != null && { StreamEnabled: input.StreamEnabled }, - ...input.StreamViewType != null && { StreamViewType: input.StreamViewType } - }; - }; - var serializeAws_json1_0StringSetAttributeValue = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0TableCreationParameters = (input, context) => { - return { - ...input.AttributeDefinitions != null && { - AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) - }, - ...input.BillingMode != null && { BillingMode: input.BillingMode }, - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - }, - ...input.SSESpecification != null && { - SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0Tag = (input, context) => { - return { - ...input.Key != null && { Key: input.Key }, - ...input.Value != null && { Value: input.Value } - }; - }; - var serializeAws_json1_0TagKeyList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return entry; - }); - }; - var serializeAws_json1_0TagList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0Tag(entry, context); - }); - }; - var serializeAws_json1_0TagResourceInput = (input, context) => { - return { - ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, - ...input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) } - }; - }; - var serializeAws_json1_0TimeToLiveSpecification = (input, context) => { - return { - ...input.AttributeName != null && { AttributeName: input.AttributeName }, - ...input.Enabled != null && { Enabled: input.Enabled } - }; - }; - var serializeAws_json1_0TransactGetItem = (input, context) => { - return { - ...input.Get != null && { Get: serializeAws_json1_0Get(input.Get, context) } - }; - }; - var serializeAws_json1_0TransactGetItemList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0TransactGetItem(entry, context); - }); - }; - var serializeAws_json1_0TransactGetItemsInput = (input, context) => { - return { - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.TransactItems != null && { - TransactItems: serializeAws_json1_0TransactGetItemList(input.TransactItems, context) - } - }; - }; - var serializeAws_json1_0TransactWriteItem = (input, context) => { - return { - ...input.ConditionCheck != null && { - ConditionCheck: serializeAws_json1_0ConditionCheck(input.ConditionCheck, context) - }, - ...input.Delete != null && { Delete: serializeAws_json1_0Delete(input.Delete, context) }, - ...input.Put != null && { Put: serializeAws_json1_0Put(input.Put, context) }, - ...input.Update != null && { Update: serializeAws_json1_0Update(input.Update, context) } - }; - }; - var serializeAws_json1_0TransactWriteItemList = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0TransactWriteItem(entry, context); - }); - }; - var serializeAws_json1_0TransactWriteItemsInput = (input, context) => { - var _a; - return { - ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(), - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.TransactItems != null && { - TransactItems: serializeAws_json1_0TransactWriteItemList(input.TransactItems, context) - } - }; - }; - var serializeAws_json1_0UntagResourceInput = (input, context) => { - return { - ...input.ResourceArn != null && { ResourceArn: input.ResourceArn }, - ...input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) } - }; - }; - var serializeAws_json1_0Update = (input, context) => { - return { - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnValuesOnConditionCheckFailure != null && { - ReturnValuesOnConditionCheckFailure: input.ReturnValuesOnConditionCheckFailure - }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } - }; - }; - var serializeAws_json1_0UpdateContinuousBackupsInput = (input, context) => { - return { - ...input.PointInTimeRecoverySpecification != null && { - PointInTimeRecoverySpecification: serializeAws_json1_0PointInTimeRecoverySpecification(input.PointInTimeRecoverySpecification, context) - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateContributorInsightsInput = (input, context) => { - return { - ...input.ContributorInsightsAction != null && { ContributorInsightsAction: input.ContributorInsightsAction }, - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateGlobalSecondaryIndexAction = (input, context) => { - return { - ...input.IndexName != null && { IndexName: input.IndexName }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - } - }; - }; - var serializeAws_json1_0UpdateGlobalTableInput = (input, context) => { - return { - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, - ...input.ReplicaUpdates != null && { - ReplicaUpdates: serializeAws_json1_0ReplicaUpdateList(input.ReplicaUpdates, context) - } - }; - }; - var serializeAws_json1_0UpdateGlobalTableSettingsInput = (input, context) => { - return { - ...input.GlobalTableBillingMode != null && { GlobalTableBillingMode: input.GlobalTableBillingMode }, - ...input.GlobalTableGlobalSecondaryIndexSettingsUpdate != null && { - GlobalTableGlobalSecondaryIndexSettingsUpdate: serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList(input.GlobalTableGlobalSecondaryIndexSettingsUpdate, context) - }, - ...input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }, - ...input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate != null && { - GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate, context) - }, - ...input.GlobalTableProvisionedWriteCapacityUnits != null && { - GlobalTableProvisionedWriteCapacityUnits: input.GlobalTableProvisionedWriteCapacityUnits - }, - ...input.ReplicaSettingsUpdate != null && { - ReplicaSettingsUpdate: serializeAws_json1_0ReplicaSettingsUpdateList(input.ReplicaSettingsUpdate, context) - } - }; - }; - var serializeAws_json1_0UpdateItemInput = (input, context) => { - return { - ...input.AttributeUpdates != null && { - AttributeUpdates: serializeAws_json1_0AttributeUpdates(input.AttributeUpdates, context) - }, - ...input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }, - ...input.ConditionalOperator != null && { ConditionalOperator: input.ConditionalOperator }, - ...input.Expected != null && { Expected: serializeAws_json1_0ExpectedAttributeMap(input.Expected, context) }, - ...input.ExpressionAttributeNames != null && { - ExpressionAttributeNames: serializeAws_json1_0ExpressionAttributeNameMap(input.ExpressionAttributeNames, context) - }, - ...input.ExpressionAttributeValues != null && { - ExpressionAttributeValues: serializeAws_json1_0ExpressionAttributeValueMap(input.ExpressionAttributeValues, context) - }, - ...input.Key != null && { Key: serializeAws_json1_0Key(input.Key, context) }, - ...input.ReturnConsumedCapacity != null && { ReturnConsumedCapacity: input.ReturnConsumedCapacity }, - ...input.ReturnItemCollectionMetrics != null && { - ReturnItemCollectionMetrics: input.ReturnItemCollectionMetrics - }, - ...input.ReturnValues != null && { ReturnValues: input.ReturnValues }, - ...input.TableName != null && { TableName: input.TableName }, - ...input.UpdateExpression != null && { UpdateExpression: input.UpdateExpression } - }; - }; - var serializeAws_json1_0UpdateReplicationGroupMemberAction = (input, context) => { - return { - ...input.GlobalSecondaryIndexes != null && { - GlobalSecondaryIndexes: serializeAws_json1_0ReplicaGlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context) - }, - ...input.KMSMasterKeyId != null && { KMSMasterKeyId: input.KMSMasterKeyId }, - ...input.ProvisionedThroughputOverride != null && { - ProvisionedThroughputOverride: serializeAws_json1_0ProvisionedThroughputOverride(input.ProvisionedThroughputOverride, context) - }, - ...input.RegionName != null && { RegionName: input.RegionName }, - ...input.TableClassOverride != null && { TableClassOverride: input.TableClassOverride } - }; - }; - var serializeAws_json1_0UpdateTableInput = (input, context) => { - return { - ...input.AttributeDefinitions != null && { - AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context) - }, - ...input.BillingMode != null && { BillingMode: input.BillingMode }, - ...input.GlobalSecondaryIndexUpdates != null && { - GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexUpdateList(input.GlobalSecondaryIndexUpdates, context) - }, - ...input.ProvisionedThroughput != null && { - ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context) - }, - ...input.ReplicaUpdates != null && { - ReplicaUpdates: serializeAws_json1_0ReplicationGroupUpdateList(input.ReplicaUpdates, context) - }, - ...input.SSESpecification != null && { - SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context) - }, - ...input.StreamSpecification != null && { - StreamSpecification: serializeAws_json1_0StreamSpecification(input.StreamSpecification, context) - }, - ...input.TableClass != null && { TableClass: input.TableClass }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateTableReplicaAutoScalingInput = (input, context) => { - return { - ...input.GlobalSecondaryIndexUpdates != null && { - GlobalSecondaryIndexUpdates: serializeAws_json1_0GlobalSecondaryIndexAutoScalingUpdateList(input.GlobalSecondaryIndexUpdates, context) - }, - ...input.ProvisionedWriteCapacityAutoScalingUpdate != null && { - ProvisionedWriteCapacityAutoScalingUpdate: serializeAws_json1_0AutoScalingSettingsUpdate(input.ProvisionedWriteCapacityAutoScalingUpdate, context) - }, - ...input.ReplicaUpdates != null && { - ReplicaUpdates: serializeAws_json1_0ReplicaAutoScalingUpdateList(input.ReplicaUpdates, context) - }, - ...input.TableName != null && { TableName: input.TableName } - }; - }; - var serializeAws_json1_0UpdateTimeToLiveInput = (input, context) => { - return { - ...input.TableName != null && { TableName: input.TableName }, - ...input.TimeToLiveSpecification != null && { - TimeToLiveSpecification: serializeAws_json1_0TimeToLiveSpecification(input.TimeToLiveSpecification, context) - } - }; - }; - var serializeAws_json1_0WriteRequest = (input, context) => { - return { - ...input.DeleteRequest != null && { - DeleteRequest: serializeAws_json1_0DeleteRequest(input.DeleteRequest, context) - }, - ...input.PutRequest != null && { PutRequest: serializeAws_json1_0PutRequest(input.PutRequest, context) } - }; - }; - var serializeAws_json1_0WriteRequests = (input, context) => { - return input.filter((e) => e != null).map((entry) => { - return serializeAws_json1_0WriteRequest(entry, context); - }); - }; - var deserializeAws_json1_0ArchivalSummary = (output, context) => { - return { - ArchivalBackupArn: (0, smithy_client_1.expectString)(output.ArchivalBackupArn), - ArchivalDateTime: output.ArchivalDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ArchivalDateTime))) : void 0, - ArchivalReason: (0, smithy_client_1.expectString)(output.ArchivalReason) - }; - }; - var deserializeAws_json1_0AttributeDefinition = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - AttributeType: (0, smithy_client_1.expectString)(output.AttributeType) - }; - }; - var deserializeAws_json1_0AttributeDefinitions = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AttributeDefinition(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0AttributeMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0AttributeNameList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0AttributeValue = (output, context) => { - if (output.B != null) { - return { - B: context.base64Decoder(output.B) - }; - } - if ((0, smithy_client_1.expectBoolean)(output.BOOL) !== void 0) { - return { BOOL: (0, smithy_client_1.expectBoolean)(output.BOOL) }; - } - if (output.BS != null) { - return { - BS: deserializeAws_json1_0BinarySetAttributeValue(output.BS, context) - }; - } - if (output.L != null) { - return { - L: deserializeAws_json1_0ListAttributeValue(output.L, context) - }; - } - if (output.M != null) { - return { - M: deserializeAws_json1_0MapAttributeValue(output.M, context) - }; - } - if ((0, smithy_client_1.expectString)(output.N) !== void 0) { - return { N: (0, smithy_client_1.expectString)(output.N) }; - } - if (output.NS != null) { - return { - NS: deserializeAws_json1_0NumberSetAttributeValue(output.NS, context) - }; - } - if ((0, smithy_client_1.expectBoolean)(output.NULL) !== void 0) { - return { NULL: (0, smithy_client_1.expectBoolean)(output.NULL) }; - } - if ((0, smithy_client_1.expectString)(output.S) !== void 0) { - return { S: (0, smithy_client_1.expectString)(output.S) }; - } - if (output.SS != null) { - return { - SS: deserializeAws_json1_0StringSetAttributeValue(output.SS, context) - }; - } - return { $unknown: Object.entries(output)[0] }; - }; - var deserializeAws_json1_0AutoScalingPolicyDescription = (output, context) => { - return { - PolicyName: (0, smithy_client_1.expectString)(output.PolicyName), - TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null ? deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription(output.TargetTrackingScalingPolicyConfiguration, context) : void 0 - }; - }; - var deserializeAws_json1_0AutoScalingPolicyDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AutoScalingPolicyDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0AutoScalingSettingsDescription = (output, context) => { - return { - AutoScalingDisabled: (0, smithy_client_1.expectBoolean)(output.AutoScalingDisabled), - AutoScalingRoleArn: (0, smithy_client_1.expectString)(output.AutoScalingRoleArn), - MaximumUnits: (0, smithy_client_1.expectLong)(output.MaximumUnits), - MinimumUnits: (0, smithy_client_1.expectLong)(output.MinimumUnits), - ScalingPolicies: output.ScalingPolicies != null ? deserializeAws_json1_0AutoScalingPolicyDescriptionList(output.ScalingPolicies, context) : void 0 - }; - }; - var deserializeAws_json1_0AutoScalingTargetTrackingScalingPolicyConfigurationDescription = (output, context) => { - return { - DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn), - ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown), - ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown), - TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue) - }; - }; - var deserializeAws_json1_0BackupDescription = (output, context) => { - return { - BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0, - SourceTableDetails: output.SourceTableDetails != null ? deserializeAws_json1_0SourceTableDetails(output.SourceTableDetails, context) : void 0, - SourceTableFeatureDetails: output.SourceTableFeatureDetails != null ? deserializeAws_json1_0SourceTableFeatureDetails(output.SourceTableFeatureDetails, context) : void 0 - }; - }; - var deserializeAws_json1_0BackupDetails = (output, context) => { - return { - BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), - BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, - BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, - BackupName: (0, smithy_client_1.expectString)(output.BackupName), - BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), - BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), - BackupType: (0, smithy_client_1.expectString)(output.BackupType) - }; - }; - var deserializeAws_json1_0BackupInUseException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0BackupNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0BackupSummaries = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0BackupSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0BackupSummary = (output, context) => { - return { - BackupArn: (0, smithy_client_1.expectString)(output.BackupArn), - BackupCreationDateTime: output.BackupCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupCreationDateTime))) : void 0, - BackupExpiryDateTime: output.BackupExpiryDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.BackupExpiryDateTime))) : void 0, - BackupName: (0, smithy_client_1.expectString)(output.BackupName), - BackupSizeBytes: (0, smithy_client_1.expectLong)(output.BackupSizeBytes), - BackupStatus: (0, smithy_client_1.expectString)(output.BackupStatus), - BackupType: (0, smithy_client_1.expectString)(output.BackupType), - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableId: (0, smithy_client_1.expectString)(output.TableId), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0BatchExecuteStatementOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0PartiQLBatchResponse(output.Responses, context) : void 0 - }; - }; - var deserializeAws_json1_0BatchGetItemOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0BatchGetResponseMap(output.Responses, context) : void 0, - UnprocessedKeys: output.UnprocessedKeys != null ? deserializeAws_json1_0BatchGetRequestMap(output.UnprocessedKeys, context) : void 0 - }; - }; - var deserializeAws_json1_0BatchGetRequestMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0KeysAndAttributes(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0BatchGetResponseMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0ItemList(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0BatchStatementError = (output, context) => { - return { - Code: (0, smithy_client_1.expectString)(output.Code), - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0BatchStatementResponse = (output, context) => { - return { - Error: output.Error != null ? deserializeAws_json1_0BatchStatementError(output.Error, context) : void 0, - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0BatchWriteItemOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0, - UnprocessedItems: output.UnprocessedItems != null ? deserializeAws_json1_0BatchWriteItemRequestMap(output.UnprocessedItems, context) : void 0 - }; - }; - var deserializeAws_json1_0BatchWriteItemRequestMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0WriteRequests(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0BillingModeSummary = (output, context) => { - return { - BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), - LastUpdateToPayPerRequestDateTime: output.LastUpdateToPayPerRequestDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateToPayPerRequestDateTime))) : void 0 - }; - }; - var deserializeAws_json1_0BinarySetAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return context.base64Decoder(entry); - }); - return retVal; - }; - var deserializeAws_json1_0CancellationReason = (output, context) => { - return { - Code: (0, smithy_client_1.expectString)(output.Code), - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0, - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0CancellationReasonList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0CancellationReason(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0Capacity = (output, context) => { - return { - CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), - ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), - WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ConditionalCheckFailedException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ConsumedCapacity = (output, context) => { - return { - CapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.CapacityUnits), - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.GlobalSecondaryIndexes, context) : void 0, - LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0SecondaryIndexesCapacityMap(output.LocalSecondaryIndexes, context) : void 0, - ReadCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.ReadCapacityUnits), - Table: output.Table != null ? deserializeAws_json1_0Capacity(output.Table, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName), - WriteCapacityUnits: (0, smithy_client_1.limitedParseDouble)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ConsumedCapacityMultiple = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ConsumedCapacity(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ContinuousBackupsDescription = (output, context) => { - return { - ContinuousBackupsStatus: (0, smithy_client_1.expectString)(output.ContinuousBackupsStatus), - PointInTimeRecoveryDescription: output.PointInTimeRecoveryDescription != null ? deserializeAws_json1_0PointInTimeRecoveryDescription(output.PointInTimeRecoveryDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0ContinuousBackupsUnavailableException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ContributorInsightsRuleList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0ContributorInsightsSummaries = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ContributorInsightsSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ContributorInsightsSummary = (output, context) => { - return { - ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0CreateBackupOutput = (output, context) => { - return { - BackupDetails: output.BackupDetails != null ? deserializeAws_json1_0BackupDetails(output.BackupDetails, context) : void 0 - }; - }; - var deserializeAws_json1_0CreateGlobalTableOutput = (output, context) => { - return { - GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0CreateTableOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0CsvHeaderList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0CsvOptions = (output, context) => { - return { - Delimiter: (0, smithy_client_1.expectString)(output.Delimiter), - HeaderList: output.HeaderList != null ? deserializeAws_json1_0CsvHeaderList(output.HeaderList, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteBackupOutput = (output, context) => { - return { - BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteItemOutput = (output, context) => { - return { - Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteRequest = (output, context) => { - return { - Key: output.Key != null ? deserializeAws_json1_0Key(output.Key, context) : void 0 - }; - }; - var deserializeAws_json1_0DeleteTableOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeBackupOutput = (output, context) => { - return { - BackupDescription: output.BackupDescription != null ? deserializeAws_json1_0BackupDescription(output.BackupDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeContinuousBackupsOutput = (output, context) => { - return { - ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeContributorInsightsOutput = (output, context) => { - return { - ContributorInsightsRuleList: output.ContributorInsightsRuleList != null ? deserializeAws_json1_0ContributorInsightsRuleList(output.ContributorInsightsRuleList, context) : void 0, - ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), - FailureException: output.FailureException != null ? deserializeAws_json1_0FailureException(output.FailureException, context) : void 0, - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0DescribeEndpointsResponse = (output, context) => { - return { - Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeExportOutput = (output, context) => { - return { - ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeGlobalTableOutput = (output, context) => { - return { - GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context) => { - return { - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeImportOutput = (output, context) => { - return { - ImportTableDescription: output.ImportTableDescription != null ? deserializeAws_json1_0ImportTableDescription(output.ImportTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => { - return { - KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null ? deserializeAws_json1_0KinesisDataStreamDestinations(output.KinesisDataStreamDestinations, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0DescribeLimitsOutput = (output, context) => { - return { - AccountMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxReadCapacityUnits), - AccountMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.AccountMaxWriteCapacityUnits), - TableMaxReadCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxReadCapacityUnits), - TableMaxWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.TableMaxWriteCapacityUnits) - }; - }; - var deserializeAws_json1_0DescribeTableOutput = (output, context) => { - return { - Table: output.Table != null ? deserializeAws_json1_0TableDescription(output.Table, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeTableReplicaAutoScalingOutput = (output, context) => { - return { - TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DescribeTimeToLiveOutput = (output, context) => { - return { - TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0DuplicateItemException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0Endpoint = (output, context) => { - return { - Address: (0, smithy_client_1.expectString)(output.Address), - CachePeriodInMinutes: (0, smithy_client_1.expectLong)(output.CachePeriodInMinutes) - }; - }; - var deserializeAws_json1_0Endpoints = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Endpoint(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ExecuteStatementOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, - LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ExecuteTransactionOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 - }; - }; - var deserializeAws_json1_0ExportConflictException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ExportDescription = (output, context) => { - return { - BilledSizeBytes: (0, smithy_client_1.expectLong)(output.BilledSizeBytes), - ClientToken: (0, smithy_client_1.expectString)(output.ClientToken), - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, - ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), - ExportFormat: (0, smithy_client_1.expectString)(output.ExportFormat), - ExportManifest: (0, smithy_client_1.expectString)(output.ExportManifest), - ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus), - ExportTime: output.ExportTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExportTime))) : void 0, - FailureCode: (0, smithy_client_1.expectString)(output.FailureCode), - FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket), - S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner), - S3Prefix: (0, smithy_client_1.expectString)(output.S3Prefix), - S3SseAlgorithm: (0, smithy_client_1.expectString)(output.S3SseAlgorithm), - S3SseKmsKeyId: (0, smithy_client_1.expectString)(output.S3SseKmsKeyId), - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableId: (0, smithy_client_1.expectString)(output.TableId) - }; - }; - var deserializeAws_json1_0ExportNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ExportSummaries = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ExportSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ExportSummary = (output, context) => { - return { - ExportArn: (0, smithy_client_1.expectString)(output.ExportArn), - ExportStatus: (0, smithy_client_1.expectString)(output.ExportStatus) - }; - }; - var deserializeAws_json1_0ExportTableToPointInTimeOutput = (output, context) => { - return { - ExportDescription: output.ExportDescription != null ? deserializeAws_json1_0ExportDescription(output.ExportDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0ExpressionAttributeNameMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: (0, smithy_client_1.expectString)(value) - }; - }, {}); - }; - var deserializeAws_json1_0FailureException = (output, context) => { - return { - ExceptionDescription: (0, smithy_client_1.expectString)(output.ExceptionDescription), - ExceptionName: (0, smithy_client_1.expectString)(output.ExceptionName) - }; - }; - var deserializeAws_json1_0GetItemOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalSecondaryIndex = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => { - return { - Backfilling: (0, smithy_client_1.expectBoolean)(output.Backfilling), - IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), - IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalSecondaryIndexDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalSecondaryIndexDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalSecondaryIndexes = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalSecondaryIndexInfo(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalSecondaryIndexList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalSecondaryIndex(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalTable = (output, context) => { - return { - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaList(output.ReplicationGroup, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalTableAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0GlobalTableDescription = (output, context) => { - return { - CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, - GlobalTableArn: (0, smithy_client_1.expectString)(output.GlobalTableArn), - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - GlobalTableStatus: (0, smithy_client_1.expectString)(output.GlobalTableStatus), - ReplicationGroup: output.ReplicationGroup != null ? deserializeAws_json1_0ReplicaDescriptionList(output.ReplicationGroup, context) : void 0 - }; - }; - var deserializeAws_json1_0GlobalTableList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0GlobalTable(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0GlobalTableNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0IdempotentParameterMismatchException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0ImportConflictException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ImportNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ImportSummary = (output, context) => { - return { - CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn), - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, - ImportArn: (0, smithy_client_1.expectString)(output.ImportArn), - ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus), - InputFormat: (0, smithy_client_1.expectString)(output.InputFormat), - S3BucketSource: output.S3BucketSource != null ? deserializeAws_json1_0S3BucketSource(output.S3BucketSource, context) : void 0, - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn) - }; - }; - var deserializeAws_json1_0ImportSummaryList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ImportSummary(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ImportTableDescription = (output, context) => { - return { - ClientToken: (0, smithy_client_1.expectString)(output.ClientToken), - CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn), - EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : void 0, - ErrorCount: (0, smithy_client_1.expectLong)(output.ErrorCount), - FailureCode: (0, smithy_client_1.expectString)(output.FailureCode), - FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage), - ImportArn: (0, smithy_client_1.expectString)(output.ImportArn), - ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus), - ImportedItemCount: (0, smithy_client_1.expectLong)(output.ImportedItemCount), - InputCompressionType: (0, smithy_client_1.expectString)(output.InputCompressionType), - InputFormat: (0, smithy_client_1.expectString)(output.InputFormat), - InputFormatOptions: output.InputFormatOptions != null ? deserializeAws_json1_0InputFormatOptions(output.InputFormatOptions, context) : void 0, - ProcessedItemCount: (0, smithy_client_1.expectLong)(output.ProcessedItemCount), - ProcessedSizeBytes: (0, smithy_client_1.expectLong)(output.ProcessedSizeBytes), - S3BucketSource: output.S3BucketSource != null ? deserializeAws_json1_0S3BucketSource(output.S3BucketSource, context) : void 0, - StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableCreationParameters: output.TableCreationParameters != null ? deserializeAws_json1_0TableCreationParameters(output.TableCreationParameters, context) : void 0, - TableId: (0, smithy_client_1.expectString)(output.TableId) - }; - }; - var deserializeAws_json1_0ImportTableOutput = (output, context) => { - return { - ImportTableDescription: output.ImportTableDescription != null ? deserializeAws_json1_0ImportTableDescription(output.ImportTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0IndexNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0InputFormatOptions = (output, context) => { - return { - Csv: output.Csv != null ? deserializeAws_json1_0CsvOptions(output.Csv, context) : void 0 - }; - }; - var deserializeAws_json1_0InternalServerError = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0InvalidEndpointException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0InvalidExportTimeException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0InvalidRestoreTimeException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ItemCollectionKeyAttributeMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0ItemCollectionMetrics = (output, context) => { - return { - ItemCollectionKey: output.ItemCollectionKey != null ? deserializeAws_json1_0ItemCollectionKeyAttributeMap(output.ItemCollectionKey, context) : void 0, - SizeEstimateRangeGB: output.SizeEstimateRangeGB != null ? deserializeAws_json1_0ItemCollectionSizeEstimateRange(output.SizeEstimateRangeGB, context) : void 0 - }; - }; - var deserializeAws_json1_0ItemCollectionMetricsMultiple = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ItemCollectionMetrics(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ItemCollectionMetricsPerTable = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0ItemCollectionMetricsMultiple(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0ItemCollectionSizeEstimateRange = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.limitedParseDouble)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0ItemCollectionSizeLimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ItemList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AttributeMap(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ItemResponse = (output, context) => { - return { - Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : void 0 - }; - }; - var deserializeAws_json1_0ItemResponseList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ItemResponse(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0Key = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0KeyList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Key(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0KeysAndAttributes = (output, context) => { - return { - AttributesToGet: output.AttributesToGet != null ? deserializeAws_json1_0AttributeNameList(output.AttributesToGet, context) : void 0, - ConsistentRead: (0, smithy_client_1.expectBoolean)(output.ConsistentRead), - ExpressionAttributeNames: output.ExpressionAttributeNames != null ? deserializeAws_json1_0ExpressionAttributeNameMap(output.ExpressionAttributeNames, context) : void 0, - Keys: output.Keys != null ? deserializeAws_json1_0KeyList(output.Keys, context) : void 0, - ProjectionExpression: (0, smithy_client_1.expectString)(output.ProjectionExpression) - }; - }; - var deserializeAws_json1_0KeySchema = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0KeySchemaElement(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0KeySchemaElement = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - KeyType: (0, smithy_client_1.expectString)(output.KeyType) - }; - }; - var deserializeAws_json1_0KinesisDataStreamDestination = (output, context) => { - return { - DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), - DestinationStatusDescription: (0, smithy_client_1.expectString)(output.DestinationStatusDescription), - StreamArn: (0, smithy_client_1.expectString)(output.StreamArn) - }; - }; - var deserializeAws_json1_0KinesisDataStreamDestinations = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0KinesisDataStreamDestination(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0KinesisStreamingDestinationOutput = (output, context) => { - return { - DestinationStatus: (0, smithy_client_1.expectString)(output.DestinationStatus), - StreamArn: (0, smithy_client_1.expectString)(output.StreamArn), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0LimitExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ListAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(entry), context); - }); - return retVal; - }; - var deserializeAws_json1_0ListBackupsOutput = (output, context) => { - return { - BackupSummaries: output.BackupSummaries != null ? deserializeAws_json1_0BackupSummaries(output.BackupSummaries, context) : void 0, - LastEvaluatedBackupArn: (0, smithy_client_1.expectString)(output.LastEvaluatedBackupArn) - }; - }; - var deserializeAws_json1_0ListContributorInsightsOutput = (output, context) => { - return { - ContributorInsightsSummaries: output.ContributorInsightsSummaries != null ? deserializeAws_json1_0ContributorInsightsSummaries(output.ContributorInsightsSummaries, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ListExportsOutput = (output, context) => { - return { - ExportSummaries: output.ExportSummaries != null ? deserializeAws_json1_0ExportSummaries(output.ExportSummaries, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => { - return { - GlobalTables: output.GlobalTables != null ? deserializeAws_json1_0GlobalTableList(output.GlobalTables, context) : void 0, - LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName) - }; - }; - var deserializeAws_json1_0ListImportsOutput = (output, context) => { - return { - ImportSummaryList: output.ImportSummaryList != null ? deserializeAws_json1_0ImportSummaryList(output.ImportSummaryList, context) : void 0, - NextToken: (0, smithy_client_1.expectString)(output.NextToken) - }; - }; - var deserializeAws_json1_0ListTablesOutput = (output, context) => { - return { - LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName), - TableNames: output.TableNames != null ? deserializeAws_json1_0TableNameList(output.TableNames, context) : void 0 - }; - }; - var deserializeAws_json1_0ListTagsOfResourceOutput = (output, context) => { - return { - NextToken: (0, smithy_client_1.expectString)(output.NextToken), - Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : void 0 - }; - }; - var deserializeAws_json1_0LocalSecondaryIndexDescription = (output, context) => { - return { - IndexArn: (0, smithy_client_1.expectString)(output.IndexArn), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexSizeBytes: (0, smithy_client_1.expectLong)(output.IndexSizeBytes), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 - }; - }; - var deserializeAws_json1_0LocalSecondaryIndexDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0LocalSecondaryIndexDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0LocalSecondaryIndexes = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0LocalSecondaryIndexInfo(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0LocalSecondaryIndexInfo = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : void 0 - }; - }; - var deserializeAws_json1_0MapAttributeValue = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0NonKeyAttributeNameList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0NumberSetAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0PartiQLBatchResponse = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0BatchStatementResponse(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0PointInTimeRecoveryDescription = (output, context) => { - return { - EarliestRestorableDateTime: output.EarliestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EarliestRestorableDateTime))) : void 0, - LatestRestorableDateTime: output.LatestRestorableDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LatestRestorableDateTime))) : void 0, - PointInTimeRecoveryStatus: (0, smithy_client_1.expectString)(output.PointInTimeRecoveryStatus) - }; - }; - var deserializeAws_json1_0PointInTimeRecoveryUnavailableException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0Projection = (output, context) => { - return { - NonKeyAttributes: output.NonKeyAttributes != null ? deserializeAws_json1_0NonKeyAttributeNameList(output.NonKeyAttributes, context) : void 0, - ProjectionType: (0, smithy_client_1.expectString)(output.ProjectionType) - }; - }; - var deserializeAws_json1_0ProvisionedThroughput = (output, context) => { - return { - ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), - WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ProvisionedThroughputDescription = (output, context) => { - return { - LastDecreaseDateTime: output.LastDecreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastDecreaseDateTime))) : void 0, - LastIncreaseDateTime: output.LastIncreaseDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastIncreaseDateTime))) : void 0, - NumberOfDecreasesToday: (0, smithy_client_1.expectLong)(output.NumberOfDecreasesToday), - ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits), - WriteCapacityUnits: (0, smithy_client_1.expectLong)(output.WriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ProvisionedThroughputExceededException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ProvisionedThroughputOverride = (output, context) => { - return { - ReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReadCapacityUnits) - }; - }; - var deserializeAws_json1_0PutItemInputAttributeMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0AttributeValue((0, smithy_client_1.expectUnion)(value), context) - }; - }, {}); - }; - var deserializeAws_json1_0PutItemOutput = (output, context) => { - return { - Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0PutRequest = (output, context) => { - return { - Item: output.Item != null ? deserializeAws_json1_0PutItemInputAttributeMap(output.Item, context) : void 0 - }; - }; - var deserializeAws_json1_0QueryOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Count: (0, smithy_client_1.expectInt32)(output.Count), - Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, - LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, - ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) - }; - }; - var deserializeAws_json1_0Replica = (output, context) => { - return { - RegionName: (0, smithy_client_1.expectString)(output.RegionName) - }; - }; - var deserializeAws_json1_0ReplicaAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ReplicaAutoScalingDescription = (output, context) => { - return { - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, - RegionName: (0, smithy_client_1.expectString)(output.RegionName), - ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, - ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus) - }; - }; - var deserializeAws_json1_0ReplicaAutoScalingDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaAutoScalingDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaDescription = (output, context) => { - return { - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, - KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId), - ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0, - RegionName: (0, smithy_client_1.expectString)(output.RegionName), - ReplicaInaccessibleDateTime: output.ReplicaInaccessibleDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReplicaInaccessibleDateTime))) : void 0, - ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), - ReplicaStatusDescription: (0, smithy_client_1.expectString)(output.ReplicaStatusDescription), - ReplicaStatusPercentProgress: (0, smithy_client_1.expectString)(output.ReplicaStatusPercentProgress), - ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), - ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaGlobalSecondaryIndexAutoScalingDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - ProvisionedThroughputOverride: output.ProvisionedThroughputOverride != null ? deserializeAws_json1_0ProvisionedThroughputOverride(output.ProvisionedThroughputOverride, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaGlobalSecondaryIndexDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription = (output, context) => { - return { - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - IndexStatus: (0, smithy_client_1.expectString)(output.IndexStatus), - ProvisionedReadCapacityAutoScalingSettings: output.ProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedReadCapacityUnits), - ProvisionedWriteCapacityAutoScalingSettings: output.ProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ProvisionedWriteCapacityAutoScalingSettings, context) : void 0, - ProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ProvisionedWriteCapacityUnits) - }; - }; - var deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Replica(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0ReplicaNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ReplicaSettingsDescription = (output, context) => { - return { - RegionName: (0, smithy_client_1.expectString)(output.RegionName), - ReplicaBillingModeSummary: output.ReplicaBillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.ReplicaBillingModeSummary, context) : void 0, - ReplicaGlobalSecondaryIndexSettings: output.ReplicaGlobalSecondaryIndexSettings != null ? deserializeAws_json1_0ReplicaGlobalSecondaryIndexSettingsDescriptionList(output.ReplicaGlobalSecondaryIndexSettings, context) : void 0, - ReplicaProvisionedReadCapacityAutoScalingSettings: output.ReplicaProvisionedReadCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedReadCapacityAutoScalingSettings, context) : void 0, - ReplicaProvisionedReadCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedReadCapacityUnits), - ReplicaProvisionedWriteCapacityAutoScalingSettings: output.ReplicaProvisionedWriteCapacityAutoScalingSettings != null ? deserializeAws_json1_0AutoScalingSettingsDescription(output.ReplicaProvisionedWriteCapacityAutoScalingSettings, context) : void 0, - ReplicaProvisionedWriteCapacityUnits: (0, smithy_client_1.expectLong)(output.ReplicaProvisionedWriteCapacityUnits), - ReplicaStatus: (0, smithy_client_1.expectString)(output.ReplicaStatus), - ReplicaTableClassSummary: output.ReplicaTableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.ReplicaTableClassSummary, context) : void 0 - }; - }; - var deserializeAws_json1_0ReplicaSettingsDescriptionList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0ReplicaSettingsDescription(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0RequestLimitExceeded = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ResourceInUseException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0ResourceNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0RestoreSummary = (output, context) => { - return { - RestoreDateTime: output.RestoreDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RestoreDateTime))) : void 0, - RestoreInProgress: (0, smithy_client_1.expectBoolean)(output.RestoreInProgress), - SourceBackupArn: (0, smithy_client_1.expectString)(output.SourceBackupArn), - SourceTableArn: (0, smithy_client_1.expectString)(output.SourceTableArn) - }; - }; - var deserializeAws_json1_0RestoreTableFromBackupOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0S3BucketSource = (output, context) => { - return { - S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket), - S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner), - S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix) - }; - }; - var deserializeAws_json1_0ScanOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - Count: (0, smithy_client_1.expectInt32)(output.Count), - Items: output.Items != null ? deserializeAws_json1_0ItemList(output.Items, context) : void 0, - LastEvaluatedKey: output.LastEvaluatedKey != null ? deserializeAws_json1_0Key(output.LastEvaluatedKey, context) : void 0, - ScannedCount: (0, smithy_client_1.expectInt32)(output.ScannedCount) - }; - }; - var deserializeAws_json1_0SecondaryIndexesCapacityMap = (output, context) => { - return Object.entries(output).reduce((acc, [key, value]) => { - if (value === null) { - return acc; - } - return { - ...acc, - [key]: deserializeAws_json1_0Capacity(value, context) - }; - }, {}); - }; - var deserializeAws_json1_0SourceTableDetails = (output, context) => { - return { - BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableCreationDateTime: output.TableCreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.TableCreationDateTime))) : void 0, - TableId: (0, smithy_client_1.expectString)(output.TableId), - TableName: (0, smithy_client_1.expectString)(output.TableName), - TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes) - }; - }; - var deserializeAws_json1_0SourceTableFeatureDetails = (output, context) => { - return { - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexes(output.GlobalSecondaryIndexes, context) : void 0, - LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexes(output.LocalSecondaryIndexes, context) : void 0, - SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, - StreamDescription: output.StreamDescription != null ? deserializeAws_json1_0StreamSpecification(output.StreamDescription, context) : void 0, - TimeToLiveDescription: output.TimeToLiveDescription != null ? deserializeAws_json1_0TimeToLiveDescription(output.TimeToLiveDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0SSEDescription = (output, context) => { - return { - InaccessibleEncryptionDateTime: output.InaccessibleEncryptionDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.InaccessibleEncryptionDateTime))) : void 0, - KMSMasterKeyArn: (0, smithy_client_1.expectString)(output.KMSMasterKeyArn), - SSEType: (0, smithy_client_1.expectString)(output.SSEType), - Status: (0, smithy_client_1.expectString)(output.Status) - }; - }; - var deserializeAws_json1_0SSESpecification = (output, context) => { - return { - Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled), - KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId), - SSEType: (0, smithy_client_1.expectString)(output.SSEType) - }; - }; - var deserializeAws_json1_0StreamSpecification = (output, context) => { - return { - StreamEnabled: (0, smithy_client_1.expectBoolean)(output.StreamEnabled), - StreamViewType: (0, smithy_client_1.expectString)(output.StreamViewType) - }; - }; - var deserializeAws_json1_0StringSetAttributeValue = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0TableAlreadyExistsException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0TableAutoScalingDescription = (output, context) => { - return { - Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaAutoScalingDescriptionList(output.Replicas, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName), - TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) - }; - }; - var deserializeAws_json1_0TableClassSummary = (output, context) => { - return { - LastUpdateDateTime: output.LastUpdateDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateDateTime))) : void 0, - TableClass: (0, smithy_client_1.expectString)(output.TableClass) - }; - }; - var deserializeAws_json1_0TableCreationParameters = (output, context) => { - return { - AttributeDefinitions: output.AttributeDefinitions != null ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context) : void 0, - BillingMode: (0, smithy_client_1.expectString)(output.BillingMode), - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexList(output.GlobalSecondaryIndexes, context) : void 0, - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context) : void 0, - SSESpecification: output.SSESpecification != null ? deserializeAws_json1_0SSESpecification(output.SSESpecification, context) : void 0, - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0TableDescription = (output, context) => { - return { - ArchivalSummary: output.ArchivalSummary != null ? deserializeAws_json1_0ArchivalSummary(output.ArchivalSummary, context) : void 0, - AttributeDefinitions: output.AttributeDefinitions != null ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context) : void 0, - BillingModeSummary: output.BillingModeSummary != null ? deserializeAws_json1_0BillingModeSummary(output.BillingModeSummary, context) : void 0, - CreationDateTime: output.CreationDateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime))) : void 0, - GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null ? deserializeAws_json1_0GlobalSecondaryIndexDescriptionList(output.GlobalSecondaryIndexes, context) : void 0, - GlobalTableVersion: (0, smithy_client_1.expectString)(output.GlobalTableVersion), - ItemCount: (0, smithy_client_1.expectLong)(output.ItemCount), - KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : void 0, - LatestStreamArn: (0, smithy_client_1.expectString)(output.LatestStreamArn), - LatestStreamLabel: (0, smithy_client_1.expectString)(output.LatestStreamLabel), - LocalSecondaryIndexes: output.LocalSecondaryIndexes != null ? deserializeAws_json1_0LocalSecondaryIndexDescriptionList(output.LocalSecondaryIndexes, context) : void 0, - ProvisionedThroughput: output.ProvisionedThroughput != null ? deserializeAws_json1_0ProvisionedThroughputDescription(output.ProvisionedThroughput, context) : void 0, - Replicas: output.Replicas != null ? deserializeAws_json1_0ReplicaDescriptionList(output.Replicas, context) : void 0, - RestoreSummary: output.RestoreSummary != null ? deserializeAws_json1_0RestoreSummary(output.RestoreSummary, context) : void 0, - SSEDescription: output.SSEDescription != null ? deserializeAws_json1_0SSEDescription(output.SSEDescription, context) : void 0, - StreamSpecification: output.StreamSpecification != null ? deserializeAws_json1_0StreamSpecification(output.StreamSpecification, context) : void 0, - TableArn: (0, smithy_client_1.expectString)(output.TableArn), - TableClassSummary: output.TableClassSummary != null ? deserializeAws_json1_0TableClassSummary(output.TableClassSummary, context) : void 0, - TableId: (0, smithy_client_1.expectString)(output.TableId), - TableName: (0, smithy_client_1.expectString)(output.TableName), - TableSizeBytes: (0, smithy_client_1.expectLong)(output.TableSizeBytes), - TableStatus: (0, smithy_client_1.expectString)(output.TableStatus) - }; - }; - var deserializeAws_json1_0TableInUseException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0TableNameList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return (0, smithy_client_1.expectString)(entry); - }); - return retVal; - }; - var deserializeAws_json1_0TableNotFoundException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0Tag = (output, context) => { - return { - Key: (0, smithy_client_1.expectString)(output.Key), - Value: (0, smithy_client_1.expectString)(output.Value) - }; - }; - var deserializeAws_json1_0TagList = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0Tag(entry, context); - }); - return retVal; - }; - var deserializeAws_json1_0TimeToLiveDescription = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - TimeToLiveStatus: (0, smithy_client_1.expectString)(output.TimeToLiveStatus) - }; - }; - var deserializeAws_json1_0TimeToLiveSpecification = (output, context) => { - return { - AttributeName: (0, smithy_client_1.expectString)(output.AttributeName), - Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled) - }; - }; - var deserializeAws_json1_0TransactGetItemsOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - Responses: output.Responses != null ? deserializeAws_json1_0ItemResponseList(output.Responses, context) : void 0 - }; - }; - var deserializeAws_json1_0TransactionCanceledException = (output, context) => { - return { - CancellationReasons: output.CancellationReasons != null ? deserializeAws_json1_0CancellationReasonList(output.CancellationReasons, context) : void 0, - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0TransactionConflictException = (output, context) => { - return { - message: (0, smithy_client_1.expectString)(output.message) - }; - }; - var deserializeAws_json1_0TransactionInProgressException = (output, context) => { - return { - Message: (0, smithy_client_1.expectString)(output.Message) - }; - }; - var deserializeAws_json1_0TransactWriteItemsOutput = (output, context) => { - return { - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacityMultiple(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetricsPerTable(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateContinuousBackupsOutput = (output, context) => { - return { - ContinuousBackupsDescription: output.ContinuousBackupsDescription != null ? deserializeAws_json1_0ContinuousBackupsDescription(output.ContinuousBackupsDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateContributorInsightsOutput = (output, context) => { - return { - ContributorInsightsStatus: (0, smithy_client_1.expectString)(output.ContributorInsightsStatus), - IndexName: (0, smithy_client_1.expectString)(output.IndexName), - TableName: (0, smithy_client_1.expectString)(output.TableName) - }; - }; - var deserializeAws_json1_0UpdateGlobalTableOutput = (output, context) => { - return { - GlobalTableDescription: output.GlobalTableDescription != null ? deserializeAws_json1_0GlobalTableDescription(output.GlobalTableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateGlobalTableSettingsOutput = (output, context) => { - return { - GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName), - ReplicaSettings: output.ReplicaSettings != null ? deserializeAws_json1_0ReplicaSettingsDescriptionList(output.ReplicaSettings, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateItemOutput = (output, context) => { - return { - Attributes: output.Attributes != null ? deserializeAws_json1_0AttributeMap(output.Attributes, context) : void 0, - ConsumedCapacity: output.ConsumedCapacity != null ? deserializeAws_json1_0ConsumedCapacity(output.ConsumedCapacity, context) : void 0, - ItemCollectionMetrics: output.ItemCollectionMetrics != null ? deserializeAws_json1_0ItemCollectionMetrics(output.ItemCollectionMetrics, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateTableOutput = (output, context) => { - return { - TableDescription: output.TableDescription != null ? deserializeAws_json1_0TableDescription(output.TableDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateTableReplicaAutoScalingOutput = (output, context) => { - return { - TableAutoScalingDescription: output.TableAutoScalingDescription != null ? deserializeAws_json1_0TableAutoScalingDescription(output.TableAutoScalingDescription, context) : void 0 - }; - }; - var deserializeAws_json1_0UpdateTimeToLiveOutput = (output, context) => { - return { - TimeToLiveSpecification: output.TimeToLiveSpecification != null ? deserializeAws_json1_0TimeToLiveSpecification(output.TimeToLiveSpecification, context) : void 0 - }; - }; - var deserializeAws_json1_0WriteRequest = (output, context) => { - return { - DeleteRequest: output.DeleteRequest != null ? deserializeAws_json1_0DeleteRequest(output.DeleteRequest, context) : void 0, - PutRequest: output.PutRequest != null ? deserializeAws_json1_0PutRequest(output.PutRequest, context) : void 0 - }; - }; - var deserializeAws_json1_0WriteRequests = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_json1_0WriteRequest(entry, context); - }); - return retVal; - }; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - var collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); - }; - var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: \\"POST\\", - path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, - headers - }; - if (resolvedHostname !== void 0) { - contents.hostname = resolvedHostname; - } - if (body !== void 0) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); - }; - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; - }); - var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === \\"number\\") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(\\":\\") >= 0) { - cleanValue = cleanValue.split(\\":\\")[0]; - } - if (cleanValue.indexOf(\\"#\\") >= 0) { - cleanValue = cleanValue.split(\\"#\\")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data[\\"__type\\"] !== void 0) { - return sanitizeErrorCode(data[\\"__type\\"]); - } - }; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js -var require_BatchExecuteStatementCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchExecuteStatementCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.BatchExecuteStatementCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var BatchExecuteStatementCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"BatchExecuteStatementCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchExecuteStatementInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchExecuteStatementOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0BatchExecuteStatementCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0BatchExecuteStatementCommand)(output, context); - } - }; - exports2.BatchExecuteStatementCommand = BatchExecuteStatementCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js -var require_BatchGetItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchGetItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.BatchGetItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var BatchGetItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"BatchGetItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchGetItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchGetItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0BatchGetItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0BatchGetItemCommand)(output, context); - } - }; - exports2.BatchGetItemCommand = BatchGetItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js -var require_BatchWriteItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/BatchWriteItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.BatchWriteItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var BatchWriteItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"BatchWriteItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.BatchWriteItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.BatchWriteItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0BatchWriteItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0BatchWriteItemCommand)(output, context); - } - }; - exports2.BatchWriteItemCommand = BatchWriteItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js -var require_CreateBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CreateBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"CreateBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0CreateBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0CreateBackupCommand)(output, context); - } - }; - exports2.CreateBackupCommand = CreateBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js -var require_CreateGlobalTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateGlobalTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CreateGlobalTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateGlobalTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"CreateGlobalTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateGlobalTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateGlobalTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0CreateGlobalTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0CreateGlobalTableCommand)(output, context); - } - }; - exports2.CreateGlobalTableCommand = CreateGlobalTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js -var require_CreateTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/CreateTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CreateTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var CreateTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"CreateTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0CreateTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0CreateTableCommand)(output, context); - } - }; - exports2.CreateTableCommand = CreateTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js -var require_DeleteBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DeleteBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DeleteBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DeleteBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteBackupCommand)(output, context); - } - }; - exports2.DeleteBackupCommand = DeleteBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js -var require_DeleteItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DeleteItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DeleteItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DeleteItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteItemCommand)(output, context); - } - }; - exports2.DeleteItemCommand = DeleteItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js -var require_DeleteTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DeleteTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DeleteTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DeleteTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DeleteTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DeleteTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DeleteTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DeleteTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteTableCommand)(output, context); - } - }; - exports2.DeleteTableCommand = DeleteTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js -var require_DescribeBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeBackupCommand)(output, context); - } - }; - exports2.DescribeBackupCommand = DescribeBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js -var require_DescribeContinuousBackupsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContinuousBackupsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeContinuousBackupsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeContinuousBackupsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeContinuousBackupsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeContinuousBackupsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContinuousBackupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContinuousBackupsCommand)(output, context); - } - }; - exports2.DescribeContinuousBackupsCommand = DescribeContinuousBackupsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js -var require_DescribeContributorInsightsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeContributorInsightsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeContributorInsightsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeContributorInsightsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeContributorInsightsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeContributorInsightsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeContributorInsightsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeContributorInsightsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeContributorInsightsCommand)(output, context); - } - }; - exports2.DescribeContributorInsightsCommand = DescribeContributorInsightsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js -var require_DescribeEndpointsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeEndpointsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeEndpointsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeEndpointsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeEndpointsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeEndpointsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeEndpointsResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeEndpointsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeEndpointsCommand)(output, context); - } - }; - exports2.DescribeEndpointsCommand = DescribeEndpointsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js -var require_DescribeExportCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeExportCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeExportCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeExportCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeExportCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeExportInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeExportOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeExportCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeExportCommand)(output, context); - } - }; - exports2.DescribeExportCommand = DescribeExportCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js -var require_DescribeGlobalTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeGlobalTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeGlobalTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeGlobalTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeGlobalTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeGlobalTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableCommand)(output, context); - } - }; - exports2.DescribeGlobalTableCommand = DescribeGlobalTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js -var require_DescribeGlobalTableSettingsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeGlobalTableSettingsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeGlobalTableSettingsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeGlobalTableSettingsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeGlobalTableSettingsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeGlobalTableSettingsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(output, context); - } - }; - exports2.DescribeGlobalTableSettingsCommand = DescribeGlobalTableSettingsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeImportCommand.js -var require_DescribeImportCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeImportCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeImportCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeImportCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeImportCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeImportInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeImportOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeImportCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeImportCommand)(output, context); - } - }; - exports2.DescribeImportCommand = DescribeImportCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js -var require_DescribeKinesisStreamingDestinationCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeKinesisStreamingDestinationCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeKinesisStreamingDestinationCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeKinesisStreamingDestinationCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeKinesisStreamingDestinationOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(output, context); - } - }; - exports2.DescribeKinesisStreamingDestinationCommand = DescribeKinesisStreamingDestinationCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js -var require_DescribeLimitsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeLimitsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeLimitsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeLimitsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeLimitsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeLimitsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeLimitsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeLimitsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeLimitsCommand)(output, context); - } - }; - exports2.DescribeLimitsCommand = DescribeLimitsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js -var require_DescribeTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableCommand)(output, context); - } - }; - exports2.DescribeTableCommand = DescribeTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js -var require_DescribeTableReplicaAutoScalingCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTableReplicaAutoScalingCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeTableReplicaAutoScalingCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeTableReplicaAutoScalingCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeTableReplicaAutoScalingOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(output, context); - } - }; - exports2.DescribeTableReplicaAutoScalingCommand = DescribeTableReplicaAutoScalingCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js -var require_DescribeTimeToLiveCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DescribeTimeToLiveCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DescribeTimeToLiveCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DescribeTimeToLiveCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DescribeTimeToLiveCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DescribeTimeToLiveInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DescribeTimeToLiveOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DescribeTimeToLiveCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeTimeToLiveCommand)(output, context); - } - }; - exports2.DescribeTimeToLiveCommand = DescribeTimeToLiveCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js -var require_DisableKinesisStreamingDestinationCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/DisableKinesisStreamingDestinationCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DisableKinesisStreamingDestinationCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var DisableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"DisableKinesisStreamingDestinationCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(output, context); - } - }; - exports2.DisableKinesisStreamingDestinationCommand = DisableKinesisStreamingDestinationCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js -var require_EnableKinesisStreamingDestinationCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/EnableKinesisStreamingDestinationCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.EnableKinesisStreamingDestinationCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var EnableKinesisStreamingDestinationCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"EnableKinesisStreamingDestinationCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.KinesisStreamingDestinationOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(output, context); - } - }; - exports2.EnableKinesisStreamingDestinationCommand = EnableKinesisStreamingDestinationCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js -var require_ExecuteStatementCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteStatementCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ExecuteStatementCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ExecuteStatementCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ExecuteStatementCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ExecuteStatementInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ExecuteStatementOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteStatementCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteStatementCommand)(output, context); - } - }; - exports2.ExecuteStatementCommand = ExecuteStatementCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js -var require_ExecuteTransactionCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExecuteTransactionCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ExecuteTransactionCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ExecuteTransactionCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ExecuteTransactionCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ExecuteTransactionInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ExecuteTransactionOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ExecuteTransactionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ExecuteTransactionCommand)(output, context); - } - }; - exports2.ExecuteTransactionCommand = ExecuteTransactionCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js -var require_ExportTableToPointInTimeCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ExportTableToPointInTimeCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ExportTableToPointInTimeCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ExportTableToPointInTimeCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ExportTableToPointInTimeCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ExportTableToPointInTimeOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ExportTableToPointInTimeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ExportTableToPointInTimeCommand)(output, context); - } - }; - exports2.ExportTableToPointInTimeCommand = ExportTableToPointInTimeCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js -var require_GetItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/GetItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var GetItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"GetItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0GetItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0GetItemCommand)(output, context); - } - }; - exports2.GetItemCommand = GetItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ImportTableCommand.js -var require_ImportTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ImportTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ImportTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ImportTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ImportTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ImportTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ImportTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ImportTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ImportTableCommand)(output, context); - } - }; - exports2.ImportTableCommand = ImportTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js -var require_ListBackupsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListBackupsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListBackupsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListBackupsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListBackupsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListBackupsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListBackupsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListBackupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListBackupsCommand)(output, context); - } - }; - exports2.ListBackupsCommand = ListBackupsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js -var require_ListContributorInsightsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListContributorInsightsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListContributorInsightsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListContributorInsightsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListContributorInsightsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListContributorInsightsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListContributorInsightsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListContributorInsightsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListContributorInsightsCommand)(output, context); - } - }; - exports2.ListContributorInsightsCommand = ListContributorInsightsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js -var require_ListExportsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListExportsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListExportsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListExportsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListExportsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListExportsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListExportsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListExportsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListExportsCommand)(output, context); - } - }; - exports2.ListExportsCommand = ListExportsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js -var require_ListGlobalTablesCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListGlobalTablesCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListGlobalTablesCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListGlobalTablesCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListGlobalTablesCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListGlobalTablesInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListGlobalTablesOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListGlobalTablesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListGlobalTablesCommand)(output, context); - } - }; - exports2.ListGlobalTablesCommand = ListGlobalTablesCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListImportsCommand.js -var require_ListImportsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListImportsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListImportsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListImportsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListImportsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListImportsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListImportsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListImportsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListImportsCommand)(output, context); - } - }; - exports2.ListImportsCommand = ListImportsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js -var require_ListTablesCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTablesCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListTablesCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListTablesCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListTablesCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListTablesInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListTablesOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListTablesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListTablesCommand)(output, context); - } - }; - exports2.ListTablesCommand = ListTablesCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js -var require_ListTagsOfResourceCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ListTagsOfResourceCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListTagsOfResourceCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ListTagsOfResourceCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ListTagsOfResourceCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListTagsOfResourceInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListTagsOfResourceOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ListTagsOfResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ListTagsOfResourceCommand)(output, context); - } - }; - exports2.ListTagsOfResourceCommand = ListTagsOfResourceCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js -var require_PutItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/PutItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.PutItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var PutItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"PutItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.PutItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.PutItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0PutItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0PutItemCommand)(output, context); - } - }; - exports2.PutItemCommand = PutItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js -var require_QueryCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/QueryCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.QueryCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var QueryCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"QueryCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.QueryInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.QueryOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0QueryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0QueryCommand)(output, context); - } - }; - exports2.QueryCommand = QueryCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js -var require_RestoreTableFromBackupCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableFromBackupCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.RestoreTableFromBackupCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var RestoreTableFromBackupCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"RestoreTableFromBackupCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.RestoreTableFromBackupInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.RestoreTableFromBackupOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableFromBackupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableFromBackupCommand)(output, context); - } - }; - exports2.RestoreTableFromBackupCommand = RestoreTableFromBackupCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js -var require_RestoreTableToPointInTimeCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/RestoreTableToPointInTimeCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.RestoreTableToPointInTimeCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var RestoreTableToPointInTimeCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"RestoreTableToPointInTimeCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.RestoreTableToPointInTimeOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0RestoreTableToPointInTimeCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(output, context); - } - }; - exports2.RestoreTableToPointInTimeCommand = RestoreTableToPointInTimeCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js -var require_ScanCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/ScanCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ScanCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var ScanCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"ScanCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ScanInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ScanOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0ScanCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0ScanCommand)(output, context); - } - }; - exports2.ScanCommand = ScanCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js -var require_TagResourceCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TagResourceCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TagResourceCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var TagResourceCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"TagResourceCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TagResourceInputFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0TagResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0TagResourceCommand)(output, context); - } - }; - exports2.TagResourceCommand = TagResourceCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js -var require_TransactGetItemsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactGetItemsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TransactGetItemsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var TransactGetItemsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"TransactGetItemsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TransactGetItemsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.TransactGetItemsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0TransactGetItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0TransactGetItemsCommand)(output, context); - } - }; - exports2.TransactGetItemsCommand = TransactGetItemsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js -var require_TransactWriteItemsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/TransactWriteItemsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TransactWriteItemsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var TransactWriteItemsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"TransactWriteItemsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.TransactWriteItemsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.TransactWriteItemsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0TransactWriteItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0TransactWriteItemsCommand)(output, context); - } - }; - exports2.TransactWriteItemsCommand = TransactWriteItemsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js -var require_UntagResourceCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UntagResourceCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UntagResourceCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UntagResourceCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UntagResourceCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UntagResourceInputFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UntagResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UntagResourceCommand)(output, context); - } - }; - exports2.UntagResourceCommand = UntagResourceCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js -var require_UpdateContinuousBackupsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContinuousBackupsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateContinuousBackupsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateContinuousBackupsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateContinuousBackupsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateContinuousBackupsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContinuousBackupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContinuousBackupsCommand)(output, context); - } - }; - exports2.UpdateContinuousBackupsCommand = UpdateContinuousBackupsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js -var require_UpdateContributorInsightsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateContributorInsightsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateContributorInsightsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateContributorInsightsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateContributorInsightsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateContributorInsightsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateContributorInsightsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateContributorInsightsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateContributorInsightsCommand)(output, context); - } - }; - exports2.UpdateContributorInsightsCommand = UpdateContributorInsightsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js -var require_UpdateGlobalTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateGlobalTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateGlobalTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateGlobalTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateGlobalTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateGlobalTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableCommand)(output, context); - } - }; - exports2.UpdateGlobalTableCommand = UpdateGlobalTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js -var require_UpdateGlobalTableSettingsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateGlobalTableSettingsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateGlobalTableSettingsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateGlobalTableSettingsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateGlobalTableSettingsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateGlobalTableSettingsOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(output, context); - } - }; - exports2.UpdateGlobalTableSettingsCommand = UpdateGlobalTableSettingsCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js -var require_UpdateItemCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateItemCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateItemCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateItemCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateItemCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateItemInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateItemOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateItemCommand)(output, context); - } - }; - exports2.UpdateItemCommand = UpdateItemCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js -var require_UpdateTableCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateTableCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateTableCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateTableCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateTableInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateTableOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableCommand)(output, context); - } - }; - exports2.UpdateTableCommand = UpdateTableCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js -var require_UpdateTableReplicaAutoScalingCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTableReplicaAutoScalingCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateTableReplicaAutoScalingCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateTableReplicaAutoScalingCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateTableReplicaAutoScalingCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateTableReplicaAutoScalingOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(output, context); - } - }; - exports2.UpdateTableReplicaAutoScalingCommand = UpdateTableReplicaAutoScalingCommand; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js -var require_UpdateTimeToLiveCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/UpdateTimeToLiveCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UpdateTimeToLiveCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_0(); - var Aws_json1_0_1 = require_Aws_json1_0(); - var UpdateTimeToLiveCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"DynamoDBClient\\"; - const commandName = \\"UpdateTimeToLiveCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.UpdateTimeToLiveInputFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.UpdateTimeToLiveOutputFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_0_1.serializeAws_json1_0UpdateTimeToLiveCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateTimeToLiveCommand)(output, context); - } - }; - exports2.UpdateTimeToLiveCommand = UpdateTimeToLiveCommand; - } -}); - -// node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js -var require_booleanSelector = __commonJS({ - \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/booleanSelector.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.booleanSelector = exports2.SelectorType = void 0; - var SelectorType; - (function(SelectorType2) { - SelectorType2[\\"ENV\\"] = \\"env\\"; - SelectorType2[\\"CONFIG\\"] = \\"shared config entry\\"; - })(SelectorType = exports2.SelectorType || (exports2.SelectorType = {})); - var booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return void 0; - if (obj[key] === \\"true\\") - return true; - if (obj[key] === \\"false\\") - return false; - throw new Error(\`Cannot load \${type} \\"\${key}\\". Expected \\"true\\" or \\"false\\", got \${obj[key]}.\`); - }; - exports2.booleanSelector = booleanSelector; - } -}); - -// node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js -var require_dist_cjs5 = __commonJS({ - \\"node_modules/@aws-sdk/util-config-provider/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_booleanSelector(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js -var require_NodeUseDualstackEndpointConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = exports2.CONFIG_USE_DUALSTACK_ENDPOINT = exports2.ENV_USE_DUALSTACK_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs5(); - exports2.ENV_USE_DUALSTACK_ENDPOINT = \\"AWS_USE_DUALSTACK_ENDPOINT\\"; - exports2.CONFIG_USE_DUALSTACK_ENDPOINT = \\"use_dualstack_endpoint\\"; - exports2.DEFAULT_USE_DUALSTACK_ENDPOINT = false; - exports2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false - }; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js -var require_NodeUseFipsEndpointConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports2.DEFAULT_USE_FIPS_ENDPOINT = exports2.CONFIG_USE_FIPS_ENDPOINT = exports2.ENV_USE_FIPS_ENDPOINT = void 0; - var util_config_provider_1 = require_dist_cjs5(); - exports2.ENV_USE_FIPS_ENDPOINT = \\"AWS_USE_FIPS_ENDPOINT\\"; - exports2.CONFIG_USE_FIPS_ENDPOINT = \\"use_fips_endpoint\\"; - exports2.DEFAULT_USE_FIPS_ENDPOINT = false; - exports2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports2.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports2.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false - }; - } -}); - -// node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js -var require_normalizeProvider = __commonJS({ - \\"node_modules/@aws-sdk/util-middleware/dist-cjs/normalizeProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.normalizeProvider = void 0; - var normalizeProvider = (input) => { - if (typeof input === \\"function\\") - return input; - const promisified = Promise.resolve(input); - return () => promisified; - }; - exports2.normalizeProvider = normalizeProvider; - } -}); - -// node_modules/@aws-sdk/util-middleware/dist-cjs/index.js -var require_dist_cjs6 = __commonJS({ - \\"node_modules/@aws-sdk/util-middleware/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_normalizeProvider(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js -var require_resolveCustomEndpointsConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveCustomEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs6(); - var resolveCustomEndpointsConfig = (input) => { - var _a; - const { endpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint), - isCustomEndpoint: true, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint) - }; - }; - exports2.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js -var require_getEndpointFromRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getEndpointFromRegion = void 0; - var getEndpointFromRegion = async (input) => { - var _a; - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error(\\"Invalid region in client config\\"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) !== null && _a !== void 0 ? _a : {}; - if (!hostname) { - throw new Error(\\"Cannot resolve hostname from client config\\"); - } - return input.urlParser(\`\${tls ? \\"https:\\" : \\"http:\\"}//\${hostname}\`); - }; - exports2.getEndpointFromRegion = getEndpointFromRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js -var require_resolveEndpointsConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveEndpointsConfig = void 0; - var util_middleware_1 = require_dist_cjs6(); - var getEndpointFromRegion_1 = require_getEndpointFromRegion(); - var resolveEndpointsConfig = (input) => { - var _a; - const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)(input.useDualstackEndpoint); - const { endpoint, useFipsEndpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: endpoint ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === \\"string\\" ? urlParser(endpoint) : endpoint) : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: endpoint ? true : false, - useDualstackEndpoint - }; - }; - exports2.resolveEndpointsConfig = resolveEndpointsConfig; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js -var require_endpointsConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/endpointsConfig/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_NodeUseDualstackEndpointConfigOptions(), exports2); - tslib_1.__exportStar(require_NodeUseFipsEndpointConfigOptions(), exports2); - tslib_1.__exportStar(require_resolveCustomEndpointsConfig(), exports2); - tslib_1.__exportStar(require_resolveEndpointsConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js -var require_config = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/config.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_REGION_CONFIG_FILE_OPTIONS = exports2.NODE_REGION_CONFIG_OPTIONS = exports2.REGION_INI_NAME = exports2.REGION_ENV_NAME = void 0; - exports2.REGION_ENV_NAME = \\"AWS_REGION\\"; - exports2.REGION_INI_NAME = \\"region\\"; - exports2.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports2.REGION_INI_NAME], - default: () => { - throw new Error(\\"Region is missing\\"); - } - }; - exports2.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: \\"credentials\\" - }; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js -var require_isFipsRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/isFipsRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isFipsRegion = void 0; - var isFipsRegion = (region) => typeof region === \\"string\\" && (region.startsWith(\\"fips-\\") || region.endsWith(\\"-fips\\")); - exports2.isFipsRegion = isFipsRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js -var require_getRealRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/getRealRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRealRegion = void 0; - var isFipsRegion_1 = require_isFipsRegion(); - var getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) ? [\\"fips-aws-global\\", \\"aws-fips\\"].includes(region) ? \\"us-east-1\\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \\"\\") : region; - exports2.getRealRegion = getRealRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js -var require_resolveRegionConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveRegionConfig = void 0; - var getRealRegion_1 = require_getRealRegion(); - var isFipsRegion_1 = require_isFipsRegion(); - var resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error(\\"Region is missing\\"); - } - return { - ...input, - region: async () => { - if (typeof region === \\"string\\") { - return (0, getRealRegion_1.getRealRegion)(region); - } - const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === \\"string\\" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { - return true; - } - return typeof useFipsEndpoint === \\"boolean\\" ? Promise.resolve(useFipsEndpoint) : useFipsEndpoint(); - } - }; - }; - exports2.resolveRegionConfig = resolveRegionConfig; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js -var require_regionConfig = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionConfig/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_config(), exports2); - tslib_1.__exportStar(require_resolveRegionConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js -var require_PartitionHash = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/PartitionHash.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js -var require_RegionHash = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/RegionHash.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js -var require_getHostnameFromVariants = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getHostnameFromVariants = void 0; - var getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes(\\"fips\\") && useDualstackEndpoint === tags.includes(\\"dualstack\\"))) === null || _a === void 0 ? void 0 : _a.hostname; - }; - exports2.getHostnameFromVariants = getHostnameFromVariants; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js -var require_getResolvedHostname = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getResolvedHostname = void 0; - var getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname ? regionHostname : partitionHostname ? partitionHostname.replace(\\"{region}\\", resolvedRegion) : void 0; - exports2.getResolvedHostname = getResolvedHostname; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js -var require_getResolvedPartition = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getResolvedPartition = void 0; - var getResolvedPartition = (region, { partitionHash }) => { - var _a; - return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : \\"aws\\"; - }; - exports2.getResolvedPartition = getResolvedPartition; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js -var require_getResolvedSigningRegion = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getResolvedSigningRegion = void 0; - var getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace(\\"\\\\\\\\\\\\\\\\\\", \\"\\\\\\\\\\").replace(/^\\\\^/g, \\"\\\\\\\\.\\").replace(/\\\\$$/g, \\"\\\\\\\\.\\"); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); - } - } - }; - exports2.getResolvedSigningRegion = getResolvedSigningRegion; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js -var require_getRegionInfo = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/getRegionInfo.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRegionInfo = void 0; - var getHostnameFromVariants_1 = require_getHostnameFromVariants(); - var getResolvedHostname_1 = require_getResolvedHostname(); - var getResolvedPartition_1 = require_getResolvedPartition(); - var getResolvedSigningRegion_1 = require_getResolvedSigningRegion(); - var getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash }) => { - var _a, _b, _c, _d, _e, _f; - const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === void 0) { - throw new Error(\`Endpoint resolution failed for: \${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}\`); - } - const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint - }); - return { - partition, - signingService, - hostname, - ...signingRegion && { signingRegion }, - ...((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { - signingService: regionHash[resolvedRegion].signingService - } - }; - }; - exports2.getRegionInfo = getRegionInfo; - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js -var require_regionInfo = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/regionInfo/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_PartitionHash(), exports2); - tslib_1.__exportStar(require_RegionHash(), exports2); - tslib_1.__exportStar(require_getRegionInfo(), exports2); - } -}); - -// node_modules/@aws-sdk/config-resolver/dist-cjs/index.js -var require_dist_cjs7 = __commonJS({ - \\"node_modules/@aws-sdk/config-resolver/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_endpointsConfig(), exports2); - tslib_1.__exportStar(require_regionConfig(), exports2); - tslib_1.__exportStar(require_regionInfo(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js -var require_dist_cjs8 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-content-length/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getContentLengthPlugin = exports2.contentLengthMiddlewareOptions = exports2.contentLengthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var CONTENT_LENGTH_HEADER = \\"content-length\\"; - function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request = args.request; - if (protocol_http_1.HttpRequest.isInstance(request)) { - const { body, headers } = request; - if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) { - try { - const length = bodyLengthChecker(body); - request.headers = { - ...request.headers, - [CONTENT_LENGTH_HEADER]: String(length) - }; - } catch (error) { - } - } - } - return next({ - ...args, - request - }); - }; - } - exports2.contentLengthMiddleware = contentLengthMiddleware; - exports2.contentLengthMiddlewareOptions = { - step: \\"build\\", - tags: [\\"SET_CONTENT_LENGTH\\", \\"CONTENT_LENGTH\\"], - name: \\"contentLengthMiddleware\\", - override: true - }; - var getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports2.contentLengthMiddlewareOptions); - } - }); - exports2.getContentLengthPlugin = getContentLengthPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js -var require_configurations = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = void 0; - var ENV_ENDPOINT_DISCOVERY = [\\"AWS_ENABLE_ENDPOINT_DISCOVERY\\", \\"AWS_ENDPOINT_DISCOVERY_ENABLED\\"]; - var CONFIG_ENDPOINT_DISCOVERY = \\"endpoint_discovery_enabled\\"; - var isFalsy = (value) => [\\"false\\", \\"0\\"].indexOf(value) >= 0; - exports2.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - for (let i = 0; i < ENV_ENDPOINT_DISCOVERY.length; i++) { - const envKey = ENV_ENDPOINT_DISCOVERY[i]; - if (envKey in env) { - const value = env[envKey]; - if (value === \\"\\") { - throw Error(\`Environment variable \${envKey} can't be empty of undefined, got \\"\${value}\\"\`); - } - return !isFalsy(value); - } - } - }, - configFileSelector: (profile) => { - if (CONFIG_ENDPOINT_DISCOVERY in profile) { - const value = profile[CONFIG_ENDPOINT_DISCOVERY]; - if (value === void 0) { - throw Error(\`Shared config entry \${CONFIG_ENDPOINT_DISCOVERY} can't be undefined, got \\"\${value}\\"\`); - } - return !isFalsy(value); - } - }, - default: void 0 - }; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js -var require_getCacheKey = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getCacheKey.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCacheKey = void 0; - var getCacheKey = async (commandName, config, options) => { - const { accessKeyId } = await config.credentials(); - const { identifiers } = options; - return JSON.stringify({ - ...accessKeyId && { accessKeyId }, - ...identifiers && { - commandName, - identifiers: Object.entries(identifiers).sort().reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}) - } - }); - }; - exports2.getCacheKey = getCacheKey; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js -var require_updateDiscoveredEndpointInCache = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/updateDiscoveredEndpointInCache.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.updateDiscoveredEndpointInCache = void 0; - var requestQueue = {}; - var updateDiscoveredEndpointInCache = async (config, options) => new Promise((resolve, reject) => { - const { endpointCache } = config; - const { cacheKey, commandName, identifiers } = options; - const endpoints = endpointCache.get(cacheKey); - if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { - if (options.isDiscoveredEndpointRequired) { - if (!requestQueue[cacheKey]) - requestQueue[cacheKey] = []; - requestQueue[cacheKey].push({ resolve, reject }); - } else { - resolve(); - } - } else if (endpoints && endpoints.length > 0) { - resolve(); - } else { - const placeholderEndpoints = [{ Address: \\"\\", CachePeriodInMinutes: 1 }]; - endpointCache.set(cacheKey, placeholderEndpoints); - const command = new options.endpointDiscoveryCommandCtor({ - Operation: commandName.slice(0, -7), - Identifiers: identifiers - }); - const handler = command.resolveMiddleware(options.clientStack, config, options.options); - handler(command).then((result) => { - endpointCache.set(cacheKey, result.output.Endpoints); - if (requestQueue[cacheKey]) { - requestQueue[cacheKey].forEach(({ resolve: resolve2 }) => { - resolve2(); - }); - delete requestQueue[cacheKey]; - } - resolve(); - }).catch((error) => { - var _a; - if (error.name === \\"InvalidEndpointException\\" || ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 421) { - endpointCache.delete(cacheKey); - } - const errorToThrow = Object.assign(new Error(\`The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed.\`), { reason: error }); - if (requestQueue[cacheKey]) { - requestQueue[cacheKey].forEach(({ reject: reject2 }) => { - reject2(errorToThrow); - }); - delete requestQueue[cacheKey]; - } - if (options.isDiscoveredEndpointRequired) { - reject(errorToThrow); - } else { - endpointCache.set(cacheKey, placeholderEndpoints); - resolve(); - } - }); - } - }); - exports2.updateDiscoveredEndpointInCache = updateDiscoveredEndpointInCache; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js -var require_endpointDiscoveryMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/endpointDiscoveryMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.endpointDiscoveryMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var getCacheKey_1 = require_getCacheKey(); - var updateDiscoveredEndpointInCache_1 = require_updateDiscoveredEndpointInCache(); - var endpointDiscoveryMiddleware = (config, middlewareConfig) => (next, context) => async (args) => { - if (config.isCustomEndpoint) { - if (config.isClientEndpointDiscoveryEnabled) { - throw new Error(\`Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.\`); - } - return next(args); - } - const { endpointDiscoveryCommandCtor } = config; - const { isDiscoveredEndpointRequired, identifiers } = middlewareConfig; - const { clientName, commandName } = context; - const isEndpointDiscoveryEnabled = await config.endpointDiscoveryEnabled(); - const cacheKey = await (0, getCacheKey_1.getCacheKey)(commandName, config, { identifiers }); - if (isDiscoveredEndpointRequired) { - if (isEndpointDiscoveryEnabled === false) { - throw new Error(\`Endpoint Discovery is disabled but \${commandName} on \${clientName} requires it. Please check your configurations.\`); - } - await (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { - ...middlewareConfig, - commandName, - cacheKey, - endpointDiscoveryCommandCtor - }); - } else if (isEndpointDiscoveryEnabled) { - (0, updateDiscoveredEndpointInCache_1.updateDiscoveredEndpointInCache)(config, { - ...middlewareConfig, - commandName, - cacheKey, - endpointDiscoveryCommandCtor - }); - } - const { request } = args; - if (cacheKey && protocol_http_1.HttpRequest.isInstance(request)) { - const endpoint = config.endpointCache.getEndpoint(cacheKey); - if (endpoint) { - request.hostname = endpoint; - } - } - return next(args); - }; - exports2.endpointDiscoveryMiddleware = endpointDiscoveryMiddleware; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js -var require_getEndpointDiscoveryPlugin = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/getEndpointDiscoveryPlugin.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getEndpointDiscoveryOptionalPlugin = exports2.getEndpointDiscoveryRequiredPlugin = exports2.getEndpointDiscoveryPlugin = exports2.endpointDiscoveryMiddlewareOptions = void 0; - var endpointDiscoveryMiddleware_1 = require_endpointDiscoveryMiddleware(); - exports2.endpointDiscoveryMiddlewareOptions = { - name: \\"endpointDiscoveryMiddleware\\", - step: \\"build\\", - tags: [\\"ENDPOINT_DISCOVERY\\"], - override: true - }; - var getEndpointDiscoveryPlugin = (pluginConfig, middlewareConfig) => ({ - applyToStack: (commandStack) => { - commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, middlewareConfig), exports2.endpointDiscoveryMiddlewareOptions); - } - }); - exports2.getEndpointDiscoveryPlugin = getEndpointDiscoveryPlugin; - var getEndpointDiscoveryRequiredPlugin = (pluginConfig, middlewareConfig) => ({ - applyToStack: (commandStack) => { - commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: true }), exports2.endpointDiscoveryMiddlewareOptions); - } - }); - exports2.getEndpointDiscoveryRequiredPlugin = getEndpointDiscoveryRequiredPlugin; - var getEndpointDiscoveryOptionalPlugin = (pluginConfig, middlewareConfig) => ({ - applyToStack: (commandStack) => { - commandStack.add((0, endpointDiscoveryMiddleware_1.endpointDiscoveryMiddleware)(pluginConfig, { ...middlewareConfig, isDiscoveredEndpointRequired: false }), exports2.endpointDiscoveryMiddlewareOptions); - } - }); - exports2.getEndpointDiscoveryOptionalPlugin = getEndpointDiscoveryOptionalPlugin; - } -}); - -// node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js -var require_Endpoint = __commonJS({ - \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/Endpoint.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/obliterator/iterator.js -var require_iterator = __commonJS({ - \\"node_modules/obliterator/iterator.js\\"(exports2, module2) { - function Iterator(next) { - Object.defineProperty(this, \\"_next\\", { - writable: false, - enumerable: false, - value: next - }); - this.done = false; - } - Iterator.prototype.next = function() { - if (this.done) - return { done: true }; - var step = this._next(); - if (step.done) - this.done = true; - return step; - }; - if (typeof Symbol !== \\"undefined\\") - Iterator.prototype[Symbol.iterator] = function() { - return this; - }; - Iterator.of = function() { - var args = arguments, l = args.length, i = 0; - return new Iterator(function() { - if (i >= l) - return { done: true }; - return { done: false, value: args[i++] }; - }); - }; - Iterator.empty = function() { - var iterator = new Iterator(null); - iterator.done = true; - return iterator; - }; - Iterator.is = function(value) { - if (value instanceof Iterator) - return true; - return typeof value === \\"object\\" && value !== null && typeof value.next === \\"function\\"; - }; - module2.exports = Iterator; - } -}); - -// node_modules/obliterator/foreach.js -var require_foreach = __commonJS({ - \\"node_modules/obliterator/foreach.js\\"(exports2, module2) { - var ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== \\"undefined\\"; - var SYMBOL_SUPPORT = typeof Symbol !== \\"undefined\\"; - function forEach(iterable, callback) { - var iterator, k, i, l, s; - if (!iterable) - throw new Error(\\"obliterator/forEach: invalid iterable.\\"); - if (typeof callback !== \\"function\\") - throw new Error(\\"obliterator/forEach: expecting a callback.\\"); - if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { - for (i = 0, l = iterable.length; i < l; i++) - callback(iterable[i], i); - return; - } - if (typeof iterable.forEach === \\"function\\") { - iterable.forEach(callback); - return; - } - if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { - iterable = iterable[Symbol.iterator](); - } - if (typeof iterable.next === \\"function\\") { - iterator = iterable; - i = 0; - while (s = iterator.next(), s.done !== true) { - callback(s.value, i); - i++; - } - return; - } - for (k in iterable) { - if (iterable.hasOwnProperty(k)) { - callback(iterable[k], k); - } - } - return; - } - forEach.forEachWithNullKeys = function(iterable, callback) { - var iterator, k, i, l, s; - if (!iterable) - throw new Error(\\"obliterator/forEachWithNullKeys: invalid iterable.\\"); - if (typeof callback !== \\"function\\") - throw new Error(\\"obliterator/forEachWithNullKeys: expecting a callback.\\"); - if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable) || typeof iterable === \\"string\\" || iterable.toString() === \\"[object Arguments]\\") { - for (i = 0, l = iterable.length; i < l; i++) - callback(iterable[i], null); - return; - } - if (iterable instanceof Set) { - iterable.forEach(function(value) { - callback(value, null); - }); - return; - } - if (typeof iterable.forEach === \\"function\\") { - iterable.forEach(callback); - return; - } - if (SYMBOL_SUPPORT && Symbol.iterator in iterable && typeof iterable.next !== \\"function\\") { - iterable = iterable[Symbol.iterator](); - } - if (typeof iterable.next === \\"function\\") { - iterator = iterable; - i = 0; - while (s = iterator.next(), s.done !== true) { - callback(s.value, null); - i++; - } - return; - } - for (k in iterable) { - if (iterable.hasOwnProperty(k)) { - callback(iterable[k], k); - } - } - return; - }; - module2.exports = forEach; - } -}); - -// node_modules/mnemonist/utils/typed-arrays.js -var require_typed_arrays = __commonJS({ - \\"node_modules/mnemonist/utils/typed-arrays.js\\"(exports2) { - var MAX_8BIT_INTEGER = Math.pow(2, 8) - 1; - var MAX_16BIT_INTEGER = Math.pow(2, 16) - 1; - var MAX_32BIT_INTEGER = Math.pow(2, 32) - 1; - var MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1; - var MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1; - var MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1; - exports2.getPointerArray = function(size) { - var maxIndex = size - 1; - if (maxIndex <= MAX_8BIT_INTEGER) - return Uint8Array; - if (maxIndex <= MAX_16BIT_INTEGER) - return Uint16Array; - if (maxIndex <= MAX_32BIT_INTEGER) - return Uint32Array; - return Float64Array; - }; - exports2.getSignedPointerArray = function(size) { - var maxIndex = size - 1; - if (maxIndex <= MAX_SIGNED_8BIT_INTEGER) - return Int8Array; - if (maxIndex <= MAX_SIGNED_16BIT_INTEGER) - return Int16Array; - if (maxIndex <= MAX_SIGNED_32BIT_INTEGER) - return Int32Array; - return Float64Array; - }; - exports2.getNumberType = function(value) { - if (value === (value | 0)) { - if (Math.sign(value) === -1) { - if (value <= 127 && value >= -128) - return Int8Array; - if (value <= 32767 && value >= -32768) - return Int16Array; - return Int32Array; - } else { - if (value <= 255) - return Uint8Array; - if (value <= 65535) - return Uint16Array; - return Uint32Array; - } - } - return Float64Array; - }; - var TYPE_PRIORITY = { - Uint8Array: 1, - Int8Array: 2, - Uint16Array: 3, - Int16Array: 4, - Uint32Array: 5, - Int32Array: 6, - Float32Array: 7, - Float64Array: 8 - }; - exports2.getMinimalRepresentation = function(array, getter) { - var maxType = null, maxPriority = 0, p, t, v, i, l; - for (i = 0, l = array.length; i < l; i++) { - v = getter ? getter(array[i]) : array[i]; - t = exports2.getNumberType(v); - p = TYPE_PRIORITY[t.name]; - if (p > maxPriority) { - maxPriority = p; - maxType = t; - } - } - return maxType; - }; - exports2.isTypedArray = function(value) { - return typeof ArrayBuffer !== \\"undefined\\" && ArrayBuffer.isView(value); - }; - exports2.concat = function() { - var length = 0, i, o, l; - for (i = 0, l = arguments.length; i < l; i++) - length += arguments[i].length; - var array = new arguments[0].constructor(length); - for (i = 0, o = 0; i < l; i++) { - array.set(arguments[i], o); - o += arguments[i].length; - } - return array; - }; - exports2.indices = function(length) { - var PointerArray = exports2.getPointerArray(length); - var array = new PointerArray(length); - for (var i = 0; i < length; i++) - array[i] = i; - return array; - }; - } -}); - -// node_modules/mnemonist/utils/iterables.js -var require_iterables = __commonJS({ - \\"node_modules/mnemonist/utils/iterables.js\\"(exports2) { - var forEach = require_foreach(); - var typed = require_typed_arrays(); - function isArrayLike(target) { - return Array.isArray(target) || typed.isTypedArray(target); - } - function guessLength(target) { - if (typeof target.length === \\"number\\") - return target.length; - if (typeof target.size === \\"number\\") - return target.size; - return; - } - function toArray(target) { - var l = guessLength(target); - var array = typeof l === \\"number\\" ? new Array(l) : []; - var i = 0; - forEach(target, function(value) { - array[i++] = value; - }); - return array; - } - function toArrayWithIndices(target) { - var l = guessLength(target); - var IndexArray = typeof l === \\"number\\" ? typed.getPointerArray(l) : Array; - var array = typeof l === \\"number\\" ? new Array(l) : []; - var indices = typeof l === \\"number\\" ? new IndexArray(l) : []; - var i = 0; - forEach(target, function(value) { - array[i] = value; - indices[i] = i++; - }); - return [array, indices]; - } - exports2.isArrayLike = isArrayLike; - exports2.guessLength = guessLength; - exports2.toArray = toArray; - exports2.toArrayWithIndices = toArrayWithIndices; - } -}); - -// node_modules/mnemonist/lru-cache.js -var require_lru_cache = __commonJS({ - \\"node_modules/mnemonist/lru-cache.js\\"(exports2, module2) { - var Iterator = require_iterator(); - var forEach = require_foreach(); - var typed = require_typed_arrays(); - var iterables = require_iterables(); - function LRUCache(Keys, Values, capacity) { - if (arguments.length < 2) { - capacity = Keys; - Keys = null; - Values = null; - } - this.capacity = capacity; - if (typeof this.capacity !== \\"number\\" || this.capacity <= 0) - throw new Error(\\"mnemonist/lru-cache: capacity should be positive number.\\"); - var PointerArray = typed.getPointerArray(capacity); - this.forward = new PointerArray(capacity); - this.backward = new PointerArray(capacity); - this.K = typeof Keys === \\"function\\" ? new Keys(capacity) : new Array(capacity); - this.V = typeof Values === \\"function\\" ? new Values(capacity) : new Array(capacity); - this.size = 0; - this.head = 0; - this.tail = 0; - this.items = {}; - } - LRUCache.prototype.clear = function() { - this.size = 0; - this.head = 0; - this.tail = 0; - this.items = {}; - }; - LRUCache.prototype.splayOnTop = function(pointer) { - var oldHead = this.head; - if (this.head === pointer) - return this; - var previous = this.backward[pointer], next = this.forward[pointer]; - if (this.tail === pointer) { - this.tail = previous; - } else { - this.backward[next] = previous; - } - this.forward[previous] = next; - this.backward[oldHead] = pointer; - this.head = pointer; - this.forward[pointer] = oldHead; - return this; - }; - LRUCache.prototype.set = function(key, value) { - var pointer = this.items[key]; - if (typeof pointer !== \\"undefined\\") { - this.splayOnTop(pointer); - this.V[pointer] = value; - return; - } - if (this.size < this.capacity) { - pointer = this.size++; - } else { - pointer = this.tail; - this.tail = this.backward[pointer]; - delete this.items[this.K[pointer]]; - } - this.items[key] = pointer; - this.K[pointer] = key; - this.V[pointer] = value; - this.forward[pointer] = this.head; - this.backward[this.head] = pointer; - this.head = pointer; - }; - LRUCache.prototype.setpop = function(key, value) { - var oldValue = null; - var oldKey = null; - var pointer = this.items[key]; - if (typeof pointer !== \\"undefined\\") { - this.splayOnTop(pointer); - oldValue = this.V[pointer]; - this.V[pointer] = value; - return { evicted: false, key, value: oldValue }; - } - if (this.size < this.capacity) { - pointer = this.size++; - } else { - pointer = this.tail; - this.tail = this.backward[pointer]; - oldValue = this.V[pointer]; - oldKey = this.K[pointer]; - delete this.items[this.K[pointer]]; - } - this.items[key] = pointer; - this.K[pointer] = key; - this.V[pointer] = value; - this.forward[pointer] = this.head; - this.backward[this.head] = pointer; - this.head = pointer; - if (oldKey) { - return { evicted: true, key: oldKey, value: oldValue }; - } else { - return null; - } - }; - LRUCache.prototype.has = function(key) { - return key in this.items; - }; - LRUCache.prototype.get = function(key) { - var pointer = this.items[key]; - if (typeof pointer === \\"undefined\\") - return; - this.splayOnTop(pointer); - return this.V[pointer]; - }; - LRUCache.prototype.peek = function(key) { - var pointer = this.items[key]; - if (typeof pointer === \\"undefined\\") - return; - return this.V[pointer]; - }; - LRUCache.prototype.forEach = function(callback, scope) { - scope = arguments.length > 1 ? scope : this; - var i = 0, l = this.size; - var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; - while (i < l) { - callback.call(scope, values[pointer], keys[pointer], this); - pointer = forward[pointer]; - i++; - } - }; - LRUCache.prototype.keys = function() { - var i = 0, l = this.size; - var pointer = this.head, keys = this.K, forward = this.forward; - return new Iterator(function() { - if (i >= l) - return { done: true }; - var key = keys[pointer]; - i++; - if (i < l) - pointer = forward[pointer]; - return { - done: false, - value: key - }; - }); - }; - LRUCache.prototype.values = function() { - var i = 0, l = this.size; - var pointer = this.head, values = this.V, forward = this.forward; - return new Iterator(function() { - if (i >= l) - return { done: true }; - var value = values[pointer]; - i++; - if (i < l) - pointer = forward[pointer]; - return { - done: false, - value - }; - }); - }; - LRUCache.prototype.entries = function() { - var i = 0, l = this.size; - var pointer = this.head, keys = this.K, values = this.V, forward = this.forward; - return new Iterator(function() { - if (i >= l) - return { done: true }; - var key = keys[pointer], value = values[pointer]; - i++; - if (i < l) - pointer = forward[pointer]; - return { - done: false, - value: [key, value] - }; - }); - }; - if (typeof Symbol !== \\"undefined\\") - LRUCache.prototype[Symbol.iterator] = LRUCache.prototype.entries; - LRUCache.prototype.inspect = function() { - var proxy = /* @__PURE__ */ new Map(); - var iterator = this.entries(), step; - while (step = iterator.next(), !step.done) - proxy.set(step.value[0], step.value[1]); - Object.defineProperty(proxy, \\"constructor\\", { - value: LRUCache, - enumerable: false - }); - return proxy; - }; - if (typeof Symbol !== \\"undefined\\") - LRUCache.prototype[Symbol.for(\\"nodejs.util.inspect.custom\\")] = LRUCache.prototype.inspect; - LRUCache.from = function(iterable, Keys, Values, capacity) { - if (arguments.length < 2) { - capacity = iterables.guessLength(iterable); - if (typeof capacity !== \\"number\\") - throw new Error(\\"mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.\\"); - } else if (arguments.length === 2) { - capacity = Keys; - Keys = null; - Values = null; - } - var cache = new LRUCache(Keys, Values, capacity); - forEach(iterable, function(value, key) { - cache.set(key, value); - }); - return cache; - }; - module2.exports = LRUCache; - } -}); - -// node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js -var require_EndpointCache = __commonJS({ - \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/EndpointCache.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.EndpointCache = void 0; - var tslib_1 = require_tslib(); - var lru_cache_1 = tslib_1.__importDefault(require_lru_cache()); - var EndpointCache = class { - constructor(capacity) { - this.cache = new lru_cache_1.default(capacity); - } - getEndpoint(key) { - const endpointsWithExpiry = this.get(key); - if (!endpointsWithExpiry || endpointsWithExpiry.length === 0) { - return void 0; - } - const endpoints = endpointsWithExpiry.map((endpoint) => endpoint.Address); - return endpoints[Math.floor(Math.random() * endpoints.length)]; - } - get(key) { - if (!this.has(key)) { - return; - } - const value = this.cache.get(key); - if (!value) { - return; - } - const now = Date.now(); - const endpointsWithExpiry = value.filter((endpoint) => now < endpoint.Expires); - if (endpointsWithExpiry.length === 0) { - this.delete(key); - return void 0; - } - return endpointsWithExpiry; - } - set(key, endpoints) { - const now = Date.now(); - this.cache.set(key, endpoints.map(({ Address, CachePeriodInMinutes }) => ({ - Address, - Expires: now + CachePeriodInMinutes * 60 * 1e3 - }))); - } - delete(key) { - this.cache.set(key, []); - } - has(key) { - if (!this.cache.has(key)) { - return false; - } - const endpoints = this.cache.peek(key); - if (!endpoints) { - return false; - } - return endpoints.length > 0; - } - clear() { - this.cache.clear(); - } - }; - exports2.EndpointCache = EndpointCache; - } -}); - -// node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js -var require_dist_cjs9 = __commonJS({ - \\"node_modules/@aws-sdk/endpoint-cache/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_Endpoint(), exports2); - tslib_1.__exportStar(require_EndpointCache(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js -var require_resolveEndpointDiscoveryConfig = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/resolveEndpointDiscoveryConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveEndpointDiscoveryConfig = void 0; - var endpoint_cache_1 = require_dist_cjs9(); - var resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => { - var _a; - return { - ...input, - endpointDiscoveryCommandCtor, - endpointCache: new endpoint_cache_1.EndpointCache((_a = input.endpointCacheSize) !== null && _a !== void 0 ? _a : 1e3), - endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 ? () => Promise.resolve(input.endpointDiscoveryEnabled) : input.endpointDiscoveryEnabledProvider, - isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== void 0 - }; - }; - exports2.resolveEndpointDiscoveryConfig = resolveEndpointDiscoveryConfig; - } -}); - -// node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js -var require_dist_cjs10 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-endpoint-discovery/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configurations(), exports2); - tslib_1.__exportStar(require_getEndpointDiscoveryPlugin(), exports2); - tslib_1.__exportStar(require_resolveEndpointDiscoveryConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js -var require_dist_cjs11 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getHostHeaderPlugin = exports2.hostHeaderMiddlewareOptions = exports2.hostHeaderMiddleware = exports2.resolveHostHeaderConfig = void 0; - var protocol_http_1 = require_dist_cjs4(); - function resolveHostHeaderConfig(input) { - return input; - } - exports2.resolveHostHeaderConfig = resolveHostHeaderConfig; - var hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const { request } = args; - const { handlerProtocol = \\"\\" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf(\\"h2\\") >= 0 && !request.headers[\\":authority\\"]) { - delete request.headers[\\"host\\"]; - request.headers[\\":authority\\"] = \\"\\"; - } else if (!request.headers[\\"host\\"]) { - request.headers[\\"host\\"] = request.hostname; - } - return next(args); - }; - exports2.hostHeaderMiddleware = hostHeaderMiddleware; - exports2.hostHeaderMiddlewareOptions = { - name: \\"hostHeaderMiddleware\\", - step: \\"build\\", - priority: \\"low\\", - tags: [\\"HOST\\"], - override: true - }; - var getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.hostHeaderMiddleware)(options), exports2.hostHeaderMiddlewareOptions); - } - }); - exports2.getHostHeaderPlugin = getHostHeaderPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js -var require_loggerMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getLoggerPlugin = exports2.loggerMiddlewareOptions = exports2.loggerMiddleware = void 0; - var loggerMiddleware = () => (next, context) => async (args) => { - const { clientName, commandName, inputFilterSensitiveLog, logger, outputFilterSensitiveLog } = context; - const response = await next(args); - if (!logger) { - return response; - } - if (typeof logger.info === \\"function\\") { - const { $metadata, ...outputWithoutMetadata } = response.output; - logger.info({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata - }); - } - return response; - }; - exports2.loggerMiddleware = loggerMiddleware; - exports2.loggerMiddlewareOptions = { - name: \\"loggerMiddleware\\", - tags: [\\"LOGGER\\"], - step: \\"initialize\\", - override: true - }; - var getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.loggerMiddleware)(), exports2.loggerMiddlewareOptions); - } - }); - exports2.getLoggerPlugin = getLoggerPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js -var require_dist_cjs12 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_loggerMiddleware(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js -var require_dist_cjs13 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRecursionDetectionPlugin = exports2.addRecursionDetectionMiddlewareOptions = exports2.recursionDetectionMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var TRACE_ID_HEADER_NAME = \\"X-Amzn-Trace-Id\\"; - var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; - var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; - var recursionDetectionMiddleware = (options) => (next) => async (args) => { - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request) || options.runtime !== \\"node\\" || request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { - return next(args); - } - const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - const traceId = process.env[ENV_TRACE_ID]; - const nonEmptyString = (str) => typeof str === \\"string\\" && str.length > 0; - if (nonEmptyString(functionName) && nonEmptyString(traceId)) { - request.headers[TRACE_ID_HEADER_NAME] = traceId; - } - return next({ - ...args, - request - }); - }; - exports2.recursionDetectionMiddleware = recursionDetectionMiddleware; - exports2.addRecursionDetectionMiddlewareOptions = { - step: \\"build\\", - tags: [\\"RECURSION_DETECTION\\"], - name: \\"recursionDetectionMiddleware\\", - override: true, - priority: \\"low\\" - }; - var getRecursionDetectionPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.recursionDetectionMiddleware)(options), exports2.addRecursionDetectionMiddlewareOptions); - } - }); - exports2.getRecursionDetectionPlugin = getRecursionDetectionPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js -var require_config2 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/config.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DEFAULT_RETRY_MODE = exports2.DEFAULT_MAX_ATTEMPTS = exports2.RETRY_MODES = void 0; - var RETRY_MODES; - (function(RETRY_MODES2) { - RETRY_MODES2[\\"STANDARD\\"] = \\"standard\\"; - RETRY_MODES2[\\"ADAPTIVE\\"] = \\"adaptive\\"; - })(RETRY_MODES = exports2.RETRY_MODES || (exports2.RETRY_MODES = {})); - exports2.DEFAULT_MAX_ATTEMPTS = 3; - exports2.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; - } -}); - -// node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js -var require_constants2 = __commonJS({ - \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TRANSIENT_ERROR_STATUS_CODES = exports2.TRANSIENT_ERROR_CODES = exports2.THROTTLING_ERROR_CODES = exports2.CLOCK_SKEW_ERROR_CODES = void 0; - exports2.CLOCK_SKEW_ERROR_CODES = [ - \\"AuthFailure\\", - \\"InvalidSignatureException\\", - \\"RequestExpired\\", - \\"RequestInTheFuture\\", - \\"RequestTimeTooSkewed\\", - \\"SignatureDoesNotMatch\\" - ]; - exports2.THROTTLING_ERROR_CODES = [ - \\"BandwidthLimitExceeded\\", - \\"EC2ThrottledException\\", - \\"LimitExceededException\\", - \\"PriorRequestNotComplete\\", - \\"ProvisionedThroughputExceededException\\", - \\"RequestLimitExceeded\\", - \\"RequestThrottled\\", - \\"RequestThrottledException\\", - \\"SlowDown\\", - \\"ThrottledException\\", - \\"Throttling\\", - \\"ThrottlingException\\", - \\"TooManyRequestsException\\", - \\"TransactionInProgressException\\" - ]; - exports2.TRANSIENT_ERROR_CODES = [\\"AbortError\\", \\"TimeoutError\\", \\"RequestTimeout\\", \\"RequestTimeoutException\\"]; - exports2.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; - } -}); - -// node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js -var require_dist_cjs14 = __commonJS({ - \\"node_modules/@aws-sdk/service-error-classification/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isTransientError = exports2.isThrottlingError = exports2.isClockSkewError = exports2.isRetryableByTrait = void 0; - var constants_1 = require_constants2(); - var isRetryableByTrait = (error) => error.$retryable !== void 0; - exports2.isRetryableByTrait = isRetryableByTrait; - var isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); - exports2.isClockSkewError = isClockSkewError; - var isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || constants_1.THROTTLING_ERROR_CODES.includes(error.name) || ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; - }; - exports2.isThrottlingError = isThrottlingError; - var isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); - }; - exports2.isTransientError = isTransientError; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js -var require_DefaultRateLimiter = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/DefaultRateLimiter.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DefaultRateLimiter = void 0; - var service_error_classification_1 = require_dist_cjs14(); - var DefaultRateLimiter = class { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1e3; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = (amount - this.currentCapacity) / this.fillRate * 1e3; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow(this.lastMaxRate * (1 - this.beta) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } - }; - exports2.DefaultRateLimiter = DefaultRateLimiter; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js -var require_constants3 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.REQUEST_HEADER = exports2.INVOCATION_ID_HEADER = exports2.NO_RETRY_INCREMENT = exports2.TIMEOUT_RETRY_COST = exports2.RETRY_COST = exports2.INITIAL_RETRY_TOKENS = exports2.THROTTLING_RETRY_DELAY_BASE = exports2.MAXIMUM_RETRY_DELAY = exports2.DEFAULT_RETRY_DELAY_BASE = void 0; - exports2.DEFAULT_RETRY_DELAY_BASE = 100; - exports2.MAXIMUM_RETRY_DELAY = 20 * 1e3; - exports2.THROTTLING_RETRY_DELAY_BASE = 500; - exports2.INITIAL_RETRY_TOKENS = 500; - exports2.RETRY_COST = 5; - exports2.TIMEOUT_RETRY_COST = 10; - exports2.NO_RETRY_INCREMENT = 1; - exports2.INVOCATION_ID_HEADER = \\"amz-sdk-invocation-id\\"; - exports2.REQUEST_HEADER = \\"amz-sdk-request\\"; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js -var require_defaultRetryQuota = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/defaultRetryQuota.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getDefaultRetryQuota = void 0; - var constants_1 = require_constants3(); - var getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : constants_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : constants_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => error.name === \\"TimeoutError\\" ? timeoutRetryCost : retryCost; - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error(\\"No retry token available\\"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens - }); - }; - exports2.getDefaultRetryQuota = getDefaultRetryQuota; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js -var require_delayDecider = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/delayDecider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultDelayDecider = void 0; - var constants_1 = require_constants3(); - var defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - exports2.defaultDelayDecider = defaultDelayDecider; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js -var require_retryDecider = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryDecider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRetryDecider = void 0; - var service_error_classification_1 = require_dist_cjs14(); - var defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); - }; - exports2.defaultRetryDecider = defaultRetryDecider; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js -var require_StandardRetryStrategy = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.StandardRetryStrategy = void 0; - var protocol_http_1 = require_dist_cjs4(); - var service_error_classification_1 = require_dist_cjs14(); - var uuid_1 = require_dist(); - var config_1 = require_config2(); - var constants_1 = require_constants3(); - var defaultRetryQuota_1 = require_defaultRetryQuota(); - var delayDecider_1 = require_delayDecider(); - var retryDecider_1 = require_retryDecider(); - var StandardRetryStrategy = class { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(constants_1.INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } catch (error) { - maxAttempts = config_1.DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[constants_1.REQUEST_HEADER] = \`attempt=\${attempts + 1}; max=\${maxAttempts}\`; - } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } catch (e) { - const err = asSdkError(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delay = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE, attempts); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } - } - } - }; - exports2.StandardRetryStrategy = StandardRetryStrategy; - var asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === \\"string\\") - return new Error(error); - return new Error(\`AWS SDK error wrapper for \${error}\`); - }; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js -var require_AdaptiveRetryStrategy = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AdaptiveRetryStrategy = void 0; - var config_1 = require_config2(); - var DefaultRateLimiter_1 = require_DefaultRateLimiter(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - var AdaptiveRetryStrategy = class extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.mode = config_1.RETRY_MODES.ADAPTIVE; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - } - }); - } - }; - exports2.AdaptiveRetryStrategy = AdaptiveRetryStrategy; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js -var require_configurations2 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = exports2.CONFIG_RETRY_MODE = exports2.ENV_RETRY_MODE = exports2.resolveRetryConfig = exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports2.CONFIG_MAX_ATTEMPTS = exports2.ENV_MAX_ATTEMPTS = void 0; - var util_middleware_1 = require_dist_cjs6(); - var AdaptiveRetryStrategy_1 = require_AdaptiveRetryStrategy(); - var config_1 = require_config2(); - var StandardRetryStrategy_1 = require_StandardRetryStrategy(); - exports2.ENV_MAX_ATTEMPTS = \\"AWS_MAX_ATTEMPTS\\"; - exports2.CONFIG_MAX_ATTEMPTS = \\"max_attempts\\"; - exports2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports2.ENV_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(\`Environment variable \${exports2.ENV_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports2.CONFIG_MAX_ATTEMPTS]; - if (!value) - return void 0; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(\`Shared config file entry \${exports2.CONFIG_MAX_ATTEMPTS} mast be a number, got \\"\${value}\\"\`); - } - return maxAttempt; - }, - default: config_1.DEFAULT_MAX_ATTEMPTS - }; - var resolveRetryConfig = (input) => { - var _a; - const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : config_1.DEFAULT_MAX_ATTEMPTS); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (input.retryStrategy) { - return input.retryStrategy; - } - const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); - if (retryMode === config_1.RETRY_MODES.ADAPTIVE) { - return new AdaptiveRetryStrategy_1.AdaptiveRetryStrategy(maxAttempts); - } - return new StandardRetryStrategy_1.StandardRetryStrategy(maxAttempts); - } - }; - }; - exports2.resolveRetryConfig = resolveRetryConfig; - exports2.ENV_RETRY_MODE = \\"AWS_RETRY_MODE\\"; - exports2.CONFIG_RETRY_MODE = \\"retry_mode\\"; - exports2.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports2.CONFIG_RETRY_MODE], - default: config_1.DEFAULT_RETRY_MODE - }; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js -var require_omitRetryHeadersMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getOmitRetryHeadersPlugin = exports2.omitRetryHeadersMiddlewareOptions = exports2.omitRetryHeadersMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var constants_1 = require_constants3(); - var omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - delete request.headers[constants_1.INVOCATION_ID_HEADER]; - delete request.headers[constants_1.REQUEST_HEADER]; - } - return next(args); - }; - exports2.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; - exports2.omitRetryHeadersMiddlewareOptions = { - name: \\"omitRetryHeadersMiddleware\\", - tags: [\\"RETRY\\", \\"HEADERS\\", \\"OMIT_RETRY_HEADERS\\"], - relation: \\"before\\", - toMiddleware: \\"awsAuthMiddleware\\", - override: true - }; - var getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports2.omitRetryHeadersMiddleware)(), exports2.omitRetryHeadersMiddlewareOptions); - } - }); - exports2.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js -var require_retryMiddleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/retryMiddleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRetryPlugin = exports2.retryMiddlewareOptions = exports2.retryMiddleware = void 0; - var retryMiddleware = (options) => (next, context) => async (args) => { - const retryStrategy = await options.retryStrategy(); - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...context.userAgent || [], [\\"cfg/retry-mode\\", retryStrategy.mode]]; - return retryStrategy.retry(next, args); - }; - exports2.retryMiddleware = retryMiddleware; - exports2.retryMiddlewareOptions = { - name: \\"retryMiddleware\\", - tags: [\\"RETRY\\"], - step: \\"finalizeRequest\\", - priority: \\"high\\", - override: true - }; - var getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.retryMiddleware)(options), exports2.retryMiddlewareOptions); - } - }); - exports2.getRetryPlugin = getRetryPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js -var require_types = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js -var require_dist_cjs15 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-retry/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_AdaptiveRetryStrategy(), exports2); - tslib_1.__exportStar(require_DefaultRateLimiter(), exports2); - tslib_1.__exportStar(require_StandardRetryStrategy(), exports2); - tslib_1.__exportStar(require_config2(), exports2); - tslib_1.__exportStar(require_configurations2(), exports2); - tslib_1.__exportStar(require_delayDecider(), exports2); - tslib_1.__exportStar(require_omitRetryHeadersMiddleware(), exports2); - tslib_1.__exportStar(require_retryDecider(), exports2); - tslib_1.__exportStar(require_retryMiddleware(), exports2); - tslib_1.__exportStar(require_types(), exports2); - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js -var require_ProviderError = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/ProviderError.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ProviderError = void 0; - var ProviderError = class extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = \\"ProviderError\\"; - Object.setPrototypeOf(this, ProviderError.prototype); - } - static from(error, tryNextLink = true) { - return Object.assign(new this(error.message, tryNextLink), error); - } - }; - exports2.ProviderError = ProviderError; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js -var require_CredentialsProviderError = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/CredentialsProviderError.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.CredentialsProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var CredentialsProviderError = class extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = \\"CredentialsProviderError\\"; - Object.setPrototypeOf(this, CredentialsProviderError.prototype); - } - }; - exports2.CredentialsProviderError = CredentialsProviderError; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js -var require_TokenProviderError = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/TokenProviderError.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.TokenProviderError = void 0; - var ProviderError_1 = require_ProviderError(); - var TokenProviderError = class extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = \\"TokenProviderError\\"; - Object.setPrototypeOf(this, TokenProviderError.prototype); - } - }; - exports2.TokenProviderError = TokenProviderError; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/chain.js -var require_chain = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/chain.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.chain = void 0; - var ProviderError_1 = require_ProviderError(); - function chain(...providers) { - return () => { - let promise = Promise.reject(new ProviderError_1.ProviderError(\\"No providers in chain\\")); - for (const provider of providers) { - promise = promise.catch((err) => { - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { - return provider(); - } - throw err; - }); - } - return promise; - }; - } - exports2.chain = chain; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js -var require_fromStatic = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/fromStatic.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromStatic = void 0; - var fromStatic = (staticValue) => () => Promise.resolve(staticValue); - exports2.fromStatic = fromStatic; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js -var require_memoize = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/memoize.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.memoize = void 0; - var memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - let isConstant = false; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - isConstant = false; - } finally { - pending = void 0; - } - return resolved; - }; - if (isExpired === void 0) { - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - return resolved; - }; - } - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; - }; - exports2.memoize = memoize; - } -}); - -// node_modules/@aws-sdk/property-provider/dist-cjs/index.js -var require_dist_cjs16 = __commonJS({ - \\"node_modules/@aws-sdk/property-provider/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_CredentialsProviderError(), exports2); - tslib_1.__exportStar(require_ProviderError(), exports2); - tslib_1.__exportStar(require_TokenProviderError(), exports2); - tslib_1.__exportStar(require_chain(), exports2); - tslib_1.__exportStar(require_fromStatic(), exports2); - tslib_1.__exportStar(require_memoize(), exports2); - } -}); - -// node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js -var require_dist_cjs17 = __commonJS({ - \\"node_modules/@aws-sdk/util-hex-encoding/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toHex = exports2.fromHex = void 0; - var SHORT_TO_HEX = {}; - var HEX_TO_SHORT = {}; - for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = \`0\${encodedByte}\`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; - } - function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error(\\"Hex encoded strings must have an even number length\\"); - } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.slice(i, i + 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } else { - throw new Error(\`Cannot decode unrecognized sequence \${encodedByte} as hexadecimal\`); - } - } - return out; - } - exports2.fromHex = fromHex; - function toHex(bytes) { - let out = \\"\\"; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; - } - exports2.toHex = toHex; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js -var require_constants4 = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.MAX_PRESIGNED_TTL = exports2.KEY_TYPE_IDENTIFIER = exports2.MAX_CACHE_SIZE = exports2.UNSIGNED_PAYLOAD = exports2.EVENT_ALGORITHM_IDENTIFIER = exports2.ALGORITHM_IDENTIFIER_V4A = exports2.ALGORITHM_IDENTIFIER = exports2.UNSIGNABLE_PATTERNS = exports2.SEC_HEADER_PATTERN = exports2.PROXY_HEADER_PATTERN = exports2.ALWAYS_UNSIGNABLE_HEADERS = exports2.HOST_HEADER = exports2.TOKEN_HEADER = exports2.SHA256_HEADER = exports2.SIGNATURE_HEADER = exports2.GENERATED_HEADERS = exports2.DATE_HEADER = exports2.AMZ_DATE_HEADER = exports2.AUTH_HEADER = exports2.REGION_SET_PARAM = exports2.TOKEN_QUERY_PARAM = exports2.SIGNATURE_QUERY_PARAM = exports2.EXPIRES_QUERY_PARAM = exports2.SIGNED_HEADERS_QUERY_PARAM = exports2.AMZ_DATE_QUERY_PARAM = exports2.CREDENTIAL_QUERY_PARAM = exports2.ALGORITHM_QUERY_PARAM = void 0; - exports2.ALGORITHM_QUERY_PARAM = \\"X-Amz-Algorithm\\"; - exports2.CREDENTIAL_QUERY_PARAM = \\"X-Amz-Credential\\"; - exports2.AMZ_DATE_QUERY_PARAM = \\"X-Amz-Date\\"; - exports2.SIGNED_HEADERS_QUERY_PARAM = \\"X-Amz-SignedHeaders\\"; - exports2.EXPIRES_QUERY_PARAM = \\"X-Amz-Expires\\"; - exports2.SIGNATURE_QUERY_PARAM = \\"X-Amz-Signature\\"; - exports2.TOKEN_QUERY_PARAM = \\"X-Amz-Security-Token\\"; - exports2.REGION_SET_PARAM = \\"X-Amz-Region-Set\\"; - exports2.AUTH_HEADER = \\"authorization\\"; - exports2.AMZ_DATE_HEADER = exports2.AMZ_DATE_QUERY_PARAM.toLowerCase(); - exports2.DATE_HEADER = \\"date\\"; - exports2.GENERATED_HEADERS = [exports2.AUTH_HEADER, exports2.AMZ_DATE_HEADER, exports2.DATE_HEADER]; - exports2.SIGNATURE_HEADER = exports2.SIGNATURE_QUERY_PARAM.toLowerCase(); - exports2.SHA256_HEADER = \\"x-amz-content-sha256\\"; - exports2.TOKEN_HEADER = exports2.TOKEN_QUERY_PARAM.toLowerCase(); - exports2.HOST_HEADER = \\"host\\"; - exports2.ALWAYS_UNSIGNABLE_HEADERS = { - authorization: true, - \\"cache-control\\": true, - connection: true, - expect: true, - from: true, - \\"keep-alive\\": true, - \\"max-forwards\\": true, - pragma: true, - referer: true, - te: true, - trailer: true, - \\"transfer-encoding\\": true, - upgrade: true, - \\"user-agent\\": true, - \\"x-amzn-trace-id\\": true - }; - exports2.PROXY_HEADER_PATTERN = /^proxy-/; - exports2.SEC_HEADER_PATTERN = /^sec-/; - exports2.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; - exports2.ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256\\"; - exports2.ALGORITHM_IDENTIFIER_V4A = \\"AWS4-ECDSA-P256-SHA256\\"; - exports2.EVENT_ALGORITHM_IDENTIFIER = \\"AWS4-HMAC-SHA256-PAYLOAD\\"; - exports2.UNSIGNED_PAYLOAD = \\"UNSIGNED-PAYLOAD\\"; - exports2.MAX_CACHE_SIZE = 50; - exports2.KEY_TYPE_IDENTIFIER = \\"aws4_request\\"; - exports2.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js -var require_credentialDerivation = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/credentialDerivation.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.clearCredentialCache = exports2.getSigningKey = exports2.createScope = void 0; - var util_hex_encoding_1 = require_dist_cjs17(); - var constants_1 = require_constants4(); - var signingKeyCache = {}; - var cacheQueue = []; - var createScope = (shortDate, region, service) => \`\${shortDate}/\${region}/\${service}/\${constants_1.KEY_TYPE_IDENTIFIER}\`; - exports2.createScope = createScope; - var getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = \`\${shortDate}:\${region}:\${service}:\${(0, util_hex_encoding_1.toHex)(credsHash)}:\${credentials.sessionToken}\`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = \`AWS4\${credentials.secretAccessKey}\`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return signingKeyCache[cacheKey] = key; - }; - exports2.getSigningKey = getSigningKey; - var clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); - }; - exports2.clearCredentialCache = clearCredentialCache; - var hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update(data); - return hash.digest(); - }; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js -var require_getCanonicalHeaders = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalHeaders.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCanonicalHeaders = void 0; - var constants_1 = require_constants4(); - var getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - if (headers[headerName] == void 0) { - continue; - } - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || signableHeaders && !signableHeaders.has(canonicalHeaderName)) { - continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\\\\s+/g, \\" \\"); - } - return canonical; - }; - exports2.getCanonicalHeaders = getCanonicalHeaders; - } -}); - -// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js -var require_escape_uri = __commonJS({ - \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.escapeUri = void 0; - var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); - exports2.escapeUri = escapeUri; - var hexEncode = (c) => \`%\${c.charCodeAt(0).toString(16).toUpperCase()}\`; - } -}); - -// node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js -var require_escape_uri_path = __commonJS({ - \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/escape-uri-path.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.escapeUriPath = void 0; - var escape_uri_1 = require_escape_uri(); - var escapeUriPath = (uri) => uri.split(\\"/\\").map(escape_uri_1.escapeUri).join(\\"/\\"); - exports2.escapeUriPath = escapeUriPath; - } -}); - -// node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js -var require_dist_cjs18 = __commonJS({ - \\"node_modules/@aws-sdk/util-uri-escape/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_escape_uri(), exports2); - tslib_1.__exportStar(require_escape_uri_path(), exports2); - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js -var require_getCanonicalQuery = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getCanonicalQuery.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCanonicalQuery = void 0; - var util_uri_escape_1 = require_dist_cjs18(); - var constants_1 = require_constants4(); - var getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === \\"string\\") { - serialized[key] = \`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value)}\`; - } else if (Array.isArray(value)) { - serialized[key] = value.slice(0).sort().reduce((encoded, value2) => encoded.concat([\`\${(0, util_uri_escape_1.escapeUri)(key)}=\${(0, util_uri_escape_1.escapeUri)(value2)}\`]), []).join(\\"&\\"); - } - } - return keys.map((key) => serialized[key]).filter((serialized2) => serialized2).join(\\"&\\"); - }; - exports2.getCanonicalQuery = getCanonicalQuery; - } -}); - -// node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js -var require_dist_cjs19 = __commonJS({ - \\"node_modules/@aws-sdk/is-array-buffer/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isArrayBuffer = void 0; - var isArrayBuffer = (arg) => typeof ArrayBuffer === \\"function\\" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === \\"[object ArrayBuffer]\\"; - exports2.isArrayBuffer = isArrayBuffer; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js -var require_getPayloadHash = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/getPayloadHash.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getPayloadHash = void 0; - var is_array_buffer_1 = require_dist_cjs19(); - var util_hex_encoding_1 = require_dist_cjs17(); - var constants_1 = require_constants4(); - var getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == void 0) { - return \\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\\"; - } else if (typeof body === \\"string\\" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update(body); - return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); - } - return constants_1.UNSIGNED_PAYLOAD; - }; - exports2.getPayloadHash = getPayloadHash; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js -var require_headerUtil = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/headerUtil.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.deleteHeader = exports2.getHeaderValue = exports2.hasHeader = void 0; - var hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; - }; - exports2.hasHeader = hasHeader; - var getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return void 0; - }; - exports2.getHeaderValue = getHeaderValue; - var deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } - }; - exports2.deleteHeader = deleteHeader; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js -var require_cloneRequest = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/cloneRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.cloneQuery = exports2.cloneRequest = void 0; - var cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? (0, exports2.cloneQuery)(query) : void 0 - }); - exports2.cloneRequest = cloneRequest; - var cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param - }; - }, {}); - exports2.cloneQuery = cloneQuery; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js -var require_moveHeadersToQuery = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/moveHeadersToQuery.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.moveHeadersToQuery = void 0; - var cloneRequest_1 = require_cloneRequest(); - var moveHeadersToQuery = (request, options = {}) => { - var _a; - const { headers, query = {} } = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.slice(0, 6) === \\"x-amz-\\" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request, - headers, - query - }; - }; - exports2.moveHeadersToQuery = moveHeadersToQuery; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js -var require_prepareRequest = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/prepareRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.prepareRequest = void 0; - var cloneRequest_1 = require_cloneRequest(); - var constants_1 = require_constants4(); - var prepareRequest = (request) => { - request = typeof request.clone === \\"function\\" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const headerName of Object.keys(request.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request.headers[headerName]; - } - } - return request; - }; - exports2.prepareRequest = prepareRequest; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js -var require_utilDate = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/utilDate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toDate = exports2.iso8601 = void 0; - var iso8601 = (time) => (0, exports2.toDate)(time).toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); - exports2.iso8601 = iso8601; - var toDate = (time) => { - if (typeof time === \\"number\\") { - return new Date(time * 1e3); - } - if (typeof time === \\"string\\") { - if (Number(time)) { - return new Date(Number(time) * 1e3); - } - return new Date(time); - } - return time; - }; - exports2.toDate = toDate; - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js -var require_SignatureV4 = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/SignatureV4.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SignatureV4 = void 0; - var util_hex_encoding_1 = require_dist_cjs17(); - var util_middleware_1 = require_dist_cjs6(); - var constants_1 = require_constants4(); - var credentialDerivation_1 = require_credentialDerivation(); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - var getPayloadHash_1 = require_getPayloadHash(); - var headerUtil_1 = require_headerUtil(); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - var prepareRequest_1 = require_prepareRequest(); - var utilDate_1 = require_utilDate(); - var SignatureV4 = class { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) { - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === \\"boolean\\" ? applyChecksum : true; - this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); - this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService } = options; - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject(\\"Signature version 4 presigned URLs must have an expiration date less than one week in the future\\"); - } - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request.query[constants_1.CREDENTIAL_QUERY_PARAM] = \`\${credentials.accessKeyId}/\${scope}\`; - request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); - return request; - } - async sign(toSign, options) { - if (typeof toSign === \\"string\\") { - return this.signString(toSign, options); - } else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { shortDate, longDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); - const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload - ].join(\\"\\\\n\\"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update(stringToSign); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : await this.regionProvider(); - const request = (0, prepareRequest_1.prepareRequest)(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request.headers[constants_1.AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); - if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { - request.headers[constants_1.SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); - request.headers[constants_1.AUTH_HEADER] = \`\${constants_1.ALGORITHM_IDENTIFIER} Credential=\${credentials.accessKeyId}/\${scope}, SignedHeaders=\${getCanonicalHeaderList(canonicalHeaders)}, Signature=\${signature}\`; - return request; - } - createCanonicalRequest(request, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return \`\${request.method} -\${this.getCanonicalPath(request)} -\${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} -\${sortedHeaders.map((name) => \`\${name}:\${canonicalHeaders[name]}\`).join(\\"\\\\n\\")} - -\${sortedHeaders.join(\\";\\")} -\${payloadHash}\`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update(canonicalRequest); - const hashedRequest = await hash.digest(); - return \`\${constants_1.ALGORITHM_IDENTIFIER} -\${longDate} -\${credentialScope} -\${(0, util_hex_encoding_1.toHex)(hashedRequest)}\`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const normalizedPathSegments = []; - for (const pathSegment of path.split(\\"/\\")) { - if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) - continue; - if (pathSegment === \\".\\") - continue; - if (pathSegment === \\"..\\") { - normalizedPathSegments.pop(); - } else { - normalizedPathSegments.push(pathSegment); - } - } - const normalizedPath = \`\${(path === null || path === void 0 ? void 0 : path.startsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\${normalizedPathSegments.join(\\"/\\")}\${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith(\\"/\\")) ? \\"/\\" : \\"\\"}\`; - const doubleEncoded = encodeURIComponent(normalizedPath); - return doubleEncoded.replace(/%2F/g, \\"/\\"); - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update(stringToSign); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); - } - validateResolvedCredentials(credentials) { - if (typeof credentials !== \\"object\\" || typeof credentials.accessKeyId !== \\"string\\" || typeof credentials.secretAccessKey !== \\"string\\") { - throw new Error(\\"Resolved credential object is not valid\\"); - } - } - }; - exports2.SignatureV4 = SignatureV4; - var formatDate = (now) => { - const longDate = (0, utilDate_1.iso8601)(now).replace(/[\\\\-:]/g, \\"\\"); - return { - longDate, - shortDate: longDate.slice(0, 8) - }; - }; - var getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(\\";\\"); - } -}); - -// node_modules/@aws-sdk/signature-v4/dist-cjs/index.js -var require_dist_cjs20 = __commonJS({ - \\"node_modules/@aws-sdk/signature-v4/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.prepareRequest = exports2.moveHeadersToQuery = exports2.getPayloadHash = exports2.getCanonicalQuery = exports2.getCanonicalHeaders = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_SignatureV4(), exports2); - var getCanonicalHeaders_1 = require_getCanonicalHeaders(); - Object.defineProperty(exports2, \\"getCanonicalHeaders\\", { enumerable: true, get: function() { - return getCanonicalHeaders_1.getCanonicalHeaders; - } }); - var getCanonicalQuery_1 = require_getCanonicalQuery(); - Object.defineProperty(exports2, \\"getCanonicalQuery\\", { enumerable: true, get: function() { - return getCanonicalQuery_1.getCanonicalQuery; - } }); - var getPayloadHash_1 = require_getPayloadHash(); - Object.defineProperty(exports2, \\"getPayloadHash\\", { enumerable: true, get: function() { - return getPayloadHash_1.getPayloadHash; - } }); - var moveHeadersToQuery_1 = require_moveHeadersToQuery(); - Object.defineProperty(exports2, \\"moveHeadersToQuery\\", { enumerable: true, get: function() { - return moveHeadersToQuery_1.moveHeadersToQuery; - } }); - var prepareRequest_1 = require_prepareRequest(); - Object.defineProperty(exports2, \\"prepareRequest\\", { enumerable: true, get: function() { - return prepareRequest_1.prepareRequest; - } }); - tslib_1.__exportStar(require_credentialDerivation(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js -var require_configurations3 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveSigV4AuthConfig = exports2.resolveAwsAuthConfig = void 0; - var property_provider_1 = require_dist_cjs16(); - var signature_v4_1 = require_dist_cjs20(); - var CREDENTIAL_EXPIRE_WINDOW = 3e5; - var resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } else { - signer = () => normalizeProvider(input.region)().then(async (region) => [ - await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint() - }) || {}, - region - ]).then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - }; - const signerConstructor = input.signerConstructor || signature_v4_1.SignatureV4; - return new signerConstructor(params); - }); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer - }; - }; - exports2.resolveAwsAuthConfig = resolveAwsAuthConfig; - var resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } else { - signer = normalizeProvider(new signature_v4_1.SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer - }; - }; - exports2.resolveSigV4AuthConfig = resolveSigV4AuthConfig; - var normalizeProvider = (input) => { - if (typeof input === \\"object\\") { - const promisified = Promise.resolve(input); - return () => promisified; - } - return input; - }; - var normalizeCredentialProvider = (credentials) => { - if (typeof credentials === \\"function\\") { - return (0, property_provider_1.memoize)(credentials, (credentials2) => credentials2.expiration !== void 0 && credentials2.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials2) => credentials2.expiration !== void 0); - } - return normalizeProvider(credentials); - }; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js -var require_getSkewCorrectedDate = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSkewCorrectedDate = void 0; - var getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); - exports2.getSkewCorrectedDate = getSkewCorrectedDate; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js -var require_isClockSkewed = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isClockSkewed = void 0; - var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); - var isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 3e5; - exports2.isClockSkewed = isClockSkewed; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js -var require_getUpdatedSystemClockOffset = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getUpdatedSystemClockOffset = void 0; - var isClockSkewed_1 = require_isClockSkewed(); - var getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); - } - return currentSystemClockOffset; - }; - exports2.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js -var require_middleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin = exports2.awsAuthMiddlewareOptions = exports2.awsAuthMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var getSkewCorrectedDate_1 = require_getSkewCorrectedDate(); - var getUpdatedSystemClockOffset_1 = require_getUpdatedSystemClockOffset(); - var awsAuthMiddleware = (options) => (next, context) => async function(args) { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const signer = await options.signer(); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), - signingRegion: context[\\"signing_region\\"], - signingService: context[\\"signing_service\\"] - }) - }).catch((error) => { - var _a; - const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); - if (serverTime) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); - } - throw error; - }); - const dateHeader = getDateHeader(output.response); - if (dateHeader) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); - } - return output; - }; - exports2.awsAuthMiddleware = awsAuthMiddleware; - var getDateHeader = (response) => { - var _a, _b, _c; - return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : void 0; - }; - exports2.awsAuthMiddlewareOptions = { - name: \\"awsAuthMiddleware\\", - tags: [\\"SIGNATURE\\", \\"AWSAUTH\\"], - relation: \\"after\\", - toMiddleware: \\"retryMiddleware\\", - override: true - }; - var getAwsAuthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports2.awsAuthMiddleware)(options), exports2.awsAuthMiddlewareOptions); - } - }); - exports2.getAwsAuthPlugin = getAwsAuthPlugin; - exports2.getSigV4AuthPlugin = exports2.getAwsAuthPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js -var require_dist_cjs21 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configurations3(), exports2); - tslib_1.__exportStar(require_middleware(), exports2); - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js -var require_configurations4 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveUserAgentConfig = void 0; - function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === \\"string\\" ? [[input.customUserAgent]] : input.customUserAgent - }; - } - exports2.resolveUserAgentConfig = resolveUserAgentConfig; - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js -var require_constants5 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.UA_ESCAPE_REGEX = exports2.SPACE = exports2.X_AMZ_USER_AGENT = exports2.USER_AGENT = void 0; - exports2.USER_AGENT = \\"user-agent\\"; - exports2.X_AMZ_USER_AGENT = \\"x-amz-user-agent\\"; - exports2.SPACE = \\" \\"; - exports2.UA_ESCAPE_REGEX = /[^\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\.\\\\^\\\\_\\\\\`\\\\|\\\\~\\\\d\\\\w]/g; - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js -var require_user_agent_middleware = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getUserAgentPlugin = exports2.getUserAgentMiddlewareOptions = exports2.userAgentMiddleware = void 0; - var protocol_http_1 = require_dist_cjs4(); - var constants_1 = require_constants5(); - var userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const sdkUserAgentValue = [...defaultUserAgent, ...userAgent, ...customUserAgent].join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith(\\"aws-sdk-\\")), - ...customUserAgent - ].join(constants_1.SPACE); - if (options.runtime !== \\"browser\\") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] ? \`\${headers[constants_1.USER_AGENT]} \${normalUAValue}\` : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; - } else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request - }); - }; - exports2.userAgentMiddleware = userAgentMiddleware; - var escapeUserAgent = ([name, version]) => { - const prefixSeparatorIndex = name.indexOf(\\"/\\"); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === \\"api\\") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version].filter((item) => item && item.length > 0).map((item) => item === null || item === void 0 ? void 0 : item.replace(constants_1.UA_ESCAPE_REGEX, \\"_\\")).join(\\"/\\"); - }; - exports2.getUserAgentMiddlewareOptions = { - name: \\"getUserAgentMiddleware\\", - step: \\"build\\", - priority: \\"low\\", - tags: [\\"SET_USER_AGENT\\", \\"USER_AGENT\\"], - override: true - }; - var getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports2.userAgentMiddleware)(config), exports2.getUserAgentMiddlewareOptions); - } - }); - exports2.getUserAgentPlugin = getUserAgentPlugin; - } -}); - -// node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js -var require_dist_cjs22 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configurations4(), exports2); - tslib_1.__exportStar(require_user_agent_middleware(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/package.json -var require_package = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/package.json\\"(exports2, module2) { - module2.exports = { - name: \\"@aws-sdk/client-dynamodb\\", - description: \\"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native\\", - version: \\"3.163.0\\", - scripts: { - build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", - \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", - \\"build:docs\\": \\"typedoc\\", - \\"build:es\\": \\"tsc -p tsconfig.es.json\\", - \\"build:types\\": \\"tsc -p tsconfig.types.json\\", - \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", - clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" - }, - main: \\"./dist-cjs/index.js\\", - types: \\"./dist-types/index.d.ts\\", - module: \\"./dist-es/index.js\\", - sideEffects: false, - dependencies: { - \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", - \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", - \\"@aws-sdk/client-sts\\": \\"3.163.0\\", - \\"@aws-sdk/config-resolver\\": \\"3.163.0\\", - \\"@aws-sdk/credential-provider-node\\": \\"3.163.0\\", - \\"@aws-sdk/fetch-http-handler\\": \\"3.162.0\\", - \\"@aws-sdk/hash-node\\": \\"3.162.0\\", - \\"@aws-sdk/invalid-dependency\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-content-length\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-endpoint-discovery\\": \\"3.163.0\\", - \\"@aws-sdk/middleware-host-header\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-logger\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-recursion-detection\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-retry\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-serde\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-signing\\": \\"3.163.0\\", - \\"@aws-sdk/middleware-stack\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-user-agent\\": \\"3.162.0\\", - \\"@aws-sdk/node-config-provider\\": \\"3.162.0\\", - \\"@aws-sdk/node-http-handler\\": \\"3.162.0\\", - \\"@aws-sdk/protocol-http\\": \\"3.162.0\\", - \\"@aws-sdk/smithy-client\\": \\"3.162.0\\", - \\"@aws-sdk/types\\": \\"3.162.0\\", - \\"@aws-sdk/url-parser\\": \\"3.162.0\\", - \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-browser\\": \\"3.154.0\\", - \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.162.0\\", - \\"@aws-sdk/util-defaults-mode-node\\": \\"3.163.0\\", - \\"@aws-sdk/util-user-agent-browser\\": \\"3.162.0\\", - \\"@aws-sdk/util-user-agent-node\\": \\"3.162.0\\", - \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", - \\"@aws-sdk/util-waiter\\": \\"3.162.0\\", - tslib: \\"^2.3.1\\", - uuid: \\"^8.3.2\\" - }, - devDependencies: { - \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", - \\"@tsconfig/recommended\\": \\"1.0.1\\", - \\"@types/node\\": \\"^12.7.5\\", - \\"@types/uuid\\": \\"^8.3.0\\", - concurrently: \\"7.0.0\\", - \\"downlevel-dts\\": \\"0.7.0\\", - rimraf: \\"3.0.2\\", - typedoc: \\"0.19.2\\", - typescript: \\"~4.6.2\\" - }, - overrides: { - typedoc: { - typescript: \\"~4.6.2\\" - } - }, - engines: { - node: \\">=12.0.0\\" - }, - typesVersions: { - \\"<4.0\\": { - \\"dist-types/*\\": [ - \\"dist-types/ts3.4/*\\" - ] - } - }, - files: [ - \\"dist-*\\" - ], - author: { - name: \\"AWS SDK for JavaScript Team\\", - url: \\"https://aws.amazon.com/javascript/\\" - }, - license: \\"Apache-2.0\\", - browser: { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" - }, - \\"react-native\\": { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" - }, - homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb\\", - repository: { - type: \\"git\\", - url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", - directory: \\"clients/client-dynamodb\\" - } - }; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js -var require_STSServiceException = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STSServiceException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var STSServiceException = class extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); - } - }; - exports2.STSServiceException = STSServiceException; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js -var require_models_02 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetSessionTokenResponseFilterSensitiveLog = exports2.GetSessionTokenRequestFilterSensitiveLog = exports2.GetFederationTokenResponseFilterSensitiveLog = exports2.FederatedUserFilterSensitiveLog = exports2.GetFederationTokenRequestFilterSensitiveLog = exports2.GetCallerIdentityResponseFilterSensitiveLog = exports2.GetCallerIdentityRequestFilterSensitiveLog = exports2.GetAccessKeyInfoResponseFilterSensitiveLog = exports2.GetAccessKeyInfoRequestFilterSensitiveLog = exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports2.AssumeRoleResponseFilterSensitiveLog = exports2.CredentialsFilterSensitiveLog = exports2.AssumeRoleRequestFilterSensitiveLog = exports2.TagFilterSensitiveLog = exports2.PolicyDescriptorTypeFilterSensitiveLog = exports2.AssumedRoleUserFilterSensitiveLog = exports2.InvalidAuthorizationMessageException = exports2.IDPCommunicationErrorException = exports2.InvalidIdentityTokenException = exports2.IDPRejectedClaimException = exports2.RegionDisabledException = exports2.PackedPolicyTooLargeException = exports2.MalformedPolicyDocumentException = exports2.ExpiredTokenException = void 0; - var STSServiceException_1 = require_STSServiceException(); - var ExpiredTokenException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"ExpiredTokenException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ExpiredTokenException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); - } - }; - exports2.ExpiredTokenException = ExpiredTokenException; - var MalformedPolicyDocumentException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"MalformedPolicyDocumentException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"MalformedPolicyDocumentException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); - } - }; - exports2.MalformedPolicyDocumentException = MalformedPolicyDocumentException; - var PackedPolicyTooLargeException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"PackedPolicyTooLargeException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"PackedPolicyTooLargeException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); - } - }; - exports2.PackedPolicyTooLargeException = PackedPolicyTooLargeException; - var RegionDisabledException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"RegionDisabledException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"RegionDisabledException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); - } - }; - exports2.RegionDisabledException = RegionDisabledException; - var IDPRejectedClaimException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"IDPRejectedClaimException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IDPRejectedClaimException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); - } - }; - exports2.IDPRejectedClaimException = IDPRejectedClaimException; - var InvalidIdentityTokenException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"InvalidIdentityTokenException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidIdentityTokenException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); - } - }; - exports2.InvalidIdentityTokenException = InvalidIdentityTokenException; - var IDPCommunicationErrorException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"IDPCommunicationErrorException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"IDPCommunicationErrorException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); - } - }; - exports2.IDPCommunicationErrorException = IDPCommunicationErrorException; - var InvalidAuthorizationMessageException = class extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: \\"InvalidAuthorizationMessageException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidAuthorizationMessageException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); - } - }; - exports2.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; - var AssumedRoleUserFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumedRoleUserFilterSensitiveLog = AssumedRoleUserFilterSensitiveLog; - var PolicyDescriptorTypeFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.PolicyDescriptorTypeFilterSensitiveLog = PolicyDescriptorTypeFilterSensitiveLog; - var TagFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.TagFilterSensitiveLog = TagFilterSensitiveLog; - var AssumeRoleRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleRequestFilterSensitiveLog = AssumeRoleRequestFilterSensitiveLog; - var CredentialsFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; - var AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; - var AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; - var AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; - var AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; - var AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; - var DecodeAuthorizationMessageRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DecodeAuthorizationMessageRequestFilterSensitiveLog = DecodeAuthorizationMessageRequestFilterSensitiveLog; - var DecodeAuthorizationMessageResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.DecodeAuthorizationMessageResponseFilterSensitiveLog = DecodeAuthorizationMessageResponseFilterSensitiveLog; - var GetAccessKeyInfoRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetAccessKeyInfoRequestFilterSensitiveLog = GetAccessKeyInfoRequestFilterSensitiveLog; - var GetAccessKeyInfoResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetAccessKeyInfoResponseFilterSensitiveLog = GetAccessKeyInfoResponseFilterSensitiveLog; - var GetCallerIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetCallerIdentityRequestFilterSensitiveLog = GetCallerIdentityRequestFilterSensitiveLog; - var GetCallerIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetCallerIdentityResponseFilterSensitiveLog = GetCallerIdentityResponseFilterSensitiveLog; - var GetFederationTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetFederationTokenRequestFilterSensitiveLog = GetFederationTokenRequestFilterSensitiveLog; - var FederatedUserFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.FederatedUserFilterSensitiveLog = FederatedUserFilterSensitiveLog; - var GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; - var GetSessionTokenRequestFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetSessionTokenRequestFilterSensitiveLog = GetSessionTokenRequestFilterSensitiveLog; - var GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; - } -}); - -// node_modules/entities/lib/maps/entities.json -var require_entities = __commonJS({ - \\"node_modules/entities/lib/maps/entities.json\\"(exports2, module2) { - module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Abreve: \\"\\\\u0102\\", abreve: \\"\\\\u0103\\", ac: \\"\\\\u223E\\", acd: \\"\\\\u223F\\", acE: \\"\\\\u223E\\\\u0333\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", Acy: \\"\\\\u0410\\", acy: \\"\\\\u0430\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", af: \\"\\\\u2061\\", Afr: \\"\\\\u{1D504}\\", afr: \\"\\\\u{1D51E}\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", alefsym: \\"\\\\u2135\\", aleph: \\"\\\\u2135\\", Alpha: \\"\\\\u0391\\", alpha: \\"\\\\u03B1\\", Amacr: \\"\\\\u0100\\", amacr: \\"\\\\u0101\\", amalg: \\"\\\\u2A3F\\", amp: \\"&\\", AMP: \\"&\\", andand: \\"\\\\u2A55\\", And: \\"\\\\u2A53\\", and: \\"\\\\u2227\\", andd: \\"\\\\u2A5C\\", andslope: \\"\\\\u2A58\\", andv: \\"\\\\u2A5A\\", ang: \\"\\\\u2220\\", ange: \\"\\\\u29A4\\", angle: \\"\\\\u2220\\", angmsdaa: \\"\\\\u29A8\\", angmsdab: \\"\\\\u29A9\\", angmsdac: \\"\\\\u29AA\\", angmsdad: \\"\\\\u29AB\\", angmsdae: \\"\\\\u29AC\\", angmsdaf: \\"\\\\u29AD\\", angmsdag: \\"\\\\u29AE\\", angmsdah: \\"\\\\u29AF\\", angmsd: \\"\\\\u2221\\", angrt: \\"\\\\u221F\\", angrtvb: \\"\\\\u22BE\\", angrtvbd: \\"\\\\u299D\\", angsph: \\"\\\\u2222\\", angst: \\"\\\\xC5\\", angzarr: \\"\\\\u237C\\", Aogon: \\"\\\\u0104\\", aogon: \\"\\\\u0105\\", Aopf: \\"\\\\u{1D538}\\", aopf: \\"\\\\u{1D552}\\", apacir: \\"\\\\u2A6F\\", ap: \\"\\\\u2248\\", apE: \\"\\\\u2A70\\", ape: \\"\\\\u224A\\", apid: \\"\\\\u224B\\", apos: \\"'\\", ApplyFunction: \\"\\\\u2061\\", approx: \\"\\\\u2248\\", approxeq: \\"\\\\u224A\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Ascr: \\"\\\\u{1D49C}\\", ascr: \\"\\\\u{1D4B6}\\", Assign: \\"\\\\u2254\\", ast: \\"*\\", asymp: \\"\\\\u2248\\", asympeq: \\"\\\\u224D\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", awconint: \\"\\\\u2233\\", awint: \\"\\\\u2A11\\", backcong: \\"\\\\u224C\\", backepsilon: \\"\\\\u03F6\\", backprime: \\"\\\\u2035\\", backsim: \\"\\\\u223D\\", backsimeq: \\"\\\\u22CD\\", Backslash: \\"\\\\u2216\\", Barv: \\"\\\\u2AE7\\", barvee: \\"\\\\u22BD\\", barwed: \\"\\\\u2305\\", Barwed: \\"\\\\u2306\\", barwedge: \\"\\\\u2305\\", bbrk: \\"\\\\u23B5\\", bbrktbrk: \\"\\\\u23B6\\", bcong: \\"\\\\u224C\\", Bcy: \\"\\\\u0411\\", bcy: \\"\\\\u0431\\", bdquo: \\"\\\\u201E\\", becaus: \\"\\\\u2235\\", because: \\"\\\\u2235\\", Because: \\"\\\\u2235\\", bemptyv: \\"\\\\u29B0\\", bepsi: \\"\\\\u03F6\\", bernou: \\"\\\\u212C\\", Bernoullis: \\"\\\\u212C\\", Beta: \\"\\\\u0392\\", beta: \\"\\\\u03B2\\", beth: \\"\\\\u2136\\", between: \\"\\\\u226C\\", Bfr: \\"\\\\u{1D505}\\", bfr: \\"\\\\u{1D51F}\\", bigcap: \\"\\\\u22C2\\", bigcirc: \\"\\\\u25EF\\", bigcup: \\"\\\\u22C3\\", bigodot: \\"\\\\u2A00\\", bigoplus: \\"\\\\u2A01\\", bigotimes: \\"\\\\u2A02\\", bigsqcup: \\"\\\\u2A06\\", bigstar: \\"\\\\u2605\\", bigtriangledown: \\"\\\\u25BD\\", bigtriangleup: \\"\\\\u25B3\\", biguplus: \\"\\\\u2A04\\", bigvee: \\"\\\\u22C1\\", bigwedge: \\"\\\\u22C0\\", bkarow: \\"\\\\u290D\\", blacklozenge: \\"\\\\u29EB\\", blacksquare: \\"\\\\u25AA\\", blacktriangle: \\"\\\\u25B4\\", blacktriangledown: \\"\\\\u25BE\\", blacktriangleleft: \\"\\\\u25C2\\", blacktriangleright: \\"\\\\u25B8\\", blank: \\"\\\\u2423\\", blk12: \\"\\\\u2592\\", blk14: \\"\\\\u2591\\", blk34: \\"\\\\u2593\\", block: \\"\\\\u2588\\", bne: \\"=\\\\u20E5\\", bnequiv: \\"\\\\u2261\\\\u20E5\\", bNot: \\"\\\\u2AED\\", bnot: \\"\\\\u2310\\", Bopf: \\"\\\\u{1D539}\\", bopf: \\"\\\\u{1D553}\\", bot: \\"\\\\u22A5\\", bottom: \\"\\\\u22A5\\", bowtie: \\"\\\\u22C8\\", boxbox: \\"\\\\u29C9\\", boxdl: \\"\\\\u2510\\", boxdL: \\"\\\\u2555\\", boxDl: \\"\\\\u2556\\", boxDL: \\"\\\\u2557\\", boxdr: \\"\\\\u250C\\", boxdR: \\"\\\\u2552\\", boxDr: \\"\\\\u2553\\", boxDR: \\"\\\\u2554\\", boxh: \\"\\\\u2500\\", boxH: \\"\\\\u2550\\", boxhd: \\"\\\\u252C\\", boxHd: \\"\\\\u2564\\", boxhD: \\"\\\\u2565\\", boxHD: \\"\\\\u2566\\", boxhu: \\"\\\\u2534\\", boxHu: \\"\\\\u2567\\", boxhU: \\"\\\\u2568\\", boxHU: \\"\\\\u2569\\", boxminus: \\"\\\\u229F\\", boxplus: \\"\\\\u229E\\", boxtimes: \\"\\\\u22A0\\", boxul: \\"\\\\u2518\\", boxuL: \\"\\\\u255B\\", boxUl: \\"\\\\u255C\\", boxUL: \\"\\\\u255D\\", boxur: \\"\\\\u2514\\", boxuR: \\"\\\\u2558\\", boxUr: \\"\\\\u2559\\", boxUR: \\"\\\\u255A\\", boxv: \\"\\\\u2502\\", boxV: \\"\\\\u2551\\", boxvh: \\"\\\\u253C\\", boxvH: \\"\\\\u256A\\", boxVh: \\"\\\\u256B\\", boxVH: \\"\\\\u256C\\", boxvl: \\"\\\\u2524\\", boxvL: \\"\\\\u2561\\", boxVl: \\"\\\\u2562\\", boxVL: \\"\\\\u2563\\", boxvr: \\"\\\\u251C\\", boxvR: \\"\\\\u255E\\", boxVr: \\"\\\\u255F\\", boxVR: \\"\\\\u2560\\", bprime: \\"\\\\u2035\\", breve: \\"\\\\u02D8\\", Breve: \\"\\\\u02D8\\", brvbar: \\"\\\\xA6\\", bscr: \\"\\\\u{1D4B7}\\", Bscr: \\"\\\\u212C\\", bsemi: \\"\\\\u204F\\", bsim: \\"\\\\u223D\\", bsime: \\"\\\\u22CD\\", bsolb: \\"\\\\u29C5\\", bsol: \\"\\\\\\\\\\", bsolhsub: \\"\\\\u27C8\\", bull: \\"\\\\u2022\\", bullet: \\"\\\\u2022\\", bump: \\"\\\\u224E\\", bumpE: \\"\\\\u2AAE\\", bumpe: \\"\\\\u224F\\", Bumpeq: \\"\\\\u224E\\", bumpeq: \\"\\\\u224F\\", Cacute: \\"\\\\u0106\\", cacute: \\"\\\\u0107\\", capand: \\"\\\\u2A44\\", capbrcup: \\"\\\\u2A49\\", capcap: \\"\\\\u2A4B\\", cap: \\"\\\\u2229\\", Cap: \\"\\\\u22D2\\", capcup: \\"\\\\u2A47\\", capdot: \\"\\\\u2A40\\", CapitalDifferentialD: \\"\\\\u2145\\", caps: \\"\\\\u2229\\\\uFE00\\", caret: \\"\\\\u2041\\", caron: \\"\\\\u02C7\\", Cayleys: \\"\\\\u212D\\", ccaps: \\"\\\\u2A4D\\", Ccaron: \\"\\\\u010C\\", ccaron: \\"\\\\u010D\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", Ccirc: \\"\\\\u0108\\", ccirc: \\"\\\\u0109\\", Cconint: \\"\\\\u2230\\", ccups: \\"\\\\u2A4C\\", ccupssm: \\"\\\\u2A50\\", Cdot: \\"\\\\u010A\\", cdot: \\"\\\\u010B\\", cedil: \\"\\\\xB8\\", Cedilla: \\"\\\\xB8\\", cemptyv: \\"\\\\u29B2\\", cent: \\"\\\\xA2\\", centerdot: \\"\\\\xB7\\", CenterDot: \\"\\\\xB7\\", cfr: \\"\\\\u{1D520}\\", Cfr: \\"\\\\u212D\\", CHcy: \\"\\\\u0427\\", chcy: \\"\\\\u0447\\", check: \\"\\\\u2713\\", checkmark: \\"\\\\u2713\\", Chi: \\"\\\\u03A7\\", chi: \\"\\\\u03C7\\", circ: \\"\\\\u02C6\\", circeq: \\"\\\\u2257\\", circlearrowleft: \\"\\\\u21BA\\", circlearrowright: \\"\\\\u21BB\\", circledast: \\"\\\\u229B\\", circledcirc: \\"\\\\u229A\\", circleddash: \\"\\\\u229D\\", CircleDot: \\"\\\\u2299\\", circledR: \\"\\\\xAE\\", circledS: \\"\\\\u24C8\\", CircleMinus: \\"\\\\u2296\\", CirclePlus: \\"\\\\u2295\\", CircleTimes: \\"\\\\u2297\\", cir: \\"\\\\u25CB\\", cirE: \\"\\\\u29C3\\", cire: \\"\\\\u2257\\", cirfnint: \\"\\\\u2A10\\", cirmid: \\"\\\\u2AEF\\", cirscir: \\"\\\\u29C2\\", ClockwiseContourIntegral: \\"\\\\u2232\\", CloseCurlyDoubleQuote: \\"\\\\u201D\\", CloseCurlyQuote: \\"\\\\u2019\\", clubs: \\"\\\\u2663\\", clubsuit: \\"\\\\u2663\\", colon: \\":\\", Colon: \\"\\\\u2237\\", Colone: \\"\\\\u2A74\\", colone: \\"\\\\u2254\\", coloneq: \\"\\\\u2254\\", comma: \\",\\", commat: \\"@\\", comp: \\"\\\\u2201\\", compfn: \\"\\\\u2218\\", complement: \\"\\\\u2201\\", complexes: \\"\\\\u2102\\", cong: \\"\\\\u2245\\", congdot: \\"\\\\u2A6D\\", Congruent: \\"\\\\u2261\\", conint: \\"\\\\u222E\\", Conint: \\"\\\\u222F\\", ContourIntegral: \\"\\\\u222E\\", copf: \\"\\\\u{1D554}\\", Copf: \\"\\\\u2102\\", coprod: \\"\\\\u2210\\", Coproduct: \\"\\\\u2210\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", copysr: \\"\\\\u2117\\", CounterClockwiseContourIntegral: \\"\\\\u2233\\", crarr: \\"\\\\u21B5\\", cross: \\"\\\\u2717\\", Cross: \\"\\\\u2A2F\\", Cscr: \\"\\\\u{1D49E}\\", cscr: \\"\\\\u{1D4B8}\\", csub: \\"\\\\u2ACF\\", csube: \\"\\\\u2AD1\\", csup: \\"\\\\u2AD0\\", csupe: \\"\\\\u2AD2\\", ctdot: \\"\\\\u22EF\\", cudarrl: \\"\\\\u2938\\", cudarrr: \\"\\\\u2935\\", cuepr: \\"\\\\u22DE\\", cuesc: \\"\\\\u22DF\\", cularr: \\"\\\\u21B6\\", cularrp: \\"\\\\u293D\\", cupbrcap: \\"\\\\u2A48\\", cupcap: \\"\\\\u2A46\\", CupCap: \\"\\\\u224D\\", cup: \\"\\\\u222A\\", Cup: \\"\\\\u22D3\\", cupcup: \\"\\\\u2A4A\\", cupdot: \\"\\\\u228D\\", cupor: \\"\\\\u2A45\\", cups: \\"\\\\u222A\\\\uFE00\\", curarr: \\"\\\\u21B7\\", curarrm: \\"\\\\u293C\\", curlyeqprec: \\"\\\\u22DE\\", curlyeqsucc: \\"\\\\u22DF\\", curlyvee: \\"\\\\u22CE\\", curlywedge: \\"\\\\u22CF\\", curren: \\"\\\\xA4\\", curvearrowleft: \\"\\\\u21B6\\", curvearrowright: \\"\\\\u21B7\\", cuvee: \\"\\\\u22CE\\", cuwed: \\"\\\\u22CF\\", cwconint: \\"\\\\u2232\\", cwint: \\"\\\\u2231\\", cylcty: \\"\\\\u232D\\", dagger: \\"\\\\u2020\\", Dagger: \\"\\\\u2021\\", daleth: \\"\\\\u2138\\", darr: \\"\\\\u2193\\", Darr: \\"\\\\u21A1\\", dArr: \\"\\\\u21D3\\", dash: \\"\\\\u2010\\", Dashv: \\"\\\\u2AE4\\", dashv: \\"\\\\u22A3\\", dbkarow: \\"\\\\u290F\\", dblac: \\"\\\\u02DD\\", Dcaron: \\"\\\\u010E\\", dcaron: \\"\\\\u010F\\", Dcy: \\"\\\\u0414\\", dcy: \\"\\\\u0434\\", ddagger: \\"\\\\u2021\\", ddarr: \\"\\\\u21CA\\", DD: \\"\\\\u2145\\", dd: \\"\\\\u2146\\", DDotrahd: \\"\\\\u2911\\", ddotseq: \\"\\\\u2A77\\", deg: \\"\\\\xB0\\", Del: \\"\\\\u2207\\", Delta: \\"\\\\u0394\\", delta: \\"\\\\u03B4\\", demptyv: \\"\\\\u29B1\\", dfisht: \\"\\\\u297F\\", Dfr: \\"\\\\u{1D507}\\", dfr: \\"\\\\u{1D521}\\", dHar: \\"\\\\u2965\\", dharl: \\"\\\\u21C3\\", dharr: \\"\\\\u21C2\\", DiacriticalAcute: \\"\\\\xB4\\", DiacriticalDot: \\"\\\\u02D9\\", DiacriticalDoubleAcute: \\"\\\\u02DD\\", DiacriticalGrave: \\"\`\\", DiacriticalTilde: \\"\\\\u02DC\\", diam: \\"\\\\u22C4\\", diamond: \\"\\\\u22C4\\", Diamond: \\"\\\\u22C4\\", diamondsuit: \\"\\\\u2666\\", diams: \\"\\\\u2666\\", die: \\"\\\\xA8\\", DifferentialD: \\"\\\\u2146\\", digamma: \\"\\\\u03DD\\", disin: \\"\\\\u22F2\\", div: \\"\\\\xF7\\", divide: \\"\\\\xF7\\", divideontimes: \\"\\\\u22C7\\", divonx: \\"\\\\u22C7\\", DJcy: \\"\\\\u0402\\", djcy: \\"\\\\u0452\\", dlcorn: \\"\\\\u231E\\", dlcrop: \\"\\\\u230D\\", dollar: \\"$\\", Dopf: \\"\\\\u{1D53B}\\", dopf: \\"\\\\u{1D555}\\", Dot: \\"\\\\xA8\\", dot: \\"\\\\u02D9\\", DotDot: \\"\\\\u20DC\\", doteq: \\"\\\\u2250\\", doteqdot: \\"\\\\u2251\\", DotEqual: \\"\\\\u2250\\", dotminus: \\"\\\\u2238\\", dotplus: \\"\\\\u2214\\", dotsquare: \\"\\\\u22A1\\", doublebarwedge: \\"\\\\u2306\\", DoubleContourIntegral: \\"\\\\u222F\\", DoubleDot: \\"\\\\xA8\\", DoubleDownArrow: \\"\\\\u21D3\\", DoubleLeftArrow: \\"\\\\u21D0\\", DoubleLeftRightArrow: \\"\\\\u21D4\\", DoubleLeftTee: \\"\\\\u2AE4\\", DoubleLongLeftArrow: \\"\\\\u27F8\\", DoubleLongLeftRightArrow: \\"\\\\u27FA\\", DoubleLongRightArrow: \\"\\\\u27F9\\", DoubleRightArrow: \\"\\\\u21D2\\", DoubleRightTee: \\"\\\\u22A8\\", DoubleUpArrow: \\"\\\\u21D1\\", DoubleUpDownArrow: \\"\\\\u21D5\\", DoubleVerticalBar: \\"\\\\u2225\\", DownArrowBar: \\"\\\\u2913\\", downarrow: \\"\\\\u2193\\", DownArrow: \\"\\\\u2193\\", Downarrow: \\"\\\\u21D3\\", DownArrowUpArrow: \\"\\\\u21F5\\", DownBreve: \\"\\\\u0311\\", downdownarrows: \\"\\\\u21CA\\", downharpoonleft: \\"\\\\u21C3\\", downharpoonright: \\"\\\\u21C2\\", DownLeftRightVector: \\"\\\\u2950\\", DownLeftTeeVector: \\"\\\\u295E\\", DownLeftVectorBar: \\"\\\\u2956\\", DownLeftVector: \\"\\\\u21BD\\", DownRightTeeVector: \\"\\\\u295F\\", DownRightVectorBar: \\"\\\\u2957\\", DownRightVector: \\"\\\\u21C1\\", DownTeeArrow: \\"\\\\u21A7\\", DownTee: \\"\\\\u22A4\\", drbkarow: \\"\\\\u2910\\", drcorn: \\"\\\\u231F\\", drcrop: \\"\\\\u230C\\", Dscr: \\"\\\\u{1D49F}\\", dscr: \\"\\\\u{1D4B9}\\", DScy: \\"\\\\u0405\\", dscy: \\"\\\\u0455\\", dsol: \\"\\\\u29F6\\", Dstrok: \\"\\\\u0110\\", dstrok: \\"\\\\u0111\\", dtdot: \\"\\\\u22F1\\", dtri: \\"\\\\u25BF\\", dtrif: \\"\\\\u25BE\\", duarr: \\"\\\\u21F5\\", duhar: \\"\\\\u296F\\", dwangle: \\"\\\\u29A6\\", DZcy: \\"\\\\u040F\\", dzcy: \\"\\\\u045F\\", dzigrarr: \\"\\\\u27FF\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", easter: \\"\\\\u2A6E\\", Ecaron: \\"\\\\u011A\\", ecaron: \\"\\\\u011B\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", ecir: \\"\\\\u2256\\", ecolon: \\"\\\\u2255\\", Ecy: \\"\\\\u042D\\", ecy: \\"\\\\u044D\\", eDDot: \\"\\\\u2A77\\", Edot: \\"\\\\u0116\\", edot: \\"\\\\u0117\\", eDot: \\"\\\\u2251\\", ee: \\"\\\\u2147\\", efDot: \\"\\\\u2252\\", Efr: \\"\\\\u{1D508}\\", efr: \\"\\\\u{1D522}\\", eg: \\"\\\\u2A9A\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", egs: \\"\\\\u2A96\\", egsdot: \\"\\\\u2A98\\", el: \\"\\\\u2A99\\", Element: \\"\\\\u2208\\", elinters: \\"\\\\u23E7\\", ell: \\"\\\\u2113\\", els: \\"\\\\u2A95\\", elsdot: \\"\\\\u2A97\\", Emacr: \\"\\\\u0112\\", emacr: \\"\\\\u0113\\", empty: \\"\\\\u2205\\", emptyset: \\"\\\\u2205\\", EmptySmallSquare: \\"\\\\u25FB\\", emptyv: \\"\\\\u2205\\", EmptyVerySmallSquare: \\"\\\\u25AB\\", emsp13: \\"\\\\u2004\\", emsp14: \\"\\\\u2005\\", emsp: \\"\\\\u2003\\", ENG: \\"\\\\u014A\\", eng: \\"\\\\u014B\\", ensp: \\"\\\\u2002\\", Eogon: \\"\\\\u0118\\", eogon: \\"\\\\u0119\\", Eopf: \\"\\\\u{1D53C}\\", eopf: \\"\\\\u{1D556}\\", epar: \\"\\\\u22D5\\", eparsl: \\"\\\\u29E3\\", eplus: \\"\\\\u2A71\\", epsi: \\"\\\\u03B5\\", Epsilon: \\"\\\\u0395\\", epsilon: \\"\\\\u03B5\\", epsiv: \\"\\\\u03F5\\", eqcirc: \\"\\\\u2256\\", eqcolon: \\"\\\\u2255\\", eqsim: \\"\\\\u2242\\", eqslantgtr: \\"\\\\u2A96\\", eqslantless: \\"\\\\u2A95\\", Equal: \\"\\\\u2A75\\", equals: \\"=\\", EqualTilde: \\"\\\\u2242\\", equest: \\"\\\\u225F\\", Equilibrium: \\"\\\\u21CC\\", equiv: \\"\\\\u2261\\", equivDD: \\"\\\\u2A78\\", eqvparsl: \\"\\\\u29E5\\", erarr: \\"\\\\u2971\\", erDot: \\"\\\\u2253\\", escr: \\"\\\\u212F\\", Escr: \\"\\\\u2130\\", esdot: \\"\\\\u2250\\", Esim: \\"\\\\u2A73\\", esim: \\"\\\\u2242\\", Eta: \\"\\\\u0397\\", eta: \\"\\\\u03B7\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", euro: \\"\\\\u20AC\\", excl: \\"!\\", exist: \\"\\\\u2203\\", Exists: \\"\\\\u2203\\", expectation: \\"\\\\u2130\\", exponentiale: \\"\\\\u2147\\", ExponentialE: \\"\\\\u2147\\", fallingdotseq: \\"\\\\u2252\\", Fcy: \\"\\\\u0424\\", fcy: \\"\\\\u0444\\", female: \\"\\\\u2640\\", ffilig: \\"\\\\uFB03\\", fflig: \\"\\\\uFB00\\", ffllig: \\"\\\\uFB04\\", Ffr: \\"\\\\u{1D509}\\", ffr: \\"\\\\u{1D523}\\", filig: \\"\\\\uFB01\\", FilledSmallSquare: \\"\\\\u25FC\\", FilledVerySmallSquare: \\"\\\\u25AA\\", fjlig: \\"fj\\", flat: \\"\\\\u266D\\", fllig: \\"\\\\uFB02\\", fltns: \\"\\\\u25B1\\", fnof: \\"\\\\u0192\\", Fopf: \\"\\\\u{1D53D}\\", fopf: \\"\\\\u{1D557}\\", forall: \\"\\\\u2200\\", ForAll: \\"\\\\u2200\\", fork: \\"\\\\u22D4\\", forkv: \\"\\\\u2AD9\\", Fouriertrf: \\"\\\\u2131\\", fpartint: \\"\\\\u2A0D\\", frac12: \\"\\\\xBD\\", frac13: \\"\\\\u2153\\", frac14: \\"\\\\xBC\\", frac15: \\"\\\\u2155\\", frac16: \\"\\\\u2159\\", frac18: \\"\\\\u215B\\", frac23: \\"\\\\u2154\\", frac25: \\"\\\\u2156\\", frac34: \\"\\\\xBE\\", frac35: \\"\\\\u2157\\", frac38: \\"\\\\u215C\\", frac45: \\"\\\\u2158\\", frac56: \\"\\\\u215A\\", frac58: \\"\\\\u215D\\", frac78: \\"\\\\u215E\\", frasl: \\"\\\\u2044\\", frown: \\"\\\\u2322\\", fscr: \\"\\\\u{1D4BB}\\", Fscr: \\"\\\\u2131\\", gacute: \\"\\\\u01F5\\", Gamma: \\"\\\\u0393\\", gamma: \\"\\\\u03B3\\", Gammad: \\"\\\\u03DC\\", gammad: \\"\\\\u03DD\\", gap: \\"\\\\u2A86\\", Gbreve: \\"\\\\u011E\\", gbreve: \\"\\\\u011F\\", Gcedil: \\"\\\\u0122\\", Gcirc: \\"\\\\u011C\\", gcirc: \\"\\\\u011D\\", Gcy: \\"\\\\u0413\\", gcy: \\"\\\\u0433\\", Gdot: \\"\\\\u0120\\", gdot: \\"\\\\u0121\\", ge: \\"\\\\u2265\\", gE: \\"\\\\u2267\\", gEl: \\"\\\\u2A8C\\", gel: \\"\\\\u22DB\\", geq: \\"\\\\u2265\\", geqq: \\"\\\\u2267\\", geqslant: \\"\\\\u2A7E\\", gescc: \\"\\\\u2AA9\\", ges: \\"\\\\u2A7E\\", gesdot: \\"\\\\u2A80\\", gesdoto: \\"\\\\u2A82\\", gesdotol: \\"\\\\u2A84\\", gesl: \\"\\\\u22DB\\\\uFE00\\", gesles: \\"\\\\u2A94\\", Gfr: \\"\\\\u{1D50A}\\", gfr: \\"\\\\u{1D524}\\", gg: \\"\\\\u226B\\", Gg: \\"\\\\u22D9\\", ggg: \\"\\\\u22D9\\", gimel: \\"\\\\u2137\\", GJcy: \\"\\\\u0403\\", gjcy: \\"\\\\u0453\\", gla: \\"\\\\u2AA5\\", gl: \\"\\\\u2277\\", glE: \\"\\\\u2A92\\", glj: \\"\\\\u2AA4\\", gnap: \\"\\\\u2A8A\\", gnapprox: \\"\\\\u2A8A\\", gne: \\"\\\\u2A88\\", gnE: \\"\\\\u2269\\", gneq: \\"\\\\u2A88\\", gneqq: \\"\\\\u2269\\", gnsim: \\"\\\\u22E7\\", Gopf: \\"\\\\u{1D53E}\\", gopf: \\"\\\\u{1D558}\\", grave: \\"\`\\", GreaterEqual: \\"\\\\u2265\\", GreaterEqualLess: \\"\\\\u22DB\\", GreaterFullEqual: \\"\\\\u2267\\", GreaterGreater: \\"\\\\u2AA2\\", GreaterLess: \\"\\\\u2277\\", GreaterSlantEqual: \\"\\\\u2A7E\\", GreaterTilde: \\"\\\\u2273\\", Gscr: \\"\\\\u{1D4A2}\\", gscr: \\"\\\\u210A\\", gsim: \\"\\\\u2273\\", gsime: \\"\\\\u2A8E\\", gsiml: \\"\\\\u2A90\\", gtcc: \\"\\\\u2AA7\\", gtcir: \\"\\\\u2A7A\\", gt: \\">\\", GT: \\">\\", Gt: \\"\\\\u226B\\", gtdot: \\"\\\\u22D7\\", gtlPar: \\"\\\\u2995\\", gtquest: \\"\\\\u2A7C\\", gtrapprox: \\"\\\\u2A86\\", gtrarr: \\"\\\\u2978\\", gtrdot: \\"\\\\u22D7\\", gtreqless: \\"\\\\u22DB\\", gtreqqless: \\"\\\\u2A8C\\", gtrless: \\"\\\\u2277\\", gtrsim: \\"\\\\u2273\\", gvertneqq: \\"\\\\u2269\\\\uFE00\\", gvnE: \\"\\\\u2269\\\\uFE00\\", Hacek: \\"\\\\u02C7\\", hairsp: \\"\\\\u200A\\", half: \\"\\\\xBD\\", hamilt: \\"\\\\u210B\\", HARDcy: \\"\\\\u042A\\", hardcy: \\"\\\\u044A\\", harrcir: \\"\\\\u2948\\", harr: \\"\\\\u2194\\", hArr: \\"\\\\u21D4\\", harrw: \\"\\\\u21AD\\", Hat: \\"^\\", hbar: \\"\\\\u210F\\", Hcirc: \\"\\\\u0124\\", hcirc: \\"\\\\u0125\\", hearts: \\"\\\\u2665\\", heartsuit: \\"\\\\u2665\\", hellip: \\"\\\\u2026\\", hercon: \\"\\\\u22B9\\", hfr: \\"\\\\u{1D525}\\", Hfr: \\"\\\\u210C\\", HilbertSpace: \\"\\\\u210B\\", hksearow: \\"\\\\u2925\\", hkswarow: \\"\\\\u2926\\", hoarr: \\"\\\\u21FF\\", homtht: \\"\\\\u223B\\", hookleftarrow: \\"\\\\u21A9\\", hookrightarrow: \\"\\\\u21AA\\", hopf: \\"\\\\u{1D559}\\", Hopf: \\"\\\\u210D\\", horbar: \\"\\\\u2015\\", HorizontalLine: \\"\\\\u2500\\", hscr: \\"\\\\u{1D4BD}\\", Hscr: \\"\\\\u210B\\", hslash: \\"\\\\u210F\\", Hstrok: \\"\\\\u0126\\", hstrok: \\"\\\\u0127\\", HumpDownHump: \\"\\\\u224E\\", HumpEqual: \\"\\\\u224F\\", hybull: \\"\\\\u2043\\", hyphen: \\"\\\\u2010\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", ic: \\"\\\\u2063\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", Icy: \\"\\\\u0418\\", icy: \\"\\\\u0438\\", Idot: \\"\\\\u0130\\", IEcy: \\"\\\\u0415\\", iecy: \\"\\\\u0435\\", iexcl: \\"\\\\xA1\\", iff: \\"\\\\u21D4\\", ifr: \\"\\\\u{1D526}\\", Ifr: \\"\\\\u2111\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", ii: \\"\\\\u2148\\", iiiint: \\"\\\\u2A0C\\", iiint: \\"\\\\u222D\\", iinfin: \\"\\\\u29DC\\", iiota: \\"\\\\u2129\\", IJlig: \\"\\\\u0132\\", ijlig: \\"\\\\u0133\\", Imacr: \\"\\\\u012A\\", imacr: \\"\\\\u012B\\", image: \\"\\\\u2111\\", ImaginaryI: \\"\\\\u2148\\", imagline: \\"\\\\u2110\\", imagpart: \\"\\\\u2111\\", imath: \\"\\\\u0131\\", Im: \\"\\\\u2111\\", imof: \\"\\\\u22B7\\", imped: \\"\\\\u01B5\\", Implies: \\"\\\\u21D2\\", incare: \\"\\\\u2105\\", in: \\"\\\\u2208\\", infin: \\"\\\\u221E\\", infintie: \\"\\\\u29DD\\", inodot: \\"\\\\u0131\\", intcal: \\"\\\\u22BA\\", int: \\"\\\\u222B\\", Int: \\"\\\\u222C\\", integers: \\"\\\\u2124\\", Integral: \\"\\\\u222B\\", intercal: \\"\\\\u22BA\\", Intersection: \\"\\\\u22C2\\", intlarhk: \\"\\\\u2A17\\", intprod: \\"\\\\u2A3C\\", InvisibleComma: \\"\\\\u2063\\", InvisibleTimes: \\"\\\\u2062\\", IOcy: \\"\\\\u0401\\", iocy: \\"\\\\u0451\\", Iogon: \\"\\\\u012E\\", iogon: \\"\\\\u012F\\", Iopf: \\"\\\\u{1D540}\\", iopf: \\"\\\\u{1D55A}\\", Iota: \\"\\\\u0399\\", iota: \\"\\\\u03B9\\", iprod: \\"\\\\u2A3C\\", iquest: \\"\\\\xBF\\", iscr: \\"\\\\u{1D4BE}\\", Iscr: \\"\\\\u2110\\", isin: \\"\\\\u2208\\", isindot: \\"\\\\u22F5\\", isinE: \\"\\\\u22F9\\", isins: \\"\\\\u22F4\\", isinsv: \\"\\\\u22F3\\", isinv: \\"\\\\u2208\\", it: \\"\\\\u2062\\", Itilde: \\"\\\\u0128\\", itilde: \\"\\\\u0129\\", Iukcy: \\"\\\\u0406\\", iukcy: \\"\\\\u0456\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", Jcirc: \\"\\\\u0134\\", jcirc: \\"\\\\u0135\\", Jcy: \\"\\\\u0419\\", jcy: \\"\\\\u0439\\", Jfr: \\"\\\\u{1D50D}\\", jfr: \\"\\\\u{1D527}\\", jmath: \\"\\\\u0237\\", Jopf: \\"\\\\u{1D541}\\", jopf: \\"\\\\u{1D55B}\\", Jscr: \\"\\\\u{1D4A5}\\", jscr: \\"\\\\u{1D4BF}\\", Jsercy: \\"\\\\u0408\\", jsercy: \\"\\\\u0458\\", Jukcy: \\"\\\\u0404\\", jukcy: \\"\\\\u0454\\", Kappa: \\"\\\\u039A\\", kappa: \\"\\\\u03BA\\", kappav: \\"\\\\u03F0\\", Kcedil: \\"\\\\u0136\\", kcedil: \\"\\\\u0137\\", Kcy: \\"\\\\u041A\\", kcy: \\"\\\\u043A\\", Kfr: \\"\\\\u{1D50E}\\", kfr: \\"\\\\u{1D528}\\", kgreen: \\"\\\\u0138\\", KHcy: \\"\\\\u0425\\", khcy: \\"\\\\u0445\\", KJcy: \\"\\\\u040C\\", kjcy: \\"\\\\u045C\\", Kopf: \\"\\\\u{1D542}\\", kopf: \\"\\\\u{1D55C}\\", Kscr: \\"\\\\u{1D4A6}\\", kscr: \\"\\\\u{1D4C0}\\", lAarr: \\"\\\\u21DA\\", Lacute: \\"\\\\u0139\\", lacute: \\"\\\\u013A\\", laemptyv: \\"\\\\u29B4\\", lagran: \\"\\\\u2112\\", Lambda: \\"\\\\u039B\\", lambda: \\"\\\\u03BB\\", lang: \\"\\\\u27E8\\", Lang: \\"\\\\u27EA\\", langd: \\"\\\\u2991\\", langle: \\"\\\\u27E8\\", lap: \\"\\\\u2A85\\", Laplacetrf: \\"\\\\u2112\\", laquo: \\"\\\\xAB\\", larrb: \\"\\\\u21E4\\", larrbfs: \\"\\\\u291F\\", larr: \\"\\\\u2190\\", Larr: \\"\\\\u219E\\", lArr: \\"\\\\u21D0\\", larrfs: \\"\\\\u291D\\", larrhk: \\"\\\\u21A9\\", larrlp: \\"\\\\u21AB\\", larrpl: \\"\\\\u2939\\", larrsim: \\"\\\\u2973\\", larrtl: \\"\\\\u21A2\\", latail: \\"\\\\u2919\\", lAtail: \\"\\\\u291B\\", lat: \\"\\\\u2AAB\\", late: \\"\\\\u2AAD\\", lates: \\"\\\\u2AAD\\\\uFE00\\", lbarr: \\"\\\\u290C\\", lBarr: \\"\\\\u290E\\", lbbrk: \\"\\\\u2772\\", lbrace: \\"{\\", lbrack: \\"[\\", lbrke: \\"\\\\u298B\\", lbrksld: \\"\\\\u298F\\", lbrkslu: \\"\\\\u298D\\", Lcaron: \\"\\\\u013D\\", lcaron: \\"\\\\u013E\\", Lcedil: \\"\\\\u013B\\", lcedil: \\"\\\\u013C\\", lceil: \\"\\\\u2308\\", lcub: \\"{\\", Lcy: \\"\\\\u041B\\", lcy: \\"\\\\u043B\\", ldca: \\"\\\\u2936\\", ldquo: \\"\\\\u201C\\", ldquor: \\"\\\\u201E\\", ldrdhar: \\"\\\\u2967\\", ldrushar: \\"\\\\u294B\\", ldsh: \\"\\\\u21B2\\", le: \\"\\\\u2264\\", lE: \\"\\\\u2266\\", LeftAngleBracket: \\"\\\\u27E8\\", LeftArrowBar: \\"\\\\u21E4\\", leftarrow: \\"\\\\u2190\\", LeftArrow: \\"\\\\u2190\\", Leftarrow: \\"\\\\u21D0\\", LeftArrowRightArrow: \\"\\\\u21C6\\", leftarrowtail: \\"\\\\u21A2\\", LeftCeiling: \\"\\\\u2308\\", LeftDoubleBracket: \\"\\\\u27E6\\", LeftDownTeeVector: \\"\\\\u2961\\", LeftDownVectorBar: \\"\\\\u2959\\", LeftDownVector: \\"\\\\u21C3\\", LeftFloor: \\"\\\\u230A\\", leftharpoondown: \\"\\\\u21BD\\", leftharpoonup: \\"\\\\u21BC\\", leftleftarrows: \\"\\\\u21C7\\", leftrightarrow: \\"\\\\u2194\\", LeftRightArrow: \\"\\\\u2194\\", Leftrightarrow: \\"\\\\u21D4\\", leftrightarrows: \\"\\\\u21C6\\", leftrightharpoons: \\"\\\\u21CB\\", leftrightsquigarrow: \\"\\\\u21AD\\", LeftRightVector: \\"\\\\u294E\\", LeftTeeArrow: \\"\\\\u21A4\\", LeftTee: \\"\\\\u22A3\\", LeftTeeVector: \\"\\\\u295A\\", leftthreetimes: \\"\\\\u22CB\\", LeftTriangleBar: \\"\\\\u29CF\\", LeftTriangle: \\"\\\\u22B2\\", LeftTriangleEqual: \\"\\\\u22B4\\", LeftUpDownVector: \\"\\\\u2951\\", LeftUpTeeVector: \\"\\\\u2960\\", LeftUpVectorBar: \\"\\\\u2958\\", LeftUpVector: \\"\\\\u21BF\\", LeftVectorBar: \\"\\\\u2952\\", LeftVector: \\"\\\\u21BC\\", lEg: \\"\\\\u2A8B\\", leg: \\"\\\\u22DA\\", leq: \\"\\\\u2264\\", leqq: \\"\\\\u2266\\", leqslant: \\"\\\\u2A7D\\", lescc: \\"\\\\u2AA8\\", les: \\"\\\\u2A7D\\", lesdot: \\"\\\\u2A7F\\", lesdoto: \\"\\\\u2A81\\", lesdotor: \\"\\\\u2A83\\", lesg: \\"\\\\u22DA\\\\uFE00\\", lesges: \\"\\\\u2A93\\", lessapprox: \\"\\\\u2A85\\", lessdot: \\"\\\\u22D6\\", lesseqgtr: \\"\\\\u22DA\\", lesseqqgtr: \\"\\\\u2A8B\\", LessEqualGreater: \\"\\\\u22DA\\", LessFullEqual: \\"\\\\u2266\\", LessGreater: \\"\\\\u2276\\", lessgtr: \\"\\\\u2276\\", LessLess: \\"\\\\u2AA1\\", lesssim: \\"\\\\u2272\\", LessSlantEqual: \\"\\\\u2A7D\\", LessTilde: \\"\\\\u2272\\", lfisht: \\"\\\\u297C\\", lfloor: \\"\\\\u230A\\", Lfr: \\"\\\\u{1D50F}\\", lfr: \\"\\\\u{1D529}\\", lg: \\"\\\\u2276\\", lgE: \\"\\\\u2A91\\", lHar: \\"\\\\u2962\\", lhard: \\"\\\\u21BD\\", lharu: \\"\\\\u21BC\\", lharul: \\"\\\\u296A\\", lhblk: \\"\\\\u2584\\", LJcy: \\"\\\\u0409\\", ljcy: \\"\\\\u0459\\", llarr: \\"\\\\u21C7\\", ll: \\"\\\\u226A\\", Ll: \\"\\\\u22D8\\", llcorner: \\"\\\\u231E\\", Lleftarrow: \\"\\\\u21DA\\", llhard: \\"\\\\u296B\\", lltri: \\"\\\\u25FA\\", Lmidot: \\"\\\\u013F\\", lmidot: \\"\\\\u0140\\", lmoustache: \\"\\\\u23B0\\", lmoust: \\"\\\\u23B0\\", lnap: \\"\\\\u2A89\\", lnapprox: \\"\\\\u2A89\\", lne: \\"\\\\u2A87\\", lnE: \\"\\\\u2268\\", lneq: \\"\\\\u2A87\\", lneqq: \\"\\\\u2268\\", lnsim: \\"\\\\u22E6\\", loang: \\"\\\\u27EC\\", loarr: \\"\\\\u21FD\\", lobrk: \\"\\\\u27E6\\", longleftarrow: \\"\\\\u27F5\\", LongLeftArrow: \\"\\\\u27F5\\", Longleftarrow: \\"\\\\u27F8\\", longleftrightarrow: \\"\\\\u27F7\\", LongLeftRightArrow: \\"\\\\u27F7\\", Longleftrightarrow: \\"\\\\u27FA\\", longmapsto: \\"\\\\u27FC\\", longrightarrow: \\"\\\\u27F6\\", LongRightArrow: \\"\\\\u27F6\\", Longrightarrow: \\"\\\\u27F9\\", looparrowleft: \\"\\\\u21AB\\", looparrowright: \\"\\\\u21AC\\", lopar: \\"\\\\u2985\\", Lopf: \\"\\\\u{1D543}\\", lopf: \\"\\\\u{1D55D}\\", loplus: \\"\\\\u2A2D\\", lotimes: \\"\\\\u2A34\\", lowast: \\"\\\\u2217\\", lowbar: \\"_\\", LowerLeftArrow: \\"\\\\u2199\\", LowerRightArrow: \\"\\\\u2198\\", loz: \\"\\\\u25CA\\", lozenge: \\"\\\\u25CA\\", lozf: \\"\\\\u29EB\\", lpar: \\"(\\", lparlt: \\"\\\\u2993\\", lrarr: \\"\\\\u21C6\\", lrcorner: \\"\\\\u231F\\", lrhar: \\"\\\\u21CB\\", lrhard: \\"\\\\u296D\\", lrm: \\"\\\\u200E\\", lrtri: \\"\\\\u22BF\\", lsaquo: \\"\\\\u2039\\", lscr: \\"\\\\u{1D4C1}\\", Lscr: \\"\\\\u2112\\", lsh: \\"\\\\u21B0\\", Lsh: \\"\\\\u21B0\\", lsim: \\"\\\\u2272\\", lsime: \\"\\\\u2A8D\\", lsimg: \\"\\\\u2A8F\\", lsqb: \\"[\\", lsquo: \\"\\\\u2018\\", lsquor: \\"\\\\u201A\\", Lstrok: \\"\\\\u0141\\", lstrok: \\"\\\\u0142\\", ltcc: \\"\\\\u2AA6\\", ltcir: \\"\\\\u2A79\\", lt: \\"<\\", LT: \\"<\\", Lt: \\"\\\\u226A\\", ltdot: \\"\\\\u22D6\\", lthree: \\"\\\\u22CB\\", ltimes: \\"\\\\u22C9\\", ltlarr: \\"\\\\u2976\\", ltquest: \\"\\\\u2A7B\\", ltri: \\"\\\\u25C3\\", ltrie: \\"\\\\u22B4\\", ltrif: \\"\\\\u25C2\\", ltrPar: \\"\\\\u2996\\", lurdshar: \\"\\\\u294A\\", luruhar: \\"\\\\u2966\\", lvertneqq: \\"\\\\u2268\\\\uFE00\\", lvnE: \\"\\\\u2268\\\\uFE00\\", macr: \\"\\\\xAF\\", male: \\"\\\\u2642\\", malt: \\"\\\\u2720\\", maltese: \\"\\\\u2720\\", Map: \\"\\\\u2905\\", map: \\"\\\\u21A6\\", mapsto: \\"\\\\u21A6\\", mapstodown: \\"\\\\u21A7\\", mapstoleft: \\"\\\\u21A4\\", mapstoup: \\"\\\\u21A5\\", marker: \\"\\\\u25AE\\", mcomma: \\"\\\\u2A29\\", Mcy: \\"\\\\u041C\\", mcy: \\"\\\\u043C\\", mdash: \\"\\\\u2014\\", mDDot: \\"\\\\u223A\\", measuredangle: \\"\\\\u2221\\", MediumSpace: \\"\\\\u205F\\", Mellintrf: \\"\\\\u2133\\", Mfr: \\"\\\\u{1D510}\\", mfr: \\"\\\\u{1D52A}\\", mho: \\"\\\\u2127\\", micro: \\"\\\\xB5\\", midast: \\"*\\", midcir: \\"\\\\u2AF0\\", mid: \\"\\\\u2223\\", middot: \\"\\\\xB7\\", minusb: \\"\\\\u229F\\", minus: \\"\\\\u2212\\", minusd: \\"\\\\u2238\\", minusdu: \\"\\\\u2A2A\\", MinusPlus: \\"\\\\u2213\\", mlcp: \\"\\\\u2ADB\\", mldr: \\"\\\\u2026\\", mnplus: \\"\\\\u2213\\", models: \\"\\\\u22A7\\", Mopf: \\"\\\\u{1D544}\\", mopf: \\"\\\\u{1D55E}\\", mp: \\"\\\\u2213\\", mscr: \\"\\\\u{1D4C2}\\", Mscr: \\"\\\\u2133\\", mstpos: \\"\\\\u223E\\", Mu: \\"\\\\u039C\\", mu: \\"\\\\u03BC\\", multimap: \\"\\\\u22B8\\", mumap: \\"\\\\u22B8\\", nabla: \\"\\\\u2207\\", Nacute: \\"\\\\u0143\\", nacute: \\"\\\\u0144\\", nang: \\"\\\\u2220\\\\u20D2\\", nap: \\"\\\\u2249\\", napE: \\"\\\\u2A70\\\\u0338\\", napid: \\"\\\\u224B\\\\u0338\\", napos: \\"\\\\u0149\\", napprox: \\"\\\\u2249\\", natural: \\"\\\\u266E\\", naturals: \\"\\\\u2115\\", natur: \\"\\\\u266E\\", nbsp: \\"\\\\xA0\\", nbump: \\"\\\\u224E\\\\u0338\\", nbumpe: \\"\\\\u224F\\\\u0338\\", ncap: \\"\\\\u2A43\\", Ncaron: \\"\\\\u0147\\", ncaron: \\"\\\\u0148\\", Ncedil: \\"\\\\u0145\\", ncedil: \\"\\\\u0146\\", ncong: \\"\\\\u2247\\", ncongdot: \\"\\\\u2A6D\\\\u0338\\", ncup: \\"\\\\u2A42\\", Ncy: \\"\\\\u041D\\", ncy: \\"\\\\u043D\\", ndash: \\"\\\\u2013\\", nearhk: \\"\\\\u2924\\", nearr: \\"\\\\u2197\\", neArr: \\"\\\\u21D7\\", nearrow: \\"\\\\u2197\\", ne: \\"\\\\u2260\\", nedot: \\"\\\\u2250\\\\u0338\\", NegativeMediumSpace: \\"\\\\u200B\\", NegativeThickSpace: \\"\\\\u200B\\", NegativeThinSpace: \\"\\\\u200B\\", NegativeVeryThinSpace: \\"\\\\u200B\\", nequiv: \\"\\\\u2262\\", nesear: \\"\\\\u2928\\", nesim: \\"\\\\u2242\\\\u0338\\", NestedGreaterGreater: \\"\\\\u226B\\", NestedLessLess: \\"\\\\u226A\\", NewLine: \\"\\\\n\\", nexist: \\"\\\\u2204\\", nexists: \\"\\\\u2204\\", Nfr: \\"\\\\u{1D511}\\", nfr: \\"\\\\u{1D52B}\\", ngE: \\"\\\\u2267\\\\u0338\\", nge: \\"\\\\u2271\\", ngeq: \\"\\\\u2271\\", ngeqq: \\"\\\\u2267\\\\u0338\\", ngeqslant: \\"\\\\u2A7E\\\\u0338\\", nges: \\"\\\\u2A7E\\\\u0338\\", nGg: \\"\\\\u22D9\\\\u0338\\", ngsim: \\"\\\\u2275\\", nGt: \\"\\\\u226B\\\\u20D2\\", ngt: \\"\\\\u226F\\", ngtr: \\"\\\\u226F\\", nGtv: \\"\\\\u226B\\\\u0338\\", nharr: \\"\\\\u21AE\\", nhArr: \\"\\\\u21CE\\", nhpar: \\"\\\\u2AF2\\", ni: \\"\\\\u220B\\", nis: \\"\\\\u22FC\\", nisd: \\"\\\\u22FA\\", niv: \\"\\\\u220B\\", NJcy: \\"\\\\u040A\\", njcy: \\"\\\\u045A\\", nlarr: \\"\\\\u219A\\", nlArr: \\"\\\\u21CD\\", nldr: \\"\\\\u2025\\", nlE: \\"\\\\u2266\\\\u0338\\", nle: \\"\\\\u2270\\", nleftarrow: \\"\\\\u219A\\", nLeftarrow: \\"\\\\u21CD\\", nleftrightarrow: \\"\\\\u21AE\\", nLeftrightarrow: \\"\\\\u21CE\\", nleq: \\"\\\\u2270\\", nleqq: \\"\\\\u2266\\\\u0338\\", nleqslant: \\"\\\\u2A7D\\\\u0338\\", nles: \\"\\\\u2A7D\\\\u0338\\", nless: \\"\\\\u226E\\", nLl: \\"\\\\u22D8\\\\u0338\\", nlsim: \\"\\\\u2274\\", nLt: \\"\\\\u226A\\\\u20D2\\", nlt: \\"\\\\u226E\\", nltri: \\"\\\\u22EA\\", nltrie: \\"\\\\u22EC\\", nLtv: \\"\\\\u226A\\\\u0338\\", nmid: \\"\\\\u2224\\", NoBreak: \\"\\\\u2060\\", NonBreakingSpace: \\"\\\\xA0\\", nopf: \\"\\\\u{1D55F}\\", Nopf: \\"\\\\u2115\\", Not: \\"\\\\u2AEC\\", not: \\"\\\\xAC\\", NotCongruent: \\"\\\\u2262\\", NotCupCap: \\"\\\\u226D\\", NotDoubleVerticalBar: \\"\\\\u2226\\", NotElement: \\"\\\\u2209\\", NotEqual: \\"\\\\u2260\\", NotEqualTilde: \\"\\\\u2242\\\\u0338\\", NotExists: \\"\\\\u2204\\", NotGreater: \\"\\\\u226F\\", NotGreaterEqual: \\"\\\\u2271\\", NotGreaterFullEqual: \\"\\\\u2267\\\\u0338\\", NotGreaterGreater: \\"\\\\u226B\\\\u0338\\", NotGreaterLess: \\"\\\\u2279\\", NotGreaterSlantEqual: \\"\\\\u2A7E\\\\u0338\\", NotGreaterTilde: \\"\\\\u2275\\", NotHumpDownHump: \\"\\\\u224E\\\\u0338\\", NotHumpEqual: \\"\\\\u224F\\\\u0338\\", notin: \\"\\\\u2209\\", notindot: \\"\\\\u22F5\\\\u0338\\", notinE: \\"\\\\u22F9\\\\u0338\\", notinva: \\"\\\\u2209\\", notinvb: \\"\\\\u22F7\\", notinvc: \\"\\\\u22F6\\", NotLeftTriangleBar: \\"\\\\u29CF\\\\u0338\\", NotLeftTriangle: \\"\\\\u22EA\\", NotLeftTriangleEqual: \\"\\\\u22EC\\", NotLess: \\"\\\\u226E\\", NotLessEqual: \\"\\\\u2270\\", NotLessGreater: \\"\\\\u2278\\", NotLessLess: \\"\\\\u226A\\\\u0338\\", NotLessSlantEqual: \\"\\\\u2A7D\\\\u0338\\", NotLessTilde: \\"\\\\u2274\\", NotNestedGreaterGreater: \\"\\\\u2AA2\\\\u0338\\", NotNestedLessLess: \\"\\\\u2AA1\\\\u0338\\", notni: \\"\\\\u220C\\", notniva: \\"\\\\u220C\\", notnivb: \\"\\\\u22FE\\", notnivc: \\"\\\\u22FD\\", NotPrecedes: \\"\\\\u2280\\", NotPrecedesEqual: \\"\\\\u2AAF\\\\u0338\\", NotPrecedesSlantEqual: \\"\\\\u22E0\\", NotReverseElement: \\"\\\\u220C\\", NotRightTriangleBar: \\"\\\\u29D0\\\\u0338\\", NotRightTriangle: \\"\\\\u22EB\\", NotRightTriangleEqual: \\"\\\\u22ED\\", NotSquareSubset: \\"\\\\u228F\\\\u0338\\", NotSquareSubsetEqual: \\"\\\\u22E2\\", NotSquareSuperset: \\"\\\\u2290\\\\u0338\\", NotSquareSupersetEqual: \\"\\\\u22E3\\", NotSubset: \\"\\\\u2282\\\\u20D2\\", NotSubsetEqual: \\"\\\\u2288\\", NotSucceeds: \\"\\\\u2281\\", NotSucceedsEqual: \\"\\\\u2AB0\\\\u0338\\", NotSucceedsSlantEqual: \\"\\\\u22E1\\", NotSucceedsTilde: \\"\\\\u227F\\\\u0338\\", NotSuperset: \\"\\\\u2283\\\\u20D2\\", NotSupersetEqual: \\"\\\\u2289\\", NotTilde: \\"\\\\u2241\\", NotTildeEqual: \\"\\\\u2244\\", NotTildeFullEqual: \\"\\\\u2247\\", NotTildeTilde: \\"\\\\u2249\\", NotVerticalBar: \\"\\\\u2224\\", nparallel: \\"\\\\u2226\\", npar: \\"\\\\u2226\\", nparsl: \\"\\\\u2AFD\\\\u20E5\\", npart: \\"\\\\u2202\\\\u0338\\", npolint: \\"\\\\u2A14\\", npr: \\"\\\\u2280\\", nprcue: \\"\\\\u22E0\\", nprec: \\"\\\\u2280\\", npreceq: \\"\\\\u2AAF\\\\u0338\\", npre: \\"\\\\u2AAF\\\\u0338\\", nrarrc: \\"\\\\u2933\\\\u0338\\", nrarr: \\"\\\\u219B\\", nrArr: \\"\\\\u21CF\\", nrarrw: \\"\\\\u219D\\\\u0338\\", nrightarrow: \\"\\\\u219B\\", nRightarrow: \\"\\\\u21CF\\", nrtri: \\"\\\\u22EB\\", nrtrie: \\"\\\\u22ED\\", nsc: \\"\\\\u2281\\", nsccue: \\"\\\\u22E1\\", nsce: \\"\\\\u2AB0\\\\u0338\\", Nscr: \\"\\\\u{1D4A9}\\", nscr: \\"\\\\u{1D4C3}\\", nshortmid: \\"\\\\u2224\\", nshortparallel: \\"\\\\u2226\\", nsim: \\"\\\\u2241\\", nsime: \\"\\\\u2244\\", nsimeq: \\"\\\\u2244\\", nsmid: \\"\\\\u2224\\", nspar: \\"\\\\u2226\\", nsqsube: \\"\\\\u22E2\\", nsqsupe: \\"\\\\u22E3\\", nsub: \\"\\\\u2284\\", nsubE: \\"\\\\u2AC5\\\\u0338\\", nsube: \\"\\\\u2288\\", nsubset: \\"\\\\u2282\\\\u20D2\\", nsubseteq: \\"\\\\u2288\\", nsubseteqq: \\"\\\\u2AC5\\\\u0338\\", nsucc: \\"\\\\u2281\\", nsucceq: \\"\\\\u2AB0\\\\u0338\\", nsup: \\"\\\\u2285\\", nsupE: \\"\\\\u2AC6\\\\u0338\\", nsupe: \\"\\\\u2289\\", nsupset: \\"\\\\u2283\\\\u20D2\\", nsupseteq: \\"\\\\u2289\\", nsupseteqq: \\"\\\\u2AC6\\\\u0338\\", ntgl: \\"\\\\u2279\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", ntlg: \\"\\\\u2278\\", ntriangleleft: \\"\\\\u22EA\\", ntrianglelefteq: \\"\\\\u22EC\\", ntriangleright: \\"\\\\u22EB\\", ntrianglerighteq: \\"\\\\u22ED\\", Nu: \\"\\\\u039D\\", nu: \\"\\\\u03BD\\", num: \\"#\\", numero: \\"\\\\u2116\\", numsp: \\"\\\\u2007\\", nvap: \\"\\\\u224D\\\\u20D2\\", nvdash: \\"\\\\u22AC\\", nvDash: \\"\\\\u22AD\\", nVdash: \\"\\\\u22AE\\", nVDash: \\"\\\\u22AF\\", nvge: \\"\\\\u2265\\\\u20D2\\", nvgt: \\">\\\\u20D2\\", nvHarr: \\"\\\\u2904\\", nvinfin: \\"\\\\u29DE\\", nvlArr: \\"\\\\u2902\\", nvle: \\"\\\\u2264\\\\u20D2\\", nvlt: \\"<\\\\u20D2\\", nvltrie: \\"\\\\u22B4\\\\u20D2\\", nvrArr: \\"\\\\u2903\\", nvrtrie: \\"\\\\u22B5\\\\u20D2\\", nvsim: \\"\\\\u223C\\\\u20D2\\", nwarhk: \\"\\\\u2923\\", nwarr: \\"\\\\u2196\\", nwArr: \\"\\\\u21D6\\", nwarrow: \\"\\\\u2196\\", nwnear: \\"\\\\u2927\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", oast: \\"\\\\u229B\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", ocir: \\"\\\\u229A\\", Ocy: \\"\\\\u041E\\", ocy: \\"\\\\u043E\\", odash: \\"\\\\u229D\\", Odblac: \\"\\\\u0150\\", odblac: \\"\\\\u0151\\", odiv: \\"\\\\u2A38\\", odot: \\"\\\\u2299\\", odsold: \\"\\\\u29BC\\", OElig: \\"\\\\u0152\\", oelig: \\"\\\\u0153\\", ofcir: \\"\\\\u29BF\\", Ofr: \\"\\\\u{1D512}\\", ofr: \\"\\\\u{1D52C}\\", ogon: \\"\\\\u02DB\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ogt: \\"\\\\u29C1\\", ohbar: \\"\\\\u29B5\\", ohm: \\"\\\\u03A9\\", oint: \\"\\\\u222E\\", olarr: \\"\\\\u21BA\\", olcir: \\"\\\\u29BE\\", olcross: \\"\\\\u29BB\\", oline: \\"\\\\u203E\\", olt: \\"\\\\u29C0\\", Omacr: \\"\\\\u014C\\", omacr: \\"\\\\u014D\\", Omega: \\"\\\\u03A9\\", omega: \\"\\\\u03C9\\", Omicron: \\"\\\\u039F\\", omicron: \\"\\\\u03BF\\", omid: \\"\\\\u29B6\\", ominus: \\"\\\\u2296\\", Oopf: \\"\\\\u{1D546}\\", oopf: \\"\\\\u{1D560}\\", opar: \\"\\\\u29B7\\", OpenCurlyDoubleQuote: \\"\\\\u201C\\", OpenCurlyQuote: \\"\\\\u2018\\", operp: \\"\\\\u29B9\\", oplus: \\"\\\\u2295\\", orarr: \\"\\\\u21BB\\", Or: \\"\\\\u2A54\\", or: \\"\\\\u2228\\", ord: \\"\\\\u2A5D\\", order: \\"\\\\u2134\\", orderof: \\"\\\\u2134\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", origof: \\"\\\\u22B6\\", oror: \\"\\\\u2A56\\", orslope: \\"\\\\u2A57\\", orv: \\"\\\\u2A5B\\", oS: \\"\\\\u24C8\\", Oscr: \\"\\\\u{1D4AA}\\", oscr: \\"\\\\u2134\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", osol: \\"\\\\u2298\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", otimesas: \\"\\\\u2A36\\", Otimes: \\"\\\\u2A37\\", otimes: \\"\\\\u2297\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", ovbar: \\"\\\\u233D\\", OverBar: \\"\\\\u203E\\", OverBrace: \\"\\\\u23DE\\", OverBracket: \\"\\\\u23B4\\", OverParenthesis: \\"\\\\u23DC\\", para: \\"\\\\xB6\\", parallel: \\"\\\\u2225\\", par: \\"\\\\u2225\\", parsim: \\"\\\\u2AF3\\", parsl: \\"\\\\u2AFD\\", part: \\"\\\\u2202\\", PartialD: \\"\\\\u2202\\", Pcy: \\"\\\\u041F\\", pcy: \\"\\\\u043F\\", percnt: \\"%\\", period: \\".\\", permil: \\"\\\\u2030\\", perp: \\"\\\\u22A5\\", pertenk: \\"\\\\u2031\\", Pfr: \\"\\\\u{1D513}\\", pfr: \\"\\\\u{1D52D}\\", Phi: \\"\\\\u03A6\\", phi: \\"\\\\u03C6\\", phiv: \\"\\\\u03D5\\", phmmat: \\"\\\\u2133\\", phone: \\"\\\\u260E\\", Pi: \\"\\\\u03A0\\", pi: \\"\\\\u03C0\\", pitchfork: \\"\\\\u22D4\\", piv: \\"\\\\u03D6\\", planck: \\"\\\\u210F\\", planckh: \\"\\\\u210E\\", plankv: \\"\\\\u210F\\", plusacir: \\"\\\\u2A23\\", plusb: \\"\\\\u229E\\", pluscir: \\"\\\\u2A22\\", plus: \\"+\\", plusdo: \\"\\\\u2214\\", plusdu: \\"\\\\u2A25\\", pluse: \\"\\\\u2A72\\", PlusMinus: \\"\\\\xB1\\", plusmn: \\"\\\\xB1\\", plussim: \\"\\\\u2A26\\", plustwo: \\"\\\\u2A27\\", pm: \\"\\\\xB1\\", Poincareplane: \\"\\\\u210C\\", pointint: \\"\\\\u2A15\\", popf: \\"\\\\u{1D561}\\", Popf: \\"\\\\u2119\\", pound: \\"\\\\xA3\\", prap: \\"\\\\u2AB7\\", Pr: \\"\\\\u2ABB\\", pr: \\"\\\\u227A\\", prcue: \\"\\\\u227C\\", precapprox: \\"\\\\u2AB7\\", prec: \\"\\\\u227A\\", preccurlyeq: \\"\\\\u227C\\", Precedes: \\"\\\\u227A\\", PrecedesEqual: \\"\\\\u2AAF\\", PrecedesSlantEqual: \\"\\\\u227C\\", PrecedesTilde: \\"\\\\u227E\\", preceq: \\"\\\\u2AAF\\", precnapprox: \\"\\\\u2AB9\\", precneqq: \\"\\\\u2AB5\\", precnsim: \\"\\\\u22E8\\", pre: \\"\\\\u2AAF\\", prE: \\"\\\\u2AB3\\", precsim: \\"\\\\u227E\\", prime: \\"\\\\u2032\\", Prime: \\"\\\\u2033\\", primes: \\"\\\\u2119\\", prnap: \\"\\\\u2AB9\\", prnE: \\"\\\\u2AB5\\", prnsim: \\"\\\\u22E8\\", prod: \\"\\\\u220F\\", Product: \\"\\\\u220F\\", profalar: \\"\\\\u232E\\", profline: \\"\\\\u2312\\", profsurf: \\"\\\\u2313\\", prop: \\"\\\\u221D\\", Proportional: \\"\\\\u221D\\", Proportion: \\"\\\\u2237\\", propto: \\"\\\\u221D\\", prsim: \\"\\\\u227E\\", prurel: \\"\\\\u22B0\\", Pscr: \\"\\\\u{1D4AB}\\", pscr: \\"\\\\u{1D4C5}\\", Psi: \\"\\\\u03A8\\", psi: \\"\\\\u03C8\\", puncsp: \\"\\\\u2008\\", Qfr: \\"\\\\u{1D514}\\", qfr: \\"\\\\u{1D52E}\\", qint: \\"\\\\u2A0C\\", qopf: \\"\\\\u{1D562}\\", Qopf: \\"\\\\u211A\\", qprime: \\"\\\\u2057\\", Qscr: \\"\\\\u{1D4AC}\\", qscr: \\"\\\\u{1D4C6}\\", quaternions: \\"\\\\u210D\\", quatint: \\"\\\\u2A16\\", quest: \\"?\\", questeq: \\"\\\\u225F\\", quot: '\\"', QUOT: '\\"', rAarr: \\"\\\\u21DB\\", race: \\"\\\\u223D\\\\u0331\\", Racute: \\"\\\\u0154\\", racute: \\"\\\\u0155\\", radic: \\"\\\\u221A\\", raemptyv: \\"\\\\u29B3\\", rang: \\"\\\\u27E9\\", Rang: \\"\\\\u27EB\\", rangd: \\"\\\\u2992\\", range: \\"\\\\u29A5\\", rangle: \\"\\\\u27E9\\", raquo: \\"\\\\xBB\\", rarrap: \\"\\\\u2975\\", rarrb: \\"\\\\u21E5\\", rarrbfs: \\"\\\\u2920\\", rarrc: \\"\\\\u2933\\", rarr: \\"\\\\u2192\\", Rarr: \\"\\\\u21A0\\", rArr: \\"\\\\u21D2\\", rarrfs: \\"\\\\u291E\\", rarrhk: \\"\\\\u21AA\\", rarrlp: \\"\\\\u21AC\\", rarrpl: \\"\\\\u2945\\", rarrsim: \\"\\\\u2974\\", Rarrtl: \\"\\\\u2916\\", rarrtl: \\"\\\\u21A3\\", rarrw: \\"\\\\u219D\\", ratail: \\"\\\\u291A\\", rAtail: \\"\\\\u291C\\", ratio: \\"\\\\u2236\\", rationals: \\"\\\\u211A\\", rbarr: \\"\\\\u290D\\", rBarr: \\"\\\\u290F\\", RBarr: \\"\\\\u2910\\", rbbrk: \\"\\\\u2773\\", rbrace: \\"}\\", rbrack: \\"]\\", rbrke: \\"\\\\u298C\\", rbrksld: \\"\\\\u298E\\", rbrkslu: \\"\\\\u2990\\", Rcaron: \\"\\\\u0158\\", rcaron: \\"\\\\u0159\\", Rcedil: \\"\\\\u0156\\", rcedil: \\"\\\\u0157\\", rceil: \\"\\\\u2309\\", rcub: \\"}\\", Rcy: \\"\\\\u0420\\", rcy: \\"\\\\u0440\\", rdca: \\"\\\\u2937\\", rdldhar: \\"\\\\u2969\\", rdquo: \\"\\\\u201D\\", rdquor: \\"\\\\u201D\\", rdsh: \\"\\\\u21B3\\", real: \\"\\\\u211C\\", realine: \\"\\\\u211B\\", realpart: \\"\\\\u211C\\", reals: \\"\\\\u211D\\", Re: \\"\\\\u211C\\", rect: \\"\\\\u25AD\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", ReverseElement: \\"\\\\u220B\\", ReverseEquilibrium: \\"\\\\u21CB\\", ReverseUpEquilibrium: \\"\\\\u296F\\", rfisht: \\"\\\\u297D\\", rfloor: \\"\\\\u230B\\", rfr: \\"\\\\u{1D52F}\\", Rfr: \\"\\\\u211C\\", rHar: \\"\\\\u2964\\", rhard: \\"\\\\u21C1\\", rharu: \\"\\\\u21C0\\", rharul: \\"\\\\u296C\\", Rho: \\"\\\\u03A1\\", rho: \\"\\\\u03C1\\", rhov: \\"\\\\u03F1\\", RightAngleBracket: \\"\\\\u27E9\\", RightArrowBar: \\"\\\\u21E5\\", rightarrow: \\"\\\\u2192\\", RightArrow: \\"\\\\u2192\\", Rightarrow: \\"\\\\u21D2\\", RightArrowLeftArrow: \\"\\\\u21C4\\", rightarrowtail: \\"\\\\u21A3\\", RightCeiling: \\"\\\\u2309\\", RightDoubleBracket: \\"\\\\u27E7\\", RightDownTeeVector: \\"\\\\u295D\\", RightDownVectorBar: \\"\\\\u2955\\", RightDownVector: \\"\\\\u21C2\\", RightFloor: \\"\\\\u230B\\", rightharpoondown: \\"\\\\u21C1\\", rightharpoonup: \\"\\\\u21C0\\", rightleftarrows: \\"\\\\u21C4\\", rightleftharpoons: \\"\\\\u21CC\\", rightrightarrows: \\"\\\\u21C9\\", rightsquigarrow: \\"\\\\u219D\\", RightTeeArrow: \\"\\\\u21A6\\", RightTee: \\"\\\\u22A2\\", RightTeeVector: \\"\\\\u295B\\", rightthreetimes: \\"\\\\u22CC\\", RightTriangleBar: \\"\\\\u29D0\\", RightTriangle: \\"\\\\u22B3\\", RightTriangleEqual: \\"\\\\u22B5\\", RightUpDownVector: \\"\\\\u294F\\", RightUpTeeVector: \\"\\\\u295C\\", RightUpVectorBar: \\"\\\\u2954\\", RightUpVector: \\"\\\\u21BE\\", RightVectorBar: \\"\\\\u2953\\", RightVector: \\"\\\\u21C0\\", ring: \\"\\\\u02DA\\", risingdotseq: \\"\\\\u2253\\", rlarr: \\"\\\\u21C4\\", rlhar: \\"\\\\u21CC\\", rlm: \\"\\\\u200F\\", rmoustache: \\"\\\\u23B1\\", rmoust: \\"\\\\u23B1\\", rnmid: \\"\\\\u2AEE\\", roang: \\"\\\\u27ED\\", roarr: \\"\\\\u21FE\\", robrk: \\"\\\\u27E7\\", ropar: \\"\\\\u2986\\", ropf: \\"\\\\u{1D563}\\", Ropf: \\"\\\\u211D\\", roplus: \\"\\\\u2A2E\\", rotimes: \\"\\\\u2A35\\", RoundImplies: \\"\\\\u2970\\", rpar: \\")\\", rpargt: \\"\\\\u2994\\", rppolint: \\"\\\\u2A12\\", rrarr: \\"\\\\u21C9\\", Rrightarrow: \\"\\\\u21DB\\", rsaquo: \\"\\\\u203A\\", rscr: \\"\\\\u{1D4C7}\\", Rscr: \\"\\\\u211B\\", rsh: \\"\\\\u21B1\\", Rsh: \\"\\\\u21B1\\", rsqb: \\"]\\", rsquo: \\"\\\\u2019\\", rsquor: \\"\\\\u2019\\", rthree: \\"\\\\u22CC\\", rtimes: \\"\\\\u22CA\\", rtri: \\"\\\\u25B9\\", rtrie: \\"\\\\u22B5\\", rtrif: \\"\\\\u25B8\\", rtriltri: \\"\\\\u29CE\\", RuleDelayed: \\"\\\\u29F4\\", ruluhar: \\"\\\\u2968\\", rx: \\"\\\\u211E\\", Sacute: \\"\\\\u015A\\", sacute: \\"\\\\u015B\\", sbquo: \\"\\\\u201A\\", scap: \\"\\\\u2AB8\\", Scaron: \\"\\\\u0160\\", scaron: \\"\\\\u0161\\", Sc: \\"\\\\u2ABC\\", sc: \\"\\\\u227B\\", sccue: \\"\\\\u227D\\", sce: \\"\\\\u2AB0\\", scE: \\"\\\\u2AB4\\", Scedil: \\"\\\\u015E\\", scedil: \\"\\\\u015F\\", Scirc: \\"\\\\u015C\\", scirc: \\"\\\\u015D\\", scnap: \\"\\\\u2ABA\\", scnE: \\"\\\\u2AB6\\", scnsim: \\"\\\\u22E9\\", scpolint: \\"\\\\u2A13\\", scsim: \\"\\\\u227F\\", Scy: \\"\\\\u0421\\", scy: \\"\\\\u0441\\", sdotb: \\"\\\\u22A1\\", sdot: \\"\\\\u22C5\\", sdote: \\"\\\\u2A66\\", searhk: \\"\\\\u2925\\", searr: \\"\\\\u2198\\", seArr: \\"\\\\u21D8\\", searrow: \\"\\\\u2198\\", sect: \\"\\\\xA7\\", semi: \\";\\", seswar: \\"\\\\u2929\\", setminus: \\"\\\\u2216\\", setmn: \\"\\\\u2216\\", sext: \\"\\\\u2736\\", Sfr: \\"\\\\u{1D516}\\", sfr: \\"\\\\u{1D530}\\", sfrown: \\"\\\\u2322\\", sharp: \\"\\\\u266F\\", SHCHcy: \\"\\\\u0429\\", shchcy: \\"\\\\u0449\\", SHcy: \\"\\\\u0428\\", shcy: \\"\\\\u0448\\", ShortDownArrow: \\"\\\\u2193\\", ShortLeftArrow: \\"\\\\u2190\\", shortmid: \\"\\\\u2223\\", shortparallel: \\"\\\\u2225\\", ShortRightArrow: \\"\\\\u2192\\", ShortUpArrow: \\"\\\\u2191\\", shy: \\"\\\\xAD\\", Sigma: \\"\\\\u03A3\\", sigma: \\"\\\\u03C3\\", sigmaf: \\"\\\\u03C2\\", sigmav: \\"\\\\u03C2\\", sim: \\"\\\\u223C\\", simdot: \\"\\\\u2A6A\\", sime: \\"\\\\u2243\\", simeq: \\"\\\\u2243\\", simg: \\"\\\\u2A9E\\", simgE: \\"\\\\u2AA0\\", siml: \\"\\\\u2A9D\\", simlE: \\"\\\\u2A9F\\", simne: \\"\\\\u2246\\", simplus: \\"\\\\u2A24\\", simrarr: \\"\\\\u2972\\", slarr: \\"\\\\u2190\\", SmallCircle: \\"\\\\u2218\\", smallsetminus: \\"\\\\u2216\\", smashp: \\"\\\\u2A33\\", smeparsl: \\"\\\\u29E4\\", smid: \\"\\\\u2223\\", smile: \\"\\\\u2323\\", smt: \\"\\\\u2AAA\\", smte: \\"\\\\u2AAC\\", smtes: \\"\\\\u2AAC\\\\uFE00\\", SOFTcy: \\"\\\\u042C\\", softcy: \\"\\\\u044C\\", solbar: \\"\\\\u233F\\", solb: \\"\\\\u29C4\\", sol: \\"/\\", Sopf: \\"\\\\u{1D54A}\\", sopf: \\"\\\\u{1D564}\\", spades: \\"\\\\u2660\\", spadesuit: \\"\\\\u2660\\", spar: \\"\\\\u2225\\", sqcap: \\"\\\\u2293\\", sqcaps: \\"\\\\u2293\\\\uFE00\\", sqcup: \\"\\\\u2294\\", sqcups: \\"\\\\u2294\\\\uFE00\\", Sqrt: \\"\\\\u221A\\", sqsub: \\"\\\\u228F\\", sqsube: \\"\\\\u2291\\", sqsubset: \\"\\\\u228F\\", sqsubseteq: \\"\\\\u2291\\", sqsup: \\"\\\\u2290\\", sqsupe: \\"\\\\u2292\\", sqsupset: \\"\\\\u2290\\", sqsupseteq: \\"\\\\u2292\\", square: \\"\\\\u25A1\\", Square: \\"\\\\u25A1\\", SquareIntersection: \\"\\\\u2293\\", SquareSubset: \\"\\\\u228F\\", SquareSubsetEqual: \\"\\\\u2291\\", SquareSuperset: \\"\\\\u2290\\", SquareSupersetEqual: \\"\\\\u2292\\", SquareUnion: \\"\\\\u2294\\", squarf: \\"\\\\u25AA\\", squ: \\"\\\\u25A1\\", squf: \\"\\\\u25AA\\", srarr: \\"\\\\u2192\\", Sscr: \\"\\\\u{1D4AE}\\", sscr: \\"\\\\u{1D4C8}\\", ssetmn: \\"\\\\u2216\\", ssmile: \\"\\\\u2323\\", sstarf: \\"\\\\u22C6\\", Star: \\"\\\\u22C6\\", star: \\"\\\\u2606\\", starf: \\"\\\\u2605\\", straightepsilon: \\"\\\\u03F5\\", straightphi: \\"\\\\u03D5\\", strns: \\"\\\\xAF\\", sub: \\"\\\\u2282\\", Sub: \\"\\\\u22D0\\", subdot: \\"\\\\u2ABD\\", subE: \\"\\\\u2AC5\\", sube: \\"\\\\u2286\\", subedot: \\"\\\\u2AC3\\", submult: \\"\\\\u2AC1\\", subnE: \\"\\\\u2ACB\\", subne: \\"\\\\u228A\\", subplus: \\"\\\\u2ABF\\", subrarr: \\"\\\\u2979\\", subset: \\"\\\\u2282\\", Subset: \\"\\\\u22D0\\", subseteq: \\"\\\\u2286\\", subseteqq: \\"\\\\u2AC5\\", SubsetEqual: \\"\\\\u2286\\", subsetneq: \\"\\\\u228A\\", subsetneqq: \\"\\\\u2ACB\\", subsim: \\"\\\\u2AC7\\", subsub: \\"\\\\u2AD5\\", subsup: \\"\\\\u2AD3\\", succapprox: \\"\\\\u2AB8\\", succ: \\"\\\\u227B\\", succcurlyeq: \\"\\\\u227D\\", Succeeds: \\"\\\\u227B\\", SucceedsEqual: \\"\\\\u2AB0\\", SucceedsSlantEqual: \\"\\\\u227D\\", SucceedsTilde: \\"\\\\u227F\\", succeq: \\"\\\\u2AB0\\", succnapprox: \\"\\\\u2ABA\\", succneqq: \\"\\\\u2AB6\\", succnsim: \\"\\\\u22E9\\", succsim: \\"\\\\u227F\\", SuchThat: \\"\\\\u220B\\", sum: \\"\\\\u2211\\", Sum: \\"\\\\u2211\\", sung: \\"\\\\u266A\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", sup: \\"\\\\u2283\\", Sup: \\"\\\\u22D1\\", supdot: \\"\\\\u2ABE\\", supdsub: \\"\\\\u2AD8\\", supE: \\"\\\\u2AC6\\", supe: \\"\\\\u2287\\", supedot: \\"\\\\u2AC4\\", Superset: \\"\\\\u2283\\", SupersetEqual: \\"\\\\u2287\\", suphsol: \\"\\\\u27C9\\", suphsub: \\"\\\\u2AD7\\", suplarr: \\"\\\\u297B\\", supmult: \\"\\\\u2AC2\\", supnE: \\"\\\\u2ACC\\", supne: \\"\\\\u228B\\", supplus: \\"\\\\u2AC0\\", supset: \\"\\\\u2283\\", Supset: \\"\\\\u22D1\\", supseteq: \\"\\\\u2287\\", supseteqq: \\"\\\\u2AC6\\", supsetneq: \\"\\\\u228B\\", supsetneqq: \\"\\\\u2ACC\\", supsim: \\"\\\\u2AC8\\", supsub: \\"\\\\u2AD4\\", supsup: \\"\\\\u2AD6\\", swarhk: \\"\\\\u2926\\", swarr: \\"\\\\u2199\\", swArr: \\"\\\\u21D9\\", swarrow: \\"\\\\u2199\\", swnwar: \\"\\\\u292A\\", szlig: \\"\\\\xDF\\", Tab: \\" \\", target: \\"\\\\u2316\\", Tau: \\"\\\\u03A4\\", tau: \\"\\\\u03C4\\", tbrk: \\"\\\\u23B4\\", Tcaron: \\"\\\\u0164\\", tcaron: \\"\\\\u0165\\", Tcedil: \\"\\\\u0162\\", tcedil: \\"\\\\u0163\\", Tcy: \\"\\\\u0422\\", tcy: \\"\\\\u0442\\", tdot: \\"\\\\u20DB\\", telrec: \\"\\\\u2315\\", Tfr: \\"\\\\u{1D517}\\", tfr: \\"\\\\u{1D531}\\", there4: \\"\\\\u2234\\", therefore: \\"\\\\u2234\\", Therefore: \\"\\\\u2234\\", Theta: \\"\\\\u0398\\", theta: \\"\\\\u03B8\\", thetasym: \\"\\\\u03D1\\", thetav: \\"\\\\u03D1\\", thickapprox: \\"\\\\u2248\\", thicksim: \\"\\\\u223C\\", ThickSpace: \\"\\\\u205F\\\\u200A\\", ThinSpace: \\"\\\\u2009\\", thinsp: \\"\\\\u2009\\", thkap: \\"\\\\u2248\\", thksim: \\"\\\\u223C\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", tilde: \\"\\\\u02DC\\", Tilde: \\"\\\\u223C\\", TildeEqual: \\"\\\\u2243\\", TildeFullEqual: \\"\\\\u2245\\", TildeTilde: \\"\\\\u2248\\", timesbar: \\"\\\\u2A31\\", timesb: \\"\\\\u22A0\\", times: \\"\\\\xD7\\", timesd: \\"\\\\u2A30\\", tint: \\"\\\\u222D\\", toea: \\"\\\\u2928\\", topbot: \\"\\\\u2336\\", topcir: \\"\\\\u2AF1\\", top: \\"\\\\u22A4\\", Topf: \\"\\\\u{1D54B}\\", topf: \\"\\\\u{1D565}\\", topfork: \\"\\\\u2ADA\\", tosa: \\"\\\\u2929\\", tprime: \\"\\\\u2034\\", trade: \\"\\\\u2122\\", TRADE: \\"\\\\u2122\\", triangle: \\"\\\\u25B5\\", triangledown: \\"\\\\u25BF\\", triangleleft: \\"\\\\u25C3\\", trianglelefteq: \\"\\\\u22B4\\", triangleq: \\"\\\\u225C\\", triangleright: \\"\\\\u25B9\\", trianglerighteq: \\"\\\\u22B5\\", tridot: \\"\\\\u25EC\\", trie: \\"\\\\u225C\\", triminus: \\"\\\\u2A3A\\", TripleDot: \\"\\\\u20DB\\", triplus: \\"\\\\u2A39\\", trisb: \\"\\\\u29CD\\", tritime: \\"\\\\u2A3B\\", trpezium: \\"\\\\u23E2\\", Tscr: \\"\\\\u{1D4AF}\\", tscr: \\"\\\\u{1D4C9}\\", TScy: \\"\\\\u0426\\", tscy: \\"\\\\u0446\\", TSHcy: \\"\\\\u040B\\", tshcy: \\"\\\\u045B\\", Tstrok: \\"\\\\u0166\\", tstrok: \\"\\\\u0167\\", twixt: \\"\\\\u226C\\", twoheadleftarrow: \\"\\\\u219E\\", twoheadrightarrow: \\"\\\\u21A0\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", uarr: \\"\\\\u2191\\", Uarr: \\"\\\\u219F\\", uArr: \\"\\\\u21D1\\", Uarrocir: \\"\\\\u2949\\", Ubrcy: \\"\\\\u040E\\", ubrcy: \\"\\\\u045E\\", Ubreve: \\"\\\\u016C\\", ubreve: \\"\\\\u016D\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ucy: \\"\\\\u0423\\", ucy: \\"\\\\u0443\\", udarr: \\"\\\\u21C5\\", Udblac: \\"\\\\u0170\\", udblac: \\"\\\\u0171\\", udhar: \\"\\\\u296E\\", ufisht: \\"\\\\u297E\\", Ufr: \\"\\\\u{1D518}\\", ufr: \\"\\\\u{1D532}\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uHar: \\"\\\\u2963\\", uharl: \\"\\\\u21BF\\", uharr: \\"\\\\u21BE\\", uhblk: \\"\\\\u2580\\", ulcorn: \\"\\\\u231C\\", ulcorner: \\"\\\\u231C\\", ulcrop: \\"\\\\u230F\\", ultri: \\"\\\\u25F8\\", Umacr: \\"\\\\u016A\\", umacr: \\"\\\\u016B\\", uml: \\"\\\\xA8\\", UnderBar: \\"_\\", UnderBrace: \\"\\\\u23DF\\", UnderBracket: \\"\\\\u23B5\\", UnderParenthesis: \\"\\\\u23DD\\", Union: \\"\\\\u22C3\\", UnionPlus: \\"\\\\u228E\\", Uogon: \\"\\\\u0172\\", uogon: \\"\\\\u0173\\", Uopf: \\"\\\\u{1D54C}\\", uopf: \\"\\\\u{1D566}\\", UpArrowBar: \\"\\\\u2912\\", uparrow: \\"\\\\u2191\\", UpArrow: \\"\\\\u2191\\", Uparrow: \\"\\\\u21D1\\", UpArrowDownArrow: \\"\\\\u21C5\\", updownarrow: \\"\\\\u2195\\", UpDownArrow: \\"\\\\u2195\\", Updownarrow: \\"\\\\u21D5\\", UpEquilibrium: \\"\\\\u296E\\", upharpoonleft: \\"\\\\u21BF\\", upharpoonright: \\"\\\\u21BE\\", uplus: \\"\\\\u228E\\", UpperLeftArrow: \\"\\\\u2196\\", UpperRightArrow: \\"\\\\u2197\\", upsi: \\"\\\\u03C5\\", Upsi: \\"\\\\u03D2\\", upsih: \\"\\\\u03D2\\", Upsilon: \\"\\\\u03A5\\", upsilon: \\"\\\\u03C5\\", UpTeeArrow: \\"\\\\u21A5\\", UpTee: \\"\\\\u22A5\\", upuparrows: \\"\\\\u21C8\\", urcorn: \\"\\\\u231D\\", urcorner: \\"\\\\u231D\\", urcrop: \\"\\\\u230E\\", Uring: \\"\\\\u016E\\", uring: \\"\\\\u016F\\", urtri: \\"\\\\u25F9\\", Uscr: \\"\\\\u{1D4B0}\\", uscr: \\"\\\\u{1D4CA}\\", utdot: \\"\\\\u22F0\\", Utilde: \\"\\\\u0168\\", utilde: \\"\\\\u0169\\", utri: \\"\\\\u25B5\\", utrif: \\"\\\\u25B4\\", uuarr: \\"\\\\u21C8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", uwangle: \\"\\\\u29A7\\", vangrt: \\"\\\\u299C\\", varepsilon: \\"\\\\u03F5\\", varkappa: \\"\\\\u03F0\\", varnothing: \\"\\\\u2205\\", varphi: \\"\\\\u03D5\\", varpi: \\"\\\\u03D6\\", varpropto: \\"\\\\u221D\\", varr: \\"\\\\u2195\\", vArr: \\"\\\\u21D5\\", varrho: \\"\\\\u03F1\\", varsigma: \\"\\\\u03C2\\", varsubsetneq: \\"\\\\u228A\\\\uFE00\\", varsubsetneqq: \\"\\\\u2ACB\\\\uFE00\\", varsupsetneq: \\"\\\\u228B\\\\uFE00\\", varsupsetneqq: \\"\\\\u2ACC\\\\uFE00\\", vartheta: \\"\\\\u03D1\\", vartriangleleft: \\"\\\\u22B2\\", vartriangleright: \\"\\\\u22B3\\", vBar: \\"\\\\u2AE8\\", Vbar: \\"\\\\u2AEB\\", vBarv: \\"\\\\u2AE9\\", Vcy: \\"\\\\u0412\\", vcy: \\"\\\\u0432\\", vdash: \\"\\\\u22A2\\", vDash: \\"\\\\u22A8\\", Vdash: \\"\\\\u22A9\\", VDash: \\"\\\\u22AB\\", Vdashl: \\"\\\\u2AE6\\", veebar: \\"\\\\u22BB\\", vee: \\"\\\\u2228\\", Vee: \\"\\\\u22C1\\", veeeq: \\"\\\\u225A\\", vellip: \\"\\\\u22EE\\", verbar: \\"|\\", Verbar: \\"\\\\u2016\\", vert: \\"|\\", Vert: \\"\\\\u2016\\", VerticalBar: \\"\\\\u2223\\", VerticalLine: \\"|\\", VerticalSeparator: \\"\\\\u2758\\", VerticalTilde: \\"\\\\u2240\\", VeryThinSpace: \\"\\\\u200A\\", Vfr: \\"\\\\u{1D519}\\", vfr: \\"\\\\u{1D533}\\", vltri: \\"\\\\u22B2\\", vnsub: \\"\\\\u2282\\\\u20D2\\", vnsup: \\"\\\\u2283\\\\u20D2\\", Vopf: \\"\\\\u{1D54D}\\", vopf: \\"\\\\u{1D567}\\", vprop: \\"\\\\u221D\\", vrtri: \\"\\\\u22B3\\", Vscr: \\"\\\\u{1D4B1}\\", vscr: \\"\\\\u{1D4CB}\\", vsubnE: \\"\\\\u2ACB\\\\uFE00\\", vsubne: \\"\\\\u228A\\\\uFE00\\", vsupnE: \\"\\\\u2ACC\\\\uFE00\\", vsupne: \\"\\\\u228B\\\\uFE00\\", Vvdash: \\"\\\\u22AA\\", vzigzag: \\"\\\\u299A\\", Wcirc: \\"\\\\u0174\\", wcirc: \\"\\\\u0175\\", wedbar: \\"\\\\u2A5F\\", wedge: \\"\\\\u2227\\", Wedge: \\"\\\\u22C0\\", wedgeq: \\"\\\\u2259\\", weierp: \\"\\\\u2118\\", Wfr: \\"\\\\u{1D51A}\\", wfr: \\"\\\\u{1D534}\\", Wopf: \\"\\\\u{1D54E}\\", wopf: \\"\\\\u{1D568}\\", wp: \\"\\\\u2118\\", wr: \\"\\\\u2240\\", wreath: \\"\\\\u2240\\", Wscr: \\"\\\\u{1D4B2}\\", wscr: \\"\\\\u{1D4CC}\\", xcap: \\"\\\\u22C2\\", xcirc: \\"\\\\u25EF\\", xcup: \\"\\\\u22C3\\", xdtri: \\"\\\\u25BD\\", Xfr: \\"\\\\u{1D51B}\\", xfr: \\"\\\\u{1D535}\\", xharr: \\"\\\\u27F7\\", xhArr: \\"\\\\u27FA\\", Xi: \\"\\\\u039E\\", xi: \\"\\\\u03BE\\", xlarr: \\"\\\\u27F5\\", xlArr: \\"\\\\u27F8\\", xmap: \\"\\\\u27FC\\", xnis: \\"\\\\u22FB\\", xodot: \\"\\\\u2A00\\", Xopf: \\"\\\\u{1D54F}\\", xopf: \\"\\\\u{1D569}\\", xoplus: \\"\\\\u2A01\\", xotime: \\"\\\\u2A02\\", xrarr: \\"\\\\u27F6\\", xrArr: \\"\\\\u27F9\\", Xscr: \\"\\\\u{1D4B3}\\", xscr: \\"\\\\u{1D4CD}\\", xsqcup: \\"\\\\u2A06\\", xuplus: \\"\\\\u2A04\\", xutri: \\"\\\\u25B3\\", xvee: \\"\\\\u22C1\\", xwedge: \\"\\\\u22C0\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", YAcy: \\"\\\\u042F\\", yacy: \\"\\\\u044F\\", Ycirc: \\"\\\\u0176\\", ycirc: \\"\\\\u0177\\", Ycy: \\"\\\\u042B\\", ycy: \\"\\\\u044B\\", yen: \\"\\\\xA5\\", Yfr: \\"\\\\u{1D51C}\\", yfr: \\"\\\\u{1D536}\\", YIcy: \\"\\\\u0407\\", yicy: \\"\\\\u0457\\", Yopf: \\"\\\\u{1D550}\\", yopf: \\"\\\\u{1D56A}\\", Yscr: \\"\\\\u{1D4B4}\\", yscr: \\"\\\\u{1D4CE}\\", YUcy: \\"\\\\u042E\\", yucy: \\"\\\\u044E\\", yuml: \\"\\\\xFF\\", Yuml: \\"\\\\u0178\\", Zacute: \\"\\\\u0179\\", zacute: \\"\\\\u017A\\", Zcaron: \\"\\\\u017D\\", zcaron: \\"\\\\u017E\\", Zcy: \\"\\\\u0417\\", zcy: \\"\\\\u0437\\", Zdot: \\"\\\\u017B\\", zdot: \\"\\\\u017C\\", zeetrf: \\"\\\\u2128\\", ZeroWidthSpace: \\"\\\\u200B\\", Zeta: \\"\\\\u0396\\", zeta: \\"\\\\u03B6\\", zfr: \\"\\\\u{1D537}\\", Zfr: \\"\\\\u2128\\", ZHcy: \\"\\\\u0416\\", zhcy: \\"\\\\u0436\\", zigrarr: \\"\\\\u21DD\\", zopf: \\"\\\\u{1D56B}\\", Zopf: \\"\\\\u2124\\", Zscr: \\"\\\\u{1D4B5}\\", zscr: \\"\\\\u{1D4CF}\\", zwj: \\"\\\\u200D\\", zwnj: \\"\\\\u200C\\" }; - } -}); - -// node_modules/entities/lib/maps/legacy.json -var require_legacy = __commonJS({ - \\"node_modules/entities/lib/maps/legacy.json\\"(exports2, module2) { - module2.exports = { Aacute: \\"\\\\xC1\\", aacute: \\"\\\\xE1\\", Acirc: \\"\\\\xC2\\", acirc: \\"\\\\xE2\\", acute: \\"\\\\xB4\\", AElig: \\"\\\\xC6\\", aelig: \\"\\\\xE6\\", Agrave: \\"\\\\xC0\\", agrave: \\"\\\\xE0\\", amp: \\"&\\", AMP: \\"&\\", Aring: \\"\\\\xC5\\", aring: \\"\\\\xE5\\", Atilde: \\"\\\\xC3\\", atilde: \\"\\\\xE3\\", Auml: \\"\\\\xC4\\", auml: \\"\\\\xE4\\", brvbar: \\"\\\\xA6\\", Ccedil: \\"\\\\xC7\\", ccedil: \\"\\\\xE7\\", cedil: \\"\\\\xB8\\", cent: \\"\\\\xA2\\", copy: \\"\\\\xA9\\", COPY: \\"\\\\xA9\\", curren: \\"\\\\xA4\\", deg: \\"\\\\xB0\\", divide: \\"\\\\xF7\\", Eacute: \\"\\\\xC9\\", eacute: \\"\\\\xE9\\", Ecirc: \\"\\\\xCA\\", ecirc: \\"\\\\xEA\\", Egrave: \\"\\\\xC8\\", egrave: \\"\\\\xE8\\", ETH: \\"\\\\xD0\\", eth: \\"\\\\xF0\\", Euml: \\"\\\\xCB\\", euml: \\"\\\\xEB\\", frac12: \\"\\\\xBD\\", frac14: \\"\\\\xBC\\", frac34: \\"\\\\xBE\\", gt: \\">\\", GT: \\">\\", Iacute: \\"\\\\xCD\\", iacute: \\"\\\\xED\\", Icirc: \\"\\\\xCE\\", icirc: \\"\\\\xEE\\", iexcl: \\"\\\\xA1\\", Igrave: \\"\\\\xCC\\", igrave: \\"\\\\xEC\\", iquest: \\"\\\\xBF\\", Iuml: \\"\\\\xCF\\", iuml: \\"\\\\xEF\\", laquo: \\"\\\\xAB\\", lt: \\"<\\", LT: \\"<\\", macr: \\"\\\\xAF\\", micro: \\"\\\\xB5\\", middot: \\"\\\\xB7\\", nbsp: \\"\\\\xA0\\", not: \\"\\\\xAC\\", Ntilde: \\"\\\\xD1\\", ntilde: \\"\\\\xF1\\", Oacute: \\"\\\\xD3\\", oacute: \\"\\\\xF3\\", Ocirc: \\"\\\\xD4\\", ocirc: \\"\\\\xF4\\", Ograve: \\"\\\\xD2\\", ograve: \\"\\\\xF2\\", ordf: \\"\\\\xAA\\", ordm: \\"\\\\xBA\\", Oslash: \\"\\\\xD8\\", oslash: \\"\\\\xF8\\", Otilde: \\"\\\\xD5\\", otilde: \\"\\\\xF5\\", Ouml: \\"\\\\xD6\\", ouml: \\"\\\\xF6\\", para: \\"\\\\xB6\\", plusmn: \\"\\\\xB1\\", pound: \\"\\\\xA3\\", quot: '\\"', QUOT: '\\"', raquo: \\"\\\\xBB\\", reg: \\"\\\\xAE\\", REG: \\"\\\\xAE\\", sect: \\"\\\\xA7\\", shy: \\"\\\\xAD\\", sup1: \\"\\\\xB9\\", sup2: \\"\\\\xB2\\", sup3: \\"\\\\xB3\\", szlig: \\"\\\\xDF\\", THORN: \\"\\\\xDE\\", thorn: \\"\\\\xFE\\", times: \\"\\\\xD7\\", Uacute: \\"\\\\xDA\\", uacute: \\"\\\\xFA\\", Ucirc: \\"\\\\xDB\\", ucirc: \\"\\\\xFB\\", Ugrave: \\"\\\\xD9\\", ugrave: \\"\\\\xF9\\", uml: \\"\\\\xA8\\", Uuml: \\"\\\\xDC\\", uuml: \\"\\\\xFC\\", Yacute: \\"\\\\xDD\\", yacute: \\"\\\\xFD\\", yen: \\"\\\\xA5\\", yuml: \\"\\\\xFF\\" }; - } -}); - -// node_modules/entities/lib/maps/xml.json -var require_xml = __commonJS({ - \\"node_modules/entities/lib/maps/xml.json\\"(exports2, module2) { - module2.exports = { amp: \\"&\\", apos: \\"'\\", gt: \\">\\", lt: \\"<\\", quot: '\\"' }; - } -}); - -// node_modules/entities/lib/maps/decode.json -var require_decode = __commonJS({ - \\"node_modules/entities/lib/maps/decode.json\\"(exports2, module2) { - module2.exports = { \\"0\\": 65533, \\"128\\": 8364, \\"130\\": 8218, \\"131\\": 402, \\"132\\": 8222, \\"133\\": 8230, \\"134\\": 8224, \\"135\\": 8225, \\"136\\": 710, \\"137\\": 8240, \\"138\\": 352, \\"139\\": 8249, \\"140\\": 338, \\"142\\": 381, \\"145\\": 8216, \\"146\\": 8217, \\"147\\": 8220, \\"148\\": 8221, \\"149\\": 8226, \\"150\\": 8211, \\"151\\": 8212, \\"152\\": 732, \\"153\\": 8482, \\"154\\": 353, \\"155\\": 8250, \\"156\\": 339, \\"158\\": 382, \\"159\\": 376 }; - } -}); - -// node_modules/entities/lib/decode_codepoint.js -var require_decode_codepoint = __commonJS({ - \\"node_modules/entities/lib/decode_codepoint.js\\"(exports2) { - \\"use strict\\"; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var decode_json_1 = __importDefault(require_decode()); - var fromCodePoint = String.fromCodePoint || function(codePoint) { - var output = \\"\\"; - if (codePoint > 65535) { - codePoint -= 65536; - output += String.fromCharCode(codePoint >>> 10 & 1023 | 55296); - codePoint = 56320 | codePoint & 1023; - } - output += String.fromCharCode(codePoint); - return output; - }; - function decodeCodePoint(codePoint) { - if (codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111) { - return \\"\\\\uFFFD\\"; - } - if (codePoint in decode_json_1.default) { - codePoint = decode_json_1.default[codePoint]; - } - return fromCodePoint(codePoint); - } - exports2.default = decodeCodePoint; - } -}); - -// node_modules/entities/lib/decode.js -var require_decode2 = __commonJS({ - \\"node_modules/entities/lib/decode.js\\"(exports2) { - \\"use strict\\"; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decodeHTML = exports2.decodeHTMLStrict = exports2.decodeXML = void 0; - var entities_json_1 = __importDefault(require_entities()); - var legacy_json_1 = __importDefault(require_legacy()); - var xml_json_1 = __importDefault(require_xml()); - var decode_codepoint_1 = __importDefault(require_decode_codepoint()); - var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\\\\da-fA-F]+|#\\\\d+);/g; - exports2.decodeXML = getStrictDecoder(xml_json_1.default); - exports2.decodeHTMLStrict = getStrictDecoder(entities_json_1.default); - function getStrictDecoder(map) { - var replace = getReplacer(map); - return function(str) { - return String(str).replace(strictEntityRe, replace); - }; - } - var sorter = function(a, b) { - return a < b ? 1 : -1; - }; - exports2.decodeHTML = function() { - var legacy = Object.keys(legacy_json_1.default).sort(sorter); - var keys = Object.keys(entities_json_1.default).sort(sorter); - for (var i = 0, j = 0; i < keys.length; i++) { - if (legacy[j] === keys[i]) { - keys[i] += \\";?\\"; - j++; - } else { - keys[i] += \\";\\"; - } - } - var re = new RegExp(\\"&(?:\\" + keys.join(\\"|\\") + \\"|#[xX][\\\\\\\\da-fA-F]+;?|#\\\\\\\\d+;?)\\", \\"g\\"); - var replace = getReplacer(entities_json_1.default); - function replacer(str) { - if (str.substr(-1) !== \\";\\") - str += \\";\\"; - return replace(str); - } - return function(str) { - return String(str).replace(re, replacer); - }; - }(); - function getReplacer(map) { - return function replace(str) { - if (str.charAt(1) === \\"#\\") { - var secondChar = str.charAt(2); - if (secondChar === \\"X\\" || secondChar === \\"x\\") { - return decode_codepoint_1.default(parseInt(str.substr(3), 16)); - } - return decode_codepoint_1.default(parseInt(str.substr(2), 10)); - } - return map[str.slice(1, -1)] || str; - }; - } - } -}); - -// node_modules/entities/lib/encode.js -var require_encode = __commonJS({ - \\"node_modules/entities/lib/encode.js\\"(exports2) { - \\"use strict\\"; - var __importDefault = exports2 && exports2.__importDefault || function(mod) { - return mod && mod.__esModule ? mod : { \\"default\\": mod }; - }; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = void 0; - var xml_json_1 = __importDefault(require_xml()); - var inverseXML = getInverseObj(xml_json_1.default); - var xmlReplacer = getInverseReplacer(inverseXML); - exports2.encodeXML = getASCIIEncoder(inverseXML); - var entities_json_1 = __importDefault(require_entities()); - var inverseHTML = getInverseObj(entities_json_1.default); - var htmlReplacer = getInverseReplacer(inverseHTML); - exports2.encodeHTML = getInverse(inverseHTML, htmlReplacer); - exports2.encodeNonAsciiHTML = getASCIIEncoder(inverseHTML); - function getInverseObj(obj) { - return Object.keys(obj).sort().reduce(function(inverse, name) { - inverse[obj[name]] = \\"&\\" + name + \\";\\"; - return inverse; - }, {}); - } - function getInverseReplacer(inverse) { - var single = []; - var multiple = []; - for (var _i = 0, _a = Object.keys(inverse); _i < _a.length; _i++) { - var k = _a[_i]; - if (k.length === 1) { - single.push(\\"\\\\\\\\\\" + k); - } else { - multiple.push(k); - } - } - single.sort(); - for (var start = 0; start < single.length - 1; start++) { - var end = start; - while (end < single.length - 1 && single[end].charCodeAt(1) + 1 === single[end + 1].charCodeAt(1)) { - end += 1; - } - var count = 1 + end - start; - if (count < 3) - continue; - single.splice(start, count, single[start] + \\"-\\" + single[end]); - } - multiple.unshift(\\"[\\" + single.join(\\"\\") + \\"]\\"); - return new RegExp(multiple.join(\\"|\\"), \\"g\\"); - } - var reNonASCII = /(?:[\\\\x80-\\\\uD7FF\\\\uE000-\\\\uFFFF]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF])/g; - var getCodePoint = String.prototype.codePointAt != null ? function(str) { - return str.codePointAt(0); - } : function(c) { - return (c.charCodeAt(0) - 55296) * 1024 + c.charCodeAt(1) - 56320 + 65536; - }; - function singleCharReplacer(c) { - return \\"&#x\\" + (c.length > 1 ? getCodePoint(c) : c.charCodeAt(0)).toString(16).toUpperCase() + \\";\\"; - } - function getInverse(inverse, re) { - return function(data) { - return data.replace(re, function(name) { - return inverse[name]; - }).replace(reNonASCII, singleCharReplacer); - }; - } - var reEscapeChars = new RegExp(xmlReplacer.source + \\"|\\" + reNonASCII.source, \\"g\\"); - function escape(data) { - return data.replace(reEscapeChars, singleCharReplacer); - } - exports2.escape = escape; - function escapeUTF8(data) { - return data.replace(xmlReplacer, singleCharReplacer); - } - exports2.escapeUTF8 = escapeUTF8; - function getASCIIEncoder(obj) { - return function(data) { - return data.replace(reEscapeChars, function(c) { - return obj[c] || singleCharReplacer(c); - }); - }; - } - } -}); - -// node_modules/entities/lib/index.js -var require_lib = __commonJS({ - \\"node_modules/entities/lib/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decodeXMLStrict = exports2.decodeHTML5Strict = exports2.decodeHTML4Strict = exports2.decodeHTML5 = exports2.decodeHTML4 = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.decodeXML = exports2.encodeHTML5 = exports2.encodeHTML4 = exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = exports2.encode = exports2.decodeStrict = exports2.decode = void 0; - var decode_1 = require_decode2(); - var encode_1 = require_encode(); - function decode(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(data); - } - exports2.decode = decode; - function decodeStrict(data, level) { - return (!level || level <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(data); - } - exports2.decodeStrict = decodeStrict; - function encode(data, level) { - return (!level || level <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(data); - } - exports2.encode = encode; - var encode_2 = require_encode(); - Object.defineProperty(exports2, \\"encodeXML\\", { enumerable: true, get: function() { - return encode_2.encodeXML; - } }); - Object.defineProperty(exports2, \\"encodeHTML\\", { enumerable: true, get: function() { - return encode_2.encodeHTML; - } }); - Object.defineProperty(exports2, \\"encodeNonAsciiHTML\\", { enumerable: true, get: function() { - return encode_2.encodeNonAsciiHTML; - } }); - Object.defineProperty(exports2, \\"escape\\", { enumerable: true, get: function() { - return encode_2.escape; - } }); - Object.defineProperty(exports2, \\"escapeUTF8\\", { enumerable: true, get: function() { - return encode_2.escapeUTF8; - } }); - Object.defineProperty(exports2, \\"encodeHTML4\\", { enumerable: true, get: function() { - return encode_2.encodeHTML; - } }); - Object.defineProperty(exports2, \\"encodeHTML5\\", { enumerable: true, get: function() { - return encode_2.encodeHTML; - } }); - var decode_2 = require_decode2(); - Object.defineProperty(exports2, \\"decodeXML\\", { enumerable: true, get: function() { - return decode_2.decodeXML; - } }); - Object.defineProperty(exports2, \\"decodeHTML\\", { enumerable: true, get: function() { - return decode_2.decodeHTML; - } }); - Object.defineProperty(exports2, \\"decodeHTMLStrict\\", { enumerable: true, get: function() { - return decode_2.decodeHTMLStrict; - } }); - Object.defineProperty(exports2, \\"decodeHTML4\\", { enumerable: true, get: function() { - return decode_2.decodeHTML; - } }); - Object.defineProperty(exports2, \\"decodeHTML5\\", { enumerable: true, get: function() { - return decode_2.decodeHTML; - } }); - Object.defineProperty(exports2, \\"decodeHTML4Strict\\", { enumerable: true, get: function() { - return decode_2.decodeHTMLStrict; - } }); - Object.defineProperty(exports2, \\"decodeHTML5Strict\\", { enumerable: true, get: function() { - return decode_2.decodeHTMLStrict; - } }); - Object.defineProperty(exports2, \\"decodeXMLStrict\\", { enumerable: true, get: function() { - return decode_2.decodeXML; - } }); - } -}); - -// node_modules/fast-xml-parser/src/util.js -var require_util = __commonJS({ - \\"node_modules/fast-xml-parser/src/util.js\\"(exports2) { - \\"use strict\\"; - var nameStartChar = \\":A-Za-z_\\\\\\\\u00C0-\\\\\\\\u00D6\\\\\\\\u00D8-\\\\\\\\u00F6\\\\\\\\u00F8-\\\\\\\\u02FF\\\\\\\\u0370-\\\\\\\\u037D\\\\\\\\u037F-\\\\\\\\u1FFF\\\\\\\\u200C-\\\\\\\\u200D\\\\\\\\u2070-\\\\\\\\u218F\\\\\\\\u2C00-\\\\\\\\u2FEF\\\\\\\\u3001-\\\\\\\\uD7FF\\\\\\\\uF900-\\\\\\\\uFDCF\\\\\\\\uFDF0-\\\\\\\\uFFFD\\"; - var nameChar = nameStartChar + \\"\\\\\\\\-.\\\\\\\\d\\\\\\\\u00B7\\\\\\\\u0300-\\\\\\\\u036F\\\\\\\\u203F-\\\\\\\\u2040\\"; - var nameRegexp = \\"[\\" + nameStartChar + \\"][\\" + nameChar + \\"]*\\"; - var regexName = new RegExp(\\"^\\" + nameRegexp + \\"$\\"); - var getAllMatches = function(string, regex) { - const matches = []; - let match = regex.exec(string); - while (match) { - const allmatches = []; - const len = match.length; - for (let index = 0; index < len; index++) { - allmatches.push(match[index]); - } - matches.push(allmatches); - match = regex.exec(string); - } - return matches; - }; - var isName = function(string) { - const match = regexName.exec(string); - return !(match === null || typeof match === \\"undefined\\"); - }; - exports2.isExist = function(v) { - return typeof v !== \\"undefined\\"; - }; - exports2.isEmptyObject = function(obj) { - return Object.keys(obj).length === 0; - }; - exports2.merge = function(target, a, arrayMode) { - if (a) { - const keys = Object.keys(a); - const len = keys.length; - for (let i = 0; i < len; i++) { - if (arrayMode === \\"strict\\") { - target[keys[i]] = [a[keys[i]]]; - } else { - target[keys[i]] = a[keys[i]]; - } - } - } - }; - exports2.getValue = function(v) { - if (exports2.isExist(v)) { - return v; - } else { - return \\"\\"; - } - }; - exports2.buildOptions = function(options, defaultOptions, props) { - var newOptions = {}; - if (!options) { - return defaultOptions; - } - for (let i = 0; i < props.length; i++) { - if (options[props[i]] !== void 0) { - newOptions[props[i]] = options[props[i]]; - } else { - newOptions[props[i]] = defaultOptions[props[i]]; - } - } - return newOptions; - }; - exports2.isTagNameInArrayMode = function(tagName, arrayMode, parentTagName) { - if (arrayMode === false) { - return false; - } else if (arrayMode instanceof RegExp) { - return arrayMode.test(tagName); - } else if (typeof arrayMode === \\"function\\") { - return !!arrayMode(tagName, parentTagName); - } - return arrayMode === \\"strict\\"; - }; - exports2.isName = isName; - exports2.getAllMatches = getAllMatches; - exports2.nameRegexp = nameRegexp; - } -}); - -// node_modules/fast-xml-parser/src/node2json.js -var require_node2json = __commonJS({ - \\"node_modules/fast-xml-parser/src/node2json.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var convertToJson = function(node, options, parentTagName) { - const jObj = {}; - if ((!node.child || util.isEmptyObject(node.child)) && (!node.attrsMap || util.isEmptyObject(node.attrsMap))) { - return util.isExist(node.val) ? node.val : \\"\\"; - } - if (util.isExist(node.val) && !(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { - const asArray = util.isTagNameInArrayMode(node.tagname, options.arrayMode, parentTagName); - jObj[options.textNodeName] = asArray ? [node.val] : node.val; - } - util.merge(jObj, node.attrsMap, options.arrayMode); - const keys = Object.keys(node.child); - for (let index = 0; index < keys.length; index++) { - const tagName = keys[index]; - if (node.child[tagName] && node.child[tagName].length > 1) { - jObj[tagName] = []; - for (let tag in node.child[tagName]) { - if (node.child[tagName].hasOwnProperty(tag)) { - jObj[tagName].push(convertToJson(node.child[tagName][tag], options, tagName)); - } - } - } else { - const result = convertToJson(node.child[tagName][0], options, tagName); - const asArray = options.arrayMode === true && typeof result === \\"object\\" || util.isTagNameInArrayMode(tagName, options.arrayMode, parentTagName); - jObj[tagName] = asArray ? [result] : result; - } - } - return jObj; - }; - exports2.convertToJson = convertToJson; - } -}); - -// node_modules/fast-xml-parser/src/xmlNode.js -var require_xmlNode = __commonJS({ - \\"node_modules/fast-xml-parser/src/xmlNode.js\\"(exports2, module2) { - \\"use strict\\"; - module2.exports = function(tagname, parent, val) { - this.tagname = tagname; - this.parent = parent; - this.child = {}; - this.attrsMap = {}; - this.val = val; - this.addChild = function(child) { - if (Array.isArray(this.child[child.tagname])) { - this.child[child.tagname].push(child); - } else { - this.child[child.tagname] = [child]; - } - }; - }; - } -}); - -// node_modules/fast-xml-parser/src/xmlstr2xmlnode.js -var require_xmlstr2xmlnode = __commonJS({ - \\"node_modules/fast-xml-parser/src/xmlstr2xmlnode.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var buildOptions = require_util().buildOptions; - var xmlNode = require_xmlNode(); - var regx = \\"<((!\\\\\\\\[CDATA\\\\\\\\[([\\\\\\\\s\\\\\\\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\\\\\\\/)(NAME)\\\\\\\\s*>))([^<]*)\\".replace(/NAME/g, util.nameRegexp); - if (!Number.parseInt && window.parseInt) { - Number.parseInt = window.parseInt; - } - if (!Number.parseFloat && window.parseFloat) { - Number.parseFloat = window.parseFloat; - } - var defaultOptions = { - attributeNamePrefix: \\"@_\\", - attrNodeName: false, - textNodeName: \\"#text\\", - ignoreAttributes: true, - ignoreNameSpace: false, - allowBooleanAttributes: false, - parseNodeValue: true, - parseAttributeValue: false, - arrayMode: false, - trimValues: true, - cdataTagName: false, - cdataPositionChar: \\"\\\\\\\\c\\", - tagValueProcessor: function(a, tagName) { - return a; - }, - attrValueProcessor: function(a, attrName) { - return a; - }, - stopNodes: [] - }; - exports2.defaultOptions = defaultOptions; - var props = [ - \\"attributeNamePrefix\\", - \\"attrNodeName\\", - \\"textNodeName\\", - \\"ignoreAttributes\\", - \\"ignoreNameSpace\\", - \\"allowBooleanAttributes\\", - \\"parseNodeValue\\", - \\"parseAttributeValue\\", - \\"arrayMode\\", - \\"trimValues\\", - \\"cdataTagName\\", - \\"cdataPositionChar\\", - \\"tagValueProcessor\\", - \\"attrValueProcessor\\", - \\"parseTrueNumberOnly\\", - \\"stopNodes\\" - ]; - exports2.props = props; - function processTagValue(tagName, val, options) { - if (val) { - if (options.trimValues) { - val = val.trim(); - } - val = options.tagValueProcessor(val, tagName); - val = parseValue(val, options.parseNodeValue, options.parseTrueNumberOnly); - } - return val; - } - function resolveNameSpace(tagname, options) { - if (options.ignoreNameSpace) { - const tags = tagname.split(\\":\\"); - const prefix = tagname.charAt(0) === \\"/\\" ? \\"/\\" : \\"\\"; - if (tags[0] === \\"xmlns\\") { - return \\"\\"; - } - if (tags.length === 2) { - tagname = prefix + tags[1]; - } - } - return tagname; - } - function parseValue(val, shouldParse, parseTrueNumberOnly) { - if (shouldParse && typeof val === \\"string\\") { - let parsed; - if (val.trim() === \\"\\" || isNaN(val)) { - parsed = val === \\"true\\" ? true : val === \\"false\\" ? false : val; - } else { - if (val.indexOf(\\"0x\\") !== -1) { - parsed = Number.parseInt(val, 16); - } else if (val.indexOf(\\".\\") !== -1) { - parsed = Number.parseFloat(val); - val = val.replace(/\\\\.?0+$/, \\"\\"); - } else { - parsed = Number.parseInt(val, 10); - } - if (parseTrueNumberOnly) { - parsed = String(parsed) === val ? parsed : val; - } - } - return parsed; - } else { - if (util.isExist(val)) { - return val; - } else { - return \\"\\"; - } - } - } - var attrsRegx = new RegExp(\`([^\\\\\\\\s=]+)\\\\\\\\s*(=\\\\\\\\s*(['\\"])(.*?)\\\\\\\\3)?\`, \\"g\\"); - function buildAttributesMap(attrStr, options) { - if (!options.ignoreAttributes && typeof attrStr === \\"string\\") { - attrStr = attrStr.replace(/\\\\r?\\\\n/g, \\" \\"); - const matches = util.getAllMatches(attrStr, attrsRegx); - const len = matches.length; - const attrs = {}; - for (let i = 0; i < len; i++) { - const attrName = resolveNameSpace(matches[i][1], options); - if (attrName.length) { - if (matches[i][4] !== void 0) { - if (options.trimValues) { - matches[i][4] = matches[i][4].trim(); - } - matches[i][4] = options.attrValueProcessor(matches[i][4], attrName); - attrs[options.attributeNamePrefix + attrName] = parseValue( - matches[i][4], - options.parseAttributeValue, - options.parseTrueNumberOnly - ); - } else if (options.allowBooleanAttributes) { - attrs[options.attributeNamePrefix + attrName] = true; - } - } - } - if (!Object.keys(attrs).length) { - return; - } - if (options.attrNodeName) { - const attrCollection = {}; - attrCollection[options.attrNodeName] = attrs; - return attrCollection; - } - return attrs; - } - } - var getTraversalObj = function(xmlData, options) { - xmlData = xmlData.replace(/\\\\r\\\\n?/g, \\"\\\\n\\"); - options = buildOptions(options, defaultOptions, props); - const xmlObj = new xmlNode(\\"!xml\\"); - let currentNode = xmlObj; - let textData = \\"\\"; - for (let i = 0; i < xmlData.length; i++) { - const ch = xmlData[i]; - if (ch === \\"<\\") { - if (xmlData[i + 1] === \\"/\\") { - const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"Closing Tag is not closed.\\"); - let tagName = xmlData.substring(i + 2, closeIndex).trim(); - if (options.ignoreNameSpace) { - const colonIndex = tagName.indexOf(\\":\\"); - if (colonIndex !== -1) { - tagName = tagName.substr(colonIndex + 1); - } - } - if (currentNode) { - if (currentNode.val) { - currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(tagName, textData, options); - } else { - currentNode.val = processTagValue(tagName, textData, options); - } - } - if (options.stopNodes.length && options.stopNodes.includes(currentNode.tagname)) { - currentNode.child = []; - if (currentNode.attrsMap == void 0) { - currentNode.attrsMap = {}; - } - currentNode.val = xmlData.substr(currentNode.startIndex + 1, i - currentNode.startIndex - 1); - } - currentNode = currentNode.parent; - textData = \\"\\"; - i = closeIndex; - } else if (xmlData[i + 1] === \\"?\\") { - i = findClosingIndex(xmlData, \\"?>\\", i, \\"Pi Tag is not closed.\\"); - } else if (xmlData.substr(i + 1, 3) === \\"!--\\") { - i = findClosingIndex(xmlData, \\"-->\\", i, \\"Comment is not closed.\\"); - } else if (xmlData.substr(i + 1, 2) === \\"!D\\") { - const closeIndex = findClosingIndex(xmlData, \\">\\", i, \\"DOCTYPE is not closed.\\"); - const tagExp = xmlData.substring(i, closeIndex); - if (tagExp.indexOf(\\"[\\") >= 0) { - i = xmlData.indexOf(\\"]>\\", i) + 1; - } else { - i = closeIndex; - } - } else if (xmlData.substr(i + 1, 2) === \\"![\\") { - const closeIndex = findClosingIndex(xmlData, \\"]]>\\", i, \\"CDATA is not closed.\\") - 2; - const tagExp = xmlData.substring(i + 9, closeIndex); - if (textData) { - currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); - textData = \\"\\"; - } - if (options.cdataTagName) { - const childNode = new xmlNode(options.cdataTagName, currentNode, tagExp); - currentNode.addChild(childNode); - currentNode.val = util.getValue(currentNode.val) + options.cdataPositionChar; - if (tagExp) { - childNode.val = tagExp; - } - } else { - currentNode.val = (currentNode.val || \\"\\") + (tagExp || \\"\\"); - } - i = closeIndex + 2; - } else { - const result = closingIndexForOpeningTag(xmlData, i + 1); - let tagExp = result.data; - const closeIndex = result.index; - const separatorIndex = tagExp.indexOf(\\" \\"); - let tagName = tagExp; - let shouldBuildAttributesMap = true; - if (separatorIndex !== -1) { - tagName = tagExp.substr(0, separatorIndex).replace(/\\\\s\\\\s*$/, \\"\\"); - tagExp = tagExp.substr(separatorIndex + 1); - } - if (options.ignoreNameSpace) { - const colonIndex = tagName.indexOf(\\":\\"); - if (colonIndex !== -1) { - tagName = tagName.substr(colonIndex + 1); - shouldBuildAttributesMap = tagName !== result.data.substr(colonIndex + 1); - } - } - if (currentNode && textData) { - if (currentNode.tagname !== \\"!xml\\") { - currentNode.val = util.getValue(currentNode.val) + \\"\\" + processTagValue(currentNode.tagname, textData, options); - } - } - if (tagExp.length > 0 && tagExp.lastIndexOf(\\"/\\") === tagExp.length - 1) { - if (tagName[tagName.length - 1] === \\"/\\") { - tagName = tagName.substr(0, tagName.length - 1); - tagExp = tagName; - } else { - tagExp = tagExp.substr(0, tagExp.length - 1); - } - const childNode = new xmlNode(tagName, currentNode, \\"\\"); - if (tagName !== tagExp) { - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - } else { - const childNode = new xmlNode(tagName, currentNode); - if (options.stopNodes.length && options.stopNodes.includes(childNode.tagname)) { - childNode.startIndex = closeIndex; - } - if (tagName !== tagExp && shouldBuildAttributesMap) { - childNode.attrsMap = buildAttributesMap(tagExp, options); - } - currentNode.addChild(childNode); - currentNode = childNode; - } - textData = \\"\\"; - i = closeIndex; - } - } else { - textData += xmlData[i]; - } - } - return xmlObj; - }; - function closingIndexForOpeningTag(data, i) { - let attrBoundary; - let tagExp = \\"\\"; - for (let index = i; index < data.length; index++) { - let ch = data[index]; - if (attrBoundary) { - if (ch === attrBoundary) - attrBoundary = \\"\\"; - } else if (ch === '\\"' || ch === \\"'\\") { - attrBoundary = ch; - } else if (ch === \\">\\") { - return { - data: tagExp, - index - }; - } else if (ch === \\" \\") { - ch = \\" \\"; - } - tagExp += ch; - } - } - function findClosingIndex(xmlData, str, i, errMsg) { - const closingIndex = xmlData.indexOf(str, i); - if (closingIndex === -1) { - throw new Error(errMsg); - } else { - return closingIndex + str.length - 1; - } - } - exports2.getTraversalObj = getTraversalObj; - } -}); - -// node_modules/fast-xml-parser/src/validator.js -var require_validator = __commonJS({ - \\"node_modules/fast-xml-parser/src/validator.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var defaultOptions = { - allowBooleanAttributes: false - }; - var props = [\\"allowBooleanAttributes\\"]; - exports2.validate = function(xmlData, options) { - options = util.buildOptions(options, defaultOptions, props); - const tags = []; - let tagFound = false; - let reachedRoot = false; - if (xmlData[0] === \\"\\\\uFEFF\\") { - xmlData = xmlData.substr(1); - } - for (let i = 0; i < xmlData.length; i++) { - if (xmlData[i] === \\"<\\" && xmlData[i + 1] === \\"?\\") { - i += 2; - i = readPI(xmlData, i); - if (i.err) - return i; - } else if (xmlData[i] === \\"<\\") { - i++; - if (xmlData[i] === \\"!\\") { - i = readCommentAndCDATA(xmlData, i); - continue; - } else { - let closingTag = false; - if (xmlData[i] === \\"/\\") { - closingTag = true; - i++; - } - let tagName = \\"\\"; - for (; i < xmlData.length && xmlData[i] !== \\">\\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\" \\" && xmlData[i] !== \\"\\\\n\\" && xmlData[i] !== \\"\\\\r\\"; i++) { - tagName += xmlData[i]; - } - tagName = tagName.trim(); - if (tagName[tagName.length - 1] === \\"/\\") { - tagName = tagName.substring(0, tagName.length - 1); - i--; - } - if (!validateTagName(tagName)) { - let msg; - if (tagName.trim().length === 0) { - msg = \\"There is an unnecessary space between tag name and backward slash ' 0) { - return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + tagName + \\"' can't have attributes or invalid starting.\\", getLineNumberForPosition(xmlData, i)); - } else { - const otg = tags.pop(); - if (tagName !== otg) { - return getErrorObject(\\"InvalidTag\\", \\"Closing tag '\\" + otg + \\"' is expected inplace of '\\" + tagName + \\"'.\\", getLineNumberForPosition(xmlData, i)); - } - if (tags.length == 0) { - reachedRoot = true; - } - } - } else { - const isValid = validateAttributeString(attrStr, options); - if (isValid !== true) { - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); - } - if (reachedRoot === true) { - return getErrorObject(\\"InvalidXml\\", \\"Multiple possible root nodes found.\\", getLineNumberForPosition(xmlData, i)); - } else { - tags.push(tagName); - } - tagFound = true; - } - for (i++; i < xmlData.length; i++) { - if (xmlData[i] === \\"<\\") { - if (xmlData[i + 1] === \\"!\\") { - i++; - i = readCommentAndCDATA(xmlData, i); - continue; - } else if (xmlData[i + 1] === \\"?\\") { - i = readPI(xmlData, ++i); - if (i.err) - return i; - } else { - break; - } - } else if (xmlData[i] === \\"&\\") { - const afterAmp = validateAmpersand(xmlData, i); - if (afterAmp == -1) - return getErrorObject(\\"InvalidChar\\", \\"char '&' is not expected.\\", getLineNumberForPosition(xmlData, i)); - i = afterAmp; - } - } - if (xmlData[i] === \\"<\\") { - i--; - } - } - } else { - if (xmlData[i] === \\" \\" || xmlData[i] === \\" \\" || xmlData[i] === \\"\\\\n\\" || xmlData[i] === \\"\\\\r\\") { - continue; - } - return getErrorObject(\\"InvalidChar\\", \\"char '\\" + xmlData[i] + \\"' is not expected.\\", getLineNumberForPosition(xmlData, i)); - } - } - if (!tagFound) { - return getErrorObject(\\"InvalidXml\\", \\"Start tag expected.\\", 1); - } else if (tags.length > 0) { - return getErrorObject(\\"InvalidXml\\", \\"Invalid '\\" + JSON.stringify(tags, null, 4).replace(/\\\\r?\\\\n/g, \\"\\") + \\"' found.\\", 1); - } - return true; - }; - function readPI(xmlData, i) { - var start = i; - for (; i < xmlData.length; i++) { - if (xmlData[i] == \\"?\\" || xmlData[i] == \\" \\") { - var tagname = xmlData.substr(start, i - start); - if (i > 5 && tagname === \\"xml\\") { - return getErrorObject(\\"InvalidXml\\", \\"XML declaration allowed only at the start of the document.\\", getLineNumberForPosition(xmlData, i)); - } else if (xmlData[i] == \\"?\\" && xmlData[i + 1] == \\">\\") { - i++; - break; - } else { - continue; - } - } - } - return i; - } - function readCommentAndCDATA(xmlData, i) { - if (xmlData.length > i + 5 && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\"-\\") { - for (i += 3; i < xmlData.length; i++) { - if (xmlData[i] === \\"-\\" && xmlData[i + 1] === \\"-\\" && xmlData[i + 2] === \\">\\") { - i += 2; - break; - } - } - } else if (xmlData.length > i + 8 && xmlData[i + 1] === \\"D\\" && xmlData[i + 2] === \\"O\\" && xmlData[i + 3] === \\"C\\" && xmlData[i + 4] === \\"T\\" && xmlData[i + 5] === \\"Y\\" && xmlData[i + 6] === \\"P\\" && xmlData[i + 7] === \\"E\\") { - let angleBracketsCount = 1; - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === \\"<\\") { - angleBracketsCount++; - } else if (xmlData[i] === \\">\\") { - angleBracketsCount--; - if (angleBracketsCount === 0) { - break; - } - } - } - } else if (xmlData.length > i + 9 && xmlData[i + 1] === \\"[\\" && xmlData[i + 2] === \\"C\\" && xmlData[i + 3] === \\"D\\" && xmlData[i + 4] === \\"A\\" && xmlData[i + 5] === \\"T\\" && xmlData[i + 6] === \\"A\\" && xmlData[i + 7] === \\"[\\") { - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === \\"]\\" && xmlData[i + 1] === \\"]\\" && xmlData[i + 2] === \\">\\") { - i += 2; - break; - } - } - } - return i; - } - var doubleQuote = '\\"'; - var singleQuote = \\"'\\"; - function readAttributeStr(xmlData, i) { - let attrStr = \\"\\"; - let startChar = \\"\\"; - let tagClosed = false; - for (; i < xmlData.length; i++) { - if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { - if (startChar === \\"\\") { - startChar = xmlData[i]; - } else if (startChar !== xmlData[i]) { - continue; - } else { - startChar = \\"\\"; - } - } else if (xmlData[i] === \\">\\") { - if (startChar === \\"\\") { - tagClosed = true; - break; - } - } - attrStr += xmlData[i]; - } - if (startChar !== \\"\\") { - return false; - } - return { - value: attrStr, - index: i, - tagClosed - }; - } - var validAttrStrRegxp = new RegExp(\`(\\\\\\\\s*)([^\\\\\\\\s=]+)(\\\\\\\\s*=)?(\\\\\\\\s*(['\\"])(([\\\\\\\\s\\\\\\\\S])*?)\\\\\\\\5)?\`, \\"g\\"); - function validateAttributeString(attrStr, options) { - const matches = util.getAllMatches(attrStr, validAttrStrRegxp); - const attrNames = {}; - for (let i = 0; i < matches.length; i++) { - if (matches[i][1].length === 0) { - return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + matches[i][2] + \\"' has no space in starting.\\", getPositionFromMatch(attrStr, matches[i][0])); - } else if (matches[i][3] === void 0 && !options.allowBooleanAttributes) { - return getErrorObject(\\"InvalidAttr\\", \\"boolean attribute '\\" + matches[i][2] + \\"' is not allowed.\\", getPositionFromMatch(attrStr, matches[i][0])); - } - const attrName = matches[i][2]; - if (!validateAttrName(attrName)) { - return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is an invalid name.\\", getPositionFromMatch(attrStr, matches[i][0])); - } - if (!attrNames.hasOwnProperty(attrName)) { - attrNames[attrName] = 1; - } else { - return getErrorObject(\\"InvalidAttr\\", \\"Attribute '\\" + attrName + \\"' is repeated.\\", getPositionFromMatch(attrStr, matches[i][0])); - } - } - return true; - } - function validateNumberAmpersand(xmlData, i) { - let re = /\\\\d/; - if (xmlData[i] === \\"x\\") { - i++; - re = /[\\\\da-fA-F]/; - } - for (; i < xmlData.length; i++) { - if (xmlData[i] === \\";\\") - return i; - if (!xmlData[i].match(re)) - break; - } - return -1; - } - function validateAmpersand(xmlData, i) { - i++; - if (xmlData[i] === \\";\\") - return -1; - if (xmlData[i] === \\"#\\") { - i++; - return validateNumberAmpersand(xmlData, i); - } - let count = 0; - for (; i < xmlData.length; i++, count++) { - if (xmlData[i].match(/\\\\w/) && count < 20) - continue; - if (xmlData[i] === \\";\\") - break; - return -1; - } - return i; - } - function getErrorObject(code, message, lineNumber) { - return { - err: { - code, - msg: message, - line: lineNumber - } - }; - } - function validateAttrName(attrName) { - return util.isName(attrName); - } - function validateTagName(tagname) { - return util.isName(tagname); - } - function getLineNumberForPosition(xmlData, index) { - var lines = xmlData.substring(0, index).split(/\\\\r?\\\\n/); - return lines.length; - } - function getPositionFromMatch(attrStr, match) { - return attrStr.indexOf(match) + match.length; - } - } -}); - -// node_modules/fast-xml-parser/src/nimndata.js -var require_nimndata = __commonJS({ - \\"node_modules/fast-xml-parser/src/nimndata.js\\"(exports2) { - \\"use strict\\"; - var char = function(a) { - return String.fromCharCode(a); - }; - var chars = { - nilChar: char(176), - missingChar: char(201), - nilPremitive: char(175), - missingPremitive: char(200), - emptyChar: char(178), - emptyValue: char(177), - boundryChar: char(179), - objStart: char(198), - arrStart: char(204), - arrayEnd: char(185) - }; - var charsArr = [ - chars.nilChar, - chars.nilPremitive, - chars.missingChar, - chars.missingPremitive, - chars.boundryChar, - chars.emptyChar, - chars.emptyValue, - chars.arrayEnd, - chars.objStart, - chars.arrStart - ]; - var _e = function(node, e_schema, options) { - if (typeof e_schema === \\"string\\") { - if (node && node[0] && node[0].val !== void 0) { - return getValue(node[0].val, e_schema); - } else { - return getValue(node, e_schema); - } - } else { - const hasValidData = hasData(node); - if (hasValidData === true) { - let str = \\"\\"; - if (Array.isArray(e_schema)) { - str += chars.arrStart; - const itemSchema = e_schema[0]; - const arr_len = node.length; - if (typeof itemSchema === \\"string\\") { - for (let arr_i = 0; arr_i < arr_len; arr_i++) { - const r = getValue(node[arr_i].val, itemSchema); - str = processValue(str, r); - } - } else { - for (let arr_i = 0; arr_i < arr_len; arr_i++) { - const r = _e(node[arr_i], itemSchema, options); - str = processValue(str, r); - } - } - str += chars.arrayEnd; - } else { - str += chars.objStart; - const keys = Object.keys(e_schema); - if (Array.isArray(node)) { - node = node[0]; - } - for (let i in keys) { - const key = keys[i]; - let r; - if (!options.ignoreAttributes && node.attrsMap && node.attrsMap[key]) { - r = _e(node.attrsMap[key], e_schema[key], options); - } else if (key === options.textNodeName) { - r = _e(node.val, e_schema[key], options); - } else { - r = _e(node.child[key], e_schema[key], options); - } - str = processValue(str, r); - } - } - return str; - } else { - return hasValidData; - } - } - }; - var getValue = function(a) { - switch (a) { - case void 0: - return chars.missingPremitive; - case null: - return chars.nilPremitive; - case \\"\\": - return chars.emptyValue; - default: - return a; - } - }; - var processValue = function(str, r) { - if (!isAppChar(r[0]) && !isAppChar(str[str.length - 1])) { - str += chars.boundryChar; - } - return str + r; - }; - var isAppChar = function(ch) { - return charsArr.indexOf(ch) !== -1; - }; - function hasData(jObj) { - if (jObj === void 0) { - return chars.missingChar; - } else if (jObj === null) { - return chars.nilChar; - } else if (jObj.child && Object.keys(jObj.child).length === 0 && (!jObj.attrsMap || Object.keys(jObj.attrsMap).length === 0)) { - return chars.emptyChar; - } else { - return true; - } - } - var x2j = require_xmlstr2xmlnode(); - var buildOptions = require_util().buildOptions; - var convert2nimn = function(node, e_schema, options) { - options = buildOptions(options, x2j.defaultOptions, x2j.props); - return _e(node, e_schema, options); - }; - exports2.convert2nimn = convert2nimn; - } -}); - -// node_modules/fast-xml-parser/src/node2json_str.js -var require_node2json_str = __commonJS({ - \\"node_modules/fast-xml-parser/src/node2json_str.js\\"(exports2) { - \\"use strict\\"; - var util = require_util(); - var buildOptions = require_util().buildOptions; - var x2j = require_xmlstr2xmlnode(); - var convertToJsonString = function(node, options) { - options = buildOptions(options, x2j.defaultOptions, x2j.props); - options.indentBy = options.indentBy || \\"\\"; - return _cToJsonStr(node, options, 0); - }; - var _cToJsonStr = function(node, options, level) { - let jObj = \\"{\\"; - const keys = Object.keys(node.child); - for (let index = 0; index < keys.length; index++) { - var tagname = keys[index]; - if (node.child[tagname] && node.child[tagname].length > 1) { - jObj += '\\"' + tagname + '\\" : [ '; - for (var tag in node.child[tagname]) { - jObj += _cToJsonStr(node.child[tagname][tag], options) + \\" , \\"; - } - jObj = jObj.substr(0, jObj.length - 1) + \\" ] \\"; - } else { - jObj += '\\"' + tagname + '\\" : ' + _cToJsonStr(node.child[tagname][0], options) + \\" ,\\"; - } - } - util.merge(jObj, node.attrsMap); - if (util.isEmptyObject(jObj)) { - return util.isExist(node.val) ? node.val : \\"\\"; - } else { - if (util.isExist(node.val)) { - if (!(typeof node.val === \\"string\\" && (node.val === \\"\\" || node.val === options.cdataPositionChar))) { - jObj += '\\"' + options.textNodeName + '\\" : ' + stringval(node.val); - } - } - } - if (jObj[jObj.length - 1] === \\",\\") { - jObj = jObj.substr(0, jObj.length - 2); - } - return jObj + \\"}\\"; - }; - function stringval(v) { - if (v === true || v === false || !isNaN(v)) { - return v; - } else { - return '\\"' + v + '\\"'; - } - } - exports2.convertToJsonString = convertToJsonString; - } -}); - -// node_modules/fast-xml-parser/src/json2xml.js -var require_json2xml = __commonJS({ - \\"node_modules/fast-xml-parser/src/json2xml.js\\"(exports2, module2) { - \\"use strict\\"; - var buildOptions = require_util().buildOptions; - var defaultOptions = { - attributeNamePrefix: \\"@_\\", - attrNodeName: false, - textNodeName: \\"#text\\", - ignoreAttributes: true, - cdataTagName: false, - cdataPositionChar: \\"\\\\\\\\c\\", - format: false, - indentBy: \\" \\", - supressEmptyNode: false, - tagValueProcessor: function(a) { - return a; - }, - attrValueProcessor: function(a) { - return a; - } - }; - var props = [ - \\"attributeNamePrefix\\", - \\"attrNodeName\\", - \\"textNodeName\\", - \\"ignoreAttributes\\", - \\"cdataTagName\\", - \\"cdataPositionChar\\", - \\"format\\", - \\"indentBy\\", - \\"supressEmptyNode\\", - \\"tagValueProcessor\\", - \\"attrValueProcessor\\" - ]; - function Parser(options) { - this.options = buildOptions(options, defaultOptions, props); - if (this.options.ignoreAttributes || this.options.attrNodeName) { - this.isAttribute = function() { - return false; - }; - } else { - this.attrPrefixLen = this.options.attributeNamePrefix.length; - this.isAttribute = isAttribute; - } - if (this.options.cdataTagName) { - this.isCDATA = isCDATA; - } else { - this.isCDATA = function() { - return false; - }; - } - this.replaceCDATAstr = replaceCDATAstr; - this.replaceCDATAarr = replaceCDATAarr; - if (this.options.format) { - this.indentate = indentate; - this.tagEndChar = \\">\\\\n\\"; - this.newLine = \\"\\\\n\\"; - } else { - this.indentate = function() { - return \\"\\"; - }; - this.tagEndChar = \\">\\"; - this.newLine = \\"\\"; - } - if (this.options.supressEmptyNode) { - this.buildTextNode = buildEmptyTextNode; - this.buildObjNode = buildEmptyObjNode; - } else { - this.buildTextNode = buildTextValNode; - this.buildObjNode = buildObjectNode; - } - this.buildTextValNode = buildTextValNode; - this.buildObjectNode = buildObjectNode; - } - Parser.prototype.parse = function(jObj) { - return this.j2x(jObj, 0).val; - }; - Parser.prototype.j2x = function(jObj, level) { - let attrStr = \\"\\"; - let val = \\"\\"; - const keys = Object.keys(jObj); - const len = keys.length; - for (let i = 0; i < len; i++) { - const key = keys[i]; - if (typeof jObj[key] === \\"undefined\\") { - } else if (jObj[key] === null) { - val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; - } else if (jObj[key] instanceof Date) { - val += this.buildTextNode(jObj[key], key, \\"\\", level); - } else if (typeof jObj[key] !== \\"object\\") { - const attr = this.isAttribute(key); - if (attr) { - attrStr += \\" \\" + attr + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key]) + '\\"'; - } else if (this.isCDATA(key)) { - if (jObj[this.options.textNodeName]) { - val += this.replaceCDATAstr(jObj[this.options.textNodeName], jObj[key]); - } else { - val += this.replaceCDATAstr(\\"\\", jObj[key]); - } - } else { - if (key === this.options.textNodeName) { - if (jObj[this.options.cdataTagName]) { - } else { - val += this.options.tagValueProcessor(\\"\\" + jObj[key]); - } - } else { - val += this.buildTextNode(jObj[key], key, \\"\\", level); - } - } - } else if (Array.isArray(jObj[key])) { - if (this.isCDATA(key)) { - val += this.indentate(level); - if (jObj[this.options.textNodeName]) { - val += this.replaceCDATAarr(jObj[this.options.textNodeName], jObj[key]); - } else { - val += this.replaceCDATAarr(\\"\\", jObj[key]); - } - } else { - const arrLen = jObj[key].length; - for (let j = 0; j < arrLen; j++) { - const item = jObj[key][j]; - if (typeof item === \\"undefined\\") { - } else if (item === null) { - val += this.indentate(level) + \\"<\\" + key + \\"/\\" + this.tagEndChar; - } else if (typeof item === \\"object\\") { - const result = this.j2x(item, level + 1); - val += this.buildObjNode(result.val, key, result.attrStr, level); - } else { - val += this.buildTextNode(item, key, \\"\\", level); - } - } - } - } else { - if (this.options.attrNodeName && key === this.options.attrNodeName) { - const Ks = Object.keys(jObj[key]); - const L = Ks.length; - for (let j = 0; j < L; j++) { - attrStr += \\" \\" + Ks[j] + '=\\"' + this.options.attrValueProcessor(\\"\\" + jObj[key][Ks[j]]) + '\\"'; - } - } else { - const result = this.j2x(jObj[key], level + 1); - val += this.buildObjNode(result.val, key, result.attrStr, level); - } - } - } - return { attrStr, val }; - }; - function replaceCDATAstr(str, cdata) { - str = this.options.tagValueProcessor(\\"\\" + str); - if (this.options.cdataPositionChar === \\"\\" || str === \\"\\") { - return str + \\"\\"); - } - return str + this.newLine; - } - } - function buildObjectNode(val, key, attrStr, level) { - if (attrStr && !val.includes(\\"<\\")) { - return this.indentate(level) + \\"<\\" + key + attrStr + \\">\\" + val + \\"\\" + this.options.tagValueProcessor(val) + \\" { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleRequest(input, context), - Action: \\"AssumeRole\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryAssumeRoleCommand = serializeAws_queryAssumeRoleCommand; - var serializeAws_queryAssumeRoleWithSAMLCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithSAMLRequest(input, context), - Action: \\"AssumeRoleWithSAML\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryAssumeRoleWithSAMLCommand = serializeAws_queryAssumeRoleWithSAMLCommand; - var serializeAws_queryAssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryAssumeRoleWithWebIdentityRequest(input, context), - Action: \\"AssumeRoleWithWebIdentity\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryAssumeRoleWithWebIdentityCommand = serializeAws_queryAssumeRoleWithWebIdentityCommand; - var serializeAws_queryDecodeAuthorizationMessageCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryDecodeAuthorizationMessageRequest(input, context), - Action: \\"DecodeAuthorizationMessage\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryDecodeAuthorizationMessageCommand = serializeAws_queryDecodeAuthorizationMessageCommand; - var serializeAws_queryGetAccessKeyInfoCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetAccessKeyInfoRequest(input, context), - Action: \\"GetAccessKeyInfo\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetAccessKeyInfoCommand = serializeAws_queryGetAccessKeyInfoCommand; - var serializeAws_queryGetCallerIdentityCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetCallerIdentityRequest(input, context), - Action: \\"GetCallerIdentity\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetCallerIdentityCommand = serializeAws_queryGetCallerIdentityCommand; - var serializeAws_queryGetFederationTokenCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetFederationTokenRequest(input, context), - Action: \\"GetFederationToken\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetFederationTokenCommand = serializeAws_queryGetFederationTokenCommand; - var serializeAws_queryGetSessionTokenCommand = async (input, context) => { - const headers = { - \\"content-type\\": \\"application/x-www-form-urlencoded\\" - }; - let body; - body = buildFormUrlencodedString({ - ...serializeAws_queryGetSessionTokenRequest(input, context), - Action: \\"GetSessionToken\\", - Version: \\"2011-06-15\\" - }); - return buildHttpRpcRequest(context, headers, \\"/\\", void 0, body); - }; - exports2.serializeAws_queryGetSessionTokenCommand = serializeAws_queryGetSessionTokenCommand; - var deserializeAws_queryAssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryAssumeRoleCommand = deserializeAws_queryAssumeRoleCommand; - var deserializeAws_queryAssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExpiredTokenException\\": - case \\"com.amazonaws.sts#ExpiredTokenException\\": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithSAMLCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryAssumeRoleWithSAMLCommand = deserializeAws_queryAssumeRoleWithSAMLCommand; - var deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExpiredTokenException\\": - case \\"com.amazonaws.sts#ExpiredTokenException\\": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case \\"IDPRejectedClaimException\\": - case \\"com.amazonaws.sts#IDPRejectedClaimException\\": - throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); - case \\"InvalidIdentityTokenException\\": - case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": - throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryAssumeRoleWithWebIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryAssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryAssumeRoleWithWebIdentityCommand = deserializeAws_queryAssumeRoleWithWebIdentityCommand; - var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"ExpiredTokenException\\": - case \\"com.amazonaws.sts#ExpiredTokenException\\": - throw await deserializeAws_queryExpiredTokenExceptionResponse(parsedOutput, context); - case \\"IDPCommunicationErrorException\\": - case \\"com.amazonaws.sts#IDPCommunicationErrorException\\": - throw await deserializeAws_queryIDPCommunicationErrorExceptionResponse(parsedOutput, context); - case \\"IDPRejectedClaimException\\": - case \\"com.amazonaws.sts#IDPRejectedClaimException\\": - throw await deserializeAws_queryIDPRejectedClaimExceptionResponse(parsedOutput, context); - case \\"InvalidIdentityTokenException\\": - case \\"com.amazonaws.sts#InvalidIdentityTokenException\\": - throw await deserializeAws_queryInvalidIdentityTokenExceptionResponse(parsedOutput, context); - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryDecodeAuthorizationMessageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryDecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryDecodeAuthorizationMessageCommand = deserializeAws_queryDecodeAuthorizationMessageCommand; - var deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidAuthorizationMessageException\\": - case \\"com.amazonaws.sts#InvalidAuthorizationMessageException\\": - throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetAccessKeyInfoCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetAccessKeyInfoCommand = deserializeAws_queryGetAccessKeyInfoCommand; - var deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - }; - var deserializeAws_queryGetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetCallerIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetCallerIdentityCommand = deserializeAws_queryGetCallerIdentityCommand; - var deserializeAws_queryGetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - }; - var deserializeAws_queryGetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetFederationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetFederationTokenCommand = deserializeAws_queryGetFederationTokenCommand; - var deserializeAws_queryGetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"MalformedPolicyDocumentException\\": - case \\"com.amazonaws.sts#MalformedPolicyDocumentException\\": - throw await deserializeAws_queryMalformedPolicyDocumentExceptionResponse(parsedOutput, context); - case \\"PackedPolicyTooLargeException\\": - case \\"com.amazonaws.sts#PackedPolicyTooLargeException\\": - throw await deserializeAws_queryPackedPolicyTooLargeExceptionResponse(parsedOutput, context); - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryGetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return deserializeAws_queryGetSessionTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = deserializeAws_queryGetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents - }; - return Promise.resolve(response); - }; - exports2.deserializeAws_queryGetSessionTokenCommand = deserializeAws_queryGetSessionTokenCommand; - var deserializeAws_queryGetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"RegionDisabledException\\": - case \\"com.amazonaws.sts#RegionDisabledException\\": - throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody: parsedBody.Error, - exceptionCtor: STSServiceException_1.STSServiceException, - errorCode - }); - } - }; - var deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryExpiredTokenException(body.Error, context); - const exception = new models_0_1.ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPCommunicationErrorException(body.Error, context); - const exception = new models_0_1.IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryIDPRejectedClaimException(body.Error, context); - const exception = new models_0_1.IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidAuthorizationMessageException(body.Error, context); - const exception = new models_0_1.InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryInvalidIdentityTokenException(body.Error, context); - const exception = new models_0_1.InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryMalformedPolicyDocumentException(body.Error, context); - const exception = new models_0_1.MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryPackedPolicyTooLargeException(body.Error, context); - const exception = new models_0_1.PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = deserializeAws_queryRegionDisabledException(body.Error, context); - const exception = new models_0_1.RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); - }; - var serializeAws_queryAssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries[\\"RoleArn\\"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries[\\"RoleSessionName\\"] = input.RoleSessionName; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`Tags.\${key}\`; - entries[loc] = value; - }); - } - if (input.TransitiveTagKeys != null) { - const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`TransitiveTagKeys.\${key}\`; - entries[loc] = value; - }); - } - if (input.ExternalId != null) { - entries[\\"ExternalId\\"] = input.ExternalId; - } - if (input.SerialNumber != null) { - entries[\\"SerialNumber\\"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries[\\"TokenCode\\"] = input.TokenCode; - } - if (input.SourceIdentity != null) { - entries[\\"SourceIdentity\\"] = input.SourceIdentity; - } - return entries; - }; - var serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries[\\"RoleArn\\"] = input.RoleArn; - } - if (input.PrincipalArn != null) { - entries[\\"PrincipalArn\\"] = input.PrincipalArn; - } - if (input.SAMLAssertion != null) { - entries[\\"SAMLAssertion\\"] = input.SAMLAssertion; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - return entries; - }; - var serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries[\\"RoleArn\\"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries[\\"RoleSessionName\\"] = input.RoleSessionName; - } - if (input.WebIdentityToken != null) { - entries[\\"WebIdentityToken\\"] = input.WebIdentityToken; - } - if (input.ProviderId != null) { - entries[\\"ProviderId\\"] = input.ProviderId; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - return entries; - }; - var serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage != null) { - entries[\\"EncodedMessage\\"] = input.EncodedMessage; - } - return entries; - }; - var serializeAws_queryGetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId != null) { - entries[\\"AccessKeyId\\"] = input.AccessKeyId; - } - return entries; - }; - var serializeAws_queryGetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; - }; - var serializeAws_queryGetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries[\\"Name\\"] = input.Name; - } - if (input.Policy != null) { - entries[\\"Policy\\"] = input.Policy; - } - if (input.PolicyArns != null) { - const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`PolicyArns.\${key}\`; - entries[loc] = value; - }); - } - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = serializeAws_querytagListType(input.Tags, context); - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = \`Tags.\${key}\`; - entries[loc] = value; - }); - } - return entries; - }; - var serializeAws_queryGetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds != null) { - entries[\\"DurationSeconds\\"] = input.DurationSeconds; - } - if (input.SerialNumber != null) { - entries[\\"SerialNumber\\"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries[\\"TokenCode\\"] = input.TokenCode; - } - return entries; - }; - var serializeAws_querypolicyDescriptorListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryPolicyDescriptorType(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[\`member.\${counter}.\${key}\`] = value; - }); - counter++; - } - return entries; - }; - var serializeAws_queryPolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn != null) { - entries[\\"arn\\"] = input.arn; - } - return entries; - }; - var serializeAws_queryTag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries[\\"Key\\"] = input.Key; - } - if (input.Value != null) { - entries[\\"Value\\"] = input.Value; - } - return entries; - }; - var serializeAws_querytagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[\`member.\${counter}\`] = entry; - counter++; - } - return entries; - }; - var serializeAws_querytagListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = serializeAws_queryTag(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[\`member.\${counter}.\${key}\`] = value; - }); - counter++; - } - return entries; - }; - var deserializeAws_queryAssumedRoleUser = (output, context) => { - const contents = { - AssumedRoleId: void 0, - Arn: void 0 - }; - if (output[\\"AssumedRoleId\\"] !== void 0) { - contents.AssumedRoleId = (0, smithy_client_1.expectString)(output[\\"AssumedRoleId\\"]); - } - if (output[\\"Arn\\"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); - } - return contents; - }; - var deserializeAws_queryAssumeRoleResponse = (output, context) => { - const contents = { - Credentials: void 0, - AssumedRoleUser: void 0, - PackedPolicySize: void 0, - SourceIdentity: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"AssumedRoleUser\\"] !== void 0) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - if (output[\\"SourceIdentity\\"] !== void 0) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); - } - return contents; - }; - var deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => { - const contents = { - Credentials: void 0, - AssumedRoleUser: void 0, - PackedPolicySize: void 0, - Subject: void 0, - SubjectType: void 0, - Issuer: void 0, - Audience: void 0, - NameQualifier: void 0, - SourceIdentity: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"AssumedRoleUser\\"] !== void 0) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - if (output[\\"Subject\\"] !== void 0) { - contents.Subject = (0, smithy_client_1.expectString)(output[\\"Subject\\"]); - } - if (output[\\"SubjectType\\"] !== void 0) { - contents.SubjectType = (0, smithy_client_1.expectString)(output[\\"SubjectType\\"]); - } - if (output[\\"Issuer\\"] !== void 0) { - contents.Issuer = (0, smithy_client_1.expectString)(output[\\"Issuer\\"]); - } - if (output[\\"Audience\\"] !== void 0) { - contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); - } - if (output[\\"NameQualifier\\"] !== void 0) { - contents.NameQualifier = (0, smithy_client_1.expectString)(output[\\"NameQualifier\\"]); - } - if (output[\\"SourceIdentity\\"] !== void 0) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); - } - return contents; - }; - var deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = { - Credentials: void 0, - SubjectFromWebIdentityToken: void 0, - AssumedRoleUser: void 0, - PackedPolicySize: void 0, - Provider: void 0, - Audience: void 0, - SourceIdentity: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"SubjectFromWebIdentityToken\\"] !== void 0) { - contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output[\\"SubjectFromWebIdentityToken\\"]); - } - if (output[\\"AssumedRoleUser\\"] !== void 0) { - contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output[\\"AssumedRoleUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - if (output[\\"Provider\\"] !== void 0) { - contents.Provider = (0, smithy_client_1.expectString)(output[\\"Provider\\"]); - } - if (output[\\"Audience\\"] !== void 0) { - contents.Audience = (0, smithy_client_1.expectString)(output[\\"Audience\\"]); - } - if (output[\\"SourceIdentity\\"] !== void 0) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output[\\"SourceIdentity\\"]); - } - return contents; - }; - var deserializeAws_queryCredentials = (output, context) => { - const contents = { - AccessKeyId: void 0, - SecretAccessKey: void 0, - SessionToken: void 0, - Expiration: void 0 - }; - if (output[\\"AccessKeyId\\"] !== void 0) { - contents.AccessKeyId = (0, smithy_client_1.expectString)(output[\\"AccessKeyId\\"]); - } - if (output[\\"SecretAccessKey\\"] !== void 0) { - contents.SecretAccessKey = (0, smithy_client_1.expectString)(output[\\"SecretAccessKey\\"]); - } - if (output[\\"SessionToken\\"] !== void 0) { - contents.SessionToken = (0, smithy_client_1.expectString)(output[\\"SessionToken\\"]); - } - if (output[\\"Expiration\\"] !== void 0) { - contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output[\\"Expiration\\"])); - } - return contents; - }; - var deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context) => { - const contents = { - DecodedMessage: void 0 - }; - if (output[\\"DecodedMessage\\"] !== void 0) { - contents.DecodedMessage = (0, smithy_client_1.expectString)(output[\\"DecodedMessage\\"]); - } - return contents; - }; - var deserializeAws_queryExpiredTokenException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryFederatedUser = (output, context) => { - const contents = { - FederatedUserId: void 0, - Arn: void 0 - }; - if (output[\\"FederatedUserId\\"] !== void 0) { - contents.FederatedUserId = (0, smithy_client_1.expectString)(output[\\"FederatedUserId\\"]); - } - if (output[\\"Arn\\"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); - } - return contents; - }; - var deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => { - const contents = { - Account: void 0 - }; - if (output[\\"Account\\"] !== void 0) { - contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); - } - return contents; - }; - var deserializeAws_queryGetCallerIdentityResponse = (output, context) => { - const contents = { - UserId: void 0, - Account: void 0, - Arn: void 0 - }; - if (output[\\"UserId\\"] !== void 0) { - contents.UserId = (0, smithy_client_1.expectString)(output[\\"UserId\\"]); - } - if (output[\\"Account\\"] !== void 0) { - contents.Account = (0, smithy_client_1.expectString)(output[\\"Account\\"]); - } - if (output[\\"Arn\\"] !== void 0) { - contents.Arn = (0, smithy_client_1.expectString)(output[\\"Arn\\"]); - } - return contents; - }; - var deserializeAws_queryGetFederationTokenResponse = (output, context) => { - const contents = { - Credentials: void 0, - FederatedUser: void 0, - PackedPolicySize: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - if (output[\\"FederatedUser\\"] !== void 0) { - contents.FederatedUser = deserializeAws_queryFederatedUser(output[\\"FederatedUser\\"], context); - } - if (output[\\"PackedPolicySize\\"] !== void 0) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output[\\"PackedPolicySize\\"]); - } - return contents; - }; - var deserializeAws_queryGetSessionTokenResponse = (output, context) => { - const contents = { - Credentials: void 0 - }; - if (output[\\"Credentials\\"] !== void 0) { - contents.Credentials = deserializeAws_queryCredentials(output[\\"Credentials\\"], context); - } - return contents; - }; - var deserializeAws_queryIDPCommunicationErrorException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryIDPRejectedClaimException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryInvalidAuthorizationMessageException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryInvalidIdentityTokenException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryMalformedPolicyDocumentException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryPackedPolicyTooLargeException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeAws_queryRegionDisabledException = (output, context) => { - const contents = { - message: void 0 - }; - if (output[\\"message\\"] !== void 0) { - contents.message = (0, smithy_client_1.expectString)(output[\\"message\\"]); - } - return contents; - }; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - var collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); - }; - var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - var buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: \\"POST\\", - path: basePath.endsWith(\\"/\\") ? basePath.slice(0, -1) + path : basePath + path, - headers - }; - if (resolvedHostname !== void 0) { - contents.hostname = resolvedHostname; - } - if (body !== void 0) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); - }; - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parsedObj = (0, fast_xml_parser_1.parse)(encoded, { - attributeNamePrefix: \\"\\", - ignoreAttributes: false, - parseNodeValue: false, - trimValues: false, - tagValueProcessor: (val) => val.trim() === \\"\\" && val.includes(\\"\\\\n\\") ? \\"\\" : (0, entities_1.decodeHTML)(val) - }); - const textNodeName = \\"#text\\"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; - }); - var buildFormUrlencodedString = (formEntries) => Object.entries(formEntries).map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + \\"=\\" + (0, smithy_client_1.extendedEncodeURIComponent)(value)).join(\\"&\\"); - var loadQueryErrorCode = (output, data) => { - if (data.Error.Code !== void 0) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return \\"NotFound\\"; - } - }; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js -var require_AssumeRoleCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AssumeRoleCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"AssumeRoleCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleCommand)(output, context); - } - }; - exports2.AssumeRoleCommand = AssumeRoleCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js -var require_AssumeRoleWithSAMLCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AssumeRoleWithSAMLCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleWithSAMLCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"AssumeRoleWithSAMLCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleWithSAMLCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithSAMLCommand)(output, context); - } - }; - exports2.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js -var require_AssumeRoleWithWebIdentityCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.AssumeRoleWithWebIdentityCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var AssumeRoleWithWebIdentityCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"AssumeRoleWithWebIdentityCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(output, context); - } - }; - exports2.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js -var require_DecodeAuthorizationMessageCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DecodeAuthorizationMessageCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var DecodeAuthorizationMessageCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"DecodeAuthorizationMessageCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand)(output, context); - } - }; - exports2.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js -var require_GetAccessKeyInfoCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetAccessKeyInfoCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetAccessKeyInfoCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetAccessKeyInfoCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand)(output, context); - } - }; - exports2.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js -var require_GetCallerIdentityCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetCallerIdentityCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetCallerIdentityCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetCallerIdentityCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetCallerIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetCallerIdentityCommand)(output, context); - } - }; - exports2.GetCallerIdentityCommand = GetCallerIdentityCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js -var require_GetFederationTokenCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetFederationTokenCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetFederationTokenCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetFederationTokenCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetFederationTokenRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetFederationTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetFederationTokenCommand)(output, context); - } - }; - exports2.GetFederationTokenCommand = GetFederationTokenCommand; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js -var require_GetSessionTokenCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetSessionTokenCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var middleware_signing_1 = require_dist_cjs21(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_02(); - var Aws_query_1 = require_Aws_query(); - var GetSessionTokenCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"STSClient\\"; - const commandName = \\"GetSessionTokenCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetSessionTokenRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.serializeAws_queryGetSessionTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.deserializeAws_queryGetSessionTokenCommand)(output, context); - } - }; - exports2.GetSessionTokenCommand = GetSessionTokenCommand; - } -}); - -// node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js -var require_dist_cjs23 = __commonJS({ - \\"node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveStsAuthConfig = void 0; - var middleware_signing_1 = require_dist_cjs21(); - var resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ - ...input, - stsClientCtor - }); - exports2.resolveStsAuthConfig = resolveStsAuthConfig; - } -}); - -// node_modules/@aws-sdk/client-sts/package.json -var require_package2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/package.json\\"(exports2, module2) { - module2.exports = { - name: \\"@aws-sdk/client-sts\\", - description: \\"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native\\", - version: \\"3.163.0\\", - scripts: { - build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", - \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", - \\"build:docs\\": \\"typedoc\\", - \\"build:es\\": \\"tsc -p tsconfig.es.json\\", - \\"build:types\\": \\"tsc -p tsconfig.types.json\\", - \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", - clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\", - test: \\"yarn test:unit\\", - \\"test:unit\\": \\"jest\\" - }, - main: \\"./dist-cjs/index.js\\", - types: \\"./dist-types/index.d.ts\\", - module: \\"./dist-es/index.js\\", - sideEffects: false, - dependencies: { - \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", - \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", - \\"@aws-sdk/config-resolver\\": \\"3.163.0\\", - \\"@aws-sdk/credential-provider-node\\": \\"3.163.0\\", - \\"@aws-sdk/fetch-http-handler\\": \\"3.162.0\\", - \\"@aws-sdk/hash-node\\": \\"3.162.0\\", - \\"@aws-sdk/invalid-dependency\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-content-length\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-host-header\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-logger\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-recursion-detection\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-retry\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-sdk-sts\\": \\"3.163.0\\", - \\"@aws-sdk/middleware-serde\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-signing\\": \\"3.163.0\\", - \\"@aws-sdk/middleware-stack\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-user-agent\\": \\"3.162.0\\", - \\"@aws-sdk/node-config-provider\\": \\"3.162.0\\", - \\"@aws-sdk/node-http-handler\\": \\"3.162.0\\", - \\"@aws-sdk/protocol-http\\": \\"3.162.0\\", - \\"@aws-sdk/smithy-client\\": \\"3.162.0\\", - \\"@aws-sdk/types\\": \\"3.162.0\\", - \\"@aws-sdk/url-parser\\": \\"3.162.0\\", - \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-browser\\": \\"3.154.0\\", - \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.162.0\\", - \\"@aws-sdk/util-defaults-mode-node\\": \\"3.163.0\\", - \\"@aws-sdk/util-user-agent-browser\\": \\"3.162.0\\", - \\"@aws-sdk/util-user-agent-node\\": \\"3.162.0\\", - \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", - entities: \\"2.2.0\\", - \\"fast-xml-parser\\": \\"3.19.0\\", - tslib: \\"^2.3.1\\" - }, - devDependencies: { - \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", - \\"@tsconfig/recommended\\": \\"1.0.1\\", - \\"@types/node\\": \\"^12.7.5\\", - concurrently: \\"7.0.0\\", - \\"downlevel-dts\\": \\"0.7.0\\", - rimraf: \\"3.0.2\\", - typedoc: \\"0.19.2\\", - typescript: \\"~4.6.2\\" - }, - overrides: { - typedoc: { - typescript: \\"~4.6.2\\" - } - }, - engines: { - node: \\">=12.0.0\\" - }, - typesVersions: { - \\"<4.0\\": { - \\"dist-types/*\\": [ - \\"dist-types/ts3.4/*\\" - ] - } - }, - files: [ - \\"dist-*\\" - ], - author: { - name: \\"AWS SDK for JavaScript Team\\", - url: \\"https://aws.amazon.com/javascript/\\" - }, - license: \\"Apache-2.0\\", - browser: { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" - }, - \\"react-native\\": { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" - }, - homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts\\", - repository: { - type: \\"git\\", - url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", - directory: \\"clients/client-sts\\" - } - }; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js -var require_defaultStsRoleAssumers = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; - var AssumeRoleCommand_1 = require_AssumeRoleCommand(); - var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); - var ASSUME_ROLE_DEFAULT_REGION = \\"us-east-1\\"; - var decorateDefaultRegion = (region) => { - if (typeof region !== \\"function\\") { - return region === void 0 ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; - }; - var getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...requestHandler ? { requestHandler } : {} - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(\`Invalid response from STS.assumeRole call with role \${params.RoleArn}\`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration - }; - }; - }; - exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; - var getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...requestHandler ? { requestHandler } : {} - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(\`Invalid response from STS.assumeRoleWithWebIdentity call with role \${params.RoleArn}\`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration - }; - }; - }; - exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; - var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports2.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input - }); - exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js -var require_fromEnv = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromEnv = exports2.ENV_EXPIRATION = exports2.ENV_SESSION = exports2.ENV_SECRET = exports2.ENV_KEY = void 0; - var property_provider_1 = require_dist_cjs16(); - exports2.ENV_KEY = \\"AWS_ACCESS_KEY_ID\\"; - exports2.ENV_SECRET = \\"AWS_SECRET_ACCESS_KEY\\"; - exports2.ENV_SESSION = \\"AWS_SESSION_TOKEN\\"; - exports2.ENV_EXPIRATION = \\"AWS_CREDENTIAL_EXPIRATION\\"; - var fromEnv = () => async () => { - const accessKeyId = process.env[exports2.ENV_KEY]; - const secretAccessKey = process.env[exports2.ENV_SECRET]; - const sessionToken = process.env[exports2.ENV_SESSION]; - const expiry = process.env[exports2.ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...sessionToken && { sessionToken }, - ...expiry && { expiration: new Date(expiry) } - }; - } - throw new property_provider_1.CredentialsProviderError(\\"Unable to find environment variable credentials.\\"); - }; - exports2.fromEnv = fromEnv; - } -}); - -// node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js -var require_dist_cjs24 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromEnv(), exports2); - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js -var require_getHomeDir = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getHomeDir.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getHomeDir = void 0; - var os_1 = require(\\"os\\"); - var path_1 = require(\\"path\\"); - var getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = \`C:\${path_1.sep}\` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return \`\${HOMEDRIVE}\${HOMEPATH}\`; - return (0, os_1.homedir)(); - }; - exports2.getHomeDir = getHomeDir; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js -var require_getProfileName = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileName.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getProfileName = exports2.DEFAULT_PROFILE = exports2.ENV_PROFILE = void 0; - exports2.ENV_PROFILE = \\"AWS_PROFILE\\"; - exports2.DEFAULT_PROFILE = \\"default\\"; - var getProfileName = (init) => init.profile || process.env[exports2.ENV_PROFILE] || exports2.DEFAULT_PROFILE; - exports2.getProfileName = getProfileName; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js -var require_getSSOTokenFilepath = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSSOTokenFilepath = void 0; - var crypto_1 = require(\\"crypto\\"); - var path_1 = require(\\"path\\"); - var getHomeDir_1 = require_getHomeDir(); - var getSSOTokenFilepath = (ssoStartUrl) => { - const hasher = (0, crypto_1.createHash)(\\"sha1\\"); - const cacheName = hasher.update(ssoStartUrl).digest(\\"hex\\"); - return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"sso\\", \\"cache\\", \`\${cacheName}.json\`); - }; - exports2.getSSOTokenFilepath = getSSOTokenFilepath; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js -var require_getSSOTokenFromFile = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSSOTokenFromFile = void 0; - var fs_1 = require(\\"fs\\"); - var getSSOTokenFilepath_1 = require_getSSOTokenFilepath(); - var { readFile } = fs_1.promises; - var getSSOTokenFromFile = async (ssoStartUrl) => { - const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(ssoStartUrl); - const ssoTokenText = await readFile(ssoTokenFilepath, \\"utf8\\"); - return JSON.parse(ssoTokenText); - }; - exports2.getSSOTokenFromFile = getSSOTokenFromFile; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js -var require_getConfigFilepath = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getConfigFilepath.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getConfigFilepath = exports2.ENV_CONFIG_PATH = void 0; - var path_1 = require(\\"path\\"); - var getHomeDir_1 = require_getHomeDir(); - exports2.ENV_CONFIG_PATH = \\"AWS_CONFIG_FILE\\"; - var getConfigFilepath = () => process.env[exports2.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"config\\"); - exports2.getConfigFilepath = getConfigFilepath; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js -var require_getCredentialsFilepath = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getCredentialsFilepath = exports2.ENV_CREDENTIALS_PATH = void 0; - var path_1 = require(\\"path\\"); - var getHomeDir_1 = require_getHomeDir(); - exports2.ENV_CREDENTIALS_PATH = \\"AWS_SHARED_CREDENTIALS_FILE\\"; - var getCredentialsFilepath = () => process.env[exports2.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), \\".aws\\", \\"credentials\\"); - exports2.getCredentialsFilepath = getCredentialsFilepath; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js -var require_getProfileData = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getProfileData.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getProfileData = void 0; - var profileKeyRegex = /^profile\\\\s([\\"'])?([^\\\\1]+)\\\\1$/; - var getProfileData = (data) => Object.entries(data).filter(([key]) => profileKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [profileKeyRegex.exec(key)[2]]: value }), { - ...data.default && { default: data.default } - }); - exports2.getProfileData = getProfileData; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js -var require_parseIni = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseIni.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseIni = void 0; - var profileNameBlockList = [\\"__proto__\\", \\"profile __proto__\\"]; - var parseIni = (iniData) => { - const map = {}; - let currentSection; - for (let line of iniData.split(/\\\\r?\\\\n/)) { - line = line.split(/(^|\\\\s)[;#]/)[0].trim(); - const isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; - if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (profileNameBlockList.includes(currentSection)) { - throw new Error(\`Found invalid profile name \\"\${currentSection}\\"\`); - } - } else if (currentSection) { - const indexOfEqualsSign = line.indexOf(\\"=\\"); - const start = 0; - const end = line.length - 1; - const isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - const [name, value] = [ - line.substring(0, indexOfEqualsSign).trim(), - line.substring(indexOfEqualsSign + 1).trim() - ]; - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } - } - } - return map; - }; - exports2.parseIni = parseIni; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js -var require_slurpFile = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/slurpFile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.slurpFile = void 0; - var fs_1 = require(\\"fs\\"); - var { readFile } = fs_1.promises; - var filePromisesHash = {}; - var slurpFile = (path) => { - if (!filePromisesHash[path]) { - filePromisesHash[path] = readFile(path, \\"utf8\\"); - } - return filePromisesHash[path]; - }; - exports2.slurpFile = slurpFile; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js -var require_loadSharedConfigFiles = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadSharedConfigFiles = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getCredentialsFilepath_1 = require_getCredentialsFilepath(); - var getProfileData_1 = require_getProfileData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; - const parsedFiles = await Promise.all([ - (0, slurpFile_1.slurpFile)(configFilepath).then(parseIni_1.parseIni).then(getProfileData_1.getProfileData).catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath).then(parseIni_1.parseIni).catch(swallowError) - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1] - }; - }; - exports2.loadSharedConfigFiles = loadSharedConfigFiles; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js -var require_getSsoSessionData = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/getSsoSessionData.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getSsoSessionData = void 0; - var ssoSessionKeyRegex = /^sso-session\\\\s([\\"'])?([^\\\\1]+)\\\\1$/; - var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => ssoSessionKeyRegex.test(key)).reduce((acc, [key, value]) => ({ ...acc, [ssoSessionKeyRegex.exec(key)[2]]: value }), {}); - exports2.getSsoSessionData = getSsoSessionData; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js -var require_loadSsoSessionData = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadSsoSessionData = void 0; - var getConfigFilepath_1 = require_getConfigFilepath(); - var getSsoSessionData_1 = require_getSsoSessionData(); - var parseIni_1 = require_parseIni(); - var slurpFile_1 = require_slurpFile(); - var swallowError = () => ({}); - var loadSsoSessionData = async (init = {}) => { - var _a; - return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()).then(parseIni_1.parseIni).then(getSsoSessionData_1.getSsoSessionData).catch(swallowError); - }; - exports2.loadSsoSessionData = loadSsoSessionData; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js -var require_parseKnownFiles = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/parseKnownFiles.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseKnownFiles = void 0; - var loadSharedConfigFiles_1 = require_loadSharedConfigFiles(); - var parseKnownFiles = async (init) => { - const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); - return { - ...parsedFiles.configFile, - ...parsedFiles.credentialsFile - }; - }; - exports2.parseKnownFiles = parseKnownFiles; - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js -var require_types2 = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js -var require_dist_cjs25 = __commonJS({ - \\"node_modules/@aws-sdk/shared-ini-file-loader/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_getHomeDir(), exports2); - tslib_1.__exportStar(require_getProfileName(), exports2); - tslib_1.__exportStar(require_getSSOTokenFilepath(), exports2); - tslib_1.__exportStar(require_getSSOTokenFromFile(), exports2); - tslib_1.__exportStar(require_loadSharedConfigFiles(), exports2); - tslib_1.__exportStar(require_loadSsoSessionData(), exports2); - tslib_1.__exportStar(require_parseKnownFiles(), exports2); - tslib_1.__exportStar(require_types2(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js -var require_httpRequest2 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.httpRequest = void 0; - var property_provider_1 = require_dist_cjs16(); - var buffer_1 = require(\\"buffer\\"); - var http_1 = require(\\"http\\"); - function httpRequest(options) { - return new Promise((resolve, reject) => { - var _a; - const req = (0, http_1.request)({ - method: \\"GET\\", - ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\\\\[(.+)\\\\]$/, \\"$1\\") - }); - req.on(\\"error\\", (err) => { - reject(Object.assign(new property_provider_1.ProviderError(\\"Unable to connect to instance metadata service\\"), err)); - req.destroy(); - }); - req.on(\\"timeout\\", () => { - reject(new property_provider_1.ProviderError(\\"TimeoutError from instance metadata service\\")); - req.destroy(); - }); - req.on(\\"response\\", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError(\\"Error response received from instance metadata service\\"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on(\\"data\\", (chunk) => { - chunks.push(chunk); - }); - res.on(\\"end\\", () => { - resolve(buffer_1.Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); - } - exports2.httpRequest = httpRequest; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js -var require_ImdsCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromImdsCredentials = exports2.isImdsCredentials = void 0; - var isImdsCredentials = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.AccessKeyId === \\"string\\" && typeof arg.SecretAccessKey === \\"string\\" && typeof arg.Token === \\"string\\" && typeof arg.Expiration === \\"string\\"; - exports2.isImdsCredentials = isImdsCredentials; - var fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration) - }); - exports2.fromImdsCredentials = fromImdsCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js -var require_RemoteProviderInit = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.providerConfigFromInit = exports2.DEFAULT_MAX_RETRIES = exports2.DEFAULT_TIMEOUT = void 0; - exports2.DEFAULT_TIMEOUT = 1e3; - exports2.DEFAULT_MAX_RETRIES = 0; - var providerConfigFromInit = ({ maxRetries = exports2.DEFAULT_MAX_RETRIES, timeout = exports2.DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }); - exports2.providerConfigFromInit = providerConfigFromInit; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js -var require_retry = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/remoteProvider/retry.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.retry = void 0; - var retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; - }; - exports2.retry = retry; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js -var require_fromContainerMetadata = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromContainerMetadata.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromContainerMetadata = exports2.ENV_CMDS_AUTH_TOKEN = exports2.ENV_CMDS_RELATIVE_URI = exports2.ENV_CMDS_FULL_URI = void 0; - var property_provider_1 = require_dist_cjs16(); - var url_1 = require(\\"url\\"); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry(); - exports2.ENV_CMDS_FULL_URI = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; - exports2.ENV_CMDS_RELATIVE_URI = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; - exports2.ENV_CMDS_AUTH_TOKEN = \\"AWS_CONTAINER_AUTHORIZATION_TOKEN\\"; - var fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - return () => (0, retry_1.retry)(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }, maxRetries); - }; - exports2.fromContainerMetadata = fromContainerMetadata; - var requestFromEcsImds = async (timeout, options) => { - if (process.env[exports2.ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[exports2.ENV_CMDS_AUTH_TOKEN] - }; - } - const buffer = await (0, httpRequest_1.httpRequest)({ - ...options, - timeout - }); - return buffer.toString(); - }; - var CMDS_IP = \\"169.254.170.2\\"; - var GREENGRASS_HOSTS = { - localhost: true, - \\"127.0.0.1\\": true - }; - var GREENGRASS_PROTOCOLS = { - \\"http:\\": true, - \\"https:\\": true - }; - var getCmdsUri = async () => { - if (process.env[exports2.ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[exports2.ENV_CMDS_RELATIVE_URI] - }; - } - if (process.env[exports2.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports2.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(\`\${parsed.hostname} is not a valid container metadata service hostname\`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(\`\${parsed.protocol} is not a valid container metadata service protocol\`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : void 0 - }; - } - throw new property_provider_1.CredentialsProviderError(\`The container metadata credential provider cannot be used unless the \${exports2.ENV_CMDS_RELATIVE_URI} or \${exports2.ENV_CMDS_FULL_URI} environment variable is set\`, false); - }; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js -var require_fromEnv2 = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromEnv.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromEnv = void 0; - var property_provider_1 = require_dist_cjs16(); - var fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === void 0) { - throw new Error(); - } - return config; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config from environment variables with getter: \${envVarSelector}\`); - } - }; - exports2.fromEnv = fromEnv; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js -var require_fromSharedConfigFiles = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromSharedConfigFiles.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromSharedConfigFiles = void 0; - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var fromSharedConfigFiles = (configSelector, { preferredFile = \\"config\\", ...init } = {}) => async () => { - const profile = (0, shared_ini_file_loader_1.getProfileName)(init); - const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === \\"config\\" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials }; - try { - const configValue = configSelector(mergedProfile); - if (configValue === void 0) { - throw new Error(); - } - return configValue; - } catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || \`Cannot load config for profile \${profile} in SDK configuration files with getter: \${configSelector}\`); - } - }; - exports2.fromSharedConfigFiles = fromSharedConfigFiles; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js -var require_fromStatic2 = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/fromStatic.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromStatic = void 0; - var property_provider_1 = require_dist_cjs16(); - var isFunction = (func) => typeof func === \\"function\\"; - var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); - exports2.fromStatic = fromStatic; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js -var require_configLoader = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/configLoader.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.loadConfig = void 0; - var property_provider_1 = require_dist_cjs16(); - var fromEnv_1 = require_fromEnv2(); - var fromSharedConfigFiles_1 = require_fromSharedConfigFiles(); - var fromStatic_1 = require_fromStatic2(); - var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); - exports2.loadConfig = loadConfig; - } -}); - -// node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js -var require_dist_cjs26 = __commonJS({ - \\"node_modules/@aws-sdk/node-config-provider/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_configLoader(), exports2); - } -}); - -// node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js -var require_dist_cjs27 = __commonJS({ - \\"node_modules/@aws-sdk/querystring-parser/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseQueryString = void 0; - function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\\\\?/, \\"\\"); - if (querystring) { - for (const pair of querystring.split(\\"&\\")) { - let [key, value = null] = pair.split(\\"=\\"); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } else if (Array.isArray(query[key])) { - query[key].push(value); - } else { - query[key] = [query[key], value]; - } - } - } - return query; - } - exports2.parseQueryString = parseQueryString; - } -}); - -// node_modules/@aws-sdk/url-parser/dist-cjs/index.js -var require_dist_cjs28 = __commonJS({ - \\"node_modules/@aws-sdk/url-parser/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.parseUrl = void 0; - var querystring_parser_1 = require_dist_cjs27(); - var parseUrl = (url) => { - const { hostname, pathname, port, protocol, search } = new URL(url); - let query; - if (search) { - query = (0, querystring_parser_1.parseQueryString)(search); - } - return { - hostname, - port: port ? parseInt(port) : void 0, - protocol, - path: pathname, - query - }; - }; - exports2.parseUrl = parseUrl; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js -var require_Endpoint2 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/Endpoint.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Endpoint = void 0; - var Endpoint; - (function(Endpoint2) { - Endpoint2[\\"IPv4\\"] = \\"http://169.254.169.254\\"; - Endpoint2[\\"IPv6\\"] = \\"http://[fd00:ec2::254]\\"; - })(Endpoint = exports2.Endpoint || (exports2.Endpoint = {})); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js -var require_EndpointConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ENDPOINT_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_NAME = exports2.ENV_ENDPOINT_NAME = void 0; - exports2.ENV_ENDPOINT_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT\\"; - exports2.CONFIG_ENDPOINT_NAME = \\"ec2_metadata_service_endpoint\\"; - exports2.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_NAME], - default: void 0 - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js -var require_EndpointMode = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointMode.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.EndpointMode = void 0; - var EndpointMode; - (function(EndpointMode2) { - EndpointMode2[\\"IPv4\\"] = \\"IPv4\\"; - EndpointMode2[\\"IPv6\\"] = \\"IPv6\\"; - })(EndpointMode = exports2.EndpointMode || (exports2.EndpointMode = {})); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js -var require_EndpointModeConfigOptions = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ENDPOINT_MODE_CONFIG_OPTIONS = exports2.CONFIG_ENDPOINT_MODE_NAME = exports2.ENV_ENDPOINT_MODE_NAME = void 0; - var EndpointMode_1 = require_EndpointMode(); - exports2.ENV_ENDPOINT_MODE_NAME = \\"AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE\\"; - exports2.CONFIG_ENDPOINT_MODE_NAME = \\"ec2_metadata_service_endpoint_mode\\"; - exports2.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports2.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports2.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4 - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js -var require_getInstanceMetadataEndpoint = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getInstanceMetadataEndpoint = void 0; - var node_config_provider_1 = require_dist_cjs26(); - var url_parser_1 = require_dist_cjs28(); - var Endpoint_1 = require_Endpoint2(); - var EndpointConfigOptions_1 = require_EndpointConfigOptions(); - var EndpointMode_1 = require_EndpointMode(); - var EndpointModeConfigOptions_1 = require_EndpointModeConfigOptions(); - var getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)(await getFromEndpointConfig() || await getFromEndpointModeConfig()); - exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; - var getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); - var getFromEndpointModeConfig = async () => { - const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; - default: - throw new Error(\`Unsupported endpoint mode: \${endpointMode}. Select from \${Object.values(EndpointMode_1.EndpointMode)}\`); - } - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js -var require_getExtendedInstanceMetadataCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getExtendedInstanceMetadataCredentials = void 0; - var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; - var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; - var STATIC_STABILITY_DOC_URL = \\"https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\\"; - var getExtendedInstanceMetadataCredentials = (credentials, logger) => { - var _a; - const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); - const newExpiration = new Date(Date.now() + refreshInterval * 1e3); - logger.warn(\\"Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after \${new Date(newExpiration)}.\\\\nFor more information, please visit: \\" + STATIC_STABILITY_DOC_URL); - const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; - return { - ...credentials, - ...originalExpiration ? { originalExpiration } : {}, - expiration: newExpiration - }; - }; - exports2.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js -var require_staticStabilityProvider = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.staticStabilityProvider = void 0; - var getExtendedInstanceMetadataCredentials_1 = require_getExtendedInstanceMetadataCredentials(); - var staticStabilityProvider = (provider, options = {}) => { - const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; - let pastCredentials; - return async () => { - let credentials; - try { - credentials = await provider(); - if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); - } - } catch (e) { - if (pastCredentials) { - logger.warn(\\"Credential renew failed: \\", e); - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); - } else { - throw e; - } - } - pastCredentials = credentials; - return credentials; - }; - }; - exports2.staticStabilityProvider = staticStabilityProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js -var require_fromInstanceMetadata = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/fromInstanceMetadata.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromInstanceMetadata = void 0; - var property_provider_1 = require_dist_cjs16(); - var httpRequest_1 = require_httpRequest2(); - var ImdsCredentials_1 = require_ImdsCredentials(); - var RemoteProviderInit_1 = require_RemoteProviderInit(); - var retry_1 = require_retry(); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - var staticStabilityProvider_1 = require_staticStabilityProvider(); - var IMDS_PATH = \\"/latest/meta-data/iam/security-credentials/\\"; - var IMDS_TOKEN_PATH = \\"/latest/api/token\\"; - var fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); - exports2.fromInstanceMetadata = fromInstanceMetadata; - var getInstanceImdsProvider = (init) => { - let disableFetchToken = false; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries2, options) => { - const profile = (await (0, retry_1.retry)(async () => { - let profile2; - try { - profile2 = await getProfile(options); - } catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return profile2; - }, maxRetries2)).trim(); - return (0, retry_1.retry)(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(profile, options); - } catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return creds; - }, maxRetries2); - }; - return async () => { - const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); - if (disableFetchToken) { - return getCredentials(maxRetries, { ...endpoint, timeout }); - } else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { - throw Object.assign(error, { - message: \\"EC2 Metadata token request returned error\\" - }); - } else if (error.message === \\"TimeoutError\\" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; - } - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - \\"x-aws-ec2-metadata-token\\": token - }, - timeout - }); - } - }; - }; - var getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_TOKEN_PATH, - method: \\"PUT\\", - headers: { - \\"x-aws-ec2-metadata-token-ttl-seconds\\": \\"21600\\" - } - }); - var getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); - var getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_PATH + profile - })).toString()); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError(\\"Invalid response received from instance metadata service.\\"); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js -var require_types3 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js -var require_dist_cjs29 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-imds/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getInstanceMetadataEndpoint = exports2.httpRequest = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromContainerMetadata(), exports2); - tslib_1.__exportStar(require_fromInstanceMetadata(), exports2); - tslib_1.__exportStar(require_RemoteProviderInit(), exports2); - tslib_1.__exportStar(require_types3(), exports2); - var httpRequest_1 = require_httpRequest2(); - Object.defineProperty(exports2, \\"httpRequest\\", { enumerable: true, get: function() { - return httpRequest_1.httpRequest; - } }); - var getInstanceMetadataEndpoint_1 = require_getInstanceMetadataEndpoint(); - Object.defineProperty(exports2, \\"getInstanceMetadataEndpoint\\", { enumerable: true, get: function() { - return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; - } }); - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js -var require_resolveCredentialSource = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveCredentialSource = void 0; - var credential_provider_env_1 = require_dist_cjs24(); - var credential_provider_imds_1 = require_dist_cjs29(); - var property_provider_1 = require_dist_cjs16(); - var resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } else { - throw new property_provider_1.CredentialsProviderError(\`Unsupported credential source in profile \${profileName}. Got \${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.\`); - } - }; - exports2.resolveCredentialSource = resolveCredentialSource; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js -var require_resolveAssumeRoleCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveAssumeRoleCredentials = exports2.isAssumeRoleProfile = void 0; - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var resolveCredentialSource_1 = require_resolveCredentialSource(); - var resolveProfileData_1 = require_resolveProfileData(); - var isAssumeRoleProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.external_id) > -1 && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); - exports2.isAssumeRoleProfile = isAssumeRoleProfile; - var isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === \\"string\\" && typeof arg.credential_source === \\"undefined\\"; - var isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === \\"string\\" && typeof arg.source_profile === \\"undefined\\"; - var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires a role to be assumed, but no role assumption callback was provided.\`, false); - } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(\`Detected a cycle attempting to resolve credentials for profile \${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: \` + Object.keys(visitedProfiles).join(\\", \\"), false); - } - const sourceCredsProvider = source_profile ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true - }) : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || \`aws-sdk-js-\${Date.now()}\`, - ExternalId: data.external_id - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} requires multi-factor authentication, but no MFA code callback was provided.\`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); - } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); - }; - exports2.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js -var require_isSsoProfile = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isSsoProfile = void 0; - var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === \\"string\\" || typeof arg.sso_account_id === \\"string\\" || typeof arg.sso_region === \\"string\\" || typeof arg.sso_role_name === \\"string\\"); - exports2.isSsoProfile = isSsoProfile; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js -var require_SSOServiceException = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSOServiceException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var SSOServiceException = class extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); - } - }; - exports2.SSOServiceException = SSOServiceException; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js -var require_models_03 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.LogoutRequestFilterSensitiveLog = exports2.ListAccountsResponseFilterSensitiveLog = exports2.ListAccountsRequestFilterSensitiveLog = exports2.ListAccountRolesResponseFilterSensitiveLog = exports2.RoleInfoFilterSensitiveLog = exports2.ListAccountRolesRequestFilterSensitiveLog = exports2.GetRoleCredentialsResponseFilterSensitiveLog = exports2.RoleCredentialsFilterSensitiveLog = exports2.GetRoleCredentialsRequestFilterSensitiveLog = exports2.AccountInfoFilterSensitiveLog = exports2.UnauthorizedException = exports2.TooManyRequestsException = exports2.ResourceNotFoundException = exports2.InvalidRequestException = void 0; - var smithy_client_1 = require_dist_cjs3(); - var SSOServiceException_1 = require_SSOServiceException(); - var InvalidRequestException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"InvalidRequestException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"InvalidRequestException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); - } - }; - exports2.InvalidRequestException = InvalidRequestException; - var ResourceNotFoundException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"ResourceNotFoundException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"ResourceNotFoundException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } - }; - exports2.ResourceNotFoundException = ResourceNotFoundException; - var TooManyRequestsException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"TooManyRequestsException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"TooManyRequestsException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); - } - }; - exports2.TooManyRequestsException = TooManyRequestsException; - var UnauthorizedException = class extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: \\"UnauthorizedException\\", - $fault: \\"client\\", - ...opts - }); - this.name = \\"UnauthorizedException\\"; - this.$fault = \\"client\\"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); - } - }; - exports2.UnauthorizedException = UnauthorizedException; - var AccountInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.AccountInfoFilterSensitiveLog = AccountInfoFilterSensitiveLog; - var GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; - var RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }, - ...obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; - var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.roleCredentials && { roleCredentials: (0, exports2.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) } - }); - exports2.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; - var ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; - var RoleInfoFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.RoleInfoFilterSensitiveLog = RoleInfoFilterSensitiveLog; - var ListAccountRolesResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListAccountRolesResponseFilterSensitiveLog = ListAccountRolesResponseFilterSensitiveLog; - var ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; - var ListAccountsResponseFilterSensitiveLog = (obj) => ({ - ...obj - }); - exports2.ListAccountsResponseFilterSensitiveLog = ListAccountsResponseFilterSensitiveLog; - var LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING } - }); - exports2.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js -var require_Aws_restJson1 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.deserializeAws_restJson1LogoutCommand = exports2.deserializeAws_restJson1ListAccountsCommand = exports2.deserializeAws_restJson1ListAccountRolesCommand = exports2.deserializeAws_restJson1GetRoleCredentialsCommand = exports2.serializeAws_restJson1LogoutCommand = exports2.serializeAws_restJson1ListAccountsCommand = exports2.serializeAws_restJson1ListAccountRolesCommand = exports2.serializeAws_restJson1GetRoleCredentialsCommand = void 0; - var protocol_http_1 = require_dist_cjs4(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var SSOServiceException_1 = require_SSOServiceException(); - var serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/federation/credentials\`; - const query = map({ - role_name: [, input.roleName], - account_id: [, input.accountId] - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"GET\\", - headers, - path: resolvedPath, - query, - body - }); - }; - exports2.serializeAws_restJson1GetRoleCredentialsCommand = serializeAws_restJson1GetRoleCredentialsCommand; - var serializeAws_restJson1ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/roles\`; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, input.accountId] - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"GET\\", - headers, - path: resolvedPath, - query, - body - }); - }; - exports2.serializeAws_restJson1ListAccountRolesCommand = serializeAws_restJson1ListAccountRolesCommand; - var serializeAws_restJson1ListAccountsCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/assignment/accounts\`; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()] - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"GET\\", - headers, - path: resolvedPath, - query, - body - }); - }; - exports2.serializeAws_restJson1ListAccountsCommand = serializeAws_restJson1ListAccountsCommand; - var serializeAws_restJson1LogoutCommand = async (input, context) => { - const { hostname, protocol = \\"https\\", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - \\"x-amz-sso_bearer_token\\": input.accessToken - }); - const resolvedPath = \`\${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith(\\"/\\")) ? basePath.slice(0, -1) : basePath || \\"\\"}/logout\`; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: \\"POST\\", - headers, - path: resolvedPath, - body - }); - }; - exports2.serializeAws_restJson1LogoutCommand = serializeAws_restJson1LogoutCommand; - var deserializeAws_restJson1GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1GetRoleCredentialsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); - if (data.roleCredentials != null) { - contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context); - } - return contents; - }; - exports2.deserializeAws_restJson1GetRoleCredentialsCommand = deserializeAws_restJson1GetRoleCredentialsCommand; - var deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.sso#ResourceNotFoundException\\": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var deserializeAws_restJson1ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountRolesCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); - if (data.nextToken != null) { - contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); - } - if (data.roleList != null) { - contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context); - } - return contents; - }; - exports2.deserializeAws_restJson1ListAccountRolesCommand = deserializeAws_restJson1ListAccountRolesCommand; - var deserializeAws_restJson1ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.sso#ResourceNotFoundException\\": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var deserializeAws_restJson1ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1ListAccountsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), \\"body\\"); - if (data.accountList != null) { - contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context); - } - if (data.nextToken != null) { - contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken); - } - return contents; - }; - exports2.deserializeAws_restJson1ListAccountsCommand = deserializeAws_restJson1ListAccountsCommand; - var deserializeAws_restJson1ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"ResourceNotFoundException\\": - case \\"com.amazonaws.sso#ResourceNotFoundException\\": - throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var deserializeAws_restJson1LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return deserializeAws_restJson1LogoutCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output) - }); - await collectBody(output.body, context); - return contents; - }; - exports2.deserializeAws_restJson1LogoutCommand = deserializeAws_restJson1LogoutCommand; - var deserializeAws_restJson1LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseBody(output.body, context) - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case \\"InvalidRequestException\\": - case \\"com.amazonaws.sso#InvalidRequestException\\": - throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context); - case \\"TooManyRequestsException\\": - case \\"com.amazonaws.sso#TooManyRequestsException\\": - throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context); - case \\"UnauthorizedException\\": - case \\"com.amazonaws.sso#UnauthorizedException\\": - throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - (0, smithy_client_1.throwDefaultError)({ - output, - parsedBody, - exceptionCtor: SSOServiceException_1.SSOServiceException, - errorCode - }); - } - }; - var map = smithy_client_1.map; - var deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - if (data.message != null) { - contents.message = (0, smithy_client_1.expectString)(data.message); - } - const exception = new models_0_1.UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); - }; - var deserializeAws_restJson1AccountInfo = (output, context) => { - return { - accountId: (0, smithy_client_1.expectString)(output.accountId), - accountName: (0, smithy_client_1.expectString)(output.accountName), - emailAddress: (0, smithy_client_1.expectString)(output.emailAddress) - }; - }; - var deserializeAws_restJson1AccountListType = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1AccountInfo(entry, context); - }); - return retVal; - }; - var deserializeAws_restJson1RoleCredentials = (output, context) => { - return { - accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId), - expiration: (0, smithy_client_1.expectLong)(output.expiration), - secretAccessKey: (0, smithy_client_1.expectString)(output.secretAccessKey), - sessionToken: (0, smithy_client_1.expectString)(output.sessionToken) - }; - }; - var deserializeAws_restJson1RoleInfo = (output, context) => { - return { - accountId: (0, smithy_client_1.expectString)(output.accountId), - roleName: (0, smithy_client_1.expectString)(output.roleName) - }; - }; - var deserializeAws_restJson1RoleListType = (output, context) => { - const retVal = (output || []).filter((e) => e != null).map((entry) => { - if (entry === null) { - return null; - } - return deserializeAws_restJson1RoleInfo(entry, context); - }); - return retVal; - }; - var deserializeMetadata = (output) => { - var _a; - return { - httpStatusCode: output.statusCode, - requestId: (_a = output.headers[\\"x-amzn-requestid\\"]) !== null && _a !== void 0 ? _a : output.headers[\\"x-amzn-request-id\\"], - extendedRequestId: output.headers[\\"x-amz-id-2\\"], - cfId: output.headers[\\"x-amz-cf-id\\"] - }; - }; - var collectBody = (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Promise.resolve(streamBody); - } - return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array()); - }; - var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); - var isSerializableHeaderValue = (value) => value !== void 0 && value !== null && value !== \\"\\" && (!Object.getOwnPropertyNames(value).includes(\\"length\\") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes(\\"size\\") || value.size != 0); - var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; - }); - var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === \\"number\\") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(\\":\\") >= 0) { - cleanValue = cleanValue.split(\\":\\")[0]; - } - if (cleanValue.indexOf(\\"#\\") >= 0) { - cleanValue = cleanValue.split(\\"#\\")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, \\"x-amzn-errortype\\"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data[\\"__type\\"] !== void 0) { - return sanitizeErrorCode(data[\\"__type\\"]); - } - }; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js -var require_GetRoleCredentialsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.GetRoleCredentialsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var GetRoleCredentialsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"GetRoleCredentialsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1GetRoleCredentialsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1GetRoleCredentialsCommand)(output, context); - } - }; - exports2.GetRoleCredentialsCommand = GetRoleCredentialsCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js -var require_ListAccountRolesCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListAccountRolesCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var ListAccountRolesCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"ListAccountRolesCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountRolesResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountRolesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountRolesCommand)(output, context); - } - }; - exports2.ListAccountRolesCommand = ListAccountRolesCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js -var require_ListAccountsCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.ListAccountsCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var ListAccountsCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"ListAccountsCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.ListAccountsResponseFilterSensitiveLog - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1ListAccountsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1ListAccountsCommand)(output, context); - } - }; - exports2.ListAccountsCommand = ListAccountsCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js -var require_LogoutCommand = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.LogoutCommand = void 0; - var middleware_serde_1 = require_dist_cjs(); - var smithy_client_1 = require_dist_cjs3(); - var models_0_1 = require_models_03(); - var Aws_restJson1_1 = require_Aws_restJson1(); - var LogoutCommand = class extends smithy_client_1.Command { - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = \\"SSOClient\\"; - const commandName = \\"LogoutCommand\\"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (output) => output - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.serializeAws_restJson1LogoutCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.deserializeAws_restJson1LogoutCommand)(output, context); - } - }; - exports2.LogoutCommand = LogoutCommand; - } -}); - -// node_modules/@aws-sdk/client-sso/package.json -var require_package3 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/package.json\\"(exports2, module2) { - module2.exports = { - name: \\"@aws-sdk/client-sso\\", - description: \\"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native\\", - version: \\"3.163.0\\", - scripts: { - build: \\"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'\\", - \\"build:cjs\\": \\"tsc -p tsconfig.cjs.json\\", - \\"build:docs\\": \\"typedoc\\", - \\"build:es\\": \\"tsc -p tsconfig.es.json\\", - \\"build:types\\": \\"tsc -p tsconfig.types.json\\", - \\"build:types:downlevel\\": \\"downlevel-dts dist-types dist-types/ts3.4\\", - clean: \\"rimraf ./dist-* && rimraf *.tsbuildinfo\\" - }, - main: \\"./dist-cjs/index.js\\", - types: \\"./dist-types/index.d.ts\\", - module: \\"./dist-es/index.js\\", - sideEffects: false, - dependencies: { - \\"@aws-crypto/sha256-browser\\": \\"2.0.0\\", - \\"@aws-crypto/sha256-js\\": \\"2.0.0\\", - \\"@aws-sdk/config-resolver\\": \\"3.163.0\\", - \\"@aws-sdk/fetch-http-handler\\": \\"3.162.0\\", - \\"@aws-sdk/hash-node\\": \\"3.162.0\\", - \\"@aws-sdk/invalid-dependency\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-content-length\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-host-header\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-logger\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-recursion-detection\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-retry\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-serde\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-stack\\": \\"3.162.0\\", - \\"@aws-sdk/middleware-user-agent\\": \\"3.162.0\\", - \\"@aws-sdk/node-config-provider\\": \\"3.162.0\\", - \\"@aws-sdk/node-http-handler\\": \\"3.162.0\\", - \\"@aws-sdk/protocol-http\\": \\"3.162.0\\", - \\"@aws-sdk/smithy-client\\": \\"3.162.0\\", - \\"@aws-sdk/types\\": \\"3.162.0\\", - \\"@aws-sdk/url-parser\\": \\"3.162.0\\", - \\"@aws-sdk/util-base64-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-base64-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-body-length-browser\\": \\"3.154.0\\", - \\"@aws-sdk/util-body-length-node\\": \\"3.55.0\\", - \\"@aws-sdk/util-defaults-mode-browser\\": \\"3.162.0\\", - \\"@aws-sdk/util-defaults-mode-node\\": \\"3.163.0\\", - \\"@aws-sdk/util-user-agent-browser\\": \\"3.162.0\\", - \\"@aws-sdk/util-user-agent-node\\": \\"3.162.0\\", - \\"@aws-sdk/util-utf8-browser\\": \\"3.109.0\\", - \\"@aws-sdk/util-utf8-node\\": \\"3.109.0\\", - tslib: \\"^2.3.1\\" - }, - devDependencies: { - \\"@aws-sdk/service-client-documentation-generator\\": \\"3.58.0\\", - \\"@tsconfig/recommended\\": \\"1.0.1\\", - \\"@types/node\\": \\"^12.7.5\\", - concurrently: \\"7.0.0\\", - \\"downlevel-dts\\": \\"0.7.0\\", - rimraf: \\"3.0.2\\", - typedoc: \\"0.19.2\\", - typescript: \\"~4.6.2\\" - }, - overrides: { - typedoc: { - typescript: \\"~4.6.2\\" - } - }, - engines: { - node: \\">=12.0.0\\" - }, - typesVersions: { - \\"<4.0\\": { - \\"dist-types/*\\": [ - \\"dist-types/ts3.4/*\\" - ] - } - }, - files: [ - \\"dist-*\\" - ], - author: { - name: \\"AWS SDK for JavaScript Team\\", - url: \\"https://aws.amazon.com/javascript/\\" - }, - license: \\"Apache-2.0\\", - browser: { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.browser\\" - }, - \\"react-native\\": { - \\"./dist-es/runtimeConfig\\": \\"./dist-es/runtimeConfig.native\\" - }, - homepage: \\"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso\\", - repository: { - type: \\"git\\", - url: \\"https://github.com/aws/aws-sdk-js-v3.git\\", - directory: \\"clients/client-sso\\" - } - }; - } -}); - -// node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js -var require_dist_cjs30 = __commonJS({ - \\"node_modules/@aws-sdk/util-buffer-from/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromString = exports2.fromArrayBuffer = void 0; - var is_array_buffer_1 = require_dist_cjs19(); - var buffer_1 = require(\\"buffer\\"); - var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { - throw new TypeError(\`The \\"input\\" argument must be ArrayBuffer. Received type \${typeof input} (\${input})\`); - } - return buffer_1.Buffer.from(input, offset, length); - }; - exports2.fromArrayBuffer = fromArrayBuffer; - var fromString = (input, encoding) => { - if (typeof input !== \\"string\\") { - throw new TypeError(\`The \\"input\\" argument must be of type string. Received type \${typeof input} (\${input})\`); - } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); - }; - exports2.fromString = fromString; - } -}); - -// node_modules/@aws-sdk/hash-node/dist-cjs/index.js -var require_dist_cjs31 = __commonJS({ - \\"node_modules/@aws-sdk/hash-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Hash = void 0; - var util_buffer_from_1 = require_dist_cjs30(); - var buffer_1 = require(\\"buffer\\"); - var crypto_1 = require(\\"crypto\\"); - var Hash = class { - constructor(algorithmIdentifier, secret) { - this.hash = secret ? (0, crypto_1.createHmac)(algorithmIdentifier, castSourceData(secret)) : (0, crypto_1.createHash)(algorithmIdentifier); - } - update(toHash, encoding) { - this.hash.update(castSourceData(toHash, encoding)); - } - digest() { - return Promise.resolve(this.hash.digest()); - } - }; - exports2.Hash = Hash; - function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === \\"string\\") { - return (0, util_buffer_from_1.fromString)(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return (0, util_buffer_from_1.fromArrayBuffer)(toCast); - } - } -}); - -// node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js -var require_dist_cjs32 = __commonJS({ - \\"node_modules/@aws-sdk/querystring-builder/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.buildQueryString = void 0; - var util_uri_escape_1 = require_dist_cjs18(); - function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = (0, util_uri_escape_1.escapeUri)(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(\`\${key}=\${(0, util_uri_escape_1.escapeUri)(value[i])}\`); - } - } else { - let qsEntry = key; - if (value || typeof value === \\"string\\") { - qsEntry += \`=\${(0, util_uri_escape_1.escapeUri)(value)}\`; - } - parts.push(qsEntry); - } - } - return parts.join(\\"&\\"); - } - exports2.buildQueryString = buildQueryString; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js -var require_constants6 = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODEJS_TIMEOUT_ERROR_CODES = void 0; - exports2.NODEJS_TIMEOUT_ERROR_CODES = [\\"ECONNRESET\\", \\"EPIPE\\", \\"ETIMEDOUT\\"]; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js -var require_get_transformed_headers = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/get-transformed-headers.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getTransformedHeaders = void 0; - var getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(\\",\\") : headerValues; - } - return transformedHeaders; - }; - exports2.getTransformedHeaders = getTransformedHeaders; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js -var require_set_connection_timeout = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-connection-timeout.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.setConnectionTimeout = void 0; - var setConnectionTimeout = (request, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; - } - request.on(\\"socket\\", (socket) => { - if (socket.connecting) { - const timeoutId = setTimeout(() => { - request.destroy(); - reject(Object.assign(new Error(\`Socket timed out without establishing a connection within \${timeoutInMs} ms\`), { - name: \\"TimeoutError\\" - })); - }, timeoutInMs); - socket.on(\\"connect\\", () => { - clearTimeout(timeoutId); - }); - } - }); - }; - exports2.setConnectionTimeout = setConnectionTimeout; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js -var require_set_socket_timeout = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/set-socket-timeout.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.setSocketTimeout = void 0; - var setSocketTimeout = (request, reject, timeoutInMs = 0) => { - request.setTimeout(timeoutInMs, () => { - request.destroy(); - reject(Object.assign(new Error(\`Connection timed out after \${timeoutInMs} ms\`), { name: \\"TimeoutError\\" })); - }); - }; - exports2.setSocketTimeout = setSocketTimeout; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js -var require_write_request_body = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/write-request-body.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.writeRequestBody = void 0; - var stream_1 = require(\\"stream\\"); - function writeRequestBody(httpRequest, request) { - const expect = request.headers[\\"Expect\\"] || request.headers[\\"expect\\"]; - if (expect === \\"100-continue\\") { - httpRequest.on(\\"continue\\", () => { - writeBody(httpRequest, request.body); - }); - } else { - writeBody(httpRequest, request.body); - } - } - exports2.writeRequestBody = writeRequestBody; - function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { - body.pipe(httpRequest); - } else if (body) { - httpRequest.end(Buffer.from(body)); - } else { - httpRequest.end(); - } - } - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js -var require_node_http_handler = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http-handler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NodeHttpHandler = void 0; - var protocol_http_1 = require_dist_cjs4(); - var querystring_builder_1 = require_dist_cjs32(); - var http_1 = require(\\"http\\"); - var https_1 = require(\\"https\\"); - var constants_1 = require_constants6(); - var get_transformed_headers_1 = require_get_transformed_headers(); - var set_connection_timeout_1 = require_set_connection_timeout(); - var set_socket_timeout_1 = require_set_socket_timeout(); - var write_request_body_1 = require_write_request_body(); - var NodeHttpHandler = class { - constructor(options) { - this.metadata = { handlerProtocol: \\"http/1.1\\" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === \\"function\\") { - options().then((_options) => { - resolve(this.resolveDefaultConfig(_options)); - }).catch(reject); - } else { - resolve(this.resolveDefaultConfig(options)); - } - }); - } - resolveDefaultConfig(options) { - const { connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; - const keepAlive = true; - const maxSockets = 50; - return { - connectionTimeout, - socketTimeout, - httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }) - }; - } - destroy() { - var _a, _b, _c, _d; - (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); - (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - return new Promise((resolve, reject) => { - if (!this.config) { - throw new Error(\\"Node HTTP request handler config is not resolved\\"); - } - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - reject(abortError); - return; - } - const isSSL = request.protocol === \\"https:\\"; - const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); - const nodeHttpsOptions = { - headers: request.headers, - host: request.hostname, - method: request.method, - path: queryString ? \`\${request.path}?\${queryString}\` : request.path, - port: request.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent - }; - const requestFunc = isSSL ? https_1.request : http_1.request; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: res.statusCode || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), - body: res - }); - resolve({ response: httpResponse }); - }); - req.on(\\"error\\", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: \\"TimeoutError\\" })); - } else { - reject(err); - } - }); - (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); - (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.socketTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - reject(abortError); - }; - } - (0, write_request_body_1.writeRequestBody)(req, request); - }); - } - }; - exports2.NodeHttpHandler = NodeHttpHandler; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js -var require_node_http2_handler = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/node-http2-handler.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NodeHttp2Handler = void 0; - var protocol_http_1 = require_dist_cjs4(); - var querystring_builder_1 = require_dist_cjs32(); - var http2_1 = require(\\"http2\\"); - var get_transformed_headers_1 = require_get_transformed_headers(); - var write_request_body_1 = require_write_request_body(); - var NodeHttp2Handler = class { - constructor(options) { - this.metadata = { handlerProtocol: \\"h2\\" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === \\"function\\") { - options().then((opts) => { - resolve(opts || {}); - }).catch(reject); - } else { - resolve(options || {}); - } - }); - this.sessionCache = /* @__PURE__ */ new Map(); - } - destroy() { - for (const sessions of this.sessionCache.values()) { - sessions.forEach((session) => this.destroySession(session)); - } - this.sessionCache.clear(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - const { requestTimeout, disableConcurrentStreams } = this.config; - return new Promise((resolve, rejectOriginal) => { - let fulfilled = false; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - fulfilled = true; - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - rejectOriginal(abortError); - return; - } - const { hostname, method, port, protocol, path, query } = request; - const authority = \`\${protocol}//\${hostname}\${port ? \`:\${port}\` : \\"\\"}\`; - const session = this.getSession(authority, disableConcurrentStreams || false); - const reject = (err) => { - if (disableConcurrentStreams) { - this.destroySession(session); - } - fulfilled = true; - rejectOriginal(err); - }; - const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); - const req = session.request({ - ...request.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: queryString ? \`\${path}?\${queryString}\` : path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method - }); - session.ref(); - req.on(\\"response\\", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: headers[\\":status\\"] || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), - body: req - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (disableConcurrentStreams) { - session.close(); - this.deleteSessionFromCache(authority, session); - } - }); - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(\`Stream timed out because of no activity for \${requestTimeout} ms\`); - timeoutError.name = \\"TimeoutError\\"; - reject(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error(\\"Request aborted\\"); - abortError.name = \\"AbortError\\"; - reject(abortError); - }; - } - req.on(\\"frameError\\", (type, code, id) => { - reject(new Error(\`Frame type id \${type} in stream id \${id} has failed with code \${code}.\`)); - }); - req.on(\\"error\\", reject); - req.on(\\"aborted\\", () => { - reject(new Error(\`HTTP/2 stream is abnormally aborted in mid-communication with result code \${req.rstCode}.\`)); - }); - req.on(\\"close\\", () => { - session.unref(); - if (disableConcurrentStreams) { - session.destroy(); - } - if (!fulfilled) { - reject(new Error(\\"Unexpected error: http2 request did not get a response\\")); - } - }); - (0, write_request_body_1.writeRequestBody)(req, request); - }); - } - getSession(authority, disableConcurrentStreams) { - var _a; - const sessionCache = this.sessionCache; - const existingSessions = sessionCache.get(authority) || []; - if (existingSessions.length > 0 && !disableConcurrentStreams) - return existingSessions[0]; - const newSession = (0, http2_1.connect)(authority); - newSession.unref(); - const destroySessionCb = () => { - this.destroySession(newSession); - this.deleteSessionFromCache(authority, newSession); - }; - newSession.on(\\"goaway\\", destroySessionCb); - newSession.on(\\"error\\", destroySessionCb); - newSession.on(\\"frameError\\", destroySessionCb); - newSession.on(\\"close\\", () => this.deleteSessionFromCache(authority, newSession)); - if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.sessionTimeout) { - newSession.setTimeout(this.config.sessionTimeout, destroySessionCb); - } - existingSessions.push(newSession); - sessionCache.set(authority, existingSessions); - return newSession; - } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } - } - deleteSessionFromCache(authority, session) { - const existingSessions = this.sessionCache.get(authority) || []; - if (!existingSessions.includes(session)) { - return; - } - this.sessionCache.set(authority, existingSessions.filter((s) => s !== session)); - } - }; - exports2.NodeHttp2Handler = NodeHttp2Handler; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js -var require_collector = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/collector.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.Collector = void 0; - var stream_1 = require(\\"stream\\"); - var Collector = class extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } - }; - exports2.Collector = Collector; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js -var require_stream_collector = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/stream-collector/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.streamCollector = void 0; - var collector_1 = require_collector(); - var streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); - stream.pipe(collector); - stream.on(\\"error\\", (err) => { - collector.end(); - reject(err); - }); - collector.on(\\"error\\", reject); - collector.on(\\"finish\\", function() { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); - }); - exports2.streamCollector = streamCollector; - } -}); - -// node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js -var require_dist_cjs33 = __commonJS({ - \\"node_modules/@aws-sdk/node-http-handler/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_node_http_handler(), exports2); - tslib_1.__exportStar(require_node_http2_handler(), exports2); - tslib_1.__exportStar(require_stream_collector(), exports2); - } -}); - -// node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js -var require_dist_cjs34 = __commonJS({ - \\"node_modules/@aws-sdk/util-base64-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toBase64 = exports2.fromBase64 = void 0; - var util_buffer_from_1 = require_dist_cjs30(); - var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; - function fromBase64(input) { - if (input.length * 3 % 4 !== 0) { - throw new TypeError(\`Incorrect padding on base64 string.\`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(\`Invalid base64 string.\`); - } - const buffer = (0, util_buffer_from_1.fromString)(input, \\"base64\\"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); - } - exports2.fromBase64 = fromBase64; - function toBase64(input) { - return (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"base64\\"); - } - exports2.toBase64 = toBase64; - } -}); - -// node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js -var require_calculateBodyLength = __commonJS({ - \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/calculateBodyLength.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.calculateBodyLength = void 0; - var fs_1 = require(\\"fs\\"); - var calculateBodyLength = (body) => { - if (!body) { - return 0; - } - if (typeof body === \\"string\\") { - return Buffer.from(body).length; - } else if (typeof body.byteLength === \\"number\\") { - return body.byteLength; - } else if (typeof body.size === \\"number\\") { - return body.size; - } else if (typeof body.path === \\"string\\" || Buffer.isBuffer(body.path)) { - return (0, fs_1.lstatSync)(body.path).size; - } else if (typeof body.fd === \\"number\\") { - return (0, fs_1.fstatSync)(body.fd).size; - } - throw new Error(\`Body Length computation failed for \${body}\`); - }; - exports2.calculateBodyLength = calculateBodyLength; - } -}); - -// node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js -var require_dist_cjs35 = __commonJS({ - \\"node_modules/@aws-sdk/util-body-length-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_calculateBodyLength(), exports2); - } -}); - -// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js -var require_is_crt_available = __commonJS({ - \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js\\"(exports2, module2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.isCrtAvailable = void 0; - var isCrtAvailable = () => { - try { - if (typeof require === \\"function\\" && typeof module2 !== \\"undefined\\" && module2.require && require(\\"aws-crt\\")) { - return [\\"md/crt-avail\\"]; - } - return null; - } catch (e) { - return null; - } - }; - exports2.isCrtAvailable = isCrtAvailable; - } -}); - -// node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js -var require_dist_cjs36 = __commonJS({ - \\"node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultUserAgent = exports2.UA_APP_ID_INI_NAME = exports2.UA_APP_ID_ENV_NAME = void 0; - var node_config_provider_1 = require_dist_cjs26(); - var os_1 = require(\\"os\\"); - var process_1 = require(\\"process\\"); - var is_crt_available_1 = require_is_crt_available(); - exports2.UA_APP_ID_ENV_NAME = \\"AWS_SDK_UA_APP_ID\\"; - exports2.UA_APP_ID_INI_NAME = \\"sdk-ua-app-id\\"; - var defaultUserAgent = ({ serviceId, clientVersion }) => { - const sections = [ - [\\"aws-sdk-js\\", clientVersion], - [\`os/\${(0, os_1.platform)()}\`, (0, os_1.release)()], - [\\"lang/js\\"], - [\\"md/nodejs\\", \`\${process_1.versions.node}\`] - ]; - const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); - if (crtAvailable) { - sections.push(crtAvailable); - } - if (serviceId) { - sections.push([\`api/\${serviceId}\`, clientVersion]); - } - if (process_1.env.AWS_EXECUTION_ENV) { - sections.push([\`exec-env/\${process_1.env.AWS_EXECUTION_ENV}\`]); - } - const appIdPromise = (0, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => env[exports2.UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[exports2.UA_APP_ID_INI_NAME], - default: void 0 - })(); - let resolvedUserAgent = void 0; - return async () => { - if (!resolvedUserAgent) { - const appId = await appIdPromise; - resolvedUserAgent = appId ? [...sections, [\`app/\${appId}\`]] : [...sections]; - } - return resolvedUserAgent; - }; - }; - exports2.defaultUserAgent = defaultUserAgent; - } -}); - -// node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js -var require_dist_cjs37 = __commonJS({ - \\"node_modules/@aws-sdk/util-utf8-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.toUtf8 = exports2.fromUtf8 = void 0; - var util_buffer_from_1 = require_dist_cjs30(); - var fromUtf8 = (input) => { - const buf = (0, util_buffer_from_1.fromString)(input, \\"utf8\\"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); - }; - exports2.fromUtf8 = fromUtf8; - var toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString(\\"utf8\\"); - exports2.toUtf8 = toUtf8; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js -var require_endpoints = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/endpoints.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRegionInfoProvider = void 0; - var config_resolver_1 = require_dist_cjs7(); - var regionHash = { - \\"ap-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-east-1\\" - }, - \\"ap-northeast-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-northeast-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-northeast-1\\" - }, - \\"ap-northeast-2\\": { - variants: [ - { - hostname: \\"portal.sso.ap-northeast-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-northeast-2\\" - }, - \\"ap-northeast-3\\": { - variants: [ - { - hostname: \\"portal.sso.ap-northeast-3.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-northeast-3\\" - }, - \\"ap-south-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-south-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-south-1\\" - }, - \\"ap-southeast-1\\": { - variants: [ - { - hostname: \\"portal.sso.ap-southeast-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-southeast-1\\" - }, - \\"ap-southeast-2\\": { - variants: [ - { - hostname: \\"portal.sso.ap-southeast-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ap-southeast-2\\" - }, - \\"ca-central-1\\": { - variants: [ - { - hostname: \\"portal.sso.ca-central-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"ca-central-1\\" - }, - \\"eu-central-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-central-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-central-1\\" - }, - \\"eu-north-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-north-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-north-1\\" - }, - \\"eu-south-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-south-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-south-1\\" - }, - \\"eu-west-1\\": { - variants: [ - { - hostname: \\"portal.sso.eu-west-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-west-1\\" - }, - \\"eu-west-2\\": { - variants: [ - { - hostname: \\"portal.sso.eu-west-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-west-2\\" - }, - \\"eu-west-3\\": { - variants: [ - { - hostname: \\"portal.sso.eu-west-3.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"eu-west-3\\" - }, - \\"me-south-1\\": { - variants: [ - { - hostname: \\"portal.sso.me-south-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"me-south-1\\" - }, - \\"sa-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.sa-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"sa-east-1\\" - }, - \\"us-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.us-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-east-1\\" - }, - \\"us-east-2\\": { - variants: [ - { - hostname: \\"portal.sso.us-east-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-east-2\\" - }, - \\"us-gov-east-1\\": { - variants: [ - { - hostname: \\"portal.sso.us-gov-east-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-gov-east-1\\" - }, - \\"us-gov-west-1\\": { - variants: [ - { - hostname: \\"portal.sso.us-gov-west-1.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-gov-west-1\\" - }, - \\"us-west-2\\": { - variants: [ - { - hostname: \\"portal.sso.us-west-2.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-west-2\\" - } - }; - var partitionHash = { - aws: { - regions: [ - \\"af-south-1\\", - \\"ap-east-1\\", - \\"ap-northeast-1\\", - \\"ap-northeast-2\\", - \\"ap-northeast-3\\", - \\"ap-south-1\\", - \\"ap-southeast-1\\", - \\"ap-southeast-2\\", - \\"ap-southeast-3\\", - \\"ca-central-1\\", - \\"eu-central-1\\", - \\"eu-north-1\\", - \\"eu-south-1\\", - \\"eu-west-1\\", - \\"eu-west-2\\", - \\"eu-west-3\\", - \\"me-central-1\\", - \\"me-south-1\\", - \\"sa-east-1\\", - \\"us-east-1\\", - \\"us-east-2\\", - \\"us-west-1\\", - \\"us-west-2\\" - ], - regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"portal.sso-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"portal.sso.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-cn\\": { - regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], - regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.amazonaws.com.cn\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.amazonaws.com.cn\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"portal.sso-fips.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"portal.sso.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-iso\\": { - regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], - regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.c2s.ic.gov\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.c2s.ic.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-iso-b\\": { - regions: [\\"us-isob-east-1\\"], - regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.sc2s.sgov.gov\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.sc2s.sgov.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-us-gov\\": { - regions: [\\"us-gov-east-1\\", \\"us-gov-west-1\\"], - regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"portal.sso.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"portal.sso-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"portal.sso-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"portal.sso.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - } - }; - var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: \\"awsssoportal\\", - regionHash, - partitionHash - }); - exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var url_parser_1 = require_dist_cjs28(); - var endpoints_1 = require_endpoints(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return { - apiVersion: \\"2019-06-10\\", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"SSO\\", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js -var require_constants7 = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/constants.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.IMDS_REGION_PATH = exports2.DEFAULTS_MODE_OPTIONS = exports2.ENV_IMDS_DISABLED = exports2.AWS_DEFAULT_REGION_ENV = exports2.AWS_REGION_ENV = exports2.AWS_EXECUTION_ENV = void 0; - exports2.AWS_EXECUTION_ENV = \\"AWS_EXECUTION_ENV\\"; - exports2.AWS_REGION_ENV = \\"AWS_REGION\\"; - exports2.AWS_DEFAULT_REGION_ENV = \\"AWS_DEFAULT_REGION\\"; - exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; - exports2.DEFAULTS_MODE_OPTIONS = [\\"in-region\\", \\"cross-region\\", \\"mobile\\", \\"standard\\", \\"legacy\\"]; - exports2.IMDS_REGION_PATH = \\"/latest/meta-data/placement/region\\"; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js -var require_defaultsModeConfig = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; - var AWS_DEFAULTS_MODE_ENV = \\"AWS_DEFAULTS_MODE\\"; - var AWS_DEFAULTS_MODE_CONFIG = \\"defaults_mode\\"; - exports2.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: \\"legacy\\" - }; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js -var require_resolveDefaultsModeConfig = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveDefaultsModeConfig = void 0; - var config_resolver_1 = require_dist_cjs7(); - var credential_provider_imds_1 = require_dist_cjs29(); - var node_config_provider_1 = require_dist_cjs26(); - var property_provider_1 = require_dist_cjs16(); - var constants_1 = require_constants7(); - var defaultsModeConfig_1 = require_defaultsModeConfig(); - var resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => (0, property_provider_1.memoize)(async () => { - const mode = typeof defaultsMode === \\"function\\" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { - case \\"auto\\": - return resolveNodeDefaultsModeAuto(region); - case \\"in-region\\": - case \\"cross-region\\": - case \\"mobile\\": - case \\"standard\\": - case \\"legacy\\": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); - case void 0: - return Promise.resolve(\\"legacy\\"); - default: - throw new Error(\`Invalid parameter for \\"defaultsMode\\", expect \${constants_1.DEFAULTS_MODE_OPTIONS.join(\\", \\")}, got \${mode}\`); - } - }); - exports2.resolveDefaultsModeConfig = resolveDefaultsModeConfig; - var resolveNodeDefaultsModeAuto = async (clientRegion) => { - if (clientRegion) { - const resolvedRegion = typeof clientRegion === \\"function\\" ? await clientRegion() : clientRegion; - const inferredRegion = await inferPhysicalRegion(); - if (!inferredRegion) { - return \\"standard\\"; - } - if (resolvedRegion === inferredRegion) { - return \\"in-region\\"; - } else { - return \\"cross-region\\"; - } - } - return \\"standard\\"; - }; - var inferPhysicalRegion = async () => { - var _a; - if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { - return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; - } - if (!process.env[constants_1.ENV_IMDS_DISABLED]) { - try { - const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); - return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); - } catch (e) { - } - } - }; - } -}); - -// node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js -var require_dist_cjs38 = __commonJS({ - \\"node_modules/@aws-sdk/util-defaults-mode-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_resolveDefaultsModeConfig(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js -var require_runtimeConfig = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var tslib_1 = require_tslib(); - var package_json_1 = tslib_1.__importDefault(require_package3()); - var config_resolver_1 = require_dist_cjs7(); - var hash_node_1 = require_dist_cjs31(); - var middleware_retry_1 = require_dist_cjs15(); - var node_config_provider_1 = require_dist_cjs26(); - var node_http_handler_1 = require_dist_cjs33(); - var util_base64_node_1 = require_dist_cjs34(); - var util_body_length_node_1 = require_dist_cjs35(); - var util_user_agent_node_1 = require_dist_cjs36(); - var util_utf8_node_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared(); - var smithy_client_1 = require_dist_cjs3(); - var util_defaults_mode_node_1 = require_dist_cjs38(); - var smithy_client_2 = require_dist_cjs3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: \\"node\\", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_d = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _d !== void 0 ? _d : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_e = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _e !== void 0 ? _e : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_f = config === null || config === void 0 ? void 0 : config.region) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_g = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _g !== void 0 ? _g : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_h = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_j = config === null || config === void 0 ? void 0 : config.sha256) !== null && _j !== void 0 ? _j : hash_node_1.Hash.bind(null, \\"sha256\\"), - streamCollector: (_k = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _k !== void 0 ? _k : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_l = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _l !== void 0 ? _l : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.fromUtf8, - utf8Encoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.toUtf8 - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js -var require_SSOClient = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSOClient = void 0; - var config_resolver_1 = require_dist_cjs7(); - var middleware_content_length_1 = require_dist_cjs8(); - var middleware_host_header_1 = require_dist_cjs11(); - var middleware_logger_1 = require_dist_cjs12(); - var middleware_recursion_detection_1 = require_dist_cjs13(); - var middleware_retry_1 = require_dist_cjs15(); - var middleware_user_agent_1 = require_dist_cjs22(); - var smithy_client_1 = require_dist_cjs3(); - var runtimeConfig_1 = require_runtimeConfig(); - var SSOClient = class extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_4); - super(_config_5); - this.config = _config_5; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } - }; - exports2.SSOClient = SSOClient; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js -var require_SSO = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSO = void 0; - var GetRoleCredentialsCommand_1 = require_GetRoleCredentialsCommand(); - var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); - var ListAccountsCommand_1 = require_ListAccountsCommand(); - var LogoutCommand_1 = require_LogoutCommand(); - var SSOClient_1 = require_SSOClient(); - var SSO = class extends SSOClient_1.SSOClient { - getRoleCredentials(args, optionsOrCb, cb) { - const command = new GetRoleCredentialsCommand_1.GetRoleCredentialsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listAccountRoles(args, optionsOrCb, cb) { - const command = new ListAccountRolesCommand_1.ListAccountRolesCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listAccounts(args, optionsOrCb, cb) { - const command = new ListAccountsCommand_1.ListAccountsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - logout(args, optionsOrCb, cb) { - const command = new LogoutCommand_1.LogoutCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - }; - exports2.SSO = SSO; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js -var require_commands = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_GetRoleCredentialsCommand(), exports2); - tslib_1.__exportStar(require_ListAccountRolesCommand(), exports2); - tslib_1.__exportStar(require_ListAccountsCommand(), exports2); - tslib_1.__exportStar(require_LogoutCommand(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js -var require_models = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_models_03(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js -var require_Interfaces = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js -var require_ListAccountRolesPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListAccountRoles = void 0; - var ListAccountRolesCommand_1 = require_ListAccountRolesCommand(); - var SSO_1 = require_SSO(); - var SSOClient_1 = require_SSOClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listAccountRoles(input, ...args); - }; - async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input[\\"maxResults\\"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListAccountRoles = paginateListAccountRoles; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js -var require_ListAccountsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListAccounts = void 0; - var ListAccountsCommand_1 = require_ListAccountsCommand(); - var SSO_1 = require_SSO(); - var SSOClient_1 = require_SSOClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listAccounts(input, ...args); - }; - async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input[\\"maxResults\\"] = config.pageSize; - if (config.client instanceof SSO_1.SSO) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected SSO | SSOClient\\"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListAccounts = paginateListAccounts; - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js -var require_pagination = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_Interfaces(), exports2); - tslib_1.__exportStar(require_ListAccountRolesPaginator(), exports2); - tslib_1.__exportStar(require_ListAccountsPaginator(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sso/dist-cjs/index.js -var require_dist_cjs39 = __commonJS({ - \\"node_modules/@aws-sdk/client-sso/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.SSOServiceException = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_SSO(), exports2); - tslib_1.__exportStar(require_SSOClient(), exports2); - tslib_1.__exportStar(require_commands(), exports2); - tslib_1.__exportStar(require_models(), exports2); - tslib_1.__exportStar(require_pagination(), exports2); - var SSOServiceException_1 = require_SSOServiceException(); - Object.defineProperty(exports2, \\"SSOServiceException\\", { enumerable: true, get: function() { - return SSOServiceException_1.SSOServiceException; - } }); - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js -var require_resolveSSOCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveSSOCredentials = void 0; - var client_sso_1 = require_dist_cjs39(); - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var EXPIRE_WINDOW_MS = 15 * 60 * 1e3; - var SHOULD_FAIL_CREDENTIAL_CHAIN = false; - var resolveSSOCredentials = async ({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }) => { - let token; - const refreshMessage = \`To refresh this SSO session run aws sso login with the corresponding profile.\`; - try { - token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); - } catch (e) { - throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile is invalid. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - if (new Date(token.expiresAt).getTime() - Date.now() <= EXPIRE_WINDOW_MS) { - throw new property_provider_1.CredentialsProviderError(\`The SSO session associated with this profile has expired. \${refreshMessage}\`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken - })); - } catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError(\\"SSO returns an invalid temporary credential.\\", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; - }; - exports2.resolveSSOCredentials = resolveSSOCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js -var require_validateSsoProfile = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.validateSsoProfile = void 0; - var property_provider_1 = require_dist_cjs16(); - var validateSsoProfile = (profile) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; - if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { - throw new property_provider_1.CredentialsProviderError(\`Profile is configured with invalid SSO credentials. Required parameters \\"sso_account_id\\", \\"sso_region\\", \\"sso_role_name\\", \\"sso_start_url\\". Got \${Object.keys(profile).join(\\", \\")} -Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html\`, false); - } - return profile; - }; - exports2.validateSsoProfile = validateSsoProfile; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js -var require_fromSSO = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromSSO = void 0; - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var isSsoProfile_1 = require_isSsoProfile(); - var resolveSSOCredentials_1 = require_resolveSSOCredentials(); - var validateSsoProfile_1 = require_validateSsoProfile(); - var fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient } = init; - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName) { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - const profile = profiles[profileName]; - if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} is not configured with SSO credentials.\`); - } - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, validateSsoProfile_1.validateSsoProfile)(profile); - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient - }); - } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include \\"ssoStartUrl\\", \\"ssoAccountId\\", \\"ssoRegion\\", \\"ssoRoleName\\"'); - } else { - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient }); - } - }; - exports2.fromSSO = fromSSO; - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js -var require_types4 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js -var require_dist_cjs40 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromSSO(), exports2); - tslib_1.__exportStar(require_isSsoProfile(), exports2); - tslib_1.__exportStar(require_types4(), exports2); - tslib_1.__exportStar(require_validateSsoProfile(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js -var require_resolveSsoCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveSsoCredentials = exports2.isSsoProfile = void 0; - var credential_provider_sso_1 = require_dist_cjs40(); - var credential_provider_sso_2 = require_dist_cjs40(); - Object.defineProperty(exports2, \\"isSsoProfile\\", { enumerable: true, get: function() { - return credential_provider_sso_2.isSsoProfile; - } }); - var resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); - return (0, credential_provider_sso_1.fromSSO)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name - })(); - }; - exports2.resolveSsoCredentials = resolveSsoCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js -var require_resolveStaticCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveStaticCredentials = exports2.isStaticCredsProfile = void 0; - var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.aws_access_key_id === \\"string\\" && typeof arg.aws_secret_access_key === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.aws_session_token) > -1; - exports2.isStaticCredsProfile = isStaticCredsProfile; - var resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token - }); - exports2.resolveStaticCredentials = resolveStaticCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js -var require_fromWebToken = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromWebToken = void 0; - var property_provider_1 = require_dist_cjs16(); - var fromWebToken = (init) => () => { - const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity } = init; - if (!roleAssumerWithWebIdentity) { - throw new property_provider_1.CredentialsProviderError(\`Role Arn '\${roleArn}' needs to be assumed with web identity, but no role assumption callback was provided.\`, false); - } - return roleAssumerWithWebIdentity({ - RoleArn: roleArn, - RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : \`aws-sdk-js-session-\${Date.now()}\`, - WebIdentityToken: webIdentityToken, - ProviderId: providerId, - PolicyArns: policyArns, - Policy: policy, - DurationSeconds: durationSeconds - }); - }; - exports2.fromWebToken = fromWebToken; - } -}); - -// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js -var require_fromTokenFile = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromTokenFile = void 0; - var property_provider_1 = require_dist_cjs16(); - var fs_1 = require(\\"fs\\"); - var fromWebToken_1 = require_fromWebToken(); - var ENV_TOKEN_FILE = \\"AWS_WEB_IDENTITY_TOKEN_FILE\\"; - var ENV_ROLE_ARN = \\"AWS_ROLE_ARN\\"; - var ENV_ROLE_SESSION_NAME = \\"AWS_ROLE_SESSION_NAME\\"; - var fromTokenFile = (init = {}) => async () => { - return resolveTokenFile(init); - }; - exports2.fromTokenFile = fromTokenFile; - var resolveTokenFile = (init) => { - var _a, _b, _c; - const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; - const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; - const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; - if (!webIdentityTokenFile || !roleArn) { - throw new property_provider_1.CredentialsProviderError(\\"Web identity configuration not specified\\"); - } - return (0, fromWebToken_1.fromWebToken)({ - ...init, - webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: \\"ascii\\" }), - roleArn, - roleSessionName - })(); - }; - } -}); - -// node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js -var require_dist_cjs41 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromTokenFile(), exports2); - tslib_1.__exportStar(require_fromWebToken(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js -var require_resolveWebIdentityCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveWebIdentityCredentials = exports2.isWebIdentityProfile = void 0; - var credential_provider_web_identity_1 = require_dist_cjs41(); - var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === \\"object\\" && typeof arg.web_identity_token_file === \\"string\\" && typeof arg.role_arn === \\"string\\" && [\\"undefined\\", \\"string\\"].indexOf(typeof arg.role_session_name) > -1; - exports2.isWebIdentityProfile = isWebIdentityProfile; - var resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity - })(); - exports2.resolveWebIdentityCredentials = resolveWebIdentityCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js -var require_resolveProfileData = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveProfileData = void 0; - var property_provider_1 = require_dist_cjs16(); - var resolveAssumeRoleCredentials_1 = require_resolveAssumeRoleCredentials(); - var resolveSsoCredentials_1 = require_resolveSsoCredentials(); - var resolveStaticCredentials_1 = require_resolveStaticCredentials(); - var resolveWebIdentityCredentials_1 = require_resolveWebIdentityCredentials(); - var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { - return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); - } - if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { - return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); - } - if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { - return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); - } - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found or parsed in shared credentials file.\`); - }; - exports2.resolveProfileData = resolveProfileData; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js -var require_fromIni = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromIni = void 0; - var shared_ini_file_loader_1 = require_dist_cjs25(); - var resolveProfileData_1 = require_resolveProfileData(); - var fromIni = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); - }; - exports2.fromIni = fromIni; - } -}); - -// node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js -var require_dist_cjs42 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromIni(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js -var require_getValidatedProcessCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getValidatedProcessCredentials = void 0; - var getValidatedProcessCredentials = (profileName, data) => { - if (data.Version !== 1) { - throw Error(\`Profile \${profileName} credential_process did not return Version 1.\`); - } - if (data.AccessKeyId === void 0 || data.SecretAccessKey === void 0) { - throw Error(\`Profile \${profileName} credential_process returned invalid credentials.\`); - } - if (data.Expiration) { - const currentTime = new Date(); - const expireTime = new Date(data.Expiration); - if (expireTime < currentTime) { - throw Error(\`Profile \${profileName} credential_process returned expired credentials.\`); - } - } - return { - accessKeyId: data.AccessKeyId, - secretAccessKey: data.SecretAccessKey, - ...data.SessionToken && { sessionToken: data.SessionToken }, - ...data.Expiration && { expiration: new Date(data.Expiration) } - }; - }; - exports2.getValidatedProcessCredentials = getValidatedProcessCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js -var require_resolveProcessCredentials = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.resolveProcessCredentials = void 0; - var property_provider_1 = require_dist_cjs16(); - var child_process_1 = require(\\"child_process\\"); - var util_1 = require(\\"util\\"); - var getValidatedProcessCredentials_1 = require_getValidatedProcessCredentials(); - var resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile[\\"credential_process\\"]; - if (credentialProcess !== void 0) { - const execPromise = (0, util_1.promisify)(child_process_1.exec); - try { - const { stdout } = await execPromise(credentialProcess); - let data; - try { - data = JSON.parse(stdout.trim()); - } catch (_a) { - throw Error(\`Profile \${profileName} credential_process returned invalid JSON.\`); - } - return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); - } catch (error) { - throw new property_provider_1.CredentialsProviderError(error.message); - } - } else { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} did not contain credential_process.\`); - } - } else { - throw new property_provider_1.CredentialsProviderError(\`Profile \${profileName} could not be found in shared credentials file.\`); - } - }; - exports2.resolveProcessCredentials = resolveProcessCredentials; - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js -var require_fromProcess = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.fromProcess = void 0; - var shared_ini_file_loader_1 = require_dist_cjs25(); - var resolveProcessCredentials_1 = require_resolveProcessCredentials(); - var fromProcess = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); - }; - exports2.fromProcess = fromProcess; - } -}); - -// node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js -var require_dist_cjs43 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_fromProcess(), exports2); - } -}); - -// node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js -var require_remoteProvider = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.remoteProvider = exports2.ENV_IMDS_DISABLED = void 0; - var credential_provider_imds_1 = require_dist_cjs29(); - var property_provider_1 = require_dist_cjs16(); - exports2.ENV_IMDS_DISABLED = \\"AWS_EC2_METADATA_DISABLED\\"; - var remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return (0, credential_provider_imds_1.fromContainerMetadata)(init); - } - if (process.env[exports2.ENV_IMDS_DISABLED]) { - return async () => { - throw new property_provider_1.CredentialsProviderError(\\"EC2 Instance Metadata Service access disabled\\"); - }; - } - return (0, credential_provider_imds_1.fromInstanceMetadata)(init); - }; - exports2.remoteProvider = remoteProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js -var require_defaultProvider = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultProvider = void 0; - var credential_provider_env_1 = require_dist_cjs24(); - var credential_provider_ini_1 = require_dist_cjs42(); - var credential_provider_process_1 = require_dist_cjs43(); - var credential_provider_sso_1 = require_dist_cjs40(); - var credential_provider_web_identity_1 = require_dist_cjs41(); - var property_provider_1 = require_dist_cjs16(); - var shared_ini_file_loader_1 = require_dist_cjs25(); - var remoteProvider_1 = require_remoteProvider(); - var defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()], (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { - throw new property_provider_1.CredentialsProviderError(\\"Could not load credentials from any providers\\", false); - }), (credentials) => credentials.expiration !== void 0 && credentials.expiration.getTime() - Date.now() < 3e5, (credentials) => credentials.expiration !== void 0); - exports2.defaultProvider = defaultProvider; - } -}); - -// node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js -var require_dist_cjs44 = __commonJS({ - \\"node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_defaultProvider(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js -var require_endpoints2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/endpoints.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRegionInfoProvider = void 0; - var config_resolver_1 = require_dist_cjs7(); - var regionHash = { - \\"aws-global\\": { - variants: [ - { - hostname: \\"sts.amazonaws.com\\", - tags: [] - } - ], - signingRegion: \\"us-east-1\\" - }, - \\"us-east-1\\": { - variants: [ - { - hostname: \\"sts-fips.us-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-east-2\\": { - variants: [ - { - hostname: \\"sts-fips.us-east-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-east-1\\": { - variants: [ - { - hostname: \\"sts.us-gov-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-west-1\\": { - variants: [ - { - hostname: \\"sts.us-gov-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-1\\": { - variants: [ - { - hostname: \\"sts-fips.us-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-2\\": { - variants: [ - { - hostname: \\"sts-fips.us-west-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - } - }; - var partitionHash = { - aws: { - regions: [ - \\"af-south-1\\", - \\"ap-east-1\\", - \\"ap-northeast-1\\", - \\"ap-northeast-2\\", - \\"ap-northeast-3\\", - \\"ap-south-1\\", - \\"ap-southeast-1\\", - \\"ap-southeast-2\\", - \\"ap-southeast-3\\", - \\"aws-global\\", - \\"ca-central-1\\", - \\"eu-central-1\\", - \\"eu-north-1\\", - \\"eu-south-1\\", - \\"eu-west-1\\", - \\"eu-west-2\\", - \\"eu-west-3\\", - \\"me-central-1\\", - \\"me-south-1\\", - \\"sa-east-1\\", - \\"us-east-1\\", - \\"us-east-1-fips\\", - \\"us-east-2\\", - \\"us-east-2-fips\\", - \\"us-west-1\\", - \\"us-west-1-fips\\", - \\"us-west-2\\", - \\"us-west-2-fips\\" - ], - regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"sts-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"sts.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-cn\\": { - regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], - regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.amazonaws.com.cn\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.amazonaws.com.cn\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"sts-fips.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"sts.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-iso\\": { - regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], - regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.c2s.ic.gov\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.c2s.ic.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-iso-b\\": { - regions: [\\"us-isob-east-1\\"], - regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.sc2s.sgov.gov\\", - tags: [] - }, - { - hostname: \\"sts-fips.{region}.sc2s.sgov.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-us-gov\\": { - regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], - regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"sts.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"sts.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"sts-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"sts.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - } - }; - var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: \\"sts\\", - regionHash, - partitionHash - }); - exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var url_parser_1 = require_dist_cjs28(); - var endpoints_1 = require_endpoints2(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return { - apiVersion: \\"2011-06-15\\", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"STS\\", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js -var require_runtimeConfig2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var tslib_1 = require_tslib(); - var package_json_1 = tslib_1.__importDefault(require_package2()); - var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); - var config_resolver_1 = require_dist_cjs7(); - var credential_provider_node_1 = require_dist_cjs44(); - var hash_node_1 = require_dist_cjs31(); - var middleware_retry_1 = require_dist_cjs15(); - var node_config_provider_1 = require_dist_cjs26(); - var node_http_handler_1 = require_dist_cjs33(); - var util_base64_node_1 = require_dist_cjs34(); - var util_body_length_node_1 = require_dist_cjs35(); - var util_user_agent_node_1 = require_dist_cjs36(); - var util_utf8_node_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared2(); - var smithy_client_1 = require_dist_cjs3(); - var util_defaults_mode_node_1 = require_dist_cjs38(); - var smithy_client_2 = require_dist_cjs3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: \\"node\\", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, \\"sha256\\"), - streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8, - utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8 - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js -var require_STSClient = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STSClient = void 0; - var config_resolver_1 = require_dist_cjs7(); - var middleware_content_length_1 = require_dist_cjs8(); - var middleware_host_header_1 = require_dist_cjs11(); - var middleware_logger_1 = require_dist_cjs12(); - var middleware_recursion_detection_1 = require_dist_cjs13(); - var middleware_retry_1 = require_dist_cjs15(); - var middleware_sdk_sts_1 = require_dist_cjs23(); - var middleware_user_agent_1 = require_dist_cjs22(); - var smithy_client_1 = require_dist_cjs3(); - var runtimeConfig_1 = require_runtimeConfig2(); - var STSClient = class extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_4, { stsClientCtor: STSClient }); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - super(_config_6); - this.config = _config_6; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } - }; - exports2.STSClient = STSClient; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/STS.js -var require_STS = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/STS.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STS = void 0; - var AssumeRoleCommand_1 = require_AssumeRoleCommand(); - var AssumeRoleWithSAMLCommand_1 = require_AssumeRoleWithSAMLCommand(); - var AssumeRoleWithWebIdentityCommand_1 = require_AssumeRoleWithWebIdentityCommand(); - var DecodeAuthorizationMessageCommand_1 = require_DecodeAuthorizationMessageCommand(); - var GetAccessKeyInfoCommand_1 = require_GetAccessKeyInfoCommand(); - var GetCallerIdentityCommand_1 = require_GetCallerIdentityCommand(); - var GetFederationTokenCommand_1 = require_GetFederationTokenCommand(); - var GetSessionTokenCommand_1 = require_GetSessionTokenCommand(); - var STSClient_1 = require_STSClient(); - var STS = class extends STSClient_1.STSClient { - assumeRole(args, optionsOrCb, cb) { - const command = new AssumeRoleCommand_1.AssumeRoleCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithSAML(args, optionsOrCb, cb) { - const command = new AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - assumeRoleWithWebIdentity(args, optionsOrCb, cb) { - const command = new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - decodeAuthorizationMessage(args, optionsOrCb, cb) { - const command = new DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - getAccessKeyInfo(args, optionsOrCb, cb) { - const command = new GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - getCallerIdentity(args, optionsOrCb, cb) { - const command = new GetCallerIdentityCommand_1.GetCallerIdentityCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - getFederationToken(args, optionsOrCb, cb) { - const command = new GetFederationTokenCommand_1.GetFederationTokenCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - getSessionToken(args, optionsOrCb, cb) { - const command = new GetSessionTokenCommand_1.GetSessionTokenCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - }; - exports2.STS = STS; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js -var require_commands2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_AssumeRoleCommand(), exports2); - tslib_1.__exportStar(require_AssumeRoleWithSAMLCommand(), exports2); - tslib_1.__exportStar(require_AssumeRoleWithWebIdentityCommand(), exports2); - tslib_1.__exportStar(require_DecodeAuthorizationMessageCommand(), exports2); - tslib_1.__exportStar(require_GetAccessKeyInfoCommand(), exports2); - tslib_1.__exportStar(require_GetCallerIdentityCommand(), exports2); - tslib_1.__exportStar(require_GetFederationTokenCommand(), exports2); - tslib_1.__exportStar(require_GetSessionTokenCommand(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js -var require_defaultRoleAssumers = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.decorateDefaultCredentialProvider = exports2.getDefaultRoleAssumerWithWebIdentity = exports2.getDefaultRoleAssumer = void 0; - var defaultStsRoleAssumers_1 = require_defaultStsRoleAssumers(); - var STSClient_1 = require_STSClient(); - var getCustomizableStsClientCtor = (baseCtor, customizations) => { - if (!customizations) - return baseCtor; - else - return class CustomizableSTSClient extends baseCtor { - constructor(config) { - super(config); - for (const customization of customizations) { - this.middlewareStack.use(customization); - } - } - }; - }; - var getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); - exports2.getDefaultRoleAssumer = getDefaultRoleAssumer; - var getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); - exports2.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; - var decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports2.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports2.getDefaultRoleAssumerWithWebIdentity)(input), - ...input - }); - exports2.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js -var require_models2 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_models_02(), exports2); - } -}); - -// node_modules/@aws-sdk/client-sts/dist-cjs/index.js -var require_dist_cjs45 = __commonJS({ - \\"node_modules/@aws-sdk/client-sts/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.STSServiceException = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_STS(), exports2); - tslib_1.__exportStar(require_STSClient(), exports2); - tslib_1.__exportStar(require_commands2(), exports2); - tslib_1.__exportStar(require_defaultRoleAssumers(), exports2); - tslib_1.__exportStar(require_models2(), exports2); - var STSServiceException_1 = require_STSServiceException(); - Object.defineProperty(exports2, \\"STSServiceException\\", { enumerable: true, get: function() { - return STSServiceException_1.STSServiceException; - } }); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js -var require_endpoints3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/endpoints.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.defaultRegionInfoProvider = void 0; - var config_resolver_1 = require_dist_cjs7(); - var regionHash = { - \\"ca-central-1\\": { - variants: [ - { - hostname: \\"dynamodb-fips.ca-central-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - local: { - variants: [ - { - hostname: \\"localhost:8000\\", - tags: [] - } - ], - signingRegion: \\"us-east-1\\" - }, - \\"us-east-1\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-east-2\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-east-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-east-1\\": { - variants: [ - { - hostname: \\"dynamodb.us-gov-east-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-gov-west-1\\": { - variants: [ - { - hostname: \\"dynamodb.us-gov-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-1\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-west-1.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - }, - \\"us-west-2\\": { - variants: [ - { - hostname: \\"dynamodb-fips.us-west-2.amazonaws.com\\", - tags: [\\"fips\\"] - } - ] - } - }; - var partitionHash = { - aws: { - regions: [ - \\"af-south-1\\", - \\"ap-east-1\\", - \\"ap-northeast-1\\", - \\"ap-northeast-2\\", - \\"ap-northeast-3\\", - \\"ap-south-1\\", - \\"ap-southeast-1\\", - \\"ap-southeast-2\\", - \\"ap-southeast-3\\", - \\"ca-central-1\\", - \\"ca-central-1-fips\\", - \\"eu-central-1\\", - \\"eu-north-1\\", - \\"eu-south-1\\", - \\"eu-west-1\\", - \\"eu-west-2\\", - \\"eu-west-3\\", - \\"local\\", - \\"me-central-1\\", - \\"me-south-1\\", - \\"sa-east-1\\", - \\"us-east-1\\", - \\"us-east-1-fips\\", - \\"us-east-2\\", - \\"us-east-2-fips\\", - \\"us-west-1\\", - \\"us-west-1-fips\\", - \\"us-west-2\\", - \\"us-west-2-fips\\" - ], - regionRegex: \\"^(us|eu|ap|sa|ca|me|af)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"dynamodb-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"dynamodb.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-cn\\": { - regions: [\\"cn-north-1\\", \\"cn-northwest-1\\"], - regionRegex: \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.amazonaws.com.cn\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.amazonaws.com.cn\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"dynamodb-fips.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"dynamodb.{region}.api.amazonwebservices.com.cn\\", - tags: [\\"dualstack\\"] - } - ] - }, - \\"aws-iso\\": { - regions: [\\"us-iso-east-1\\", \\"us-iso-west-1\\"], - regionRegex: \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.c2s.ic.gov\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.c2s.ic.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-iso-b\\": { - regions: [\\"us-isob-east-1\\"], - regionRegex: \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.sc2s.sgov.gov\\", - tags: [] - }, - { - hostname: \\"dynamodb-fips.{region}.sc2s.sgov.gov\\", - tags: [\\"fips\\"] - } - ] - }, - \\"aws-us-gov\\": { - regions: [\\"us-gov-east-1\\", \\"us-gov-east-1-fips\\", \\"us-gov-west-1\\", \\"us-gov-west-1-fips\\"], - regionRegex: \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\", - variants: [ - { - hostname: \\"dynamodb.{region}.amazonaws.com\\", - tags: [] - }, - { - hostname: \\"dynamodb.{region}.amazonaws.com\\", - tags: [\\"fips\\"] - }, - { - hostname: \\"dynamodb-fips.{region}.api.aws\\", - tags: [\\"dualstack\\", \\"fips\\"] - }, - { - hostname: \\"dynamodb.{region}.api.aws\\", - tags: [\\"dualstack\\"] - } - ] - } - }; - var defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, { - ...options, - signingService: \\"dynamodb\\", - regionHash, - partitionHash - }); - exports2.defaultRegionInfoProvider = defaultRegionInfoProvider; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js -var require_runtimeConfig_shared3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.shared.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var url_parser_1 = require_dist_cjs28(); - var endpoints_1 = require_endpoints3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e; - return { - apiVersion: \\"2012-08-10\\", - disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, - logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {}, - regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, - serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : \\"DynamoDB\\", - urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js -var require_runtimeConfig3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/runtimeConfig.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.getRuntimeConfig = void 0; - var tslib_1 = require_tslib(); - var package_json_1 = tslib_1.__importDefault(require_package()); - var client_sts_1 = require_dist_cjs45(); - var config_resolver_1 = require_dist_cjs7(); - var credential_provider_node_1 = require_dist_cjs44(); - var hash_node_1 = require_dist_cjs31(); - var middleware_endpoint_discovery_1 = require_dist_cjs10(); - var middleware_retry_1 = require_dist_cjs15(); - var node_config_provider_1 = require_dist_cjs26(); - var node_http_handler_1 = require_dist_cjs33(); - var util_base64_node_1 = require_dist_cjs34(); - var util_body_length_node_1 = require_dist_cjs35(); - var util_user_agent_node_1 = require_dist_cjs36(); - var util_utf8_node_1 = require_dist_cjs37(); - var runtimeConfig_shared_1 = require_runtimeConfig_shared3(); - var smithy_client_1 = require_dist_cjs3(); - var util_defaults_mode_node_1 = require_dist_cjs38(); - var smithy_client_2 = require_dist_cjs3(); - var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: \\"node\\", - defaultsMode, - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, - bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - endpointDiscoveryEnabledProvider: (_f = config === null || config === void 0 ? void 0 : config.endpointDiscoveryEnabledProvider) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_endpoint_discovery_1.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS), - maxAttempts: (_g = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_h = config === null || config === void 0 ? void 0 : config.region) !== null && _h !== void 0 ? _h : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_j = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _j !== void 0 ? _j : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_k = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE - }), - sha256: (_l = config === null || config === void 0 ? void 0 : config.sha256) !== null && _l !== void 0 ? _l : hash_node_1.Hash.bind(null, \\"sha256\\"), - streamCollector: (_m = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _m !== void 0 ? _m : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_p = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _p !== void 0 ? _p : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - utf8Decoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.fromUtf8, - utf8Encoder: (_r = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _r !== void 0 ? _r : util_utf8_node_1.toUtf8 - }; - }; - exports2.getRuntimeConfig = getRuntimeConfig; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js -var require_DynamoDBClient = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDBClient.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDBClient = void 0; - var config_resolver_1 = require_dist_cjs7(); - var middleware_content_length_1 = require_dist_cjs8(); - var middleware_endpoint_discovery_1 = require_dist_cjs10(); - var middleware_host_header_1 = require_dist_cjs11(); - var middleware_logger_1 = require_dist_cjs12(); - var middleware_recursion_detection_1 = require_dist_cjs13(); - var middleware_retry_1 = require_dist_cjs15(); - var middleware_signing_1 = require_dist_cjs21(); - var middleware_user_agent_1 = require_dist_cjs22(); - var smithy_client_1 = require_dist_cjs3(); - var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); - var runtimeConfig_1 = require_runtimeConfig3(); - var DynamoDBClient = class extends smithy_client_1.Client { - constructor(configuration) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration); - const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0); - const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1); - const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2); - const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3); - const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = (0, middleware_endpoint_discovery_1.resolveEndpointDiscoveryConfig)(_config_6, { - endpointDiscoveryCommandCtor: DescribeEndpointsCommand_1.DescribeEndpointsCommand - }); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } - }; - exports2.DynamoDBClient = DynamoDBClient; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js -var require_DynamoDB = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/DynamoDB.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDB = void 0; - var BatchExecuteStatementCommand_1 = require_BatchExecuteStatementCommand(); - var BatchGetItemCommand_1 = require_BatchGetItemCommand(); - var BatchWriteItemCommand_1 = require_BatchWriteItemCommand(); - var CreateBackupCommand_1 = require_CreateBackupCommand(); - var CreateGlobalTableCommand_1 = require_CreateGlobalTableCommand(); - var CreateTableCommand_1 = require_CreateTableCommand(); - var DeleteBackupCommand_1 = require_DeleteBackupCommand(); - var DeleteItemCommand_1 = require_DeleteItemCommand(); - var DeleteTableCommand_1 = require_DeleteTableCommand(); - var DescribeBackupCommand_1 = require_DescribeBackupCommand(); - var DescribeContinuousBackupsCommand_1 = require_DescribeContinuousBackupsCommand(); - var DescribeContributorInsightsCommand_1 = require_DescribeContributorInsightsCommand(); - var DescribeEndpointsCommand_1 = require_DescribeEndpointsCommand(); - var DescribeExportCommand_1 = require_DescribeExportCommand(); - var DescribeGlobalTableCommand_1 = require_DescribeGlobalTableCommand(); - var DescribeGlobalTableSettingsCommand_1 = require_DescribeGlobalTableSettingsCommand(); - var DescribeImportCommand_1 = require_DescribeImportCommand(); - var DescribeKinesisStreamingDestinationCommand_1 = require_DescribeKinesisStreamingDestinationCommand(); - var DescribeLimitsCommand_1 = require_DescribeLimitsCommand(); - var DescribeTableCommand_1 = require_DescribeTableCommand(); - var DescribeTableReplicaAutoScalingCommand_1 = require_DescribeTableReplicaAutoScalingCommand(); - var DescribeTimeToLiveCommand_1 = require_DescribeTimeToLiveCommand(); - var DisableKinesisStreamingDestinationCommand_1 = require_DisableKinesisStreamingDestinationCommand(); - var EnableKinesisStreamingDestinationCommand_1 = require_EnableKinesisStreamingDestinationCommand(); - var ExecuteStatementCommand_1 = require_ExecuteStatementCommand(); - var ExecuteTransactionCommand_1 = require_ExecuteTransactionCommand(); - var ExportTableToPointInTimeCommand_1 = require_ExportTableToPointInTimeCommand(); - var GetItemCommand_1 = require_GetItemCommand(); - var ImportTableCommand_1 = require_ImportTableCommand(); - var ListBackupsCommand_1 = require_ListBackupsCommand(); - var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); - var ListExportsCommand_1 = require_ListExportsCommand(); - var ListGlobalTablesCommand_1 = require_ListGlobalTablesCommand(); - var ListImportsCommand_1 = require_ListImportsCommand(); - var ListTablesCommand_1 = require_ListTablesCommand(); - var ListTagsOfResourceCommand_1 = require_ListTagsOfResourceCommand(); - var PutItemCommand_1 = require_PutItemCommand(); - var QueryCommand_1 = require_QueryCommand(); - var RestoreTableFromBackupCommand_1 = require_RestoreTableFromBackupCommand(); - var RestoreTableToPointInTimeCommand_1 = require_RestoreTableToPointInTimeCommand(); - var ScanCommand_1 = require_ScanCommand(); - var TagResourceCommand_1 = require_TagResourceCommand(); - var TransactGetItemsCommand_1 = require_TransactGetItemsCommand(); - var TransactWriteItemsCommand_1 = require_TransactWriteItemsCommand(); - var UntagResourceCommand_1 = require_UntagResourceCommand(); - var UpdateContinuousBackupsCommand_1 = require_UpdateContinuousBackupsCommand(); - var UpdateContributorInsightsCommand_1 = require_UpdateContributorInsightsCommand(); - var UpdateGlobalTableCommand_1 = require_UpdateGlobalTableCommand(); - var UpdateGlobalTableSettingsCommand_1 = require_UpdateGlobalTableSettingsCommand(); - var UpdateItemCommand_1 = require_UpdateItemCommand(); - var UpdateTableCommand_1 = require_UpdateTableCommand(); - var UpdateTableReplicaAutoScalingCommand_1 = require_UpdateTableReplicaAutoScalingCommand(); - var UpdateTimeToLiveCommand_1 = require_UpdateTimeToLiveCommand(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var DynamoDB = class extends DynamoDBClient_1.DynamoDBClient { - batchExecuteStatement(args, optionsOrCb, cb) { - const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - batchGetItem(args, optionsOrCb, cb) { - const command = new BatchGetItemCommand_1.BatchGetItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - batchWriteItem(args, optionsOrCb, cb) { - const command = new BatchWriteItemCommand_1.BatchWriteItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - createBackup(args, optionsOrCb, cb) { - const command = new CreateBackupCommand_1.CreateBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - createGlobalTable(args, optionsOrCb, cb) { - const command = new CreateGlobalTableCommand_1.CreateGlobalTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - createTable(args, optionsOrCb, cb) { - const command = new CreateTableCommand_1.CreateTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - deleteBackup(args, optionsOrCb, cb) { - const command = new DeleteBackupCommand_1.DeleteBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - deleteItem(args, optionsOrCb, cb) { - const command = new DeleteItemCommand_1.DeleteItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - deleteTable(args, optionsOrCb, cb) { - const command = new DeleteTableCommand_1.DeleteTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeBackup(args, optionsOrCb, cb) { - const command = new DescribeBackupCommand_1.DescribeBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeContinuousBackups(args, optionsOrCb, cb) { - const command = new DescribeContinuousBackupsCommand_1.DescribeContinuousBackupsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeContributorInsights(args, optionsOrCb, cb) { - const command = new DescribeContributorInsightsCommand_1.DescribeContributorInsightsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeEndpoints(args, optionsOrCb, cb) { - const command = new DescribeEndpointsCommand_1.DescribeEndpointsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeExport(args, optionsOrCb, cb) { - const command = new DescribeExportCommand_1.DescribeExportCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeGlobalTable(args, optionsOrCb, cb) { - const command = new DescribeGlobalTableCommand_1.DescribeGlobalTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeGlobalTableSettings(args, optionsOrCb, cb) { - const command = new DescribeGlobalTableSettingsCommand_1.DescribeGlobalTableSettingsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeImport(args, optionsOrCb, cb) { - const command = new DescribeImportCommand_1.DescribeImportCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeKinesisStreamingDestination(args, optionsOrCb, cb) { - const command = new DescribeKinesisStreamingDestinationCommand_1.DescribeKinesisStreamingDestinationCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeLimits(args, optionsOrCb, cb) { - const command = new DescribeLimitsCommand_1.DescribeLimitsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeTable(args, optionsOrCb, cb) { - const command = new DescribeTableCommand_1.DescribeTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeTableReplicaAutoScaling(args, optionsOrCb, cb) { - const command = new DescribeTableReplicaAutoScalingCommand_1.DescribeTableReplicaAutoScalingCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - describeTimeToLive(args, optionsOrCb, cb) { - const command = new DescribeTimeToLiveCommand_1.DescribeTimeToLiveCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - disableKinesisStreamingDestination(args, optionsOrCb, cb) { - const command = new DisableKinesisStreamingDestinationCommand_1.DisableKinesisStreamingDestinationCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - enableKinesisStreamingDestination(args, optionsOrCb, cb) { - const command = new EnableKinesisStreamingDestinationCommand_1.EnableKinesisStreamingDestinationCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - executeStatement(args, optionsOrCb, cb) { - const command = new ExecuteStatementCommand_1.ExecuteStatementCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - executeTransaction(args, optionsOrCb, cb) { - const command = new ExecuteTransactionCommand_1.ExecuteTransactionCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - exportTableToPointInTime(args, optionsOrCb, cb) { - const command = new ExportTableToPointInTimeCommand_1.ExportTableToPointInTimeCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - getItem(args, optionsOrCb, cb) { - const command = new GetItemCommand_1.GetItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - importTable(args, optionsOrCb, cb) { - const command = new ImportTableCommand_1.ImportTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listBackups(args, optionsOrCb, cb) { - const command = new ListBackupsCommand_1.ListBackupsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listContributorInsights(args, optionsOrCb, cb) { - const command = new ListContributorInsightsCommand_1.ListContributorInsightsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listExports(args, optionsOrCb, cb) { - const command = new ListExportsCommand_1.ListExportsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listGlobalTables(args, optionsOrCb, cb) { - const command = new ListGlobalTablesCommand_1.ListGlobalTablesCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listImports(args, optionsOrCb, cb) { - const command = new ListImportsCommand_1.ListImportsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listTables(args, optionsOrCb, cb) { - const command = new ListTablesCommand_1.ListTablesCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - listTagsOfResource(args, optionsOrCb, cb) { - const command = new ListTagsOfResourceCommand_1.ListTagsOfResourceCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - putItem(args, optionsOrCb, cb) { - const command = new PutItemCommand_1.PutItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - query(args, optionsOrCb, cb) { - const command = new QueryCommand_1.QueryCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - restoreTableFromBackup(args, optionsOrCb, cb) { - const command = new RestoreTableFromBackupCommand_1.RestoreTableFromBackupCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - restoreTableToPointInTime(args, optionsOrCb, cb) { - const command = new RestoreTableToPointInTimeCommand_1.RestoreTableToPointInTimeCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - scan(args, optionsOrCb, cb) { - const command = new ScanCommand_1.ScanCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - tagResource(args, optionsOrCb, cb) { - const command = new TagResourceCommand_1.TagResourceCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - transactGetItems(args, optionsOrCb, cb) { - const command = new TransactGetItemsCommand_1.TransactGetItemsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - transactWriteItems(args, optionsOrCb, cb) { - const command = new TransactWriteItemsCommand_1.TransactWriteItemsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - untagResource(args, optionsOrCb, cb) { - const command = new UntagResourceCommand_1.UntagResourceCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateContinuousBackups(args, optionsOrCb, cb) { - const command = new UpdateContinuousBackupsCommand_1.UpdateContinuousBackupsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateContributorInsights(args, optionsOrCb, cb) { - const command = new UpdateContributorInsightsCommand_1.UpdateContributorInsightsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateGlobalTable(args, optionsOrCb, cb) { - const command = new UpdateGlobalTableCommand_1.UpdateGlobalTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateGlobalTableSettings(args, optionsOrCb, cb) { - const command = new UpdateGlobalTableSettingsCommand_1.UpdateGlobalTableSettingsCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateItem(args, optionsOrCb, cb) { - const command = new UpdateItemCommand_1.UpdateItemCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateTable(args, optionsOrCb, cb) { - const command = new UpdateTableCommand_1.UpdateTableCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateTableReplicaAutoScaling(args, optionsOrCb, cb) { - const command = new UpdateTableReplicaAutoScalingCommand_1.UpdateTableReplicaAutoScalingCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - updateTimeToLive(args, optionsOrCb, cb) { - const command = new UpdateTimeToLiveCommand_1.UpdateTimeToLiveCommand(args); - if (typeof optionsOrCb === \\"function\\") { - this.send(command, optionsOrCb); - } else if (typeof cb === \\"function\\") { - if (typeof optionsOrCb !== \\"object\\") - throw new Error(\`Expect http options but get \${typeof optionsOrCb}\`); - this.send(command, optionsOrCb || {}, cb); - } else { - return this.send(command, optionsOrCb); - } - } - }; - exports2.DynamoDB = DynamoDB; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js -var require_commands3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/commands/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_BatchExecuteStatementCommand(), exports2); - tslib_1.__exportStar(require_BatchGetItemCommand(), exports2); - tslib_1.__exportStar(require_BatchWriteItemCommand(), exports2); - tslib_1.__exportStar(require_CreateBackupCommand(), exports2); - tslib_1.__exportStar(require_CreateGlobalTableCommand(), exports2); - tslib_1.__exportStar(require_CreateTableCommand(), exports2); - tslib_1.__exportStar(require_DeleteBackupCommand(), exports2); - tslib_1.__exportStar(require_DeleteItemCommand(), exports2); - tslib_1.__exportStar(require_DeleteTableCommand(), exports2); - tslib_1.__exportStar(require_DescribeBackupCommand(), exports2); - tslib_1.__exportStar(require_DescribeContinuousBackupsCommand(), exports2); - tslib_1.__exportStar(require_DescribeContributorInsightsCommand(), exports2); - tslib_1.__exportStar(require_DescribeEndpointsCommand(), exports2); - tslib_1.__exportStar(require_DescribeExportCommand(), exports2); - tslib_1.__exportStar(require_DescribeGlobalTableCommand(), exports2); - tslib_1.__exportStar(require_DescribeGlobalTableSettingsCommand(), exports2); - tslib_1.__exportStar(require_DescribeImportCommand(), exports2); - tslib_1.__exportStar(require_DescribeKinesisStreamingDestinationCommand(), exports2); - tslib_1.__exportStar(require_DescribeLimitsCommand(), exports2); - tslib_1.__exportStar(require_DescribeTableCommand(), exports2); - tslib_1.__exportStar(require_DescribeTableReplicaAutoScalingCommand(), exports2); - tslib_1.__exportStar(require_DescribeTimeToLiveCommand(), exports2); - tslib_1.__exportStar(require_DisableKinesisStreamingDestinationCommand(), exports2); - tslib_1.__exportStar(require_EnableKinesisStreamingDestinationCommand(), exports2); - tslib_1.__exportStar(require_ExecuteStatementCommand(), exports2); - tslib_1.__exportStar(require_ExecuteTransactionCommand(), exports2); - tslib_1.__exportStar(require_ExportTableToPointInTimeCommand(), exports2); - tslib_1.__exportStar(require_GetItemCommand(), exports2); - tslib_1.__exportStar(require_ImportTableCommand(), exports2); - tslib_1.__exportStar(require_ListBackupsCommand(), exports2); - tslib_1.__exportStar(require_ListContributorInsightsCommand(), exports2); - tslib_1.__exportStar(require_ListExportsCommand(), exports2); - tslib_1.__exportStar(require_ListGlobalTablesCommand(), exports2); - tslib_1.__exportStar(require_ListImportsCommand(), exports2); - tslib_1.__exportStar(require_ListTablesCommand(), exports2); - tslib_1.__exportStar(require_ListTagsOfResourceCommand(), exports2); - tslib_1.__exportStar(require_PutItemCommand(), exports2); - tslib_1.__exportStar(require_QueryCommand(), exports2); - tslib_1.__exportStar(require_RestoreTableFromBackupCommand(), exports2); - tslib_1.__exportStar(require_RestoreTableToPointInTimeCommand(), exports2); - tslib_1.__exportStar(require_ScanCommand(), exports2); - tslib_1.__exportStar(require_TagResourceCommand(), exports2); - tslib_1.__exportStar(require_TransactGetItemsCommand(), exports2); - tslib_1.__exportStar(require_TransactWriteItemsCommand(), exports2); - tslib_1.__exportStar(require_UntagResourceCommand(), exports2); - tslib_1.__exportStar(require_UpdateContinuousBackupsCommand(), exports2); - tslib_1.__exportStar(require_UpdateContributorInsightsCommand(), exports2); - tslib_1.__exportStar(require_UpdateGlobalTableCommand(), exports2); - tslib_1.__exportStar(require_UpdateGlobalTableSettingsCommand(), exports2); - tslib_1.__exportStar(require_UpdateItemCommand(), exports2); - tslib_1.__exportStar(require_UpdateTableCommand(), exports2); - tslib_1.__exportStar(require_UpdateTableReplicaAutoScalingCommand(), exports2); - tslib_1.__exportStar(require_UpdateTimeToLiveCommand(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js -var require_models3 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/models/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_models_0(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js -var require_Interfaces2 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/Interfaces.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js -var require_ListContributorInsightsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListContributorInsightsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListContributorInsights = void 0; - var ListContributorInsightsCommand_1 = require_ListContributorInsightsCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListContributorInsightsCommand_1.ListContributorInsightsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listContributorInsights(input, ...args); - }; - async function* paginateListContributorInsights(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input[\\"MaxResults\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListContributorInsights = paginateListContributorInsights; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js -var require_ListExportsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListExportsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListExports = void 0; - var ListExportsCommand_1 = require_ListExportsCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listExports(input, ...args); - }; - async function* paginateListExports(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input[\\"MaxResults\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListExports = paginateListExports; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListImportsPaginator.js -var require_ListImportsPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListImportsPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListImports = void 0; - var ListImportsCommand_1 = require_ListImportsCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listImports(input, ...args); - }; - async function* paginateListImports(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input[\\"PageSize\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListImports = paginateListImports; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js -var require_ListTablesPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ListTablesPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateListTables = void 0; - var ListTablesCommand_1 = require_ListTablesCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.listTables(input, ...args); - }; - async function* paginateListTables(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.ExclusiveStartTableName = token; - input[\\"Limit\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); - } - yield page; - const prevToken = token; - token = page.LastEvaluatedTableName; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateListTables = paginateListTables; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js -var require_QueryPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/QueryPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateQuery = void 0; - var QueryCommand_1 = require_QueryCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new QueryCommand_1.QueryCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.query(input, ...args); - }; - async function* paginateQuery(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.ExclusiveStartKey = token; - input[\\"Limit\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); - } - yield page; - const prevToken = token; - token = page.LastEvaluatedKey; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateQuery = paginateQuery; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js -var require_ScanPaginator = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/ScanPaginator.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.paginateScan = void 0; - var ScanCommand_1 = require_ScanCommand(); - var DynamoDB_1 = require_DynamoDB(); - var DynamoDBClient_1 = require_DynamoDBClient(); - var makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ScanCommand_1.ScanCommand(input), ...args); - }; - var makePagedRequest = async (client, input, ...args) => { - return await client.scan(input, ...args); - }; - async function* paginateScan(config, input, ...additionalArguments) { - let token = config.startingToken || void 0; - let hasNext = true; - let page; - while (hasNext) { - input.ExclusiveStartKey = token; - input[\\"Limit\\"] = config.pageSize; - if (config.client instanceof DynamoDB_1.DynamoDB) { - page = await makePagedRequest(config.client, input, ...additionalArguments); - } else if (config.client instanceof DynamoDBClient_1.DynamoDBClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } else { - throw new Error(\\"Invalid client, expected DynamoDB | DynamoDBClient\\"); - } - yield page; - const prevToken = token; - token = page.LastEvaluatedKey; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return void 0; - } - exports2.paginateScan = paginateScan; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js -var require_pagination2 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/pagination/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_Interfaces2(), exports2); - tslib_1.__exportStar(require_ListContributorInsightsPaginator(), exports2); - tslib_1.__exportStar(require_ListExportsPaginator(), exports2); - tslib_1.__exportStar(require_ListImportsPaginator(), exports2); - tslib_1.__exportStar(require_ListTablesPaginator(), exports2); - tslib_1.__exportStar(require_QueryPaginator(), exports2); - tslib_1.__exportStar(require_ScanPaginator(), exports2); - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js -var require_sleep = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/sleep.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.sleep = void 0; - var sleep = (seconds) => { - return new Promise((resolve) => setTimeout(resolve, seconds * 1e3)); - }; - exports2.sleep = sleep; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js -var require_waiter = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/waiter.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.checkExceptions = exports2.WaiterState = exports2.waiterServiceDefaults = void 0; - exports2.waiterServiceDefaults = { - minDelay: 2, - maxDelay: 120 - }; - var WaiterState; - (function(WaiterState2) { - WaiterState2[\\"ABORTED\\"] = \\"ABORTED\\"; - WaiterState2[\\"FAILURE\\"] = \\"FAILURE\\"; - WaiterState2[\\"SUCCESS\\"] = \\"SUCCESS\\"; - WaiterState2[\\"RETRY\\"] = \\"RETRY\\"; - WaiterState2[\\"TIMEOUT\\"] = \\"TIMEOUT\\"; - })(WaiterState = exports2.WaiterState || (exports2.WaiterState = {})); - var checkExceptions = (result) => { - if (result.state === WaiterState.ABORTED) { - const abortError = new Error(\`\${JSON.stringify({ - ...result, - reason: \\"Request was aborted\\" - })}\`); - abortError.name = \\"AbortError\\"; - throw abortError; - } else if (result.state === WaiterState.TIMEOUT) { - const timeoutError = new Error(\`\${JSON.stringify({ - ...result, - reason: \\"Waiter has timed out\\" - })}\`); - timeoutError.name = \\"TimeoutError\\"; - throw timeoutError; - } else if (result.state !== WaiterState.SUCCESS) { - throw new Error(\`\${JSON.stringify({ result })}\`); - } - return result; - }; - exports2.checkExceptions = checkExceptions; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js -var require_poller = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/poller.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.runPolling = void 0; - var sleep_1 = require_sleep(); - var waiter_1 = require_waiter(); - var exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { - if (attempt > attemptCeiling) - return maxDelay; - const delay = minDelay * 2 ** (attempt - 1); - return randomInRange(minDelay, delay); - }; - var randomInRange = (min, max) => min + Math.random() * (max - min); - var runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { - var _a; - const { state } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state }; - } - let currentAttempt = 1; - const waitUntil = Date.now() + maxWaitTime * 1e3; - const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; - while (true) { - if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { - return { state: waiter_1.WaiterState.ABORTED }; - } - const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); - if (Date.now() + delay * 1e3 > waitUntil) { - return { state: waiter_1.WaiterState.TIMEOUT }; - } - await (0, sleep_1.sleep)(delay); - const { state: state2 } = await acceptorChecks(client, input); - if (state2 !== waiter_1.WaiterState.RETRY) { - return { state: state2 }; - } - currentAttempt += 1; - } - }; - exports2.runPolling = runPolling; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js -var require_validate2 = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/validate.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.validateWaiterOptions = void 0; - var validateWaiterOptions = (options) => { - if (options.maxWaitTime < 1) { - throw new Error(\`WaiterConfiguration.maxWaitTime must be greater than 0\`); - } else if (options.minDelay < 1) { - throw new Error(\`WaiterConfiguration.minDelay must be greater than 0\`); - } else if (options.maxDelay < 1) { - throw new Error(\`WaiterConfiguration.maxDelay must be greater than 0\`); - } else if (options.maxWaitTime <= options.minDelay) { - throw new Error(\`WaiterConfiguration.maxWaitTime [\${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); - } else if (options.maxDelay < options.minDelay) { - throw new Error(\`WaiterConfiguration.maxDelay [\${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [\${options.minDelay}] for this waiter\`); - } - }; - exports2.validateWaiterOptions = validateWaiterOptions; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js -var require_utils = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/utils/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_sleep(), exports2); - tslib_1.__exportStar(require_validate2(), exports2); - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js -var require_createWaiter = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/createWaiter.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.createWaiter = void 0; - var poller_1 = require_poller(); - var utils_1 = require_utils(); - var waiter_1 = require_waiter(); - var abortTimeout = async (abortSignal) => { - return new Promise((resolve) => { - abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); - }); - }; - var createWaiter = async (options, input, acceptorChecks) => { - const params = { - ...waiter_1.waiterServiceDefaults, - ...options - }; - (0, utils_1.validateWaiterOptions)(params); - const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; - if (options.abortController) { - exitConditions.push(abortTimeout(options.abortController.signal)); - } - if (options.abortSignal) { - exitConditions.push(abortTimeout(options.abortSignal)); - } - return Promise.race(exitConditions); - }; - exports2.createWaiter = createWaiter; - } -}); - -// node_modules/@aws-sdk/util-waiter/dist-cjs/index.js -var require_dist_cjs46 = __commonJS({ - \\"node_modules/@aws-sdk/util-waiter/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_createWaiter(), exports2); - tslib_1.__exportStar(require_waiter(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js -var require_waitForTableExists = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableExists.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.waitUntilTableExists = exports2.waitForTableExists = void 0; - var util_waiter_1 = require_dist_cjs46(); - var DescribeTableCommand_1 = require_DescribeTableCommand(); - var checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); - reason = result; - try { - const returnComparator = () => { - return result.Table.TableStatus; - }; - if (returnComparator() === \\"ACTIVE\\") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } catch (e) { - } - } catch (exception) { - reason = exception; - if (exception.name && exception.name == \\"ResourceNotFoundException\\") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; - }; - var waitForTableExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - }; - exports2.waitForTableExists = waitForTableExists; - var waitUntilTableExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); - }; - exports2.waitUntilTableExists = waitUntilTableExists; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js -var require_waitForTableNotExists = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/waitForTableNotExists.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.waitUntilTableNotExists = exports2.waitForTableNotExists = void 0; - var util_waiter_1 = require_dist_cjs46(); - var DescribeTableCommand_1 = require_DescribeTableCommand(); - var checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new DescribeTableCommand_1.DescribeTableCommand(input)); - reason = result; - } catch (exception) { - reason = exception; - if (exception.name && exception.name == \\"ResourceNotFoundException\\") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; - }; - var waitForTableNotExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - }; - exports2.waitForTableNotExists = waitForTableNotExists; - var waitUntilTableNotExists = async (params, input) => { - const serviceDefaults = { minDelay: 20, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); - }; - exports2.waitUntilTableNotExists = waitUntilTableNotExists; - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js -var require_waiters = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/waiters/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_waitForTableExists(), exports2); - tslib_1.__exportStar(require_waitForTableNotExists(), exports2); - } -}); - -// node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js -var require_dist_cjs47 = __commonJS({ - \\"node_modules/@aws-sdk/client-dynamodb/dist-cjs/index.js\\"(exports2) { - \\"use strict\\"; - Object.defineProperty(exports2, \\"__esModule\\", { value: true }); - exports2.DynamoDBServiceException = void 0; - var tslib_1 = require_tslib(); - tslib_1.__exportStar(require_DynamoDB(), exports2); - tslib_1.__exportStar(require_DynamoDBClient(), exports2); - tslib_1.__exportStar(require_commands3(), exports2); - tslib_1.__exportStar(require_models3(), exports2); - tslib_1.__exportStar(require_pagination2(), exports2); - tslib_1.__exportStar(require_waiters(), exports2); - var DynamoDBServiceException_1 = require_DynamoDBServiceException(); - Object.defineProperty(exports2, \\"DynamoDBServiceException\\", { enumerable: true, get: function() { - return DynamoDBServiceException_1.DynamoDBServiceException; - } }); - } -}); - -// -var v0; -var v2 = require_dist_cjs47(); -var v3 = v2.DynamoDBClient; -var v1 = v3; -v0 = () => { - const client = new v1({}); - return client.config.serviceId; -}; -exports.handler = v0; -" -`; - -exports[`instantiating the AWS SDK without esbuild 1`] = ` -"var v0; -const v2 = {}; -const v3 = {}; -v3.environment = \\"nodejs\\"; -var v4; -var v5 = v3; -var v6 = undefined; -const v8 = process; -var v7 = v8; -v4 = function engine() { if (v5.isBrowser() && typeof v6 !== \\"undefined\\") { - return undefined; +v17 = function down(){ +v14-=1; } -else { - var engine = \\"darwin\\" + \\"/\\" + \\"v16.14.2\\"; - if (v7.env.AWS_EXECUTION_ENV) { - engine += \\" exec-env/\\" + v7.env.AWS_EXECUTION_ENV; - } - return engine; -} }; -const v9 = {}; -v9.constructor = v4; -v4.prototype = v9; -v3.engine = v4; -var v10; -var v11 = require; -v10 = function userAgent() { var name = \\"nodejs\\"; var agent = \\"aws-sdk-\\" + name + \\"/\\" + v11(\\"./core\\").VERSION; if (name === \\"nodejs\\") - agent += \\" \\" + v5.engine(); return agent; }; -const v12 = {}; -v12.constructor = v10; -v10.prototype = v12; -v3.userAgent = v10; -var v13; -const v15 = encodeURIComponent; -var v14 = v15; -const v17 = escape; -var v16 = v17; -v13 = function uriEscape(string) { var output = v14(string); output = output.replace(/[^A-Za-z0-9_.~\\\\-%]+/g, v16); output = output.replace(/[*]/g, function (ch) { return \\"%\\" + ch.charCodeAt(0).toString(16).toUpperCase(); }); return output; }; +; const v18 = {}; -v18.constructor = v13; -v13.prototype = v18; -v3.uriEscape = v13; -var v19; -v19 = function uriEscapePath(string) { var parts = []; v5.arrayEach(string.split(\\"/\\"), function (part) { parts.push(v5.uriEscape(part)); }); return parts.join(\\"/\\"); }; -const v20 = {}; -v20.constructor = v19; -v19.prototype = v20; -v3.uriEscapePath = v19; -var v21; -const v22 = require(\\"url\\"); -v21 = function urlParse(url) { return v22.parse(url); }; -const v23 = {}; -v23.constructor = v21; -v21.prototype = v23; -v3.urlParse = v21; -var v24; -v24 = function urlFormat(url) { return v22.format(url); }; -const v25 = {}; -v25.constructor = v24; -v24.prototype = v25; -v3.urlFormat = v24; -var v26; -const v27 = require(\\"querystring\\"); -v26 = function queryStringParse(qs) { return v27.parse(qs); }; -const v28 = {}; -v28.constructor = v26; -v26.prototype = v28; -v3.queryStringParse = v26; -var v29; -const v31 = Atomics.constructor; -var v30 = v31; -const v33 = Array; -var v32 = v33; -v29 = function queryParamsToString(params) { var items = []; var escape = v5.uriEscape; var sortedKeys = v30.keys(params).sort(); v5.arrayEach(sortedKeys, function (name) { var value = params[name]; var ename = escape(name); var result = ename + \\"=\\"; if (v32.isArray(value)) { - var vals = []; - v5.arrayEach(value, function (item) { vals.push(escape(item)); }); - result = ename + \\"=\\" + vals.sort().join(\\"&\\" + ename + \\"=\\"); -} -else if (value !== undefined && value !== null) { - result = ename + \\"=\\" + escape(value); -} items.push(result); }); return items.join(\\"&\\"); }; -const v34 = {}; -v34.constructor = v29; -v29.prototype = v34; -v3.queryParamsToString = v29; -var v35; -v35 = function readFileSync(path) { if (v5.isBrowser()) - return null; return v11(\\"fs\\").readFileSync(path, \\"utf-8\\"); }; -const v36 = {}; -v36.constructor = v35; -v35.prototype = v36; -v3.readFileSync = v35; -const v37 = {}; -var v38; -const v40 = Error; -var v39 = v40; -const v41 = {}; -var v42; -const v44 = Uint8Array; -var v43 = v44; -v42 = function (data, encoding) { return (typeof v5.Buffer.from === \\"function\\" && v5.Buffer.from !== v43.from) ? v5.Buffer.from(data, encoding) : new v5.Buffer(data, encoding); }; -const v45 = {}; -v45.constructor = v42; -v42.prototype = v45; -v41.toBuffer = v42; -var v46; -v46 = function (size, fill, encoding) { if (typeof size !== \\"number\\") { - throw new v39(\\"size passed to alloc must be a number.\\"); -} if (typeof v5.Buffer.alloc === \\"function\\") { - return v5.Buffer.alloc(size, fill, encoding); -} -else { - var buf = new v5.Buffer(size); - if (fill !== undefined && typeof buf.fill === \\"function\\") { - buf.fill(fill, undefined, undefined, encoding); - } - return buf; -} }; -const v47 = {}; -v47.constructor = v46; -v46.prototype = v47; -v41.alloc = v46; -var v48; -v48 = function toStream(buffer) { if (!v5.Buffer.isBuffer(buffer)) - buffer = v41.toBuffer(buffer); var readable = new (v5.stream.Readable)(); var pos = 0; readable._read = function (size) { if (pos >= buffer.length) - return readable.push(null); var end = pos + size; if (end > buffer.length) - end = buffer.length; readable.push(buffer.slice(pos, end)); pos = end; }; return readable; }; -const v49 = {}; -v49.constructor = v48; -v48.prototype = v49; -v41.toStream = v48; -var v50; -v50 = function (buffers) { var length = 0, offset = 0, buffer = null, i; for (i = 0; i < buffers.length; i++) { - length += buffers[i].length; -} buffer = v41.alloc(length); for (i = 0; i < buffers.length; i++) { - buffers[i].copy(buffer, offset); - offset += buffers[i].length; -} return buffer; }; -const v51 = {}; -v51.constructor = v50; -v50.prototype = v51; -v41.concat = v50; -v38 = function encode64(string) { if (typeof string === \\"number\\") { - throw v5.error(new v39(\\"Cannot base64 encode number \\" + string)); -} if (string === null || typeof string === \\"undefined\\") { - return string; -} var buf = v41.toBuffer(string); return buf.toString(\\"base64\\"); }; -const v52 = {}; -v52.constructor = v38; -v38.prototype = v52; -v37.encode = v38; -var v53; -v53 = function decode64(string) { if (typeof string === \\"number\\") { - throw v5.error(new v39(\\"Cannot base64 decode number \\" + string)); -} if (string === null || typeof string === \\"undefined\\") { - return string; -} return v41.toBuffer(string, \\"base64\\"); }; -const v54 = {}; -v54.constructor = v53; -v53.prototype = v54; -v37.decode = v53; -v3.base64 = v37; -v3.buffer = v41; -const v55 = {}; -var v56; -v56 = function byteLength(string) { if (string === null || string === undefined) - return 0; if (typeof string === \\"string\\") - string = v41.toBuffer(string); if (typeof string.byteLength === \\"number\\") { - return string.byteLength; -} -else if (typeof string.length === \\"number\\") { - return string.length; -} -else if (typeof string.size === \\"number\\") { - return string.size; -} -else if (typeof string.path === \\"string\\") { - return v11(\\"fs\\").lstatSync(string.path).size; -} -else { - throw v5.error(new v39(\\"Cannot determine length of \\" + string), { object: string }); -} }; -const v57 = {}; -v57.constructor = v56; -v56.prototype = v57; -v55.byteLength = v56; -var v58; -v58 = function upperFirst(string) { return string[0].toUpperCase() + string.substr(1); }; -const v59 = {}; -v59.constructor = v58; -v58.prototype = v59; -v55.upperFirst = v58; -var v60; -v60 = function lowerFirst(string) { return string[0].toLowerCase() + string.substr(1); }; -const v61 = {}; -v61.constructor = v60; -v60.prototype = v61; -v55.lowerFirst = v60; -v3.string = v55; -const v62 = {}; -var v63; -v63 = function string(ini) { var currentSection, map = {}; v5.arrayEach(ini.split(/\\\\r?\\\\n/), function (line) { line = line.split(/(^|\\\\s)[;#]/)[0].trim(); var isSection = line[0] === \\"[\\" && line[line.length - 1] === \\"]\\"; if (isSection) { - currentSection = line.substring(1, line.length - 1); - if (currentSection === \\"__proto__\\" || currentSection.split(/\\\\s/)[1] === \\"__proto__\\") { - throw v5.error(new v39(\\"Cannot load profile name '\\" + currentSection + \\"' from shared ini file.\\")); - } -} -else if (currentSection) { - var indexOfEqualsSign = line.indexOf(\\"=\\"); - var start = 0; - var end = line.length - 1; - var isAssignment = indexOfEqualsSign !== -1 && indexOfEqualsSign !== start && indexOfEqualsSign !== end; - if (isAssignment) { - var name = line.substring(0, indexOfEqualsSign).trim(); - var value = line.substring(indexOfEqualsSign + 1).trim(); - map[currentSection] = map[currentSection] || {}; - map[currentSection][name] = value; - } -} }); return map; }; -const v64 = {}; -v64.constructor = v63; -v63.prototype = v64; -v62.parse = v63; -v3.ini = v62; -const v65 = {}; -var v66; -v66 = function () { }; -const v67 = {}; -v67.constructor = v66; -v66.prototype = v67; -v65.noop = v66; -var v68; -v68 = function (err) { if (err) - throw err; }; -const v69 = {}; -v69.constructor = v68; -v68.prototype = v69; -v65.callback = v68; -var v70; -const v71 = []; -v71.push(); -v70 = function makeAsync(fn, expectedArgs) { if (expectedArgs && expectedArgs <= fn.length) { - return fn; -} return function () { var args = v71.slice.call(arguments, 0); var callback = args.pop(); var result = fn.apply(null, args); callback(result); }; }; -const v72 = {}; -v72.constructor = v70; -v70.prototype = v72; -v65.makeAsync = v70; -v3.fn = v65; -const v73 = {}; -var v74; -var v75 = v2; -const v77 = Date; -var v76 = v77; -v74 = function getDate() { if (!v75) - AWS = v11(\\"./core\\"); if (0) { - return new v76(new v76().getTime() + 0); -} -else { - return new v76(); -} }; -const v78 = {}; -v78.constructor = v74; -v74.prototype = v78; -v73.getDate = v74; -var v79; -v79 = function iso8601(date) { if (date === undefined) { - date = v73.getDate(); -} return date.toISOString().replace(/\\\\.\\\\d{3}Z$/, \\"Z\\"); }; -const v80 = {}; -v80.constructor = v79; -v79.prototype = v80; -v73.iso8601 = v79; -var v81; -v81 = function rfc822(date) { if (date === undefined) { - date = v73.getDate(); -} return date.toUTCString(); }; -const v82 = {}; -v82.constructor = v81; -v81.prototype = v82; -v73.rfc822 = v81; -var v83; -v83 = function unixTimestamp(date) { if (date === undefined) { - date = v73.getDate(); -} return date.getTime() / 1000; }; -const v84 = {}; -v84.constructor = v83; -v83.prototype = v84; -v73.unixTimestamp = v83; -var v85; -v85 = function format(date) { if (typeof date === \\"number\\") { - return new v76(date * 1000); -} -else { - return new v76(date); -} }; -const v86 = {}; -v86.constructor = v85; -v85.prototype = v86; -v73.from = v85; -var v87; -v87 = function format(date, formatter) { if (!formatter) - formatter = \\"iso8601\\"; return v73[formatter](v73.from(date)); }; -const v88 = {}; -v88.constructor = v87; -v87.prototype = v88; -v73.format = v87; -var v89; -v89 = function parseTimestamp(value) { if (typeof value === \\"number\\") { - return new v76(value * 1000); -} -else if (value.match(/^\\\\d+$/)) { - return new v76(value * 1000); -} -else if (value.match(/^\\\\d{4}/)) { - return new v76(value); -} -else if (value.match(/^\\\\w{3},/)) { - return new v76(value); -} -else { - throw v5.error(new v39(\\"unhandled timestamp format: \\" + value), { code: \\"TimestampParserError\\" }); -} }; -const v90 = {}; -v90.constructor = v89; -v89.prototype = v90; -v73.parseTimestamp = v89; -v3.date = v73; -const v91 = {}; -const v92 = []; -v92.push(0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117); -v91.crc32Table = v92; -var v93; -v93 = function crc32(data) { var tbl = v92; var crc = 0 ^ -1; if (typeof data === \\"string\\") { - data = v41.toBuffer(data); -} for (var i = 0; i < data.length; i++) { - var code = data.readUInt8(i); - crc = (crc >>> 8) ^ tbl[(crc ^ code) && 255]; -} return (crc ^ -1) >>> 0; }; -const v94 = {}; -v94.constructor = v93; -v93.prototype = v94; -v91.crc32 = v93; -var v95; -const v96 = require(\\"crypto\\"); -v95 = function hmac(key, string, digest, fn) { if (!digest) - digest = \\"binary\\"; if (digest === \\"buffer\\") { - digest = undefined; -} if (!fn) - fn = \\"sha256\\"; if (typeof string === \\"string\\") - string = v41.toBuffer(string); return v96.createHmac(fn, key).update(string).digest(digest); }; -const v97 = {}; -v97.constructor = v95; -v95.prototype = v97; -v91.hmac = v95; -var v98; -v98 = function md5(data, digest, callback) { return v91.hash(\\"md5\\", data, digest, callback); }; -const v99 = {}; -v99.constructor = v98; -v98.prototype = v99; -v91.md5 = v98; -var v100; -v100 = function sha256(data, digest, callback) { return v91.hash(\\"sha256\\", data, digest, callback); }; -const v101 = {}; -v101.constructor = v100; -v100.prototype = v101; -v91.sha256 = v100; -var v102; -const v104 = ArrayBuffer; -var v103 = v104; -var v105 = undefined; -v102 = function (algorithm, data, digest, callback) { var hash = v91.createHash(algorithm); if (!digest) { - digest = \\"binary\\"; -} if (digest === \\"buffer\\") { - digest = undefined; -} if (typeof data === \\"string\\") - data = v41.toBuffer(data); var sliceFn = v5.arraySliceFn(data); var isBuffer = v5.Buffer.isBuffer(data); if (v5.isBrowser() && typeof v103 !== \\"undefined\\" && data && data.buffer instanceof v103) - isBuffer = true; if (callback && typeof data === \\"object\\" && typeof data.on === \\"function\\" && !isBuffer) { - data.on(\\"data\\", function (chunk) { hash.update(chunk); }); - data.on(\\"error\\", function (err) { callback(err); }); - data.on(\\"end\\", function () { callback(null, hash.digest(digest)); }); -} -else if (callback && sliceFn && !isBuffer && typeof v105 !== \\"undefined\\") { - var index = 0, size = 1024 * 512; - var reader = new v105(); - reader.onerror = function () { callback(new v39(\\"Failed to read data.\\")); }; - reader.onload = function () { var buf = new v5.Buffer(new v43(reader.result)); hash.update(buf); index += buf.length; reader._continueReading(); }; - reader._continueReading = function () { if (index >= data.size) { - callback(null, hash.digest(digest)); - return; - } var back = index + size; if (back > data.size) - back = data.size; reader.readAsArrayBuffer(sliceFn.call(data, index, back)); }; - reader._continueReading(); -} -else { - if (v5.isBrowser() && typeof data === \\"object\\" && !isBuffer) { - data = new v5.Buffer(new v43(data)); - } - var out = hash.update(data).digest(digest); - if (callback) - callback(null, out); - return out; -} }; -const v106 = {}; -v106.constructor = v102; -v102.prototype = v106; -v91.hash = v102; -var v107; -v107 = function toHex(data) { var out = []; for (var i = 0; i < data.length; i++) { - out.push((\\"0\\" + data.charCodeAt(i).toString(16)).substr(-2, 2)); -} return out.join(\\"\\"); }; -const v108 = {}; -v108.constructor = v107; -v107.prototype = v108; -v91.toHex = v107; -var v109; -v109 = function createHash(algorithm) { return v96.createHash(algorithm); }; -const v110 = {}; -v110.constructor = v109; -v109.prototype = v110; -v91.createHash = v109; -v91.lib = v96; -v3.crypto = v91; -const v111 = {}; -v3.abort = v111; -var v112; -const v113 = Atomics.constructor.prototype; -v112 = function each(object, iterFunction) { for (var key in object) { - if (v113.hasOwnProperty.call(object, key)) { - var ret = iterFunction.call(this, key, object[key]); - if (ret === v111) - break; - } -} }; -const v114 = {}; -v114.constructor = v112; -v112.prototype = v114; -v3.each = v112; -var v115; -const v117 = Number.parseInt; -var v116 = v117; -v115 = function arrayEach(array, iterFunction) { for (var idx in array) { - if (v113.hasOwnProperty.call(array, idx)) { - var ret = iterFunction.call(this, array[idx], v116(idx, 10)); - if (ret === v111) - break; - } -} }; -const v118 = {}; -v118.constructor = v115; -v115.prototype = v118; -v3.arrayEach = v115; -var v119; -v119 = function update(obj1, obj2) { v5.each(obj2, function iterator(key, item) { obj1[key] = item; }); return obj1; }; -const v120 = {}; -v120.constructor = v119; -v119.prototype = v120; -v3.update = v119; -var v121; -var v122 = v3; -v121 = function merge(obj1, obj2) { return v122.update(v5.copy(obj1), obj2); }; -const v123 = {}; -v123.constructor = v121; -v121.prototype = v123; -v3.merge = v121; -var v124; -v124 = function copy(object) { if (object === null || object === undefined) - return object; var dupe = {}; for (var key in object) { - dupe[key] = object[key]; -} return dupe; }; -const v125 = {}; -v125.constructor = v124; -v124.prototype = v125; -v3.copy = v124; -var v126; -v126 = function isEmpty(obj) { for (var prop in obj) { - if (v113.hasOwnProperty.call(obj, prop)) { - return false; - } -} return true; }; -const v127 = {}; -v127.constructor = v126; -v126.prototype = v127; -v3.isEmpty = v126; -var v128; -v128 = function arraySliceFn(obj) { var fn = obj.slice || obj.webkitSlice || obj.mozSlice; return typeof fn === \\"function\\" ? fn : null; }; -const v129 = {}; -v129.constructor = v128; -v128.prototype = v129; -v3.arraySliceFn = v128; -var v130; -v130 = function isType(obj, type) { if (typeof type === \\"function\\") - type = v5.typeName(type); return v113.toString.call(obj) === \\"[object \\" + type + \\"]\\"; }; -const v131 = {}; -v131.constructor = v130; -v130.prototype = v131; -v3.isType = v130; -var v132; -v132 = function typeName(type) { if (v113.hasOwnProperty.call(type, \\"name\\")) - return type.name; var str = type.toString(); var match = str.match(/^\\\\s*function (.+)\\\\(/); return match ? match[1] : str; }; -const v133 = {}; -v133.constructor = v132; -v132.prototype = v133; -v3.typeName = v132; -var v134; -const v136 = String; -var v135 = v136; -v134 = function error(err, options) { var originalError = null; if (typeof err.message === \\"string\\" && err.message !== \\"\\") { - if (typeof options === \\"string\\" || (options && options.message)) { - originalError = v5.copy(err); - originalError.message = err.message; - } -} err.message = err.message || null; if (typeof options === \\"string\\") { - err.message = options; -} -else if (typeof options === \\"object\\" && options !== null) { - v5.update(err, options); - if (options.message) - err.message = options.message; - if (options.code || options.name) - err.code = options.code || options.name; - if (options.stack) - err.stack = options.stack; -} if (typeof v30.defineProperty === \\"function\\") { - v30.defineProperty(err, \\"name\\", { writable: true, enumerable: false }); - v30.defineProperty(err, \\"message\\", { enumerable: true }); -} err.name = v135(options && options.name || err.name || err.code || \\"Error\\"); err.time = new v76(); if (originalError) - err.originalError = originalError; return err; }; -const v137 = {}; -v137.constructor = v134; -v134.prototype = v137; -v3.error = v134; -var v138; -v138 = function inherit(klass, features) { var newObject = null; if (features === undefined) { - features = klass; - klass = v30; - newObject = {}; -} -else { - var ctor = function ConstructorWrapper() { }; - ctor.prototype = klass.prototype; - newObject = new ctor(); -} if (features.constructor === v30) { - features.constructor = function () { if (klass !== v30) { - return klass.apply(this, arguments); - } }; -} features.constructor.prototype = newObject; v5.update(features.constructor.prototype, features); features.constructor.__super__ = klass; return features.constructor; }; -const v139 = {}; -v139.constructor = v138; -v138.prototype = v139; -v3.inherit = v138; -var v140; -v140 = function mixin() { var klass = arguments[0]; for (var i = 1; i < arguments.length; i++) { - for (var prop in arguments[i].prototype) { - var fn = arguments[i].prototype[prop]; - if (prop !== \\"constructor\\") { - klass.prototype[prop] = fn; - } - } -} return klass; }; -const v141 = {}; -v141.constructor = v140; -v140.prototype = v141; -v3.mixin = v140; -var v142; -v142 = function hideProperties(obj, props) { if (typeof v30.defineProperty !== \\"function\\") - return; v5.arrayEach(props, function (key) { v30.defineProperty(obj, key, { enumerable: false, writable: true, configurable: true }); }); }; -const v143 = {}; -v143.constructor = v142; -v142.prototype = v143; -v3.hideProperties = v142; -var v144; -v144 = function property(obj, name, value, enumerable, isValue) { var opts = { configurable: true, enumerable: enumerable !== undefined ? enumerable : true }; if (typeof value === \\"function\\" && !isValue) { - opts.get = value; -} -else { - opts.value = value; - opts.writable = true; -} v30.defineProperty(obj, name, opts); }; -const v145 = {}; -v145.constructor = v144; -v144.prototype = v145; -v3.property = v144; -var v146; -v146 = function memoizedProperty(obj, name, get, enumerable) { var cachedValue = null; v5.property(obj, name, function () { if (cachedValue === null) { - cachedValue = get(); -} return cachedValue; }, enumerable); }; -const v147 = {}; -v147.constructor = v146; -v146.prototype = v147; -v3.memoizedProperty = v146; -var v148; -v148 = function hoistPayloadMember(resp) { var req = resp.request; var operationName = req.operation; var operation = req.service.api.operations[operationName]; var output = operation.output; if (output.payload && !operation.hasEventOutput) { - var payloadMember = output.members[output.payload]; - var responsePayload = resp.data[output.payload]; - if (payloadMember.type === \\"structure\\") { - v5.each(responsePayload, function (key, value) { v5.property(resp.data, key, value, false); }); - } -} }; -const v149 = {}; -v149.constructor = v148; -v148.prototype = v149; -v3.hoistPayloadMember = v148; -var v150; -v150 = function computeSha256(body, done) { if (v5.isNode()) { - var Stream = v5.stream.Stream; - var fs = v11(\\"fs\\"); - if (typeof Stream === \\"function\\" && body instanceof Stream) { - if (typeof body.path === \\"string\\") { - var settings = {}; - if (typeof body.start === \\"number\\") { - settings.start = body.start; - } - if (typeof body.end === \\"number\\") { - settings.end = body.end; - } - body = fs.createReadStream(body.path, settings); - } - else { - return done(new v39(\\"Non-file stream objects are \\" + \\"not supported with SigV4\\")); - } - } -} v91.sha256(body, \\"hex\\", function (err, sha) { if (err) - done(err); -else - done(null, sha); }); }; -const v151 = {}; -v151.constructor = v150; -v150.prototype = v151; -v3.computeSha256 = v150; -var v152; -const v153 = {}; -var v154; -v154 = function Config(options) { if (options === undefined) - options = {}; options = this.extractCredentials(options); v3.each.call(this, this.keys, function (key, value) { this.set(key, options[key], value); }); }; -v154.prototype = v153; -v154.__super__ = v31; -v153.constructor = v154; -var v155; -var v156 = v40; -v155 = function getCredentials(callback) { var self = this; function finish(err) { callback(err, err ? null : self.credentials); } function credError(msg, err) { return new v3.error(err || new v156(), { code: \\"CredentialsError\\", message: msg, name: \\"CredentialsError\\" }); } function getAsyncCredentials() { self.credentials.get(function (err) { if (err) { - var msg = \\"Could not load credentials from \\" + self.credentials.constructor.name; - err = credError(msg, err); -} finish(err); }); } function getStaticCredentials() { var err = null; if (!self.credentials.accessKeyId || !self.credentials.secretAccessKey) { - err = credError(\\"Missing credentials\\"); -} finish(err); } if (self.credentials) { - if (typeof self.credentials.get === \\"function\\") { - getAsyncCredentials(); - } - else { - getStaticCredentials(); - } -} -else if (self.credentialProvider) { - self.credentialProvider.resolve(function (err, creds) { if (err) { - err = credError(\\"Could not load credentials from any providers\\", err); - } self.credentials = creds; finish(err); }); -} -else { - finish(credError(\\"No credentials to load\\")); -} }; -const v157 = {}; -v157.constructor = v155; -v155.prototype = v157; -v153.getCredentials = v155; -var v158; -var v159 = v2; -v158 = function update(options, allowUnknownKeys) { allowUnknownKeys = allowUnknownKeys || false; options = this.extractCredentials(options); v3.each.call(this, options, function (key, value) { if (allowUnknownKeys || v113.hasOwnProperty.call(this.keys, key) || v159.Service.hasService(key)) { - this.set(key, value); -} }); }; -const v160 = {}; -v160.constructor = v158; -v158.prototype = v160; -v153.update = v158; -var v161; -const v163 = JSON; -var v162 = v163; -v161 = function loadFromPath(path) { this.clear(); var options = v162.parse(v3.readFileSync(path)); var fileSystemCreds = new v159.FileSystemCredentials(path); var chain = new v159.CredentialProviderChain(); chain.providers.unshift(fileSystemCreds); chain.resolve(function (err, creds) { if (err) - throw err; -else - options.credentials = creds; }); this.constructor(options); return this; }; -const v164 = {}; -v164.constructor = v161; -v161.prototype = v164; -v153.loadFromPath = v161; -var v165; -v165 = function clear() { v3.each.call(this, this.keys, function (key) { delete this[key]; }); this.set(\\"credentials\\", undefined); this.set(\\"credentialProvider\\", undefined); }; -const v166 = {}; -v166.constructor = v165; -v165.prototype = v166; -v153.clear = v165; -var v167; -v167 = function set(property, value, defaultValue) { if (value === undefined) { - if (defaultValue === undefined) { - defaultValue = this.keys[property]; - } - if (typeof defaultValue === \\"function\\") { - this[property] = defaultValue.call(this); - } - else { - this[property] = defaultValue; - } -} -else if (property === \\"httpOptions\\" && this[property]) { - this[property] = v3.merge(this[property], value); -} -else { - this[property] = value; -} }; -const v168 = {}; -v168.constructor = v167; -v167.prototype = v168; -v153.set = v167; -const v169 = {}; -var v170; -var v171 = v2; -var v172 = v2; -v170 = function () { var credentials = null; new v171.CredentialProviderChain([function () { return new v171.EnvironmentCredentials(\\"AWS\\"); }, function () { return new v171.EnvironmentCredentials(\\"AMAZON\\"); }, function () { return new v172.SharedIniFileCredentials({ disableAssumeRole: true }); }]).resolve(function (err, creds) { if (!err) - credentials = creds; }); return credentials; }; -const v173 = {}; -v173.constructor = v170; -v170.prototype = v173; -v169.credentials = v170; -var v174; -v174 = function () { return new v171.CredentialProviderChain(); }; -const v175 = {}; -v175.constructor = v174; -v174.prototype = v175; -v169.credentialProvider = v174; -var v176; -var v178; -var v179 = v8; -const v180 = {}; -var v181; -v181 = function IniLoader() { this.resolvedProfiles = {}; }; -v181.prototype = v180; -v181.__super__ = v31; -v180.constructor = v181; -var v182; -v182 = function clearCachedFiles() { this.resolvedProfiles = {}; }; -const v183 = {}; -v183.constructor = v182; -v182.prototype = v183; -v180.clearCachedFiles = v182; -var v184; -var v185 = v31; -v184 = function loadFrom(options) { options = options || {}; var isConfig = options.isConfig === true; var filename = options.filename || this.getDefaultFilePath(isConfig); if (!this.resolvedProfiles[filename]) { - var fileContent = this.parseFile(filename, isConfig); - v185.defineProperty(this.resolvedProfiles, filename, { value: fileContent }); -} return this.resolvedProfiles[filename]; }; -const v186 = {}; -v186.constructor = v184; -v184.prototype = v186; -v180.loadFrom = v184; -var v187; -var v188 = v31; -v187 = function parseFile(filename, isConfig) { var content = v62.parse(v3.readFileSync(filename)); var tmpContent = {}; v188.keys(content).forEach(function (profileName) { var profileContent = content[profileName]; profileName = isConfig ? profileName.replace(/^profile\\\\s/, \\"\\") : profileName; v185.defineProperty(tmpContent, profileName, { value: profileContent, enumerable: true }); }); return tmpContent; }; -const v189 = {}; -v189.constructor = v187; -v187.prototype = v189; -v180.parseFile = v187; -var v190; -const v192 = require(\\"path\\"); -var v191 = v192; -v190 = function getDefaultFilePath(isConfig) { return v191.join(this.getHomeDir(), \\".aws\\", isConfig ? \\"config\\" : \\"credentials\\"); }; -const v193 = {}; -v193.constructor = v190; -v190.prototype = v193; -v180.getDefaultFilePath = v190; -var v194; -var v195 = v8; -const v197 = require(\\"os\\"); -var v196 = v197; -var v198 = v40; -v194 = function getHomeDir() { var env = v195.env; var home = env.HOME || env.USERPROFILE || (env.HOMEPATH ? ((env.HOMEDRIVE || \\"C:/\\") + env.HOMEPATH) : null); if (home) { - return home; -} if (typeof v196.homedir === \\"function\\") { - return v196.homedir(); -} throw v3.error(new v198(\\"Cannot load credentials, HOME path not set\\")); }; -const v199 = {}; -v199.constructor = v194; -v194.prototype = v199; -v180.getHomeDir = v194; -const v200 = Object.create(v180); -const v201 = {}; -v200.resolvedProfiles = v201; -v178 = function () { var env = v179.env; var region = env.AWS_REGION || env.AMAZON_REGION; if (env[\\"AWS_SDK_LOAD_CONFIG\\"]) { - var toCheck = [{ filename: env[\\"AWS_SHARED_CREDENTIALS_FILE\\"] }, { isConfig: true, filename: env[\\"AWS_CONFIG_FILE\\"] }]; - var iniLoader = v200; - while (!region && toCheck.length) { - var configFile = {}; - var fileInfo = toCheck.shift(); - try { - configFile = iniLoader.loadFrom(fileInfo); - } - catch (err) { - if (fileInfo.isConfig) - throw err; - } - var profile = configFile[env.AWS_PROFILE || \\"default\\"]; - region = profile && profile.region; - } -} return region; }; -const v202 = {}; -v202.constructor = v178; -v178.prototype = v202; -var v177 = v178; -var v204; -v204 = function getRealRegion(region) { return [\\"fips-aws-global\\", \\"aws-fips\\", \\"aws-global\\"].includes(region) ? \\"us-east-1\\" : [\\"fips-aws-us-gov-global\\", \\"aws-us-gov-global\\"].includes(region) ? \\"us-gov-west-1\\" : region.replace(/fips-(dkr-|prod-)?|-fips/, \\"\\"); }; -const v205 = {}; -v205.constructor = v204; -v204.prototype = v205; -var v203 = v204; -v176 = function () { var region = v177(); return region ? v203(region) : undefined; }; -const v206 = {}; -v206.constructor = v176; -v176.prototype = v206; -v169.region = v176; -var v207; -var v208 = v8; -const v210 = console; -var v209 = v210; -v207 = function () { return v208.env.AWSJS_DEBUG ? v209 : null; }; -const v211 = {}; -v211.constructor = v207; -v207.prototype = v211; -v169.logger = v207; -const v212 = {}; -v169.apiVersions = v212; -v169.apiVersion = null; -v169.endpoint = undefined; -const v213 = {}; -v213.timeout = 120000; -v169.httpOptions = v213; -v169.maxRetries = undefined; -v169.maxRedirects = 10; -v169.paramValidation = true; -v169.sslEnabled = true; -v169.s3ForcePathStyle = false; -v169.s3BucketEndpoint = false; -v169.s3DisableBodySigning = true; -v169.s3UsEast1RegionalEndpoint = \\"legacy\\"; -v169.s3UseArnRegion = undefined; -v169.computeChecksums = true; -v169.convertResponseTypes = true; -v169.correctClockSkew = false; -v169.customUserAgent = null; -v169.dynamoDbCrc32 = true; -v169.systemClockOffset = 0; -v169.signatureVersion = null; -v169.signatureCache = true; -const v214 = {}; -v169.retryDelayOptions = v214; -v169.useAccelerateEndpoint = false; -v169.clientSideMonitoring = false; -v169.endpointDiscoveryEnabled = undefined; -v169.endpointCacheSize = 1000; -v169.hostPrefixEnabled = true; -v169.stsRegionalEndpoints = \\"legacy\\"; -var v215; -var v216 = v178; -var v218; -v218 = function isFipsRegion(region) { return typeof region === \\"string\\" && (region.startsWith(\\"fips-\\") || region.endsWith(\\"-fips\\")); }; -const v219 = {}; -v219.constructor = v218; -v218.prototype = v219; -var v217 = v218; -var v220 = v3; -const v222 = {}; -var v223; -var v225; -v225 = function (value) { return value === \\"true\\" ? true : value === \\"false\\" ? false : undefined; }; -const v226 = {}; -v226.constructor = v225; -v225.prototype = v226; -var v224 = v225; -v223 = function (env) { return v224(env[\\"AWS_USE_FIPS_ENDPOINT\\"]); }; -const v227 = {}; -v227.constructor = v223; -v223.prototype = v227; -v222.environmentVariableSelector = v223; -var v228; -v228 = function (profile) { return v224(profile[\\"use_fips_endpoint\\"]); }; -const v229 = {}; -v229.constructor = v228; -v228.prototype = v229; -v222.configFileSelector = v228; -v222.default = false; -var v221 = v222; -v215 = function () { var region = v216(); return v217(region) ? true : v220.loadConfig(v221); }; -const v230 = {}; -v230.constructor = v215; -v215.prototype = v230; -v169.useFipsEndpoint = v215; -var v231; -const v233 = {}; -var v234; -v234 = function (env) { return v224(env[\\"AWS_USE_DUALSTACK_ENDPOINT\\"]); }; -const v235 = {}; -v235.constructor = v234; -v234.prototype = v235; -v233.environmentVariableSelector = v234; -var v236; -v236 = function (profile) { return v224(profile[\\"use_dualstack_endpoint\\"]); }; -const v237 = {}; -v237.constructor = v236; -v236.prototype = v237; -v233.configFileSelector = v236; -v233.default = false; -var v232 = v233; -v231 = function () { return v220.loadConfig(v232); }; -const v238 = {}; -v238.constructor = v231; -v231.prototype = v238; -v169.useDualstackEndpoint = v231; -v153.keys = v169; -var v239; -var v240 = v2; -v239 = function extractCredentials(options) { if (options.accessKeyId && options.secretAccessKey) { - options = v3.copy(options); - options.credentials = new v240.Credentials(options); -} return options; }; -const v241 = {}; -v241.constructor = v239; -v239.prototype = v241; -v153.extractCredentials = v239; -var v242; -const v244 = Promise; -var v243 = v244; -var v245 = v244; -var v246 = v2; -var v247 = undefined; -v242 = function setPromisesDependency(dep) { PromisesDependency = dep; if (dep === null && typeof v243 === \\"function\\") { - PromisesDependency = v245; -} var constructors = [v240.Request, v246.Credentials, v240.CredentialProviderChain]; if (v240.S3) { - constructors.push(v246.S3); - if (v246.S3.ManagedUpload) { - constructors.push(v246.S3.ManagedUpload); - } -} v3.addPromises(constructors, v247); }; -const v248 = {}; -v248.constructor = v242; -v242.prototype = v248; -v153.setPromisesDependency = v242; -var v249; -v249 = function getPromisesDependency() { return v247; }; -const v250 = {}; -v250.constructor = v249; -v249.prototype = v250; -v153.getPromisesDependency = v249; -const v251 = Object.create(v153); -const v252 = {}; -var v253; -v253 = function Credentials() { v3.hideProperties(this, [\\"secretAccessKey\\"]); this.expired = false; this.expireTime = null; this.refreshCallbacks = []; if (arguments.length === 1 && typeof arguments[0] === \\"object\\") { - var creds = arguments[0].credentials || arguments[0]; - this.accessKeyId = creds.accessKeyId; - this.secretAccessKey = creds.secretAccessKey; - this.sessionToken = creds.sessionToken; -} -else { - this.accessKeyId = arguments[0]; - this.secretAccessKey = arguments[1]; - this.sessionToken = arguments[2]; -} }; -v253.prototype = v252; -v253.__super__ = v31; -var v254; -v254 = function addPromisesToClass(PromiseDependency) { this.prototype.getPromise = v3.promisifyMethod(\\"get\\", PromiseDependency); this.prototype.refreshPromise = v3.promisifyMethod(\\"refresh\\", PromiseDependency); }; -const v255 = {}; -v255.constructor = v254; -v254.prototype = v255; -v253.addPromisesToClass = v254; -var v256; -v256 = function deletePromisesFromClass() { delete this.prototype.getPromise; delete this.prototype.refreshPromise; }; -const v257 = {}; -v257.constructor = v256; -v256.prototype = v257; -v253.deletePromisesFromClass = v256; -v252.constructor = v253; -v252.expiryWindow = 15; -var v258; -var v259 = v77; -v258 = function needsRefresh() { var currentTime = v73.getDate().getTime(); var adjustedTime = new v259(currentTime + this.expiryWindow * 1000); if (this.expireTime && adjustedTime > this.expireTime) { - return true; -} -else { - return this.expired || !this.accessKeyId || !this.secretAccessKey; -} }; -const v260 = {}; -v260.constructor = v258; -v258.prototype = v260; -v252.needsRefresh = v258; -var v261; -v261 = function get(callback) { var self = this; if (this.needsRefresh()) { - this.refresh(function (err) { if (!err) - self.expired = false; if (callback) - callback(err); }); -} -else if (callback) { - callback(); -} }; -const v262 = {}; -v262.constructor = v261; -v261.prototype = v262; -v252.get = v261; -var v263; -v263 = function refresh(callback) { this.expired = false; callback(); }; -const v264 = {}; -v264.constructor = v263; -v263.prototype = v264; -v252.refresh = v263; -var v265; -v265 = function coalesceRefresh(callback, sync) { var self = this; if (self.refreshCallbacks.push(callback) === 1) { - self.load(function onLoad(err) { v3.arrayEach(self.refreshCallbacks, function (callback) { if (sync) { - callback(err); - } - else { - v3.defer(function () { callback(err); }); - } }); self.refreshCallbacks.length = 0; }); -} }; -const v266 = {}; -v266.constructor = v265; -v265.prototype = v266; -v252.coalesceRefresh = v265; -var v267; -v267 = function load(callback) { callback(); }; -const v268 = {}; -v268.constructor = v267; -v267.prototype = v268; -v252.load = v267; -var v269; -var v270 = v244; -var v271 = \\"get\\"; -v269 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v270(function (resolve, reject) { args.push(function (err, data) { if (err) { - reject(err); -} -else { - resolve(data); -} }); self[v271].apply(self, args); }); }; -const v272 = {}; -v272.constructor = v269; -v269.prototype = v272; -v252.getPromise = v269; -var v273; -var v274 = v244; -var v275 = \\"refresh\\"; -v273 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v274(function (resolve, reject) { args.push(function (err, data) { if (err) { - reject(err); -} -else { - resolve(data); -} }); self[v275].apply(self, args); }); }; -const v276 = {}; -v276.constructor = v273; -v273.prototype = v276; -v252.refreshPromise = v273; -const v277 = Object.create(v252); -var v278; -var v279 = v2; -var v280 = v8; -const v282 = Boolean; -var v281 = v282; -var v283 = v282; -v278 = function SharedIniFileCredentials(options) { v279.Credentials.call(this); options = options || {}; this.filename = options.filename; this.profile = options.profile || v280.env.AWS_PROFILE || \\"default\\"; this.disableAssumeRole = v281(options.disableAssumeRole); this.preferStaticCredentials = v283(options.preferStaticCredentials); this.tokenCodeFn = options.tokenCodeFn || null; this.httpOptions = options.httpOptions || null; this.get(options.callback || v65.noop); }; -v278.prototype = v277; -v278.__super__ = v253; -v277.constructor = v278; -var v284; -var v285 = v200; -var v286 = v31; -var v287 = v40; -var v288 = v40; -v284 = function load(callback) { var self = this; try { - var profiles = v3.getProfilesFromSharedConfig(v285, this.filename); - var profile = profiles[this.profile] || {}; - if (v286.keys(profile).length === 0) { - throw v3.error(new v287(\\"Profile \\" + this.profile + \\" not found\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - var preferStaticCredentialsToRoleArn = v281(this.preferStaticCredentials && profile[\\"aws_access_key_id\\"] && profile[\\"aws_secret_access_key\\"]); - if (profile[\\"role_arn\\"] && !preferStaticCredentialsToRoleArn) { - this.loadRoleProfile(profiles, profile, function (err, data) { if (err) { - callback(err); - } - else { - self.expired = false; - self.accessKeyId = data.Credentials.AccessKeyId; - self.secretAccessKey = data.Credentials.SecretAccessKey; - self.sessionToken = data.Credentials.SessionToken; - self.expireTime = data.Credentials.Expiration; - callback(null); - } }); - return; - } - this.accessKeyId = profile[\\"aws_access_key_id\\"]; - this.secretAccessKey = profile[\\"aws_secret_access_key\\"]; - this.sessionToken = profile[\\"aws_session_token\\"]; - if (!this.accessKeyId || !this.secretAccessKey) { - throw v3.error(new v288(\\"Credentials not set for profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); - } - this.expired = false; - callback(null); -} -catch (err) { - callback(err); -} }; -const v289 = {}; -v289.constructor = v284; -v284.prototype = v289; -v277.load = v284; -var v290; -var v291 = v200; -v290 = function refresh(callback) { v291.clearCachedFiles(); this.coalesceRefresh(callback || v65.callback, this.disableAssumeRole); }; -const v292 = {}; -v292.constructor = v290; -v290.prototype = v292; -v277.refresh = v290; -var v293; -var v294 = \\"us-east-1\\"; -var v295 = v40; -var v297; -var v299; -var v300 = v40; -const v302 = {}; -v302.isFipsRegion = v218; -var v303; -v303 = function isGlobalRegion(region) { return typeof region === \\"string\\" && [\\"aws-global\\", \\"aws-us-gov-global\\"].includes(region); }; -const v304 = {}; -v304.constructor = v303; -v303.prototype = v304; -v302.isGlobalRegion = v303; -v302.getRealRegion = v204; -var v301 = v302; -var v305 = v302; -var v306 = v302; -var v307 = v31; -var v308 = 1; -v299 = function Service(config) { if (!this.loadServiceClass) { - throw v3.error(new v300(), \\"Service must be constructed with \`new' operator\\"); -} if (config) { - if (config.region) { - var region = config.region; - if (v301.isFipsRegion(region)) { - config.region = v305.getRealRegion(region); - config.useFipsEndpoint = true; - } - if (v306.isGlobalRegion(region)) { - config.region = v306.getRealRegion(region); - } - } - if (typeof config.useDualstack === \\"boolean\\" && typeof config.useDualstackEndpoint !== \\"boolean\\") { - config.useDualstackEndpoint = config.useDualstack; - } -} var ServiceClass = this.loadServiceClass(config || {}); if (ServiceClass) { - var originalConfig = v3.copy(config); - var svc = new ServiceClass(config); - v307.defineProperty(svc, \\"_originalConfig\\", { get: function () { return originalConfig; }, enumerable: false, configurable: true }); - svc._clientId = ++v308; - return svc; -} this.initialize(config); }; -const v309 = {}; -v309.constructor = v299; -var v310; -var v311 = v2; -const v313 = {}; -var v314; -var v316; -var v318; -v318 = function generateRegionPrefix(region) { if (!region) - return null; var parts = region.split(\\"-\\"); if (parts.length < 3) - return null; return parts.slice(0, parts.length - 2).join(\\"-\\") + \\"-*\\"; }; -const v319 = {}; -v319.constructor = v318; -v318.prototype = v319; -var v317 = v318; -v316 = function derivedKeys(service) { var region = service.config.region; var regionPrefix = v317(region); var endpointPrefix = service.api.endpointPrefix; return [[region, endpointPrefix], [regionPrefix, endpointPrefix], [region, \\"*\\"], [regionPrefix, \\"*\\"], [\\"*\\", endpointPrefix], [\\"*\\", \\"*\\"]].map(function (item) { return item[0] && item[1] ? item.join(\\"/\\") : null; }); }; -const v320 = {}; -v320.constructor = v316; -v316.prototype = v320; -var v315 = v316; -const v321 = {}; -const v322 = {}; -v322.endpoint = \\"{service}-fips.{region}.api.aws\\"; -v321[\\"*/*\\"] = v322; -const v323 = {}; -v323.endpoint = \\"{service}-fips.{region}.api.amazonwebservices.com.cn\\"; -v321[\\"cn-*/*\\"] = v323; -v321[\\"*/s3\\"] = \\"dualstackFipsLegacy\\"; -v321[\\"cn-*/s3\\"] = \\"dualstackFipsLegacyCn\\"; -v321[\\"*/s3-control\\"] = \\"dualstackFipsLegacy\\"; -v321[\\"cn-*/s3-control\\"] = \\"dualstackFipsLegacyCn\\"; -const v324 = {}; -v324[\\"*/*\\"] = \\"fipsStandard\\"; -v324[\\"us-gov-*/*\\"] = \\"fipsStandard\\"; -const v325 = {}; -v325.endpoint = \\"{service}-fips.{region}.c2s.ic.gov\\"; -v324[\\"us-iso-*/*\\"] = v325; -v324[\\"us-iso-*/dms\\"] = \\"usIso\\"; -const v326 = {}; -v326.endpoint = \\"{service}-fips.{region}.sc2s.sgov.gov\\"; -v324[\\"us-isob-*/*\\"] = v326; -v324[\\"us-isob-*/dms\\"] = \\"usIsob\\"; -const v327 = {}; -v327.endpoint = \\"{service}-fips.{region}.amazonaws.com.cn\\"; -v324[\\"cn-*/*\\"] = v327; -v324[\\"*/api.ecr\\"] = \\"fips.api.ecr\\"; -v324[\\"*/api.sagemaker\\"] = \\"fips.api.sagemaker\\"; -v324[\\"*/batch\\"] = \\"fipsDotPrefix\\"; -v324[\\"*/eks\\"] = \\"fipsDotPrefix\\"; -v324[\\"*/models.lex\\"] = \\"fips.models.lex\\"; -v324[\\"*/runtime.lex\\"] = \\"fips.runtime.lex\\"; -const v328 = {}; -v328.endpoint = \\"runtime-fips.sagemaker.{region}.amazonaws.com\\"; -v324[\\"*/runtime.sagemaker\\"] = v328; -v324[\\"*/iam\\"] = \\"fipsWithoutRegion\\"; -v324[\\"*/route53\\"] = \\"fipsWithoutRegion\\"; -v324[\\"*/transcribe\\"] = \\"fipsDotPrefix\\"; -v324[\\"*/waf\\"] = \\"fipsWithoutRegion\\"; -v324[\\"us-gov-*/transcribe\\"] = \\"fipsDotPrefix\\"; -v324[\\"us-gov-*/api.ecr\\"] = \\"fips.api.ecr\\"; -v324[\\"us-gov-*/api.sagemaker\\"] = \\"fips.api.sagemaker\\"; -v324[\\"us-gov-*/models.lex\\"] = \\"fips.models.lex\\"; -v324[\\"us-gov-*/runtime.lex\\"] = \\"fips.runtime.lex\\"; -v324[\\"us-gov-*/acm-pca\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/batch\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/config\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/eks\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/elasticmapreduce\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/identitystore\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/dynamodb\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/elasticloadbalancing\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/guardduty\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/monitoring\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/resource-groups\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/runtime.sagemaker\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/servicecatalog-appregistry\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/servicequotas\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/ssm\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/sts\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-*/support\\"] = \\"fipsWithServiceOnly\\"; -v324[\\"us-gov-west-1/states\\"] = \\"fipsWithServiceOnly\\"; -const v329 = {}; -v329.endpoint = \\"elasticfilesystem-fips.{region}.c2s.ic.gov\\"; -v324[\\"us-iso-east-1/elasticfilesystem\\"] = v329; -v324[\\"us-gov-west-1/organizations\\"] = \\"fipsWithServiceOnly\\"; -const v330 = {}; -v330.endpoint = \\"route53.us-gov.amazonaws.com\\"; -v324[\\"us-gov-west-1/route53\\"] = v330; -const v331 = {}; -const v332 = {}; -v332.endpoint = \\"{service}.{region}.api.aws\\"; -v331[\\"*/*\\"] = v332; -const v333 = {}; -v333.endpoint = \\"{service}.{region}.api.amazonwebservices.com.cn\\"; -v331[\\"cn-*/*\\"] = v333; -v331[\\"*/s3\\"] = \\"dualstackLegacy\\"; -v331[\\"cn-*/s3\\"] = \\"dualstackLegacyCn\\"; -v331[\\"*/s3-control\\"] = \\"dualstackLegacy\\"; -v331[\\"cn-*/s3-control\\"] = \\"dualstackLegacyCn\\"; -v331[\\"ap-south-1/ec2\\"] = \\"dualstackLegacyEc2\\"; -v331[\\"eu-west-1/ec2\\"] = \\"dualstackLegacyEc2\\"; -v331[\\"sa-east-1/ec2\\"] = \\"dualstackLegacyEc2\\"; -v331[\\"us-east-1/ec2\\"] = \\"dualstackLegacyEc2\\"; -v331[\\"us-east-2/ec2\\"] = \\"dualstackLegacyEc2\\"; -v331[\\"us-west-2/ec2\\"] = \\"dualstackLegacyEc2\\"; -const v334 = {}; -const v335 = {}; -v335.endpoint = \\"{service}.{region}.amazonaws.com\\"; -v335.signatureVersion = \\"v4\\"; -v334[\\"*/*\\"] = v335; -const v336 = {}; -v336.endpoint = \\"{service}.{region}.amazonaws.com.cn\\"; -v334[\\"cn-*/*\\"] = v336; -v334[\\"us-iso-*/*\\"] = \\"usIso\\"; -v334[\\"us-isob-*/*\\"] = \\"usIsob\\"; -v334[\\"*/budgets\\"] = \\"globalSSL\\"; -v334[\\"*/cloudfront\\"] = \\"globalSSL\\"; -v334[\\"*/sts\\"] = \\"globalSSL\\"; -const v337 = {}; -v337.endpoint = \\"{service}.amazonaws.com\\"; -v337.signatureVersion = \\"v2\\"; -v337.globalEndpoint = true; -v334[\\"*/importexport\\"] = v337; -v334[\\"*/route53\\"] = \\"globalSSL\\"; -const v338 = {}; -v338.endpoint = \\"{service}.amazonaws.com.cn\\"; -v338.globalEndpoint = true; -v338.signingRegion = \\"cn-northwest-1\\"; -v334[\\"cn-*/route53\\"] = v338; -v334[\\"us-gov-*/route53\\"] = \\"globalGovCloud\\"; -const v339 = {}; -v339.endpoint = \\"{service}.c2s.ic.gov\\"; -v339.globalEndpoint = true; -v339.signingRegion = \\"us-iso-east-1\\"; -v334[\\"us-iso-*/route53\\"] = v339; -const v340 = {}; -v340.endpoint = \\"{service}.sc2s.sgov.gov\\"; -v340.globalEndpoint = true; -v340.signingRegion = \\"us-isob-east-1\\"; -v334[\\"us-isob-*/route53\\"] = v340; -v334[\\"*/waf\\"] = \\"globalSSL\\"; -v334[\\"*/iam\\"] = \\"globalSSL\\"; -const v341 = {}; -v341.endpoint = \\"{service}.cn-north-1.amazonaws.com.cn\\"; -v341.globalEndpoint = true; -v341.signingRegion = \\"cn-north-1\\"; -v334[\\"cn-*/iam\\"] = v341; -v334[\\"us-gov-*/iam\\"] = \\"globalGovCloud\\"; -const v342 = {}; -v342.endpoint = \\"{service}.{region}.amazonaws.com\\"; -v334[\\"us-gov-*/sts\\"] = v342; -v334[\\"us-gov-west-1/s3\\"] = \\"s3signature\\"; -v334[\\"us-west-1/s3\\"] = \\"s3signature\\"; -v334[\\"us-west-2/s3\\"] = \\"s3signature\\"; -v334[\\"eu-west-1/s3\\"] = \\"s3signature\\"; -v334[\\"ap-southeast-1/s3\\"] = \\"s3signature\\"; -v334[\\"ap-southeast-2/s3\\"] = \\"s3signature\\"; -v334[\\"ap-northeast-1/s3\\"] = \\"s3signature\\"; -v334[\\"sa-east-1/s3\\"] = \\"s3signature\\"; -const v343 = {}; -v343.endpoint = \\"{service}.amazonaws.com\\"; -v343.signatureVersion = \\"s3\\"; -v334[\\"us-east-1/s3\\"] = v343; -const v344 = {}; -v344.endpoint = \\"{service}.amazonaws.com\\"; -v344.signatureVersion = \\"v2\\"; -v334[\\"us-east-1/sdb\\"] = v344; -const v345 = {}; -v345.endpoint = \\"{service}.{region}.amazonaws.com\\"; -v345.signatureVersion = \\"v2\\"; -v334[\\"*/sdb\\"] = v345; -const v346 = {}; -const v347 = {}; -v347.endpoint = \\"https://{service}.amazonaws.com\\"; -v347.globalEndpoint = true; -v347.signingRegion = \\"us-east-1\\"; -v346.globalSSL = v347; -const v348 = {}; -v348.endpoint = \\"{service}.us-gov.amazonaws.com\\"; -v348.globalEndpoint = true; -v348.signingRegion = \\"us-gov-west-1\\"; -v346.globalGovCloud = v348; -const v349 = {}; -v349.endpoint = \\"{service}.{region}.amazonaws.com\\"; -v349.signatureVersion = \\"s3\\"; -v346.s3signature = v349; -const v350 = {}; -v350.endpoint = \\"{service}.{region}.c2s.ic.gov\\"; -v346.usIso = v350; -const v351 = {}; -v351.endpoint = \\"{service}.{region}.sc2s.sgov.gov\\"; -v346.usIsob = v351; -const v352 = {}; -v352.endpoint = \\"{service}-fips.{region}.amazonaws.com\\"; -v346.fipsStandard = v352; -const v353 = {}; -v353.endpoint = \\"fips.{service}.{region}.amazonaws.com\\"; -v346.fipsDotPrefix = v353; -const v354 = {}; -v354.endpoint = \\"{service}-fips.amazonaws.com\\"; -v346.fipsWithoutRegion = v354; -const v355 = {}; -v355.endpoint = \\"ecr-fips.{region}.amazonaws.com\\"; -v346[\\"fips.api.ecr\\"] = v355; -const v356 = {}; -v356.endpoint = \\"api-fips.sagemaker.{region}.amazonaws.com\\"; -v346[\\"fips.api.sagemaker\\"] = v356; -const v357 = {}; -v357.endpoint = \\"models-fips.lex.{region}.amazonaws.com\\"; -v346[\\"fips.models.lex\\"] = v357; -const v358 = {}; -v358.endpoint = \\"runtime-fips.lex.{region}.amazonaws.com\\"; -v346[\\"fips.runtime.lex\\"] = v358; -const v359 = {}; -v359.endpoint = \\"{service}.{region}.amazonaws.com\\"; -v346.fipsWithServiceOnly = v359; -const v360 = {}; -v360.endpoint = \\"{service}.dualstack.{region}.amazonaws.com\\"; -v346.dualstackLegacy = v360; -const v361 = {}; -v361.endpoint = \\"{service}.dualstack.{region}.amazonaws.com.cn\\"; -v346.dualstackLegacyCn = v361; -const v362 = {}; -v362.endpoint = \\"{service}-fips.dualstack.{region}.amazonaws.com\\"; -v346.dualstackFipsLegacy = v362; -const v363 = {}; -v363.endpoint = \\"{service}-fips.dualstack.{region}.amazonaws.com.cn\\"; -v346.dualstackFipsLegacyCn = v363; -const v364 = {}; -v364.endpoint = \\"api.ec2.{region}.aws\\"; -v346.dualstackLegacyEc2 = v364; -var v366; -var v367 = v3; -v366 = function applyConfig(service, config) { v367.each(config, function (key, value) { if (key === \\"globalEndpoint\\") - return; if (service.config[key] === undefined || service.config[key] === null) { - service.config[key] = value; -} }); }; -const v368 = {}; -v368.constructor = v366; -v366.prototype = v368; -var v365 = v366; -v314 = function configureEndpoint(service) { var keys = v315(service); var useFipsEndpoint = service.config.useFipsEndpoint; var useDualstackEndpoint = service.config.useDualstackEndpoint; for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!key) - continue; - var rules = useFipsEndpoint ? useDualstackEndpoint ? v321 : v324 : useDualstackEndpoint ? v331 : v334; - if (v113.hasOwnProperty.call(rules, key)) { - var config = rules[key]; - if (typeof config === \\"string\\") { - config = v346[config]; - } - service.isGlobalEndpoint = !!config.globalEndpoint; - if (config.signingRegion) { - service.signingRegion = config.signingRegion; - } - if (!config.signatureVersion) - config.signatureVersion = \\"v4\\"; - v365(service, config); - return; - } -} }; -const v369 = {}; -v369.constructor = v314; -v314.prototype = v369; -v313.configureEndpoint = v314; -var v370; -var v371 = v31; -const v373 = RegExp; -var v372 = v373; -v370 = function getEndpointSuffix(region) { var regionRegexes = { \\"^(us|eu|ap|sa|ca|me)\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"amazonaws.com\\", \\"^cn\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"amazonaws.com.cn\\", \\"^us\\\\\\\\-gov\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"amazonaws.com\\", \\"^us\\\\\\\\-iso\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"c2s.ic.gov\\", \\"^us\\\\\\\\-isob\\\\\\\\-\\\\\\\\w+\\\\\\\\-\\\\\\\\d+$\\": \\"sc2s.sgov.gov\\" }; var defaultSuffix = \\"amazonaws.com\\"; var regexes = v371.keys(regionRegexes); for (var i = 0; i < regexes.length; i++) { - var regionPattern = v372(regexes[i]); - var dnsSuffix = regionRegexes[regexes[i]]; - if (regionPattern.test(region)) - return dnsSuffix; -} return defaultSuffix; }; -const v374 = {}; -v374.constructor = v370; -v370.prototype = v374; -v313.getEndpointSuffix = v370; -var v312 = v313; -var v375 = v2; -var v376 = v8; -v310 = function initialize(config) { var svcConfig = v251[this.serviceIdentifier]; this.config = new v311.Config(v251); if (svcConfig) - this.config.update(svcConfig, true); if (config) - this.config.update(config, true); this.validateService(); if (!this.config.endpoint) - v312.configureEndpoint(this); this.config.endpoint = this.endpointFromTemplate(this.config.endpoint); this.setEndpoint(this.config.endpoint); v375.SequentialExecutor.call(this); v375.Service.addDefaultMonitoringListeners(this); if ((this.config.clientSideMonitoring || undefined) && this.publisher) { - var publisher = this.publisher; - this.addNamedListener(\\"PUBLISH_API_CALL\\", \\"apiCall\\", function PUBLISH_API_CALL(event) { v376.nextTick(function () { publisher.eventHandler(event); }); }); - this.addNamedListener(\\"PUBLISH_API_ATTEMPT\\", \\"apiCallAttempt\\", function PUBLISH_API_ATTEMPT(event) { v376.nextTick(function () { publisher.eventHandler(event); }); }); -} }; -const v377 = {}; -v377.constructor = v310; -v310.prototype = v377; -v309.initialize = v310; -var v378; -v378 = function validateService() { }; -const v379 = {}; -v379.constructor = v378; -v378.prototype = v379; -v309.validateService = v378; -var v380; -var v381 = v2; -v380 = function loadServiceClass(serviceConfig) { var config = serviceConfig; if (!v3.isEmpty(this.api)) { - return null; -} -else if (config.apiConfig) { - return v381.Service.defineServiceApi(this.constructor, config.apiConfig); -} -else if (!this.constructor.services) { - return null; -} -else { - config = new v375.Config(v251); - config.update(serviceConfig, true); - var version = config.apiVersions[this.constructor.serviceIdentifier]; - version = version || config.apiVersion; - return this.getLatestServiceClass(version); -} }; -const v382 = {}; -v382.constructor = v380; -v380.prototype = v382; -v309.loadServiceClass = v380; -var v383; -v383 = function getLatestServiceClass(version) { version = this.getLatestServiceVersion(version); if (this.constructor.services[version] === null) { - v375.Service.defineServiceApi(this.constructor, version); -} return this.constructor.services[version]; }; -const v384 = {}; -v384.constructor = v383; -v383.prototype = v384; -v309.getLatestServiceClass = v383; -var v385; -var v386 = v77; -var v387 = v31; -var v388 = v31; -var v389 = v40; -v385 = function getLatestServiceVersion(version) { if (!this.constructor.services || this.constructor.services.length === 0) { - throw new v300(\\"No services defined on \\" + this.constructor.serviceIdentifier); -} if (!version) { - version = \\"latest\\"; -} -else if (v3.isType(version, v386)) { - version = v73.iso8601(version).split(\\"T\\")[0]; -} if (v387.hasOwnProperty(this.constructor.services, version)) { - return version; -} var keys = v388.keys(this.constructor.services).sort(); var selectedVersion = null; for (var i = keys.length - 1; i >= 0; i--) { - if (keys[i][keys[i].length - 1] !== \\"*\\") { - selectedVersion = keys[i]; - } - if (keys[i].substr(0, 10) <= version) { - return selectedVersion; - } -} throw new v389(\\"Could not find \\" + this.constructor.serviceIdentifier + \\" API to satisfy version constraint \`\\" + version + \\"'\\"); }; -const v390 = {}; -v390.constructor = v385; -v385.prototype = v390; -v309.getLatestServiceVersion = v385; -const v391 = {}; -v309.api = v391; -v309.defaultRetryCount = 3; -var v392; -v392 = function customizeRequests(callback) { if (!callback) { - this.customRequestHandler = null; -} -else if (typeof callback === \\"function\\") { - this.customRequestHandler = callback; -} -else { - throw new v389(\\"Invalid callback type '\\" + typeof callback + \\"' provided in customizeRequests\\"); -} }; -const v393 = {}; -v393.constructor = v392; -v392.prototype = v393; -v309.customizeRequests = v392; -var v394; -v394 = function makeRequest(operation, params, callback) { if (typeof params === \\"function\\") { - callback = params; - params = null; -} params = params || {}; if (this.config.params) { - var rules = this.api.operations[operation]; - if (rules) { - params = v3.copy(params); - v3.each(this.config.params, function (key, value) { if (rules.input.members[key]) { - if (params[key] === undefined || params[key] === null) { - params[key] = value; - } - } }); - } -} var request = new v311.Request(this, operation, params); this.addAllRequestListeners(request); this.attachMonitoringEmitter(request); if (callback) - request.send(callback); return request; }; -const v395 = {}; -v395.constructor = v394; -v394.prototype = v395; -v309.makeRequest = v394; -var v396; -v396 = function makeUnauthenticatedRequest(operation, params, callback) { if (typeof params === \\"function\\") { - callback = params; - params = {}; -} var request = this.makeRequest(operation, params).toUnauthenticated(); return callback ? request.send(callback) : request; }; -const v397 = {}; -v397.constructor = v396; -v396.prototype = v397; -v309.makeUnauthenticatedRequest = v396; -var v398; -v398 = function waitFor(state, params, callback) { var waiter = new v381.ResourceWaiter(this, state); return waiter.wait(params, callback); }; -const v399 = {}; -v399.constructor = v398; -v398.prototype = v399; -v309.waitFor = v398; -var v400; -const v401 = {}; -var v402; -v402 = function SequentialExecutor() { this._events = {}; }; -v402.prototype = v401; -v402.__super__ = v31; -v401.constructor = v402; -var v403; -v403 = function listeners(eventName) { return this._events[eventName] ? this._events[eventName].slice(0) : []; }; -const v404 = {}; -v404.constructor = v403; -v403.prototype = v404; -v401.listeners = v403; -var v405; -v405 = function on(eventName, listener, toHead) { if (this._events[eventName]) { - toHead ? this._events[eventName].unshift(listener) : this._events[eventName].push(listener); -} -else { - this._events[eventName] = [listener]; -} return this; }; -const v406 = {}; -v406.constructor = v405; -v405.prototype = v406; -v401.on = v405; -var v407; -v407 = function onAsync(eventName, listener, toHead) { listener._isAsync = true; return this.on(eventName, listener, toHead); }; -const v408 = {}; -v408.constructor = v407; -v407.prototype = v408; -v401.onAsync = v407; -var v409; -v409 = function removeListener(eventName, listener) { var listeners = this._events[eventName]; if (listeners) { - var length = listeners.length; - var position = -1; - for (var i = 0; i < length; ++i) { - if (listeners[i] === listener) { - position = i; - } - } - if (position > -1) { - listeners.splice(position, 1); - } -} return this; }; -const v410 = {}; -v410.constructor = v409; -v409.prototype = v410; -v401.removeListener = v409; -var v411; -v411 = function removeAllListeners(eventName) { if (eventName) { - delete this._events[eventName]; -} -else { - this._events = {}; -} return this; }; -const v412 = {}; -v412.constructor = v411; -v411.prototype = v412; -v401.removeAllListeners = v411; -var v413; -v413 = function emit(eventName, eventArgs, doneCallback) { if (!doneCallback) - doneCallback = function () { }; var listeners = this.listeners(eventName); var count = listeners.length; this.callListeners(listeners, eventArgs, doneCallback); return count > 0; }; -const v414 = {}; -v414.constructor = v413; -v413.prototype = v414; -v401.emit = v413; -var v415; -var v416 = v40; -v415 = function callListeners(listeners, args, doneCallback, prevError) { var self = this; var error = prevError || null; function callNextListener(err) { if (err) { - error = v3.error(error || new v416(), err); - if (self._haltHandlersOnError) { - return doneCallback.call(self, error); - } -} self.callListeners(listeners, args, doneCallback, error); } while (listeners.length > 0) { - var listener = listeners.shift(); - if (listener._isAsync) { - listener.apply(self, args.concat([callNextListener])); - return; - } - else { - try { - listener.apply(self, args); - } - catch (err) { - error = v3.error(error || new v416(), err); - } - if (error && self._haltHandlersOnError) { - doneCallback.call(self, error); - return; - } - } -} doneCallback.call(self, error); }; -const v417 = {}; -v417.constructor = v415; -v415.prototype = v417; -v401.callListeners = v415; -var v418; -v418 = function addListeners(listeners) { var self = this; if (listeners._events) - listeners = listeners._events; v3.each(listeners, function (event, callbacks) { if (typeof callbacks === \\"function\\") - callbacks = [callbacks]; v3.arrayEach(callbacks, function (callback) { self.on(event, callback); }); }); return self; }; -const v419 = {}; -v419.constructor = v418; -v418.prototype = v419; -v401.addListeners = v418; -var v420; -v420 = function addNamedListener(name, eventName, callback, toHead) { this[name] = callback; this.addListener(eventName, callback, toHead); return this; }; -const v421 = {}; -v421.constructor = v420; -v420.prototype = v421; -v401.addNamedListener = v420; -var v422; -v422 = function addNamedAsyncListener(name, eventName, callback, toHead) { callback._isAsync = true; return this.addNamedListener(name, eventName, callback, toHead); }; -const v423 = {}; -v423.constructor = v422; -v422.prototype = v423; -v401.addNamedAsyncListener = v422; -var v424; -v424 = function addNamedListeners(callback) { var self = this; callback(function () { self.addNamedListener.apply(self, arguments); }, function () { self.addNamedAsyncListener.apply(self, arguments); }); return this; }; -const v425 = {}; -v425.constructor = v424; -v424.prototype = v425; -v401.addNamedListeners = v424; -v401.addListener = v405; -const v426 = Object.create(v401); -const v427 = {}; -v426._events = v427; -const v428 = Object.create(v401); -const v429 = {}; -const v430 = []; -var v431; -v431 = function VALIDATE_CREDENTIALS(req, done) { if (!req.service.api.signatureVersion && !req.service.config.signatureVersion) - return done(); req.service.config.getCredentials(function (err) { if (err) { - req.response.error = v3.error(err, { code: \\"CredentialsError\\", message: \\"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1\\" }); -} done(); }); }; -const v432 = {}; -v432.constructor = v431; -v431.prototype = v432; -v431._isAsync = true; -var v433; -var v434 = v373; -var v435 = v40; -var v436 = v40; -v433 = function VALIDATE_REGION(req) { if (!req.service.isGlobalEndpoint) { - var dnsHostRegex = new v434(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!req.service.config.region) { - req.response.error = v3.error(new v435(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); - } - else if (!dnsHostRegex.test(req.service.config.region)) { - req.response.error = v3.error(new v436(), { code: \\"ConfigError\\", message: \\"Invalid region in config\\" }); - } -} }; -const v437 = {}; -v437.constructor = v433; -v433.prototype = v437; -var v438; -const v439 = {}; -var v440; -v440 = function uuidV4() { return v11(\\"uuid\\").v4(); }; -const v441 = {}; -v441.constructor = v440; -v440.prototype = v441; -v439.v4 = v440; -v438 = function BUILD_IDEMPOTENCY_TOKENS(req) { if (!req.service.api.operations) { - return; -} var operation = req.service.api.operations[req.operation]; if (!operation) { - return; -} var idempotentMembers = operation.idempotentMembers; if (!idempotentMembers.length) { - return; -} var params = v3.copy(req.params); for (var i = 0, iLen = idempotentMembers.length; i < iLen; i++) { - if (!params[idempotentMembers[i]]) { - params[idempotentMembers[i]] = v439.v4(); - } -} req.params = params; }; -const v442 = {}; -v442.constructor = v438; -v438.prototype = v442; -var v443; -var v444 = v2; -v443 = function VALIDATE_PARAMETERS(req) { if (!req.service.api.operations) { - return; -} var rules = req.service.api.operations[req.operation].input; var validation = req.service.config.paramValidation; new v444.ParamValidator(validation).validate(rules, req.params); }; -const v445 = {}; -v445.constructor = v443; -v443.prototype = v445; -v430.push(v431, v433, v438, v443); -v429.validate = v430; -const v446 = []; -var v447; -v447 = function COMPUTE_CHECKSUM(req) { if (!req.service.api.operations) { - return; -} var operation = req.service.api.operations[req.operation]; if (!operation) { - return; -} var body = req.httpRequest.body; var isNonStreamingPayload = body && (v3.Buffer.isBuffer(body) || typeof body === \\"string\\"); var headers = req.httpRequest.headers; if (operation.httpChecksumRequired && req.service.config.computeChecksums && isNonStreamingPayload && !headers[\\"Content-MD5\\"]) { - var md5 = v91.md5(body, \\"base64\\"); - headers[\\"Content-MD5\\"] = md5; -} }; -const v448 = {}; -v448.constructor = v447; -v447.prototype = v448; -var v449; -const v450 = {}; -var v451; -v451 = function RequestSigner(request) { this.request = request; }; -const v452 = {}; -v452.constructor = v451; -var v453; -v453 = function setServiceClientId(id) { this.serviceClientId = id; }; -const v454 = {}; -v454.constructor = v453; -v453.prototype = v454; -v452.setServiceClientId = v453; -var v455; -v455 = function getServiceClientId() { return this.serviceClientId; }; -const v456 = {}; -v456.constructor = v455; -v455.prototype = v456; -v452.getServiceClientId = v455; -v451.prototype = v452; -v451.__super__ = v31; -var v457; -var v458 = v40; -v457 = function getVersion(version) { switch (version) { - case \\"v2\\": return v450.V2; - case \\"v3\\": return v450.V3; - case \\"s3v4\\": return v450.V4; - case \\"v4\\": return v450.V4; - case \\"s3\\": return v450.S3; - case \\"v3https\\": return v450.V3Https; -} throw new v458(\\"Unknown signing version \\" + version); }; -const v459 = {}; -v459.constructor = v457; -v457.prototype = v459; -v451.getVersion = v457; -v450.RequestSigner = v451; -var v460; -var v461 = v451; -v460 = function () { if (v461 !== v30) { - return v298.apply(this, arguments); -} }; -const v462 = Object.create(v452); -var v463; -v463 = function addAuthorization(credentials, date) { if (!date) - date = v73.getDate(); var r = this.request; r.params.Timestamp = v73.iso8601(date); r.params.SignatureVersion = \\"2\\"; r.params.SignatureMethod = \\"HmacSHA256\\"; r.params.AWSAccessKeyId = credentials.accessKeyId; if (credentials.sessionToken) { - r.params.SecurityToken = credentials.sessionToken; -} delete r.params.Signature; r.params.Signature = this.signature(credentials); r.body = v3.queryParamsToString(r.params); r.headers[\\"Content-Length\\"] = r.body.length; }; -const v464 = {}; -v464.constructor = v463; -v463.prototype = v464; -v462.addAuthorization = v463; -var v465; -v465 = function signature(credentials) { return v91.hmac(credentials.secretAccessKey, this.stringToSign(), \\"base64\\"); }; -const v466 = {}; -v466.constructor = v465; -v465.prototype = v466; -v462.signature = v465; -var v467; -v467 = function stringToSign() { var parts = []; parts.push(this.request.method); parts.push(this.request.endpoint.host.toLowerCase()); parts.push(this.request.pathname()); parts.push(v3.queryParamsToString(this.request.params)); return parts.join(\\"\\\\n\\"); }; -const v468 = {}; -v468.constructor = v467; -v467.prototype = v468; -v462.stringToSign = v467; -v462.constructor = v460; -v460.prototype = v462; -v460.__super__ = v451; -v450.V2 = v460; -var v469; -var v470 = v451; -var v471 = v31; -v469 = function () { if (v470 !== v471) { - return v461.apply(this, arguments); -} }; -const v472 = Object.create(v452); -var v473; -v473 = function addAuthorization(credentials, date) { var datetime = v73.rfc822(date); this.request.headers[\\"X-Amz-Date\\"] = datetime; if (credentials.sessionToken) { - this.request.headers[\\"x-amz-security-token\\"] = credentials.sessionToken; -} this.request.headers[\\"X-Amzn-Authorization\\"] = this.authorization(credentials, datetime); }; -const v474 = {}; -v474.constructor = v473; -v473.prototype = v474; -v472.addAuthorization = v473; -var v475; -v475 = function authorization(credentials) { return \\"AWS3 \\" + \\"AWSAccessKeyId=\\" + credentials.accessKeyId + \\",\\" + \\"Algorithm=HmacSHA256,\\" + \\"SignedHeaders=\\" + this.signedHeaders() + \\",\\" + \\"Signature=\\" + this.signature(credentials); }; -const v476 = {}; -v476.constructor = v475; -v475.prototype = v476; -v472.authorization = v475; -var v477; -v477 = function signedHeaders() { var headers = []; v3.arrayEach(this.headersToSign(), function iterator(h) { headers.push(h.toLowerCase()); }); return headers.sort().join(\\";\\"); }; -const v478 = {}; -v478.constructor = v477; -v477.prototype = v478; -v472.signedHeaders = v477; -var v479; -var v480 = v136; -v479 = function canonicalHeaders() { var headers = this.request.headers; var parts = []; v3.arrayEach(this.headersToSign(), function iterator(h) { parts.push(h.toLowerCase().trim() + \\":\\" + v480(headers[h]).trim()); }); return parts.sort().join(\\"\\\\n\\") + \\"\\\\n\\"; }; -const v481 = {}; -v481.constructor = v479; -v479.prototype = v481; -v472.canonicalHeaders = v479; -var v482; -v482 = function headersToSign() { var headers = []; v3.each(this.request.headers, function iterator(k) { if (k === \\"Host\\" || k === \\"Content-Encoding\\" || k.match(/^X-Amz/i)) { - headers.push(k); -} }); return headers; }; -const v483 = {}; -v483.constructor = v482; -v482.prototype = v483; -v472.headersToSign = v482; -var v484; -v484 = function signature(credentials) { return v91.hmac(credentials.secretAccessKey, this.stringToSign(), \\"base64\\"); }; -const v485 = {}; -v485.constructor = v484; -v484.prototype = v485; -v472.signature = v484; -var v486; -v486 = function stringToSign() { var parts = []; parts.push(this.request.method); parts.push(\\"/\\"); parts.push(\\"\\"); parts.push(this.canonicalHeaders()); parts.push(this.request.body); return v91.sha256(parts.join(\\"\\\\n\\")); }; -const v487 = {}; -v487.constructor = v486; -v486.prototype = v487; -v472.stringToSign = v486; -v472.constructor = v469; -v469.prototype = v472; -v469.__super__ = v451; -v450.V3 = v469; -var v488; -var v489 = v469; -var v490 = v31; -v488 = function () { if (v489 !== v490) { - return v470.apply(this, arguments); -} }; -const v491 = Object.create(v472); -var v492; -v492 = function authorization(credentials) { return \\"AWS3-HTTPS \\" + \\"AWSAccessKeyId=\\" + credentials.accessKeyId + \\",\\" + \\"Algorithm=HmacSHA256,\\" + \\"Signature=\\" + this.signature(credentials); }; -const v493 = {}; -v493.constructor = v492; -v492.prototype = v493; -v491.authorization = v492; -var v494; -v494 = function stringToSign() { return this.request.headers[\\"X-Amz-Date\\"]; }; -const v495 = {}; -v495.constructor = v494; -v494.prototype = v495; -v491.stringToSign = v494; -v491.constructor = v488; -v488.prototype = v491; -v488.__super__ = v469; -v450.V3Https = v488; -var v496; -v496 = function V4(request, serviceName, options) { v450.RequestSigner.call(this, request); this.serviceName = serviceName; options = options || {}; this.signatureCache = typeof options.signatureCache === \\"boolean\\" ? options.signatureCache : true; this.operation = options.operation; this.signatureVersion = options.signatureVersion; }; -const v497 = Object.create(v452); -v497.constructor = v496; -v497.algorithm = \\"AWS4-HMAC-SHA256\\"; -var v498; -v498 = function addAuthorization(credentials, date) { var datetime = v73.iso8601(date).replace(/[:\\\\-]|\\\\.\\\\d{3}/g, \\"\\"); if (this.isPresigned()) { - this.updateForPresigned(credentials, datetime); -} -else { - this.addHeaders(credentials, datetime); -} this.request.headers[\\"Authorization\\"] = this.authorization(credentials, datetime); }; -const v499 = {}; -v499.constructor = v498; -v498.prototype = v499; -v497.addAuthorization = v498; -var v500; -v500 = function addHeaders(credentials, datetime) { this.request.headers[\\"X-Amz-Date\\"] = datetime; if (credentials.sessionToken) { - this.request.headers[\\"x-amz-security-token\\"] = credentials.sessionToken; -} }; -const v501 = {}; -v501.constructor = v500; -v500.prototype = v501; -v497.addHeaders = v500; -var v502; -var v503 = \\"presigned-expires\\"; -var v504 = \\"presigned-expires\\"; -v502 = function updateForPresigned(credentials, datetime) { var credString = this.credentialString(datetime); var qs = { \\"X-Amz-Date\\": datetime, \\"X-Amz-Algorithm\\": this.algorithm, \\"X-Amz-Credential\\": credentials.accessKeyId + \\"/\\" + credString, \\"X-Amz-Expires\\": this.request.headers[v503], \\"X-Amz-SignedHeaders\\": this.signedHeaders() }; if (credentials.sessionToken) { - qs[\\"X-Amz-Security-Token\\"] = credentials.sessionToken; -} if (this.request.headers[\\"Content-Type\\"]) { - qs[\\"Content-Type\\"] = this.request.headers[\\"Content-Type\\"]; -} if (this.request.headers[\\"Content-MD5\\"]) { - qs[\\"Content-MD5\\"] = this.request.headers[\\"Content-MD5\\"]; -} if (this.request.headers[\\"Cache-Control\\"]) { - qs[\\"Cache-Control\\"] = this.request.headers[\\"Cache-Control\\"]; -} v3.each.call(this, this.request.headers, function (key, value) { if (key === v504) - return; if (this.isSignableHeader(key)) { - var lowerKey = key.toLowerCase(); - if (lowerKey.indexOf(\\"x-amz-meta-\\") === 0) { - qs[lowerKey] = value; - } - else if (lowerKey.indexOf(\\"x-amz-\\") === 0) { - qs[key] = value; - } -} }); var sep = this.request.path.indexOf(\\"?\\") >= 0 ? \\"&\\" : \\"?\\"; this.request.path += sep + v3.queryParamsToString(qs); }; -const v505 = {}; -v505.constructor = v502; -v502.prototype = v505; -v497.updateForPresigned = v502; -var v506; -v506 = function authorization(credentials, datetime) { var parts = []; var credString = this.credentialString(datetime); parts.push(this.algorithm + \\" Credential=\\" + credentials.accessKeyId + \\"/\\" + credString); parts.push(\\"SignedHeaders=\\" + this.signedHeaders()); parts.push(\\"Signature=\\" + this.signature(credentials, datetime)); return parts.join(\\", \\"); }; -const v507 = {}; -v507.constructor = v506; -v506.prototype = v507; -v497.authorization = v506; -var v508; -const v510 = {}; -var v511; -var v512 = \\"aws4_request\\"; -v511 = function createScope(date, region, serviceName) { return [date.substr(0, 8), region, serviceName, v512].join(\\"/\\"); }; -const v513 = {}; -v513.constructor = v511; -v511.prototype = v513; -v510.createScope = v511; -var v514; -const v516 = {}; -var v515 = v516; -var v517 = \\"aws4_request\\"; -var v518 = v516; -const v520 = []; -v520.push(); -var v519 = v520; -var v521 = 50; -var v522 = v516; -var v523 = v520; -v514 = function getSigningKey(credentials, date, region, service, shouldCache) { var credsIdentifier = v91.hmac(credentials.secretAccessKey, credentials.accessKeyId, \\"base64\\"); var cacheKey = [credsIdentifier, date, region, service].join(\\"_\\"); shouldCache = shouldCache !== false; if (shouldCache && (cacheKey in v515)) { - return v515[cacheKey]; -} var kDate = v91.hmac(\\"AWS4\\" + credentials.secretAccessKey, date, \\"buffer\\"); var kRegion = v91.hmac(kDate, region, \\"buffer\\"); var kService = v91.hmac(kRegion, service, \\"buffer\\"); var signingKey = v91.hmac(kService, v517, \\"buffer\\"); if (shouldCache) { - v518[cacheKey] = signingKey; - v519.push(cacheKey); - if (0 > v521) { - delete v522[v523.shift()]; - } -} return signingKey; }; -const v524 = {}; -v524.constructor = v514; -v514.prototype = v524; -v510.getSigningKey = v514; -var v525; -v525 = function emptyCache() { cachedSecret = {}; cacheQueue = []; }; -const v526 = {}; -v526.constructor = v525; -v525.prototype = v526; -v510.emptyCache = v525; -var v509 = v510; -v508 = function signature(credentials, datetime) { var signingKey = v509.getSigningKey(credentials, datetime.substr(0, 8), this.request.region, this.serviceName, this.signatureCache); return v91.hmac(signingKey, this.stringToSign(datetime), \\"hex\\"); }; -const v527 = {}; -v527.constructor = v508; -v508.prototype = v527; -v497.signature = v508; -var v528; -v528 = function stringToSign(datetime) { var parts = []; parts.push(\\"AWS4-HMAC-SHA256\\"); parts.push(datetime); parts.push(this.credentialString(datetime)); parts.push(this.hexEncodedHash(this.canonicalString())); return parts.join(\\"\\\\n\\"); }; -const v529 = {}; -v529.constructor = v528; -v528.prototype = v529; -v497.stringToSign = v528; -var v530; -v530 = function canonicalString() { var parts = [], pathname = this.request.pathname(); if (this.serviceName !== \\"s3\\" && this.signatureVersion !== \\"s3v4\\") - pathname = v3.uriEscapePath(pathname); parts.push(this.request.method); parts.push(pathname); parts.push(this.request.search()); parts.push(this.canonicalHeaders() + \\"\\\\n\\"); parts.push(this.signedHeaders()); parts.push(this.hexEncodedBodyHash()); return parts.join(\\"\\\\n\\"); }; -const v531 = {}; -v531.constructor = v530; -v530.prototype = v531; -v497.canonicalString = v530; -var v532; -var v533 = v40; -v532 = function canonicalHeaders() { var headers = []; v3.each.call(this, this.request.headers, function (key, item) { headers.push([key, item]); }); headers.sort(function (a, b) { return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : 1; }); var parts = []; v3.arrayEach.call(this, headers, function (item) { var key = item[0].toLowerCase(); if (this.isSignableHeader(key)) { - var value = item[1]; - if (typeof value === \\"undefined\\" || value === null || typeof value.toString !== \\"function\\") { - throw v3.error(new v533(\\"Header \\" + key + \\" contains invalid value\\"), { code: \\"InvalidHeader\\" }); - } - parts.push(key + \\":\\" + this.canonicalHeaderValues(value.toString())); -} }); return parts.join(\\"\\\\n\\"); }; -const v534 = {}; -v534.constructor = v532; -v532.prototype = v534; -v497.canonicalHeaders = v532; -var v535; -v535 = function canonicalHeaderValues(values) { return values.replace(/\\\\s+/g, \\" \\").replace(/^\\\\s+|\\\\s+$/g, \\"\\"); }; -const v536 = {}; -v536.constructor = v535; -v535.prototype = v536; -v497.canonicalHeaderValues = v535; -var v537; -v537 = function signedHeaders() { var keys = []; v3.each.call(this, this.request.headers, function (key) { key = key.toLowerCase(); if (this.isSignableHeader(key)) - keys.push(key); }); return keys.sort().join(\\";\\"); }; -const v538 = {}; -v538.constructor = v537; -v537.prototype = v538; -v497.signedHeaders = v537; -var v539; -var v540 = v510; -v539 = function credentialString(datetime) { return v540.createScope(datetime.substr(0, 8), this.request.region, this.serviceName); }; -const v541 = {}; -v541.constructor = v539; -v539.prototype = v541; -v497.credentialString = v539; -var v542; -v542 = function hash(string) { return v91.sha256(string, \\"hex\\"); }; -const v543 = {}; -v543.constructor = v542; -v542.prototype = v543; -v497.hexEncodedHash = v542; -var v544; -v544 = function hexEncodedBodyHash() { var request = this.request; if (this.isPresigned() && ([\\"s3\\", \\"s3-object-lambda\\"].indexOf(this.serviceName) > -1) && !request.body) { - return \\"UNSIGNED-PAYLOAD\\"; -} -else if (request.headers[\\"X-Amz-Content-Sha256\\"]) { - return request.headers[\\"X-Amz-Content-Sha256\\"]; -} -else { - return this.hexEncodedHash(this.request.body || \\"\\"); -} }; -const v545 = {}; -v545.constructor = v544; -v544.prototype = v545; -v497.hexEncodedBodyHash = v544; -const v546 = []; -v546.push(\\"authorization\\", \\"content-type\\", \\"content-length\\", \\"user-agent\\", \\"presigned-expires\\", \\"expect\\", \\"x-amzn-trace-id\\"); -v497.unsignableHeaders = v546; -var v547; -v547 = function isSignableHeader(key) { if (key.toLowerCase().indexOf(\\"x-amz-\\") === 0) - return true; return this.unsignableHeaders.indexOf(key) < 0; }; -const v548 = {}; -v548.constructor = v547; -v547.prototype = v548; -v497.isSignableHeader = v547; -var v549; -v549 = function isPresigned() { return this.request.headers[v504] ? true : false; }; -const v550 = {}; -v550.constructor = v549; -v549.prototype = v550; -v497.isPresigned = v549; -v496.prototype = v497; -v496.__super__ = v451; -v450.V4 = v496; -var v551; -var v552 = v451; -var v553 = v31; -v551 = function () { if (v552 !== v553) { - return v489.apply(this, arguments); -} }; -const v554 = Object.create(v452); -const v555 = {}; -v555.acl = 1; -v555.accelerate = 1; -v555.analytics = 1; -v555.cors = 1; -v555.lifecycle = 1; -v555.delete = 1; -v555.inventory = 1; -v555.location = 1; -v555.logging = 1; -v555.metrics = 1; -v555.notification = 1; -v555.partNumber = 1; -v555.policy = 1; -v555.requestPayment = 1; -v555.replication = 1; -v555.restore = 1; -v555.tagging = 1; -v555.torrent = 1; -v555.uploadId = 1; -v555.uploads = 1; -v555.versionId = 1; -v555.versioning = 1; -v555.versions = 1; -v555.website = 1; -v554.subResources = v555; -const v556 = {}; -v556[\\"response-content-type\\"] = 1; -v556[\\"response-content-language\\"] = 1; -v556[\\"response-expires\\"] = 1; -v556[\\"response-cache-control\\"] = 1; -v556[\\"response-content-disposition\\"] = 1; -v556[\\"response-content-encoding\\"] = 1; -v554.responseHeaders = v556; -var v557; -v557 = function addAuthorization(credentials, date) { if (!this.request.headers[\\"presigned-expires\\"]) { - this.request.headers[\\"X-Amz-Date\\"] = v73.rfc822(date); -} if (credentials.sessionToken) { - this.request.headers[\\"x-amz-security-token\\"] = credentials.sessionToken; -} var signature = this.sign(credentials.secretAccessKey, this.stringToSign()); var auth = \\"AWS \\" + credentials.accessKeyId + \\":\\" + signature; this.request.headers[\\"Authorization\\"] = auth; }; -const v558 = {}; -v558.constructor = v557; -v557.prototype = v558; -v554.addAuthorization = v557; -var v559; -v559 = function stringToSign() { var r = this.request; var parts = []; parts.push(r.method); parts.push(r.headers[\\"Content-MD5\\"] || \\"\\"); parts.push(r.headers[\\"Content-Type\\"] || \\"\\"); parts.push(r.headers[\\"presigned-expires\\"] || \\"\\"); var headers = this.canonicalizedAmzHeaders(); if (headers) - parts.push(headers); parts.push(this.canonicalizedResource()); return parts.join(\\"\\\\n\\"); }; -const v560 = {}; -v560.constructor = v559; -v559.prototype = v560; -v554.stringToSign = v559; -var v561; -var v562 = v136; -v561 = function canonicalizedAmzHeaders() { var amzHeaders = []; v3.each(this.request.headers, function (name) { if (name.match(/^x-amz-/i)) - amzHeaders.push(name); }); amzHeaders.sort(function (a, b) { return a.toLowerCase() < b.toLowerCase() ? -1 : 1; }); var parts = []; v3.arrayEach.call(this, amzHeaders, function (name) { parts.push(name.toLowerCase() + \\":\\" + v562(this.request.headers[name])); }); return parts.join(\\"\\\\n\\"); }; -const v563 = {}; -v563.constructor = v561; -v561.prototype = v563; -v554.canonicalizedAmzHeaders = v561; -var v564; -const v566 = decodeURIComponent; -var v565 = v566; -v564 = function canonicalizedResource() { var r = this.request; var parts = r.path.split(\\"?\\"); var path = parts[0]; var querystring = parts[1]; var resource = \\"\\"; if (r.virtualHostedBucket) - resource += \\"/\\" + r.virtualHostedBucket; resource += path; if (querystring) { - var resources = []; - v3.arrayEach.call(this, querystring.split(\\"&\\"), function (param) { var name = param.split(\\"=\\")[0]; var value = param.split(\\"=\\")[1]; if (this.subResources[name] || this.responseHeaders[name]) { - var subresource = { name: name }; - if (value !== undefined) { - if (this.subResources[name]) { - subresource.value = value; - } - else { - subresource.value = v565(value); - } - } - resources.push(subresource); - } }); - resources.sort(function (a, b) { return a.name < b.name ? -1 : 1; }); - if (resources.length) { - querystring = []; - v3.arrayEach(resources, function (res) { if (res.value === undefined) { - querystring.push(res.name); - } - else { - querystring.push(res.name + \\"=\\" + res.value); - } }); - resource += \\"?\\" + querystring.join(\\"&\\"); - } -} return resource; }; -const v567 = {}; -v567.constructor = v564; -v564.prototype = v567; -v554.canonicalizedResource = v564; -var v568; -v568 = function sign(secret, string) { return v91.hmac(secret, string, \\"base64\\", \\"sha1\\"); }; -const v569 = {}; -v569.constructor = v568; -v568.prototype = v569; -v554.sign = v568; -v554.constructor = v551; -v551.prototype = v554; -v551.__super__ = v451; -v450.S3 = v551; -var v570; -var v571 = v31; -var v572 = v31; -v570 = function () { if (v571 !== v572) { - return v552.apply(this, arguments); -} }; -const v573 = {}; -var v574; -var v575 = \\"presigned-expires\\"; -var v577; -var v578 = \\"presigned-expires\\"; -var v579 = v40; -var v580 = \\"presigned-expires\\"; -var v581 = v117; -var v582 = v40; -v577 = function signedUrlBuilder(request) { var expires = request.httpRequest.headers[v578]; var signerClass = request.service.getSignerClass(request); delete request.httpRequest.headers[\\"User-Agent\\"]; delete request.httpRequest.headers[\\"X-Amz-User-Agent\\"]; if (signerClass === v450.V4) { - if (expires > 604800) { - var message = \\"Presigning does not support expiry time greater \\" + \\"than a week with SigV4 signing.\\"; - throw v3.error(new v579(), { code: \\"InvalidExpiryTime\\", message: message, retryable: false }); - } - request.httpRequest.headers[v578] = expires; -} -else if (signerClass === v450.S3) { - var now = request.service ? request.service.getSkewCorrectedDate() : v73.getDate(); - request.httpRequest.headers[v580] = v581(v73.unixTimestamp(now) + expires, 10).toString(); -} -else { - throw v3.error(new v582(), { message: \\"Presigning only supports S3 or SigV4 signing.\\", code: \\"UnsupportedSigner\\", retryable: false }); -} }; -const v583 = {}; -v583.constructor = v577; -v577.prototype = v583; -var v576 = v577; -var v585; -var v586 = \\"presigned-expires\\"; -v585 = function signedUrlSigner(request) { var endpoint = request.httpRequest.endpoint; var parsedUrl = v3.urlParse(request.httpRequest.path); var queryParams = {}; if (parsedUrl.search) { - queryParams = v3.queryStringParse(parsedUrl.search.substr(1)); -} var auth = request.httpRequest.headers[\\"Authorization\\"].split(\\" \\"); if (auth[0] === \\"AWS\\") { - auth = auth[1].split(\\":\\"); - queryParams[\\"Signature\\"] = auth.pop(); - queryParams[\\"AWSAccessKeyId\\"] = auth.join(\\":\\"); - v3.each(request.httpRequest.headers, function (key, value) { if (key === v575) - key = \\"Expires\\"; if (key.indexOf(\\"x-amz-meta-\\") === 0) { - delete queryParams[key]; - key = key.toLowerCase(); - } queryParams[key] = value; }); - delete request.httpRequest.headers[v586]; - delete queryParams[\\"Authorization\\"]; - delete queryParams[\\"Host\\"]; -} -else if (auth[0] === \\"AWS4-HMAC-SHA256\\") { - auth.shift(); - var rest = auth.join(\\" \\"); - var signature = rest.match(/Signature=(.*?)(?:,|\\\\s|\\\\r?\\\\n|$)/)[1]; - queryParams[\\"X-Amz-Signature\\"] = signature; - delete queryParams[\\"Expires\\"]; -} endpoint.pathname = parsedUrl.pathname; endpoint.search = v3.queryParamsToString(queryParams); }; -const v587 = {}; -v587.constructor = v585; -v585.prototype = v587; -var v584 = v585; -v574 = function sign(request, expireTime, callback) { request.httpRequest.headers[v575] = expireTime || 3600; request.on(\\"build\\", v576); request.on(\\"sign\\", v584); request.removeListener(\\"afterBuild\\", v428.SET_CONTENT_LENGTH); request.removeListener(\\"afterBuild\\", v428.COMPUTE_SHA256); request.emit(\\"beforePresign\\", [request]); if (callback) { - request.build(function () { if (this.response.error) - callback(this.response.error); - else { - callback(null, v3.urlFormat(request.httpRequest.endpoint)); - } }); -} -else { - request.build(); - if (request.response.error) - throw request.response.error; - return v3.urlFormat(request.httpRequest.endpoint); -} }; -const v588 = {}; -v588.constructor = v574; -v574.prototype = v588; -v573.sign = v574; -v573.constructor = v570; -v570.prototype = v573; -v570.__super__ = v31; -v450.Presign = v570; -v449 = function COMPUTE_SHA256(req, done) { req.haltHandlersOnError(); if (!req.service.api.operations) { - return; -} var operation = req.service.api.operations[req.operation]; var authtype = operation ? operation.authtype : \\"\\"; if (!req.service.api.signatureVersion && !authtype && !req.service.config.signatureVersion) - return done(); if (req.service.getSignerClass(req) === v450.V4) { - var body = req.httpRequest.body || \\"\\"; - if (authtype.indexOf(\\"unsigned-body\\") >= 0) { - req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; - return done(); - } - v3.computeSha256(body, function (err, sha) { if (err) { - done(err); - } - else { - req.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = sha; - done(); - } }); -} -else { - done(); -} }; -const v589 = {}; -v589.constructor = v449; -v449.prototype = v589; -v449._isAsync = true; -var v590; -var v592; -v592 = function getOperationAuthtype(req) { if (!req.service.api.operations) { - return \\"\\"; -} var operation = req.service.api.operations[req.operation]; return operation ? operation.authtype : \\"\\"; }; -const v593 = {}; -v593.constructor = v592; -v592.prototype = v593; -var v591 = v592; -v590 = function SET_CONTENT_LENGTH(req) { var authtype = v591(req); var payloadMember = v3.getRequestPayloadShape(req); if (req.httpRequest.headers[\\"Content-Length\\"] === undefined) { - try { - var length = v55.byteLength(req.httpRequest.body); - req.httpRequest.headers[\\"Content-Length\\"] = length; - } - catch (err) { - if (payloadMember && payloadMember.isStreaming) { - if (payloadMember.requiresLength) { - throw err; - } - else if (authtype.indexOf(\\"unsigned-body\\") >= 0) { - req.httpRequest.headers[\\"Transfer-Encoding\\"] = \\"chunked\\"; - return; - } - else { - throw err; - } - } - throw err; - } -} }; -const v594 = {}; -v594.constructor = v590; -v590.prototype = v594; -var v595; -v595 = function SET_HTTP_HOST(req) { req.httpRequest.headers[\\"Host\\"] = req.httpRequest.endpoint.host; }; -const v596 = {}; -v596.constructor = v595; -v595.prototype = v596; -var v597; -var v598 = v31; -var v599 = v8; -v597 = function SET_TRACE_ID(req) { var traceIdHeaderName = \\"X-Amzn-Trace-Id\\"; if (v3.isNode() && !v598.hasOwnProperty.call(req.httpRequest.headers, traceIdHeaderName)) { - var ENV_LAMBDA_FUNCTION_NAME = \\"AWS_LAMBDA_FUNCTION_NAME\\"; - var ENV_TRACE_ID = \\"_X_AMZN_TRACE_ID\\"; - var functionName = v599.env[ENV_LAMBDA_FUNCTION_NAME]; - var traceId = v599.env[ENV_TRACE_ID]; - if (typeof functionName === \\"string\\" && functionName.length > 0 && typeof traceId === \\"string\\" && traceId.length > 0) { - req.httpRequest.headers[traceIdHeaderName] = traceId; - } -} }; -const v600 = {}; -v600.constructor = v597; -v597.prototype = v600; -v446.push(v447, v449, v590, v595, v597); -v429.afterBuild = v446; -const v601 = []; -var v602; -var v603 = v2; -v602 = function RESTART() { var err = this.response.error; if (!err || !err.retryable) - return; this.httpRequest = new v603.HttpRequest(this.service.endpoint, this.service.region); if (this.response.retryCount < this.service.config.maxRetries) { - this.response.retryCount++; -} -else { - this.response.error = null; -} }; -const v604 = {}; -v604.constructor = v602; -v602.prototype = v604; -v601.push(v602); -v429.restart = v601; -const v605 = []; -var v606; -var v608; -var v609 = v3; -var v610 = v40; -var v611 = v282; -v608 = function hasCustomEndpoint(client) { if (client._originalConfig && client._originalConfig.endpoint && client._originalConfig.endpointDiscoveryEnabled === true) { - throw v609.error(new v610(), { code: \\"ConfigurationException\\", message: \\"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.\\" }); -} var svcConfig = v251[client.serviceIdentifier] || {}; return v611(undefined || svcConfig.endpoint || (client._originalConfig && client._originalConfig.endpoint)); }; -const v612 = {}; -v612.constructor = v608; -v608.prototype = v612; -var v607 = v608; -var v614; -var v615 = v3; -const v617 = []; -v617.push(\\"AWS_ENABLE_ENDPOINT_DISCOVERY\\", \\"AWS_ENDPOINT_DISCOVERY_ENABLED\\"); -var v616 = v617; -var v618 = v8; -var v619 = v8; -var v620 = v3; -var v621 = v40; -var v623; -v623 = function isFalsy(value) { return [\\"false\\", \\"0\\"].indexOf(value) >= 0; }; -const v624 = {}; -v624.constructor = v623; -v623.prototype = v624; -var v622 = v623; -var v625 = v40; -var v626 = v623; -v614 = function resolveEndpointDiscoveryConfig(request) { var service = request.service || {}; if (service.config.endpointDiscoveryEnabled !== undefined) { - return service.config.endpointDiscoveryEnabled; -} if (v615.isBrowser()) - return undefined; for (var i = 0; i < 2; i++) { - var env = v616[i]; - if (v113.hasOwnProperty.call(v618.env, env)) { - if (v619.env[env] === \\"\\" || v618.env[env] === undefined) { - throw v620.error(new v621(), { code: \\"ConfigurationException\\", message: \\"environmental variable \\" + env + \\" cannot be set to nothing\\" }); - } - return !v622(v618.env[env]); - } -} var configFile = {}; try { - configFile = v200 ? v200.loadFrom({ isConfig: true, filename: v619.env[\\"AWS_CONFIG_FILE\\"] }) : {}; -} -catch (e) { } var sharedFileConfig = configFile[v618.env.AWS_PROFILE || \\"default\\"] || {}; if (v113.hasOwnProperty.call(sharedFileConfig, \\"endpoint_discovery_enabled\\")) { - if (sharedFileConfig.endpoint_discovery_enabled === undefined) { - throw v620.error(new v625(), { code: \\"ConfigurationException\\", message: \\"config file entry 'endpoint_discovery_enabled' cannot be set to nothing\\" }); - } - return !v626(sharedFileConfig.endpoint_discovery_enabled); -} return undefined; }; -const v627 = {}; -v627.constructor = v614; -v614.prototype = v627; -var v613 = v614; -var v629; -var v631; -var v633; -var v634 = v3; -var v635 = v136; -v633 = function marshallCustomIdentifiersHelper(result, params, shape) { if (!shape || params === undefined || params === null) - return; if (shape.type === \\"structure\\" && shape.required && shape.required.length > 0) { - v634.arrayEach(shape.required, function (name) { var memberShape = shape.members[name]; if (memberShape.endpointDiscoveryId === true) { - var locationName = memberShape.isLocationName ? memberShape.name : name; - result[locationName] = v635(params[name]); - } - else { - marshallCustomIdentifiersHelper(result, params[name], memberShape); - } }); -} }; -const v636 = {}; -v636.constructor = v633; -v633.prototype = v636; -var v632 = v633; -v631 = function marshallCustomIdentifiers(request, shape) { var identifiers = {}; v632(identifiers, request.params, shape); return identifiers; }; -const v637 = {}; -v637.constructor = v631; -v631.prototype = v637; -var v630 = v631; -var v639; -v639 = function getCacheKey(request) { var service = request.service; var api = service.api || {}; var operations = api.operations; var identifiers = {}; if (service.config.region) { - identifiers.region = service.config.region; -} if (api.serviceId) { - identifiers.serviceId = api.serviceId; -} if (service.config.credentials.accessKeyId) { - identifiers.accessKeyId = service.config.credentials.accessKeyId; -} return identifiers; }; -const v640 = {}; -v640.constructor = v639; -v639.prototype = v640; -var v638 = v639; -var v641 = v31; -const v642 = {}; -var v643; -var v644 = 1000; -const v646 = console._stdout._writableState.afterWriteTickInfo.constructor.prototype; -const v647 = Object.create(v646); -var v648; -var v649 = v40; -v648 = function LRUCache(size) { this.nodeMap = {}; this.size = 0; if (typeof size !== \\"number\\" || size < 1) { - throw new v649(\\"Cache size can only be positive number\\"); -} this.sizeLimit = size; }; -const v650 = {}; -v650.constructor = v648; -var v651; -v651 = function (node) { if (!this.headerNode) { - this.tailNode = node; -} -else { - this.headerNode.prev = node; - node.next = this.headerNode; -} this.headerNode = node; this.size++; }; -const v652 = {}; -v652.constructor = v651; -v651.prototype = v652; -v650.prependToList = v651; -var v653; -v653 = function () { if (!this.tailNode) { - return undefined; -} var node = this.tailNode; var prevNode = node.prev; if (prevNode) { - prevNode.next = undefined; -} node.prev = undefined; this.tailNode = prevNode; this.size--; return node; }; -const v654 = {}; -v654.constructor = v653; -v653.prototype = v654; -v650.removeFromTail = v653; -var v655; -v655 = function (node) { if (this.headerNode === node) { - this.headerNode = node.next; -} if (this.tailNode === node) { - this.tailNode = node.prev; -} if (node.prev) { - node.prev.next = node.next; -} if (node.next) { - node.next.prev = node.prev; -} node.next = undefined; node.prev = undefined; this.size--; }; -const v656 = {}; -v656.constructor = v655; -v655.prototype = v656; -v650.detachFromList = v655; -var v657; -v657 = function (key) { if (this.nodeMap[key]) { - var node = this.nodeMap[key]; - this.detachFromList(node); - this.prependToList(node); - return node.value; -} }; -const v658 = {}; -v658.constructor = v657; -v657.prototype = v658; -v650.get = v657; -var v659; -v659 = function (key) { if (this.nodeMap[key]) { - var node = this.nodeMap[key]; - this.detachFromList(node); - delete this.nodeMap[key]; -} }; -const v660 = {}; -v660.constructor = v659; -v659.prototype = v660; -v650.remove = v659; -var v661; -var v663; -v663 = function LinkedListNode(key, value) { this.key = key; this.value = value; }; -const v664 = {}; -v664.constructor = v663; -v663.prototype = v664; -var v662 = v663; -v661 = function (key, value) { if (this.nodeMap[key]) { - this.remove(key); -} -else if (this.size === this.sizeLimit) { - var tailNode = this.removeFromTail(); - var key_1 = tailNode.key; - delete this.nodeMap[key_1]; -} var newNode = new v662(key, value); this.nodeMap[key] = newNode; this.prependToList(newNode); }; -const v665 = {}; -v665.constructor = v661; -v661.prototype = v665; -v650.put = v661; -var v666; -var v667 = v31; -v666 = function () { var keys = v667.keys(this.nodeMap); for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var node = this.nodeMap[key]; - this.detachFromList(node); - delete this.nodeMap[key]; -} }; -const v668 = {}; -v668.constructor = v666; -v666.prototype = v668; -v650.empty = v666; -v648.prototype = v650; -v647.LRUCache = v648; -var v645 = v647; -v643 = function EndpointCache(maxSize) { if (maxSize === void 0) { - maxSize = v644; -} this.maxSize = maxSize; this.cache = new v645.LRUCache(maxSize); }; -v643.prototype = v642; -var v669; -var v670 = v31; -v669 = function (key) { var identifiers = []; var identifierNames = v670.keys(key).sort(); for (var i = 0; i < identifierNames.length; i++) { - var identifierName = identifierNames[i]; - if (key[identifierName] === undefined) - continue; - identifiers.push(key[identifierName]); -} return identifiers.join(\\" \\"); }; -const v671 = {}; -v671.constructor = v669; -v669.prototype = v671; -v643.getKeyString = v669; -v642.constructor = v643; -var v672; -var v673 = v643; -v672 = function (key, value) { var keyString = typeof key !== \\"string\\" ? v673.getKeyString(key) : key; var endpointRecord = this.populateValue(value); this.cache.put(keyString, endpointRecord); }; -const v674 = {}; -v674.constructor = v672; -v672.prototype = v674; -v642.put = v672; -var v675; -var v676 = v643; -var v677 = v77; -v675 = function (key) { var keyString = typeof key !== \\"string\\" ? v676.getKeyString(key) : key; var now = v677.now(); var records = this.cache.get(keyString); if (records) { - for (var i = records.length - 1; i >= 0; i--) { - var record = records[i]; - if (record.Expire < now) { - records.splice(i, 1); - } - } - if (records.length === 0) { - this.cache.remove(keyString); - return undefined; - } -} return records; }; -const v678 = {}; -v678.constructor = v675; -v675.prototype = v678; -v642.get = v675; -var v679; -var v680 = v77; -v679 = function (endpoints) { var now = v680.now(); return endpoints.map(function (endpoint) { return ({ Address: endpoint.Address || \\"\\", Expire: now + (endpoint.CachePeriodInMinutes || 1) * 60 * 1000 }); }); }; -const v681 = {}; -v681.constructor = v679; -v679.prototype = v681; -v642.populateValue = v679; -var v682; -v682 = function () { this.cache.empty(); }; -const v683 = {}; -v683.constructor = v682; -v682.prototype = v683; -v642.empty = v682; -var v684; -var v685 = v643; -v684 = function (key) { var keyString = typeof key !== \\"string\\" ? v685.getKeyString(key) : key; this.cache.remove(keyString); }; -const v686 = {}; -v686.constructor = v684; -v684.prototype = v686; -v642.remove = v684; -const v687 = Object.create(v642); -v687.maxSize = 1000; -const v688 = Object.create(v650); -const v689 = {}; -v688.nodeMap = v689; -v688.size = 0; -v688.sizeLimit = 1000; -v687.cache = v688; -var v691; -v691 = function addApiVersionHeader(endpointRequest) { var api = endpointRequest.service.api; var apiVersion = api.apiVersion; if (apiVersion && !endpointRequest.httpRequest.headers[\\"x-amz-api-version\\"]) { - endpointRequest.httpRequest.headers[\\"x-amz-api-version\\"] = apiVersion; -} }; -const v692 = {}; -v692.constructor = v691; -v691.prototype = v692; -var v690 = v691; -v629 = function optionalDiscoverEndpoint(request) { var service = request.service; var api = service.api; var operationModel = api.operations ? api.operations[request.operation] : undefined; var inputShape = operationModel ? operationModel.input : undefined; var identifiers = v630(request, inputShape); var cacheKey = v638(request); if (v641.keys(identifiers).length > 0) { - cacheKey = v615.update(cacheKey, identifiers); - if (operationModel) - cacheKey.operation = operationModel.name; -} var endpoints = v687.get(cacheKey); if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { - return; -} -else if (endpoints && endpoints.length > 0) { - request.httpRequest.updateEndpoint(endpoints[0].Address); -} -else { - var endpointRequest = service.makeRequest(api.endpointOperation, { Operation: operationModel.name, Identifiers: identifiers }); - v690(endpointRequest); - endpointRequest.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); - endpointRequest.removeListener(\\"retry\\", v428.RETRY_CHECK); - v687.put(cacheKey, [{ Address: \\"\\", CachePeriodInMinutes: 1 }]); - endpointRequest.send(function (err, data) { if (data && data.Endpoints) { - v687.put(cacheKey, data.Endpoints); - } - else if (err) { - v687.put(cacheKey, [{ Address: \\"\\", CachePeriodInMinutes: 1 }]); - } }); -} }; -const v693 = {}; -v693.constructor = v629; -v629.prototype = v693; -var v628 = v629; -var v695; -var v696 = v631; -var v697 = v3; -v695 = function invalidateCachedEndpoints(response) { var error = response.error; var httpResponse = response.httpResponse; if (error && (error.code === \\"InvalidEndpointException\\" || httpResponse.statusCode === 421)) { - var request = response.request; - var operations = request.service.api.operations || {}; - var inputShape = operations[request.operation] ? operations[request.operation].input : undefined; - var identifiers = v696(request, inputShape); - var cacheKey = v638(request); - if (v641.keys(identifiers).length > 0) { - cacheKey = v697.update(cacheKey, identifiers); - if (operations[request.operation]) - cacheKey.operation = operations[request.operation].name; - } - v687.remove(cacheKey); -} }; -const v698 = {}; -v698.constructor = v695; -v695.prototype = v698; -var v694 = v695; -var v699 = v3; -var v701; -var v702 = v639; -var v703 = v31; -var v704 = v2; -const v706 = {}; -var v705 = v706; -var v707 = v706; -var v708 = v691; -var v709 = v706; -var v710 = v706; -v701 = function requiredDiscoverEndpoint(request, done) { var service = request.service; var api = service.api; var operationModel = api.operations ? api.operations[request.operation] : undefined; var inputShape = operationModel ? operationModel.input : undefined; var identifiers = v696(request, inputShape); var cacheKey = v702(request); if (v703.keys(identifiers).length > 0) { - cacheKey = v620.update(cacheKey, identifiers); - if (operationModel) - cacheKey.operation = operationModel.name; -} var cacheKeyStr = v704.EndpointCache.getKeyString(cacheKey); var endpoints = v687.get(cacheKeyStr); if (endpoints && endpoints.length === 1 && endpoints[0].Address === \\"\\") { - if (!v705[cacheKeyStr]) - v707[cacheKeyStr] = []; - v707[cacheKeyStr].push({ request: request, callback: done }); - return; -} -else if (endpoints && endpoints.length > 0) { - request.httpRequest.updateEndpoint(endpoints[0].Address); - done(); -} -else { - var endpointRequest = service.makeRequest(api.endpointOperation, { Operation: operationModel.name, Identifiers: identifiers }); - endpointRequest.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); - v708(endpointRequest); - v687.put(cacheKeyStr, [{ Address: \\"\\", CachePeriodInMinutes: 60 }]); - endpointRequest.send(function (err, data) { if (err) { - request.response.error = v620.error(err, { retryable: false }); - v687.remove(cacheKey); - if (v709[cacheKeyStr]) { - var pendingRequests = v710[cacheKeyStr]; - v615.arrayEach(pendingRequests, function (requestContext) { requestContext.request.response.error = v615.error(err, { retryable: false }); requestContext.callback(); }); - delete v709[cacheKeyStr]; - } - } - else if (data) { - v687.put(cacheKeyStr, data.Endpoints); - request.httpRequest.updateEndpoint(data.Endpoints[0].Address); - if (v709[cacheKeyStr]) { - var pendingRequests = v710[cacheKeyStr]; - v697.arrayEach(pendingRequests, function (requestContext) { requestContext.request.httpRequest.updateEndpoint(data.Endpoints[0].Address); requestContext.callback(); }); - delete v709[cacheKeyStr]; - } - } done(); }); -} }; -const v711 = {}; -v711.constructor = v701; -v701.prototype = v711; -var v700 = v701; -v606 = function discoverEndpoint(request, done) { var service = request.service || {}; if (v607(service) || request.isPresigned()) - return done(); var operations = service.api.operations || {}; var operationModel = operations[request.operation]; var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : \\"NULL\\"; var isEnabled = v613(request); var hasRequiredEndpointDiscovery = service.api.hasRequiredEndpointDiscovery; if (isEnabled || hasRequiredEndpointDiscovery) { - request.httpRequest.appendToUserAgent(\\"endpoint-discovery\\"); -} switch (isEndpointDiscoveryRequired) { - case \\"OPTIONAL\\": - if (isEnabled || hasRequiredEndpointDiscovery) { - v628(request); - request.addNamedListener(\\"INVALIDATE_CACHED_ENDPOINTS\\", \\"extractError\\", v694); - } - done(); - break; - case \\"REQUIRED\\": - if (isEnabled === false) { - request.response.error = v699.error(new v621(), { code: \\"ConfigurationException\\", message: \\"Endpoint Discovery is disabled but \\" + service.api.className + \\".\\" + request.operation + \\"() requires it. Please check your configurations.\\" }); - done(); - break; - } - request.addNamedListener(\\"INVALIDATE_CACHED_ENDPOINTS\\", \\"extractError\\", v694); - v700(request, done); - break; - case \\"NULL\\": - default: - done(); - break; -} }; -const v712 = {}; -v712.constructor = v606; -v606.prototype = v712; -v606._isAsync = true; -var v713; -v713 = function SIGN(req, done) { var service = req.service; var operations = req.service.api.operations || {}; var operation = operations[req.operation]; var authtype = operation ? operation.authtype : \\"\\"; if (!service.api.signatureVersion && !authtype && !service.config.signatureVersion) - return done(); service.config.getCredentials(function (err, credentials) { if (err) { - req.response.error = err; - return done(); -} try { - var date = service.getSkewCorrectedDate(); - var SignerClass = service.getSignerClass(req); - var signer = new SignerClass(req.httpRequest, service.getSigningName(req), { signatureCache: service.config.signatureCache, operation: operation, signatureVersion: service.api.signatureVersion }); - signer.setServiceClientId(service._clientId); - delete req.httpRequest.headers[\\"Authorization\\"]; - delete req.httpRequest.headers[\\"Date\\"]; - delete req.httpRequest.headers[\\"X-Amz-Date\\"]; - signer.addAuthorization(credentials, date); - req.signedAt = date; -} -catch (e) { - req.response.error = e; -} done(); }); }; -const v714 = {}; -v714.constructor = v713; -v713.prototype = v714; -v713._isAsync = true; -v605.push(v606, v713); -v429.sign = v605; -const v715 = []; -var v716; -var v717 = v40; -v716 = function VALIDATE_RESPONSE(resp) { if (this.service.successfulResponse(resp, this)) { - resp.data = {}; - resp.error = null; -} -else { - resp.data = null; - resp.error = v3.error(new v717(), { code: \\"UnknownError\\", message: \\"An unknown error occurred.\\" }); -} }; -const v718 = {}; -v718.constructor = v716; -v716.prototype = v718; -v715.push(v716); -v429.validateResponse = v715; -const v719 = []; -var v720; -v720 = function ERROR(err, resp) { var errorCodeMapping = resp.request.service.api.errorCodeMapping; if (errorCodeMapping && err && err.code) { - var mapping = errorCodeMapping[err.code]; - if (mapping) { - resp.error.code = mapping.code; - } -} }; -const v721 = {}; -v721.constructor = v720; -v720.prototype = v721; -v719.push(v720); -v429.error = v719; -const v722 = []; -var v723; -v723 = function SEND(resp, done) { resp.httpResponse._abortCallback = done; resp.error = null; resp.data = null; function callback(httpResp) { resp.httpResponse.stream = httpResp; var stream = resp.request.httpRequest.stream; var service = resp.request.service; var api = service.api; var operationName = resp.request.operation; var operation = api.operations[operationName] || {}; httpResp.on(\\"headers\\", function onHeaders(statusCode, headers, statusMessage) { resp.request.emit(\\"httpHeaders\\", [statusCode, headers, resp, statusMessage]); if (!resp.httpResponse.streaming) { - if (2 === 2) { - if (operation.hasEventOutput && service.successfulResponse(resp)) { - resp.request.emit(\\"httpDone\\"); - done(); - return; - } - httpResp.on(\\"readable\\", function onReadable() { var data = httpResp.read(); if (data !== null) { - resp.request.emit(\\"httpData\\", [data, resp]); - } }); - } - else { - httpResp.on(\\"data\\", function onData(data) { resp.request.emit(\\"httpData\\", [data, resp]); }); - } -} }); httpResp.on(\\"end\\", function onEnd() { if (!stream || !stream.didCallback) { - if (2 === 2 && (operation.hasEventOutput && service.successfulResponse(resp))) { - return; - } - resp.request.emit(\\"httpDone\\"); - done(); -} }); } function progress(httpResp) { httpResp.on(\\"sendProgress\\", function onSendProgress(value) { resp.request.emit(\\"httpUploadProgress\\", [value, resp]); }); httpResp.on(\\"receiveProgress\\", function onReceiveProgress(value) { resp.request.emit(\\"httpDownloadProgress\\", [value, resp]); }); } function error(err) { if (err.code !== \\"RequestAbortedError\\") { - var errCode = err.code === \\"TimeoutError\\" ? err.code : \\"NetworkingError\\"; - err = v3.error(err, { code: errCode, region: resp.request.httpRequest.region, hostname: resp.request.httpRequest.endpoint.hostname, retryable: true }); -} resp.error = err; resp.request.emit(\\"httpError\\", [resp.error, resp], function () { done(); }); } function executeSend() { var http = v444.HttpClient.getInstance(); var httpOptions = resp.request.service.config.httpOptions || {}; try { - var stream = http.handleRequest(resp.request.httpRequest, httpOptions, callback, error); - progress(stream); -} -catch (err) { - error(err); -} } var timeDiff = (resp.request.service.getSkewCorrectedDate() - this.signedAt) / 1000; if (timeDiff >= 60 * 10) { - this.emit(\\"sign\\", [this], function (err) { if (err) - done(err); - else - executeSend(); }); -} -else { - executeSend(); -} }; -const v724 = {}; -v724.constructor = v723; -v723.prototype = v724; -v723._isAsync = true; -v722.push(v723); -v429.send = v722; -const v725 = []; -var v726; -var v727 = v77; -v726 = function HTTP_HEADERS(statusCode, headers, resp, statusMessage) { resp.httpResponse.statusCode = statusCode; resp.httpResponse.statusMessage = statusMessage; resp.httpResponse.headers = headers; resp.httpResponse.body = v41.toBuffer(\\"\\"); resp.httpResponse.buffers = []; resp.httpResponse.numBytes = 0; var dateHeader = headers.date || headers.Date; var service = resp.request.service; if (dateHeader) { - var serverTime = v727.parse(dateHeader); - if (service.config.correctClockSkew && service.isClockSkewed(serverTime)) { - service.applyClockOffset(serverTime); - } -} }; -const v728 = {}; -v728.constructor = v726; -v726.prototype = v728; -v725.push(v726); -v429.httpHeaders = v725; -const v729 = []; -var v730; -v730 = function HTTP_DATA(chunk, resp) { if (chunk) { - if (v3.isNode()) { - resp.httpResponse.numBytes += chunk.length; - var total = resp.httpResponse.headers[\\"content-length\\"]; - var progress = { loaded: resp.httpResponse.numBytes, total: total }; - resp.request.emit(\\"httpDownloadProgress\\", [progress, resp]); - } - resp.httpResponse.buffers.push(v41.toBuffer(chunk)); -} }; -const v731 = {}; -v731.constructor = v730; -v730.prototype = v731; -v729.push(v730); -v429.httpData = v729; -const v732 = []; -var v733; -v733 = function HTTP_DONE(resp) { if (resp.httpResponse.buffers && resp.httpResponse.buffers.length > 0) { - var body = v41.concat(resp.httpResponse.buffers); - resp.httpResponse.body = body; -} delete resp.httpResponse.numBytes; delete resp.httpResponse.buffers; }; -const v734 = {}; -v734.constructor = v733; -v733.prototype = v734; -v732.push(v733); -v429.httpDone = v732; -const v735 = []; -var v736; -v736 = function FINALIZE_ERROR(resp) { if (resp.httpResponse.statusCode) { - resp.error.statusCode = resp.httpResponse.statusCode; - if (resp.error.retryable === undefined) { - resp.error.retryable = this.service.retryableError(resp.error, this); - } -} }; -const v737 = {}; -v737.constructor = v736; -v736.prototype = v737; -var v738; -v738 = function INVALIDATE_CREDENTIALS(resp) { if (!resp.error) - return; switch (resp.error.code) { - case \\"RequestExpired\\": - case \\"ExpiredTokenException\\": - case \\"ExpiredToken\\": - resp.error.retryable = true; - resp.request.service.config.credentials.expired = true; -} }; -const v739 = {}; -v739.constructor = v738; -v738.prototype = v739; -var v740; -v740 = function EXPIRED_SIGNATURE(resp) { var err = resp.error; if (!err) - return; if (typeof err.code === \\"string\\" && typeof err.message === \\"string\\") { - if (err.code.match(/Signature/) && err.message.match(/expired/)) { - resp.error.retryable = true; - } -} }; -const v741 = {}; -v741.constructor = v740; -v740.prototype = v741; -var v742; -v742 = function CLOCK_SKEWED(resp) { if (!resp.error) - return; if (this.service.clockSkewError(resp.error) && this.service.config.correctClockSkew) { - resp.error.retryable = true; -} }; -const v743 = {}; -v743.constructor = v742; -v742.prototype = v743; -var v744; -v744 = function REDIRECT(resp) { if (resp.error && resp.error.statusCode >= 300 && resp.error.statusCode < 400 && resp.httpResponse.headers[\\"location\\"]) { - this.httpRequest.endpoint = new v603.Endpoint(resp.httpResponse.headers[\\"location\\"]); - this.httpRequest.headers[\\"Host\\"] = this.httpRequest.endpoint.host; - resp.error.redirect = true; - resp.error.retryable = true; -} }; -const v745 = {}; -v745.constructor = v744; -v744.prototype = v745; -var v746; -v746 = function RETRY_CHECK(resp) { if (resp.error) { - if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.error.retryDelay = 0; - } - else if (resp.retryCount < resp.maxRetries) { - resp.error.retryDelay = this.service.retryDelays(resp.retryCount, resp.error) || 0; - } -} }; -const v747 = {}; -v747.constructor = v746; -v746.prototype = v747; -v735.push(v736, v738, v740, v742, v744, v746); -v429.retry = v735; -const v748 = []; -var v749; -const v751 = require(\\"timers\\").setTimeout; -var v750 = v751; -v749 = function RESET_RETRY_STATE(resp, done) { var delay, willRetry = false; if (resp.error) { - delay = resp.error.retryDelay || 0; - if (resp.error.retryable && resp.retryCount < resp.maxRetries) { - resp.retryCount++; - willRetry = true; - } - else if (resp.error.redirect && resp.redirectCount < resp.maxRedirects) { - resp.redirectCount++; - willRetry = true; - } -} if (willRetry && delay >= 0) { - resp.error = null; - v750(done, delay); -} -else { - done(); -} }; -const v752 = {}; -v752.constructor = v749; -v749.prototype = v752; -v749._isAsync = true; -v748.push(v749); -v429.afterRetry = v748; -v428._events = v429; -v428.VALIDATE_CREDENTIALS = v431; -v428.VALIDATE_REGION = v433; -v428.BUILD_IDEMPOTENCY_TOKENS = v438; -v428.VALIDATE_PARAMETERS = v443; -v428.COMPUTE_CHECKSUM = v447; -v428.COMPUTE_SHA256 = v449; -v428.SET_CONTENT_LENGTH = v590; -v428.SET_HTTP_HOST = v595; -v428.SET_TRACE_ID = v597; -v428.RESTART = v602; -v428.DISCOVER_ENDPOINT = v606; -v428.SIGN = v713; -v428.VALIDATE_RESPONSE = v716; -v428.ERROR = v720; -v428.SEND = v723; -v428.HTTP_HEADERS = v726; -v428.HTTP_DATA = v730; -v428.HTTP_DONE = v733; -v428.FINALIZE_ERROR = v736; -v428.INVALIDATE_CREDENTIALS = v738; -v428.EXPIRED_SIGNATURE = v740; -v428.CLOCK_SKEWED = v742; -v428.REDIRECT = v744; -v428.RETRY_CHECK = v746; -v428.RESET_RETRY_STATE = v749; -const v753 = Object.create(v401); -const v754 = {}; -const v755 = []; -var v756; -v756 = function extractRequestId(resp) { var requestId = resp.httpResponse.headers[\\"x-amz-request-id\\"] || resp.httpResponse.headers[\\"x-amzn-requestid\\"]; if (!requestId && resp.data && resp.data.ResponseMetadata) { - requestId = resp.data.ResponseMetadata.RequestId; -} if (requestId) { - resp.requestId = requestId; -} if (resp.error) { - resp.error.requestId = requestId; -} }; -const v757 = {}; -v757.constructor = v756; -v756.prototype = v757; -v755.push(v756); -v754.extractData = v755; -const v758 = []; -v758.push(v756); -v754.extractError = v758; -const v759 = []; -var v760; -var v761 = v40; -v760 = function ENOTFOUND_ERROR(err) { function isDNSError(err) { return err.errno === \\"ENOTFOUND\\" || typeof err.errno === \\"number\\" && typeof v3.getSystemErrorName === \\"function\\" && [\\"EAI_NONAME\\", \\"EAI_NODATA\\"].indexOf(v3.getSystemErrorName(err.errno) >= 0); } if (err.code === \\"NetworkingError\\" && isDNSError(err)) { - var message = \\"Inaccessible host: \`\\" + err.hostname + \\"' at port \`\\" + err.port + \\"'. This service may not be available in the \`\\" + err.region + \\"' region.\\"; - this.response.error = v3.error(new v761(message), { code: \\"UnknownEndpoint\\", region: err.region, hostname: err.hostname, retryable: true, originalError: err }); -} }; -const v762 = {}; -v762.constructor = v760; -v760.prototype = v762; -v759.push(v760); -v754.httpError = v759; -v753._events = v754; -v753.EXTRACT_REQUEST_ID = v756; -v753.ENOTFOUND_ERROR = v760; -const v763 = Object.create(v401); -const v764 = {}; -const v765 = []; -var v766; -var v767 = undefined; -var v768 = undefined; -var v769 = undefined; -var v770 = undefined; -var v771 = require; -v766 = function LOG_REQUEST(resp) { var req = resp.request; var logger = req.service.config.logger; if (!logger) - return; function filterSensitiveLog(inputShape, shape) { if (!shape) { - return shape; -} if (inputShape.isSensitive) { - return \\"***SensitiveInformation***\\"; -} switch (inputShape.type) { - case \\"structure\\": - var struct = {}; - v3.each(shape, function (subShapeName, subShape) { if (v113.hasOwnProperty.call(inputShape.members, subShapeName)) { - v767[subShapeName] = filterSensitiveLog(inputShape.members[subShapeName], subShape); - } - else { - v767[subShapeName] = subShape; - } }); - return v767; - case \\"list\\": - var list = []; - v3.arrayEach(shape, function (subShape, index) { undefined(filterSensitiveLog(inputShape.member, subShape)); }); - return v768; - case \\"map\\": - var map = {}; - v3.each(shape, function (key, value) { v769[key] = filterSensitiveLog(inputShape.value, value); }); - return v770; - default: return shape; -} } function buildMessage() { var time = resp.request.service.getSkewCorrectedDate().getTime(); var delta = (time - req.startTime.getTime()) / 1000; var ansi = logger.isTTY ? true : false; var status = resp.httpResponse.statusCode; var censoredParams = req.params; if (req.service.api.operations && req.service.api.operations[req.operation] && req.service.api.operations[req.operation].input) { - var inputShape = req.service.api.operations[req.operation].input; - censoredParams = filterSensitiveLog(inputShape, req.params); -} var params = v771(\\"util\\").inspect(censoredParams, true, null); var message = \\"\\"; if (ansi) - message += \\"\\\\u001B[33m\\"; message += \\"[AWS \\" + req.service.serviceIdentifier + \\" \\" + status; message += \\" \\" + delta.toString() + \\"s \\" + resp.retryCount + \\" retries]\\"; if (ansi) - message += \\"\\\\u001B[0;1m\\"; message += \\" \\" + v55.lowerFirst(req.operation); message += \\"(\\" + params + \\")\\"; if (ansi) - message += \\"\\\\u001B[0m\\"; return message; } var line = buildMessage(); if (typeof logger.log === \\"function\\") { - logger.log(line); -} -else if (typeof logger.write === \\"function\\") { - logger.write(line + \\"\\\\n\\"); -} }; -const v772 = {}; -v772.constructor = v766; -v766.prototype = v772; -v765.push(v766); -v764.complete = v765; -v763._events = v764; -v763.LOG_REQUEST = v766; -v400 = function addAllRequestListeners(request) { var list = [v426, v428, this.serviceInterface(), v753]; for (var i = 0; i < list.length; i++) { - if (list[i]) - request.addListeners(list[i]); -} if (!this.config.paramValidation) { - request.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); -} if (this.config.logger) { - request.addListeners(v763); -} this.setupRequestListeners(request); if (typeof this.constructor.prototype.customRequestHandler === \\"function\\") { - this.constructor.prototype.customRequestHandler(request); -} if (v113.hasOwnProperty.call(this, \\"customRequestHandler\\") && typeof this.customRequestHandler === \\"function\\") { - this.customRequestHandler(request); -} }; -const v773 = {}; -v773.constructor = v400; -v400.prototype = v773; -v309.addAllRequestListeners = v400; -var v774; -v774 = function apiCallEvent(request) { var api = request.service.api.operations[request.operation]; var monitoringEvent = { Type: \\"ApiCall\\", Api: api ? api.name : request.operation, Version: 1, Service: request.service.api.serviceId || request.service.api.endpointPrefix, Region: request.httpRequest.region, MaxRetriesExceeded: 0, UserAgent: request.httpRequest.getUserAgent() }; var response = request.response; if (response.httpResponse.statusCode) { - monitoringEvent.FinalHttpStatusCode = response.httpResponse.statusCode; -} if (response.error) { - var error = response.error; - var statusCode = response.httpResponse.statusCode; - if (statusCode > 299) { - if (error.code) - monitoringEvent.FinalAwsException = error.code; - if (error.message) - monitoringEvent.FinalAwsExceptionMessage = error.message; - } - else { - if (error.code || error.name) - monitoringEvent.FinalSdkException = error.code || error.name; - if (error.message) - monitoringEvent.FinalSdkExceptionMessage = error.message; - } -} return monitoringEvent; }; -const v775 = {}; -v775.constructor = v774; -v774.prototype = v775; -v309.apiCallEvent = v774; -var v776; -v776 = function apiAttemptEvent(request) { var api = request.service.api.operations[request.operation]; var monitoringEvent = { Type: \\"ApiCallAttempt\\", Api: api ? api.name : request.operation, Version: 1, Service: request.service.api.serviceId || request.service.api.endpointPrefix, Fqdn: request.httpRequest.endpoint.hostname, UserAgent: request.httpRequest.getUserAgent() }; var response = request.response; if (response.httpResponse.statusCode) { - monitoringEvent.HttpStatusCode = response.httpResponse.statusCode; -} if (!request._unAuthenticated && request.service.config.credentials && request.service.config.credentials.accessKeyId) { - monitoringEvent.AccessKey = request.service.config.credentials.accessKeyId; -} if (!response.httpResponse.headers) - return monitoringEvent; if (request.httpRequest.headers[\\"x-amz-security-token\\"]) { - monitoringEvent.SessionToken = request.httpRequest.headers[\\"x-amz-security-token\\"]; -} if (response.httpResponse.headers[\\"x-amzn-requestid\\"]) { - monitoringEvent.XAmznRequestId = response.httpResponse.headers[\\"x-amzn-requestid\\"]; -} if (response.httpResponse.headers[\\"x-amz-request-id\\"]) { - monitoringEvent.XAmzRequestId = response.httpResponse.headers[\\"x-amz-request-id\\"]; -} if (response.httpResponse.headers[\\"x-amz-id-2\\"]) { - monitoringEvent.XAmzId2 = response.httpResponse.headers[\\"x-amz-id-2\\"]; -} return monitoringEvent; }; -const v777 = {}; -v777.constructor = v776; -v776.prototype = v777; -v309.apiAttemptEvent = v776; -var v778; -v778 = function attemptFailEvent(request) { var monitoringEvent = this.apiAttemptEvent(request); var response = request.response; var error = response.error; if (response.httpResponse.statusCode > 299) { - if (error.code) - monitoringEvent.AwsException = error.code; - if (error.message) - monitoringEvent.AwsExceptionMessage = error.message; -} -else { - if (error.code || error.name) - monitoringEvent.SdkException = error.code || error.name; - if (error.message) - monitoringEvent.SdkExceptionMessage = error.message; -} return monitoringEvent; }; -const v779 = {}; -v779.constructor = v778; -v778.prototype = v779; -v309.attemptFailEvent = v778; -var v780; -const v781 = {}; -var v782; -var v783 = v8; -v782 = function now() { var second = v783.hrtime(); return second[0] * 1000 + (second[1] / 1000000); }; -const v784 = {}; -v784.constructor = v782; -v782.prototype = v784; -v781.now = v782; -var v785 = v77; -const v787 = Math; -var v786 = v787; -var v788 = v787; -v780 = function attachMonitoringEmitter(request) { var attemptTimestamp; var attemptStartRealTime; var attemptLatency; var callStartRealTime; var attemptCount = 0; var region; var callTimestamp; var self = this; var addToHead = true; request.on(\\"validate\\", function () { callStartRealTime = v781.now(); callTimestamp = v785.now(); }, addToHead); request.on(\\"sign\\", function () { attemptStartRealTime = v781.now(); attemptTimestamp = v785.now(); region = request.httpRequest.region; attemptCount++; }, addToHead); request.on(\\"validateResponse\\", function () { attemptLatency = v786.round(v781.now() - attemptStartRealTime); }); request.addNamedListener(\\"API_CALL_ATTEMPT\\", \\"success\\", function API_CALL_ATTEMPT() { var apiAttemptEvent = self.apiAttemptEvent(request); apiAttemptEvent.Timestamp = attemptTimestamp; apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; apiAttemptEvent.Region = region; self.emit(\\"apiCallAttempt\\", [apiAttemptEvent]); }); request.addNamedListener(\\"API_CALL_ATTEMPT_RETRY\\", \\"retry\\", function API_CALL_ATTEMPT_RETRY() { var apiAttemptEvent = self.attemptFailEvent(request); apiAttemptEvent.Timestamp = attemptTimestamp; attemptLatency = attemptLatency || v786.round(v781.now() - attemptStartRealTime); apiAttemptEvent.AttemptLatency = attemptLatency >= 0 ? attemptLatency : 0; apiAttemptEvent.Region = region; self.emit(\\"apiCallAttempt\\", [apiAttemptEvent]); }); request.addNamedListener(\\"API_CALL\\", \\"complete\\", function API_CALL() { var apiCallEvent = self.apiCallEvent(request); apiCallEvent.AttemptCount = attemptCount; if (apiCallEvent.AttemptCount <= 0) - return; apiCallEvent.Timestamp = callTimestamp; var latency = v788.round(v781.now() - callStartRealTime); apiCallEvent.Latency = latency >= 0 ? latency : 0; var response = request.response; if (response.error && response.error.retryable && typeof response.retryCount === \\"number\\" && typeof response.maxRetries === \\"number\\" && (response.retryCount >= response.maxRetries)) { - apiCallEvent.MaxRetriesExceeded = 1; -} self.emit(\\"apiCall\\", [apiCallEvent]); }); }; -const v789 = {}; -v789.constructor = v780; -v780.prototype = v789; -v309.attachMonitoringEmitter = v780; -var v790; -v790 = function setupRequestListeners(request) { }; -const v791 = {}; -v791.constructor = v790; -v790.prototype = v791; -v309.setupRequestListeners = v790; -var v792; -v792 = function getSigningName() { return this.api.signingName || this.api.endpointPrefix; }; -const v793 = {}; -v793.constructor = v792; -v792.prototype = v793; -v309.getSigningName = v792; -var v794; -v794 = function getSignerClass(request) { var version; var operation = null; var authtype = \\"\\"; if (request) { - var operations = request.service.api.operations || {}; - operation = operations[request.operation] || null; - authtype = operation ? operation.authtype : \\"\\"; -} if (this.config.signatureVersion) { - version = this.config.signatureVersion; -} -else if (authtype === \\"v4\\" || authtype === \\"v4-unsigned-body\\") { - version = \\"v4\\"; -} -else { - version = this.api.signatureVersion; -} return v450.RequestSigner.getVersion(version); }; -const v795 = {}; -v795.constructor = v794; -v794.prototype = v795; -v309.getSignerClass = v794; -var v796; -const v797 = Object.create(v401); -const v798 = {}; -const v799 = []; -var v800; -var v802; -v802 = function QueryParamSerializer() { }; -const v803 = {}; -v803.constructor = v802; -var v804; -var v806; -var v807 = v3; -var v809; -v809 = function ucfirst(shape) { if (shape.isQueryName || shape.api.protocol !== \\"ec2\\") { - return shape.name; -} -else { - return shape.name[0].toUpperCase() + shape.name.substr(1); -} }; -const v810 = {}; -v810.constructor = v809; -v809.prototype = v810; -var v808 = v809; -var v812; -var v813 = v806; -var v815; -var v816 = v3; -var v817 = v809; -var v818 = v812; -v815 = function serializeList(name, list, rules, fn) { var memberRules = rules.member || {}; if (list.length === 0) { - fn.call(this, name, null); - return; -} v816.arrayEach(list, function (v, n) { var suffix = \\".\\" + (n + 1); if (rules.api.protocol === \\"ec2\\") { - suffix = suffix + \\"\\"; -} -else if (rules.flattened) { - if (memberRules.name) { - var parts = name.split(\\".\\"); - parts.pop(); - parts.push(v817(memberRules)); - name = parts.join(\\".\\"); - } -} -else { - suffix = \\".\\" + (memberRules.name ? memberRules.name : \\"member\\") + suffix; -} v818(name + suffix, v, memberRules, fn); }); }; -const v819 = {}; -v819.constructor = v815; -v815.prototype = v819; -var v814 = v815; -var v821; -var v822 = v3; -var v823 = v812; -v821 = function serializeMap(name, map, rules, fn) { var i = 1; v822.each(map, function (key, value) { var prefix = rules.flattened ? \\".\\" : \\".entry.\\"; var position = prefix + (i++) + \\".\\"; var keyName = position + (rules.key.name || \\"key\\"); var valueName = position + (rules.value.name || \\"value\\"); v811(name + keyName, key, rules.key, fn); v823(name + valueName, value, rules.value, fn); }); }; -const v824 = {}; -v824.constructor = v821; -v821.prototype = v824; -var v820 = v821; -v812 = function serializeMember(name, value, rules, fn) { if (value === null || value === undefined) - return; if (rules.type === \\"structure\\") { - v813(name, value, rules, fn); -} -else if (rules.type === \\"list\\") { - v814(name, value, rules, fn); -} -else if (rules.type === \\"map\\") { - v820(name, value, rules, fn); -} -else { - fn(name, rules.toWireFormat(value).toString()); -} }; -const v825 = {}; -v825.constructor = v812; -v812.prototype = v825; -var v811 = v812; -v806 = function serializeStructure(prefix, struct, rules, fn) { v807.each(rules.members, function (name, member) { var value = struct[name]; if (value === null || value === undefined) - return; var memberName = v808(member); memberName = prefix ? prefix + \\".\\" + memberName : memberName; v811(memberName, value, member, fn); }); }; -const v826 = {}; -v826.constructor = v806; -v806.prototype = v826; -var v805 = v806; -v804 = function (params, shape, fn) { v805(\\"\\", params, shape, fn); }; -const v827 = {}; -v827.constructor = v804; -v804.prototype = v827; -v803.serialize = v804; -v802.prototype = v803; -var v801 = v802; -var v828 = v3; -var v830; -var v832; -v832 = function hasEndpointDiscover(request) { var api = request.service.api; var operationModel = api.operations[request.operation]; var isEndpointOperation = api.endpointOperation && (api.endpointOperation === v55.lowerFirst(operationModel.name)); return (operationModel.endpointDiscoveryRequired !== \\"NULL\\" || isEndpointOperation === true); }; -const v833 = {}; -v833.constructor = v832; -v832.prototype = v833; -var v831 = v832; -var v835; -var v836 = v3; -var v837 = v3; -var v838 = v40; -var v839 = v373; -v835 = function expandHostPrefix(hostPrefixNotation, params, shape) { v836.each(shape.members, function (name, member) { if (member.hostLabel === true) { - if (typeof params[name] !== \\"string\\" || params[name] === \\"\\") { - throw v837.error(new v838(), { message: \\"Parameter \\" + name + \\" should be a non-empty string.\\", code: \\"InvalidParameter\\" }); - } - var regex = new v839(\\"\\\\\\\\{\\" + name + \\"\\\\\\\\}\\", \\"g\\"); - hostPrefixNotation = hostPrefixNotation.replace(regex, params[name]); -} }); return hostPrefixNotation; }; -const v840 = {}; -v840.constructor = v835; -v835.prototype = v840; -var v834 = v835; -var v842; -v842 = function prependEndpointPrefix(endpoint, prefix) { if (endpoint.host) { - endpoint.host = prefix + endpoint.host; -} if (endpoint.hostname) { - endpoint.hostname = prefix + endpoint.hostname; -} }; -const v843 = {}; -v843.constructor = v842; -v842.prototype = v843; -var v841 = v842; -var v845; -var v846 = v3; -var v847 = v40; -var v848 = v40; -v845 = function validateHostname(hostname) { var labels = hostname.split(\\".\\"); var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9]$/; v846.arrayEach(labels, function (label) { if (!label.length || label.length < 1 || label.length > 63) { - throw v846.error(new v847(), { code: \\"ValidationError\\", message: \\"Hostname label length should be between 1 to 63 characters, inclusive.\\" }); -} if (!hostPattern.test(label)) { - throw v3.error(new v848(), { code: \\"ValidationError\\", message: label + \\" is not hostname compatible.\\" }); -} }); }; -const v849 = {}; -v849.constructor = v845; -v845.prototype = v849; -var v844 = v845; -v830 = function populateHostPrefix(request) { var enabled = request.service.config.hostPrefixEnabled; if (!enabled) - return request; var operationModel = request.service.api.operations[request.operation]; if (v831(request)) - return request; if (operationModel.endpoint && operationModel.endpoint.hostPrefix) { - var hostPrefixNotation = operationModel.endpoint.hostPrefix; - var hostPrefix = v834(hostPrefixNotation, request.params, operationModel.input); - v841(request.httpRequest.endpoint, hostPrefix); - v844(request.httpRequest.endpoint.hostname); -} return request; }; -const v850 = {}; -v850.constructor = v830; -v830.prototype = v850; -var v829 = v830; -v800 = function buildRequest(req) { var operation = req.service.api.operations[req.operation]; var httpRequest = req.httpRequest; httpRequest.headers[\\"Content-Type\\"] = \\"application/x-www-form-urlencoded; charset=utf-8\\"; httpRequest.params = { Version: req.service.api.apiVersion, Action: operation.name }; var builder = new v801(); builder.serialize(req.params, operation.input, function (name, value) { httpRequest.params[name] = value; }); httpRequest.body = v828.queryParamsToString(httpRequest.params); v829(req); }; -const v851 = {}; -v851.constructor = v800; -v800.prototype = v851; -v799.push(v800); -v798.build = v799; -const v852 = []; -var v853; -var v855; -var v857; -var v858 = v3; -v857 = function property(obj, name, value) { if (value !== null && value !== undefined) { - v858.property.apply(this, arguments); -} }; -const v859 = {}; -v859.constructor = v857; -v857.prototype = v859; -var v856 = v857; -var v860 = v857; -var v861 = v857; -var v862 = v857; -var v863 = v857; -var v864 = v857; -var v865 = v857; -var v866 = v857; -var v867 = v282; -var v868 = v857; -var v869 = v857; -var v870 = v282; -var v871 = v857; -var v872 = v857; -v855 = function Shape(shape, options, memberName) { options = options || {}; v856(this, \\"shape\\", shape.shape); v860(this, \\"api\\", options.api, false); v861(this, \\"type\\", shape.type); v862(this, \\"enum\\", shape.enum); v863(this, \\"min\\", shape.min); v862(this, \\"max\\", shape.max); v864(this, \\"pattern\\", shape.pattern); v861(this, \\"location\\", shape.location || this.location || \\"body\\"); v861(this, \\"name\\", this.name || shape.xmlName || shape.queryName || shape.locationName || memberName); v865(this, \\"isStreaming\\", shape.streaming || this.isStreaming || false); v866(this, \\"requiresLength\\", shape.requiresLength, false); v866(this, \\"isComposite\\", shape.isComposite || false); v866(this, \\"isShape\\", true, false); v866(this, \\"isQueryName\\", v867(shape.queryName), false); v868(this, \\"isLocationName\\", v867(shape.locationName), false); v869(this, \\"isIdempotent\\", shape.idempotencyToken === true); v868(this, \\"isJsonValue\\", shape.jsonvalue === true); v866(this, \\"isSensitive\\", shape.sensitive === true || shape.prototype && shape.prototype.sensitive === true); v866(this, \\"isEventStream\\", v870(shape.eventstream), false); v866(this, \\"isEvent\\", v867(shape.event), false); v868(this, \\"isEventPayload\\", v867(shape.eventpayload), false); v871(this, \\"isEventHeader\\", v870(shape.eventheader), false); v872(this, \\"isTimestampFormatSet\\", v870(shape.timestampFormat) || shape.prototype && shape.prototype.isTimestampFormatSet === true, false); v871(this, \\"endpointDiscoveryId\\", v867(shape.endpointdiscoveryid), false); v871(this, \\"hostLabel\\", v870(shape.hostLabel), false); if (options.documentation) { - v866(this, \\"documentation\\", shape.documentation); - v871(this, \\"documentationUrl\\", shape.documentationUrl); -} if (shape.xmlAttribute) { - v866(this, \\"isXmlAttribute\\", shape.xmlAttribute || false); -} v862(this, \\"defaultValue\\", null); this.toWireFormat = function (value) { if (value === null || value === undefined) - return \\"\\"; return value; }; this.toType = function (value) { return value; }; }; -const v873 = {}; -v873.constructor = v855; -v855.prototype = v873; -const v874 = {}; -v874.character = \\"string\\"; -v874.double = \\"float\\"; -v874.long = \\"integer\\"; -v874.short = \\"integer\\"; -v874.biginteger = \\"integer\\"; -v874.bigdecimal = \\"float\\"; -v874.blob = \\"binary\\"; -v855.normalizedTypes = v874; -const v875 = {}; -var v876; -var v878; -var v879 = v855; -v878 = function CompositeShape(shape) { v879.apply(this, arguments); v866(this, \\"isComposite\\", true); if (shape.flattened) { - v871(this, \\"flattened\\", shape.flattened || false); -} }; -const v880 = {}; -v880.constructor = v878; -v878.prototype = v880; -var v877 = v878; -var v881 = v282; -var v883; -var v884 = v136; -var v886; -var v887 = v146; -v886 = function memoize(name, value, factory, nameTr) { v887(this, nameTr(name), function () { return factory(name, value); }); }; -const v888 = {}; -v888.constructor = v886; -v886.prototype = v888; -var v885 = v886; -v883 = function Collection(iterable, options, factory, nameTr, callback) { nameTr = nameTr || v884; var self = this; for (var id in iterable) { - if (v113.hasOwnProperty.call(iterable, id)) { - v885.call(self, id, iterable[id], factory, nameTr); - if (callback) - callback(id, iterable[id]); - } -} }; -const v889 = {}; -v889.constructor = v883; -v883.prototype = v889; -var v882 = v883; -var v890 = v855; -var v892; -v892 = function memoizedProperty(obj, name) { if (!obj.constructor.prototype[name]) { - v858.memoizedProperty.apply(this, arguments); -} }; -const v893 = {}; -v893.constructor = v892; -v892.prototype = v893; -var v891 = v892; -var v894 = v31; -var v895 = v892; -v876 = function StructureShape(shape, options) { var self = this; var requiredMap = null, firstInit = !this.isShape; v877.apply(this, arguments); if (firstInit) { - v872(this, \\"defaultValue\\", function () { return {}; }); - v868(this, \\"members\\", {}); - v872(this, \\"memberNames\\", []); - v872(this, \\"required\\", []); - v872(this, \\"isRequired\\", function () { return false; }); - v868(this, \\"isDocument\\", v881(shape.document)); -} if (shape.members) { - v869(this, \\"members\\", new v882(shape.members, options, function (name, member) { return v890.create(member, options, name); })); - v891(this, \\"memberNames\\", function () { return shape.xmlOrder || v894.keys(shape.members); }); - if (shape.event) { - v895(this, \\"eventPayloadMemberName\\", function () { var members = self.members; var memberNames = self.memberNames; for (var i = 0, iLen = memberNames.length; i < iLen; i++) { - if (members[memberNames[i]].isEventPayload) { - return memberNames[i]; - } - } }); - v891(this, \\"eventHeaderMemberNames\\", function () { var members = self.members; var memberNames = self.memberNames; var eventHeaderMemberNames = []; for (var i = 0, iLen = memberNames.length; i < iLen; i++) { - if (members[memberNames[i]].isEventHeader) { - eventHeaderMemberNames.push(memberNames[i]); - } - } return eventHeaderMemberNames; }); - } -} if (shape.required) { - v868(this, \\"required\\", shape.required); - v869(this, \\"isRequired\\", function (name) { if (!requiredMap) { - requiredMap = {}; - for (var i = 0; i < shape.required.length; i++) { - requiredMap[shape.required[i]] = true; - } - } return requiredMap[name]; }, false, true); -} v868(this, \\"resultWrapper\\", shape.resultWrapper || null); if (shape.payload) { - v868(this, \\"payload\\", shape.payload); -} if (typeof shape.xmlNamespace === \\"string\\") { - v869(this, \\"xmlNamespaceUri\\", shape.xmlNamespace); -} -else if (typeof shape.xmlNamespace === \\"object\\") { - v869(this, \\"xmlNamespacePrefix\\", shape.xmlNamespace.prefix); - v869(this, \\"xmlNamespaceUri\\", shape.xmlNamespace.uri); -} }; -const v896 = {}; -v896.constructor = v876; -v876.prototype = v896; -v875.structure = v876; -var v897; -var v898 = v878; -var v899 = v855; -v897 = function ListShape(shape, options) { var self = this, firstInit = !this.isShape; v898.apply(this, arguments); if (firstInit) { - v868(this, \\"defaultValue\\", function () { return []; }); -} if (shape.member) { - v891(this, \\"member\\", function () { return v899.create(shape.member, options); }); -} if (this.flattened) { - var oldName = this.name; - v891(this, \\"name\\", function () { return self.member.name || oldName; }); -} }; -const v900 = {}; -v900.constructor = v897; -v897.prototype = v900; -v875.list = v897; -var v901; -var v902 = v855; -var v903 = v892; -v901 = function MapShape(shape, options) { var firstInit = !this.isShape; v898.apply(this, arguments); if (firstInit) { - v869(this, \\"defaultValue\\", function () { return {}; }); - v869(this, \\"key\\", v890.create({ type: \\"string\\" }, options)); - v869(this, \\"value\\", v890.create({ type: \\"string\\" }, options)); -} if (shape.key) { - v895(this, \\"key\\", function () { return v902.create(shape.key, options); }); -} if (shape.value) { - v903(this, \\"value\\", function () { return v902.create(shape.value, options); }); -} }; -const v904 = {}; -v904.constructor = v901; -v901.prototype = v904; -v875.map = v901; -var v905; -v905 = function BooleanShape() { v890.apply(this, arguments); this.toType = function (value) { if (typeof value === \\"boolean\\") - return value; if (value === null || value === undefined) - return null; return value === \\"true\\"; }; }; -const v906 = {}; -v906.constructor = v905; -v905.prototype = v906; -v875.boolean = v905; -var v907; -var v908 = v857; -v907 = function TimestampShape(shape) { var self = this; v902.apply(this, arguments); if (shape.timestampFormat) { - v869(this, \\"timestampFormat\\", shape.timestampFormat); -} -else if (self.isTimestampFormatSet && this.timestampFormat) { - v908(this, \\"timestampFormat\\", this.timestampFormat); -} -else if (this.location === \\"header\\") { - v908(this, \\"timestampFormat\\", \\"rfc822\\"); -} -else if (this.location === \\"querystring\\") { - v908(this, \\"timestampFormat\\", \\"iso8601\\"); -} -else if (this.api) { - switch (this.api.protocol) { - case \\"json\\": - case \\"rest-json\\": - v868(this, \\"timestampFormat\\", \\"unixTimestamp\\"); - break; - case \\"rest-xml\\": - case \\"query\\": - case \\"ec2\\": - v869(this, \\"timestampFormat\\", \\"iso8601\\"); - break; - } -} this.toType = function (value) { if (value === null || value === undefined) - return null; if (typeof value.toUTCString === \\"function\\") - return value; return typeof value === \\"string\\" || typeof value === \\"number\\" ? v73.parseTimestamp(value) : null; }; this.toWireFormat = function (value) { return v73.format(value, self.timestampFormat); }; }; -const v909 = {}; -v909.constructor = v907; -v907.prototype = v909; -v875.timestamp = v907; -var v910; -const v912 = Number.parseFloat; -var v911 = v912; -v910 = function FloatShape() { v902.apply(this, arguments); this.toType = function (value) { if (value === null || value === undefined) - return null; return v911(value); }; this.toWireFormat = this.toType; }; -const v913 = {}; -v913.constructor = v910; -v910.prototype = v913; -v875.float = v910; -var v914; -var v915 = v117; -v914 = function IntegerShape() { v902.apply(this, arguments); this.toType = function (value) { if (value === null || value === undefined) - return null; return v915(value, 10); }; this.toWireFormat = this.toType; }; -const v916 = {}; -v916.constructor = v914; -v914.prototype = v916; -v875.integer = v914; -var v917; -var v918 = v163; -var v919 = v163; -v917 = function StringShape() { v890.apply(this, arguments); var nullLessProtocols = [\\"rest-xml\\", \\"query\\", \\"ec2\\"]; this.toType = function (value) { value = this.api && nullLessProtocols.indexOf(this.api.protocol) > -1 ? value || \\"\\" : value; if (this.isJsonValue) { - return v918.parse(value); -} return value && typeof value.toString === \\"function\\" ? value.toString() : value; }; this.toWireFormat = function (value) { return this.isJsonValue ? v919.stringify(value) : value; }; }; -const v920 = {}; -v920.constructor = v917; -v917.prototype = v920; -v875.string = v917; -var v921; -var v923; -var v924 = v3; -var v925 = v3; -v923 = function BinaryShape() { v890.apply(this, arguments); this.toType = function (value) { var buf = v37.decode(value); if (this.isSensitive && v924.isNode() && typeof v925.Buffer.alloc === \\"function\\") { - var secureBuf = v925.Buffer.alloc(buf.length, buf); - buf.fill(0); - buf = secureBuf; -} return buf; }; this.toWireFormat = v37.encode; }; -const v926 = {}; -v926.constructor = v923; -v923.prototype = v926; -var v922 = v923; -v921 = function Base64Shape() { v922.apply(this, arguments); }; -const v927 = {}; -v927.constructor = v921; -v921.prototype = v927; -v875.base64 = v921; -v875.binary = v923; -v855.types = v875; -var v928; -var v929 = v40; -v928 = function resolve(shape, options) { if (shape.shape) { - var refShape = options.api.shapes[shape.shape]; - if (!refShape) { - throw new v929(\\"Cannot find shape reference: \\" + shape.shape); - } - return refShape; -} -else { - return null; -} }; -const v930 = {}; -v930.constructor = v928; -v928.prototype = v930; -v855.resolve = v928; -var v931; -var v932 = v31; -var v933 = v40; -v931 = function create(shape, options, memberName) { if (shape.isShape) - return shape; var refShape = v902.resolve(shape, options); if (refShape) { - var filteredKeys = v932.keys(shape); - if (!options.documentation) { - filteredKeys = filteredKeys.filter(function (name) { return !name.match(/documentation/); }); - } - var InlineShape = function () { refShape.constructor.call(this, shape, options, memberName); }; - InlineShape.prototype = refShape; - return new InlineShape(); -} -else { - if (!shape.type) { - if (shape.members) - shape.type = \\"structure\\"; - else if (shape.member) - shape.type = \\"list\\"; - else if (shape.key) - shape.type = \\"map\\"; - else - shape.type = \\"string\\"; - } - var origType = shape.type; - if (v874[shape.type]) { - shape.type = v874[shape.type]; - } - if (v875[shape.type]) { - return new v875[shape.type](shape, options, memberName); - } - else { - throw new v933(\\"Unrecognized shape type: \\" + origType); - } -} }; -const v934 = {}; -v934.constructor = v931; -v931.prototype = v934; -v855.create = v931; -const v935 = {}; -v935.StructureShape = v876; -v935.ListShape = v897; -v935.MapShape = v901; -v935.StringShape = v917; -v935.BooleanShape = v905; -v935.Base64Shape = v921; -v855.shapes = v935; -var v854 = v855; -var v936 = v3; -const v937 = {}; -var v938; -v938 = function XmlBuilder() { }; -const v939 = {}; -v939.constructor = v938; -var v940; -var v942; -v942 = function XmlNode(name, children) { if (children === void 0) { - children = []; -} this.name = name; this.children = children; this.attributes = {}; }; -const v943 = {}; -v943.constructor = v942; -var v944; -v944 = function (name, value) { this.attributes[name] = value; return this; }; -const v945 = {}; -v945.constructor = v944; -v944.prototype = v945; -v943.addAttribute = v944; -var v946; -v946 = function (child) { this.children.push(child); return this; }; -const v947 = {}; -v947.constructor = v946; -v946.prototype = v947; -v943.addChildNode = v946; -var v948; -v948 = function (name) { delete this.attributes[name]; return this; }; -const v949 = {}; -v949.constructor = v948; -v948.prototype = v949; -v943.removeAttribute = v948; -var v950; -var v951 = v282; -var v952 = v31; -var v954; -v954 = function escapeAttribute(value) { return value.replace(/&/g, \\"&\\").replace(/'/g, \\"'\\").replace(//g, \\">\\").replace(/\\"/g, \\""\\"); }; -const v955 = {}; -v955.constructor = v954; -v954.prototype = v955; -var v953 = v954; -v950 = function () { var hasChildren = v951(this.children.length); var xmlText = \\"<\\" + this.name; var attributes = this.attributes; for (var i = 0, attributeNames = v952.keys(attributes); i < attributeNames.length; i++) { - var attributeName = attributeNames[i]; - var attribute = attributes[attributeName]; - if (typeof attribute !== \\"undefined\\" && attribute !== null) { - xmlText += \\" \\" + attributeName + \\"=\\\\\\"\\" + v953(\\"\\" + attribute) + \\"\\\\\\"\\"; - } -} return xmlText += !hasChildren ? \\"/>\\" : \\">\\" + this.children.map(function (c) { return c.toString(); }).join(\\"\\") + \\"\\"; }; -const v956 = {}; -v956.constructor = v950; -v950.prototype = v956; -v943.toString = v950; -v942.prototype = v943; -var v941 = v942; -var v958; -v958 = function applyNamespaces(xml, shape, isRoot) { var uri, prefix = \\"xmlns\\"; if (shape.xmlNamespaceUri) { - uri = shape.xmlNamespaceUri; - if (shape.xmlNamespacePrefix) - prefix += \\":\\" + shape.xmlNamespacePrefix; -} -else if (isRoot && shape.api.xmlNamespaceUri) { - uri = shape.api.xmlNamespaceUri; -} if (uri) - xml.addAttribute(prefix, uri); }; -const v959 = {}; -v959.constructor = v958; -v958.prototype = v959; -var v957 = v958; -var v961; -var v963; -var v964 = v3; -var v965 = v961; -var v966 = v942; -var v967 = v958; -var v968 = v961; -v963 = function serializeStructure(xml, params, shape) { v964.arrayEach(shape.memberNames, function (memberName) { var memberShape = shape.members[memberName]; if (memberShape.location !== \\"body\\") - return; var value = params[memberName]; var name = memberShape.name; if (value !== undefined && value !== null) { - if (memberShape.isXmlAttribute) { - xml.addAttribute(name, value); - } - else if (memberShape.flattened) { - v965(xml, value, memberShape); - } - else { - var element = new v966(name); - xml.addChildNode(element); - v967(element, memberShape); - v968(element, value, memberShape); - } -} }); }; -const v969 = {}; -v969.constructor = v963; -v963.prototype = v969; -var v962 = v963; -var v971; -var v972 = v3; -var v973 = v942; -var v974 = v942; -v971 = function serializeMap(xml, map, shape) { var xmlKey = shape.key.name || \\"key\\"; var xmlValue = shape.value.name || \\"value\\"; v972.each(map, function (key, value) { var entry = new v973(shape.flattened ? shape.name : \\"entry\\"); xml.addChildNode(entry); var entryKey = new v974(xmlKey); var entryValue = new v941(xmlValue); entry.addChildNode(entryKey); entry.addChildNode(entryValue); v960(entryKey, key, shape.key); v960(entryValue, value, shape.value); }); }; -const v975 = {}; -v975.constructor = v971; -v971.prototype = v975; -var v970 = v971; -var v977; -var v978 = v3; -var v979 = v942; -var v980 = v961; -var v981 = v3; -var v982 = v942; -v977 = function serializeList(xml, list, shape) { if (shape.flattened) { - v978.arrayEach(list, function (value) { var name = shape.member.name || shape.name; var element = new v979(name); xml.addChildNode(element); v980(element, value, shape.member); }); -} -else { - v981.arrayEach(list, function (value) { var name = shape.member.name || \\"member\\"; var element = new v982(name); xml.addChildNode(element); v980(element, value, shape.member); }); -} }; -const v983 = {}; -v983.constructor = v977; -v977.prototype = v983; -var v976 = v977; -var v985; -var v987; -v987 = function XmlText(value) { this.value = value; }; -const v988 = {}; -v988.constructor = v987; -var v989; -var v991; -v991 = function escapeElement(value) { return value.replace(/&/g, \\"&\\").replace(//g, \\">\\").replace(/\\\\r/g, \\" \\").replace(/\\\\n/g, \\" \\").replace(/\\\\u0085/g, \\"…\\").replace(/\\\\u2028/, \\"
\\"); }; -const v992 = {}; -v992.constructor = v991; -v991.prototype = v992; -var v990 = v991; -v989 = function () { return v990(\\"\\" + this.value); }; -const v993 = {}; -v993.constructor = v989; -v989.prototype = v993; -v988.toString = v989; -v987.prototype = v988; -var v986 = v987; -v985 = function serializeScalar(xml, value, shape) { xml.addChildNode(new v986(shape.toWireFormat(value))); }; -const v994 = {}; -v994.constructor = v985; -v985.prototype = v994; -var v984 = v985; -v961 = function serialize(xml, value, shape) { switch (shape.type) { - case \\"structure\\": return v962(xml, value, shape); - case \\"map\\": return v970(xml, value, shape); - case \\"list\\": return v976(xml, value, shape); - default: return v984(xml, value, shape); -} }; -const v995 = {}; -v995.constructor = v961; -v961.prototype = v995; -var v960 = v961; -v940 = function (params, shape, rootElement, noEmpty) { var xml = new v941(rootElement); v957(xml, shape, true); v960(xml, params, shape); return xml.children.length > 0 || noEmpty ? xml.toString() : \\"\\"; }; -const v996 = {}; -v996.constructor = v940; -v940.prototype = v996; -v939.toXML = v940; -v938.prototype = v939; -v937.Builder = v938; -var v997; -v997 = function NodeXmlParser() { }; -const v998 = {}; -v998.constructor = v997; -var v999; -const v1001 = Object.create(v646); -const v1002 = {}; -const v1003 = {}; -v1003.explicitCharkey = false; -v1003.trim = true; -v1003.normalize = true; -v1003.normalizeTags = false; -v1003.attrkey = \\"@\\"; -v1003.charkey = \\"#\\"; -v1003.explicitArray = false; -v1003.ignoreAttrs = false; -v1003.mergeAttrs = false; -v1003.explicitRoot = false; -v1003.validator = null; -v1003.xmlns = false; -v1003.explicitChildren = false; -v1003.childkey = \\"@@\\"; -v1003.charsAsChildren = false; -v1003.includeWhiteChars = false; -v1003.async = false; -v1003.strict = true; -v1003.attrNameProcessors = null; -v1003.attrValueProcessors = null; -v1003.tagNameProcessors = null; -v1003.valueProcessors = null; -v1003.emptyTag = \\"\\"; -v1002[\\"0.1\\"] = v1003; -const v1004 = {}; -v1004.explicitCharkey = false; -v1004.trim = false; -v1004.normalize = false; -v1004.normalizeTags = false; -v1004.attrkey = \\"$\\"; -v1004.charkey = \\"_\\"; -v1004.explicitArray = true; -v1004.ignoreAttrs = false; -v1004.mergeAttrs = false; -v1004.explicitRoot = true; -v1004.validator = null; -v1004.xmlns = false; -v1004.explicitChildren = false; -v1004.preserveChildrenOrder = false; -v1004.childkey = \\"$$\\"; -v1004.charsAsChildren = false; -v1004.includeWhiteChars = false; -v1004.async = false; -v1004.strict = true; -v1004.attrNameProcessors = null; -v1004.attrValueProcessors = null; -v1004.tagNameProcessors = null; -v1004.valueProcessors = null; -v1004.rootName = \\"root\\"; -const v1005 = {}; -v1005.version = \\"1.0\\"; -v1005.encoding = \\"UTF-8\\"; -v1005.standalone = true; -v1004.xmldec = v1005; -v1004.doctype = null; -const v1006 = {}; -v1006.pretty = true; -v1006.indent = \\" \\"; -v1006.newline = \\"\\\\n\\"; -v1004.renderOpts = v1006; -v1004.headless = false; -v1004.chunkSize = 10000; -v1004.emptyTag = \\"\\"; -v1004.cdata = false; -v1002[\\"0.2\\"] = v1004; -v1001.defaults = v1002; -const v1007 = Object.create(v646); -var v1008; -v1008 = function (str) { return str.toLowerCase(); }; -const v1009 = {}; -v1009.constructor = v1008; -v1008.prototype = v1009; -v1007.normalize = v1008; -var v1010; -v1010 = function (str) { return str.charAt(0).toLowerCase() + str.slice(1); }; -const v1011 = {}; -v1011.constructor = v1010; -v1010.prototype = v1011; -v1007.firstCharLowerCase = v1010; -var v1012; -var v1013 = /(?!xmlns)^.*:/; -v1012 = function (str) { return str.replace(v1013, \\"\\"); }; -const v1014 = {}; -v1014.constructor = v1012; -v1012.prototype = v1014; -v1007.stripPrefix = v1012; -var v1015; -const v1017 = isNaN; -var v1016 = v1017; -var v1018 = v117; -var v1019 = v912; -v1015 = function (str) { if (!v1016(str)) { - str = str % 1 === 0 ? v1018(str, 10) : v1019(str); -} return str; }; -const v1020 = {}; -v1020.constructor = v1015; -v1015.prototype = v1020; -v1007.parseNumbers = v1015; -var v1021; -v1021 = function (str) { if (/^(?:true|false)$/i.test(str)) { - str = str.toLowerCase() === \\"true\\"; -} return str; }; -const v1022 = {}; -v1022.constructor = v1021; -v1021.prototype = v1022; -v1007.parseBooleans = v1021; -v1001.processors = v1007; -var v1023; -v1023 = function ValidationError(message) { this.message = message; }; -const v1024 = Error.prototype; -const v1025 = Object.create(v1024); -v1025.constructor = v1023; -v1023.prototype = v1025; -v1023.stackTraceLimit = 10; -const v1026 = Error.prepareStackTrace; -v1023.prepareStackTrace = v1026; -v1023.__super__ = v1024; -v1001.ValidationError = v1023; -var v1027; -var v1028 = v1002; -const v1030 = Atomics.constructor.prototype.hasOwnProperty; -var v1029 = v1030; -v1027 = function Builder(opts) { var key, ref, value; this.options = {}; ref = v1028[\\"0.2\\"]; for (key in ref) { - if (!v1029.call(ref, key)) - continue; - value = ref[key]; - this.options[key] = value; -} for (key in opts) { - if (!v1029.call(opts, key)) - continue; - value = opts[key]; - this.options[key] = value; -} }; -const v1031 = {}; -v1031.constructor = v1027; -var v1032; -var v1033 = v31; -var v1034 = v31; -var v1036; -v1036 = function (entry) { return typeof entry === \\"string\\" && (entry.indexOf(\\"&\\") >= 0 || entry.indexOf(\\">\\") >= 0 || entry.indexOf(\\"<\\") >= 0); }; -const v1037 = {}; -v1037.constructor = v1036; -v1036.prototype = v1037; -var v1035 = v1036; -var v1039; -var v1041; -v1041 = function (entry) { return entry.replace(\\"]]>\\", \\"]]]]>\\"); }; -const v1042 = {}; -v1042.constructor = v1041; -v1041.prototype = v1042; -var v1040 = v1041; -v1039 = function (entry) { return \\"\\"; }; -const v1043 = {}; -v1043.constructor = v1039; -v1039.prototype = v1043; -var v1038 = v1039; -var v1044 = v33; -var v1045 = v1030; -var v1046 = v1030; -var v1047 = v1036; -var v1048 = v1036; -const v1050 = Object.create(v646); -var v1051; -var v1052 = v40; -var v1054; -const v1056 = Array.prototype.slice; -var v1055 = v1056; -var v1058; -v1058 = function (val) { return !!val && v113.toString.call(val) === \\"[object Function]\\"; }; -const v1059 = {}; -v1059.constructor = v1058; -v1058.prototype = v1059; -var v1057 = v1058; -var v1060 = v31; -var v1061 = v31; -var v1062 = v1030; -v1054 = function () { var i, key, len, source, sources, target; target = arguments[0], sources = 2 <= arguments.length ? v1055.call(arguments, 1) : []; if (v1057(v1060.assign)) { - v1061.assign.apply(null, arguments); -} -else { - for (i = 0, len = sources.length; i < len; i++) { - source = sources[i]; - if (source != null) { - for (key in source) { - if (!v1062.call(source, key)) - continue; - target[key] = source[key]; - } - } - } -} return target; }; -const v1063 = {}; -v1063.constructor = v1054; -v1054.prototype = v1063; -var v1053 = v1054; -var v1065; -var v1067; -v1067 = function XMLStringWriter(options) { XMLStringWriter.__super__.constructor.call(this, options); }; -const v1068 = {}; -var v1069; -var v1070 = v1030; -v1069 = function XMLWriterBase(options) { var key, ref, ref1, ref2, ref3, ref4, ref5, ref6, value; options || (options = {}); this.pretty = options.pretty || false; this.allowEmpty = (ref = options.allowEmpty) != null ? ref : false; if (this.pretty) { - this.indent = (ref1 = options.indent) != null ? ref1 : \\" \\"; - this.newline = (ref2 = options.newline) != null ? ref2 : \\"\\\\n\\"; - this.offset = (ref3 = options.offset) != null ? ref3 : 0; - this.dontprettytextnodes = (ref4 = options.dontprettytextnodes) != null ? ref4 : 0; -} -else { - this.indent = \\"\\"; - this.newline = \\"\\"; - this.offset = 0; - this.dontprettytextnodes = 0; -} this.spacebeforeslash = (ref5 = options.spacebeforeslash) != null ? ref5 : \\"\\"; if (this.spacebeforeslash === true) { - this.spacebeforeslash = \\" \\"; -} this.newlinedefault = this.newline; this.prettydefault = this.pretty; ref6 = options.writer || {}; for (key in ref6) { - if (!v1070.call(ref6, key)) - continue; - value = ref6[key]; - this[key] = value; -} }; -v1069.prototype = v1068; -v1068.constructor = v1069; -var v1071; -var v1072 = v1030; -v1071 = function (options) { var key, ref, value; options || (options = {}); if (\\"pretty\\" in options) { - this.pretty = options.pretty; -} if (\\"allowEmpty\\" in options) { - this.allowEmpty = options.allowEmpty; -} if (this.pretty) { - this.indent = \\"indent\\" in options ? options.indent : \\" \\"; - this.newline = \\"newline\\" in options ? options.newline : \\"\\\\n\\"; - this.offset = \\"offset\\" in options ? options.offset : 0; - this.dontprettytextnodes = \\"dontprettytextnodes\\" in options ? options.dontprettytextnodes : 0; -} -else { - this.indent = \\"\\"; - this.newline = \\"\\"; - this.offset = 0; - this.dontprettytextnodes = 0; -} this.spacebeforeslash = \\"spacebeforeslash\\" in options ? options.spacebeforeslash : \\"\\"; if (this.spacebeforeslash === true) { - this.spacebeforeslash = \\" \\"; -} this.newlinedefault = this.newline; this.prettydefault = this.pretty; ref = options.writer || {}; for (key in ref) { - if (!v1072.call(ref, key)) - continue; - value = ref[key]; - this[key] = value; -} return this; }; -const v1073 = {}; -v1073.constructor = v1071; -v1071.prototype = v1073; -v1068.set = v1071; -var v1074; -var v1075 = v33; -v1074 = function (level) { var indent; if (this.pretty) { - indent = (level || 0) + this.offset + 1; - if (indent > 0) { - return new v1075(indent).join(this.indent); - } - else { - return \\"\\"; - } -} -else { - return \\"\\"; -} }; -const v1076 = {}; -v1076.constructor = v1074; -v1074.prototype = v1076; -v1068.space = v1074; -const v1077 = Object.create(v1068); -v1077.constructor = v1067; -var v1078; -var v1080; -var v1082; -v1082 = function (val) { var ref; return !!val && ((ref = typeof val) === \\"function\\" || ref === \\"object\\"); }; -const v1083 = {}; -v1083.constructor = v1082; -v1082.prototype = v1083; -var v1081 = v1082; -v1080 = function XMLDeclaration(parent, version, encoding, standalone) { var ref; XMLDeclaration.__super__.constructor.call(this, parent); if (v1081(version)) { - ref = version, version = ref.version, encoding = ref.encoding, standalone = ref.standalone; -} if (!version) { - version = \\"1.0\\"; -} this.version = this.stringify.xmlVersion(version); if (encoding != null) { - this.encoding = this.stringify.xmlEncoding(encoding); -} if (standalone != null) { - this.standalone = this.stringify.xmlStandalone(standalone); -} }; -const v1084 = {}; -var v1085; -var v1086 = null; -var v1087 = require; -var v1088 = require; -v1085 = function XMLNode(parent) { this.parent = parent; if (this.parent) { - this.options = this.parent.options; - this.stringify = this.parent.stringify; -} this.children = []; if (!v1086) { - XMLElement = v1087(\\"./XMLElement\\"); - XMLCData = v1087(\\"./XMLCData\\"); - XMLComment = v1087(\\"./XMLComment\\"); - XMLDeclaration = v1088(\\"./XMLDeclaration\\"); - XMLDocType = v1088(\\"./XMLDocType\\"); - XMLRaw = v1088(\\"./XMLRaw\\"); - XMLText = v1088(\\"./XMLText\\"); - XMLProcessingInstruction = v1087(\\"./XMLProcessingInstruction\\"); -} }; -v1085.prototype = v1084; -v1084.constructor = v1085; -var v1089; -var v1090 = v1082; -var v1091 = v33; -var v1092 = v1058; -var v1093 = v1082; -var v1094 = v1030; -var v1095 = v1058; -var v1097; -var v1099; -var v1100 = v1058; -var v1101 = v33; -var v1102 = v33; -v1099 = function (val) { if (v1100(v1101.isArray)) { - return v1102.isArray(val); -} -else { - return v113.toString.call(val) === \\"[object Array]\\"; -} }; -const v1103 = {}; -v1103.constructor = v1099; -v1099.prototype = v1103; -var v1098 = v1099; -var v1104 = v1030; -v1097 = function (val) { var key; if (v1098(val)) { - return !val.length; -} -else { - for (key in val) { - if (!v1104.call(val, key)) - continue; - return false; - } - return true; -} }; -const v1105 = {}; -v1105.constructor = v1097; -v1097.prototype = v1105; -var v1096 = v1097; -var v1106 = v1082; -var v1107 = v40; -v1089 = function (name, attributes, text) { var childNode, item, j, k, key, lastChild, len, len1, ref1, val; lastChild = null; if (attributes == null) { - attributes = {}; -} attributes = attributes.valueOf(); if (!v1090(attributes)) { - ref1 = [attributes, text], text = ref1[0], attributes = ref1[1]; -} if (name != null) { - name = name.valueOf(); -} if (v1091.isArray(name)) { - for (j = 0, len = name.length; j < len; j++) { - item = name[j]; - lastChild = this.element(item); - } -} -else if (v1092(name)) { - lastChild = this.element(name.apply()); -} -else if (v1093(name)) { - for (key in name) { - if (!v1094.call(name, key)) - continue; - val = name[key]; - if (v1095(val)) { - val = val.apply(); - } - if ((v1090(val)) && (v1096(val))) { - val = null; - } - if (!this.options.ignoreDecorators && this.stringify.convertAttKey && key.indexOf(this.stringify.convertAttKey) === 0) { - lastChild = this.attribute(key.substr(this.stringify.convertAttKey.length), val); - } - else if (!this.options.separateArrayItems && v1091.isArray(val)) { - for (k = 0, len1 = val.length; k < len1; k++) { - item = val[k]; - childNode = {}; - childNode[key] = item; - lastChild = this.element(childNode); - } - } - else if (v1106(val)) { - lastChild = this.element(key); - lastChild.element(val); - } - else { - lastChild = this.element(key, val); - } - } -} -else { - if (!this.options.ignoreDecorators && this.stringify.convertTextKey && name.indexOf(this.stringify.convertTextKey) === 0) { - lastChild = this.text(text); - } - else if (!this.options.ignoreDecorators && this.stringify.convertCDataKey && name.indexOf(this.stringify.convertCDataKey) === 0) { - lastChild = this.cdata(text); - } - else if (!this.options.ignoreDecorators && this.stringify.convertCommentKey && name.indexOf(this.stringify.convertCommentKey) === 0) { - lastChild = this.comment(text); - } - else if (!this.options.ignoreDecorators && this.stringify.convertRawKey && name.indexOf(this.stringify.convertRawKey) === 0) { - lastChild = this.raw(text); - } - else if (!this.options.ignoreDecorators && this.stringify.convertPIKey && name.indexOf(this.stringify.convertPIKey) === 0) { - lastChild = this.instruction(name.substr(this.stringify.convertPIKey.length), text); - } - else { - lastChild = this.node(name, attributes, text); - } -} if (lastChild == null) { - throw new v1107(\\"Could not create any elements with: \\" + name); -} return lastChild; }; -const v1108 = {}; -v1108.constructor = v1089; -v1089.prototype = v1108; -v1084.element = v1089; -var v1109; -v1109 = function (name, attributes, text) { var child, i, removed; if (this.isRoot) { - throw new v1107(\\"Cannot insert elements at root level\\"); -} i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.element(name, attributes, text); v71.push.apply(this.parent.children, removed); return child; }; -const v1110 = {}; -v1110.constructor = v1109; -v1109.prototype = v1110; -v1084.insertBefore = v1109; -var v1111; -var v1112 = v40; -v1111 = function (name, attributes, text) { var child, i, removed; if (this.isRoot) { - throw new v1112(\\"Cannot insert elements at root level\\"); -} i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.element(name, attributes, text); v71.push.apply(this.parent.children, removed); return child; }; -const v1113 = {}; -v1113.constructor = v1111; -v1111.prototype = v1113; -v1084.insertAfter = v1111; -var v1114; -var v1115 = v40; -v1114 = function () { var i, ref1; if (this.isRoot) { - throw new v1115(\\"Cannot remove the root element\\"); -} i = this.parent.children.indexOf(this); [].splice.apply(this.parent.children, [i, i - i + 1].concat(ref1 = [])), ref1; return this.parent; }; -const v1116 = {}; -v1116.constructor = v1114; -v1114.prototype = v1116; -v1084.remove = v1114; -var v1117; -v1117 = function (name, attributes, text) { var child, ref1; if (name != null) { - name = name.valueOf(); -} attributes || (attributes = {}); attributes = attributes.valueOf(); if (!v1090(attributes)) { - ref1 = [attributes, text], text = ref1[0], attributes = ref1[1]; -} child = new v1086(this, name, attributes); if (text != null) { - child.text(text); -} this.children.push(child); return child; }; -const v1118 = {}; -v1118.constructor = v1117; -v1117.prototype = v1118; -v1084.node = v1117; -var v1119; -var v1120 = null; -v1119 = function (value) { var child; child = new v1120(this, value); this.children.push(child); return this; }; -const v1121 = {}; -v1121.constructor = v1119; -v1119.prototype = v1121; -v1084.text = v1119; -var v1122; -var v1123 = null; -v1122 = function (value) { var child; child = new v1123(this, value); this.children.push(child); return this; }; -const v1124 = {}; -v1124.constructor = v1122; -v1122.prototype = v1124; -v1084.cdata = v1122; -var v1125; -var v1126 = null; -v1125 = function (value) { var child; child = new v1126(this, value); this.children.push(child); return this; }; -const v1127 = {}; -v1127.constructor = v1125; -v1125.prototype = v1127; -v1084.comment = v1125; -var v1128; -v1128 = function (value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.comment(value); v71.push.apply(this.parent.children, removed); return this; }; -const v1129 = {}; -v1129.constructor = v1128; -v1128.prototype = v1129; -v1084.commentBefore = v1128; -var v1130; -v1130 = function (value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.comment(value); v71.push.apply(this.parent.children, removed); return this; }; -const v1131 = {}; -v1131.constructor = v1130; -v1130.prototype = v1131; -v1084.commentAfter = v1130; -var v1132; -var v1133 = null; -v1132 = function (value) { var child; child = new v1133(this, value); this.children.push(child); return this; }; -const v1134 = {}; -v1134.constructor = v1132; -v1132.prototype = v1134; -v1084.raw = v1132; -var v1135; -var v1136 = v1082; -var v1137 = v1030; -var v1138 = null; -v1135 = function (target, value) { var insTarget, insValue, instruction, j, len; if (target != null) { - target = target.valueOf(); -} if (value != null) { - value = value.valueOf(); -} if (v1091.isArray(target)) { - for (j = 0, len = target.length; j < len; j++) { - insTarget = target[j]; - this.instruction(insTarget); - } -} -else if (v1136(target)) { - for (insTarget in target) { - if (!v1137.call(target, insTarget)) - continue; - insValue = target[insTarget]; - this.instruction(insTarget, insValue); - } -} -else { - if (v1095(value)) { - value = value.apply(); - } - instruction = new v1138(this, target, value); - this.children.push(instruction); -} return this; }; -const v1139 = {}; -v1139.constructor = v1135; -v1135.prototype = v1139; -v1084.instruction = v1135; -var v1140; -v1140 = function (target, value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i); child = this.parent.instruction(target, value); v71.push.apply(this.parent.children, removed); return this; }; -const v1141 = {}; -v1141.constructor = v1140; -v1140.prototype = v1141; -v1084.instructionBefore = v1140; -var v1142; -v1142 = function (target, value) { var child, i, removed; i = this.parent.children.indexOf(this); removed = this.parent.children.splice(i + 1); child = this.parent.instruction(target, value); v71.push.apply(this.parent.children, removed); return this; }; -const v1143 = {}; -v1143.constructor = v1142; -v1142.prototype = v1143; -v1084.instructionAfter = v1142; -var v1144; -var v1145 = null; -v1144 = function (version, encoding, standalone) { var doc, xmldec; doc = this.document(); xmldec = new v1145(doc, version, encoding, standalone); if (doc.children[0] instanceof v1145) { - doc.children[0] = xmldec; -} -else { - doc.children.unshift(xmldec); -} return doc.root() || doc; }; -const v1146 = {}; -v1146.constructor = v1144; -v1144.prototype = v1146; -v1084.declaration = v1144; -var v1147; -var v1148 = null; -v1147 = function (pubID, sysID) { var child, doc, doctype, i, j, k, len, len1, ref1, ref2; doc = this.document(); doctype = new v1148(doc, pubID, sysID); ref1 = doc.children; for (i = j = 0, len = ref1.length; j < len; i = ++j) { - child = ref1[i]; - if (child instanceof v1148) { - doc.children[i] = doctype; - return doctype; - } -} ref2 = doc.children; for (i = k = 0, len1 = ref2.length; k < len1; i = ++k) { - child = ref2[i]; - if (child.isRoot) { - doc.children.splice(i, 0, doctype); - return doctype; - } -} doc.children.push(doctype); return doctype; }; -const v1149 = {}; -v1149.constructor = v1147; -v1147.prototype = v1149; -v1084.doctype = v1147; -var v1150; -v1150 = function () { if (this.isRoot) { - throw new v1107(\\"The root node has no parent. Use doc() if you need to get the document object.\\"); -} return this.parent; }; -const v1151 = {}; -v1151.constructor = v1150; -v1150.prototype = v1151; -v1084.up = v1150; -var v1152; -v1152 = function () { var node; node = this; while (node) { - if (node.isDocument) { - return node.rootObject; - } - else if (node.isRoot) { - return node; - } - else { - node = node.parent; - } -} }; -const v1153 = {}; -v1153.constructor = v1152; -v1152.prototype = v1153; -v1084.root = v1152; -var v1154; -v1154 = function () { var node; node = this; while (node) { - if (node.isDocument) { - return node; - } - else { - node = node.parent; - } -} }; -const v1155 = {}; -v1155.constructor = v1154; -v1154.prototype = v1155; -v1084.document = v1154; -var v1156; -v1156 = function (options) { return this.document().end(options); }; -const v1157 = {}; -v1157.constructor = v1156; -v1156.prototype = v1157; -v1084.end = v1156; -var v1158; -v1158 = function () { var i; i = this.parent.children.indexOf(this); if (i < 1) { - throw new v1107(\\"Already at the first node\\"); -} return this.parent.children[i - 1]; }; -const v1159 = {}; -v1159.constructor = v1158; -v1158.prototype = v1159; -v1084.prev = v1158; -var v1160; -v1160 = function () { var i; i = this.parent.children.indexOf(this); if (i === -1 || i === this.parent.children.length - 1) { - throw new v1107(\\"Already at the last node\\"); -} return this.parent.children[i + 1]; }; -const v1161 = {}; -v1161.constructor = v1160; -v1160.prototype = v1161; -v1084.next = v1160; -var v1162; -v1162 = function (doc) { var clonedRoot; clonedRoot = doc.root().clone(); clonedRoot.parent = this; clonedRoot.isRoot = false; this.children.push(clonedRoot); return this; }; -const v1163 = {}; -v1163.constructor = v1162; -v1162.prototype = v1163; -v1084.importDocument = v1162; -var v1164; -v1164 = function (name, attributes, text) { return this.element(name, attributes, text); }; -const v1165 = {}; -v1165.constructor = v1164; -v1164.prototype = v1165; -v1084.ele = v1164; -var v1166; -v1166 = function (name, attributes, text) { return this.node(name, attributes, text); }; -const v1167 = {}; -v1167.constructor = v1166; -v1166.prototype = v1167; -v1084.nod = v1166; -var v1168; -v1168 = function (value) { return this.text(value); }; -const v1169 = {}; -v1169.constructor = v1168; -v1168.prototype = v1169; -v1084.txt = v1168; -var v1170; -v1170 = function (value) { return this.cdata(value); }; -const v1171 = {}; -v1171.constructor = v1170; -v1170.prototype = v1171; -v1084.dat = v1170; -var v1172; -v1172 = function (value) { return this.comment(value); }; -const v1173 = {}; -v1173.constructor = v1172; -v1172.prototype = v1173; -v1084.com = v1172; -var v1174; -v1174 = function (target, value) { return this.instruction(target, value); }; -const v1175 = {}; -v1175.constructor = v1174; -v1174.prototype = v1175; -v1084.ins = v1174; -var v1176; -v1176 = function () { return this.document(); }; -const v1177 = {}; -v1177.constructor = v1176; -v1176.prototype = v1177; -v1084.doc = v1176; -var v1178; -v1178 = function (version, encoding, standalone) { return this.declaration(version, encoding, standalone); }; -const v1179 = {}; -v1179.constructor = v1178; -v1178.prototype = v1179; -v1084.dec = v1178; -var v1180; -v1180 = function (pubID, sysID) { return this.doctype(pubID, sysID); }; -const v1181 = {}; -v1181.constructor = v1180; -v1180.prototype = v1181; -v1084.dtd = v1180; -var v1182; -v1182 = function (name, attributes, text) { return this.element(name, attributes, text); }; -const v1183 = {}; -v1183.constructor = v1182; -v1182.prototype = v1183; -v1084.e = v1182; -var v1184; -v1184 = function (name, attributes, text) { return this.node(name, attributes, text); }; -const v1185 = {}; -v1185.constructor = v1184; -v1184.prototype = v1185; -v1084.n = v1184; -var v1186; -v1186 = function (value) { return this.text(value); }; -const v1187 = {}; -v1187.constructor = v1186; -v1186.prototype = v1187; -v1084.t = v1186; -var v1188; -v1188 = function (value) { return this.cdata(value); }; -const v1189 = {}; -v1189.constructor = v1188; -v1188.prototype = v1189; -v1084.d = v1188; -var v1190; -v1190 = function (value) { return this.comment(value); }; -const v1191 = {}; -v1191.constructor = v1190; -v1190.prototype = v1191; -v1084.c = v1190; -var v1192; -v1192 = function (value) { return this.raw(value); }; -const v1193 = {}; -v1193.constructor = v1192; -v1192.prototype = v1193; -v1084.r = v1192; -var v1194; -v1194 = function (target, value) { return this.instruction(target, value); }; -const v1195 = {}; -v1195.constructor = v1194; -v1194.prototype = v1195; -v1084.i = v1194; -var v1196; -v1196 = function () { return this.up(); }; -const v1197 = {}; -v1197.constructor = v1196; -v1196.prototype = v1197; -v1084.u = v1196; -var v1198; -v1198 = function (doc) { return this.importDocument(doc); }; -const v1199 = {}; -v1199.constructor = v1198; -v1198.prototype = v1199; -v1084.importXMLBuilder = v1198; -const v1200 = Object.create(v1084); -v1200.constructor = v1080; -var v1201; -v1201 = function (options) { return this.options.writer.set(options).declaration(this); }; -const v1202 = {}; -v1202.constructor = v1201; -v1201.prototype = v1202; -v1200.toString = v1201; -v1080.prototype = v1200; -v1080.__super__ = v1084; -var v1079 = v1080; -var v1204; -var v1205 = v1082; -v1204 = function XMLDocType(parent, pubID, sysID) { var ref, ref1; XMLDocType.__super__.constructor.call(this, parent); this.documentObject = parent; if (v1205(pubID)) { - ref = pubID, pubID = ref.pubID, sysID = ref.sysID; -} if (sysID == null) { - ref1 = [pubID, sysID], sysID = ref1[0], pubID = ref1[1]; -} if (pubID != null) { - this.pubID = this.stringify.dtdPubID(pubID); -} if (sysID != null) { - this.sysID = this.stringify.dtdSysID(sysID); -} }; -const v1206 = Object.create(v1084); -v1206.constructor = v1204; -var v1207; -var v1209; -var v1210 = v40; -var v1211 = v33; -v1209 = function XMLDTDElement(parent, name, value) { XMLDTDElement.__super__.constructor.call(this, parent); if (name == null) { - throw new v1210(\\"Missing DTD element name\\"); -} if (!value) { - value = \\"(#PCDATA)\\"; -} if (v1211.isArray(value)) { - value = \\"(\\" + value.join(\\",\\") + \\")\\"; -} this.name = this.stringify.eleName(name); this.value = this.stringify.dtdElementValue(value); }; -const v1212 = Object.create(v1084); -v1212.constructor = v1209; -var v1213; -v1213 = function (options) { return this.options.writer.set(options).dtdElement(this); }; -const v1214 = {}; -v1214.constructor = v1213; -v1213.prototype = v1214; -v1212.toString = v1213; -v1209.prototype = v1212; -v1209.__super__ = v1084; -var v1208 = v1209; -v1207 = function (name, value) { var child; child = new v1208(this, name, value); this.children.push(child); return this; }; -const v1215 = {}; -v1215.constructor = v1207; -v1207.prototype = v1215; -v1206.element = v1207; -var v1216; -var v1218; -var v1219 = v40; -var v1220 = v40; -var v1221 = v40; -var v1222 = v40; -var v1223 = v40; -v1218 = function XMLDTDAttList(parent, elementName, attributeName, attributeType, defaultValueType, defaultValue) { XMLDTDAttList.__super__.constructor.call(this, parent); if (elementName == null) { - throw new v1219(\\"Missing DTD element name\\"); -} if (attributeName == null) { - throw new v1219(\\"Missing DTD attribute name\\"); -} if (!attributeType) { - throw new v1220(\\"Missing DTD attribute type\\"); -} if (!defaultValueType) { - throw new v1221(\\"Missing DTD attribute default\\"); -} if (defaultValueType.indexOf(\\"#\\") !== 0) { - defaultValueType = \\"#\\" + defaultValueType; -} if (!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)) { - throw new v1222(\\"Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT\\"); -} if (defaultValue && !defaultValueType.match(/^(#FIXED|#DEFAULT)$/)) { - throw new v1223(\\"Default value only applies to #FIXED or #DEFAULT\\"); -} this.elementName = this.stringify.eleName(elementName); this.attributeName = this.stringify.attName(attributeName); this.attributeType = this.stringify.dtdAttType(attributeType); this.defaultValue = this.stringify.dtdAttDefault(defaultValue); this.defaultValueType = defaultValueType; }; -const v1224 = Object.create(v1084); -v1224.constructor = v1218; -var v1225; -v1225 = function (options) { return this.options.writer.set(options).dtdAttList(this); }; -const v1226 = {}; -v1226.constructor = v1225; -v1225.prototype = v1226; -v1224.toString = v1225; -v1218.prototype = v1224; -v1218.__super__ = v1084; -var v1217 = v1218; -v1216 = function (elementName, attributeName, attributeType, defaultValueType, defaultValue) { var child; child = new v1217(this, elementName, attributeName, attributeType, defaultValueType, defaultValue); this.children.push(child); return this; }; -const v1227 = {}; -v1227.constructor = v1216; -v1216.prototype = v1227; -v1206.attList = v1216; -var v1228; -var v1230; -var v1231 = v40; -var v1232 = v1082; -var v1233 = v40; -var v1234 = v40; -var v1235 = v40; -v1230 = function XMLDTDEntity(parent, pe, name, value) { XMLDTDEntity.__super__.constructor.call(this, parent); if (name == null) { - throw new v1231(\\"Missing entity name\\"); -} if (value == null) { - throw new v1231(\\"Missing entity value\\"); -} this.pe = !!pe; this.name = this.stringify.eleName(name); if (!v1232(value)) { - this.value = this.stringify.dtdEntityValue(value); -} -else { - if (!value.pubID && !value.sysID) { - throw new v1233(\\"Public and/or system identifiers are required for an external entity\\"); - } - if (value.pubID && !value.sysID) { - throw new v1234(\\"System identifier is required for a public external entity\\"); - } - if (value.pubID != null) { - this.pubID = this.stringify.dtdPubID(value.pubID); - } - if (value.sysID != null) { - this.sysID = this.stringify.dtdSysID(value.sysID); - } - if (value.nData != null) { - this.nData = this.stringify.dtdNData(value.nData); - } - if (this.pe && this.nData) { - throw new v1235(\\"Notation declaration is not allowed in a parameter entity\\"); - } -} }; -const v1236 = Object.create(v1084); -v1236.constructor = v1230; -var v1237; -v1237 = function (options) { return this.options.writer.set(options).dtdEntity(this); }; -const v1238 = {}; -v1238.constructor = v1237; -v1237.prototype = v1238; -v1236.toString = v1237; -v1230.prototype = v1236; -v1230.__super__ = v1084; -var v1229 = v1230; -v1228 = function (name, value) { var child; child = new v1229(this, false, name, value); this.children.push(child); return this; }; -const v1239 = {}; -v1239.constructor = v1228; -v1228.prototype = v1239; -v1206.entity = v1228; -var v1240; -var v1241 = v1230; -v1240 = function (name, value) { var child; child = new v1241(this, true, name, value); this.children.push(child); return this; }; -const v1242 = {}; -v1242.constructor = v1240; -v1240.prototype = v1242; -v1206.pEntity = v1240; -var v1243; -var v1245; -var v1246 = v40; -v1245 = function XMLDTDNotation(parent, name, value) { XMLDTDNotation.__super__.constructor.call(this, parent); if (name == null) { - throw new v1246(\\"Missing notation name\\"); -} if (!value.pubID && !value.sysID) { - throw new v1246(\\"Public or system identifiers are required for an external entity\\"); -} this.name = this.stringify.eleName(name); if (value.pubID != null) { - this.pubID = this.stringify.dtdPubID(value.pubID); -} if (value.sysID != null) { - this.sysID = this.stringify.dtdSysID(value.sysID); -} }; -const v1247 = Object.create(v1084); -v1247.constructor = v1245; -var v1248; -v1248 = function (options) { return this.options.writer.set(options).dtdNotation(this); }; -const v1249 = {}; -v1249.constructor = v1248; -v1248.prototype = v1249; -v1247.toString = v1248; -v1245.prototype = v1247; -v1245.__super__ = v1084; -var v1244 = v1245; -v1243 = function (name, value) { var child; child = new v1244(this, name, value); this.children.push(child); return this; }; -const v1250 = {}; -v1250.constructor = v1243; -v1243.prototype = v1250; -v1206.notation = v1243; -var v1251; -v1251 = function (options) { return this.options.writer.set(options).docType(this); }; -const v1252 = {}; -v1252.constructor = v1251; -v1251.prototype = v1252; -v1206.toString = v1251; -var v1253; -v1253 = function (name, value) { return this.element(name, value); }; -const v1254 = {}; -v1254.constructor = v1253; -v1253.prototype = v1254; -v1206.ele = v1253; -var v1255; -v1255 = function (elementName, attributeName, attributeType, defaultValueType, defaultValue) { return this.attList(elementName, attributeName, attributeType, defaultValueType, defaultValue); }; -const v1256 = {}; -v1256.constructor = v1255; -v1255.prototype = v1256; -v1206.att = v1255; -var v1257; -v1257 = function (name, value) { return this.entity(name, value); }; -const v1258 = {}; -v1258.constructor = v1257; -v1257.prototype = v1258; -v1206.ent = v1257; -var v1259; -v1259 = function (name, value) { return this.pEntity(name, value); }; -const v1260 = {}; -v1260.constructor = v1259; -v1259.prototype = v1260; -v1206.pent = v1259; -var v1261; -v1261 = function (name, value) { return this.notation(name, value); }; -const v1262 = {}; -v1262.constructor = v1261; -v1261.prototype = v1262; -v1206.not = v1261; -var v1263; -v1263 = function () { return this.root() || this.documentObject; }; -const v1264 = {}; -v1264.constructor = v1263; -v1263.prototype = v1264; -v1206.up = v1263; -v1204.prototype = v1206; -v1204.__super__ = v1084; -var v1203 = v1204; -var v1266; -var v1267 = v40; -v1266 = function XMLComment(parent, text) { XMLComment.__super__.constructor.call(this, parent); if (text == null) { - throw new v1267(\\"Missing comment text\\"); -} this.text = this.stringify.comment(text); }; -const v1268 = Object.create(v1084); -v1268.constructor = v1266; -var v1269; -var v1270 = v31; -v1269 = function () { return v1270.create(this); }; -const v1271 = {}; -v1271.constructor = v1269; -v1269.prototype = v1271; -v1268.clone = v1269; -var v1272; -v1272 = function (options) { return this.options.writer.set(options).comment(this); }; -const v1273 = {}; -v1273.constructor = v1272; -v1272.prototype = v1273; -v1268.toString = v1272; -v1266.prototype = v1268; -v1266.__super__ = v1084; -var v1265 = v1266; -var v1275; -var v1276 = v40; -v1275 = function XMLProcessingInstruction(parent, target, value) { XMLProcessingInstruction.__super__.constructor.call(this, parent); if (target == null) { - throw new v1276(\\"Missing instruction target\\"); -} this.target = this.stringify.insTarget(target); if (value) { - this.value = this.stringify.insValue(value); -} }; -const v1277 = Object.create(v1084); -v1277.constructor = v1275; -var v1278; -var v1279 = v31; -v1278 = function () { return v1279.create(this); }; -const v1280 = {}; -v1280.constructor = v1278; -v1278.prototype = v1280; -v1277.clone = v1278; -var v1281; -v1281 = function (options) { return this.options.writer.set(options).processingInstruction(this); }; -const v1282 = {}; -v1282.constructor = v1281; -v1281.prototype = v1282; -v1277.toString = v1281; -v1275.prototype = v1277; -v1275.__super__ = v1084; -var v1274 = v1275; -v1078 = function (doc) { var child, i, len, r, ref; this.textispresent = false; r = \\"\\"; ref = doc.children; for (i = 0, len = ref.length; i < len; i++) { - child = ref[i]; - r += (function () { switch (false) { - case !(child instanceof v1079): return this.declaration(child); - case !(child instanceof v1203): return this.docType(child); - case !(child instanceof v1265): return this.comment(child); - case !(child instanceof v1274): return this.processingInstruction(child); - default: return this.element(child, 0); - } }).call(this); -} if (this.pretty && r.slice(-this.newline.length) === this.newline) { - r = r.slice(0, -this.newline.length); -} return r; }; -const v1283 = {}; -v1283.constructor = v1078; -v1078.prototype = v1283; -v1077.document = v1078; -var v1284; -v1284 = function (att) { return \\" \\" + att.name + \\"=\\\\\\"\\" + att.value + \\"\\\\\\"\\"; }; -const v1285 = {}; -v1285.constructor = v1284; -v1284.prototype = v1285; -v1077.attribute = v1284; -var v1286; -v1286 = function (node, level) { return this.space(level) + \\"\\" + this.newline; }; -const v1287 = {}; -v1287.constructor = v1286; -v1286.prototype = v1287; -v1077.cdata = v1286; -var v1288; -v1288 = function (node, level) { return this.space(level) + \\"\\" + this.newline; }; -const v1289 = {}; -v1289.constructor = v1288; -v1288.prototype = v1289; -v1077.comment = v1288; -var v1290; -v1290 = function (node, level) { var r; r = this.space(level); r += \\"\\"; r += this.newline; return r; }; -const v1291 = {}; -v1291.constructor = v1290; -v1290.prototype = v1291; -v1077.declaration = v1290; -var v1292; -var v1293 = v1218; -var v1294 = v1209; -var v1295 = v1230; -var v1296 = v1245; -var v1298; -var v1299 = v40; -v1298 = function XMLCData(parent, text) { XMLCData.__super__.constructor.call(this, parent); if (text == null) { - throw new v1299(\\"Missing CDATA text\\"); -} this.text = this.stringify.cdata(text); }; -const v1300 = Object.create(v1084); -v1300.constructor = v1298; -var v1301; -var v1302 = v31; -v1301 = function () { return v1302.create(this); }; -const v1303 = {}; -v1303.constructor = v1301; -v1301.prototype = v1303; -v1300.clone = v1301; -var v1304; -v1304 = function (options) { return this.options.writer.set(options).cdata(this); }; -const v1305 = {}; -v1305.constructor = v1304; -v1304.prototype = v1305; -v1300.toString = v1304; -v1298.prototype = v1300; -v1298.__super__ = v1084; -var v1297 = v1298; -var v1306 = v1266; -var v1307 = v1275; -var v1308 = v40; -v1292 = function (node, level) { var child, i, len, r, ref; level || (level = 0); r = this.space(level); r += \\" 0) { - r += \\" [\\"; - r += this.newline; - ref = node.children; - for (i = 0, len = ref.length; i < len; i++) { - child = ref[i]; - r += (function () { switch (false) { - case !(child instanceof v1293): return this.dtdAttList(child, level + 1); - case !(child instanceof v1294): return this.dtdElement(child, level + 1); - case !(child instanceof v1295): return this.dtdEntity(child, level + 1); - case !(child instanceof v1296): return this.dtdNotation(child, level + 1); - case !(child instanceof v1297): return this.cdata(child, level + 1); - case !(child instanceof v1306): return this.comment(child, level + 1); - case !(child instanceof v1307): return this.processingInstruction(child, level + 1); - default: throw new v1308(\\"Unknown DTD node type: \\" + child.constructor.name); - } }).call(this); - } - r += \\"]\\"; -} r += this.spacebeforeslash + \\">\\"; r += this.newline; return r; }; -const v1309 = {}; -v1309.constructor = v1292; -v1292.prototype = v1309; -v1077.docType = v1292; -var v1310; -var v1311 = v1030; -var v1312 = v1298; -var v1313 = v1266; -var v1315; -var v1316 = v40; -v1315 = function XMLElement(parent, name, attributes) { XMLElement.__super__.constructor.call(this, parent); if (name == null) { - throw new v1316(\\"Missing element name\\"); -} this.name = this.stringify.eleName(name); this.attributes = {}; if (attributes != null) { - this.attribute(attributes); -} if (parent.isDocument) { - this.isRoot = true; - this.documentObject = parent; - parent.rootObject = this; -} }; -const v1317 = Object.create(v1084); -v1317.constructor = v1315; -var v1318; -var v1319 = v31; -var v1320 = v1030; -v1318 = function () { var att, attName, clonedSelf, ref1; clonedSelf = v1319.create(this); if (clonedSelf.isRoot) { - clonedSelf.documentObject = null; -} clonedSelf.attributes = {}; ref1 = this.attributes; for (attName in ref1) { - if (!v1320.call(ref1, attName)) - continue; - att = ref1[attName]; - clonedSelf.attributes[attName] = att.clone(); -} clonedSelf.children = []; this.children.forEach(function (child) { var clonedChild; clonedChild = child.clone(); clonedChild.parent = clonedSelf; return clonedSelf.children.push(clonedChild); }); return clonedSelf; }; -const v1321 = {}; -v1321.constructor = v1318; -v1318.prototype = v1321; -v1317.clone = v1318; -var v1322; -var v1323 = v1082; -var v1324 = v1030; -var v1325 = v1058; -var v1327; -var v1328 = v40; -var v1329 = v40; -v1327 = function XMLAttribute(parent, name, value) { this.options = parent.options; this.stringify = parent.stringify; if (name == null) { - throw new v1328(\\"Missing attribute name of element \\" + parent.name); -} if (value == null) { - throw new v1329(\\"Missing attribute value for attribute \\" + name + \\" of element \\" + parent.name); -} this.name = this.stringify.attName(name); this.value = this.stringify.attValue(value); }; -const v1330 = {}; -v1330.constructor = v1327; -var v1331; -var v1332 = v31; -v1331 = function () { return v1332.create(this); }; -const v1333 = {}; -v1333.constructor = v1331; -v1331.prototype = v1333; -v1330.clone = v1331; -var v1334; -v1334 = function (options) { return this.options.writer.set(options).attribute(this); }; -const v1335 = {}; -v1335.constructor = v1334; -v1334.prototype = v1335; -v1330.toString = v1334; -v1327.prototype = v1330; -var v1326 = v1327; -v1322 = function (name, value) { var attName, attValue; if (name != null) { - name = name.valueOf(); -} if (v1323(name)) { - for (attName in name) { - if (!v1324.call(name, attName)) - continue; - attValue = name[attName]; - this.attribute(attName, attValue); - } -} -else { - if (v1325(value)) { - value = value.apply(); - } - if (!this.options.skipNullAttributes || (value != null)) { - this.attributes[name] = new v1326(this, name, value); - } -} return this; }; -const v1336 = {}; -v1336.constructor = v1322; -v1322.prototype = v1336; -v1317.attribute = v1322; -var v1337; -var v1338 = v40; -var v1339 = v33; -v1337 = function (name) { var attName, i, len; if (name == null) { - throw new v1338(\\"Missing attribute name\\"); -} name = name.valueOf(); if (v1339.isArray(name)) { - for (i = 0, len = name.length; i < len; i++) { - attName = name[i]; - delete this.attributes[attName]; - } -} -else { - delete this.attributes[name]; -} return this; }; -const v1340 = {}; -v1340.constructor = v1337; -v1337.prototype = v1340; -v1317.removeAttribute = v1337; -var v1341; -v1341 = function (options) { return this.options.writer.set(options).element(this); }; -const v1342 = {}; -v1342.constructor = v1341; -v1341.prototype = v1342; -v1317.toString = v1341; -var v1343; -v1343 = function (name, value) { return this.attribute(name, value); }; -const v1344 = {}; -v1344.constructor = v1343; -v1343.prototype = v1344; -v1317.att = v1343; -var v1345; -v1345 = function (name, value) { return this.attribute(name, value); }; -const v1346 = {}; -v1346.constructor = v1345; -v1345.prototype = v1346; -v1317.a = v1345; -v1315.prototype = v1317; -v1315.__super__ = v1084; -var v1314 = v1315; -var v1348; -var v1349 = v40; -v1348 = function XMLRaw(parent, text) { XMLRaw.__super__.constructor.call(this, parent); if (text == null) { - throw new v1349(\\"Missing raw text\\"); -} this.value = this.stringify.raw(text); }; -const v1350 = Object.create(v1084); -v1350.constructor = v1348; -var v1351; -var v1352 = v31; -v1351 = function () { return v1352.create(this); }; -const v1353 = {}; -v1353.constructor = v1351; -v1351.prototype = v1353; -v1350.clone = v1351; -var v1354; -v1354 = function (options) { return this.options.writer.set(options).raw(this); }; -const v1355 = {}; -v1355.constructor = v1354; -v1354.prototype = v1355; -v1350.toString = v1354; -v1348.prototype = v1350; -v1348.__super__ = v1084; -var v1347 = v1348; -var v1357; -var v1358 = v40; -v1357 = function XMLText(parent, text) { XMLText.__super__.constructor.call(this, parent); if (text == null) { - throw new v1358(\\"Missing element text\\"); -} this.value = this.stringify.eleText(text); }; -const v1359 = Object.create(v1084); -v1359.constructor = v1357; -var v1360; -var v1361 = v31; -v1360 = function () { return v1361.create(this); }; -const v1362 = {}; -v1362.constructor = v1360; -v1360.prototype = v1362; -v1359.clone = v1360; -var v1363; -v1363 = function (options) { return this.options.writer.set(options).text(this); }; -const v1364 = {}; -v1364.constructor = v1363; -v1363.prototype = v1364; -v1359.toString = v1363; -v1357.prototype = v1359; -v1357.__super__ = v1084; -var v1356 = v1357; -var v1365 = v1275; -var v1366 = v40; -v1310 = function (node, level) { var att, child, i, j, len, len1, name, r, ref, ref1, ref2, space, textispresentwasset; level || (level = 0); textispresentwasset = false; if (this.textispresent) { - this.newline = \\"\\"; - this.pretty = false; -} -else { - this.newline = this.newlinedefault; - this.pretty = this.prettydefault; -} space = this.space(level); r = \\"\\"; r += space + \\"<\\" + node.name; ref = node.attributes; for (name in ref) { - if (!v1311.call(ref, name)) - continue; - att = ref[name]; - r += this.attribute(att); -} if (node.children.length === 0 || node.children.every(function (e) { return e.value === \\"\\"; })) { - if (this.allowEmpty) { - r += \\">\\" + this.newline; - } - else { - r += this.spacebeforeslash + \\"/>\\" + this.newline; - } -} -else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) { - r += \\">\\"; - r += node.children[0].value; - r += \\"\\" + this.newline; -} -else { - if (this.dontprettytextnodes) { - ref1 = node.children; - for (i = 0, len = ref1.length; i < len; i++) { - child = ref1[i]; - if (child.value != null) { - this.textispresent++; - textispresentwasset = true; - break; - } - } - } - if (this.textispresent) { - this.newline = \\"\\"; - this.pretty = false; - space = this.space(level); - } - r += \\">\\" + this.newline; - ref2 = node.children; - for (j = 0, len1 = ref2.length; j < len1; j++) { - child = ref2[j]; - r += (function () { switch (false) { - case !(child instanceof v1312): return this.cdata(child, level + 1); - case !(child instanceof v1313): return this.comment(child, level + 1); - case !(child instanceof v1314): return this.element(child, level + 1); - case !(child instanceof v1347): return this.raw(child, level + 1); - case !(child instanceof v1356): return this.text(child, level + 1); - case !(child instanceof v1365): return this.processingInstruction(child, level + 1); - default: throw new v1366(\\"Unknown XML node type: \\" + child.constructor.name); - } }).call(this); - } - if (textispresentwasset) { - this.textispresent--; - } - if (!this.textispresent) { - this.newline = this.newlinedefault; - this.pretty = this.prettydefault; - } - r += space + \\"\\" + this.newline; -} return r; }; -const v1367 = {}; -v1367.constructor = v1310; -v1310.prototype = v1367; -v1077.element = v1310; -var v1368; -v1368 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; -const v1369 = {}; -v1369.constructor = v1368; -v1368.prototype = v1369; -v1077.processingInstruction = v1368; -var v1370; -v1370 = function (node, level) { return this.space(level) + node.value + this.newline; }; -const v1371 = {}; -v1371.constructor = v1370; -v1370.prototype = v1371; -v1077.raw = v1370; -var v1372; -v1372 = function (node, level) { return this.space(level) + node.value + this.newline; }; -const v1373 = {}; -v1373.constructor = v1372; -v1372.prototype = v1373; -v1077.text = v1372; -var v1374; -v1374 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; -const v1375 = {}; -v1375.constructor = v1374; -v1374.prototype = v1375; -v1077.dtdAttList = v1374; -var v1376; -v1376 = function (node, level) { return this.space(level) + \\"\\" + this.newline; }; -const v1377 = {}; -v1377.constructor = v1376; -v1376.prototype = v1377; -v1077.dtdElement = v1376; -var v1378; -v1378 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; -const v1379 = {}; -v1379.constructor = v1378; -v1378.prototype = v1379; -v1077.dtdEntity = v1378; -var v1380; -v1380 = function (node, level) { var r; r = this.space(level) + \\"\\" + this.newline; return r; }; -const v1381 = {}; -v1381.constructor = v1380; -v1380.prototype = v1381; -v1077.dtdNotation = v1380; -var v1382; -var v1383 = v1315; -var v1384 = v1030; -v1382 = function (node, level) { var att, name, r, ref; level || (level = 0); if (node instanceof v1383) { - r = this.space(level) + \\"<\\" + node.name; - ref = node.attributes; - for (name in ref) { - if (!v1384.call(ref, name)) - continue; - att = ref[name]; - r += this.attribute(att); - } - r += (node.children ? \\">\\" : \\"/>\\") + this.newline; - return r; -} -else { - r = this.space(level) + \\"\\") + this.newline; - return r; -} }; -const v1385 = {}; -v1385.constructor = v1382; -v1382.prototype = v1385; -v1077.openNode = v1382; -var v1386; -var v1387 = v1204; -v1386 = function (node, level) { level || (level = 0); switch (false) { - case !(node instanceof v1383): return this.space(level) + \\"\\" + this.newline; - case !(node instanceof v1387): return this.space(level) + \\"]>\\" + this.newline; -} }; -const v1388 = {}; -v1388.constructor = v1386; -v1386.prototype = v1388; -v1077.closeNode = v1386; -v1067.prototype = v1077; -v1067.__super__ = v1068; -var v1066 = v1067; -var v1390; -var v1392; -v1392 = function (fn, me) { return function () { return fn.apply(me, arguments); }; }; -const v1393 = {}; -v1393.constructor = v1392; -v1392.prototype = v1393; -var v1391 = v1392; -var v1394 = v1030; -v1390 = function XMLStringifier(options) { this.assertLegalChar = v1391(this.assertLegalChar, this); var key, ref, value; options || (options = {}); this.noDoubleEncoding = options.noDoubleEncoding; ref = options.stringify || {}; for (key in ref) { - if (!v1394.call(ref, key)) - continue; - value = ref[key]; - this[key] = value; -} }; -const v1395 = {}; -v1395.constructor = v1390; -var v1396; -v1396 = function (val) { val = \\"\\" + val || \\"\\"; return this.assertLegalChar(val); }; -const v1397 = {}; -v1397.constructor = v1396; -v1396.prototype = v1397; -v1395.eleName = v1396; -var v1398; -v1398 = function (val) { val = \\"\\" + val || \\"\\"; return this.assertLegalChar(this.elEscape(val)); }; -const v1399 = {}; -v1399.constructor = v1398; -v1398.prototype = v1399; -v1395.eleText = v1398; -var v1400; -v1400 = function (val) { val = \\"\\" + val || \\"\\"; val = val.replace(\\"]]>\\", \\"]]]]>\\"); return this.assertLegalChar(val); }; -const v1401 = {}; -v1401.constructor = v1400; -v1400.prototype = v1401; -v1395.cdata = v1400; -var v1402; -var v1403 = v40; -v1402 = function (val) { val = \\"\\" + val || \\"\\"; if (val.match(/--/)) { - throw new v1403(\\"Comment text cannot contain double-hypen: \\" + val); -} return this.assertLegalChar(val); }; -const v1404 = {}; -v1404.constructor = v1402; -v1402.prototype = v1404; -v1395.comment = v1402; -var v1405; -v1405 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1406 = {}; -v1406.constructor = v1405; -v1405.prototype = v1406; -v1395.raw = v1405; -var v1407; -v1407 = function (val) { return val = \\"\\" + val || \\"\\"; }; -const v1408 = {}; -v1408.constructor = v1407; -v1407.prototype = v1408; -v1395.attName = v1407; -var v1409; -v1409 = function (val) { val = \\"\\" + val || \\"\\"; return this.attEscape(val); }; -const v1410 = {}; -v1410.constructor = v1409; -v1409.prototype = v1410; -v1395.attValue = v1409; -var v1411; -v1411 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1412 = {}; -v1412.constructor = v1411; -v1411.prototype = v1412; -v1395.insTarget = v1411; -var v1413; -v1413 = function (val) { val = \\"\\" + val || \\"\\"; if (val.match(/\\\\?>/)) { - throw new v1403(\\"Invalid processing instruction value: \\" + val); -} return val; }; -const v1414 = {}; -v1414.constructor = v1413; -v1413.prototype = v1414; -v1395.insValue = v1413; -var v1415; -var v1416 = v40; -v1415 = function (val) { val = \\"\\" + val || \\"\\"; if (!val.match(/1\\\\.[0-9]+/)) { - throw new v1416(\\"Invalid version number: \\" + val); -} return val; }; -const v1417 = {}; -v1417.constructor = v1415; -v1415.prototype = v1417; -v1395.xmlVersion = v1415; -var v1418; -var v1419 = v40; -v1418 = function (val) { val = \\"\\" + val || \\"\\"; if (!val.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)) { - throw new v1419(\\"Invalid encoding: \\" + val); -} return val; }; -const v1420 = {}; -v1420.constructor = v1418; -v1418.prototype = v1420; -v1395.xmlEncoding = v1418; -var v1421; -v1421 = function (val) { if (val) { - return \\"yes\\"; -} -else { - return \\"no\\"; -} }; -const v1422 = {}; -v1422.constructor = v1421; -v1421.prototype = v1422; -v1395.xmlStandalone = v1421; -var v1423; -v1423 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1424 = {}; -v1424.constructor = v1423; -v1423.prototype = v1424; -v1395.dtdPubID = v1423; -var v1425; -v1425 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1426 = {}; -v1426.constructor = v1425; -v1425.prototype = v1426; -v1395.dtdSysID = v1425; -var v1427; -v1427 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1428 = {}; -v1428.constructor = v1427; -v1427.prototype = v1428; -v1395.dtdElementValue = v1427; -var v1429; -v1429 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1430 = {}; -v1430.constructor = v1429; -v1429.prototype = v1430; -v1395.dtdAttType = v1429; -var v1431; -v1431 = function (val) { if (val != null) { - return \\"\\" + val || \\"\\"; -} -else { - return val; -} }; -const v1432 = {}; -v1432.constructor = v1431; -v1431.prototype = v1432; -v1395.dtdAttDefault = v1431; -var v1433; -v1433 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1434 = {}; -v1434.constructor = v1433; -v1433.prototype = v1434; -v1395.dtdEntityValue = v1433; -var v1435; -v1435 = function (val) { return \\"\\" + val || \\"\\"; }; -const v1436 = {}; -v1436.constructor = v1435; -v1435.prototype = v1436; -v1395.dtdNData = v1435; -v1395.convertAttKey = \\"@\\"; -v1395.convertPIKey = \\"?\\"; -v1395.convertTextKey = \\"#text\\"; -v1395.convertCDataKey = \\"#cdata\\"; -v1395.convertCommentKey = \\"#comment\\"; -v1395.convertRawKey = \\"#raw\\"; -var v1437; -var v1438 = v40; -v1437 = function (str) { var res; res = str.match(/[\\\\0\\\\uFFFE\\\\uFFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF]/); if (res) { - throw new v1438(\\"Invalid character in string: \\" + str + \\" at index \\" + res.index); -} return str; }; -const v1439 = {}; -v1439.constructor = v1437; -v1437.prototype = v1439; -v1395.assertLegalChar = v1437; -var v1440; -v1440 = function (str) { var ampregex; ampregex = this.noDoubleEncoding ? /(?!&\\\\S+;)&/g : /&/g; return str.replace(ampregex, \\"&\\").replace(//g, \\">\\").replace(/\\\\r/g, \\" \\"); }; -const v1441 = {}; -v1441.constructor = v1440; -v1440.prototype = v1441; -v1395.elEscape = v1440; -var v1442; -v1442 = function (str) { var ampregex; ampregex = this.noDoubleEncoding ? /(?!&\\\\S+;)&/g : /&/g; return str.replace(ampregex, \\"&\\").replace(/= 0) { - this.up(); -} return this.onEnd(); }; -const v1524 = {}; -v1524.constructor = v1523; -v1523.prototype = v1524; -v1465.end = v1523; -var v1525; -v1525 = function () { if (this.currentNode) { - this.currentNode.children = true; - return this.openNode(this.currentNode); -} }; -const v1526 = {}; -v1526.constructor = v1525; -v1525.prototype = v1526; -v1465.openCurrent = v1525; -var v1527; -var v1528 = v1315; -v1527 = function (node) { if (!node.isOpen) { - if (!this.root && this.currentLevel === 0 && node instanceof v1528) { - this.root = node; - } - this.onData(this.writer.openNode(node, this.currentLevel)); - return node.isOpen = true; -} }; -const v1529 = {}; -v1529.constructor = v1527; -v1527.prototype = v1529; -v1465.openNode = v1527; -var v1530; -v1530 = function (node) { if (!node.isClosed) { - this.onData(this.writer.closeNode(node, this.currentLevel)); - return node.isClosed = true; -} }; -const v1531 = {}; -v1531.constructor = v1530; -v1530.prototype = v1531; -v1465.closeNode = v1530; -var v1532; -v1532 = function (chunk) { this.documentStarted = true; return this.onDataCallback(chunk); }; -const v1533 = {}; -v1533.constructor = v1532; -v1532.prototype = v1533; -v1465.onData = v1532; -var v1534; -v1534 = function () { this.documentCompleted = true; return this.onEndCallback(); }; -const v1535 = {}; -v1535.constructor = v1534; -v1534.prototype = v1535; -v1465.onEnd = v1534; -var v1536; -v1536 = function () { return this.element.apply(this, arguments); }; -const v1537 = {}; -v1537.constructor = v1536; -v1536.prototype = v1537; -v1465.ele = v1536; -var v1538; -v1538 = function (name, attributes, text) { return this.node(name, attributes, text); }; -const v1539 = {}; -v1539.constructor = v1538; -v1538.prototype = v1539; -v1465.nod = v1538; -var v1540; -v1540 = function (value) { return this.text(value); }; -const v1541 = {}; -v1541.constructor = v1540; -v1540.prototype = v1541; -v1465.txt = v1540; -var v1542; -v1542 = function (value) { return this.cdata(value); }; -const v1543 = {}; -v1543.constructor = v1542; -v1542.prototype = v1543; -v1465.dat = v1542; -var v1544; -v1544 = function (value) { return this.comment(value); }; -const v1545 = {}; -v1545.constructor = v1544; -v1544.prototype = v1545; -v1465.com = v1544; -var v1546; -v1546 = function (target, value) { return this.instruction(target, value); }; -const v1547 = {}; -v1547.constructor = v1546; -v1546.prototype = v1547; -v1465.ins = v1546; -var v1548; -v1548 = function (version, encoding, standalone) { return this.declaration(version, encoding, standalone); }; -const v1549 = {}; -v1549.constructor = v1548; -v1548.prototype = v1549; -v1465.dec = v1548; -var v1550; -v1550 = function (root, pubID, sysID) { return this.doctype(root, pubID, sysID); }; -const v1551 = {}; -v1551.constructor = v1550; -v1550.prototype = v1551; -v1465.dtd = v1550; -var v1552; -v1552 = function (name, attributes, text) { return this.element(name, attributes, text); }; -const v1553 = {}; -v1553.constructor = v1552; -v1552.prototype = v1553; -v1465.e = v1552; -var v1554; -v1554 = function (name, attributes, text) { return this.node(name, attributes, text); }; -const v1555 = {}; -v1555.constructor = v1554; -v1554.prototype = v1555; -v1465.n = v1554; -var v1556; -v1556 = function (value) { return this.text(value); }; -const v1557 = {}; -v1557.constructor = v1556; -v1556.prototype = v1557; -v1465.t = v1556; -var v1558; -v1558 = function (value) { return this.cdata(value); }; -const v1559 = {}; -v1559.constructor = v1558; -v1558.prototype = v1559; -v1465.d = v1558; -var v1560; -v1560 = function (value) { return this.comment(value); }; -const v1561 = {}; -v1561.constructor = v1560; -v1560.prototype = v1561; -v1465.c = v1560; -var v1562; -v1562 = function (value) { return this.raw(value); }; -const v1563 = {}; -v1563.constructor = v1562; -v1562.prototype = v1563; -v1465.r = v1562; -var v1564; -v1564 = function (target, value) { return this.instruction(target, value); }; -const v1565 = {}; -v1565.constructor = v1564; -v1564.prototype = v1565; -v1465.i = v1564; -var v1566; -var v1567 = v1204; -v1566 = function () { if (this.currentNode && this.currentNode instanceof v1567) { - return this.attList.apply(this, arguments); -} -else { - return this.attribute.apply(this, arguments); -} }; -const v1568 = {}; -v1568.constructor = v1566; -v1566.prototype = v1568; -v1465.att = v1566; -var v1569; -v1569 = function () { if (this.currentNode && this.currentNode instanceof v1504) { - return this.attList.apply(this, arguments); -} -else { - return this.attribute.apply(this, arguments); -} }; -const v1570 = {}; -v1570.constructor = v1569; -v1569.prototype = v1570; -v1465.a = v1569; -var v1571; -v1571 = function (name, value) { return this.entity(name, value); }; -const v1572 = {}; -v1572.constructor = v1571; -v1571.prototype = v1572; -v1465.ent = v1571; -var v1573; -v1573 = function (name, value) { return this.pEntity(name, value); }; -const v1574 = {}; -v1574.constructor = v1573; -v1573.prototype = v1574; -v1465.pent = v1573; -var v1575; -v1575 = function (name, value) { return this.notation(name, value); }; -const v1576 = {}; -v1576.constructor = v1575; -v1575.prototype = v1576; -v1465.not = v1575; -v1461.prototype = v1465; -var v1460 = v1461; -v1458 = function (options, onData, onEnd) { var ref1; if (v1459(options)) { - ref1 = [options, onData], onData = ref1[0], onEnd = ref1[1]; - options = {}; -} if (onData) { - return new v1460(options, onData, onEnd); -} -else { - return new v1064(options); -} }; -const v1577 = {}; -v1577.constructor = v1458; -v1458.prototype = v1577; -v1050.begin = v1458; -var v1578; -var v1579 = v1067; -v1578 = function (options) { return new v1579(options); }; -const v1580 = {}; -v1580.constructor = v1578; -v1578.prototype = v1580; -v1050.stringWriter = v1578; -var v1581; -var v1583; -v1583 = function XMLStreamWriter(stream, options) { XMLStreamWriter.__super__.constructor.call(this, options); this.stream = stream; }; -const v1584 = Object.create(v1068); -v1584.constructor = v1583; -var v1585; -var v1586 = v1080; -var v1587 = v1204; -var v1588 = v1266; -var v1589 = v1275; -v1585 = function (doc) { var child, i, j, len, len1, ref, ref1, results; ref = doc.children; for (i = 0, len = ref.length; i < len; i++) { - child = ref[i]; - child.isLastRootNode = false; -} doc.children[doc.children.length - 1].isLastRootNode = true; ref1 = doc.children; results = []; for (j = 0, len1 = ref1.length; j < len1; j++) { - child = ref1[j]; - switch (false) { - case !(child instanceof v1586): - results.push(this.declaration(child)); - break; - case !(child instanceof v1587): - results.push(this.docType(child)); - break; - case !(child instanceof v1588): - results.push(this.comment(child)); - break; - case !(child instanceof v1589): - results.push(this.processingInstruction(child)); - break; - default: results.push(this.element(child)); - } -} return results; }; -const v1590 = {}; -v1590.constructor = v1585; -v1585.prototype = v1590; -v1584.document = v1585; -var v1591; -v1591 = function (att) { return this.stream.write(\\" \\" + att.name + \\"=\\\\\\"\\" + att.value + \\"\\\\\\"\\"); }; -const v1592 = {}; -v1592.constructor = v1591; -v1591.prototype = v1592; -v1584.attribute = v1591; -var v1593; -v1593 = function (node, level) { return this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1594 = {}; -v1594.constructor = v1593; -v1593.prototype = v1594; -v1584.cdata = v1593; -var v1595; -v1595 = function (node, level) { return this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1596 = {}; -v1596.constructor = v1595; -v1595.prototype = v1596; -v1584.comment = v1595; -var v1597; -v1597 = function (node, level) { this.stream.write(this.space(level)); this.stream.write(\\"\\"); return this.stream.write(this.endline(node)); }; -const v1598 = {}; -v1598.constructor = v1597; -v1597.prototype = v1598; -v1584.declaration = v1597; -var v1599; -var v1600 = v1218; -var v1601 = v1209; -var v1602 = v1230; -var v1603 = v1245; -var v1604 = v1298; -var v1605 = v1266; -var v1606 = v1275; -var v1607 = v40; -v1599 = function (node, level) { var child, i, len, ref; level || (level = 0); this.stream.write(this.space(level)); this.stream.write(\\" 0) { - this.stream.write(\\" [\\"); - this.stream.write(this.endline(node)); - ref = node.children; - for (i = 0, len = ref.length; i < len; i++) { - child = ref[i]; - switch (false) { - case !(child instanceof v1600): - this.dtdAttList(child, level + 1); - break; - case !(child instanceof v1601): - this.dtdElement(child, level + 1); - break; - case !(child instanceof v1602): - this.dtdEntity(child, level + 1); - break; - case !(child instanceof v1603): - this.dtdNotation(child, level + 1); - break; - case !(child instanceof v1604): - this.cdata(child, level + 1); - break; - case !(child instanceof v1605): - this.comment(child, level + 1); - break; - case !(child instanceof v1606): - this.processingInstruction(child, level + 1); - break; - default: throw new v1607(\\"Unknown DTD node type: \\" + child.constructor.name); - } - } - this.stream.write(\\"]\\"); -} this.stream.write(this.spacebeforeslash + \\">\\"); return this.stream.write(this.endline(node)); }; -const v1608 = {}; -v1608.constructor = v1599; -v1599.prototype = v1608; -v1584.docType = v1599; -var v1609; -var v1610 = v1030; -var v1611 = v1298; -var v1612 = v1266; -var v1613 = v1315; -var v1614 = v1348; -var v1615 = v1357; -var v1616 = v40; -v1609 = function (node, level) { var att, child, i, len, name, ref, ref1, space; level || (level = 0); space = this.space(level); this.stream.write(space + \\"<\\" + node.name); ref = node.attributes; for (name in ref) { - if (!v1610.call(ref, name)) - continue; - att = ref[name]; - this.attribute(att); -} if (node.children.length === 0 || node.children.every(function (e) { return e.value === \\"\\"; })) { - if (this.allowEmpty) { - this.stream.write(\\">\\"); - } - else { - this.stream.write(this.spacebeforeslash + \\"/>\\"); - } -} -else if (this.pretty && node.children.length === 1 && (node.children[0].value != null)) { - this.stream.write(\\">\\"); - this.stream.write(node.children[0].value); - this.stream.write(\\"\\"); -} -else { - this.stream.write(\\">\\" + this.newline); - ref1 = node.children; - for (i = 0, len = ref1.length; i < len; i++) { - child = ref1[i]; - switch (false) { - case !(child instanceof v1611): - this.cdata(child, level + 1); - break; - case !(child instanceof v1612): - this.comment(child, level + 1); - break; - case !(child instanceof v1613): - this.element(child, level + 1); - break; - case !(child instanceof v1614): - this.raw(child, level + 1); - break; - case !(child instanceof v1615): - this.text(child, level + 1); - break; - case !(child instanceof v1606): - this.processingInstruction(child, level + 1); - break; - default: throw new v1616(\\"Unknown XML node type: \\" + child.constructor.name); - } - } - this.stream.write(space + \\"\\"); -} return this.stream.write(this.endline(node)); }; -const v1617 = {}; -v1617.constructor = v1609; -v1609.prototype = v1617; -v1584.element = v1609; -var v1618; -v1618 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1619 = {}; -v1619.constructor = v1618; -v1618.prototype = v1619; -v1584.processingInstruction = v1618; -var v1620; -v1620 = function (node, level) { return this.stream.write(this.space(level) + node.value + this.endline(node)); }; -const v1621 = {}; -v1621.constructor = v1620; -v1620.prototype = v1621; -v1584.raw = v1620; -var v1622; -v1622 = function (node, level) { return this.stream.write(this.space(level) + node.value + this.endline(node)); }; -const v1623 = {}; -v1623.constructor = v1622; -v1622.prototype = v1623; -v1584.text = v1622; -var v1624; -v1624 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1625 = {}; -v1625.constructor = v1624; -v1624.prototype = v1625; -v1584.dtdAttList = v1624; -var v1626; -v1626 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1627 = {}; -v1627.constructor = v1626; -v1626.prototype = v1627; -v1584.dtdElement = v1626; -var v1628; -v1628 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1629 = {}; -v1629.constructor = v1628; -v1628.prototype = v1629; -v1584.dtdEntity = v1628; -var v1630; -v1630 = function (node, level) { this.stream.write(this.space(level) + \\"\\" + this.endline(node)); }; -const v1631 = {}; -v1631.constructor = v1630; -v1630.prototype = v1631; -v1584.dtdNotation = v1630; -var v1632; -v1632 = function (node) { if (!node.isLastRootNode) { - return this.newline; -} -else { - return \\"\\"; -} }; -const v1633 = {}; -v1633.constructor = v1632; -v1632.prototype = v1633; -v1584.endline = v1632; -v1583.prototype = v1584; -v1583.__super__ = v1068; -var v1582 = v1583; -v1581 = function (stream, options) { return new v1582(stream, options); }; -const v1634 = {}; -v1634.constructor = v1581; -v1581.prototype = v1634; -v1050.streamWriter = v1581; -var v1049 = v1050; -v1032 = function (rootObj) { var attrkey, charkey, render, rootElement, rootName; attrkey = this.options.attrkey; charkey = this.options.charkey; if ((v1033.keys(rootObj).length === 1) && (this.options.rootName === v1028[\\"0.2\\"].rootName)) { - rootName = v1034.keys(rootObj)[0]; - rootObj = rootObj[rootName]; -} -else { - rootName = this.options.rootName; -} render = (function (_this) { return function (element, obj) { var attr, child, entry, index, key, value; if (typeof obj !== \\"object\\") { - if (_this.options.cdata && v1035(obj)) { - element.raw(v1038(obj)); - } - else { - element.txt(obj); - } -} -else if (v1044.isArray(obj)) { - for (index in obj) { - if (!v1045.call(obj, index)) - continue; - child = obj[index]; - for (key in child) { - entry = child[key]; - element = render(element.ele(key), entry).up(); - } - } -} -else { - for (key in obj) { - if (!v1046.call(obj, key)) - continue; - child = obj[key]; - if (key === attrkey) { - if (typeof child === \\"object\\") { - for (attr in child) { - value = child[attr]; - element = element.att(attr, value); - } - } - } - else if (key === charkey) { - if (_this.options.cdata && v1047(child)) { - element = element.raw(v1038(child)); - } - else { - element = element.txt(child); - } - } - else if (v1044.isArray(child)) { - for (index in child) { - if (!v1045.call(child, index)) - continue; - entry = child[index]; - if (typeof entry === \\"string\\") { - if (_this.options.cdata && v1035(entry)) { - element = element.ele(key).raw(v1038(entry)).up(); - } - else { - element = element.ele(key, entry).up(); - } - } - else { - element = render(element.ele(key), entry).up(); - } - } - } - else if (typeof child === \\"object\\") { - element = render(element.ele(key), child).up(); - } - else { - if (typeof child === \\"string\\" && _this.options.cdata && v1048(child)) { - element = element.ele(key).raw(v1038(child)).up(); - } - else { - if (child == null) { - child = \\"\\"; - } - element = element.ele(key, child.toString()).up(); - } - } - } -} return element; }; })(this); rootElement = v1049.create(rootName, this.options.xmldec, this.options.doctype, { headless: this.options.headless, allowSurrogateChars: this.options.allowSurrogateChars }); return render(rootElement, rootObj).end(this.options.renderOpts); }; -const v1635 = {}; -v1635.constructor = v1032; -v1032.prototype = v1635; -v1031.buildObject = v1032; -v1027.prototype = v1031; -v1001.Builder = v1027; -var v1636; -var v1638; -v1638 = function (fn, me) { return function () { return fn.apply(me, arguments); }; }; -const v1639 = {}; -v1639.constructor = v1638; -v1638.prototype = v1639; -var v1637 = v1638; -var v1640 = v1638; -var v1641 = v1638; -var v1642 = v1638; -const v1644 = Object.create(v646); -v1644.Parser = v1636; -var v1645; -var v1646 = v1644; -v1645 = function (str, a, b) { var cb, options, parser; if (b != null) { - if (typeof b === \\"function\\") { - cb = b; - } - if (typeof a === \\"object\\") { - options = a; - } -} -else { - if (typeof a === \\"function\\") { - cb = a; - } - options = {}; -} parser = new v1646.Parser(options); return parser.parseString(str, cb); }; -const v1647 = {}; -v1647.constructor = v1645; -v1645.prototype = v1647; -v1644.parseString = v1645; -var v1643 = v1644; -var v1648 = v1644; -var v1649 = v1002; -var v1650 = v1030; -var v1651 = v1007; -v1636 = function Parser(opts) { this.parseString = v1637(this.parseString, this); this.reset = v1640(this.reset, this); this.assignOrPush = v1641(this.assignOrPush, this); this.processAsync = v1642(this.processAsync, this); var key, ref, value; if (!(this instanceof v1643.Parser)) { - return new v1648.Parser(opts); -} this.options = {}; ref = v1649[\\"0.2\\"]; for (key in ref) { - if (!v1650.call(ref, key)) - continue; - value = ref[key]; - this.options[key] = value; -} for (key in opts) { - if (!v1650.call(opts, key)) - continue; - value = opts[key]; - this.options[key] = value; -} if (this.options.xmlns) { - this.options.xmlnskey = this.options.attrkey + \\"ns\\"; -} if (this.options.normalizeTags) { - if (!this.options.tagNameProcessors) { - this.options.tagNameProcessors = []; - } - this.options.tagNameProcessors.unshift(v1651.normalize); -} this.reset(); }; -const v1652 = process.__signal_exit_emitter__.constructor.prototype; -const v1653 = Object.create(v1652); -v1653.constructor = v1636; -var v1654; -const v1656 = require(\\"timers\\").setImmediate; -var v1655 = v1656; -v1654 = function () { var chunk, err; try { - if (this.remaining.length <= this.options.chunkSize) { - chunk = this.remaining; - this.remaining = \\"\\"; - this.saxParser = this.saxParser.write(chunk); - return this.saxParser.close(); - } - else { - chunk = this.remaining.substr(0, this.options.chunkSize); - this.remaining = this.remaining.substr(this.options.chunkSize, this.remaining.length); - this.saxParser = this.saxParser.write(chunk); - return v1655(this.processAsync); - } -} -catch (error1) { - err = error1; - if (!this.saxParser.errThrown) { - this.saxParser.errThrown = true; - return this.emit(err); - } -} }; -const v1657 = {}; -v1657.constructor = v1654; -v1654.prototype = v1657; -v1653.processAsync = v1654; -var v1658; -var v1659 = v33; -v1658 = function (obj, key, newValue) { if (!(key in obj)) { - if (!this.options.explicitArray) { - return obj[key] = newValue; - } - else { - return obj[key] = [newValue]; - } -} -else { - if (!(obj[key] instanceof v1659)) { - obj[key] = [obj[key]]; - } - return obj[key].push(newValue); -} }; -const v1660 = {}; -v1660.constructor = v1658; -v1658.prototype = v1660; -v1653.assignOrPush = v1658; -var v1661; -const v1663 = Object.create(v646); -var v1664; -var v1666; -var v1668; -const v1670 = []; -v1670.push(\\"comment\\", \\"sgmlDecl\\", \\"textNode\\", \\"tagName\\", \\"doctype\\", \\"procInstName\\", \\"procInstBody\\", \\"entity\\", \\"attribName\\", \\"attribValue\\", \\"cdata\\", \\"script\\"); -var v1669 = v1670; -v1668 = function clearBuffers(parser) { for (var i = 0, l = 12; i < l; i++) { - parser[v1669[i]] = \\"\\"; -} }; -const v1671 = {}; -v1671.constructor = v1668; -v1668.prototype = v1671; -var v1667 = v1668; -var v1672 = v31; -const v1673 = {}; -v1673.amp = \\"&\\"; -v1673.gt = \\">\\"; -v1673.lt = \\"<\\"; -v1673.quot = \\"\\\\\\"\\"; -v1673.apos = \\"'\\"; -var v1674 = v31; -const v1675 = {}; -v1675.amp = \\"&\\"; -v1675.gt = \\">\\"; -v1675.lt = \\"<\\"; -v1675.quot = \\"\\\\\\"\\"; -v1675.apos = \\"'\\"; -v1675.AElig = \\"\\\\u00C6\\"; -v1675.Aacute = \\"\\\\u00C1\\"; -v1675.Acirc = \\"\\\\u00C2\\"; -v1675.Agrave = \\"\\\\u00C0\\"; -v1675.Aring = \\"\\\\u00C5\\"; -v1675.Atilde = \\"\\\\u00C3\\"; -v1675.Auml = \\"\\\\u00C4\\"; -v1675.Ccedil = \\"\\\\u00C7\\"; -v1675.ETH = \\"\\\\u00D0\\"; -v1675.Eacute = \\"\\\\u00C9\\"; -v1675.Ecirc = \\"\\\\u00CA\\"; -v1675.Egrave = \\"\\\\u00C8\\"; -v1675.Euml = \\"\\\\u00CB\\"; -v1675.Iacute = \\"\\\\u00CD\\"; -v1675.Icirc = \\"\\\\u00CE\\"; -v1675.Igrave = \\"\\\\u00CC\\"; -v1675.Iuml = \\"\\\\u00CF\\"; -v1675.Ntilde = \\"\\\\u00D1\\"; -v1675.Oacute = \\"\\\\u00D3\\"; -v1675.Ocirc = \\"\\\\u00D4\\"; -v1675.Ograve = \\"\\\\u00D2\\"; -v1675.Oslash = \\"\\\\u00D8\\"; -v1675.Otilde = \\"\\\\u00D5\\"; -v1675.Ouml = \\"\\\\u00D6\\"; -v1675.THORN = \\"\\\\u00DE\\"; -v1675.Uacute = \\"\\\\u00DA\\"; -v1675.Ucirc = \\"\\\\u00DB\\"; -v1675.Ugrave = \\"\\\\u00D9\\"; -v1675.Uuml = \\"\\\\u00DC\\"; -v1675.Yacute = \\"\\\\u00DD\\"; -v1675.aacute = \\"\\\\u00E1\\"; -v1675.acirc = \\"\\\\u00E2\\"; -v1675.aelig = \\"\\\\u00E6\\"; -v1675.agrave = \\"\\\\u00E0\\"; -v1675.aring = \\"\\\\u00E5\\"; -v1675.atilde = \\"\\\\u00E3\\"; -v1675.auml = \\"\\\\u00E4\\"; -v1675.ccedil = \\"\\\\u00E7\\"; -v1675.eacute = \\"\\\\u00E9\\"; -v1675.ecirc = \\"\\\\u00EA\\"; -v1675.egrave = \\"\\\\u00E8\\"; -v1675.eth = \\"\\\\u00F0\\"; -v1675.euml = \\"\\\\u00EB\\"; -v1675.iacute = \\"\\\\u00ED\\"; -v1675.icirc = \\"\\\\u00EE\\"; -v1675.igrave = \\"\\\\u00EC\\"; -v1675.iuml = \\"\\\\u00EF\\"; -v1675.ntilde = \\"\\\\u00F1\\"; -v1675.oacute = \\"\\\\u00F3\\"; -v1675.ocirc = \\"\\\\u00F4\\"; -v1675.ograve = \\"\\\\u00F2\\"; -v1675.oslash = \\"\\\\u00F8\\"; -v1675.otilde = \\"\\\\u00F5\\"; -v1675.ouml = \\"\\\\u00F6\\"; -v1675.szlig = \\"\\\\u00DF\\"; -v1675.thorn = \\"\\\\u00FE\\"; -v1675.uacute = \\"\\\\u00FA\\"; -v1675.ucirc = \\"\\\\u00FB\\"; -v1675.ugrave = \\"\\\\u00F9\\"; -v1675.uuml = \\"\\\\u00FC\\"; -v1675.yacute = \\"\\\\u00FD\\"; -v1675.yuml = \\"\\\\u00FF\\"; -v1675.copy = \\"\\\\u00A9\\"; -v1675.reg = \\"\\\\u00AE\\"; -v1675.nbsp = \\"\\\\u00A0\\"; -v1675.iexcl = \\"\\\\u00A1\\"; -v1675.cent = \\"\\\\u00A2\\"; -v1675.pound = \\"\\\\u00A3\\"; -v1675.curren = \\"\\\\u00A4\\"; -v1675.yen = \\"\\\\u00A5\\"; -v1675.brvbar = \\"\\\\u00A6\\"; -v1675.sect = \\"\\\\u00A7\\"; -v1675.uml = \\"\\\\u00A8\\"; -v1675.ordf = \\"\\\\u00AA\\"; -v1675.laquo = \\"\\\\u00AB\\"; -v1675.not = \\"\\\\u00AC\\"; -v1675.shy = \\"\\\\u00AD\\"; -v1675.macr = \\"\\\\u00AF\\"; -v1675.deg = \\"\\\\u00B0\\"; -v1675.plusmn = \\"\\\\u00B1\\"; -v1675.sup1 = \\"\\\\u00B9\\"; -v1675.sup2 = \\"\\\\u00B2\\"; -v1675.sup3 = \\"\\\\u00B3\\"; -v1675.acute = \\"\\\\u00B4\\"; -v1675.micro = \\"\\\\u00B5\\"; -v1675.para = \\"\\\\u00B6\\"; -v1675.middot = \\"\\\\u00B7\\"; -v1675.cedil = \\"\\\\u00B8\\"; -v1675.ordm = \\"\\\\u00BA\\"; -v1675.raquo = \\"\\\\u00BB\\"; -v1675.frac14 = \\"\\\\u00BC\\"; -v1675.frac12 = \\"\\\\u00BD\\"; -v1675.frac34 = \\"\\\\u00BE\\"; -v1675.iquest = \\"\\\\u00BF\\"; -v1675.times = \\"\\\\u00D7\\"; -v1675.divide = \\"\\\\u00F7\\"; -v1675.OElig = \\"\\\\u0152\\"; -v1675.oelig = \\"\\\\u0153\\"; -v1675.Scaron = \\"\\\\u0160\\"; -v1675.scaron = \\"\\\\u0161\\"; -v1675.Yuml = \\"\\\\u0178\\"; -v1675.fnof = \\"\\\\u0192\\"; -v1675.circ = \\"\\\\u02C6\\"; -v1675.tilde = \\"\\\\u02DC\\"; -v1675.Alpha = \\"\\\\u0391\\"; -v1675.Beta = \\"\\\\u0392\\"; -v1675.Gamma = \\"\\\\u0393\\"; -v1675.Delta = \\"\\\\u0394\\"; -v1675.Epsilon = \\"\\\\u0395\\"; -v1675.Zeta = \\"\\\\u0396\\"; -v1675.Eta = \\"\\\\u0397\\"; -v1675.Theta = \\"\\\\u0398\\"; -v1675.Iota = \\"\\\\u0399\\"; -v1675.Kappa = \\"\\\\u039A\\"; -v1675.Lambda = \\"\\\\u039B\\"; -v1675.Mu = \\"\\\\u039C\\"; -v1675.Nu = \\"\\\\u039D\\"; -v1675.Xi = \\"\\\\u039E\\"; -v1675.Omicron = \\"\\\\u039F\\"; -v1675.Pi = \\"\\\\u03A0\\"; -v1675.Rho = \\"\\\\u03A1\\"; -v1675.Sigma = \\"\\\\u03A3\\"; -v1675.Tau = \\"\\\\u03A4\\"; -v1675.Upsilon = \\"\\\\u03A5\\"; -v1675.Phi = \\"\\\\u03A6\\"; -v1675.Chi = \\"\\\\u03A7\\"; -v1675.Psi = \\"\\\\u03A8\\"; -v1675.Omega = \\"\\\\u03A9\\"; -v1675.alpha = \\"\\\\u03B1\\"; -v1675.beta = \\"\\\\u03B2\\"; -v1675.gamma = \\"\\\\u03B3\\"; -v1675.delta = \\"\\\\u03B4\\"; -v1675.epsilon = \\"\\\\u03B5\\"; -v1675.zeta = \\"\\\\u03B6\\"; -v1675.eta = \\"\\\\u03B7\\"; -v1675.theta = \\"\\\\u03B8\\"; -v1675.iota = \\"\\\\u03B9\\"; -v1675.kappa = \\"\\\\u03BA\\"; -v1675.lambda = \\"\\\\u03BB\\"; -v1675.mu = \\"\\\\u03BC\\"; -v1675.nu = \\"\\\\u03BD\\"; -v1675.xi = \\"\\\\u03BE\\"; -v1675.omicron = \\"\\\\u03BF\\"; -v1675.pi = \\"\\\\u03C0\\"; -v1675.rho = \\"\\\\u03C1\\"; -v1675.sigmaf = \\"\\\\u03C2\\"; -v1675.sigma = \\"\\\\u03C3\\"; -v1675.tau = \\"\\\\u03C4\\"; -v1675.upsilon = \\"\\\\u03C5\\"; -v1675.phi = \\"\\\\u03C6\\"; -v1675.chi = \\"\\\\u03C7\\"; -v1675.psi = \\"\\\\u03C8\\"; -v1675.omega = \\"\\\\u03C9\\"; -v1675.thetasym = \\"\\\\u03D1\\"; -v1675.upsih = \\"\\\\u03D2\\"; -v1675.piv = \\"\\\\u03D6\\"; -v1675.ensp = \\"\\\\u2002\\"; -v1675.emsp = \\"\\\\u2003\\"; -v1675.thinsp = \\"\\\\u2009\\"; -v1675.zwnj = \\"\\\\u200C\\"; -v1675.zwj = \\"\\\\u200D\\"; -v1675.lrm = \\"\\\\u200E\\"; -v1675.rlm = \\"\\\\u200F\\"; -v1675.ndash = \\"\\\\u2013\\"; -v1675.mdash = \\"\\\\u2014\\"; -v1675.lsquo = \\"\\\\u2018\\"; -v1675.rsquo = \\"\\\\u2019\\"; -v1675.sbquo = \\"\\\\u201A\\"; -v1675.ldquo = \\"\\\\u201C\\"; -v1675.rdquo = \\"\\\\u201D\\"; -v1675.bdquo = \\"\\\\u201E\\"; -v1675.dagger = \\"\\\\u2020\\"; -v1675.Dagger = \\"\\\\u2021\\"; -v1675.bull = \\"\\\\u2022\\"; -v1675.hellip = \\"\\\\u2026\\"; -v1675.permil = \\"\\\\u2030\\"; -v1675.prime = \\"\\\\u2032\\"; -v1675.Prime = \\"\\\\u2033\\"; -v1675.lsaquo = \\"\\\\u2039\\"; -v1675.rsaquo = \\"\\\\u203A\\"; -v1675.oline = \\"\\\\u203E\\"; -v1675.frasl = \\"\\\\u2044\\"; -v1675.euro = \\"\\\\u20AC\\"; -v1675.image = \\"\\\\u2111\\"; -v1675.weierp = \\"\\\\u2118\\"; -v1675.real = \\"\\\\u211C\\"; -v1675.trade = \\"\\\\u2122\\"; -v1675.alefsym = \\"\\\\u2135\\"; -v1675.larr = \\"\\\\u2190\\"; -v1675.uarr = \\"\\\\u2191\\"; -v1675.rarr = \\"\\\\u2192\\"; -v1675.darr = \\"\\\\u2193\\"; -v1675.harr = \\"\\\\u2194\\"; -v1675.crarr = \\"\\\\u21B5\\"; -v1675.lArr = \\"\\\\u21D0\\"; -v1675.uArr = \\"\\\\u21D1\\"; -v1675.rArr = \\"\\\\u21D2\\"; -v1675.dArr = \\"\\\\u21D3\\"; -v1675.hArr = \\"\\\\u21D4\\"; -v1675.forall = \\"\\\\u2200\\"; -v1675.part = \\"\\\\u2202\\"; -v1675.exist = \\"\\\\u2203\\"; -v1675.empty = \\"\\\\u2205\\"; -v1675.nabla = \\"\\\\u2207\\"; -v1675.isin = \\"\\\\u2208\\"; -v1675.notin = \\"\\\\u2209\\"; -v1675.ni = \\"\\\\u220B\\"; -v1675.prod = \\"\\\\u220F\\"; -v1675.sum = \\"\\\\u2211\\"; -v1675.minus = \\"\\\\u2212\\"; -v1675.lowast = \\"\\\\u2217\\"; -v1675.radic = \\"\\\\u221A\\"; -v1675.prop = \\"\\\\u221D\\"; -v1675.infin = \\"\\\\u221E\\"; -v1675.ang = \\"\\\\u2220\\"; -v1675.and = \\"\\\\u2227\\"; -v1675.or = \\"\\\\u2228\\"; -v1675.cap = \\"\\\\u2229\\"; -v1675.cup = \\"\\\\u222A\\"; -v1675.int = \\"\\\\u222B\\"; -v1675.there4 = \\"\\\\u2234\\"; -v1675.sim = \\"\\\\u223C\\"; -v1675.cong = \\"\\\\u2245\\"; -v1675.asymp = \\"\\\\u2248\\"; -v1675.ne = \\"\\\\u2260\\"; -v1675.equiv = \\"\\\\u2261\\"; -v1675.le = \\"\\\\u2264\\"; -v1675.ge = \\"\\\\u2265\\"; -v1675.sub = \\"\\\\u2282\\"; -v1675.sup = \\"\\\\u2283\\"; -v1675.nsub = \\"\\\\u2284\\"; -v1675.sube = \\"\\\\u2286\\"; -v1675.supe = \\"\\\\u2287\\"; -v1675.oplus = \\"\\\\u2295\\"; -v1675.otimes = \\"\\\\u2297\\"; -v1675.perp = \\"\\\\u22A5\\"; -v1675.sdot = \\"\\\\u22C5\\"; -v1675.lceil = \\"\\\\u2308\\"; -v1675.rceil = \\"\\\\u2309\\"; -v1675.lfloor = \\"\\\\u230A\\"; -v1675.rfloor = \\"\\\\u230B\\"; -v1675.lang = \\"\\\\u2329\\"; -v1675.rang = \\"\\\\u232A\\"; -v1675.loz = \\"\\\\u25CA\\"; -v1675.spades = \\"\\\\u2660\\"; -v1675.clubs = \\"\\\\u2663\\"; -v1675.hearts = \\"\\\\u2665\\"; -v1675.diams = \\"\\\\u2666\\"; -const v1677 = {}; -v1677.xml = \\"http://www.w3.org/XML/1998/namespace\\"; -v1677.xmlns = \\"http://www.w3.org/2000/xmlns/\\"; -var v1676 = v1677; -var v1679; -v1679 = function emit(parser, event, data) { parser[event] && parser[event](data); }; -const v1680 = {}; -v1680.constructor = v1679; -v1679.prototype = v1680; -var v1678 = v1679; -v1666 = function SAXParser(strict, opt) { if (!(this instanceof SAXParser)) { - return new SAXParser(strict, opt); -} var parser = this; v1667(parser); parser.q = parser.c = \\"\\"; parser.bufferCheckPosition = 65536; parser.opt = opt || {}; parser.opt.lowercase = parser.opt.lowercase || parser.opt.lowercasetags; parser.looseCase = parser.opt.lowercase ? \\"toLowerCase\\" : \\"toUpperCase\\"; parser.tags = []; parser.closed = parser.closedRoot = parser.sawRoot = false; parser.tag = parser.error = null; parser.strict = !!strict; parser.noscript = !!(strict || parser.opt.noscript); parser.state = 0; parser.strictEntities = parser.opt.strictEntities; parser.ENTITIES = parser.strictEntities ? v1672.create(v1673) : v1674.create(v1675); parser.attribList = []; if (parser.opt.xmlns) { - parser.ns = v1674.create(v1676); -} parser.trackPosition = parser.opt.position !== false; if (parser.trackPosition) { - parser.position = parser.line = parser.column = 0; -} v1678(parser, \\"onready\\"); }; -const v1681 = {}; -var v1682; -var v1684; -var v1686; -var v1687 = v1666; -var v1688 = v40; -var v1690; -var v1692; -var v1694; -v1694 = function textopts(opt, text) { if (opt.trim) - text = text.trim(); if (opt.normalize) - text = text.replace(/\\\\s+/g, \\" \\"); return text; }; -const v1695 = {}; -v1695.constructor = v1694; -v1694.prototype = v1695; -var v1693 = v1694; -var v1696 = v1679; -v1692 = function closeText(parser) { parser.textNode = v1693(parser.opt, parser.textNode); if (parser.textNode) - v1696(parser, \\"ontext\\", parser.textNode); parser.textNode = \\"\\"; }; -const v1697 = {}; -v1697.constructor = v1692; -v1692.prototype = v1697; -var v1691 = v1692; -var v1698 = v40; -var v1699 = v1679; -v1690 = function error(parser, er) { v1691(parser); if (parser.trackPosition) { - er += \\"\\\\nLine: \\" + parser.line + \\"\\\\nColumn: \\" + parser.column + \\"\\\\nChar: \\" + parser.c; -} er = new v1698(er); parser.error = er; v1699(parser, \\"onerror\\", er); return parser; }; -const v1700 = {}; -v1700.constructor = v1690; -v1690.prototype = v1700; -var v1689 = v1690; -v1686 = function strictFail(parser, message) { if (typeof parser !== \\"object\\" || !(parser instanceof v1687)) { - throw new v1688(\\"bad call to strictFail\\"); -} if (parser.strict) { - v1689(parser, message); -} }; -const v1701 = {}; -v1701.constructor = v1686; -v1686.prototype = v1701; -var v1685 = v1686; -var v1702 = v1690; -var v1703 = v1666; -v1684 = function end(parser) { if (parser.sawRoot && !parser.closedRoot) - v1685(parser, \\"Unclosed root tag\\"); if ((parser.state !== 0) && (parser.state !== 1) && (parser.state !== 2)) { - v1702(parser, \\"Unexpected end\\"); -} v1691(parser); parser.c = \\"\\"; parser.closed = true; v1696(parser, \\"onend\\"); v1703.call(parser, parser.strict, parser.opt); return parser; }; -const v1704 = {}; -v1704.constructor = v1684; -v1684.prototype = v1704; -var v1683 = v1684; -v1682 = function () { v1683(this); }; -const v1705 = {}; -v1705.constructor = v1682; -v1682.prototype = v1705; -v1681.end = v1682; -var v1706; -var v1707 = v1690; -var v1709; -v1709 = function charAt(chunk, i) { var result = \\"\\"; if (i < chunk.length) { - result = chunk.charAt(i); -} return result; }; -const v1710 = {}; -v1710.constructor = v1709; -v1709.prototype = v1710; -var v1708 = v1709; -var v1712; -var v1714; -v1714 = function isWhitespace(c) { return c === \\" \\" || c === \\"\\\\n\\" || c === \\"\\\\r\\" || c === \\"\\\\t\\"; }; -const v1715 = {}; -v1715.constructor = v1714; -v1714.prototype = v1715; -var v1713 = v1714; -var v1716 = v1686; -v1712 = function beginWhiteSpace(parser, c) { if (c === \\"<\\") { - parser.state = 4; - parser.startTagPosition = parser.position; -} -else if (!v1713(c)) { - v1716(parser, \\"Non-whitespace before first tag.\\"); - parser.textNode = c; - parser.state = 2; -} }; -const v1717 = {}; -v1717.constructor = v1712; -v1712.prototype = v1717; -var v1711 = v1712; -var v1718 = v1714; -var v1720; -v1720 = function isMatch(regex, c) { return regex.test(c); }; -const v1721 = {}; -v1721.constructor = v1720; -v1720.prototype = v1721; -var v1719 = v1720; -var v1722 = /[:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD]/; -var v1723 = v33; -var v1724 = \\"[CDATA[\\"; -var v1726; -v1726 = function emitNode(parser, nodeType, data) { if (parser.textNode) - v1691(parser); v1699(parser, nodeType, data); }; -const v1727 = {}; -v1727.constructor = v1726; -v1726.prototype = v1727; -var v1725 = v1726; -var v1728 = \\"DOCTYPE\\"; -var v1729 = v1726; -var v1731; -v1731 = function isQuote(c) { return c === \\"\\\\\\"\\" || c === \\"'\\"; }; -const v1732 = {}; -v1732.constructor = v1731; -v1731.prototype = v1732; -var v1730 = v1731; -var v1733 = v1731; -var v1734 = v1694; -var v1735 = v1726; -var v1736 = v1720; -var v1737 = /[:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040.\\\\d-]/; -var v1739; -var v1740 = v1726; -v1739 = function newTag(parser) { if (!parser.strict) - parser.tagName = parser.tagName[parser.looseCase](); var parent = parser.tags[parser.tags.length - 1] || parser; var tag = parser.tag = { name: parser.tagName, attributes: {} }; if (parser.opt.xmlns) { - tag.ns = parent.ns; -} parser.attribList.length = 0; v1740(parser, \\"onopentagstart\\", tag); }; -const v1741 = {}; -v1741.constructor = v1739; -v1739.prototype = v1741; -var v1738 = v1739; -var v1743; -var v1745; -v1745 = function qname(name, attribute) { var i = name.indexOf(\\":\\"); var qualName = i < 0 ? [\\"\\", name] : name.split(\\":\\"); var prefix = qualName[0]; var local = qualName[1]; if (attribute && name === \\"xmlns\\") { - prefix = \\"xmlns\\"; - local = \\"\\"; -} return { prefix: prefix, local: local }; }; -const v1746 = {}; -v1746.constructor = v1745; -v1745.prototype = v1746; -var v1744 = v1745; -var v1747 = v1686; -var v1748 = v163; -var v1749 = v31; -var v1750 = v1745; -var v1751 = v163; -var v1752 = v1726; -v1743 = function openTag(parser, selfClosing) { if (parser.opt.xmlns) { - var tag = parser.tag; - var qn = v1744(parser.tagName); - tag.prefix = qn.prefix; - tag.local = qn.local; - tag.uri = tag.ns[qn.prefix] || \\"\\"; - if (tag.prefix && !tag.uri) { - v1747(parser, \\"Unbound namespace prefix: \\" + v1748.stringify(parser.tagName)); - tag.uri = qn.prefix; - } - var parent = parser.tags[parser.tags.length - 1] || parser; - if (tag.ns && parent.ns !== tag.ns) { - v1749.keys(tag.ns).forEach(function (p) { v1735(parser, \\"onopennamespace\\", { prefix: p, uri: tag.ns[p] }); }); - } - for (var i = 0, l = parser.attribList.length; i < l; i++) { - var nv = parser.attribList[i]; - var name = nv[0]; - var value = nv[1]; - var qualName = v1750(name, true); - var prefix = qualName.prefix; - var local = qualName.local; - var uri = prefix === \\"\\" ? \\"\\" : (tag.ns[prefix] || \\"\\"); - var a = { name: name, value: value, prefix: prefix, local: local, uri: uri }; - if (prefix && prefix !== \\"xmlns\\" && !uri) { - v1685(parser, \\"Unbound namespace prefix: \\" + v1751.stringify(prefix)); - a.uri = prefix; - } - parser.tag.attributes[name] = a; - v1752(parser, \\"onattribute\\", a); - } - parser.attribList.length = 0; -} parser.tag.isSelfClosing = !!selfClosing; parser.sawRoot = true; parser.tags.push(parser.tag); v1752(parser, \\"onopentag\\", parser.tag); if (!selfClosing) { - if (!parser.noscript && parser.tagName.toLowerCase() === \\"script\\") { - parser.state = 34; - } - else { - parser.state = 2; - } - parser.tag = null; - parser.tagName = \\"\\"; -} parser.attribName = parser.attribValue = \\"\\"; parser.attribList.length = 0; }; -const v1753 = {}; -v1753.constructor = v1743; -v1743.prototype = v1753; -var v1742 = v1743; -var v1755; -var v1756 = v31; -v1755 = function closeTag(parser) { if (!parser.tagName) { - v1747(parser, \\"Weird empty close tag.\\"); - parser.textNode += \\"\\"; - parser.state = 2; - return; -} if (parser.script) { - if (parser.tagName !== \\"script\\") { - parser.script += \\"\\"; - parser.tagName = \\"\\"; - parser.state = 34; - return; - } - v1725(parser, \\"onscript\\", parser.script); - parser.script = \\"\\"; -} var t = parser.tags.length; var tagName = parser.tagName; if (!parser.strict) { - tagName = tagName[parser.looseCase](); -} var closeTo = tagName; while (t--) { - var close = parser.tags[t]; - if (close.name !== closeTo) { - v1747(parser, \\"Unexpected close tag\\"); - } - else { - break; - } -} if (t < 0) { - v1747(parser, \\"Unmatched closing tag: \\" + parser.tagName); - parser.textNode += \\"\\"; - parser.state = 2; - return; -} parser.tagName = tagName; var s = parser.tags.length; while (s-- > t) { - var tag = parser.tag = parser.tags.pop(); - parser.tagName = parser.tag.name; - v1735(parser, \\"onclosetag\\", parser.tagName); - var x = {}; - for (var i in tag.ns) { - x[i] = tag.ns[i]; - } - var parent = parser.tags[parser.tags.length - 1] || parser; - if (parser.opt.xmlns && tag.ns !== parent.ns) { - v1756.keys(tag.ns).forEach(function (p) { var n = tag.ns[p]; v1735(parser, \\"onclosenamespace\\", { prefix: p, uri: n }); }); - } -} if (t === 0) - parser.closedRoot = true; parser.tagName = parser.attribValue = parser.attribName = \\"\\"; parser.attribList.length = 0; parser.state = 2; }; -const v1757 = {}; -v1757.constructor = v1755; -v1755.prototype = v1757; -var v1754 = v1755; -var v1759; -var v1760 = v1745; -var v1761 = \\"http://www.w3.org/XML/1998/namespace\\"; -var v1762 = v1686; -var v1763 = \\"http://www.w3.org/2000/xmlns/\\"; -var v1764 = v31; -v1759 = function attrib(parser) { if (!parser.strict) { - parser.attribName = parser.attribName[parser.looseCase](); -} if (parser.attribList.indexOf(parser.attribName) !== -1 || parser.tag.attributes.hasOwnProperty(parser.attribName)) { - parser.attribName = parser.attribValue = \\"\\"; - return; -} if (parser.opt.xmlns) { - var qn = v1760(parser.attribName, true); - var prefix = qn.prefix; - var local = qn.local; - if (prefix === \\"xmlns\\") { - if (local === \\"xml\\" && parser.attribValue !== v1761) { - v1762(parser, \\"xml: prefix must be bound to \\" + v1761 + \\"\\\\n\\" + \\"Actual: \\" + parser.attribValue); - } - else if (local === \\"xmlns\\" && parser.attribValue !== v1763) { - v1762(parser, \\"xmlns: prefix must be bound to \\" + v1763 + \\"\\\\n\\" + \\"Actual: \\" + parser.attribValue); - } - else { - var tag = parser.tag; - var parent = parser.tags[parser.tags.length - 1] || parser; - if (tag.ns === parent.ns) { - tag.ns = v1764.create(parent.ns); - } - tag.ns[local] = parser.attribValue; - } - } - parser.attribList.push([parser.attribName, parser.attribValue]); -} -else { - parser.tag.attributes[parser.attribName] = parser.attribValue; - v1725(parser, \\"onattribute\\", { name: parser.attribName, value: parser.attribValue }); -} parser.attribName = parser.attribValue = \\"\\"; }; -const v1765 = {}; -v1765.constructor = v1759; -v1759.prototype = v1765; -var v1758 = v1759; -var v1766 = /[:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040.\\\\d-]/; -var v1768; -var v1769 = v1714; -v1768 = function isAttribEnd(c) { return c === \\">\\" || v1769(c); }; -const v1770 = {}; -v1770.constructor = v1768; -v1768.prototype = v1770; -var v1767 = v1768; -var v1772; -var v1773 = v1720; -v1772 = function notMatch(regex, c) { return !v1773(regex, c); }; -const v1774 = {}; -v1774.constructor = v1772; -v1772.prototype = v1774; -var v1771 = v1772; -var v1775 = undefined; -var v1777; -var v1778 = v117; -var v1779 = v117; -var v1780 = v1017; -var v1781 = v136; -v1777 = function parseEntity(parser) { var entity = parser.entity; var entityLC = entity.toLowerCase(); var num; var numStr = \\"\\"; if (parser.ENTITIES[entity]) { - return parser.ENTITIES[entity]; -} if (parser.ENTITIES[entityLC]) { - return parser.ENTITIES[entityLC]; -} entity = entityLC; if (entity.charAt(0) === \\"#\\") { - if (entity.charAt(1) === \\"x\\") { - entity = entity.slice(2); - num = v1778(entity, 16); - numStr = num.toString(16); - } - else { - entity = entity.slice(1); - num = v1779(entity, 10); - numStr = num.toString(10); - } -} entity = entity.replace(/^0+/, \\"\\"); if (v1780(num) || numStr.toLowerCase() !== entity) { - v1747(parser, \\"Invalid character entity\\"); - return \\"&\\" + parser.entity + \\";\\"; -} return v1781.fromCodePoint(num); }; -const v1782 = {}; -v1782.constructor = v1777; -v1777.prototype = v1782; -var v1776 = v1777; -var v1783 = undefined; -var v1784 = /[#:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040.\\\\d-]/; -var v1785 = /[#:_A-Za-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD]/; -var v1786 = v40; -var v1788; -var v1789 = v787; -var v1790 = v1670; -var v1791 = v1692; -var v1792 = v787; -v1788 = function checkBufferLength(parser) { var maxAllowed = v1789.max(65536, 10); var maxActual = 0; for (var i = 0, l = 12; i < l; i++) { - var len = parser[v1790[i]].length; - if (len > maxAllowed) { - switch (v1669[i]) { - case \\"textNode\\": - v1791(parser); - break; - case \\"cdata\\": - v1740(parser, \\"oncdata\\", parser.cdata); - parser.cdata = \\"\\"; - break; - case \\"script\\": - v1740(parser, \\"onscript\\", parser.script); - parser.script = \\"\\"; - break; - default: v1702(parser, \\"Max buffer length exceeded: \\" + v1669[i]); - } - } - maxActual = v1792.max(maxActual, len); -} var m = 65536 - maxActual; parser.bufferCheckPosition = m + parser.position; }; -const v1793 = {}; -v1793.constructor = v1788; -v1788.prototype = v1793; -var v1787 = v1788; -v1706 = function write(chunk) { var parser = this; if (this.error) { - throw this.error; -} if (parser.closed) { - return v1707(parser, \\"Cannot write after close. Assign an onready handler.\\"); -} if (chunk === null) { - return v1683(parser); -} if (typeof chunk === \\"object\\") { - chunk = chunk.toString(); -} var i = 0; var c = \\"\\"; while (true) { - c = v1708(chunk, i++); - parser.c = c; - if (!c) { - break; - } - if (parser.trackPosition) { - parser.position++; - if (c === \\"\\\\n\\") { - parser.line++; - parser.column = 0; - } - else { - parser.column++; - } - } - switch (parser.state) { - case 0: - parser.state = 1; - if (c === \\"\\\\uFEFF\\") { - continue; - } - v1711(parser, c); - continue; - case 1: - v1711(parser, c); - continue; - case 2: - if (parser.sawRoot && !parser.closedRoot) { - var starti = i - 1; - while (c && c !== \\"<\\" && c !== \\"&\\") { - c = v1708(chunk, i++); - if (c && parser.trackPosition) { - parser.position++; - if (c === \\"\\\\n\\") { - parser.line++; - parser.column = 0; - } - else { - parser.column++; - } - } - } - parser.textNode += chunk.substring(starti, i - 1); - } - if (c === \\"<\\" && !(parser.sawRoot && parser.closedRoot && !parser.strict)) { - parser.state = 4; - parser.startTagPosition = parser.position; - } - else { - if (!v1713(c) && (!parser.sawRoot || parser.closedRoot)) { - v1716(parser, \\"Text data outside of root node.\\"); - } - if (c === \\"&\\") { - parser.state = 3; - } - else { - parser.textNode += c; - } - } - continue; - case 34: - if (c === \\"<\\") { - parser.state = 35; - } - else { - parser.script += c; - } - continue; - case 35: - if (c === \\"/\\") { - parser.state = 32; - } - else { - parser.script += \\"<\\" + c; - parser.state = 34; - } - continue; - case 4: - if (c === \\"!\\") { - parser.state = 5; - parser.sgmlDecl = \\"\\"; - } - else if (v1718(c)) { } - else if (v1719(v1722, c)) { - parser.state = 21; - parser.tagName = c; - } - else if (c === \\"/\\") { - parser.state = 32; - parser.tagName = \\"\\"; - } - else if (c === \\"?\\") { - parser.state = 18; - parser.procInstName = parser.procInstBody = \\"\\"; - } - else { - v1685(parser, \\"Unencoded <\\"); - if (parser.startTagPosition + 1 < parser.position) { - var pad = parser.position - parser.startTagPosition; - c = new v1723(pad).join(\\" \\") + c; - } - parser.textNode += \\"<\\" + c; - parser.state = 2; - } - continue; - case 5: - if ((parser.sgmlDecl + c).toUpperCase() === v1724) { - v1725(parser, \\"onopencdata\\"); - parser.state = 15; - parser.sgmlDecl = \\"\\"; - parser.cdata = \\"\\"; - } - else if (parser.sgmlDecl + c === \\"--\\") { - parser.state = 12; - parser.comment = \\"\\"; - parser.sgmlDecl = \\"\\"; - } - else if ((parser.sgmlDecl + c).toUpperCase() === v1728) { - parser.state = 7; - if (parser.doctype || parser.sawRoot) { - v1685(parser, \\"Inappropriately located doctype declaration\\"); - } - parser.doctype = \\"\\"; - parser.sgmlDecl = \\"\\"; - } - else if (c === \\">\\") { - v1729(parser, \\"onsgmldeclaration\\", parser.sgmlDecl); - parser.sgmlDecl = \\"\\"; - parser.state = 2; - } - else if (v1730(c)) { - parser.state = 6; - parser.sgmlDecl += c; - } - else { - parser.sgmlDecl += c; - } - continue; - case 6: - if (c === parser.q) { - parser.state = 5; - parser.q = \\"\\"; - } - parser.sgmlDecl += c; - continue; - case 7: - if (c === \\">\\") { - parser.state = 2; - v1725(parser, \\"ondoctype\\", parser.doctype); - parser.doctype = true; - } - else { - parser.doctype += c; - if (c === \\"[\\") { - parser.state = 9; - } - else if (v1733(c)) { - parser.state = 8; - parser.q = c; - } - } - continue; - case 8: - parser.doctype += c; - if (c === parser.q) { - parser.q = \\"\\"; - parser.state = 7; - } - continue; - case 9: - parser.doctype += c; - if (c === \\"]\\") { - parser.state = 7; - } - else if (v1733(c)) { - parser.state = 10; - parser.q = c; - } - continue; - case 10: - parser.doctype += c; - if (c === parser.q) { - parser.state = 9; - parser.q = \\"\\"; - } - continue; - case 12: - if (c === \\"-\\") { - parser.state = 13; - } - else { - parser.comment += c; - } - continue; - case 13: - if (c === \\"-\\") { - parser.state = 14; - parser.comment = v1734(parser.opt, parser.comment); - if (parser.comment) { - v1725(parser, \\"oncomment\\", parser.comment); - } - parser.comment = \\"\\"; - } - else { - parser.comment += \\"-\\" + c; - parser.state = 12; - } - continue; - case 14: - if (c !== \\">\\") { - v1716(parser, \\"Malformed comment\\"); - parser.comment += \\"--\\" + c; - parser.state = 12; - } - else { - parser.state = 2; - } - continue; - case 15: - if (c === \\"]\\") { - parser.state = 16; - } - else { - parser.cdata += c; - } - continue; - case 16: - if (c === \\"]\\") { - parser.state = 17; - } - else { - parser.cdata += \\"]\\" + c; - parser.state = 15; - } - continue; - case 17: - if (c === \\">\\") { - if (parser.cdata) { - v1735(parser, \\"oncdata\\", parser.cdata); - } - v1735(parser, \\"onclosecdata\\"); - parser.cdata = \\"\\"; - parser.state = 2; - } - else if (c === \\"]\\") { - parser.cdata += \\"]\\"; - } - else { - parser.cdata += \\"]]\\" + c; - parser.state = 15; - } - continue; - case 18: - if (c === \\"?\\") { - parser.state = 20; - } - else if (v1713(c)) { - parser.state = 19; - } - else { - parser.procInstName += c; - } - continue; - case 19: - if (!parser.procInstBody && v1713(c)) { - continue; - } - else if (c === \\"?\\") { - parser.state = 20; - } - else { - parser.procInstBody += c; - } - continue; - case 20: - if (c === \\">\\") { - v1735(parser, \\"onprocessinginstruction\\", { name: parser.procInstName, body: parser.procInstBody }); - parser.procInstName = parser.procInstBody = \\"\\"; - parser.state = 2; - } - else { - parser.procInstBody += \\"?\\" + c; - parser.state = 19; - } - continue; - case 21: - if (v1736(v1737, c)) { - parser.tagName += c; - } - else { - v1738(parser); - if (c === \\">\\") { - v1742(parser); - } - else if (c === \\"/\\") { - parser.state = 22; - } - else { - if (!v1713(c)) { - v1716(parser, \\"Invalid character in tag name\\"); - } - parser.state = 23; - } - } - continue; - case 22: - if (c === \\">\\") { - v1742(parser, true); - v1754(parser); - } - else { - v1716(parser, \\"Forward-slash in opening tag not followed by >\\"); - parser.state = 23; - } - continue; - case 23: - if (v1713(c)) { - continue; - } - else if (c === \\">\\") { - v1742(parser); - } - else if (c === \\"/\\") { - parser.state = 22; - } - else if (v1736(v1722, c)) { - parser.attribName = c; - parser.attribValue = \\"\\"; - parser.state = 24; - } - else { - v1716(parser, \\"Invalid attribute name\\"); - } - continue; - case 24: - if (c === \\"=\\") { - parser.state = 26; - } - else if (c === \\">\\") { - v1716(parser, \\"Attribute without value\\"); - parser.attribValue = parser.attribName; - v1758(parser); - v1742(parser); - } - else if (v1713(c)) { - parser.state = 25; - } - else if (v1736(v1766, c)) { - parser.attribName += c; - } - else { - v1716(parser, \\"Invalid attribute name\\"); - } - continue; - case 25: - if (c === \\"=\\") { - parser.state = 26; - } - else if (v1713(c)) { - continue; - } - else { - v1716(parser, \\"Attribute without value\\"); - parser.tag.attributes[parser.attribName] = \\"\\"; - parser.attribValue = \\"\\"; - v1735(parser, \\"onattribute\\", { name: parser.attribName, value: \\"\\" }); - parser.attribName = \\"\\"; - if (c === \\">\\") { - v1742(parser); - } - else if (v1736(v1722, c)) { - parser.attribName = c; - parser.state = 24; - } - else { - v1716(parser, \\"Invalid attribute name\\"); - parser.state = 23; - } - } - continue; - case 26: - if (v1713(c)) { - continue; - } - else if (v1733(c)) { - parser.q = c; - parser.state = 27; - } - else { - v1716(parser, \\"Unquoted attribute value\\"); - parser.state = 29; - parser.attribValue = c; - } - continue; - case 27: - if (c !== parser.q) { - if (c === \\"&\\") { - parser.state = 30; - } - else { - parser.attribValue += c; - } - continue; - } - v1758(parser); - parser.q = \\"\\"; - parser.state = 28; - continue; - case 28: - if (v1713(c)) { - parser.state = 23; - } - else if (c === \\">\\") { - v1742(parser); - } - else if (c === \\"/\\") { - parser.state = 22; - } - else if (v1736(v1722, c)) { - v1716(parser, \\"No whitespace between attributes\\"); - parser.attribName = c; - parser.attribValue = \\"\\"; - parser.state = 24; - } - else { - v1716(parser, \\"Invalid attribute name\\"); - } - continue; - case 29: - if (!v1767(c)) { - if (c === \\"&\\") { - parser.state = 31; - } - else { - parser.attribValue += c; - } - continue; - } - v1758(parser); - if (c === \\">\\") { - v1742(parser); - } - else { - parser.state = 23; - } - continue; - case 32: - if (!parser.tagName) { - if (v1713(c)) { - continue; - } - else if (v1771(v1722, c)) { - if (parser.script) { - parser.script += \\"\\") { - v1754(parser); - } - else if (v1736(v1766, c)) { - parser.tagName += c; - } - else if (parser.script) { - parser.script += \\"\\") { - v1754(parser); - } - else { - v1716(parser, \\"Invalid characters in closing tag\\"); - } - continue; - case 3: - case 30: - case 31: - var returnState; - var buffer; - switch (parser.state) { - case 3: - returnState = 2; - buffer = \\"textNode\\"; - break; - case 30: - returnState = 27; - buffer = \\"attribValue\\"; - break; - case 31: - returnState = 29; - buffer = \\"attribValue\\"; - break; - } - if (c === \\";\\") { - parser[v1775] += v1776(parser); - parser.entity = \\"\\"; - parser.state = v1783; - } - else if (v1736(parser.entity.length ? v1784 : v1785, c)) { - parser.entity += c; - } - else { - v1716(parser, \\"Invalid character in entity name\\"); - parser[v1775] += \\"&\\" + parser.entity + c; - parser.entity = \\"\\"; - parser.state = v1783; - } - continue; - default: throw new v1786(parser, \\"Unknown state: \\" + parser.state); - } -} if (parser.position >= parser.bufferCheckPosition) { - v1787(parser); -} return parser; }; -const v1794 = {}; -v1794.constructor = v1706; -v1706.prototype = v1794; -v1681.write = v1706; -var v1795; -v1795 = function () { this.error = null; return this; }; -const v1796 = {}; -v1796.constructor = v1795; -v1795.prototype = v1796; -v1681.resume = v1795; -var v1797; -v1797 = function () { return this.write(null); }; -const v1798 = {}; -v1798.constructor = v1797; -v1797.prototype = v1798; -v1681.close = v1797; -var v1799; -var v1801; -var v1802 = v1726; -v1801 = function flushBuffers(parser) { v1691(parser); if (parser.cdata !== \\"\\") { - v1802(parser, \\"oncdata\\", parser.cdata); - parser.cdata = \\"\\"; -} if (parser.script !== \\"\\") { - v1802(parser, \\"onscript\\", parser.script); - parser.script = \\"\\"; -} }; -const v1803 = {}; -v1803.constructor = v1801; -v1801.prototype = v1803; -var v1800 = v1801; -v1799 = function () { v1800(this); }; -const v1804 = {}; -v1804.constructor = v1799; -v1799.prototype = v1804; -v1681.flush = v1799; -v1666.prototype = v1681; -var v1665 = v1666; -v1664 = function (strict, opt) { return new v1665(strict, opt); }; -const v1805 = {}; -v1805.constructor = v1664; -v1664.prototype = v1805; -v1663.parser = v1664; -v1663.SAXParser = v1666; -var v1806; -const v1808 = require(\\"stream\\"); -var v1807 = v1808; -const v1810 = []; -v1810.push(\\"text\\", \\"processinginstruction\\", \\"sgmldeclaration\\", \\"doctype\\", \\"comment\\", \\"opentagstart\\", \\"attribute\\", \\"opentag\\", \\"closetag\\", \\"opencdata\\", \\"cdata\\", \\"closecdata\\", \\"ready\\", \\"script\\", \\"opennamespace\\", \\"closenamespace\\"); -var v1809 = v1810; -var v1811 = v31; -v1806 = function SAXStream(strict, opt) { if (!(this instanceof SAXStream)) { - return new SAXStream(strict, opt); -} v1807.apply(this); this._parser = new v1687(strict, opt); this.writable = true; this.readable = true; var me = this; this._parser.onend = function () { me.emit(\\"end\\"); }; this._parser.onerror = function (er) { me.emit(\\"error\\", er); me._parser.error = null; }; this._decoder = null; v1809.forEach(function (ev) { v1811.defineProperty(me, \\"on\\" + ev, { get: function () { return me._parser[\\"on\\" + ev]; }, set: function (h) { if (!h) { - me.removeAllListeners(ev); - me._parser[\\"on\\" + ev] = h; - return h; - } me.on(ev, h); }, enumerable: true, configurable: false }); }); }; -const v1812 = require(\\"stream\\").prototype; -const v1813 = Object.create(v1812); -var v1814; -const v1816 = Buffer; -var v1815 = v1816; -var v1817 = require; -v1814 = function (data) { if (typeof v1815 === \\"function\\" && typeof v1815.isBuffer === \\"function\\" && v1815.isBuffer(data)) { - if (!this._decoder) { - var SD = v1817(\\"string_decoder\\").StringDecoder; - this._decoder = new SD(\\"utf8\\"); - } - data = this._decoder.write(data); -} this._parser.write(data.toString()); this.emit(\\"data\\", data); return true; }; -const v1818 = {}; -v1818.constructor = v1814; -v1814.prototype = v1818; -v1813.write = v1814; -var v1819; -v1819 = function (chunk) { if (chunk && chunk.length) { - this.write(chunk); -} this._parser.end(); return true; }; -const v1820 = {}; -v1820.constructor = v1819; -v1819.prototype = v1820; -v1813.end = v1819; -var v1821; -var v1822 = v1810; -var v1823 = v33; -v1821 = function (ev, handler) { var me = this; if (!me._parser[\\"on\\" + ev] && v1822.indexOf(ev) !== -1) { - me._parser[\\"on\\" + ev] = function () { var args = arguments.length === 1 ? [arguments[0]] : v1823.apply(null, arguments); args.splice(0, 0, ev); me.emit.apply(me, args); }; -} return v1812.on.call(me, ev, handler); }; -const v1824 = {}; -v1824.constructor = v1821; -v1821.prototype = v1824; -v1813.on = v1821; -v1806.prototype = v1813; -v1663.SAXStream = v1806; -var v1825; -var v1826 = v1806; -v1825 = function createStream(strict, opt) { return new v1826(strict, opt); }; -const v1827 = {}; -v1827.constructor = v1825; -v1825.prototype = v1827; -v1663.createStream = v1825; -v1663.MAX_BUFFER_LENGTH = 65536; -const v1828 = []; -v1828.push(\\"text\\", \\"processinginstruction\\", \\"sgmldeclaration\\", \\"doctype\\", \\"comment\\", \\"opentagstart\\", \\"attribute\\", \\"opentag\\", \\"closetag\\", \\"opencdata\\", \\"cdata\\", \\"closecdata\\", \\"error\\", \\"end\\", \\"ready\\", \\"script\\", \\"opennamespace\\", \\"closenamespace\\"); -v1663.EVENTS = v1828; -const v1829 = {}; -v1829[\\"0\\"] = \\"BEGIN\\"; -v1829[\\"1\\"] = \\"BEGIN_WHITESPACE\\"; -v1829[\\"2\\"] = \\"TEXT\\"; -v1829[\\"3\\"] = \\"TEXT_ENTITY\\"; -v1829[\\"4\\"] = \\"OPEN_WAKA\\"; -v1829[\\"5\\"] = \\"SGML_DECL\\"; -v1829[\\"6\\"] = \\"SGML_DECL_QUOTED\\"; -v1829[\\"7\\"] = \\"DOCTYPE\\"; -v1829[\\"8\\"] = \\"DOCTYPE_QUOTED\\"; -v1829[\\"9\\"] = \\"DOCTYPE_DTD\\"; -v1829[\\"10\\"] = \\"DOCTYPE_DTD_QUOTED\\"; -v1829[\\"11\\"] = \\"COMMENT_STARTING\\"; -v1829[\\"12\\"] = \\"COMMENT\\"; -v1829[\\"13\\"] = \\"COMMENT_ENDING\\"; -v1829[\\"14\\"] = \\"COMMENT_ENDED\\"; -v1829[\\"15\\"] = \\"CDATA\\"; -v1829[\\"16\\"] = \\"CDATA_ENDING\\"; -v1829[\\"17\\"] = \\"CDATA_ENDING_2\\"; -v1829[\\"18\\"] = \\"PROC_INST\\"; -v1829[\\"19\\"] = \\"PROC_INST_BODY\\"; -v1829[\\"20\\"] = \\"PROC_INST_ENDING\\"; -v1829[\\"21\\"] = \\"OPEN_TAG\\"; -v1829[\\"22\\"] = \\"OPEN_TAG_SLASH\\"; -v1829[\\"23\\"] = \\"ATTRIB\\"; -v1829[\\"24\\"] = \\"ATTRIB_NAME\\"; -v1829[\\"25\\"] = \\"ATTRIB_NAME_SAW_WHITE\\"; -v1829[\\"26\\"] = \\"ATTRIB_VALUE\\"; -v1829[\\"27\\"] = \\"ATTRIB_VALUE_QUOTED\\"; -v1829[\\"28\\"] = \\"ATTRIB_VALUE_CLOSED\\"; -v1829[\\"29\\"] = \\"ATTRIB_VALUE_UNQUOTED\\"; -v1829[\\"30\\"] = \\"ATTRIB_VALUE_ENTITY_Q\\"; -v1829[\\"31\\"] = \\"ATTRIB_VALUE_ENTITY_U\\"; -v1829[\\"32\\"] = \\"CLOSE_TAG\\"; -v1829[\\"33\\"] = \\"CLOSE_TAG_SAW_WHITE\\"; -v1829[\\"34\\"] = \\"SCRIPT\\"; -v1829[\\"35\\"] = \\"SCRIPT_ENDING\\"; -v1829.BEGIN = 0; -v1829.BEGIN_WHITESPACE = 1; -v1829.TEXT = 2; -v1829.TEXT_ENTITY = 3; -v1829.OPEN_WAKA = 4; -v1829.SGML_DECL = 5; -v1829.SGML_DECL_QUOTED = 6; -v1829.DOCTYPE = 7; -v1829.DOCTYPE_QUOTED = 8; -v1829.DOCTYPE_DTD = 9; -v1829.DOCTYPE_DTD_QUOTED = 10; -v1829.COMMENT_STARTING = 11; -v1829.COMMENT = 12; -v1829.COMMENT_ENDING = 13; -v1829.COMMENT_ENDED = 14; -v1829.CDATA = 15; -v1829.CDATA_ENDING = 16; -v1829.CDATA_ENDING_2 = 17; -v1829.PROC_INST = 18; -v1829.PROC_INST_BODY = 19; -v1829.PROC_INST_ENDING = 20; -v1829.OPEN_TAG = 21; -v1829.OPEN_TAG_SLASH = 22; -v1829.ATTRIB = 23; -v1829.ATTRIB_NAME = 24; -v1829.ATTRIB_NAME_SAW_WHITE = 25; -v1829.ATTRIB_VALUE = 26; -v1829.ATTRIB_VALUE_QUOTED = 27; -v1829.ATTRIB_VALUE_CLOSED = 28; -v1829.ATTRIB_VALUE_UNQUOTED = 29; -v1829.ATTRIB_VALUE_ENTITY_Q = 30; -v1829.ATTRIB_VALUE_ENTITY_U = 31; -v1829.CLOSE_TAG = 32; -v1829.CLOSE_TAG_SAW_WHITE = 33; -v1829.SCRIPT = 34; -v1829.SCRIPT_ENDING = 35; -v1663.STATE = v1829; -v1663.XML_ENTITIES = v1673; -v1663.ENTITIES = v1675; -var v1662 = v1663; -var v1830 = v1030; -var v1832; -v1832 = function (processors, item, key) { var i, len, process; for (i = 0, len = processors.length; i < len; i++) { - process = processors[i]; - item = process(item, key); -} return item; }; -const v1833 = {}; -v1833.constructor = v1832; -v1832.prototype = v1833; -var v1831 = v1832; -var v1834 = v31; -var v1836; -var v1837 = v31; -v1836 = function (thing) { return typeof thing === \\"object\\" && (thing != null) && v1837.keys(thing).length === 0; }; -const v1838 = {}; -v1838.constructor = v1836; -v1836.prototype = v1838; -var v1835 = v1836; -v1661 = function () { var attrkey, charkey, ontext, stack; this.removeAllListeners(); this.saxParser = v1662.parser(this.options.strict, { trim: false, normalize: false, xmlns: this.options.xmlns }); this.saxParser.errThrown = false; this.saxParser.onerror = (function (_this) { return function (error) { _this.saxParser.resume(); if (!_this.saxParser.errThrown) { - _this.saxParser.errThrown = true; - return _this.emit(\\"error\\", error); -} }; })(this); this.saxParser.onend = (function (_this) { return function () { if (!_this.saxParser.ended) { - _this.saxParser.ended = true; - return _this.emit(\\"end\\", _this.resultObject); -} }; })(this); this.saxParser.ended = false; this.EXPLICIT_CHARKEY = this.options.explicitCharkey; this.resultObject = null; stack = []; attrkey = this.options.attrkey; charkey = this.options.charkey; this.saxParser.onopentag = (function (_this) { return function (node) { var key, newValue, obj, processedKey, ref; obj = {}; obj[charkey] = \\"\\"; if (!_this.options.ignoreAttrs) { - ref = node.attributes; - for (key in ref) { - if (!v1830.call(ref, key)) - continue; - if (!(attrkey in obj) && !_this.options.mergeAttrs) { - obj[attrkey] = {}; - } - newValue = _this.options.attrValueProcessors ? v1831(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key]; - processedKey = _this.options.attrNameProcessors ? v1831(_this.options.attrNameProcessors, key) : key; - if (_this.options.mergeAttrs) { - _this.assignOrPush(obj, processedKey, newValue); - } - else { - obj[attrkey][processedKey] = newValue; - } - } -} obj[\\"#name\\"] = _this.options.tagNameProcessors ? v1831(_this.options.tagNameProcessors, node.name) : node.name; if (_this.options.xmlns) { - obj[_this.options.xmlnskey] = { uri: node.uri, local: node.local }; -} return stack.push(obj); }; })(this); this.saxParser.onclosetag = (function (_this) { return function () { var cdata, emptyStr, key, node, nodeName, obj, objClone, old, s, xpath; obj = stack.pop(); nodeName = obj[\\"#name\\"]; if (!_this.options.explicitChildren || !_this.options.preserveChildrenOrder) { - delete obj[\\"#name\\"]; -} if (obj.cdata === true) { - cdata = obj.cdata; - delete obj.cdata; -} s = stack[stack.length - 1]; if (obj[charkey].match(/^\\\\s*$/) && !cdata) { - emptyStr = obj[charkey]; - delete obj[charkey]; -} -else { - if (_this.options.trim) { - obj[charkey] = obj[charkey].trim(); - } - if (_this.options.normalize) { - obj[charkey] = obj[charkey].replace(/\\\\s{2,}/g, \\" \\").trim(); - } - obj[charkey] = _this.options.valueProcessors ? v1831(_this.options.valueProcessors, obj[charkey], nodeName) : obj[charkey]; - if (v1834.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) { - obj = obj[charkey]; - } -} if (v1835(obj)) { - obj = _this.options.emptyTag !== \\"\\" ? _this.options.emptyTag : emptyStr; -} if (_this.options.validator != null) { - xpath = \\"/\\" + ((function () { var i, len, results; results = []; for (i = 0, len = stack.length; i < len; i++) { - node = stack[i]; - results.push(node[\\"#name\\"]); - } return results; })()).concat(nodeName).join(\\"/\\"); - (function () { var err; try { - return obj = _this.options.validator(xpath, s && s[nodeName], obj); - } - catch (error1) { - err = error1; - return _this.emit(\\"error\\", err); - } })(); -} if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === \\"object\\") { - if (!_this.options.preserveChildrenOrder) { - node = {}; - if (_this.options.attrkey in obj) { - node[_this.options.attrkey] = obj[_this.options.attrkey]; - delete obj[_this.options.attrkey]; - } - if (!_this.options.charsAsChildren && _this.options.charkey in obj) { - node[_this.options.charkey] = obj[_this.options.charkey]; - delete obj[_this.options.charkey]; - } - if (v1834.getOwnPropertyNames(obj).length > 0) { - node[_this.options.childkey] = obj; - } - obj = node; - } - else if (s) { - s[_this.options.childkey] = s[_this.options.childkey] || []; - objClone = {}; - for (key in obj) { - if (!v1650.call(obj, key)) - continue; - objClone[key] = obj[key]; - } - s[_this.options.childkey].push(objClone); - delete obj[\\"#name\\"]; - if (v1834.keys(obj).length === 1 && charkey in obj && !_this.EXPLICIT_CHARKEY) { - obj = obj[charkey]; - } - } -} if (stack.length > 0) { - return _this.assignOrPush(s, nodeName, obj); -} -else { - if (_this.options.explicitRoot) { - old = obj; - obj = {}; - obj[nodeName] = old; - } - _this.resultObject = obj; - _this.saxParser.ended = true; - return _this.emit(\\"end\\", _this.resultObject); -} }; })(this); ontext = (function (_this) { return function (text) { var charChild, s; s = stack[stack.length - 1]; if (s) { - s[charkey] += text; - if (_this.options.explicitChildren && _this.options.preserveChildrenOrder && _this.options.charsAsChildren && (_this.options.includeWhiteChars || text.replace(/\\\\\\\\n/g, \\"\\").trim() !== \\"\\")) { - s[_this.options.childkey] = s[_this.options.childkey] || []; - charChild = { \\"#name\\": \\"__text__\\" }; - charChild[charkey] = text; - if (_this.options.normalize) { - charChild[charkey] = charChild[charkey].replace(/\\\\s{2,}/g, \\" \\").trim(); - } - s[_this.options.childkey].push(charChild); - } - return s; -} }; })(this); this.saxParser.ontext = ontext; return this.saxParser.oncdata = (function (_this) { return function (text) { var s; s = ontext(text); if (s) { - return s.cdata = true; -} }; })(this); }; -const v1839 = {}; -v1839.constructor = v1661; -v1661.prototype = v1839; -v1653.reset = v1661; -var v1840; -const v1842 = Object.create(v646); -var v1843; -v1843 = function (str) { if (str[0] === \\"\\\\uFEFF\\") { - return str.substring(1); -} -else { - return str; -} }; -const v1844 = {}; -v1844.constructor = v1843; -v1843.prototype = v1844; -v1842.stripBOM = v1843; -var v1841 = v1842; -var v1845 = v1656; -v1840 = function (str, cb) { var err; if ((cb != null) && typeof cb === \\"function\\") { - this.on(\\"end\\", function (result) { this.reset(); return cb(null, result); }); - this.on(\\"error\\", function (err) { this.reset(); return cb(err); }); -} try { - str = str.toString(); - if (str.trim() === \\"\\") { - this.emit(\\"end\\", null); - return true; - } - str = v1841.stripBOM(str); - if (this.options.async) { - this.remaining = str; - v1845(this.processAsync); - return this.saxParser; - } - return this.saxParser.write(str).close(); -} -catch (error1) { - err = error1; - if (!(this.saxParser.errThrown || this.saxParser.ended)) { - this.emit(\\"error\\", err); - return this.saxParser.errThrown = true; - } - else if (this.saxParser.ended) { - throw err; - } -} }; -const v1846 = {}; -v1846.constructor = v1840; -v1840.prototype = v1846; -v1653.parseString = v1840; -v1636.prototype = v1653; -const v1847 = process.__signal_exit_emitter__.constructor.once; -v1636.once = v1847; -const v1848 = process.__signal_exit_emitter__.constructor.on; -v1636.on = v1848; -const v1849 = process.__signal_exit_emitter__.constructor.getEventListeners; -v1636.getEventListeners = v1849; -const v1850 = process.__signal_exit_emitter__.constructor; -v1636.EventEmitter = v1850; -v1636.usingDomains = true; -const v1851 = Symbol; -v1636.captureRejectionSymbol = v1851.for(\\"nodejs.rejection\\"); -v1636.captureRejections = false; -const v1852 = require(\\"events\\").EventEmitterAsyncResource; -v1636.EventEmitterAsyncResource = v1852; -v1636.errorMonitor = v1851(\\"events.errorMonitor\\"); -v1636.defaultMaxListeners = 10; -const v1853 = process.__signal_exit_emitter__.constructor.setMaxListeners; -v1636.setMaxListeners = v1853; -const v1854 = process.__signal_exit_emitter__.constructor.init; -v1636.init = v1854; -const v1855 = process.__signal_exit_emitter__.constructor.listenerCount; -v1636.listenerCount = v1855; -v1636.__super__ = v1652; -v1001.Parser = v1636; -v1001.parseString = v1645; -var v1000 = v1001; -const v1857 = {}; -v1857.explicitCharkey = false; -v1857.trim = false; -v1857.normalize = false; -v1857.explicitRoot = false; -v1857.emptyTag = null; -v1857.explicitArray = true; -v1857.ignoreAttrs = false; -v1857.mergeAttrs = false; -v1857.validator = null; -var v1856 = v1857; -var v1859; -var v1861; -var v1862 = v3; -var v1863 = v33; -var v1864 = v1859; -var v1866; -var v1867 = v855; -v1866 = function parseScalar(text, shape) { if (text && text.$ && text.$.encoding === \\"base64\\") { - shape = new v1867.create({ type: text.$.encoding }); -} if (text && text._) - text = text._; if (typeof shape.toType === \\"function\\") { - return shape.toType(text); -} -else { - return text; -} }; -const v1868 = {}; -v1868.constructor = v1866; -v1866.prototype = v1868; -var v1865 = v1866; -v1861 = function parseStructure(xml, shape) { var data = {}; if (xml === null) - return data; v1862.each(shape.members, function (memberName, memberShape) { var xmlName = memberShape.name; if (v113.hasOwnProperty.call(xml, xmlName) && v1863.isArray(xml[xmlName])) { - var xmlChild = xml[xmlName]; - if (!memberShape.flattened) - xmlChild = xmlChild[0]; - data[memberName] = v1864(xmlChild, memberShape); -} -else if (memberShape.isXmlAttribute && xml.$ && v113.hasOwnProperty.call(xml.$, xmlName)) { - data[memberName] = v1865(xml.$[xmlName], memberShape); -} -else if (memberShape.type === \\"list\\" && !shape.api.xmlNoDefaultLists) { - data[memberName] = memberShape.defaultValue; -} }); return data; }; -const v1869 = {}; -v1869.constructor = v1861; -v1861.prototype = v1869; -var v1860 = v1861; -var v1871; -var v1872 = v33; -var v1873 = v3; -var v1874 = v1859; -v1871 = function parseMap(xml, shape) { var data = {}; if (xml === null) - return data; var xmlKey = shape.key.name || \\"key\\"; var xmlValue = shape.value.name || \\"value\\"; var iterable = shape.flattened ? xml : xml.entry; if (v1872.isArray(iterable)) { - v1873.arrayEach(iterable, function (child) { data[child[xmlKey][0]] = v1874(child[xmlValue][0], shape.value); }); -} return data; }; -const v1875 = {}; -v1875.constructor = v1871; -v1871.prototype = v1875; -var v1870 = v1871; -var v1877; -var v1878 = v3; -var v1879 = v33; -v1877 = function parseList(xml, shape) { var data = []; var name = shape.member.name || \\"member\\"; if (shape.flattened) { - v1878.arrayEach(xml, function (xmlChild) { data.push(v1874(xmlChild, shape.member)); }); -} -else if (xml && v1879.isArray(xml[name])) { - v1873.arrayEach(xml[name], function (child) { data.push(v1874(child, shape.member)); }); -} return data; }; -const v1880 = {}; -v1880.constructor = v1877; -v1877.prototype = v1880; -var v1876 = v1877; -var v1882; -var v1883 = v33; -var v1884 = v1859; -var v1885 = v31; -var v1886 = v1877; -var v1887 = v1859; -v1882 = function parseUnknown(xml) { if (xml === undefined || xml === null) - return \\"\\"; if (typeof xml === \\"string\\") - return xml; if (v1883.isArray(xml)) { - var arr = []; - for (i = 0; i < xml.length; i++) { - arr.push(v1884(xml[i], {})); - } - return arr; -} var keys = v1885.keys(xml), i; if (keys.length === 0 || (keys.length === 1 && keys[0] === \\"$\\")) { - return {}; -} var data = {}; for (i = 0; i < keys.length; i++) { - var key = keys[i], value = xml[key]; - if (key === \\"$\\") - continue; - if (value.length > 1) { - data[key] = v1886(value, { member: {} }); - } - else { - data[key] = v1887(value[0], {}); - } -} return data; }; -const v1888 = {}; -v1888.constructor = v1882; -v1882.prototype = v1888; -var v1881 = v1882; -var v1889 = v1866; -v1859 = function parseXml(xml, shape) { switch (shape.type) { - case \\"structure\\": return v1860(xml, shape); - case \\"map\\": return v1870(xml, shape); - case \\"list\\": return v1876(xml, shape); - case undefined: - case null: return v1881(xml); - default: return v1889(xml, shape); -} }; -const v1890 = {}; -v1890.constructor = v1859; -v1859.prototype = v1890; -var v1858 = v1859; -var v1891 = v3; -var v1892 = v1859; -v999 = function (xml, shape) { shape = shape || {}; var result = null; var error = null; var parser = new v1000.Parser(v1856); parser.parseString(xml, function (e, r) { error = e; result = r; }); if (result) { - var data = v1858(result, shape); - if (result.ResponseMetadata) { - data.ResponseMetadata = v1887(result.ResponseMetadata[0], {}); - } - return data; -} -else if (error) { - throw v1891.error(error, { code: \\"XMLParserError\\", retryable: true }); -} -else { - return v1892({}, shape); -} }; -const v1893 = {}; -v1893.constructor = v999; -v999.prototype = v1893; -v998.parse = v999; -v997.prototype = v998; -v937.Parser = v997; -var v1894 = v855; -var v1895 = v3; -v853 = function extractData(resp) { var req = resp.request; var operation = req.service.api.operations[req.operation]; var shape = operation.output || {}; var origRules = shape; if (origRules.resultWrapper) { - var tmp = v854.create({ type: \\"structure\\" }); - tmp.members[origRules.resultWrapper] = shape; - tmp.memberNames = [origRules.resultWrapper]; - v936.property(shape, \\"name\\", shape.resultWrapper); - shape = tmp; -} var parser = new v937.Parser(); if (shape && shape.members && !shape.members._XAMZRequestId) { - var requestIdShape = v1894.create({ type: \\"string\\" }, { api: { protocol: \\"query\\" } }, \\"requestId\\"); - shape.members._XAMZRequestId = requestIdShape; -} var data = parser.parse(resp.httpResponse.body.toString(), shape); resp.requestId = data._XAMZRequestId || data.requestId; if (data._XAMZRequestId) - delete data._XAMZRequestId; if (origRules.resultWrapper) { - if (data[origRules.resultWrapper]) { - v1895.update(data, data[origRules.resultWrapper]); - delete data[origRules.resultWrapper]; - } -} resp.data = data; }; -const v1896 = {}; -v1896.constructor = v853; -v853.prototype = v1896; -v852.push(v853); -v798.extractData = v852; -const v1897 = []; -var v1898; -var v1899 = v40; -var v1900 = v3; -var v1901 = v40; -v1898 = function extractError(resp) { var data, body = resp.httpResponse.body.toString(); if (body.match(\\" 0) { - try { - var e = v1968.parse(httpResponse.body.toString()); - var code = e.__type || e.code || e.Code; - if (code) { - error.code = code.split(\\"#\\").pop(); - } - if (error.code === \\"RequestEntityTooLarge\\") { - error.message = \\"Request body must be less than 1 MB\\"; - } - else { - error.message = (e.message || e.Message || null); - } - } - catch (e) { - error.statusCode = httpResponse.statusCode; - error.message = httpResponse.statusMessage; - } -} -else { - error.statusCode = httpResponse.statusCode; - error.message = httpResponse.statusCode.toString(); -} resp.error = v1969.error(new v1970(), error); }; -const v1971 = {}; -v1971.constructor = v1967; -v1967.prototype = v1971; -v1966.push(v1967); -v1904.extractError = v1966; -v1903._events = v1904; -v1903.BUILD = v1906; -v1903.EXTRACT_DATA = v1937; -v1903.EXTRACT_ERROR = v1967; -const v1972 = Object.create(v401); -const v1973 = {}; -const v1974 = []; -var v1975; -const v1977 = {}; -var v1978; -var v1980; -v1980 = function populateMethod(req) { req.httpRequest.method = req.service.api.operations[req.operation].httpMethod; }; -const v1981 = {}; -v1981.constructor = v1980; -v1980.prototype = v1981; -var v1979 = v1980; -var v1983; -var v1985; -var v1986 = v3; -var v1987 = v373; -var v1988 = v3; -var v1989 = v3; -var v1990 = v136; -var v1991 = v3; -var v1992 = v3; -var v1993 = v33; -var v1994 = v136; -var v1995 = v3; -var v1996 = v136; -var v1997 = v3; -var v1998 = v31; -var v1999 = v33; -var v2000 = v3; -var v2001 = v136; -v1985 = function generateURI(endpointPath, operationPath, input, params) { var uri = [endpointPath, operationPath].join(\\"/\\"); uri = uri.replace(/\\\\/+/g, \\"/\\"); var queryString = {}, queryStringSet = false; v1986.each(input.members, function (name, member) { var paramValue = params[name]; if (paramValue === null || paramValue === undefined) - return; if (member.location === \\"uri\\") { - var regex = new v1987(\\"\\\\\\\\{\\" + member.name + \\"(\\\\\\\\+)?\\\\\\\\}\\"); - uri = uri.replace(regex, function (_, plus) { var fn = plus ? v1988.uriEscapePath : v1989.uriEscape; return fn(v1990(paramValue)); }); -} -else if (member.location === \\"querystring\\") { - queryStringSet = true; - if (member.type === \\"list\\") { - queryString[member.name] = paramValue.map(function (val) { return v1991.uriEscape(member.member.toWireFormat(val).toString()); }); - } - else if (member.type === \\"map\\") { - v1992.each(paramValue, function (key, value) { if (v1993.isArray(value)) { - queryString[key] = value.map(function (val) { return v1989.uriEscape(v1994(val)); }); - } - else { - queryString[key] = v1995.uriEscape(v1996(value)); - } }); - } - else { - queryString[member.name] = v1991.uriEscape(member.toWireFormat(paramValue).toString()); - } -} }); if (queryStringSet) { - uri += (uri.indexOf(\\"?\\") >= 0 ? \\"&\\" : \\"?\\"); - var parts = []; - v1997.arrayEach(v1998.keys(queryString).sort(), function (key) { if (!v1999.isArray(queryString[key])) { - queryString[key] = [queryString[key]]; - } for (var i = 0; i < queryString[key].length; i++) { - parts.push(v2000.uriEscape(v2001(key)) + \\"=\\" + queryString[key][i]); - } }); - uri += parts.join(\\"&\\"); -} return uri; }; -const v2002 = {}; -v2002.constructor = v1985; -v1985.prototype = v2002; -var v1984 = v1985; -v1983 = function populateURI(req) { var operation = req.service.api.operations[req.operation]; var input = operation.input; var uri = v1984(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); req.httpRequest.path = uri; }; -const v2003 = {}; -v2003.constructor = v1983; -v1983.prototype = v2003; -var v1982 = v1983; -var v2005; -var v2006 = v3; -v2005 = function populateHeaders(req) { var operation = req.service.api.operations[req.operation]; v2000.each(operation.input.members, function (name, member) { var value = req.params[name]; if (value === null || value === undefined) - return; if (member.location === \\"headers\\" && member.type === \\"map\\") { - v2006.each(value, function (key, memberValue) { req.httpRequest.headers[member.name + key] = memberValue; }); -} -else if (member.location === \\"header\\") { - value = member.toWireFormat(value).toString(); - if (member.isJsonValue) { - value = v37.encode(value); - } - req.httpRequest.headers[member.name] = value; -} }); }; -const v2007 = {}; -v2007.constructor = v2005; -v2005.prototype = v2007; -var v2004 = v2005; -var v2008 = v830; -v1978 = function buildRequest(req) { v1979(req); v1982(req); v2004(req); v2008(req); }; -const v2009 = {}; -v2009.constructor = v1978; -v1978.prototype = v2009; -v1977.buildRequest = v1978; -var v2010; -v2010 = function extractError() { }; -const v2011 = {}; -v2011.constructor = v2010; -v2010.prototype = v2011; -v1977.extractError = v2010; -var v2012; -var v2013 = v3; -var v2014 = v373; -var v2015 = v3; -var v2016 = v117; -v2012 = function extractData(resp) { var req = resp.request; var data = {}; var r = resp.httpResponse; var operation = req.service.api.operations[req.operation]; var output = operation.output; var headers = {}; v2013.each(r.headers, function (k, v) { headers[k.toLowerCase()] = v; }); v2013.each(output.members, function (name, member) { var header = (member.name || name).toLowerCase(); if (member.location === \\"headers\\" && member.type === \\"map\\") { - data[name] = {}; - var location = member.isLocationName ? member.name : \\"\\"; - var pattern = new v2014(\\"^\\" + location + \\"(.+)\\", \\"i\\"); - v2015.each(r.headers, function (k, v) { var result = k.match(pattern); if (result !== null) { - data[name][result[1]] = v; - } }); -} -else if (member.location === \\"header\\") { - if (headers[header] !== undefined) { - var value = member.isJsonValue ? v37.decode(headers[header]) : headers[header]; - data[name] = member.toType(value); - } -} -else if (member.location === \\"statusCode\\") { - data[name] = v2016(r.statusCode, 10); -} }); resp.data = data; }; -const v2017 = {}; -v2017.constructor = v2012; -v2012.prototype = v2017; -v1977.extractData = v2012; -v1977.generateURI = v1985; -var v1976 = v1977; -var v2019; -var v2020 = v1908; -var v2022; -v2022 = function applyContentTypeHeader(req, isBinary) { if (!req.httpRequest.headers[\\"Content-Type\\"]) { - var type = isBinary ? \\"binary/octet-stream\\" : \\"application/json\\"; - req.httpRequest.headers[\\"Content-Type\\"] = type; -} }; -const v2023 = {}; -v2023.constructor = v2022; -v2022.prototype = v2023; -var v2021 = v2022; -var v2024 = v2022; -v2019 = function populateBody(req) { var builder = new v2020(); var input = req.service.api.operations[req.operation].input; if (input.payload) { - var params = {}; - var payloadShape = input.members[input.payload]; - params = req.params[input.payload]; - if (payloadShape.type === \\"structure\\") { - req.httpRequest.body = builder.build(params || {}, payloadShape); - v2021(req); - } - else if (params !== undefined) { - req.httpRequest.body = params; - if (payloadShape.type === \\"binary\\" || payloadShape.isStreaming) { - v2021(req, true); - } - } -} -else { - req.httpRequest.body = builder.build(req.params, input); - v2024(req); -} }; -const v2025 = {}; -v2025.constructor = v2019; -v2019.prototype = v2025; -var v2018 = v2019; -v1975 = function buildRequest(req) { v1976.buildRequest(req); if ([\\"GET\\", \\"HEAD\\", \\"DELETE\\"].indexOf(req.httpRequest.method) < 0) { - v2018(req); -} }; -const v2026 = {}; -v2026.constructor = v1975; -v1975.prototype = v2026; -v1974.push(v1975); -v1973.build = v1974; -const v2027 = []; -var v2028; -var v2029 = v1977; -var v2030 = v1940; -var v2031 = undefined; -var v2032 = v3; -var v2033 = v1940; -const v2035 = {}; -v2035.buildRequest = v1906; -v2035.extractError = v1967; -v2035.extractData = v1937; -var v2034 = v2035; -var v2036 = v3; -v2028 = function extractData(resp) { v2029.extractData(resp); var req = resp.request; var operation = req.service.api.operations[req.operation]; var rules = req.service.api.operations[req.operation].output || {}; var parser; var hasEventOutput = operation.hasEventOutput; if (rules.payload) { - var payloadMember = rules.members[rules.payload]; - var body = resp.httpResponse.body; - if (payloadMember.isEventStream) { - parser = new v2030(); - resp.data[v2031] = v2032.createEventStream(undefined === 2 ? resp.httpResponse.stream : body, parser, payloadMember); - } - else if (payloadMember.type === \\"structure\\" || payloadMember.type === \\"list\\") { - var parser = new v2033(); - resp.data[rules.payload] = parser.parse(body, payloadMember); - } - else if (payloadMember.type === \\"binary\\" || payloadMember.isStreaming) { - resp.data[rules.payload] = body; - } - else { - resp.data[rules.payload] = payloadMember.toType(body); - } -} -else { - var data = resp.data; - v2034.extractData(resp); - resp.data = v2036.merge(data, resp.data); -} }; -const v2037 = {}; -v2037.constructor = v2028; -v2028.prototype = v2037; -v2027.push(v2028); -v1973.extractData = v2027; -const v2038 = []; -var v2039; -var v2040 = v2035; -v2039 = function extractError(resp) { v2040.extractError(resp); }; -const v2041 = {}; -v2041.constructor = v2039; -v2039.prototype = v2041; -v2038.push(v2039); -v1973.extractError = v2038; -v1972._events = v1973; -v1972.BUILD = v1975; -v1972.EXTRACT_DATA = v2028; -v1972.EXTRACT_ERROR = v2039; -const v2042 = Object.create(v401); -const v2043 = {}; -const v2044 = []; -var v2045; -var v2046 = v1977; -var v2048; -v2048 = function populateBody(req) { var input = req.service.api.operations[req.operation].input; var builder = new v937.Builder(); var params = req.params; var payload = input.payload; if (payload) { - var payloadMember = input.members[payload]; - params = params[payload]; - if (params === undefined) - return; - if (payloadMember.type === \\"structure\\") { - var rootElement = payloadMember.name; - req.httpRequest.body = builder.toXML(params, payloadMember, rootElement, true); - } - else { - req.httpRequest.body = params; - } -} -else { - req.httpRequest.body = builder.toXML(params, input, input.name || input.shape || v55.upperFirst(req.operation) + \\"Request\\"); -} }; -const v2049 = {}; -v2049.constructor = v2048; -v2048.prototype = v2049; -var v2047 = v2048; -v2045 = function buildRequest(req) { v2046.buildRequest(req); if ([\\"GET\\", \\"HEAD\\"].indexOf(req.httpRequest.method) < 0) { - v2047(req); -} }; -const v2050 = {}; -v2050.constructor = v2045; -v2045.prototype = v2050; -v2044.push(v2045); -v2043.build = v2044; -const v2051 = []; -var v2052; -var v2053 = v1977; -var v2054 = v3; -var v2055 = v3; -v2052 = function extractData(resp) { v2053.extractData(resp); var parser; var req = resp.request; var body = resp.httpResponse.body; var operation = req.service.api.operations[req.operation]; var output = operation.output; var hasEventOutput = operation.hasEventOutput; var payload = output.payload; if (payload) { - var payloadMember = output.members[payload]; - if (payloadMember.isEventStream) { - parser = new v937.Parser(); - resp.data[payload] = v2054.createEventStream(2 === 2 ? resp.httpResponse.stream : resp.httpResponse.body, parser, payloadMember); - } - else if (payloadMember.type === \\"structure\\") { - parser = new v937.Parser(); - resp.data[payload] = parser.parse(body.toString(), payloadMember); - } - else if (payloadMember.type === \\"binary\\" || payloadMember.isStreaming) { - resp.data[payload] = body; - } - else { - resp.data[payload] = payloadMember.toType(body); - } -} -else if (body.length > 0) { - parser = new v937.Parser(); - var data = parser.parse(body.toString(), output); - v2055.update(resp.data, data); -} }; -const v2056 = {}; -v2056.constructor = v2052; -v2052.prototype = v2056; -v2051.push(v2052); -v2043.extractData = v2051; -const v2057 = []; -var v2058; -var v2059 = v1977; -var v2060 = v3; -var v2061 = v40; -var v2062 = v3; -var v2063 = v40; -v2058 = function extractError(resp) { v2059.extractError(resp); var data; try { - data = new v937.Parser().parse(resp.httpResponse.body.toString()); -} -catch (e) { - data = { Code: resp.httpResponse.statusCode, Message: resp.httpResponse.statusMessage }; -} if (data.Errors) - data = data.Errors; if (data.Error) - data = data.Error; if (data.Code) { - resp.error = v2060.error(new v2061(), { code: data.Code, message: data.Message }); -} -else { - resp.error = v2062.error(new v2063(), { code: resp.httpResponse.statusCode, message: null }); -} }; -const v2064 = {}; -v2064.constructor = v2058; -v2058.prototype = v2064; -v2057.push(v2058); -v2043.extractError = v2057; -v2042._events = v2043; -v2042.BUILD = v2045; -v2042.EXTRACT_DATA = v2052; -v2042.EXTRACT_ERROR = v2058; -v796 = function serviceInterface() { switch (this.api.protocol) { - case \\"ec2\\": return v797; - case \\"query\\": return v797; - case \\"json\\": return v1903; - case \\"rest-json\\": return v1972; - case \\"rest-xml\\": return v2042; -} if (this.api.protocol) { - throw new v389(\\"Invalid service \`protocol' \\" + this.api.protocol + \\" in API config\\"); -} }; -const v2065 = {}; -v2065.constructor = v796; -v796.prototype = v2065; -v309.serviceInterface = v796; -var v2066; -v2066 = function successfulResponse(resp) { return resp.httpResponse.statusCode < 300; }; -const v2067 = {}; -v2067.constructor = v2066; -v2066.prototype = v2067; -v309.successfulResponse = v2066; -var v2068; -v2068 = function numRetries() { if (this.config.maxRetries !== undefined) { - return this.config.maxRetries; -} -else { - return this.defaultRetryCount; -} }; -const v2069 = {}; -v2069.constructor = v2068; -v2068.prototype = v2069; -v309.numRetries = v2068; -var v2070; -v2070 = function retryDelays(retryCount, err) { return v3.calculateRetryDelay(retryCount, this.config.retryDelayOptions, err); }; -const v2071 = {}; -v2071.constructor = v2070; -v2070.prototype = v2071; -v309.retryDelays = v2070; -var v2072; -v2072 = function retryableError(error) { if (this.timeoutError(error)) - return true; if (this.networkingError(error)) - return true; if (this.expiredCredentialsError(error)) - return true; if (this.throttledError(error)) - return true; if (error.statusCode >= 500) - return true; return false; }; -const v2073 = {}; -v2073.constructor = v2072; -v2072.prototype = v2073; -v309.retryableError = v2072; -var v2074; -v2074 = function networkingError(error) { return error.code === \\"NetworkingError\\"; }; -const v2075 = {}; -v2075.constructor = v2074; -v2074.prototype = v2075; -v309.networkingError = v2074; -var v2076; -v2076 = function timeoutError(error) { return error.code === \\"TimeoutError\\"; }; -const v2077 = {}; -v2077.constructor = v2076; -v2076.prototype = v2077; -v309.timeoutError = v2076; -var v2078; -v2078 = function expiredCredentialsError(error) { return (error.code === \\"ExpiredTokenException\\"); }; -const v2079 = {}; -v2079.constructor = v2078; -v2078.prototype = v2079; -v309.expiredCredentialsError = v2078; -var v2080; -v2080 = function clockSkewError(error) { switch (error.code) { - case \\"RequestTimeTooSkewed\\": - case \\"RequestExpired\\": - case \\"InvalidSignatureException\\": - case \\"SignatureDoesNotMatch\\": - case \\"AuthFailure\\": - case \\"RequestInTheFuture\\": return true; - default: return false; -} }; -const v2081 = {}; -v2081.constructor = v2080; -v2080.prototype = v2081; -v309.clockSkewError = v2080; -var v2082; -v2082 = function getSkewCorrectedDate() { return new v386(v386.now() + this.config.systemClockOffset); }; -const v2083 = {}; -v2083.constructor = v2082; -v2082.prototype = v2083; -v309.getSkewCorrectedDate = v2082; -var v2084; -v2084 = function applyClockOffset(newServerTime) { if (newServerTime) { - this.config.systemClockOffset = newServerTime - v386.now(); -} }; -const v2085 = {}; -v2085.constructor = v2084; -v2084.prototype = v2085; -v309.applyClockOffset = v2084; -var v2086; -var v2087 = v787; -v2086 = function isClockSkewed(newServerTime) { if (newServerTime) { - return v2087.abs(this.getSkewCorrectedDate().getTime() - newServerTime) >= 300000; -} }; -const v2088 = {}; -v2088.constructor = v2086; -v2086.prototype = v2088; -v309.isClockSkewed = v2086; -var v2089; -v2089 = function throttledError(error) { if (error.statusCode === 429) - return true; switch (error.code) { - case \\"ProvisionedThroughputExceededException\\": - case \\"Throttling\\": - case \\"ThrottlingException\\": - case \\"RequestLimitExceeded\\": - case \\"RequestThrottled\\": - case \\"RequestThrottledException\\": - case \\"TooManyRequestsException\\": - case \\"TransactionInProgressException\\": - case \\"EC2ThrottledException\\": return true; - default: return false; -} }; -const v2090 = {}; -v2090.constructor = v2089; -v2089.prototype = v2090; -v309.throttledError = v2089; -var v2091; -v2091 = function endpointFromTemplate(endpoint) { if (typeof endpoint !== \\"string\\") - return endpoint; var e = endpoint; e = e.replace(/\\\\{service\\\\}/g, this.api.endpointPrefix); e = e.replace(/\\\\{region\\\\}/g, this.config.region); e = e.replace(/\\\\{scheme\\\\}/g, this.config.sslEnabled ? \\"https\\" : \\"http\\"); return e; }; -const v2092 = {}; -v2092.constructor = v2091; -v2091.prototype = v2092; -v309.endpointFromTemplate = v2091; -var v2093; -v2093 = function setEndpoint(endpoint) { this.endpoint = new v375.Endpoint(endpoint, this.config); }; -const v2094 = {}; -v2094.constructor = v2093; -v2093.prototype = v2094; -v309.setEndpoint = v2093; -var v2095; -v2095 = function paginationConfig(operation, throwException) { var paginator = this.api.operations[operation].paginator; if (!paginator) { - if (throwException) { - var e = new v389(); - throw v3.error(e, \\"No pagination configuration for \\" + operation); - } - return null; -} return paginator; }; -const v2096 = {}; -v2096.constructor = v2095; -v2095.prototype = v2096; -v309.paginationConfig = v2095; -v309.listeners = v403; -v309.on = v405; -v309.onAsync = v407; -v309.removeListener = v409; -v309.removeAllListeners = v411; -v309.emit = v413; -v309.callListeners = v415; -v309.addListeners = v418; -v309.addNamedListener = v420; -v309.addNamedAsyncListener = v422; -v309.addNamedListeners = v424; -v309.addListener = v405; -const v2097 = {}; -v309._events = v2097; -const v2098 = {}; -var v2099; -v2099 = function Publisher(options) { options = options || {}; this.enabled = options.enabled || false; this.port = options.port || 31000; this.clientId = options.clientId || \\"\\"; this.address = options.host || \\"127.0.0.1\\"; if (this.clientId.length > 255) { - this.clientId = this.clientId.substr(0, 255); -} this.messagesInFlight = 0; }; -v2099.prototype = v2098; -v2098.constructor = v2099; -const v2100 = {}; -v2100.UserAgent = 256; -v2100.SdkException = 128; -v2100.SdkExceptionMessage = 512; -v2100.AwsException = 128; -v2100.AwsExceptionMessage = 512; -v2100.FinalSdkException = 128; -v2100.FinalSdkExceptionMessage = 512; -v2100.FinalAwsException = 128; -v2100.FinalAwsExceptionMessage = 512; -v2098.fieldsToTrim = v2100; -var v2101; -var v2102 = v31; -v2101 = function (event) { var trimmableFields = v2102.keys(this.fieldsToTrim); for (var i = 0, iLen = trimmableFields.length; i < iLen; i++) { - var field = trimmableFields[i]; - if (event.hasOwnProperty(field)) { - var maxLength = this.fieldsToTrim[field]; - var value = event[field]; - if (value && value.length > maxLength) { - event[field] = value.substr(0, maxLength); - } - } -} return event; }; -const v2103 = {}; -v2103.constructor = v2101; -v2101.prototype = v2103; -v2098.trimFields = v2101; -var v2104; -var v2105 = v42; -var v2106 = v163; -var v2107 = 8192; -v2104 = function (event) { event.ClientId = this.clientId; this.trimFields(event); var message = v2105(v2106.stringify(event)); if (!this.enabled || message.length > v2107) { - return; -} this.publishDatagram(message); }; -const v2108 = {}; -v2108.constructor = v2104; -v2104.prototype = v2108; -v2098.eventHandler = v2104; -var v2109; -v2109 = function (message) { var self = this; var client = this.getClient(); this.messagesInFlight++; this.client.send(message, 0, message.length, this.port, this.address, function (err, bytes) { if (--self.messagesInFlight <= 0) { - self.destroyClient(); -} }); }; -const v2110 = {}; -v2110.constructor = v2109; -v2109.prototype = v2110; -v2098.publishDatagram = v2109; -var v2111; -const v2113 = require(\\"dgram\\"); -var v2112 = v2113; -v2111 = function () { if (!this.client) { - this.client = v2112.createSocket(\\"udp4\\"); -} return this.client; }; -const v2114 = {}; -v2114.constructor = v2111; -v2111.prototype = v2114; -v2098.getClient = v2111; -var v2115; -v2115 = function () { if (this.client) { - this.client.close(); - this.client = void 0; -} }; -const v2116 = {}; -v2116.constructor = v2115; -v2115.prototype = v2116; -v2098.destroyClient = v2115; -const v2117 = Object.create(v2098); -v2117.enabled = false; -v2117.port = 31000; -v2117.clientId = \\"\\"; -v2117.address = \\"127.0.0.1\\"; -v2117.messagesInFlight = 0; -v309.publisher = v2117; -v299.prototype = v309; -v299.__super__ = v31; -var v2118; -v2118 = function defineMethods(svc) { v3.each(svc.prototype.api.operations, function iterator(method) { if (svc.prototype[method]) - return; var operation = svc.prototype.api.operations[method]; if (operation.authtype === \\"none\\") { - svc.prototype[method] = function (params, callback) { return this.makeUnauthenticatedRequest(method, params, callback); }; -} -else { - svc.prototype[method] = function (params, callback) { return this.makeRequest(method, params, callback); }; -} }); }; -const v2119 = {}; -v2119.constructor = v2118; -v2118.prototype = v2119; -v299.defineMethods = v2118; -var v2120; -const v2121 = {}; -v2121.sts = true; -v2121.cognitoidentity = true; -v2121.acm = true; -v2121.apigateway = true; -v2121.applicationautoscaling = true; -v2121.appstream = true; -v2121.autoscaling = true; -v2121.batch = true; -v2121.budgets = true; -v2121.clouddirectory = true; -v2121.cloudformation = true; -v2121.cloudfront = true; -v2121.cloudhsm = true; -v2121.cloudsearch = true; -v2121.cloudsearchdomain = true; -v2121.cloudtrail = true; -v2121.cloudwatch = true; -v2121.cloudwatchevents = true; -v2121.cloudwatchlogs = true; -v2121.codebuild = true; -v2121.codecommit = true; -v2121.codedeploy = true; -v2121.codepipeline = true; -v2121.cognitoidentityserviceprovider = true; -v2121.cognitosync = true; -v2121.configservice = true; -v2121.cur = true; -v2121.datapipeline = true; -v2121.devicefarm = true; -v2121.directconnect = true; -v2121.directoryservice = true; -v2121.discovery = true; -v2121.dms = true; -v2121.dynamodb = true; -v2121.dynamodbstreams = true; -v2121.ec2 = true; -v2121.ecr = true; -v2121.ecs = true; -v2121.efs = true; -v2121.elasticache = true; -v2121.elasticbeanstalk = true; -v2121.elb = true; -v2121.elbv2 = true; -v2121.emr = true; -v2121.es = true; -v2121.elastictranscoder = true; -v2121.firehose = true; -v2121.gamelift = true; -v2121.glacier = true; -v2121.health = true; -v2121.iam = true; -v2121.importexport = true; -v2121.inspector = true; -v2121.iot = true; -v2121.iotdata = true; -v2121.kinesis = true; -v2121.kinesisanalytics = true; -v2121.kms = true; -v2121.lambda = true; -v2121.lexruntime = true; -v2121.lightsail = true; -v2121.machinelearning = true; -v2121.marketplacecommerceanalytics = true; -v2121.marketplacemetering = true; -v2121.mturk = true; -v2121.mobileanalytics = true; -v2121.opsworks = true; -v2121.opsworkscm = true; -v2121.organizations = true; -v2121.pinpoint = true; -v2121.polly = true; -v2121.rds = true; -v2121.redshift = true; -v2121.rekognition = true; -v2121.resourcegroupstaggingapi = true; -v2121.route53 = true; -v2121.route53domains = true; -v2121.s3 = true; -v2121.s3control = true; -v2121.servicecatalog = true; -v2121.ses = true; -v2121.shield = true; -v2121.simpledb = true; -v2121.sms = true; -v2121.snowball = true; -v2121.sns = true; -v2121.sqs = true; -v2121.ssm = true; -v2121.storagegateway = true; -v2121.stepfunctions = true; -v2121.support = true; -v2121.swf = true; -v2121.xray = true; -v2121.waf = true; -v2121.wafregional = true; -v2121.workdocs = true; -v2121.workspaces = true; -v2121.codestar = true; -v2121.lexmodelbuildingservice = true; -v2121.marketplaceentitlementservice = true; -v2121.athena = true; -v2121.greengrass = true; -v2121.dax = true; -v2121.migrationhub = true; -v2121.cloudhsmv2 = true; -v2121.glue = true; -v2121.mobile = true; -v2121.pricing = true; -v2121.costexplorer = true; -v2121.mediaconvert = true; -v2121.medialive = true; -v2121.mediapackage = true; -v2121.mediastore = true; -v2121.mediastoredata = true; -v2121.appsync = true; -v2121.guardduty = true; -v2121.mq = true; -v2121.comprehend = true; -v2121.iotjobsdataplane = true; -v2121.kinesisvideoarchivedmedia = true; -v2121.kinesisvideomedia = true; -v2121.kinesisvideo = true; -v2121.sagemakerruntime = true; -v2121.sagemaker = true; -v2121.translate = true; -v2121.resourcegroups = true; -v2121.alexaforbusiness = true; -v2121.cloud9 = true; -v2121.serverlessapplicationrepository = true; -v2121.servicediscovery = true; -v2121.workmail = true; -v2121.autoscalingplans = true; -v2121.transcribeservice = true; -v2121.connect = true; -v2121.acmpca = true; -v2121.fms = true; -v2121.secretsmanager = true; -v2121.iotanalytics = true; -v2121.iot1clickdevicesservice = true; -v2121.iot1clickprojects = true; -v2121.pi = true; -v2121.neptune = true; -v2121.mediatailor = true; -v2121.eks = true; -v2121.macie = true; -v2121.dlm = true; -v2121.signer = true; -v2121.chime = true; -v2121.pinpointemail = true; -v2121.ram = true; -v2121.route53resolver = true; -v2121.pinpointsmsvoice = true; -v2121.quicksight = true; -v2121.rdsdataservice = true; -v2121.amplify = true; -v2121.datasync = true; -v2121.robomaker = true; -v2121.transfer = true; -v2121.globalaccelerator = true; -v2121.comprehendmedical = true; -v2121.kinesisanalyticsv2 = true; -v2121.mediaconnect = true; -v2121.fsx = true; -v2121.securityhub = true; -v2121.appmesh = true; -v2121.licensemanager = true; -v2121.kafka = true; -v2121.apigatewaymanagementapi = true; -v2121.apigatewayv2 = true; -v2121.docdb = true; -v2121.backup = true; -v2121.worklink = true; -v2121.textract = true; -v2121.managedblockchain = true; -v2121.mediapackagevod = true; -v2121.groundstation = true; -v2121.iotthingsgraph = true; -v2121.iotevents = true; -v2121.ioteventsdata = true; -v2121.personalize = true; -v2121.personalizeevents = true; -v2121.personalizeruntime = true; -v2121.applicationinsights = true; -v2121.servicequotas = true; -v2121.ec2instanceconnect = true; -v2121.eventbridge = true; -v2121.lakeformation = true; -v2121.forecastservice = true; -v2121.forecastqueryservice = true; -v2121.qldb = true; -v2121.qldbsession = true; -v2121.workmailmessageflow = true; -v2121.codestarnotifications = true; -v2121.savingsplans = true; -v2121.sso = true; -v2121.ssooidc = true; -v2121.marketplacecatalog = true; -v2121.dataexchange = true; -v2121.sesv2 = true; -v2121.migrationhubconfig = true; -v2121.connectparticipant = true; -v2121.appconfig = true; -v2121.iotsecuretunneling = true; -v2121.wafv2 = true; -v2121.elasticinference = true; -v2121.imagebuilder = true; -v2121.schemas = true; -v2121.accessanalyzer = true; -v2121.codegurureviewer = true; -v2121.codeguruprofiler = true; -v2121.computeoptimizer = true; -v2121.frauddetector = true; -v2121.kendra = true; -v2121.networkmanager = true; -v2121.outposts = true; -v2121.augmentedairuntime = true; -v2121.ebs = true; -v2121.kinesisvideosignalingchannels = true; -v2121.detective = true; -v2121.codestarconnections = true; -v2121.synthetics = true; -v2121.iotsitewise = true; -v2121.macie2 = true; -v2121.codeartifact = true; -v2121.honeycode = true; -v2121.ivs = true; -v2121.braket = true; -v2121.identitystore = true; -v2121.appflow = true; -v2121.redshiftdata = true; -v2121.ssoadmin = true; -v2121.timestreamquery = true; -v2121.timestreamwrite = true; -v2121.s3outposts = true; -v2121.databrew = true; -v2121.servicecatalogappregistry = true; -v2121.networkfirewall = true; -v2121.mwaa = true; -v2121.amplifybackend = true; -v2121.appintegrations = true; -v2121.connectcontactlens = true; -v2121.devopsguru = true; -v2121.ecrpublic = true; -v2121.lookoutvision = true; -v2121.sagemakerfeaturestoreruntime = true; -v2121.customerprofiles = true; -v2121.auditmanager = true; -v2121.emrcontainers = true; -v2121.healthlake = true; -v2121.sagemakeredge = true; -v2121.amp = true; -v2121.greengrassv2 = true; -v2121.iotdeviceadvisor = true; -v2121.iotfleethub = true; -v2121.iotwireless = true; -v2121.location = true; -v2121.wellarchitected = true; -v2121.lexmodelsv2 = true; -v2121.lexruntimev2 = true; -v2121.fis = true; -v2121.lookoutmetrics = true; -v2121.mgn = true; -v2121.lookoutequipment = true; -v2121.nimble = true; -v2121.finspace = true; -v2121.finspacedata = true; -v2121.ssmcontacts = true; -v2121.ssmincidents = true; -v2121.applicationcostprofiler = true; -v2121.apprunner = true; -v2121.proton = true; -v2121.route53recoverycluster = true; -v2121.route53recoverycontrolconfig = true; -v2121.route53recoveryreadiness = true; -v2121.chimesdkidentity = true; -v2121.chimesdkmessaging = true; -v2121.snowdevicemanagement = true; -v2121.memorydb = true; -v2121.opensearch = true; -v2121.kafkaconnect = true; -v2121.voiceid = true; -v2121.wisdom = true; -v2121.account = true; -v2121.cloudcontrol = true; -v2121.grafana = true; -v2121.panorama = true; -v2121.chimesdkmeetings = true; -v2121.resiliencehub = true; -v2121.migrationhubstrategy = true; -v2121.appconfigdata = true; -v2121.drs = true; -v2121.migrationhubrefactorspaces = true; -v2121.evidently = true; -v2121.inspector2 = true; -v2121.rbin = true; -v2121.rum = true; -v2121.backupgateway = true; -v2121.iottwinmaker = true; -v2121.workspacesweb = true; -v2121.amplifyuibuilder = true; -v2121.keyspaces = true; -v2121.billingconductor = true; -v2121.gamesparks = true; -v2121.pinpointsmsvoicev2 = true; -v2121.ivschat = true; -v2121.chimesdkmediapipelines = true; -v2121.emrserverless = true; -v2121.m2 = true; -v2121.connectcampaigns = true; -v2121.redshiftserverless = true; -v2121.rolesanywhere = true; -v2121.licensemanagerusersubscriptions = true; -v2121.backupstorage = true; -v2121.privatenetworks = true; -var v2122 = v33; -var v2123 = v138; -var v2124 = v2; -const v2125 = {}; -v2125.Publisher = v2099; -var v2126; -var v2128; -var v2129 = v8; -var v2130 = v8; -var v2131 = v8; -v2128 = function fromEnvironment(config) { config.port = config.port || v2129.env.AWS_CSM_PORT; config.enabled = config.enabled || v2130.env.AWS_CSM_ENABLED; config.clientId = config.clientId || v2129.env.AWS_CSM_CLIENT_ID; config.host = config.host || v2131.env.AWS_CSM_HOST; return config.port && config.enabled && config.clientId && config.host || [\\"false\\", \\"0\\"].indexOf(config.enabled) >= 0; }; -const v2132 = {}; -v2132.constructor = v2128; -v2128.prototype = v2132; -var v2127 = v2128; -var v2134; -var v2135 = v8; -v2134 = function fromConfigFile(config) { var sharedFileConfig; try { - var configFile = v200.loadFrom({ isConfig: true, filename: v2135.env[\\"AWS_CONFIG_FILE\\"] }); - var sharedFileConfig = configFile[v2131.env.AWS_PROFILE || \\"default\\"]; -} -catch (err) { - return false; -} if (!sharedFileConfig) - return config; config.port = config.port || sharedFileConfig.csm_port; config.enabled = config.enabled || sharedFileConfig.csm_enabled; config.clientId = config.clientId || sharedFileConfig.csm_client_id; config.host = config.host || sharedFileConfig.csm_host; return config.port && config.enabled && config.clientId && config.host; }; -const v2136 = {}; -v2136.constructor = v2134; -v2134.prototype = v2136; -var v2133 = v2134; -var v2138; -var v2139 = v117; -v2138 = function toJSType(config) { var falsyNotations = [\\"false\\", \\"0\\", undefined]; if (!config.enabled || falsyNotations.indexOf(config.enabled.toLowerCase()) >= 0) { - config.enabled = false; -} -else { - config.enabled = true; -} config.port = config.port ? v2139(config.port, 10) : undefined; return config; }; -const v2140 = {}; -v2140.constructor = v2138; -v2138.prototype = v2140; -var v2137 = v2138; -var v2141 = v2138; -v2126 = function resolveMonitoringConfig() { var config = { port: undefined, clientId: undefined, enabled: undefined, host: undefined }; if (v2127(config) || v2133(config)) - return v2137(config); return v2141(config); }; -const v2142 = {}; -v2142.constructor = v2126; -v2126.prototype = v2142; -v2125.configProvider = v2126; -v2120 = function defineService(serviceIdentifier, versions, features) { v2121[serviceIdentifier] = true; if (!v2122.isArray(versions)) { - features = versions; - versions = []; -} var svc = v2123(v381.Service, features || {}); if (typeof serviceIdentifier === \\"string\\") { - v2124.Service.addVersions(svc, versions); - var identifier = svc.serviceIdentifier || serviceIdentifier; - svc.serviceIdentifier = identifier; -} -else { - svc.prototype.api = serviceIdentifier; - v375.Service.defineMethods(svc); -} v375.SequentialExecutor.call(this.prototype); if (!this.prototype.publisher && v2125) { - var Publisher = v2125.Publisher; - var configProvider = v2125.configProvider; - var publisherConfig = configProvider(); - this.prototype.publisher = new Publisher(publisherConfig); - if (publisherConfig.enabled) { - undefined = true; - } -} v381.SequentialExecutor.call(svc.prototype); v381.Service.addDefaultMonitoringListeners(svc.prototype); return svc; }; -const v2143 = {}; -v2143.constructor = v2120; -v2120.prototype = v2143; -v299.defineService = v2120; -var v2144; -var v2145 = v31; -v2144 = function addVersions(svc, versions) { if (!v2122.isArray(versions)) - versions = [versions]; svc.services = svc.services || {}; for (var i = 0; i < versions.length; i++) { - if (svc.services[versions[i]] === undefined) { - svc.services[versions[i]] = null; - } -} svc.apiVersions = v2145.keys(svc.services).sort(); }; -const v2146 = {}; -v2146.constructor = v2144; -v2144.prototype = v2146; -v299.addVersions = v2144; -var v2147; -var v2148 = v138; -var v2150; -var v2151 = v144; -var v2152 = v144; -var v2153 = v144; -var v2154 = v144; -var v2155 = v144; -var v2156 = v144; -var v2157 = v144; -var v2158 = v144; -var v2159 = v144; -const v2161 = {}; -const v2162 = {}; -v2162.name = \\"ACM\\"; -v2162.cors = true; -v2161.acm = v2162; -const v2163 = {}; -v2163.name = \\"APIGateway\\"; -v2163.cors = true; -v2161.apigateway = v2163; -const v2164 = {}; -v2164.prefix = \\"application-autoscaling\\"; -v2164.name = \\"ApplicationAutoScaling\\"; -v2164.cors = true; -v2161.applicationautoscaling = v2164; -const v2165 = {}; -v2165.name = \\"AppStream\\"; -v2161.appstream = v2165; -const v2166 = {}; -v2166.name = \\"AutoScaling\\"; -v2166.cors = true; -v2161.autoscaling = v2166; -const v2167 = {}; -v2167.name = \\"Batch\\"; -v2161.batch = v2167; -const v2168 = {}; -v2168.name = \\"Budgets\\"; -v2161.budgets = v2168; -const v2169 = {}; -v2169.name = \\"CloudDirectory\\"; -const v2170 = []; -v2170.push(\\"2016-05-10*\\"); -v2169.versions = v2170; -v2161.clouddirectory = v2169; -const v2171 = {}; -v2171.name = \\"CloudFormation\\"; -v2171.cors = true; -v2161.cloudformation = v2171; -const v2172 = {}; -v2172.name = \\"CloudFront\\"; -const v2173 = []; -v2173.push(\\"2013-05-12*\\", \\"2013-11-11*\\", \\"2014-05-31*\\", \\"2014-10-21*\\", \\"2014-11-06*\\", \\"2015-04-17*\\", \\"2015-07-27*\\", \\"2015-09-17*\\", \\"2016-01-13*\\", \\"2016-01-28*\\", \\"2016-08-01*\\", \\"2016-08-20*\\", \\"2016-09-07*\\", \\"2016-09-29*\\", \\"2016-11-25*\\", \\"2017-03-25*\\", \\"2017-10-30*\\", \\"2018-06-18*\\", \\"2018-11-05*\\", \\"2019-03-26*\\"); -v2172.versions = v2173; -v2172.cors = true; -v2161.cloudfront = v2172; -const v2174 = {}; -v2174.name = \\"CloudHSM\\"; -v2174.cors = true; -v2161.cloudhsm = v2174; -const v2175 = {}; -v2175.name = \\"CloudSearch\\"; -v2161.cloudsearch = v2175; -const v2176 = {}; -v2176.name = \\"CloudSearchDomain\\"; -v2161.cloudsearchdomain = v2176; -const v2177 = {}; -v2177.name = \\"CloudTrail\\"; -v2177.cors = true; -v2161.cloudtrail = v2177; -const v2178 = {}; -v2178.prefix = \\"monitoring\\"; -v2178.name = \\"CloudWatch\\"; -v2178.cors = true; -v2161.cloudwatch = v2178; -const v2179 = {}; -v2179.prefix = \\"events\\"; -v2179.name = \\"CloudWatchEvents\\"; -const v2180 = []; -v2180.push(\\"2014-02-03*\\"); -v2179.versions = v2180; -v2179.cors = true; -v2161.cloudwatchevents = v2179; -const v2181 = {}; -v2181.prefix = \\"logs\\"; -v2181.name = \\"CloudWatchLogs\\"; -v2181.cors = true; -v2161.cloudwatchlogs = v2181; -const v2182 = {}; -v2182.name = \\"CodeBuild\\"; -v2182.cors = true; -v2161.codebuild = v2182; -const v2183 = {}; -v2183.name = \\"CodeCommit\\"; -v2183.cors = true; -v2161.codecommit = v2183; -const v2184 = {}; -v2184.name = \\"CodeDeploy\\"; -v2184.cors = true; -v2161.codedeploy = v2184; -const v2185 = {}; -v2185.name = \\"CodePipeline\\"; -v2185.cors = true; -v2161.codepipeline = v2185; -const v2186 = {}; -v2186.prefix = \\"cognito-identity\\"; -v2186.name = \\"CognitoIdentity\\"; -v2186.cors = true; -v2161.cognitoidentity = v2186; -const v2187 = {}; -v2187.prefix = \\"cognito-idp\\"; -v2187.name = \\"CognitoIdentityServiceProvider\\"; -v2187.cors = true; -v2161.cognitoidentityserviceprovider = v2187; -const v2188 = {}; -v2188.prefix = \\"cognito-sync\\"; -v2188.name = \\"CognitoSync\\"; -v2188.cors = true; -v2161.cognitosync = v2188; -const v2189 = {}; -v2189.prefix = \\"config\\"; -v2189.name = \\"ConfigService\\"; -v2189.cors = true; -v2161.configservice = v2189; -const v2190 = {}; -v2190.name = \\"CUR\\"; -v2190.cors = true; -v2161.cur = v2190; -const v2191 = {}; -v2191.name = \\"DataPipeline\\"; -v2161.datapipeline = v2191; -const v2192 = {}; -v2192.name = \\"DeviceFarm\\"; -v2192.cors = true; -v2161.devicefarm = v2192; -const v2193 = {}; -v2193.name = \\"DirectConnect\\"; -v2193.cors = true; -v2161.directconnect = v2193; -const v2194 = {}; -v2194.prefix = \\"ds\\"; -v2194.name = \\"DirectoryService\\"; -v2161.directoryservice = v2194; -const v2195 = {}; -v2195.name = \\"Discovery\\"; -v2161.discovery = v2195; -const v2196 = {}; -v2196.name = \\"DMS\\"; -v2161.dms = v2196; -const v2197 = {}; -v2197.name = \\"DynamoDB\\"; -v2197.cors = true; -v2161.dynamodb = v2197; -const v2198 = {}; -v2198.prefix = \\"streams.dynamodb\\"; -v2198.name = \\"DynamoDBStreams\\"; -v2198.cors = true; -v2161.dynamodbstreams = v2198; -const v2199 = {}; -v2199.name = \\"EC2\\"; -const v2200 = []; -v2200.push(\\"2013-06-15*\\", \\"2013-10-15*\\", \\"2014-02-01*\\", \\"2014-05-01*\\", \\"2014-06-15*\\", \\"2014-09-01*\\", \\"2014-10-01*\\", \\"2015-03-01*\\", \\"2015-04-15*\\", \\"2015-10-01*\\", \\"2016-04-01*\\", \\"2016-09-15*\\"); -v2199.versions = v2200; -v2199.cors = true; -v2161.ec2 = v2199; -const v2201 = {}; -v2201.name = \\"ECR\\"; -v2201.cors = true; -v2161.ecr = v2201; -const v2202 = {}; -v2202.name = \\"ECS\\"; -v2202.cors = true; -v2161.ecs = v2202; -const v2203 = {}; -v2203.prefix = \\"elasticfilesystem\\"; -v2203.name = \\"EFS\\"; -v2203.cors = true; -v2161.efs = v2203; -const v2204 = {}; -v2204.name = \\"ElastiCache\\"; -const v2205 = []; -v2205.push(\\"2012-11-15*\\", \\"2014-03-24*\\", \\"2014-07-15*\\", \\"2014-09-30*\\"); -v2204.versions = v2205; -v2204.cors = true; -v2161.elasticache = v2204; -const v2206 = {}; -v2206.name = \\"ElasticBeanstalk\\"; -v2206.cors = true; -v2161.elasticbeanstalk = v2206; -const v2207 = {}; -v2207.prefix = \\"elasticloadbalancing\\"; -v2207.name = \\"ELB\\"; -v2207.cors = true; -v2161.elb = v2207; -const v2208 = {}; -v2208.prefix = \\"elasticloadbalancingv2\\"; -v2208.name = \\"ELBv2\\"; -v2208.cors = true; -v2161.elbv2 = v2208; -const v2209 = {}; -v2209.prefix = \\"elasticmapreduce\\"; -v2209.name = \\"EMR\\"; -v2209.cors = true; -v2161.emr = v2209; -const v2210 = {}; -v2210.name = \\"ES\\"; -v2161.es = v2210; -const v2211 = {}; -v2211.name = \\"ElasticTranscoder\\"; -v2211.cors = true; -v2161.elastictranscoder = v2211; -const v2212 = {}; -v2212.name = \\"Firehose\\"; -v2212.cors = true; -v2161.firehose = v2212; -const v2213 = {}; -v2213.name = \\"GameLift\\"; -v2213.cors = true; -v2161.gamelift = v2213; -const v2214 = {}; -v2214.name = \\"Glacier\\"; -v2161.glacier = v2214; -const v2215 = {}; -v2215.name = \\"Health\\"; -v2161.health = v2215; -const v2216 = {}; -v2216.name = \\"IAM\\"; -v2216.cors = true; -v2161.iam = v2216; -const v2217 = {}; -v2217.name = \\"ImportExport\\"; -v2161.importexport = v2217; -const v2218 = {}; -v2218.name = \\"Inspector\\"; -const v2219 = []; -v2219.push(\\"2015-08-18*\\"); -v2218.versions = v2219; -v2218.cors = true; -v2161.inspector = v2218; -const v2220 = {}; -v2220.name = \\"Iot\\"; -v2220.cors = true; -v2161.iot = v2220; -const v2221 = {}; -v2221.prefix = \\"iot-data\\"; -v2221.name = \\"IotData\\"; -v2221.cors = true; -v2161.iotdata = v2221; -const v2222 = {}; -v2222.name = \\"Kinesis\\"; -v2222.cors = true; -v2161.kinesis = v2222; -const v2223 = {}; -v2223.name = \\"KinesisAnalytics\\"; -v2161.kinesisanalytics = v2223; -const v2224 = {}; -v2224.name = \\"KMS\\"; -v2224.cors = true; -v2161.kms = v2224; -const v2225 = {}; -v2225.name = \\"Lambda\\"; -v2225.cors = true; -v2161.lambda = v2225; -const v2226 = {}; -v2226.prefix = \\"runtime.lex\\"; -v2226.name = \\"LexRuntime\\"; -v2226.cors = true; -v2161.lexruntime = v2226; -const v2227 = {}; -v2227.name = \\"Lightsail\\"; -v2161.lightsail = v2227; -const v2228 = {}; -v2228.name = \\"MachineLearning\\"; -v2228.cors = true; -v2161.machinelearning = v2228; -const v2229 = {}; -v2229.name = \\"MarketplaceCommerceAnalytics\\"; -v2229.cors = true; -v2161.marketplacecommerceanalytics = v2229; -const v2230 = {}; -v2230.prefix = \\"meteringmarketplace\\"; -v2230.name = \\"MarketplaceMetering\\"; -v2161.marketplacemetering = v2230; -const v2231 = {}; -v2231.prefix = \\"mturk-requester\\"; -v2231.name = \\"MTurk\\"; -v2231.cors = true; -v2161.mturk = v2231; -const v2232 = {}; -v2232.name = \\"MobileAnalytics\\"; -v2232.cors = true; -v2161.mobileanalytics = v2232; -const v2233 = {}; -v2233.name = \\"OpsWorks\\"; -v2233.cors = true; -v2161.opsworks = v2233; -const v2234 = {}; -v2234.name = \\"OpsWorksCM\\"; -v2161.opsworkscm = v2234; -const v2235 = {}; -v2235.name = \\"Organizations\\"; -v2161.organizations = v2235; -const v2236 = {}; -v2236.name = \\"Pinpoint\\"; -v2161.pinpoint = v2236; -const v2237 = {}; -v2237.name = \\"Polly\\"; -v2237.cors = true; -v2161.polly = v2237; -const v2238 = {}; -v2238.name = \\"RDS\\"; -const v2239 = []; -v2239.push(\\"2014-09-01*\\"); -v2238.versions = v2239; -v2238.cors = true; -v2161.rds = v2238; -const v2240 = {}; -v2240.name = \\"Redshift\\"; -v2240.cors = true; -v2161.redshift = v2240; -const v2241 = {}; -v2241.name = \\"Rekognition\\"; -v2241.cors = true; -v2161.rekognition = v2241; -const v2242 = {}; -v2242.name = \\"ResourceGroupsTaggingAPI\\"; -v2161.resourcegroupstaggingapi = v2242; -const v2243 = {}; -v2243.name = \\"Route53\\"; -v2243.cors = true; -v2161.route53 = v2243; -const v2244 = {}; -v2244.name = \\"Route53Domains\\"; -v2244.cors = true; -v2161.route53domains = v2244; -const v2245 = {}; -v2245.name = \\"S3\\"; -v2245.dualstackAvailable = true; -v2245.cors = true; -v2161.s3 = v2245; -const v2246 = {}; -v2246.name = \\"S3Control\\"; -v2246.dualstackAvailable = true; -v2246.xmlNoDefaultLists = true; -v2161.s3control = v2246; -const v2247 = {}; -v2247.name = \\"ServiceCatalog\\"; -v2247.cors = true; -v2161.servicecatalog = v2247; -const v2248 = {}; -v2248.prefix = \\"email\\"; -v2248.name = \\"SES\\"; -v2248.cors = true; -v2161.ses = v2248; -const v2249 = {}; -v2249.name = \\"Shield\\"; -v2161.shield = v2249; -const v2250 = {}; -v2250.prefix = \\"sdb\\"; -v2250.name = \\"SimpleDB\\"; -v2161.simpledb = v2250; -const v2251 = {}; -v2251.name = \\"SMS\\"; -v2161.sms = v2251; -const v2252 = {}; -v2252.name = \\"Snowball\\"; -v2161.snowball = v2252; -const v2253 = {}; -v2253.name = \\"SNS\\"; -v2253.cors = true; -v2161.sns = v2253; -const v2254 = {}; -v2254.name = \\"SQS\\"; -v2254.cors = true; -v2161.sqs = v2254; -const v2255 = {}; -v2255.name = \\"SSM\\"; -v2255.cors = true; -v2161.ssm = v2255; -const v2256 = {}; -v2256.name = \\"StorageGateway\\"; -v2256.cors = true; -v2161.storagegateway = v2256; -const v2257 = {}; -v2257.prefix = \\"states\\"; -v2257.name = \\"StepFunctions\\"; -v2161.stepfunctions = v2257; -const v2258 = {}; -v2258.name = \\"STS\\"; -v2258.cors = true; -v2161.sts = v2258; -const v2259 = {}; -v2259.name = \\"Support\\"; -v2161.support = v2259; -const v2260 = {}; -v2260.name = \\"SWF\\"; -v2161.swf = v2260; -const v2261 = {}; -v2261.name = \\"XRay\\"; -v2261.cors = true; -v2161.xray = v2261; -const v2262 = {}; -v2262.name = \\"WAF\\"; -v2262.cors = true; -v2161.waf = v2262; -const v2263 = {}; -v2263.prefix = \\"waf-regional\\"; -v2263.name = \\"WAFRegional\\"; -v2161.wafregional = v2263; -const v2264 = {}; -v2264.name = \\"WorkDocs\\"; -v2264.cors = true; -v2161.workdocs = v2264; -const v2265 = {}; -v2265.name = \\"WorkSpaces\\"; -v2161.workspaces = v2265; -const v2266 = {}; -v2266.name = \\"CodeStar\\"; -v2161.codestar = v2266; -const v2267 = {}; -v2267.prefix = \\"lex-models\\"; -v2267.name = \\"LexModelBuildingService\\"; -v2267.cors = true; -v2161.lexmodelbuildingservice = v2267; -const v2268 = {}; -v2268.prefix = \\"entitlement.marketplace\\"; -v2268.name = \\"MarketplaceEntitlementService\\"; -v2161.marketplaceentitlementservice = v2268; -const v2269 = {}; -v2269.name = \\"Athena\\"; -v2269.cors = true; -v2161.athena = v2269; -const v2270 = {}; -v2270.name = \\"Greengrass\\"; -v2161.greengrass = v2270; -const v2271 = {}; -v2271.name = \\"DAX\\"; -v2161.dax = v2271; -const v2272 = {}; -v2272.prefix = \\"AWSMigrationHub\\"; -v2272.name = \\"MigrationHub\\"; -v2161.migrationhub = v2272; -const v2273 = {}; -v2273.name = \\"CloudHSMV2\\"; -v2273.cors = true; -v2161.cloudhsmv2 = v2273; -const v2274 = {}; -v2274.name = \\"Glue\\"; -v2161.glue = v2274; -const v2275 = {}; -v2275.name = \\"Mobile\\"; -v2161.mobile = v2275; -const v2276 = {}; -v2276.name = \\"Pricing\\"; -v2276.cors = true; -v2161.pricing = v2276; -const v2277 = {}; -v2277.prefix = \\"ce\\"; -v2277.name = \\"CostExplorer\\"; -v2277.cors = true; -v2161.costexplorer = v2277; -const v2278 = {}; -v2278.name = \\"MediaConvert\\"; -v2161.mediaconvert = v2278; -const v2279 = {}; -v2279.name = \\"MediaLive\\"; -v2161.medialive = v2279; -const v2280 = {}; -v2280.name = \\"MediaPackage\\"; -v2161.mediapackage = v2280; -const v2281 = {}; -v2281.name = \\"MediaStore\\"; -v2161.mediastore = v2281; -const v2282 = {}; -v2282.prefix = \\"mediastore-data\\"; -v2282.name = \\"MediaStoreData\\"; -v2282.cors = true; -v2161.mediastoredata = v2282; -const v2283 = {}; -v2283.name = \\"AppSync\\"; -v2161.appsync = v2283; -const v2284 = {}; -v2284.name = \\"GuardDuty\\"; -v2161.guardduty = v2284; -const v2285 = {}; -v2285.name = \\"MQ\\"; -v2161.mq = v2285; -const v2286 = {}; -v2286.name = \\"Comprehend\\"; -v2286.cors = true; -v2161.comprehend = v2286; -const v2287 = {}; -v2287.prefix = \\"iot-jobs-data\\"; -v2287.name = \\"IoTJobsDataPlane\\"; -v2161.iotjobsdataplane = v2287; -const v2288 = {}; -v2288.prefix = \\"kinesis-video-archived-media\\"; -v2288.name = \\"KinesisVideoArchivedMedia\\"; -v2288.cors = true; -v2161.kinesisvideoarchivedmedia = v2288; -const v2289 = {}; -v2289.prefix = \\"kinesis-video-media\\"; -v2289.name = \\"KinesisVideoMedia\\"; -v2289.cors = true; -v2161.kinesisvideomedia = v2289; -const v2290 = {}; -v2290.name = \\"KinesisVideo\\"; -v2290.cors = true; -v2161.kinesisvideo = v2290; -const v2291 = {}; -v2291.prefix = \\"runtime.sagemaker\\"; -v2291.name = \\"SageMakerRuntime\\"; -v2161.sagemakerruntime = v2291; -const v2292 = {}; -v2292.name = \\"SageMaker\\"; -v2161.sagemaker = v2292; -const v2293 = {}; -v2293.name = \\"Translate\\"; -v2293.cors = true; -v2161.translate = v2293; -const v2294 = {}; -v2294.prefix = \\"resource-groups\\"; -v2294.name = \\"ResourceGroups\\"; -v2294.cors = true; -v2161.resourcegroups = v2294; -const v2295 = {}; -v2295.name = \\"AlexaForBusiness\\"; -v2161.alexaforbusiness = v2295; -const v2296 = {}; -v2296.name = \\"Cloud9\\"; -v2161.cloud9 = v2296; -const v2297 = {}; -v2297.prefix = \\"serverlessrepo\\"; -v2297.name = \\"ServerlessApplicationRepository\\"; -v2161.serverlessapplicationrepository = v2297; -const v2298 = {}; -v2298.name = \\"ServiceDiscovery\\"; -v2161.servicediscovery = v2298; -const v2299 = {}; -v2299.name = \\"WorkMail\\"; -v2161.workmail = v2299; -const v2300 = {}; -v2300.prefix = \\"autoscaling-plans\\"; -v2300.name = \\"AutoScalingPlans\\"; -v2161.autoscalingplans = v2300; -const v2301 = {}; -v2301.prefix = \\"transcribe\\"; -v2301.name = \\"TranscribeService\\"; -v2161.transcribeservice = v2301; -const v2302 = {}; -v2302.name = \\"Connect\\"; -v2302.cors = true; -v2161.connect = v2302; -const v2303 = {}; -v2303.prefix = \\"acm-pca\\"; -v2303.name = \\"ACMPCA\\"; -v2161.acmpca = v2303; -const v2304 = {}; -v2304.name = \\"FMS\\"; -v2161.fms = v2304; -const v2305 = {}; -v2305.name = \\"SecretsManager\\"; -v2305.cors = true; -v2161.secretsmanager = v2305; -const v2306 = {}; -v2306.name = \\"IoTAnalytics\\"; -v2306.cors = true; -v2161.iotanalytics = v2306; -const v2307 = {}; -v2307.prefix = \\"iot1click-devices\\"; -v2307.name = \\"IoT1ClickDevicesService\\"; -v2161.iot1clickdevicesservice = v2307; -const v2308 = {}; -v2308.prefix = \\"iot1click-projects\\"; -v2308.name = \\"IoT1ClickProjects\\"; -v2161.iot1clickprojects = v2308; -const v2309 = {}; -v2309.name = \\"PI\\"; -v2161.pi = v2309; -const v2310 = {}; -v2310.name = \\"Neptune\\"; -v2161.neptune = v2310; -const v2311 = {}; -v2311.name = \\"MediaTailor\\"; -v2161.mediatailor = v2311; -const v2312 = {}; -v2312.name = \\"EKS\\"; -v2161.eks = v2312; -const v2313 = {}; -v2313.name = \\"Macie\\"; -v2161.macie = v2313; -const v2314 = {}; -v2314.name = \\"DLM\\"; -v2161.dlm = v2314; -const v2315 = {}; -v2315.name = \\"Signer\\"; -v2161.signer = v2315; -const v2316 = {}; -v2316.name = \\"Chime\\"; -v2161.chime = v2316; -const v2317 = {}; -v2317.prefix = \\"pinpoint-email\\"; -v2317.name = \\"PinpointEmail\\"; -v2161.pinpointemail = v2317; -const v2318 = {}; -v2318.name = \\"RAM\\"; -v2161.ram = v2318; -const v2319 = {}; -v2319.name = \\"Route53Resolver\\"; -v2161.route53resolver = v2319; -const v2320 = {}; -v2320.prefix = \\"sms-voice\\"; -v2320.name = \\"PinpointSMSVoice\\"; -v2161.pinpointsmsvoice = v2320; -const v2321 = {}; -v2321.name = \\"QuickSight\\"; -v2161.quicksight = v2321; -const v2322 = {}; -v2322.prefix = \\"rds-data\\"; -v2322.name = \\"RDSDataService\\"; -v2161.rdsdataservice = v2322; -const v2323 = {}; -v2323.name = \\"Amplify\\"; -v2161.amplify = v2323; -const v2324 = {}; -v2324.name = \\"DataSync\\"; -v2161.datasync = v2324; -const v2325 = {}; -v2325.name = \\"RoboMaker\\"; -v2161.robomaker = v2325; -const v2326 = {}; -v2326.name = \\"Transfer\\"; -v2161.transfer = v2326; -const v2327 = {}; -v2327.name = \\"GlobalAccelerator\\"; -v2161.globalaccelerator = v2327; -const v2328 = {}; -v2328.name = \\"ComprehendMedical\\"; -v2328.cors = true; -v2161.comprehendmedical = v2328; -const v2329 = {}; -v2329.name = \\"KinesisAnalyticsV2\\"; -v2161.kinesisanalyticsv2 = v2329; -const v2330 = {}; -v2330.name = \\"MediaConnect\\"; -v2161.mediaconnect = v2330; -const v2331 = {}; -v2331.name = \\"FSx\\"; -v2161.fsx = v2331; -const v2332 = {}; -v2332.name = \\"SecurityHub\\"; -v2161.securityhub = v2332; -const v2333 = {}; -v2333.name = \\"AppMesh\\"; -const v2334 = []; -v2334.push(\\"2018-10-01*\\"); -v2333.versions = v2334; -v2161.appmesh = v2333; -const v2335 = {}; -v2335.prefix = \\"license-manager\\"; -v2335.name = \\"LicenseManager\\"; -v2161.licensemanager = v2335; -const v2336 = {}; -v2336.name = \\"Kafka\\"; -v2161.kafka = v2336; -const v2337 = {}; -v2337.name = \\"ApiGatewayManagementApi\\"; -v2161.apigatewaymanagementapi = v2337; -const v2338 = {}; -v2338.name = \\"ApiGatewayV2\\"; -v2161.apigatewayv2 = v2338; -const v2339 = {}; -v2339.name = \\"DocDB\\"; -v2161.docdb = v2339; -const v2340 = {}; -v2340.name = \\"Backup\\"; -v2161.backup = v2340; -const v2341 = {}; -v2341.name = \\"WorkLink\\"; -v2161.worklink = v2341; -const v2342 = {}; -v2342.name = \\"Textract\\"; -v2161.textract = v2342; -const v2343 = {}; -v2343.name = \\"ManagedBlockchain\\"; -v2161.managedblockchain = v2343; -const v2344 = {}; -v2344.prefix = \\"mediapackage-vod\\"; -v2344.name = \\"MediaPackageVod\\"; -v2161.mediapackagevod = v2344; -const v2345 = {}; -v2345.name = \\"GroundStation\\"; -v2161.groundstation = v2345; -const v2346 = {}; -v2346.name = \\"IoTThingsGraph\\"; -v2161.iotthingsgraph = v2346; -const v2347 = {}; -v2347.name = \\"IoTEvents\\"; -v2161.iotevents = v2347; -const v2348 = {}; -v2348.prefix = \\"iotevents-data\\"; -v2348.name = \\"IoTEventsData\\"; -v2161.ioteventsdata = v2348; -const v2349 = {}; -v2349.name = \\"Personalize\\"; -v2349.cors = true; -v2161.personalize = v2349; -const v2350 = {}; -v2350.prefix = \\"personalize-events\\"; -v2350.name = \\"PersonalizeEvents\\"; -v2350.cors = true; -v2161.personalizeevents = v2350; -const v2351 = {}; -v2351.prefix = \\"personalize-runtime\\"; -v2351.name = \\"PersonalizeRuntime\\"; -v2351.cors = true; -v2161.personalizeruntime = v2351; -const v2352 = {}; -v2352.prefix = \\"application-insights\\"; -v2352.name = \\"ApplicationInsights\\"; -v2161.applicationinsights = v2352; -const v2353 = {}; -v2353.prefix = \\"service-quotas\\"; -v2353.name = \\"ServiceQuotas\\"; -v2161.servicequotas = v2353; -const v2354 = {}; -v2354.prefix = \\"ec2-instance-connect\\"; -v2354.name = \\"EC2InstanceConnect\\"; -v2161.ec2instanceconnect = v2354; -const v2355 = {}; -v2355.name = \\"EventBridge\\"; -v2161.eventbridge = v2355; -const v2356 = {}; -v2356.name = \\"LakeFormation\\"; -v2161.lakeformation = v2356; -const v2357 = {}; -v2357.prefix = \\"forecast\\"; -v2357.name = \\"ForecastService\\"; -v2357.cors = true; -v2161.forecastservice = v2357; -const v2358 = {}; -v2358.prefix = \\"forecastquery\\"; -v2358.name = \\"ForecastQueryService\\"; -v2358.cors = true; -v2161.forecastqueryservice = v2358; -const v2359 = {}; -v2359.name = \\"QLDB\\"; -v2161.qldb = v2359; -const v2360 = {}; -v2360.prefix = \\"qldb-session\\"; -v2360.name = \\"QLDBSession\\"; -v2161.qldbsession = v2360; -const v2361 = {}; -v2361.name = \\"WorkMailMessageFlow\\"; -v2161.workmailmessageflow = v2361; -const v2362 = {}; -v2362.prefix = \\"codestar-notifications\\"; -v2362.name = \\"CodeStarNotifications\\"; -v2161.codestarnotifications = v2362; -const v2363 = {}; -v2363.name = \\"SavingsPlans\\"; -v2161.savingsplans = v2363; -const v2364 = {}; -v2364.name = \\"SSO\\"; -v2161.sso = v2364; -const v2365 = {}; -v2365.prefix = \\"sso-oidc\\"; -v2365.name = \\"SSOOIDC\\"; -v2161.ssooidc = v2365; -const v2366 = {}; -v2366.prefix = \\"marketplace-catalog\\"; -v2366.name = \\"MarketplaceCatalog\\"; -v2161.marketplacecatalog = v2366; -const v2367 = {}; -v2367.name = \\"DataExchange\\"; -v2161.dataexchange = v2367; -const v2368 = {}; -v2368.name = \\"SESV2\\"; -v2161.sesv2 = v2368; -const v2369 = {}; -v2369.prefix = \\"migrationhub-config\\"; -v2369.name = \\"MigrationHubConfig\\"; -v2161.migrationhubconfig = v2369; -const v2370 = {}; -v2370.name = \\"ConnectParticipant\\"; -v2161.connectparticipant = v2370; -const v2371 = {}; -v2371.name = \\"AppConfig\\"; -v2161.appconfig = v2371; -const v2372 = {}; -v2372.name = \\"IoTSecureTunneling\\"; -v2161.iotsecuretunneling = v2372; -const v2373 = {}; -v2373.name = \\"WAFV2\\"; -v2161.wafv2 = v2373; -const v2374 = {}; -v2374.prefix = \\"elastic-inference\\"; -v2374.name = \\"ElasticInference\\"; -v2161.elasticinference = v2374; -const v2375 = {}; -v2375.name = \\"Imagebuilder\\"; -v2161.imagebuilder = v2375; -const v2376 = {}; -v2376.name = \\"Schemas\\"; -v2161.schemas = v2376; -const v2377 = {}; -v2377.name = \\"AccessAnalyzer\\"; -v2161.accessanalyzer = v2377; -const v2378 = {}; -v2378.prefix = \\"codeguru-reviewer\\"; -v2378.name = \\"CodeGuruReviewer\\"; -v2161.codegurureviewer = v2378; -const v2379 = {}; -v2379.name = \\"CodeGuruProfiler\\"; -v2161.codeguruprofiler = v2379; -const v2380 = {}; -v2380.prefix = \\"compute-optimizer\\"; -v2380.name = \\"ComputeOptimizer\\"; -v2161.computeoptimizer = v2380; -const v2381 = {}; -v2381.name = \\"FraudDetector\\"; -v2161.frauddetector = v2381; -const v2382 = {}; -v2382.name = \\"Kendra\\"; -v2161.kendra = v2382; -const v2383 = {}; -v2383.name = \\"NetworkManager\\"; -v2161.networkmanager = v2383; -const v2384 = {}; -v2384.name = \\"Outposts\\"; -v2161.outposts = v2384; -const v2385 = {}; -v2385.prefix = \\"sagemaker-a2i-runtime\\"; -v2385.name = \\"AugmentedAIRuntime\\"; -v2161.augmentedairuntime = v2385; -const v2386 = {}; -v2386.name = \\"EBS\\"; -v2161.ebs = v2386; -const v2387 = {}; -v2387.prefix = \\"kinesis-video-signaling\\"; -v2387.name = \\"KinesisVideoSignalingChannels\\"; -v2387.cors = true; -v2161.kinesisvideosignalingchannels = v2387; -const v2388 = {}; -v2388.name = \\"Detective\\"; -v2161.detective = v2388; -const v2389 = {}; -v2389.prefix = \\"codestar-connections\\"; -v2389.name = \\"CodeStarconnections\\"; -v2161.codestarconnections = v2389; -const v2390 = {}; -v2390.name = \\"Synthetics\\"; -v2161.synthetics = v2390; -const v2391 = {}; -v2391.name = \\"IoTSiteWise\\"; -v2161.iotsitewise = v2391; -const v2392 = {}; -v2392.name = \\"Macie2\\"; -v2161.macie2 = v2392; -const v2393 = {}; -v2393.name = \\"CodeArtifact\\"; -v2161.codeartifact = v2393; -const v2394 = {}; -v2394.name = \\"Honeycode\\"; -v2161.honeycode = v2394; -const v2395 = {}; -v2395.name = \\"IVS\\"; -v2161.ivs = v2395; -const v2396 = {}; -v2396.name = \\"Braket\\"; -v2161.braket = v2396; -const v2397 = {}; -v2397.name = \\"IdentityStore\\"; -v2161.identitystore = v2397; -const v2398 = {}; -v2398.name = \\"Appflow\\"; -v2161.appflow = v2398; -const v2399 = {}; -v2399.prefix = \\"redshift-data\\"; -v2399.name = \\"RedshiftData\\"; -v2161.redshiftdata = v2399; -const v2400 = {}; -v2400.prefix = \\"sso-admin\\"; -v2400.name = \\"SSOAdmin\\"; -v2161.ssoadmin = v2400; -const v2401 = {}; -v2401.prefix = \\"timestream-query\\"; -v2401.name = \\"TimestreamQuery\\"; -v2161.timestreamquery = v2401; -const v2402 = {}; -v2402.prefix = \\"timestream-write\\"; -v2402.name = \\"TimestreamWrite\\"; -v2161.timestreamwrite = v2402; -const v2403 = {}; -v2403.name = \\"S3Outposts\\"; -v2161.s3outposts = v2403; -const v2404 = {}; -v2404.name = \\"DataBrew\\"; -v2161.databrew = v2404; -const v2405 = {}; -v2405.prefix = \\"servicecatalog-appregistry\\"; -v2405.name = \\"ServiceCatalogAppRegistry\\"; -v2161.servicecatalogappregistry = v2405; -const v2406 = {}; -v2406.prefix = \\"network-firewall\\"; -v2406.name = \\"NetworkFirewall\\"; -v2161.networkfirewall = v2406; -const v2407 = {}; -v2407.name = \\"MWAA\\"; -v2161.mwaa = v2407; -const v2408 = {}; -v2408.name = \\"AmplifyBackend\\"; -v2161.amplifybackend = v2408; -const v2409 = {}; -v2409.name = \\"AppIntegrations\\"; -v2161.appintegrations = v2409; -const v2410 = {}; -v2410.prefix = \\"connect-contact-lens\\"; -v2410.name = \\"ConnectContactLens\\"; -v2161.connectcontactlens = v2410; -const v2411 = {}; -v2411.prefix = \\"devops-guru\\"; -v2411.name = \\"DevOpsGuru\\"; -v2161.devopsguru = v2411; -const v2412 = {}; -v2412.prefix = \\"ecr-public\\"; -v2412.name = \\"ECRPUBLIC\\"; -v2161.ecrpublic = v2412; -const v2413 = {}; -v2413.name = \\"LookoutVision\\"; -v2161.lookoutvision = v2413; -const v2414 = {}; -v2414.prefix = \\"sagemaker-featurestore-runtime\\"; -v2414.name = \\"SageMakerFeatureStoreRuntime\\"; -v2161.sagemakerfeaturestoreruntime = v2414; -const v2415 = {}; -v2415.prefix = \\"customer-profiles\\"; -v2415.name = \\"CustomerProfiles\\"; -v2161.customerprofiles = v2415; -const v2416 = {}; -v2416.name = \\"AuditManager\\"; -v2161.auditmanager = v2416; -const v2417 = {}; -v2417.prefix = \\"emr-containers\\"; -v2417.name = \\"EMRcontainers\\"; -v2161.emrcontainers = v2417; -const v2418 = {}; -v2418.name = \\"HealthLake\\"; -v2161.healthlake = v2418; -const v2419 = {}; -v2419.prefix = \\"sagemaker-edge\\"; -v2419.name = \\"SagemakerEdge\\"; -v2161.sagemakeredge = v2419; -const v2420 = {}; -v2420.name = \\"Amp\\"; -v2161.amp = v2420; -const v2421 = {}; -v2421.name = \\"GreengrassV2\\"; -v2161.greengrassv2 = v2421; -const v2422 = {}; -v2422.name = \\"IotDeviceAdvisor\\"; -v2161.iotdeviceadvisor = v2422; -const v2423 = {}; -v2423.name = \\"IoTFleetHub\\"; -v2161.iotfleethub = v2423; -const v2424 = {}; -v2424.name = \\"IoTWireless\\"; -v2161.iotwireless = v2424; -const v2425 = {}; -v2425.name = \\"Location\\"; -v2425.cors = true; -v2161.location = v2425; -const v2426 = {}; -v2426.name = \\"WellArchitected\\"; -v2161.wellarchitected = v2426; -const v2427 = {}; -v2427.prefix = \\"models.lex.v2\\"; -v2427.name = \\"LexModelsV2\\"; -v2161.lexmodelsv2 = v2427; -const v2428 = {}; -v2428.prefix = \\"runtime.lex.v2\\"; -v2428.name = \\"LexRuntimeV2\\"; -v2428.cors = true; -v2161.lexruntimev2 = v2428; -const v2429 = {}; -v2429.name = \\"Fis\\"; -v2161.fis = v2429; -const v2430 = {}; -v2430.name = \\"LookoutMetrics\\"; -v2161.lookoutmetrics = v2430; -const v2431 = {}; -v2431.name = \\"Mgn\\"; -v2161.mgn = v2431; -const v2432 = {}; -v2432.name = \\"LookoutEquipment\\"; -v2161.lookoutequipment = v2432; -const v2433 = {}; -v2433.name = \\"Nimble\\"; -v2161.nimble = v2433; -const v2434 = {}; -v2434.name = \\"Finspace\\"; -v2161.finspace = v2434; -const v2435 = {}; -v2435.prefix = \\"finspace-data\\"; -v2435.name = \\"Finspacedata\\"; -v2161.finspacedata = v2435; -const v2436 = {}; -v2436.prefix = \\"ssm-contacts\\"; -v2436.name = \\"SSMContacts\\"; -v2161.ssmcontacts = v2436; -const v2437 = {}; -v2437.prefix = \\"ssm-incidents\\"; -v2437.name = \\"SSMIncidents\\"; -v2161.ssmincidents = v2437; -const v2438 = {}; -v2438.name = \\"ApplicationCostProfiler\\"; -v2161.applicationcostprofiler = v2438; -const v2439 = {}; -v2439.name = \\"AppRunner\\"; -v2161.apprunner = v2439; -const v2440 = {}; -v2440.name = \\"Proton\\"; -v2161.proton = v2440; -const v2441 = {}; -v2441.prefix = \\"route53-recovery-cluster\\"; -v2441.name = \\"Route53RecoveryCluster\\"; -v2161.route53recoverycluster = v2441; -const v2442 = {}; -v2442.prefix = \\"route53-recovery-control-config\\"; -v2442.name = \\"Route53RecoveryControlConfig\\"; -v2161.route53recoverycontrolconfig = v2442; -const v2443 = {}; -v2443.prefix = \\"route53-recovery-readiness\\"; -v2443.name = \\"Route53RecoveryReadiness\\"; -v2161.route53recoveryreadiness = v2443; -const v2444 = {}; -v2444.prefix = \\"chime-sdk-identity\\"; -v2444.name = \\"ChimeSDKIdentity\\"; -v2161.chimesdkidentity = v2444; -const v2445 = {}; -v2445.prefix = \\"chime-sdk-messaging\\"; -v2445.name = \\"ChimeSDKMessaging\\"; -v2161.chimesdkmessaging = v2445; -const v2446 = {}; -v2446.prefix = \\"snow-device-management\\"; -v2446.name = \\"SnowDeviceManagement\\"; -v2161.snowdevicemanagement = v2446; -const v2447 = {}; -v2447.name = \\"MemoryDB\\"; -v2161.memorydb = v2447; -const v2448 = {}; -v2448.name = \\"OpenSearch\\"; -v2161.opensearch = v2448; -const v2449 = {}; -v2449.name = \\"KafkaConnect\\"; -v2161.kafkaconnect = v2449; -const v2450 = {}; -v2450.prefix = \\"voice-id\\"; -v2450.name = \\"VoiceID\\"; -v2161.voiceid = v2450; -const v2451 = {}; -v2451.name = \\"Wisdom\\"; -v2161.wisdom = v2451; -const v2452 = {}; -v2452.name = \\"Account\\"; -v2161.account = v2452; -const v2453 = {}; -v2453.name = \\"CloudControl\\"; -v2161.cloudcontrol = v2453; -const v2454 = {}; -v2454.name = \\"Grafana\\"; -v2161.grafana = v2454; -const v2455 = {}; -v2455.name = \\"Panorama\\"; -v2161.panorama = v2455; -const v2456 = {}; -v2456.prefix = \\"chime-sdk-meetings\\"; -v2456.name = \\"ChimeSDKMeetings\\"; -v2161.chimesdkmeetings = v2456; -const v2457 = {}; -v2457.name = \\"Resiliencehub\\"; -v2161.resiliencehub = v2457; -const v2458 = {}; -v2458.name = \\"MigrationHubStrategy\\"; -v2161.migrationhubstrategy = v2458; -const v2459 = {}; -v2459.name = \\"AppConfigData\\"; -v2161.appconfigdata = v2459; -const v2460 = {}; -v2460.name = \\"Drs\\"; -v2161.drs = v2460; -const v2461 = {}; -v2461.prefix = \\"migration-hub-refactor-spaces\\"; -v2461.name = \\"MigrationHubRefactorSpaces\\"; -v2161.migrationhubrefactorspaces = v2461; -const v2462 = {}; -v2462.name = \\"Evidently\\"; -v2161.evidently = v2462; -const v2463 = {}; -v2463.name = \\"Inspector2\\"; -v2161.inspector2 = v2463; -const v2464 = {}; -v2464.name = \\"Rbin\\"; -v2161.rbin = v2464; -const v2465 = {}; -v2465.name = \\"RUM\\"; -v2161.rum = v2465; -const v2466 = {}; -v2466.prefix = \\"backup-gateway\\"; -v2466.name = \\"BackupGateway\\"; -v2161.backupgateway = v2466; -const v2467 = {}; -v2467.name = \\"IoTTwinMaker\\"; -v2161.iottwinmaker = v2467; -const v2468 = {}; -v2468.prefix = \\"workspaces-web\\"; -v2468.name = \\"WorkSpacesWeb\\"; -v2161.workspacesweb = v2468; -const v2469 = {}; -v2469.name = \\"AmplifyUIBuilder\\"; -v2161.amplifyuibuilder = v2469; -const v2470 = {}; -v2470.name = \\"Keyspaces\\"; -v2161.keyspaces = v2470; -const v2471 = {}; -v2471.name = \\"Billingconductor\\"; -v2161.billingconductor = v2471; -const v2472 = {}; -v2472.name = \\"GameSparks\\"; -v2161.gamesparks = v2472; -const v2473 = {}; -v2473.prefix = \\"pinpoint-sms-voice-v2\\"; -v2473.name = \\"PinpointSMSVoiceV2\\"; -v2161.pinpointsmsvoicev2 = v2473; -const v2474 = {}; -v2474.name = \\"Ivschat\\"; -v2161.ivschat = v2474; -const v2475 = {}; -v2475.prefix = \\"chime-sdk-media-pipelines\\"; -v2475.name = \\"ChimeSDKMediaPipelines\\"; -v2161.chimesdkmediapipelines = v2475; -const v2476 = {}; -v2476.prefix = \\"emr-serverless\\"; -v2476.name = \\"EMRServerless\\"; -v2161.emrserverless = v2476; -const v2477 = {}; -v2477.name = \\"M2\\"; -v2161.m2 = v2477; -const v2478 = {}; -v2478.name = \\"ConnectCampaigns\\"; -v2161.connectcampaigns = v2478; -const v2479 = {}; -v2479.prefix = \\"redshift-serverless\\"; -v2479.name = \\"RedshiftServerless\\"; -v2161.redshiftserverless = v2479; -const v2480 = {}; -v2480.name = \\"RolesAnywhere\\"; -v2161.rolesanywhere = v2480; -const v2481 = {}; -v2481.prefix = \\"license-manager-user-subscriptions\\"; -v2481.name = \\"LicenseManagerUserSubscriptions\\"; -v2161.licensemanagerusersubscriptions = v2481; -const v2482 = {}; -v2482.name = \\"BackupStorage\\"; -v2161.backupstorage = v2482; -const v2483 = {}; -v2483.name = \\"PrivateNetworks\\"; -v2161.privatenetworks = v2483; -var v2160 = v2161; -var v2484 = v144; -var v2485 = v146; -var v2486 = v883; -var v2488; -var v2489 = v144; -var v2490 = v144; -var v2491 = v144; -var v2492 = v144; -var v2493 = v144; -var v2494 = v144; -var v2495 = v146; -var v2496 = v855; -var v2497 = v855; -var v2498 = v146; -var v2499 = v855; -var v2500 = v855; -var v2501 = v146; -var v2502 = v855; -var v2503 = v144; -var v2504 = v144; -var v2505 = v146; -var v2506 = v146; -var v2508; -v2508 = function hasEventStream(topLevelShape) { var members = topLevelShape.members; var payload = topLevelShape.payload; if (!topLevelShape.members) { - return false; -} if (payload) { - var payloadMember = members[payload]; - return payloadMember.isEventStream; -} for (var name in members) { - if (!members.hasOwnProperty(name)) { - if (members[name].isEventStream === true) { - return true; - } - } -} return false; }; -const v2509 = {}; -v2509.constructor = v2508; -v2508.prototype = v2509; -var v2507 = v2508; -v2488 = function Operation(name, operation, options) { var self = this; options = options || {}; v2489(this, \\"name\\", operation.name || name); v2490(this, \\"api\\", options.api, false); operation.http = operation.http || {}; v2491(this, \\"endpoint\\", operation.endpoint); v2489(this, \\"httpMethod\\", operation.http.method || \\"POST\\"); v2492(this, \\"httpPath\\", operation.http.requestUri || \\"/\\"); v2493(this, \\"authtype\\", operation.authtype || \\"\\"); v2492(this, \\"endpointDiscoveryRequired\\", operation.endpointdiscovery ? (operation.endpointdiscovery.required ? \\"REQUIRED\\" : \\"OPTIONAL\\") : \\"NULL\\"); var httpChecksumRequired = operation.httpChecksumRequired || (operation.httpChecksum && operation.httpChecksum.requestChecksumRequired); v2494(this, \\"httpChecksumRequired\\", httpChecksumRequired, false); v2495(this, \\"input\\", function () { if (!operation.input) { - return new v2496.create({ type: \\"structure\\" }, options); -} return v2497.create(operation.input, options); }); v2498(this, \\"output\\", function () { if (!operation.output) { - return new v2499.create({ type: \\"structure\\" }, options); -} return v2500.create(operation.output, options); }); v2501(this, \\"errors\\", function () { var list = []; if (!operation.errors) - return null; for (var i = 0; i < operation.errors.length; i++) { - list.push(v2502.create(operation.errors[i], options)); -} return list; }); v2501(this, \\"paginator\\", function () { return options.api.paginators[name]; }); if (options.documentation) { - v2503(this, \\"documentation\\", operation.documentation); - v2504(this, \\"documentationUrl\\", operation.documentationUrl); -} v2505(this, \\"idempotentMembers\\", function () { var idempotentMembers = []; var input = self.input; var members = input.members; if (!input.members) { - return idempotentMembers; -} for (var name in members) { - if (!members.hasOwnProperty(name)) { - continue; - } - if (members[name].isIdempotent === true) { - idempotentMembers.push(name); - } -} return idempotentMembers; }); v2506(this, \\"hasEventOutput\\", function () { var output = self.output; return v2507(output); }); }; -const v2510 = {}; -v2510.constructor = v2488; -v2488.prototype = v2510; -var v2487 = v2488; -var v2511 = v144; -var v2512 = v883; -var v2513 = v855; -var v2514 = v144; -var v2515 = v883; -var v2517; -var v2518 = v144; -var v2519 = v144; -var v2520 = v144; -var v2521 = v144; -v2517 = function Paginator(name, paginator) { v2518(this, \\"inputToken\\", paginator.input_token); v2519(this, \\"limitKey\\", paginator.limit_key); v2520(this, \\"moreResults\\", paginator.more_results); v2518(this, \\"outputToken\\", paginator.output_token); v2521(this, \\"resultKey\\", paginator.result_key); }; -const v2522 = {}; -v2522.constructor = v2517; -v2517.prototype = v2522; -var v2516 = v2517; -var v2523 = v144; -var v2525; -var v2526 = v144; -var v2527 = v144; -var v2528 = v144; -var v2529 = v144; -v2525 = function ResourceWaiter(name, waiter, options) { options = options || {}; v2526(this, \\"name\\", name); v2527(this, \\"api\\", options.api, false); if (waiter.operation) { - v2528(this, \\"operation\\", v55.lowerFirst(waiter.operation)); -} var self = this; var keys = [\\"type\\", \\"description\\", \\"delay\\", \\"maxAttempts\\", \\"acceptors\\"]; keys.forEach(function (key) { var value = waiter[key]; if (value) { - v2529(self, key, value); -} }); }; -const v2530 = {}; -v2530.constructor = v2525; -v2525.prototype = v2530; -var v2524 = v2525; -var v2531 = v144; -v2150 = function Api(api, options) { var self = this; api = api || {}; options = options || {}; options.api = this; api.metadata = api.metadata || {}; var serviceIdentifier = options.serviceIdentifier; delete options.serviceIdentifier; v2151(this, \\"isApi\\", true, false); v2152(this, \\"apiVersion\\", api.metadata.apiVersion); v2153(this, \\"endpointPrefix\\", api.metadata.endpointPrefix); v2151(this, \\"signingName\\", api.metadata.signingName); v2154(this, \\"globalEndpoint\\", api.metadata.globalEndpoint); v2155(this, \\"signatureVersion\\", api.metadata.signatureVersion); v2154(this, \\"jsonVersion\\", api.metadata.jsonVersion); v2156(this, \\"targetPrefix\\", api.metadata.targetPrefix); v2152(this, \\"protocol\\", api.metadata.protocol); v2157(this, \\"timestampFormat\\", api.metadata.timestampFormat); v2158(this, \\"xmlNamespaceUri\\", api.metadata.xmlNamespace); v2156(this, \\"abbreviation\\", api.metadata.serviceAbbreviation); v2155(this, \\"fullName\\", api.metadata.serviceFullName); v2159(this, \\"serviceId\\", api.metadata.serviceId); if (serviceIdentifier && v2160[serviceIdentifier]) { - v2484(this, \\"xmlNoDefaultLists\\", v2160[serviceIdentifier].xmlNoDefaultLists, false); -} v2485(this, \\"className\\", function () { var name = api.metadata.serviceAbbreviation || api.metadata.serviceFullName; if (!name) - return null; name = name.replace(/^Amazon|AWS\\\\s*|\\\\(.*|\\\\s+|\\\\W+/g, \\"\\"); if (name === \\"ElasticLoadBalancing\\") - name = \\"ELB\\"; return name; }); function addEndpointOperation(name, operation) { if (operation.endpointoperation === true) { - v2484(self, \\"endpointOperation\\", v55.lowerFirst(name)); -} if (operation.endpointdiscovery && !self.hasRequiredEndpointDiscovery) { - v2159(self, \\"hasRequiredEndpointDiscovery\\", operation.endpointdiscovery.required === true); -} } v2159(this, \\"operations\\", new v2486(api.operations, options, function (name, operation) { return new v2487(name, operation, options); }, v55.lowerFirst, addEndpointOperation)); v2511(this, \\"shapes\\", new v2512(api.shapes, options, function (name, shape) { return v2513.create(shape, options); })); v2514(this, \\"paginators\\", new v2515(api.paginators, options, function (name, paginator) { return new v2516(name, paginator, options); })); v2523(this, \\"waiters\\", new v2512(api.waiters, options, function (name, waiter) { return new v2524(name, waiter, options); }, v55.lowerFirst)); if (options.documentation) { - v2531(this, \\"documentation\\", api.documentation); - v2523(this, \\"documentationUrl\\", api.documentationUrl); -} v2511(this, \\"errorCodeMapping\\", api.awsQueryCompatible); }; -const v2532 = {}; -v2532.constructor = v2150; -v2150.prototype = v2532; -var v2149 = v2150; -v2147 = function defineServiceApi(superclass, version, apiConfig) { var svc = v2148(superclass, { serviceIdentifier: superclass.serviceIdentifier }); function setApi(api) { if (api.isApi) { - svc.prototype.api = api; -} -else { - svc.prototype.api = new v2149(api, { serviceIdentifier: superclass.serviceIdentifier }); -} } if (typeof version === \\"string\\") { - if (apiConfig) { - setApi(apiConfig); - } - else { - try { - setApi(v2124.apiLoader(superclass.serviceIdentifier, version)); - } - catch (err) { - throw v3.error(err, { message: \\"Could not find API configuration \\" + superclass.serviceIdentifier + \\"-\\" + version }); - } - } - if (!v113.hasOwnProperty.call(superclass.services, version)) { - superclass.apiVersions = superclass.apiVersions.concat(version).sort(); - } - superclass.services[version] = svc; -} -else { - setApi(version); -} v375.Service.defineMethods(svc); return svc; }; -const v2533 = {}; -v2533.constructor = v2147; -v2147.prototype = v2533; -v299.defineServiceApi = v2147; -var v2534; -v2534 = function (identifier) { return v113.hasOwnProperty.call(v2121, identifier); }; -const v2535 = {}; -v2535.constructor = v2534; -v2534.prototype = v2535; -v299.hasService = v2534; -var v2536; -v2536 = function addDefaultMonitoringListeners(attachOn) { attachOn.addNamedListener(\\"MONITOR_EVENTS_BUBBLE\\", \\"apiCallAttempt\\", function EVENTS_BUBBLE(event) { var baseClass = v2145.getPrototypeOf(attachOn); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }); attachOn.addNamedListener(\\"CALL_EVENTS_BUBBLE\\", \\"apiCall\\", function CALL_EVENTS_BUBBLE(event) { var baseClass = v307.getPrototypeOf(attachOn); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }); }; -const v2537 = {}; -v2537.constructor = v2536; -v2536.prototype = v2537; -v299.addDefaultMonitoringListeners = v2536; -v299._serviceMap = v2121; -var v298 = v299; -var v2538 = v31; -var v2539 = v299; -v297 = function () { if (v298 !== v2538) { - return v2539.apply(this, arguments); -} }; -const v2540 = Object.create(v309); -v2540.constructor = v297; -const v2541 = {}; -const v2542 = []; -var v2543; -var v2544 = v2540; -v2543 = function EVENTS_BUBBLE(event) { var baseClass = v307.getPrototypeOf(v2544); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v2545 = {}; -v2545.constructor = v2543; -v2543.prototype = v2545; -v2542.push(v2543); -v2541.apiCallAttempt = v2542; -const v2546 = []; -var v2547; -v2547 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v2145.getPrototypeOf(v2544); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v2548 = {}; -v2548.constructor = v2547; -v2547.prototype = v2548; -v2546.push(v2547); -v2541.apiCall = v2546; -v2540._events = v2541; -v2540.MONITOR_EVENTS_BUBBLE = v2543; -v2540.CALL_EVENTS_BUBBLE = v2547; -var v2549; -var v2550 = v2; -v2549 = function credentialsFrom(data, credentials) { if (!data) - return null; if (!credentials) - credentials = new v2550.TemporaryCredentials(); credentials.expired = false; credentials.accessKeyId = data.Credentials.AccessKeyId; credentials.secretAccessKey = data.Credentials.SecretAccessKey; credentials.sessionToken = data.Credentials.SessionToken; credentials.expireTime = data.Credentials.Expiration; return credentials; }; -const v2551 = {}; -v2551.constructor = v2549; -v2549.prototype = v2551; -v2540.credentialsFrom = v2549; -var v2552; -v2552 = function assumeRoleWithWebIdentity(params, callback) { return this.makeUnauthenticatedRequest(\\"assumeRoleWithWebIdentity\\", params, callback); }; -const v2553 = {}; -v2553.constructor = v2552; -v2552.prototype = v2553; -v2540.assumeRoleWithWebIdentity = v2552; -var v2554; -v2554 = function assumeRoleWithSAML(params, callback) { return this.makeUnauthenticatedRequest(\\"assumeRoleWithSAML\\", params, callback); }; -const v2555 = {}; -v2555.constructor = v2554; -v2554.prototype = v2555; -v2540.assumeRoleWithSAML = v2554; -var v2556; -v2556 = function setupRequestListeners(request) { request.addListener(\\"validate\\", this.optInRegionalEndpoint, true); }; -const v2557 = {}; -v2557.constructor = v2556; -v2556.prototype = v2557; -v2540.setupRequestListeners = v2556; -var v2558; -var v2560; -var v2562; -var v2563 = v40; -v2562 = function validateRegionalEndpointsFlagValue(configValue, errorOptions) { if (typeof configValue !== \\"string\\") - return undefined; -else if ([\\"legacy\\", \\"regional\\"].indexOf(configValue.toLowerCase()) >= 0) { - return configValue.toLowerCase(); -} -else { - throw v3.error(new v2563(), errorOptions); -} }; -const v2564 = {}; -v2564.constructor = v2562; -v2562.prototype = v2564; -var v2561 = v2562; -var v2565 = v8; -var v2566 = v8; -var v2567 = v2562; -var v2568 = v8; -var v2569 = v8; -var v2570 = v2562; -v2560 = function resolveRegionalEndpointsFlag(originalConfig, options) { originalConfig = originalConfig || {}; var resolved; if (originalConfig[options.clientConfig]) { - resolved = v2561(originalConfig[options.clientConfig], { code: \\"InvalidConfiguration\\", message: \\"invalid \\\\\\"\\" + options.clientConfig + \\"\\\\\\" configuration. Expect \\\\\\"legacy\\\\\\" \\" + \\" or \\\\\\"regional\\\\\\". Got \\\\\\"\\" + originalConfig[options.clientConfig] + \\"\\\\\\".\\" }); - if (resolved) - return resolved; -} if (!v3.isNode()) - return resolved; if (v113.hasOwnProperty.call(v2565.env, options.env)) { - var envFlag = v2566.env[options.env]; - resolved = v2567(envFlag, { code: \\"InvalidEnvironmentalVariable\\", message: \\"invalid \\" + options.env + \\" environmental variable. Expect \\\\\\"legacy\\\\\\" \\" + \\" or \\\\\\"regional\\\\\\". Got \\\\\\"\\" + v2568.env[options.env] + \\"\\\\\\".\\" }); - if (resolved) - return resolved; -} var profile = {}; try { - var profiles = v3.getProfilesFromSharedConfig(v200); - profile = profiles[v2569.env.AWS_PROFILE || \\"default\\"]; -} -catch (e) { } if (profile && v113.hasOwnProperty.call(profile, options.sharedConfig)) { - var fileFlag = profile[options.sharedConfig]; - resolved = v2570(fileFlag, { code: \\"InvalidConfiguration\\", message: \\"invalid \\" + options.sharedConfig + \\" profile config. Expect \\\\\\"legacy\\\\\\" \\" + \\" or \\\\\\"regional\\\\\\". Got \\\\\\"\\" + profile[options.sharedConfig] + \\"\\\\\\".\\" }); - if (resolved) - return resolved; -} return resolved; }; -const v2571 = {}; -v2571.constructor = v2560; -v2560.prototype = v2571; -var v2559 = v2560; -var v2572 = \\"AWS_STS_REGIONAL_ENDPOINTS\\"; -var v2573 = \\"sts_regional_endpoints\\"; -var v2574 = v40; -v2558 = function optInRegionalEndpoint(req) { var service = req.service; var config = service.config; config.stsRegionalEndpoints = v2559(service._originalConfig, { env: v2572, sharedConfig: v2573, clientConfig: \\"stsRegionalEndpoints\\" }); if (config.stsRegionalEndpoints === \\"regional\\" && service.isGlobalEndpoint) { - if (!config.region) { - throw v3.error(new v2574(), { code: \\"ConfigError\\", message: \\"Missing region in config\\" }); - } - var insertPoint = config.endpoint.indexOf(\\".amazonaws.com\\"); - var regionalEndpoint = config.endpoint.substring(0, insertPoint) + \\".\\" + config.region + config.endpoint.substring(insertPoint); - req.httpRequest.updateEndpoint(regionalEndpoint); - req.httpRequest.region = config.region; -} }; -const v2575 = {}; -v2575.constructor = v2558; -v2558.prototype = v2575; -v2540.optInRegionalEndpoint = v2558; -v297.prototype = v2540; -v297.__super__ = v299; -const v2576 = {}; -v2576[\\"2011-06-15\\"] = null; -v297.services = v2576; -const v2577 = []; -v2577.push(\\"2011-06-15\\"); -v297.apiVersions = v2577; -v297.serviceIdentifier = \\"sts\\"; -var v296 = v297; -var v2578 = v77; -var v2579 = v40; -var v2580 = v40; -v293 = function loadRoleProfile(creds, roleProfile, callback) { if (this.disableAssumeRole) { - throw v3.error(new v287(\\"Role assumption profiles are disabled. \\" + \\"Failed to load profile \\" + this.profile + \\" from \\" + creds.filename), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); -} var self = this; var roleArn = roleProfile[\\"role_arn\\"]; var roleSessionName = roleProfile[\\"role_session_name\\"]; var externalId = roleProfile[\\"external_id\\"]; var mfaSerial = roleProfile[\\"mfa_serial\\"]; var sourceProfileName = roleProfile[\\"source_profile\\"]; var profileRegion = roleProfile[\\"region\\"] || v294; if (!sourceProfileName) { - throw v3.error(new v288(\\"source_profile is not set using profile \\" + this.profile), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); -} var sourceProfileExistanceTest = creds[sourceProfileName]; if (typeof sourceProfileExistanceTest !== \\"object\\") { - throw v3.error(new v295(\\"source_profile \\" + sourceProfileName + \\" using profile \\" + this.profile + \\" does not exist\\"), { code: \\"SharedIniFileCredentialsProviderFailure\\" }); -} var sourceCredentials = new v279.SharedIniFileCredentials(v3.merge(this.options || {}, { profile: sourceProfileName, preferStaticCredentials: true })); this.roleArn = roleArn; var sts = new v296({ credentials: sourceCredentials, region: profileRegion, httpOptions: this.httpOptions }); var roleParams = { RoleArn: roleArn, RoleSessionName: roleSessionName || \\"aws-sdk-js-\\" + v2578.now() }; if (externalId) { - roleParams.ExternalId = externalId; -} if (mfaSerial && self.tokenCodeFn) { - roleParams.SerialNumber = mfaSerial; - self.tokenCodeFn(mfaSerial, function (err, token) { if (err) { - var message; - if (err instanceof v2579) { - message = err.message; - } - else { - message = err; - } - callback(v3.error(new v2580(\\"Error fetching MFA token: \\" + message), { code: \\"SharedIniFileCredentialsProviderFailure\\" })); - return; - } roleParams.TokenCode = token; sts.assumeRole(roleParams, callback); }); - return; -} sts.assumeRole(roleParams, callback); }; -const v2581 = {}; -v2581.constructor = v293; -v293.prototype = v2581; -v277.loadRoleProfile = v293; -const v2582 = Object.create(v277); -v2582.secretAccessKey = \\"hFtbgbtjmEVRnPRGHIeunft+g7PBUUYISFrP5ksw\\"; -v2582.expired = false; -v2582.expireTime = null; -const v2583 = []; -v2583.push(); -v2582.refreshCallbacks = v2583; -v2582.accessKeyId = \\"AKIA2PTXRDHQCY72R4HM\\"; -v2582.sessionToken = undefined; -v2582.filename = undefined; -v2582.profile = \\"default\\"; -v2582.disableAssumeRole = true; -v2582.preferStaticCredentials = false; -v2582.tokenCodeFn = null; -v2582.httpOptions = null; -v251.credentials = v2582; -const v2584 = Object.create(v252); -var v2585; -const v2586 = []; -var v2587; -var v2588 = v2; -v2587 = function () { return new v2588.EnvironmentCredentials(\\"AWS\\"); }; -const v2589 = {}; -v2589.constructor = v2587; -v2587.prototype = v2589; -var v2590; -var v2591 = v2; -v2590 = function () { return new v2591.EnvironmentCredentials(\\"AMAZON\\"); }; -const v2592 = {}; -v2592.constructor = v2590; -v2590.prototype = v2592; -var v2593; -var v2594 = v2; -v2593 = function () { return new v2594.SsoCredentials(); }; -const v2595 = {}; -v2595.constructor = v2593; -v2593.prototype = v2595; -var v2596; -var v2597 = v2; -v2596 = function () { return new v2597.SharedIniFileCredentials(); }; -const v2598 = {}; -v2598.constructor = v2596; -v2596.prototype = v2598; -var v2599; -v2599 = function () { return new v2588.ECSCredentials(); }; -const v2600 = {}; -v2600.constructor = v2599; -v2599.prototype = v2600; -var v2601; -var v2602 = v2; -v2601 = function () { return new v2602.ProcessCredentials(); }; -const v2603 = {}; -v2603.constructor = v2601; -v2601.prototype = v2603; -var v2604; -var v2605 = v2; -v2604 = function () { return new v2605.TokenFileWebIdentityCredentials(); }; -const v2606 = {}; -v2606.constructor = v2604; -v2604.prototype = v2606; -var v2607; -var v2608 = v2; -v2607 = function () { return new v2608.EC2MetadataCredentials(); }; -const v2609 = {}; -v2609.constructor = v2607; -v2607.prototype = v2609; -v2586.push(v2587, v2590, v2593, v2596, v2599, v2601, v2604, v2607); -v2585 = function CredentialProviderChain(providers) { if (providers) { - this.providers = providers; -} -else { - this.providers = v2586.slice(0); -} this.resolveCallbacks = []; }; -v2585.prototype = v2584; -v2585.__super__ = v253; -v2585.defaultProviders = v2586; -var v2610; -v2610 = function addPromisesToClass(PromiseDependency) { this.prototype.resolvePromise = v3.promisifyMethod(\\"resolve\\", PromiseDependency); }; -const v2611 = {}; -v2611.constructor = v2610; -v2610.prototype = v2611; -v2585.addPromisesToClass = v2610; -var v2612; -v2612 = function deletePromisesFromClass() { delete this.prototype.resolvePromise; }; -const v2613 = {}; -v2613.constructor = v2612; -v2612.prototype = v2613; -v2585.deletePromisesFromClass = v2612; -v2584.constructor = v2585; -var v2614; -var v2615 = v40; -v2614 = function resolve(callback) { var self = this; if (self.providers.length === 0) { - callback(new v2615(\\"No providers\\")); - return self; -} if (self.resolveCallbacks.push(callback) === 1) { - var index = 0; - var providers = self.providers.slice(0); - function resolveNext(err, creds) { if ((!err && creds) || index === providers.length) { - v3.arrayEach(self.resolveCallbacks, function (callback) { callback(err, creds); }); - self.resolveCallbacks.length = 0; - return; - } var provider = providers[index++]; if (typeof provider === \\"function\\") { - creds = provider.call(); - } - else { - creds = provider; - } if (creds.get) { - creds.get(function (getErr) { resolveNext(getErr, getErr ? null : creds); }); - } - else { - resolveNext(null, creds); - } } - resolveNext(); -} return self; }; -const v2616 = {}; -v2616.constructor = v2614; -v2614.prototype = v2616; -v2584.resolve = v2614; -var v2617; -var v2618 = v244; -var v2619 = \\"resolve\\"; -v2617 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v2618(function (resolve, reject) { args.push(function (err, data) { if (err) { - reject(err); -} -else { - resolve(data); -} }); self[v2619].apply(self, args); }); }; -const v2620 = {}; -v2620.constructor = v2617; -v2617.prototype = v2620; -v2584.resolvePromise = v2617; -const v2621 = Object.create(v2584); -const v2622 = []; -v2622.push(v2587, v2590, v2593, v2596, v2599, v2601, v2604, v2607); -v2621.providers = v2622; -const v2623 = []; -v2623.push(); -v2621.resolveCallbacks = v2623; -v251.credentialProvider = v2621; -v251.region = undefined; -v251.logger = null; -v251.apiVersions = v212; -v251.apiVersion = null; -v251.endpoint = undefined; -v251.httpOptions = v213; -v251.maxRetries = undefined; -v251.maxRedirects = 10; -v251.paramValidation = true; -v251.sslEnabled = true; -v251.s3ForcePathStyle = false; -v251.s3BucketEndpoint = false; -v251.s3DisableBodySigning = true; -v251.s3UsEast1RegionalEndpoint = \\"legacy\\"; -v251.s3UseArnRegion = undefined; -v251.computeChecksums = true; -v251.convertResponseTypes = true; -v251.correctClockSkew = false; -v251.customUserAgent = null; -v251.dynamoDbCrc32 = true; -v251.systemClockOffset = 0; -v251.signatureVersion = null; -v251.signatureCache = true; -v251.retryDelayOptions = v214; -v251.useAccelerateEndpoint = false; -v251.clientSideMonitoring = false; -v251.endpointDiscoveryEnabled = undefined; -v251.endpointCacheSize = 1000; -v251.hostPrefixEnabled = true; -v251.stsRegionalEndpoints = \\"legacy\\"; -v251.useFipsEndpoint = false; -v251.useDualstackEndpoint = false; -var v2624 = v787; -v152 = function isClockSkewed(serverTime) { if (serverTime) { - v5.property(v251, \\"isClockSkewed\\", v2624.abs(new v76().getTime() - serverTime) >= 300000, false); - return undefined; -} }; -const v2625 = {}; -v2625.constructor = v152; -v152.prototype = v2625; -v3.isClockSkewed = v152; -var v2626; -v2626 = function applyClockOffset(serverTime) { if (serverTime) - 0 = serverTime - new v76().getTime(); }; -const v2627 = {}; -v2627.constructor = v2626; -v2626.prototype = v2627; -v3.applyClockOffset = v2626; -v3.extractRequestId = v756; -var v2628; -var v2629 = v244; -v2628 = function addPromises(constructors, PromiseDependency) { var deletePromises = false; if (PromiseDependency === undefined && v75 && v251) { - PromiseDependency = v251.getPromisesDependency(); -} if (PromiseDependency === undefined && typeof v2629 !== \\"undefined\\") { - PromiseDependency = v2629; -} if (typeof PromiseDependency !== \\"function\\") - deletePromises = true; if (!v32.isArray(constructors)) - constructors = [constructors]; for (var ind = 0; ind < constructors.length; ind++) { - var constructor = constructors[ind]; - if (deletePromises) { - if (constructor.deletePromisesFromClass) { - constructor.deletePromisesFromClass(); - } - } - else if (constructor.addPromisesToClass) { - constructor.addPromisesToClass(PromiseDependency); - } -} }; -const v2630 = {}; -v2630.constructor = v2628; -v2628.prototype = v2630; -v3.addPromises = v2628; -var v2631; -v2631 = function promisifyMethod(methodName, PromiseDependency) { return function promise() { var self = this; var args = v71.slice.call(arguments); return new PromiseDependency(function (resolve, reject) { args.push(function (err, data) { if (err) { - reject(err); -} -else { - resolve(data); -} }); self[methodName].apply(self, args); }); }; }; -const v2632 = {}; -v2632.constructor = v2631; -v2631.prototype = v2632; -v3.promisifyMethod = v2631; -var v2633; -v2633 = function isDualstackAvailable(service) { if (!service) - return false; var metadata = v11(\\"../apis/metadata.json\\"); if (typeof service !== \\"string\\") - service = service.serviceIdentifier; if (typeof service !== \\"string\\" || !metadata.hasOwnProperty(service)) - return false; return !!metadata[service].dualstackAvailable; }; -const v2634 = {}; -v2634.constructor = v2633; -v2633.prototype = v2634; -v3.isDualstackAvailable = v2633; -var v2635; -v2635 = function calculateRetryDelay(retryCount, retryDelayOptions, err) { if (!retryDelayOptions) - retryDelayOptions = {}; var customBackoff = retryDelayOptions.customBackoff || null; if (typeof customBackoff === \\"function\\") { - return customBackoff(retryCount, err); -} var base = typeof retryDelayOptions.base === \\"number\\" ? retryDelayOptions.base : 100; var delay = v2624.random() * (v2624.pow(2, retryCount) * base); return delay; }; -const v2636 = {}; -v2636.constructor = v2635; -v2635.prototype = v2636; -v3.calculateRetryDelay = v2635; -var v2637; -var v2638 = v2; -var v2639 = v751; -var v2640 = v117; -var v2641 = v40; -v2637 = function handleRequestWithRetries(httpRequest, options, cb) { if (!options) - options = {}; var http = v2638.HttpClient.getInstance(); var httpOptions = options.httpOptions || {}; var retryCount = 0; var errCallback = function (err) { var maxRetries = options.maxRetries || 0; if (err && err.code === \\"TimeoutError\\") - err.retryable = true; if (err && err.retryable && retryCount < maxRetries) { - var delay = v5.calculateRetryDelay(retryCount, options.retryDelayOptions, err); - if (delay >= 0) { - retryCount++; - v2639(sendRequest, delay + (err.retryAfter || 0)); - return; - } -} cb(err); }; var sendRequest = function () { var data = \\"\\"; http.handleRequest(httpRequest, httpOptions, function (httpResponse) { httpResponse.on(\\"data\\", function (chunk) { data += chunk.toString(); }); httpResponse.on(\\"end\\", function () { var statusCode = httpResponse.statusCode; if (statusCode < 300) { - cb(null, data); -} -else { - var retryAfter = v2640(httpResponse.headers[\\"retry-after\\"], 10) * 1000 || 0; - var err = v122.error(new v2641(), { statusCode: statusCode, retryable: statusCode >= 500 || statusCode === 429 }); - if (retryAfter && err.retryable) - err.retryAfter = retryAfter; - errCallback(err); -} }); }, errCallback); }; v3.defer(sendRequest); }; -const v2642 = {}; -v2642.constructor = v2637; -v2637.prototype = v2642; -v3.handleRequestWithRetries = v2637; -v3.uuid = v439; -var v2643; -v2643 = function convertPayloadToString(resp) { var req = resp.request; var operation = req.operation; var rules = req.service.api.operations[operation].output || {}; if (rules.payload && resp.data[rules.payload]) { - resp.data[rules.payload] = resp.data[rules.payload].toString(); -} }; -const v2644 = {}; -v2644.constructor = v2643; -v2643.prototype = v2644; -v3.convertPayloadToString = v2643; -var v2645; -var v2646 = v8; -var v2647 = v1656; -var v2648 = v751; -v2645 = function defer(callback) { if (typeof v2646 === \\"object\\" && typeof v7.nextTick === \\"function\\") { - v7.nextTick(callback); -} -else if (typeof v2647 === \\"function\\") { - v2647(callback); -} -else { - v2648(callback, 0); -} }; -const v2649 = {}; -v2649.constructor = v2645; -v2645.prototype = v2649; -v3.defer = v2645; -var v2650; -v2650 = function getRequestPayloadShape(req) { var operations = req.service.api.operations; if (!operations) - return undefined; var operation = (operations || {})[req.operation]; if (!operation || !operation.input || !operation.input.payload) - return undefined; return operation.input.members[operation.input.payload]; }; -const v2651 = {}; -v2651.constructor = v2650; -v2650.prototype = v2651; -v3.getRequestPayloadShape = v2650; -var v2652; -v2652 = function getProfilesFromSharedConfig(iniLoader, filename) { var profiles = {}; var profilesFromConfig = {}; if (v2646.env[\\"AWS_SDK_LOAD_CONFIG\\"]) { - var profilesFromConfig = iniLoader.loadFrom({ isConfig: true, filename: v7.env[\\"AWS_CONFIG_FILE\\"] }); -} var profilesFromCreds = {}; try { - var profilesFromCreds = iniLoader.loadFrom({ filename: filename || (v2646.env[\\"AWS_SDK_LOAD_CONFIG\\"] && v7.env[\\"AWS_SHARED_CREDENTIALS_FILE\\"]) }); -} -catch (error) { - if (!v7.env[\\"AWS_SDK_LOAD_CONFIG\\"]) - throw error; -} for (var i = 0, profileNames = v30.keys(profilesFromConfig); i < profileNames.length; i++) { - profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromConfig[profileNames[i]]); -} for (var i = 0, profileNames = v471.keys(profilesFromCreds); i < profileNames.length; i++) { - profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromCreds[profileNames[i]]); -} return profiles; function objectAssign(target, source) { for (var i = 0, keys = v471.keys(source); i < keys.length; i++) { - target[keys[i]] = source[keys[i]]; -} return target; } }; -const v2653 = {}; -v2653.constructor = v2652; -v2652.prototype = v2653; -v3.getProfilesFromSharedConfig = v2652; -const v2654 = {}; -var v2655; -v2655 = function validateARN(str) { return str && str.indexOf(\\"arn:\\") === 0 && str.split(\\":\\").length >= 6; }; -const v2656 = {}; -v2656.constructor = v2655; -v2655.prototype = v2656; -v2654.validate = v2655; -var v2657; -v2657 = function parseARN(arn) { var matched = arn.split(\\":\\"); return { partition: matched[1], service: matched[2], region: matched[3], accountId: matched[4], resource: matched.slice(5).join(\\":\\") }; }; -const v2658 = {}; -v2658.constructor = v2657; -v2657.prototype = v2658; -v2654.parse = v2657; -var v2659; -v2659 = function buildARN(arnObject) { if (arnObject.service === undefined || arnObject.region === undefined || arnObject.accountId === undefined || arnObject.resource === undefined) - throw v5.error(new v2641(\\"Input ARN object is invalid\\")); return \\"arn:\\" + (arnObject.partition || \\"aws\\") + \\":\\" + arnObject.service + \\":\\" + arnObject.region + \\":\\" + arnObject.accountId + \\":\\" + arnObject.resource; }; -const v2660 = {}; -v2660.constructor = v2659; -v2659.prototype = v2660; -v2654.build = v2659; -v3.ARN = v2654; -v3.defaultProfile = \\"default\\"; -v3.configOptInEnv = \\"AWS_SDK_LOAD_CONFIG\\"; -v3.sharedCredentialsFileEnv = \\"AWS_SHARED_CREDENTIALS_FILE\\"; -v3.sharedConfigFileEnv = \\"AWS_CONFIG_FILE\\"; -v3.imdsDisabledEnv = \\"AWS_EC2_METADATA_DISABLED\\"; -var v2661; -v2661 = function () { return false; }; -const v2662 = {}; -v2662.constructor = v2661; -v2661.prototype = v2662; -v3.isBrowser = v2661; -var v2663; -v2663 = function () { return true; }; -const v2664 = {}; -v2664.constructor = v2663; -v2663.prototype = v2664; -v3.isNode = v2663; -v3.Buffer = v1816; -const v2665 = require(\\"domain\\"); -v3.domain = v2665; -v3.stream = v1808; -v3.url = v22; -v3.querystring = v27; -var v2666; -var v2668; -const v2670 = require(\\"stream\\").Transform; -var v2669 = v2670; -v2668 = function EventUnmarshallerStream(options) { options = options || {}; options.readableObjectMode = true; v2669.call(this, options); this._readableState.objectMode = true; this.parser = options.parser; this.eventStreamModel = options.eventStreamModel; }; -const v2671 = require(\\"stream\\").Transform.prototype; -const v2672 = Object.create(v2671); -var v2673; -var v2675; -var v2677; -var v2679; -var v2680 = v3; -var v2681 = v42; -var v2682 = 16; -var v2683 = v40; -var v2684 = v40; -var v2685 = 8; -var v2686 = 8; -var v2687 = v40; -var v2688 = 4; -var v2689 = 4; -var v2690 = v40; -var v2691 = 8; -var v2692 = 4; -var v2693 = 4; -var v2694 = 4; -v2679 = function splitMessage(message) { if (!v2680.Buffer.isBuffer(message)) - message = v2681(message); if (message.length < v2682) { - throw new v2683(\\"Provided message too short to accommodate event stream message overhead\\"); -} if (message.length !== message.readUInt32BE(0)) { - throw new v2684(\\"Reported message length does not match received message length\\"); -} var expectedPreludeChecksum = message.readUInt32BE(v2685); if (expectedPreludeChecksum !== v91.crc32(message.slice(0, v2686))) { - throw new v2687(\\"The prelude checksum specified in the message (\\" + expectedPreludeChecksum + \\") does not match the calculated CRC32 checksum.\\"); -} var expectedMessageChecksum = message.readUInt32BE(message.length - v2688); if (expectedMessageChecksum !== v91.crc32(message.slice(0, message.length - v2689))) { - throw new v2690(\\"The message checksum did not match the expected value of \\" + expectedMessageChecksum); -} var headersStart = v2691 + v2692; var headersEnd = headersStart + message.readUInt32BE(v2693); return { headers: message.slice(headersStart, headersEnd), body: message.slice(headersEnd, message.length - v2694) }; }; -const v2695 = {}; -v2695.constructor = v2679; -v2679.prototype = v2695; -var v2678 = v2679; -var v2697; -var v2698 = \\"boolean\\"; -var v2699 = \\"boolean\\"; -var v2700 = \\"byte\\"; -var v2701 = \\"short\\"; -var v2702 = \\"integer\\"; -var v2703 = \\"long\\"; -var v2705; -var v2706 = v40; -var v2707 = v3; -var v2708 = v42; -v2705 = function Int64(bytes) { if (bytes.length !== 8) { - throw new v2706(\\"Int64 buffers must be exactly 8 bytes\\"); -} if (!v2707.Buffer.isBuffer(bytes)) - bytes = v2708(bytes); this.bytes = bytes; }; -const v2709 = {}; -v2709.constructor = v2705; -var v2710; -var v2712; -v2712 = function negate(bytes) { for (var i = 0; i < 8; i++) { - bytes[i] ^= 255; -} for (var i = 7; i > -1; i--) { - bytes[i]++; - if (bytes[i] !== 0) { - break; - } -} }; -const v2713 = {}; -v2713.constructor = v2712; -v2712.prototype = v2713; -var v2711 = v2712; -var v2714 = v117; -v2710 = function () { var bytes = this.bytes.slice(0); var negative = bytes[0] && 128; if (negative) { - v2711(bytes); -} return v2714(bytes.toString(\\"hex\\"), 16) * (negative ? -1 : 1); }; -const v2715 = {}; -v2715.constructor = v2710; -v2710.prototype = v2715; -v2709.valueOf = v2710; -var v2716; -var v2717 = v136; -v2716 = function () { return v2717(this.valueOf()); }; -const v2718 = {}; -v2718.constructor = v2716; -v2716.prototype = v2718; -v2709.toString = v2716; -v2705.prototype = v2709; -var v2719; -var v2720 = v40; -var v2721 = v44; -var v2722 = v787; -var v2723 = v787; -var v2724 = v2712; -var v2725 = v2705; -v2719 = function (number) { if (number > 9223372036854776000 || number < -9223372036854776000) { - throw new v2720(number + \\" is too large (or, if negative, too small) to represent as an Int64\\"); -} var bytes = new v2721(8); for (var i = 7, remaining = v2722.abs(v2723.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { - bytes[i] = remaining; -} if (number < 0) { - v2724(bytes); -} return new v2725(bytes); }; -const v2726 = {}; -v2726.constructor = v2719; -v2719.prototype = v2726; -v2705.fromNumber = v2719; -var v2704 = v2705; -var v2727 = \\"binary\\"; -var v2728 = undefined; -var v2729 = undefined; -var v2730 = \\"string\\"; -var v2731 = undefined; -var v2732 = undefined; -var v2733 = \\"timestamp\\"; -var v2734 = v77; -var v2735 = v2705; -var v2736 = \\"uuid\\"; -var v2737 = v40; -v2697 = function parseHeaders(headers) { var out = {}; var position = 0; while (position < headers.length) { - var nameLength = headers.readUInt8(position++); - var name = headers.slice(position, position + nameLength).toString(); - position += nameLength; - switch (headers.readUInt8(position++)) { - case 0: - out[name] = { type: v2698, value: true }; - break; - case 1: - out[name] = { type: v2699, value: false }; - break; - case 2: - out[name] = { type: v2700, value: headers.readInt8(position++) }; - break; - case 3: - out[name] = { type: v2701, value: headers.readInt16BE(position) }; - position += 2; - break; - case 4: - out[name] = { type: v2702, value: headers.readInt32BE(position) }; - position += 4; - break; - case 5: - out[name] = { type: v2703, value: new v2704(headers.slice(position, position + 8)) }; - position += 8; - break; - case 6: - var binaryLength = headers.readUInt16BE(position); - position += 2; - out[name] = { type: v2727, value: headers.slice(position, position + v2728) }; - position += v2729; - break; - case 7: - var stringLength = headers.readUInt16BE(position); - position += 2; - out[name] = { type: v2730, value: headers.slice(position, position + v2731).toString() }; - position += v2732; - break; - case 8: - out[name] = { type: v2733, value: new v2734(new v2735(headers.slice(position, position + 8)).valueOf()) }; - position += 8; - break; - case 9: - var uuidChars = headers.slice(position, position + 16).toString(\\"hex\\"); - position += 16; - out[name] = { type: v2736, value: undefined(0, 8) + \\"-\\" + undefined(8, 4) + \\"-\\" + undefined(12, 4) + \\"-\\" + undefined(16, 4) + \\"-\\" + undefined(20) }; - break; - default: throw new v2737(\\"Unrecognized header type tag\\"); - } -} return out; }; -const v2738 = {}; -v2738.constructor = v2697; -v2697.prototype = v2738; -var v2696 = v2697; -v2677 = function parseMessage(message) { var parsed = v2678(message); return { headers: v2696(parsed.headers), body: parsed.body }; }; -const v2739 = {}; -v2739.constructor = v2677; -v2677.prototype = v2739; -var v2676 = v2677; -var v2741; -var v2742 = v40; -v2741 = function parseError(message) { var errorCode = message.headers[\\":error-code\\"]; var errorMessage = message.headers[\\":error-message\\"]; var error = new v2742(errorMessage.value || errorMessage); error.code = error.name = errorCode.value || errorCode; return error; }; -const v2743 = {}; -v2743.constructor = v2741; -v2741.prototype = v2743; -var v2740 = v2741; -v2675 = function parseEvent(parser, message, shape) { var parsedMessage = v2676(message); var messageType = parsedMessage.headers[\\":message-type\\"]; if (messageType) { - if (messageType.value === \\"error\\") { - throw v2740(parsedMessage); - } - else if (messageType.value !== \\"event\\") { - return; - } -} var eventType = parsedMessage.headers[\\":event-type\\"]; var eventModel = shape.members[eventType.value]; if (!eventModel) { - return; -} var result = {}; var eventPayloadMemberName = eventModel.eventPayloadMemberName; if (eventPayloadMemberName) { - var payloadShape = eventModel.members[eventPayloadMemberName]; - if (payloadShape.type === \\"binary\\") { - result[eventPayloadMemberName] = parsedMessage.body; - } - else { - result[eventPayloadMemberName] = parser.parse(parsedMessage.body.toString(), payloadShape); - } -} var eventHeaderNames = eventModel.eventHeaderMemberNames; for (var i = 0; i < eventHeaderNames.length; i++) { - var name = eventHeaderNames[i]; - if (parsedMessage.headers[name]) { - result[name] = eventModel.members[name].toType(parsedMessage.headers[name].value); - } -} var output = {}; output[eventType.value] = result; return output; }; -const v2744 = {}; -v2744.constructor = v2675; -v2675.prototype = v2744; -var v2674 = v2675; -v2673 = function (chunk, encoding, callback) { try { - var event = v2674(this.parser, chunk, this.eventStreamModel); - this.push(event); - return callback(); -} -catch (err) { - callback(err); -} }; -const v2745 = {}; -v2745.constructor = v2673; -v2673.prototype = v2745; -v2672._transform = v2673; -v2668.prototype = v2672; -var v2667 = v2668; -var v2747; -var v2748 = v2670; -v2747 = function EventMessageChunkerStream(options) { v2748.call(this, options); this.currentMessageTotalLength = 0; this.currentMessagePendingLength = 0; this.currentMessage = null; this.messageLengthBuffer = null; }; -const v2749 = Object.create(v2671); -var v2750; -var v2751 = v46; -var v2752 = v787; -var v2753 = v787; -v2750 = function (chunk, encoding, callback) { var chunkLength = chunk.length; var currentOffset = 0; while (currentOffset < chunkLength) { - if (!this.currentMessage) { - var bytesRemaining = chunkLength - currentOffset; - if (!this.messageLengthBuffer) { - this.messageLengthBuffer = v2751(4); - } - var numBytesForTotal = v2752.min(4 - this.currentMessagePendingLength, bytesRemaining); - chunk.copy(this.messageLengthBuffer, this.currentMessagePendingLength, currentOffset, currentOffset + numBytesForTotal); - this.currentMessagePendingLength += numBytesForTotal; - currentOffset += numBytesForTotal; - if (this.currentMessagePendingLength < 4) { - break; - } - this.allocateMessage(this.messageLengthBuffer.readUInt32BE(0)); - this.messageLengthBuffer = null; - } - var numBytesToWrite = v2753.min(this.currentMessageTotalLength - this.currentMessagePendingLength, chunkLength - currentOffset); - chunk.copy(this.currentMessage, this.currentMessagePendingLength, currentOffset, currentOffset + numBytesToWrite); - this.currentMessagePendingLength += numBytesToWrite; - currentOffset += numBytesToWrite; - if (this.currentMessageTotalLength && this.currentMessageTotalLength === this.currentMessagePendingLength) { - this.push(this.currentMessage); - this.currentMessage = null; - this.currentMessageTotalLength = 0; - this.currentMessagePendingLength = 0; - } -} callback(); }; -const v2754 = {}; -v2754.constructor = v2750; -v2750.prototype = v2754; -v2749._transform = v2750; -var v2755; -var v2756 = v40; -v2755 = function (callback) { if (this.currentMessageTotalLength) { - if (this.currentMessageTotalLength === this.currentMessagePendingLength) { - callback(null, this.currentMessage); - } - else { - callback(new v2756(\\"Truncated event message received.\\")); - } -} -else { - callback(); -} }; -const v2757 = {}; -v2757.constructor = v2755; -v2755.prototype = v2757; -v2749._flush = v2755; -var v2758; -var v2759 = v40; -var v2760 = v46; -v2758 = function (size) { if (typeof size !== \\"number\\") { - throw new v2759(\\"Attempted to allocate an event message where size was not a number: \\" + size); -} this.currentMessageTotalLength = size; this.currentMessagePendingLength = 4; this.currentMessage = v2760(size); this.currentMessage.writeUInt32BE(size, 0); }; -const v2761 = {}; -v2761.constructor = v2758; -v2758.prototype = v2761; -v2749.allocateMessage = v2758; -v2747.prototype = v2749; -var v2746 = v2747; -v2666 = function createEventStream(stream, parser, model) { var eventStream = new v2667({ parser: parser, eventStreamModel: model }); var eventMessageChunker = new v2746(); stream.pipe(eventMessageChunker).pipe(eventStream); stream.on(\\"error\\", function (err) { eventMessageChunker.emit(\\"error\\", err); }); eventMessageChunker.on(\\"error\\", function (err) { eventStream.emit(\\"error\\", err); }); return eventStream; }; -const v2762 = {}; -v2762.constructor = v2666; -v2666.prototype = v2762; -v3.createEventStream = v2666; -v3.realClock = v781; -v3.clientSideMonitoring = v2125; -v3.iniLoader = v200; -const v2763 = require(\\"util\\").getSystemErrorName; -v3.getSystemErrorName = v2763; -var v2764; -var v2765 = v8; -var v2766 = v8; -var v2767 = v8; -v2764 = function (options) { var envValue = options.environmentVariableSelector(v2765.env); if (envValue !== undefined) { - return envValue; -} var configFile = {}; try { - configFile = v200 ? v200.loadFrom({ isConfig: true, filename: v2766.env[\\"AWS_CONFIG_FILE\\"] }) : {}; -} -catch (e) { } var sharedFileConfig = configFile[v2767.env.AWS_PROFILE || \\"default\\"] || {}; var configValue = options.configFileSelector(sharedFileConfig); if (configValue !== undefined) { - return configValue; -} if (typeof options.default === \\"function\\") { - return options.default(); -} return options.default; }; -const v2768 = {}; -v2768.constructor = v2764; -v2764.prototype = v2768; -v3.loadConfig = v2764; -v2.util = v3; -v2.VERSION = \\"2.1193.0\\"; -v2.Signers = v450; -const v2769 = {}; -v2769.Json = v2035; -const v2770 = {}; -v2770.buildRequest = v800; -v2770.extractError = v1898; -v2770.extractData = v853; -v2769.Query = v2770; -v2769.Rest = v1977; -const v2771 = {}; -v2771.buildRequest = v1975; -v2771.extractError = v2039; -v2771.extractData = v2028; -v2769.RestJson = v2771; -const v2772 = {}; -v2772.buildRequest = v2045; -v2772.extractError = v2058; -v2772.extractData = v2052; -v2769.RestXml = v2772; -v2.Protocol = v2769; -v2.XML = v937; -const v2773 = {}; -v2773.Builder = v1908; -v2773.Parser = v1940; -v2.JSON = v2773; -const v2774 = {}; -v2774.Api = v2150; -v2774.Operation = v2488; -v2774.Shape = v855; -v2774.Paginator = v2517; -v2774.ResourceWaiter = v2525; -v2.Model = v2774; -var v2775; -var v2776 = v40; -v2775 = function apiLoader(svc, version) { if (!apiLoader.services.hasOwnProperty(svc)) { - throw new v2776(\\"InvalidService: Failed to load api for \\" + svc); -} return apiLoader.services[svc][version]; }; -const v2777 = {}; -v2777.constructor = v2775; -v2775.prototype = v2777; -const v2778 = {}; -const v2779 = {}; -v2778.sts = v2779; -const v2780 = {}; -v2778.cognitoidentity = v2780; -const v2781 = {}; -v2778.acm = v2781; -const v2782 = {}; -v2778.apigateway = v2782; -const v2783 = {}; -v2778.applicationautoscaling = v2783; -const v2784 = {}; -v2778.appstream = v2784; -const v2785 = {}; -v2778.autoscaling = v2785; -const v2786 = {}; -v2778.batch = v2786; -const v2787 = {}; -v2778.budgets = v2787; -const v2788 = {}; -v2778.clouddirectory = v2788; -const v2789 = {}; -v2778.cloudformation = v2789; -const v2790 = {}; -v2778.cloudfront = v2790; -const v2791 = {}; -v2778.cloudhsm = v2791; -const v2792 = {}; -v2778.cloudsearch = v2792; -const v2793 = {}; -v2778.cloudsearchdomain = v2793; -const v2794 = {}; -v2778.cloudtrail = v2794; -const v2795 = {}; -v2778.cloudwatch = v2795; -const v2796 = {}; -v2778.cloudwatchevents = v2796; -const v2797 = {}; -v2778.cloudwatchlogs = v2797; -const v2798 = {}; -v2778.codebuild = v2798; -const v2799 = {}; -v2778.codecommit = v2799; -const v2800 = {}; -v2778.codedeploy = v2800; -const v2801 = {}; -v2778.codepipeline = v2801; -const v2802 = {}; -v2778.cognitoidentityserviceprovider = v2802; -const v2803 = {}; -v2778.cognitosync = v2803; -const v2804 = {}; -v2778.configservice = v2804; -const v2805 = {}; -v2778.cur = v2805; -const v2806 = {}; -v2778.datapipeline = v2806; -const v2807 = {}; -v2778.devicefarm = v2807; -const v2808 = {}; -v2778.directconnect = v2808; -const v2809 = {}; -v2778.directoryservice = v2809; -const v2810 = {}; -v2778.discovery = v2810; -const v2811 = {}; -v2778.dms = v2811; -const v2812 = {}; -v2778.dynamodb = v2812; -const v2813 = {}; -v2778.dynamodbstreams = v2813; -const v2814 = {}; -v2778.ec2 = v2814; -const v2815 = {}; -v2778.ecr = v2815; -const v2816 = {}; -v2778.ecs = v2816; -const v2817 = {}; -v2778.efs = v2817; -const v2818 = {}; -v2778.elasticache = v2818; -const v2819 = {}; -v2778.elasticbeanstalk = v2819; -const v2820 = {}; -v2778.elb = v2820; -const v2821 = {}; -v2778.elbv2 = v2821; -const v2822 = {}; -v2778.emr = v2822; -const v2823 = {}; -v2778.es = v2823; -const v2824 = {}; -v2778.elastictranscoder = v2824; -const v2825 = {}; -v2778.firehose = v2825; -const v2826 = {}; -v2778.gamelift = v2826; -const v2827 = {}; -v2778.glacier = v2827; -const v2828 = {}; -v2778.health = v2828; -const v2829 = {}; -v2778.iam = v2829; -const v2830 = {}; -v2778.importexport = v2830; -const v2831 = {}; -v2778.inspector = v2831; -const v2832 = {}; -v2778.iot = v2832; -const v2833 = {}; -v2778.iotdata = v2833; -const v2834 = {}; -v2778.kinesis = v2834; -const v2835 = {}; -v2778.kinesisanalytics = v2835; -const v2836 = {}; -v2778.kms = v2836; -const v2837 = {}; -v2778.lambda = v2837; -const v2838 = {}; -v2778.lexruntime = v2838; -const v2839 = {}; -v2778.lightsail = v2839; -const v2840 = {}; -v2778.machinelearning = v2840; -const v2841 = {}; -v2778.marketplacecommerceanalytics = v2841; -const v2842 = {}; -v2778.marketplacemetering = v2842; -const v2843 = {}; -v2778.mturk = v2843; -const v2844 = {}; -v2778.mobileanalytics = v2844; -const v2845 = {}; -v2778.opsworks = v2845; -const v2846 = {}; -v2778.opsworkscm = v2846; -const v2847 = {}; -v2778.organizations = v2847; -const v2848 = {}; -v2778.pinpoint = v2848; -const v2849 = {}; -v2778.polly = v2849; -const v2850 = {}; -v2778.rds = v2850; -const v2851 = {}; -v2778.redshift = v2851; -const v2852 = {}; -v2778.rekognition = v2852; -const v2853 = {}; -v2778.resourcegroupstaggingapi = v2853; -const v2854 = {}; -v2778.route53 = v2854; -const v2855 = {}; -v2778.route53domains = v2855; -const v2856 = {}; -v2778.s3 = v2856; -const v2857 = {}; -v2778.s3control = v2857; -const v2858 = {}; -v2778.servicecatalog = v2858; -const v2859 = {}; -v2778.ses = v2859; -const v2860 = {}; -v2778.shield = v2860; -const v2861 = {}; -v2778.simpledb = v2861; -const v2862 = {}; -v2778.sms = v2862; -const v2863 = {}; -v2778.snowball = v2863; -const v2864 = {}; -v2778.sns = v2864; -const v2865 = {}; -v2778.sqs = v2865; -const v2866 = {}; -v2778.ssm = v2866; -const v2867 = {}; -v2778.storagegateway = v2867; -const v2868 = {}; -v2778.stepfunctions = v2868; -const v2869 = {}; -v2778.support = v2869; -const v2870 = {}; -v2778.swf = v2870; -const v2871 = {}; -v2778.xray = v2871; -const v2872 = {}; -v2778.waf = v2872; -const v2873 = {}; -v2778.wafregional = v2873; -const v2874 = {}; -v2778.workdocs = v2874; -const v2875 = {}; -v2778.workspaces = v2875; -const v2876 = {}; -v2778.codestar = v2876; -const v2877 = {}; -v2778.lexmodelbuildingservice = v2877; -const v2878 = {}; -v2778.marketplaceentitlementservice = v2878; -const v2879 = {}; -v2778.athena = v2879; -const v2880 = {}; -v2778.greengrass = v2880; -const v2881 = {}; -v2778.dax = v2881; -const v2882 = {}; -v2778.migrationhub = v2882; -const v2883 = {}; -v2778.cloudhsmv2 = v2883; -const v2884 = {}; -v2778.glue = v2884; -const v2885 = {}; -v2778.mobile = v2885; -const v2886 = {}; -v2778.pricing = v2886; -const v2887 = {}; -v2778.costexplorer = v2887; -const v2888 = {}; -v2778.mediaconvert = v2888; -const v2889 = {}; -v2778.medialive = v2889; -const v2890 = {}; -v2778.mediapackage = v2890; -const v2891 = {}; -v2778.mediastore = v2891; -const v2892 = {}; -v2778.mediastoredata = v2892; -const v2893 = {}; -v2778.appsync = v2893; -const v2894 = {}; -v2778.guardduty = v2894; -const v2895 = {}; -v2778.mq = v2895; -const v2896 = {}; -v2778.comprehend = v2896; -const v2897 = {}; -v2778.iotjobsdataplane = v2897; -const v2898 = {}; -v2778.kinesisvideoarchivedmedia = v2898; -const v2899 = {}; -v2778.kinesisvideomedia = v2899; -const v2900 = {}; -v2778.kinesisvideo = v2900; -const v2901 = {}; -v2778.sagemakerruntime = v2901; -const v2902 = {}; -v2778.sagemaker = v2902; -const v2903 = {}; -v2778.translate = v2903; -const v2904 = {}; -v2778.resourcegroups = v2904; -const v2905 = {}; -v2778.alexaforbusiness = v2905; -const v2906 = {}; -v2778.cloud9 = v2906; -const v2907 = {}; -v2778.serverlessapplicationrepository = v2907; -const v2908 = {}; -v2778.servicediscovery = v2908; -const v2909 = {}; -v2778.workmail = v2909; -const v2910 = {}; -v2778.autoscalingplans = v2910; -const v2911 = {}; -v2778.transcribeservice = v2911; -const v2912 = {}; -v2778.connect = v2912; -const v2913 = {}; -v2778.acmpca = v2913; -const v2914 = {}; -v2778.fms = v2914; -const v2915 = {}; -v2778.secretsmanager = v2915; -const v2916 = {}; -v2778.iotanalytics = v2916; -const v2917 = {}; -v2778.iot1clickdevicesservice = v2917; -const v2918 = {}; -v2778.iot1clickprojects = v2918; -const v2919 = {}; -v2778.pi = v2919; -const v2920 = {}; -v2778.neptune = v2920; -const v2921 = {}; -v2778.mediatailor = v2921; -const v2922 = {}; -v2778.eks = v2922; -const v2923 = {}; -v2778.macie = v2923; -const v2924 = {}; -v2778.dlm = v2924; -const v2925 = {}; -v2778.signer = v2925; -const v2926 = {}; -v2778.chime = v2926; -const v2927 = {}; -v2778.pinpointemail = v2927; -const v2928 = {}; -v2778.ram = v2928; -const v2929 = {}; -v2778.route53resolver = v2929; -const v2930 = {}; -v2778.pinpointsmsvoice = v2930; -const v2931 = {}; -v2778.quicksight = v2931; -const v2932 = {}; -v2778.rdsdataservice = v2932; -const v2933 = {}; -v2778.amplify = v2933; -const v2934 = {}; -v2778.datasync = v2934; -const v2935 = {}; -v2778.robomaker = v2935; -const v2936 = {}; -v2778.transfer = v2936; -const v2937 = {}; -v2778.globalaccelerator = v2937; -const v2938 = {}; -v2778.comprehendmedical = v2938; -const v2939 = {}; -v2778.kinesisanalyticsv2 = v2939; -const v2940 = {}; -v2778.mediaconnect = v2940; -const v2941 = {}; -v2778.fsx = v2941; -const v2942 = {}; -v2778.securityhub = v2942; -const v2943 = {}; -v2778.appmesh = v2943; -const v2944 = {}; -v2778.licensemanager = v2944; -const v2945 = {}; -v2778.kafka = v2945; -const v2946 = {}; -v2778.apigatewaymanagementapi = v2946; -const v2947 = {}; -v2778.apigatewayv2 = v2947; -const v2948 = {}; -v2778.docdb = v2948; -const v2949 = {}; -v2778.backup = v2949; -const v2950 = {}; -v2778.worklink = v2950; -const v2951 = {}; -v2778.textract = v2951; -const v2952 = {}; -v2778.managedblockchain = v2952; -const v2953 = {}; -v2778.mediapackagevod = v2953; -const v2954 = {}; -v2778.groundstation = v2954; -const v2955 = {}; -v2778.iotthingsgraph = v2955; -const v2956 = {}; -v2778.iotevents = v2956; -const v2957 = {}; -v2778.ioteventsdata = v2957; -const v2958 = {}; -v2778.personalize = v2958; -const v2959 = {}; -v2778.personalizeevents = v2959; -const v2960 = {}; -v2778.personalizeruntime = v2960; -const v2961 = {}; -v2778.applicationinsights = v2961; -const v2962 = {}; -v2778.servicequotas = v2962; -const v2963 = {}; -v2778.ec2instanceconnect = v2963; -const v2964 = {}; -v2778.eventbridge = v2964; -const v2965 = {}; -v2778.lakeformation = v2965; -const v2966 = {}; -v2778.forecastservice = v2966; -const v2967 = {}; -v2778.forecastqueryservice = v2967; -const v2968 = {}; -v2778.qldb = v2968; -const v2969 = {}; -v2778.qldbsession = v2969; -const v2970 = {}; -v2778.workmailmessageflow = v2970; -const v2971 = {}; -v2778.codestarnotifications = v2971; -const v2972 = {}; -v2778.savingsplans = v2972; -const v2973 = {}; -v2778.sso = v2973; -const v2974 = {}; -v2778.ssooidc = v2974; -const v2975 = {}; -v2778.marketplacecatalog = v2975; -const v2976 = {}; -v2778.dataexchange = v2976; -const v2977 = {}; -v2778.sesv2 = v2977; -const v2978 = {}; -v2778.migrationhubconfig = v2978; -const v2979 = {}; -v2778.connectparticipant = v2979; -const v2980 = {}; -v2778.appconfig = v2980; -const v2981 = {}; -v2778.iotsecuretunneling = v2981; -const v2982 = {}; -v2778.wafv2 = v2982; -const v2983 = {}; -v2778.elasticinference = v2983; -const v2984 = {}; -v2778.imagebuilder = v2984; -const v2985 = {}; -v2778.schemas = v2985; -const v2986 = {}; -v2778.accessanalyzer = v2986; -const v2987 = {}; -v2778.codegurureviewer = v2987; -const v2988 = {}; -v2778.codeguruprofiler = v2988; -const v2989 = {}; -v2778.computeoptimizer = v2989; -const v2990 = {}; -v2778.frauddetector = v2990; -const v2991 = {}; -v2778.kendra = v2991; -const v2992 = {}; -v2778.networkmanager = v2992; -const v2993 = {}; -v2778.outposts = v2993; -const v2994 = {}; -v2778.augmentedairuntime = v2994; -const v2995 = {}; -v2778.ebs = v2995; -const v2996 = {}; -v2778.kinesisvideosignalingchannels = v2996; -const v2997 = {}; -v2778.detective = v2997; -const v2998 = {}; -v2778.codestarconnections = v2998; -const v2999 = {}; -v2778.synthetics = v2999; -const v3000 = {}; -v2778.iotsitewise = v3000; -const v3001 = {}; -v2778.macie2 = v3001; -const v3002 = {}; -v2778.codeartifact = v3002; -const v3003 = {}; -v2778.honeycode = v3003; -const v3004 = {}; -v2778.ivs = v3004; -const v3005 = {}; -v2778.braket = v3005; -const v3006 = {}; -v2778.identitystore = v3006; -const v3007 = {}; -v2778.appflow = v3007; -const v3008 = {}; -v2778.redshiftdata = v3008; -const v3009 = {}; -v2778.ssoadmin = v3009; -const v3010 = {}; -v2778.timestreamquery = v3010; -const v3011 = {}; -v2778.timestreamwrite = v3011; -const v3012 = {}; -v2778.s3outposts = v3012; -const v3013 = {}; -v2778.databrew = v3013; -const v3014 = {}; -v2778.servicecatalogappregistry = v3014; -const v3015 = {}; -v2778.networkfirewall = v3015; -const v3016 = {}; -v2778.mwaa = v3016; -const v3017 = {}; -v2778.amplifybackend = v3017; -const v3018 = {}; -v2778.appintegrations = v3018; -const v3019 = {}; -v2778.connectcontactlens = v3019; -const v3020 = {}; -v2778.devopsguru = v3020; -const v3021 = {}; -v2778.ecrpublic = v3021; -const v3022 = {}; -v2778.lookoutvision = v3022; -const v3023 = {}; -v2778.sagemakerfeaturestoreruntime = v3023; -const v3024 = {}; -v2778.customerprofiles = v3024; -const v3025 = {}; -v2778.auditmanager = v3025; -const v3026 = {}; -v2778.emrcontainers = v3026; -const v3027 = {}; -v2778.healthlake = v3027; -const v3028 = {}; -v2778.sagemakeredge = v3028; -const v3029 = {}; -v2778.amp = v3029; -const v3030 = {}; -v2778.greengrassv2 = v3030; -const v3031 = {}; -v2778.iotdeviceadvisor = v3031; -const v3032 = {}; -v2778.iotfleethub = v3032; -const v3033 = {}; -v2778.iotwireless = v3033; -const v3034 = {}; -v2778.location = v3034; -const v3035 = {}; -v2778.wellarchitected = v3035; -const v3036 = {}; -v2778.lexmodelsv2 = v3036; -const v3037 = {}; -v2778.lexruntimev2 = v3037; -const v3038 = {}; -v2778.fis = v3038; -const v3039 = {}; -v2778.lookoutmetrics = v3039; -const v3040 = {}; -v2778.mgn = v3040; -const v3041 = {}; -v2778.lookoutequipment = v3041; -const v3042 = {}; -v2778.nimble = v3042; -const v3043 = {}; -v2778.finspace = v3043; -const v3044 = {}; -v2778.finspacedata = v3044; -const v3045 = {}; -v2778.ssmcontacts = v3045; -const v3046 = {}; -v2778.ssmincidents = v3046; -const v3047 = {}; -v2778.applicationcostprofiler = v3047; -const v3048 = {}; -v2778.apprunner = v3048; -const v3049 = {}; -v2778.proton = v3049; -const v3050 = {}; -v2778.route53recoverycluster = v3050; -const v3051 = {}; -v2778.route53recoverycontrolconfig = v3051; -const v3052 = {}; -v2778.route53recoveryreadiness = v3052; -const v3053 = {}; -v2778.chimesdkidentity = v3053; -const v3054 = {}; -v2778.chimesdkmessaging = v3054; -const v3055 = {}; -v2778.snowdevicemanagement = v3055; -const v3056 = {}; -v2778.memorydb = v3056; -const v3057 = {}; -v2778.opensearch = v3057; -const v3058 = {}; -v2778.kafkaconnect = v3058; -const v3059 = {}; -v2778.voiceid = v3059; -const v3060 = {}; -v2778.wisdom = v3060; -const v3061 = {}; -v2778.account = v3061; -const v3062 = {}; -v2778.cloudcontrol = v3062; -const v3063 = {}; -v2778.grafana = v3063; -const v3064 = {}; -v2778.panorama = v3064; -const v3065 = {}; -v2778.chimesdkmeetings = v3065; -const v3066 = {}; -v2778.resiliencehub = v3066; -const v3067 = {}; -v2778.migrationhubstrategy = v3067; -const v3068 = {}; -v2778.appconfigdata = v3068; -const v3069 = {}; -v2778.drs = v3069; -const v3070 = {}; -v2778.migrationhubrefactorspaces = v3070; -const v3071 = {}; -v2778.evidently = v3071; -const v3072 = {}; -v2778.inspector2 = v3072; -const v3073 = {}; -v2778.rbin = v3073; -const v3074 = {}; -v2778.rum = v3074; -const v3075 = {}; -v2778.backupgateway = v3075; -const v3076 = {}; -v2778.iottwinmaker = v3076; -const v3077 = {}; -v2778.workspacesweb = v3077; -const v3078 = {}; -v2778.amplifyuibuilder = v3078; -const v3079 = {}; -v2778.keyspaces = v3079; -const v3080 = {}; -v2778.billingconductor = v3080; -const v3081 = {}; -v2778.gamesparks = v3081; -const v3082 = {}; -v2778.pinpointsmsvoicev2 = v3082; -const v3083 = {}; -v2778.ivschat = v3083; -const v3084 = {}; -v2778.chimesdkmediapipelines = v3084; -const v3085 = {}; -v2778.emrserverless = v3085; -const v3086 = {}; -v2778.m2 = v3086; -const v3087 = {}; -v2778.connectcampaigns = v3087; -const v3088 = {}; -v2778.redshiftserverless = v3088; -const v3089 = {}; -v2778.rolesanywhere = v3089; -const v3090 = {}; -v2778.licensemanagerusersubscriptions = v3090; -const v3091 = {}; -v2778.backupstorage = v3091; -const v3092 = {}; -v2778.privatenetworks = v3092; -v2775.services = v2778; -v2.apiLoader = v2775; -v2.EndpointCache = v643; -v2.SequentialExecutor = v402; -v2.Service = v299; -v2.Credentials = v253; -v2.CredentialProviderChain = v2585; -v2.Config = v154; -v2.config = v251; -var v3093; -var v3094 = v40; -var v3095 = v117; -v3093 = function Endpoint(endpoint, config) { v3.hideProperties(this, [\\"slashes\\", \\"auth\\", \\"hash\\", \\"search\\", \\"query\\"]); if (typeof endpoint === \\"undefined\\" || endpoint === null) { - throw new v3094(\\"Invalid endpoint: \\" + endpoint); -} -else if (typeof endpoint !== \\"string\\") { - return v3.copy(endpoint); -} if (!endpoint.match(/^http/)) { - var useSSL = config && config.sslEnabled !== undefined ? config.sslEnabled : true; - endpoint = (useSSL ? \\"https\\" : \\"http\\") + \\"://\\" + endpoint; -} v3.update(this, v3.urlParse(endpoint)); if (this.port) { - this.port = v3095(this.port, 10); -} -else { - this.port = this.protocol === \\"https:\\" ? 443 : 80; -} }; -const v3096 = {}; -v3096.constructor = v3093; -v3093.prototype = v3096; -v3093.__super__ = v31; -v2.Endpoint = v3093; -var v3097; -var v3098 = v2; -v3097 = function HttpRequest(endpoint, region) { endpoint = new v3098.Endpoint(endpoint); this.method = \\"POST\\"; this.path = endpoint.path || \\"/\\"; this.headers = {}; this.body = \\"\\"; this.endpoint = endpoint; this.region = region; this._userAgent = \\"\\"; this.setUserAgent(); }; -const v3099 = {}; -v3099.constructor = v3097; -var v3100; -v3100 = function setUserAgent() { this._userAgent = this.headers[this.getUserAgentHeaderName()] = v3.userAgent(); }; -const v3101 = {}; -v3101.constructor = v3100; -v3100.prototype = v3101; -v3099.setUserAgent = v3100; -var v3102; -v3102 = function getUserAgentHeaderName() { var prefix = v3.isBrowser() ? \\"X-Amz-\\" : \\"\\"; return prefix + \\"User-Agent\\"; }; -const v3103 = {}; -v3103.constructor = v3102; -v3102.prototype = v3103; -v3099.getUserAgentHeaderName = v3102; -var v3104; -v3104 = function appendToUserAgent(agentPartial) { if (typeof agentPartial === \\"string\\" && agentPartial) { - this._userAgent += \\" \\" + agentPartial; -} this.headers[this.getUserAgentHeaderName()] = this._userAgent; }; -const v3105 = {}; -v3105.constructor = v3104; -v3104.prototype = v3105; -v3099.appendToUserAgent = v3104; -var v3106; -v3106 = function getUserAgent() { return this._userAgent; }; -const v3107 = {}; -v3107.constructor = v3106; -v3106.prototype = v3107; -v3099.getUserAgent = v3106; -var v3108; -v3108 = function pathname() { return this.path.split(\\"?\\", 1)[0]; }; -const v3109 = {}; -v3109.constructor = v3108; -v3108.prototype = v3109; -v3099.pathname = v3108; -var v3110; -v3110 = function search() { var query = this.path.split(\\"?\\", 2)[1]; if (query) { - query = v3.queryStringParse(query); - return v3.queryParamsToString(query); -} return \\"\\"; }; -const v3111 = {}; -v3111.constructor = v3110; -v3110.prototype = v3111; -v3099.search = v3110; -var v3112; -var v3113 = v2; -v3112 = function updateEndpoint(endpointStr) { var newEndpoint = new v3113.Endpoint(endpointStr); this.endpoint = newEndpoint; this.path = newEndpoint.path || \\"/\\"; if (this.headers[\\"Host\\"]) { - this.headers[\\"Host\\"] = newEndpoint.host; -} }; -const v3114 = {}; -v3114.constructor = v3112; -v3112.prototype = v3114; -v3099.updateEndpoint = v3112; -v3097.prototype = v3099; -v3097.__super__ = v31; -v2.HttpRequest = v3097; -var v3115; -v3115 = function HttpResponse() { this.statusCode = undefined; this.headers = {}; this.body = undefined; this.streaming = false; this.stream = null; }; -const v3116 = {}; -v3116.constructor = v3115; -var v3117; -v3117 = function createUnbufferedStream() { this.streaming = true; return this.stream; }; -const v3118 = {}; -v3118.constructor = v3117; -v3117.prototype = v3118; -v3116.createUnbufferedStream = v3117; -v3115.prototype = v3116; -v3115.__super__ = v31; -v2.HttpResponse = v3115; -var v3119; -var v3120 = v31; -var v3121 = v31; -v3119 = function () { if (v3120 !== v3121) { - return v3120.apply(this, arguments); -} }; -const v3122 = {}; -var v3123; -var v3124 = v2; -var v3125 = require; -var v3126 = require; -var v3127 = v8; -var v3128 = \\"AWS_NODEJS_CONNECTION_REUSE_ENABLED\\"; -var v3129 = v751; -var v3130 = v40; -const v3132 = require(\\"timers\\").clearTimeout; -var v3131 = v3132; -var v3133 = v40; -var v3134 = undefined; -var v3135 = v3132; -var v3136 = undefined; -v3123 = function handleRequest(httpRequest, httpOptions, callback, errCallback) { var self = this; var endpoint = httpRequest.endpoint; var pathPrefix = \\"\\"; if (!httpOptions) - httpOptions = {}; if (httpOptions.proxy) { - pathPrefix = endpoint.protocol + \\"//\\" + endpoint.hostname; - if (endpoint.port !== 80 && endpoint.port !== 443) { - pathPrefix += \\":\\" + endpoint.port; - } - endpoint = new v3124.Endpoint(httpOptions.proxy); -} var useSSL = endpoint.protocol === \\"https:\\"; var http = useSSL ? v3125(\\"https\\") : v3126(\\"http\\"); var options = { host: endpoint.hostname, port: endpoint.port, method: httpRequest.method, headers: httpRequest.headers, path: pathPrefix + httpRequest.path }; if (!httpOptions.agent) { - options.agent = this.getAgent(useSSL, { keepAlive: v3127.env[v3128] === \\"1\\" ? true : false }); -} v3.update(options, httpOptions); delete options.proxy; delete options.timeout; var stream = http.request(options, function (httpResp) { if (stream.didCallback) - return; callback(httpResp); httpResp.emit(\\"headers\\", httpResp.statusCode, httpResp.headers, httpResp.statusMessage); }); httpRequest.stream = stream; stream.didCallback = false; if (httpOptions.connectTimeout) { - var connectTimeoutId; - stream.on(\\"socket\\", function (socket) { if (socket.connecting) { - connectTimeoutId = v3129(function connectTimeout() { if (stream.didCallback) - return; stream.didCallback = true; stream.abort(); errCallback(v3.error(new v3130(\\"Socket timed out without establishing a connection\\"), { code: \\"TimeoutError\\" })); }, httpOptions.connectTimeout); - socket.on(\\"connect\\", function () { v3131(connectTimeoutId); connectTimeoutId = null; }); - } }); -} stream.setTimeout(httpOptions.timeout || 0, function () { if (stream.didCallback) - return; stream.didCallback = true; var msg = \\"Connection timed out after \\" + httpOptions.timeout + \\"ms\\"; errCallback(v3.error(new v3133(msg), { code: \\"TimeoutError\\" })); stream.abort(); }); stream.on(\\"error\\", function (err) { if (v3134) { - v3135(v3136); - connectTimeoutId = null; -} if (stream.didCallback) - return; stream.didCallback = true; if (\\"ECONNRESET\\" === err.code || \\"EPIPE\\" === err.code || \\"ETIMEDOUT\\" === err.code) { - errCallback(v3.error(err, { code: \\"TimeoutError\\" })); -} -else { - errCallback(err); -} }); var expect = httpRequest.headers.Expect || httpRequest.headers.expect; if (expect === \\"100-continue\\") { - stream.once(\\"continue\\", function () { self.writeBody(stream, httpRequest); }); -} -else { - this.writeBody(stream, httpRequest); -} return stream; }; -const v3137 = {}; -v3137.constructor = v3123; -v3123.prototype = v3137; -v3122.handleRequest = v3123; -var v3138; -var v3139 = v117; -var v3140 = v1808; -v3138 = function writeBody(stream, httpRequest) { var body = httpRequest.body; var totalBytes = v3139(httpRequest.headers[\\"Content-Length\\"], 10); if (body instanceof v3140) { - var progressStream = this.progressStream(stream, totalBytes); - if (progressStream) { - body.pipe(progressStream).pipe(stream); - } - else { - body.pipe(stream); - } -} -else if (body) { - stream.once(\\"finish\\", function () { stream.emit(\\"sendProgress\\", { loaded: totalBytes, total: totalBytes }); }); - stream.end(body); -} -else { - stream.end(); -} }; -const v3141 = {}; -v3141.constructor = v3138; -v3138.prototype = v3141; -v3122.writeBody = v3138; -var v3142; -var v3143 = require; -var v3144 = require; -var v3145 = v8; -var v3146 = v31; -var v3147 = Infinity; -v3142 = function getAgent(useSSL, agentOptions) { var http = useSSL ? v3143(\\"https\\") : v3144(\\"http\\"); if (useSSL) { - if (!undefined) { - undefined = new http.Agent(v3.merge({ rejectUnauthorized: v3145.env.NODE_TLS_REJECT_UNAUTHORIZED === \\"0\\" ? false : true }, agentOptions || {})); - undefined(0); - v3146.defineProperty(undefined, \\"maxSockets\\", { enumerable: true, get: function () { var defaultMaxSockets = 50; var globalAgent = http.globalAgent; if (globalAgent && globalAgent.maxSockets !== v3147 && typeof globalAgent.maxSockets === \\"number\\") { - return globalAgent.maxSockets; - } return defaultMaxSockets; } }); - } - return undefined; -} -else { - if (!undefined) { - undefined = new http.Agent(agentOptions); - } - return undefined; -} }; -const v3148 = {}; -v3148.constructor = v3142; -v3142.prototype = v3148; -v3122.getAgent = v3142; -var v3149; -var v3150 = v2670; -v3149 = function progressStream(stream, totalBytes) { if (typeof v3150 === \\"undefined\\") { - return; -} var loadedBytes = 0; var reporter = new v3150(); reporter._transform = function (chunk, encoding, callback) { if (chunk) { - loadedBytes += chunk.length; - stream.emit(\\"sendProgress\\", { loaded: loadedBytes, total: totalBytes }); -} callback(null, chunk); }; return reporter; }; -const v3151 = {}; -v3151.constructor = v3149; -v3149.prototype = v3151; -v3122.progressStream = v3149; -v3122.emitter = null; -var v3152; -var v3153 = v31; -var v3154 = v31; -v3152 = function () { if (v3153 !== v3154) { - return v3153.apply(this, arguments); -} }; -v3152.prototype = v3122; -v3152.__super__ = v31; -v3122.constructor = v3152; -v3119.prototype = v3122; -v3119.__super__ = v31; -var v3155; -v3155 = function getInstance() { if (this.singleton === undefined) { - this.singleton = new this(); -} return this.singleton; }; -const v3156 = {}; -v3156.constructor = v3155; -v3155.prototype = v3156; -v3119.getInstance = v3155; -v3119.streamsApiVersion = 2; -v2.HttpClient = v3119; -const v3157 = {}; -v3157.Core = v428; -v3157.CorePost = v753; -v3157.Logger = v763; -v3157.Json = v1903; -const v3158 = Object.create(v401); -const v3159 = {}; -const v3160 = []; -v3160.push(v1978); -v3159.build = v3160; -const v3161 = []; -v3161.push(v2012); -v3159.extractData = v3161; -const v3162 = []; -v3162.push(v2010); -v3159.extractError = v3162; -v3158._events = v3159; -v3158.BUILD = v1978; -v3158.EXTRACT_DATA = v2012; -v3158.EXTRACT_ERROR = v2010; -v3157.Rest = v3158; -v3157.RestJson = v1972; -v3157.RestXml = v2042; -v3157.Query = v797; -v2.EventListeners = v3157; -var v3163; -var v3164 = v2665; -var v3165 = v2; -var v3166 = v2; -var v3168; -v3168 = function AcceptorStateMachine(states, state) { this.currentState = state || null; this.states = states || {}; }; -const v3169 = {}; -v3169.constructor = v3168; -var v3170; -v3170 = function runTo(finalState, done, bindObject, inputError) { if (typeof finalState === \\"function\\") { - inputError = bindObject; - bindObject = done; - done = finalState; - finalState = null; -} var self = this; var state = self.states[self.currentState]; state.fn.call(bindObject || self, inputError, function (err) { if (err) { - if (state.fail) - self.currentState = state.fail; - else - return done ? done.call(bindObject, err) : null; -} -else { - if (state.accept) - self.currentState = state.accept; - else - return done ? done.call(bindObject) : null; -} if (self.currentState === finalState) { - return done ? done.call(bindObject, err) : null; -} self.runTo(finalState, done, bindObject, err); }); }; -const v3171 = {}; -v3171.constructor = v3170; -v3170.prototype = v3171; -v3169.runTo = v3170; -var v3172; -v3172 = function addState(name, acceptState, failState, fn) { if (typeof acceptState === \\"function\\") { - fn = acceptState; - acceptState = null; - failState = null; -} -else if (typeof failState === \\"function\\") { - fn = failState; - failState = null; -} if (!this.currentState) - this.currentState = name; this.states[name] = { accept: acceptState, fail: failState, fn: fn }; return this; }; -const v3173 = {}; -v3173.constructor = v3172; -v3172.prototype = v3173; -v3169.addState = v3172; -v3168.prototype = v3169; -var v3167 = v3168; -const v3174 = {}; -const v3175 = {}; -v3175.accept = \\"build\\"; -v3175.fail = \\"error\\"; -var v3176; -var v3178; -const v3180 = {}; -v3180.success = 1; -v3180.error = 1; -v3180.complete = 1; -var v3179 = v3180; -v3178 = function isTerminalState(machine) { return v113.hasOwnProperty.call(v3179, machine._asm.currentState); }; -const v3181 = {}; -v3181.constructor = v3178; -v3178.prototype = v3181; -var v3177 = v3178; -var v3182 = v2665; -var v3183 = v2665; -v3176 = function (_, done) { var self = this; self._haltHandlersOnError = false; self.emit(self._asm.currentState, function (err) { if (err) { - if (v3177(self)) { - if (v3182 && self.domain instanceof v3183.Domain) { - err.domainEmitter = self; - err.domain = self.domain; - err.domainThrown = false; - self.domain.emit(\\"error\\", err); - } - else { - throw err; - } - } - else { - self.response.error = err; - done(err); - } -} -else { - done(self.response.error); -} }); }; -const v3184 = {}; -v3184.constructor = v3176; -v3176.prototype = v3184; -v3175.fn = v3176; -v3174.validate = v3175; -const v3185 = {}; -v3185.accept = \\"afterBuild\\"; -v3185.fail = \\"restart\\"; -v3185.fn = v3176; -v3174.build = v3185; -const v3186 = {}; -v3186.accept = \\"sign\\"; -v3186.fail = \\"restart\\"; -v3186.fn = v3176; -v3174.afterBuild = v3186; -const v3187 = {}; -v3187.accept = \\"send\\"; -v3187.fail = \\"retry\\"; -v3187.fn = v3176; -v3174.sign = v3187; -const v3188 = {}; -v3188.accept = \\"afterRetry\\"; -v3188.fail = \\"afterRetry\\"; -v3188.fn = v3176; -v3174.retry = v3188; -const v3189 = {}; -v3189.accept = \\"sign\\"; -v3189.fail = \\"error\\"; -v3189.fn = v3176; -v3174.afterRetry = v3189; -const v3190 = {}; -v3190.accept = \\"validateResponse\\"; -v3190.fail = \\"retry\\"; -v3190.fn = v3176; -v3174.send = v3190; -const v3191 = {}; -v3191.accept = \\"extractData\\"; -v3191.fail = \\"extractError\\"; -v3191.fn = v3176; -v3174.validateResponse = v3191; -const v3192 = {}; -v3192.accept = \\"extractData\\"; -v3192.fail = \\"retry\\"; -v3192.fn = v3176; -v3174.extractError = v3192; -const v3193 = {}; -v3193.accept = \\"success\\"; -v3193.fail = \\"retry\\"; -v3193.fn = v3176; -v3174.extractData = v3193; -const v3194 = {}; -v3194.accept = \\"build\\"; -v3194.fail = \\"error\\"; -v3194.fn = v3176; -v3174.restart = v3194; -const v3195 = {}; -v3195.accept = \\"complete\\"; -v3195.fail = \\"complete\\"; -v3195.fn = v3176; -v3174.success = v3195; -const v3196 = {}; -v3196.accept = \\"complete\\"; -v3196.fail = \\"complete\\"; -v3196.fn = v3176; -v3174.error = v3196; -const v3197 = {}; -v3197.accept = null; -v3197.fail = null; -v3197.fn = v3176; -v3174.complete = v3197; -var v3198 = v2; -v3163 = function Request(service, operation, params) { var endpoint = service.endpoint; var region = service.config.region; var customUserAgent = service.config.customUserAgent; if (service.signingRegion) { - region = service.signingRegion; -} -else if (service.isGlobalEndpoint) { - region = \\"us-east-1\\"; -} this.domain = v3164 && null; this.service = service; this.operation = operation; this.params = params || {}; this.httpRequest = new v3165.HttpRequest(endpoint, region); this.httpRequest.appendToUserAgent(customUserAgent); this.startTime = service.getSkewCorrectedDate(); this.response = new v3166.Response(this); this._asm = new v3167(v3174, \\"validate\\"); this._haltHandlersOnError = false; v3198.SequentialExecutor.call(this); this.emit = this.emitEvent; }; -const v3199 = {}; -v3199.constructor = v3163; -var v3200; -v3200 = function send(callback) { if (callback) { - this.httpRequest.appendToUserAgent(\\"callback\\"); - this.on(\\"complete\\", function (resp) { callback.call(resp, resp.error, resp.data); }); -} this.runTo(); return this.response; }; -const v3201 = {}; -v3201.constructor = v3200; -v3200.prototype = v3201; -v3199.send = v3200; -var v3202; -v3202 = function build(callback) { return this.runTo(\\"send\\", callback); }; -const v3203 = {}; -v3203.constructor = v3202; -v3202.prototype = v3203; -v3199.build = v3202; -var v3204; -v3204 = function runTo(state, done) { this._asm.runTo(state, done, this); return this; }; -const v3205 = {}; -v3205.constructor = v3204; -v3204.prototype = v3205; -v3199.runTo = v3204; -var v3206; -var v3207 = v40; -v3206 = function abort() { this.removeAllListeners(\\"validateResponse\\"); this.removeAllListeners(\\"extractError\\"); this.on(\\"validateResponse\\", function addAbortedError(resp) { resp.error = v3.error(new v3207(\\"Request aborted by user\\"), { code: \\"RequestAbortedError\\", retryable: false }); }); if (this.httpRequest.stream && !this.httpRequest.stream.didCallback) { - this.httpRequest.stream.abort(); - if (this.httpRequest._abortCallback) { - this.httpRequest._abortCallback(); - } - else { - this.removeAllListeners(\\"send\\"); - } -} return this; }; -const v3208 = {}; -v3208.constructor = v3206; -v3206.prototype = v3208; -v3199.abort = v3206; -var v3209; -v3209 = function eachPage(callback) { callback = v65.makeAsync(callback, 3); function wrappedCallback(response) { callback.call(response, response.error, response.data, function (result) { if (result === false) - return; if (response.hasNextPage()) { - response.nextPage().on(\\"complete\\", wrappedCallback).send(); -} -else { - callback.call(response, null, null, v65.noop); -} }); } this.on(\\"complete\\", wrappedCallback).send(); }; -const v3210 = {}; -v3210.constructor = v3209; -v3209.prototype = v3210; -v3199.eachPage = v3209; -var v3211; -var v3212 = v33; -const v3214 = Object.create(v646); -var v3215; -var v3217; -v3217 = function Lexer() { }; -const v3218 = {}; -var v3219; -var v3221; -v3221 = function isAlpha(ch) { return (ch >= \\"a\\" && ch <= \\"z\\") || (ch >= \\"A\\" && ch <= \\"Z\\") || ch === \\"_\\"; }; -const v3222 = {}; -v3222.constructor = v3221; -v3221.prototype = v3222; -var v3220 = v3221; -var v3223 = \\"UnquotedIdentifier\\"; -const v3225 = {}; -v3225[\\".\\"] = \\"Dot\\"; -v3225[\\"*\\"] = \\"Star\\"; -v3225[\\",\\"] = \\"Comma\\"; -v3225[\\":\\"] = \\"Colon\\"; -v3225[\\"{\\"] = \\"Lbrace\\"; -v3225[\\"}\\"] = \\"Rbrace\\"; -v3225[\\"]\\"] = \\"Rbracket\\"; -v3225[\\"(\\"] = \\"Lparen\\"; -v3225[\\")\\"] = \\"Rparen\\"; -v3225[\\"@\\"] = \\"Current\\"; -var v3224 = v3225; -var v3226 = v3225; -var v3228; -v3228 = function isNum(ch) { return (ch >= \\"0\\" && ch <= \\"9\\") || ch === \\"-\\"; }; -const v3229 = {}; -v3229.constructor = v3228; -v3228.prototype = v3229; -var v3227 = v3228; -var v3230 = \\"QuotedIdentifier\\"; -var v3231 = \\"Literal\\"; -var v3232 = \\"Literal\\"; -const v3234 = {}; -v3234[\\"<\\"] = true; -v3234[\\">\\"] = true; -v3234[\\"=\\"] = true; -v3234[\\"!\\"] = true; -var v3233 = v3234; -const v3236 = {}; -v3236[\\" \\"] = true; -v3236[\\"\\\\t\\"] = true; -v3236[\\"\\\\n\\"] = true; -var v3235 = v3236; -var v3237 = \\"And\\"; -var v3238 = \\"Expref\\"; -var v3239 = \\"Or\\"; -var v3240 = \\"Pipe\\"; -var v3241 = v40; -v3219 = function (stream) { var tokens = []; this._current = 0; var start; var identifier; var token; while (this._current < stream.length) { - if (v3220(stream[this._current])) { - start = this._current; - identifier = this._consumeUnquotedIdentifier(stream); - tokens.push({ type: v3223, value: identifier, start: start }); - } - else if (v3224[stream[this._current]] !== undefined) { - tokens.push({ type: v3226[stream[this._current]], value: stream[this._current], start: this._current }); - this._current++; - } - else if (v3227(stream[this._current])) { - token = this._consumeNumber(stream); - tokens.push(token); - } - else if (stream[this._current] === \\"[\\") { - token = this._consumeLBracket(stream); - tokens.push(token); - } - else if (stream[this._current] === \\"\\\\\\"\\") { - start = this._current; - identifier = this._consumeQuotedIdentifier(stream); - tokens.push({ type: v3230, value: identifier, start: start }); - } - else if (stream[this._current] === \\"'\\") { - start = this._current; - identifier = this._consumeRawStringLiteral(stream); - tokens.push({ type: v3231, value: identifier, start: start }); - } - else if (stream[this._current] === \\"\`\\") { - start = this._current; - var literal = this._consumeLiteral(stream); - tokens.push({ type: v3232, value: literal, start: start }); - } - else if (v3233[stream[this._current]] !== undefined) { - tokens.push(this._consumeOperator(stream)); - } - else if (v3235[stream[this._current]] !== undefined) { - this._current++; - } - else if (stream[this._current] === \\"&\\") { - start = this._current; - this._current++; - if (stream[this._current] === \\"&\\") { - this._current++; - tokens.push({ type: v3237, value: \\"&&\\", start: start }); - } - else { - tokens.push({ type: v3238, value: \\"&\\", start: start }); - } - } - else if (stream[this._current] === \\"|\\") { - start = this._current; - this._current++; - if (stream[this._current] === \\"|\\") { - this._current++; - tokens.push({ type: v3239, value: \\"||\\", start: start }); - } - else { - tokens.push({ type: v3240, value: \\"|\\", start: start }); - } - } - else { - var error = new v3241(\\"Unknown character:\\" + stream[this._current]); - error.name = \\"LexerError\\"; - throw error; - } -} return tokens; }; -const v3242 = {}; -v3242.constructor = v3219; -v3219.prototype = v3242; -v3218.tokenize = v3219; -var v3243; -var v3245; -v3245 = function isAlphaNum(ch) { return (ch >= \\"a\\" && ch <= \\"z\\") || (ch >= \\"A\\" && ch <= \\"Z\\") || (ch >= \\"0\\" && ch <= \\"9\\") || ch === \\"_\\"; }; -const v3246 = {}; -v3246.constructor = v3245; -v3245.prototype = v3246; -var v3244 = v3245; -v3243 = function (stream) { var start = this._current; this._current++; while (this._current < stream.length && v3244(stream[this._current])) { - this._current++; -} return stream.slice(start, this._current); }; -const v3247 = {}; -v3247.constructor = v3243; -v3243.prototype = v3247; -v3218._consumeUnquotedIdentifier = v3243; -var v3248; -var v3249 = v163; -v3248 = function (stream) { var start = this._current; this._current++; var maxLength = stream.length; while (stream[this._current] !== \\"\\\\\\"\\" && this._current < maxLength) { - var current = this._current; - if (stream[current] === \\"\\\\\\\\\\" && (stream[current + 1] === \\"\\\\\\\\\\" || stream[current + 1] === \\"\\\\\\"\\")) { - current += 2; - } - else { - current++; - } - this._current = current; -} this._current++; return v3249.parse(stream.slice(start, this._current)); }; -const v3250 = {}; -v3250.constructor = v3248; -v3248.prototype = v3250; -v3218._consumeQuotedIdentifier = v3248; -var v3251; -v3251 = function (stream) { var start = this._current; this._current++; var maxLength = stream.length; while (stream[this._current] !== \\"'\\" && this._current < maxLength) { - var current = this._current; - if (stream[current] === \\"\\\\\\\\\\" && (stream[current + 1] === \\"\\\\\\\\\\" || stream[current + 1] === \\"'\\")) { - current += 2; - } - else { - current++; - } - this._current = current; -} this._current++; var literal = stream.slice(start + 1, this._current - 1); return literal.replace(\\"\\\\\\\\'\\", \\"'\\"); }; -const v3252 = {}; -v3252.constructor = v3251; -v3251.prototype = v3252; -v3218._consumeRawStringLiteral = v3251; -var v3253; -var v3254 = v3228; -var v3255 = v117; -var v3256 = \\"Number\\"; -v3253 = function (stream) { var start = this._current; this._current++; var maxLength = stream.length; while (v3254(stream[this._current]) && this._current < maxLength) { - this._current++; -} var value = v3255(stream.slice(start, this._current)); return { type: v3256, value: value, start: start }; }; -const v3257 = {}; -v3257.constructor = v3253; -v3253.prototype = v3257; -v3218._consumeNumber = v3253; -var v3258; -var v3259 = \\"Filter\\"; -var v3260 = \\"Flatten\\"; -var v3261 = \\"Lbracket\\"; -v3258 = function (stream) { var start = this._current; this._current++; if (stream[this._current] === \\"?\\") { - this._current++; - return { type: v3259, value: \\"[?\\", start: start }; -} -else if (stream[this._current] === \\"]\\") { - this._current++; - return { type: v3260, value: \\"[]\\", start: start }; -} -else { - return { type: v3261, value: \\"[\\", start: start }; -} }; -const v3262 = {}; -v3262.constructor = v3258; -v3258.prototype = v3262; -v3218._consumeLBracket = v3258; -var v3263; -var v3264 = \\"NE\\"; -var v3265 = \\"Not\\"; -var v3266 = \\"LTE\\"; -var v3267 = \\"LT\\"; -var v3268 = \\"GTE\\"; -var v3269 = \\"GT\\"; -var v3270 = \\"EQ\\"; -v3263 = function (stream) { var start = this._current; var startingChar = stream[start]; this._current++; if (startingChar === \\"!\\") { - if (stream[this._current] === \\"=\\") { - this._current++; - return { type: v3264, value: \\"!=\\", start: start }; - } - else { - return { type: v3265, value: \\"!\\", start: start }; - } -} -else if (startingChar === \\"<\\") { - if (stream[this._current] === \\"=\\") { - this._current++; - return { type: v3266, value: \\"<=\\", start: start }; - } - else { - return { type: v3267, value: \\"<\\", start: start }; - } -} -else if (startingChar === \\">\\") { - if (stream[this._current] === \\"=\\") { - this._current++; - return { type: v3268, value: \\">=\\", start: start }; - } - else { - return { type: v3269, value: \\">\\", start: start }; - } -} -else if (startingChar === \\"=\\") { - if (stream[this._current] === \\"=\\") { - this._current++; - return { type: v3270, value: \\"==\\", start: start }; - } -} }; -const v3271 = {}; -v3271.constructor = v3263; -v3263.prototype = v3271; -v3218._consumeOperator = v3263; -var v3272; -var v3274; -v3274 = function (str) { return str.trimLeft(); }; -const v3275 = {}; -v3275.constructor = v3274; -v3274.prototype = v3275; -var v3273 = v3274; -var v3276 = v163; -v3272 = function (stream) { this._current++; var start = this._current; var maxLength = stream.length; var literal; while (stream[this._current] !== \\"\`\\" && this._current < maxLength) { - var current = this._current; - if (stream[current] === \\"\\\\\\\\\\" && (stream[current + 1] === \\"\\\\\\\\\\" || stream[current + 1] === \\"\`\\")) { - current += 2; - } - else { - current++; - } - this._current = current; -} var literalString = v3273(stream.slice(start, this._current)); literalString = literalString.replace(\\"\\\\\\\\\`\\", \\"\`\\"); if (this._looksLikeJSON(literalString)) { - literal = v3276.parse(literalString); -} -else { - literal = v3276.parse(\\"\\\\\\"\\" + literalString + \\"\\\\\\"\\"); -} this._current++; return literal; }; -const v3277 = {}; -v3277.constructor = v3272; -v3272.prototype = v3277; -v3218._consumeLiteral = v3272; -var v3278; -v3278 = function (literalString) { var startingChars = \\"[{\\\\\\"\\"; var jsonLiterals = [\\"true\\", \\"false\\", \\"null\\"]; var numberLooking = \\"-0123456789\\"; if (literalString === \\"\\") { - return false; -} -else if (startingChars.indexOf(literalString[0]) >= 0) { - return true; -} -else if (jsonLiterals.indexOf(literalString) >= 0) { - return true; -} -else if (numberLooking.indexOf(literalString[0]) >= 0) { - try { - v3276.parse(literalString); - return true; - } - catch (ex) { - return false; - } -} -else { - return false; -} }; -const v3279 = {}; -v3279.constructor = v3278; -v3278.prototype = v3279; -v3218._looksLikeJSON = v3278; -v3217.prototype = v3218; -var v3216 = v3217; -v3215 = function tokenize(stream) { var lexer = new v3216(); return lexer.tokenize(stream); }; -const v3280 = {}; -v3280.constructor = v3215; -v3215.prototype = v3280; -v3214.tokenize = v3215; -var v3281; -var v3283; -v3283 = function Parser() { }; -const v3284 = {}; -var v3285; -var v3286 = \\"EOF\\"; -var v3287 = v40; -v3285 = function (expression) { this._loadTokens(expression); this.index = 0; var ast = this.expression(0); if (this._lookahead(0) !== v3286) { - var t = this._lookaheadToken(0); - var error = new v3287(\\"Unexpected token type: \\" + t.type + \\", value: \\" + t.value); - error.name = \\"ParserError\\"; - throw error; -} return ast; }; -const v3288 = {}; -v3288.constructor = v3285; -v3285.prototype = v3288; -v3284.parse = v3285; -var v3289; -var v3290 = v3217; -var v3291 = \\"EOF\\"; -v3289 = function (expression) { var lexer = new v3290(); var tokens = lexer.tokenize(expression); tokens.push({ type: v3291, value: \\"\\", start: expression.length }); this.tokens = tokens; }; -const v3292 = {}; -v3292.constructor = v3289; -v3289.prototype = v3292; -v3284._loadTokens = v3289; -var v3293; -const v3295 = {}; -v3295.EOF = 0; -v3295.UnquotedIdentifier = 0; -v3295.QuotedIdentifier = 0; -v3295.Rbracket = 0; -v3295.Rparen = 0; -v3295.Comma = 0; -v3295.Rbrace = 0; -v3295.Number = 0; -v3295.Current = 0; -v3295.Expref = 0; -v3295.Pipe = 1; -v3295.Or = 2; -v3295.And = 3; -v3295.EQ = 5; -v3295.GT = 5; -v3295.LT = 5; -v3295.GTE = 5; -v3295.LTE = 5; -v3295.NE = 5; -v3295.Flatten = 9; -v3295.Star = 20; -v3295.Filter = 21; -v3295.Dot = 40; -v3295.Not = 45; -v3295.Lbrace = 50; -v3295.Lbracket = 55; -v3295.Lparen = 60; -var v3294 = v3295; -v3293 = function (rbp) { var leftToken = this._lookaheadToken(0); this._advance(); var left = this.nud(leftToken); var currentToken = this._lookahead(0); while (rbp < v3294[currentToken]) { - this._advance(); - left = this.led(currentToken, left); - currentToken = this._lookahead(0); -} return left; }; -const v3296 = {}; -v3296.constructor = v3293; -v3293.prototype = v3296; -v3284.expression = v3293; -var v3297; -v3297 = function (number) { return this.tokens[this.index + number].type; }; -const v3298 = {}; -v3298.constructor = v3297; -v3297.prototype = v3298; -v3284._lookahead = v3297; -var v3299; -v3299 = function (number) { return this.tokens[this.index + number]; }; -const v3300 = {}; -v3300.constructor = v3299; -v3299.prototype = v3300; -v3284._lookaheadToken = v3299; -var v3301; -v3301 = function () { this.index++; }; -const v3302 = {}; -v3302.constructor = v3301; -v3301.prototype = v3302; -v3284._advance = v3301; -var v3303; -var v3304 = \\"UnquotedIdentifier\\"; -var v3305 = \\"Lparen\\"; -var v3306 = v40; -var v3307 = undefined; -var v3308 = \\"Not\\"; -var v3309 = \\"Star\\"; -var v3310 = \\"Rbracket\\"; -var v3311 = \\"Filter\\"; -var v3312 = \\"Lbrace\\"; -var v3313 = \\"Flatten\\"; -var v3314 = \\"Flatten\\"; -var v3315 = \\"Lbracket\\"; -var v3316 = \\"Number\\"; -var v3317 = \\"Colon\\"; -var v3318 = \\"Current\\"; -var v3319 = \\"Current\\"; -var v3320 = \\"Lparen\\"; -var v3321 = \\"Rparen\\"; -var v3322 = \\"Current\\"; -var v3323 = undefined; -v3303 = function (token) { var left; var right; var expression; switch (token.type) { - case v3232: return { type: \\"Literal\\", value: token.value }; - case v3304: return { type: \\"Field\\", name: token.value }; - case v3230: - var node = { type: \\"Field\\", name: token.value }; - if (this._lookahead(0) === v3305) { - throw new v3306(\\"Quoted identifier not allowed for function names.\\"); - } - return v3307; - case v3308: - right = this.expression(45); - return { type: \\"NotExpression\\", children: [right] }; - case v3309: - left = { type: \\"Identity\\" }; - right = null; - if (this._lookahead(0) === v3310) { - right = { type: \\"Identity\\" }; - } - else { - right = this._parseProjectionRHS(20); - } - return { type: \\"ValueProjection\\", children: [left, right] }; - case v3311: return this.led(token.type, { type: \\"Identity\\" }); - case v3312: return this._parseMultiselectHash(); - case v3313: - left = { type: v3314, children: [{ type: \\"Identity\\" }] }; - right = this._parseProjectionRHS(9); - return { type: \\"Projection\\", children: [left, right] }; - case v3315: - if (this._lookahead(0) === v3316 || this._lookahead(0) === v3317) { - right = this._parseIndexExpression(); - return this._projectIfSlice({ type: \\"Identity\\" }, right); - } - else if (this._lookahead(0) === v3309 && this._lookahead(1) === v3310) { - this._advance(); - this._advance(); - right = this._parseProjectionRHS(20); - return { type: \\"Projection\\", children: [{ type: \\"Identity\\" }, right] }; - } - return this._parseMultiselectList(); - case v3318: return { type: v3319 }; - case v3238: - expression = this.expression(0); - return { type: \\"ExpressionReference\\", children: [expression] }; - case v3320: - var args = []; - while (this._lookahead(0) !== v3321) { - if (this._lookahead(0) === v3318) { - expression = { type: v3322 }; - this._advance(); - } - else { - expression = this.expression(0); - } - undefined(expression); - } - this._match(v3321); - return v3323[0]; - default: this._errorToken(token); -} }; -const v3324 = {}; -v3324.constructor = v3303; -v3303.prototype = v3324; -v3284.nud = v3303; -var v3325; -var v3326 = \\"Dot\\"; -var v3327 = undefined; -var v3328 = \\"Pipe\\"; -var v3329 = \\"Pipe\\"; -var v3330 = \\"And\\"; -var v3331 = \\"Rparen\\"; -var v3332 = \\"Comma\\"; -var v3333 = \\"Comma\\"; -var v3334 = undefined; -var v3335 = undefined; -var v3336 = undefined; -var v3337 = undefined; -var v3338 = \\"Rbracket\\"; -var v3339 = undefined; -var v3340 = undefined; -var v3341 = undefined; -var v3342 = \\"EQ\\"; -var v3343 = \\"NE\\"; -var v3344 = \\"LT\\"; -var v3345 = \\"LTE\\"; -var v3346 = \\"Number\\"; -var v3347 = \\"Colon\\"; -var v3348 = \\"Star\\"; -var v3349 = \\"Rbracket\\"; -v3325 = function (tokenName, left) { var right; switch (tokenName) { - case v3326: - var rbp = 40; - if (this._lookahead(0) !== v3309) { - right = this._parseDotRHS(v3327); - return { type: \\"Subexpression\\", children: [left, right] }; - } - this._advance(); - right = this._parseProjectionRHS(v3327); - return { type: \\"ValueProjection\\", children: [left, right] }; - case v3328: - right = this.expression(1); - return { type: v3329, children: [left, right] }; - case v3239: - right = this.expression(2); - return { type: \\"OrExpression\\", children: [left, right] }; - case v3330: - right = this.expression(3); - return { type: \\"AndExpression\\", children: [left, right] }; - case v3305: - var name = left.name; - var args = []; - var expression, node; - while (this._lookahead(0) !== v3331) { - if (this._lookahead(0) === v3318) { - expression = { type: v3319 }; - this._advance(); - } - else { - expression = this.expression(0); - } - if (this._lookahead(0) === v3332) { - this._match(v3333); - } - undefined(v3334); - } - this._match(v3331); - node = { type: \\"Function\\", name: v3335, children: v3336 }; - return v3337; - case v3311: - var condition = this.expression(0); - this._match(v3338); - if (this._lookahead(0) === v3314) { - right = { type: \\"Identity\\" }; - } - else { - right = this._parseProjectionRHS(21); - } - return { type: \\"FilterProjection\\", children: [left, right, v3339] }; - case v3314: - var leftNode = { type: v3314, children: [left] }; - var rightNode = this._parseProjectionRHS(9); - return { type: \\"Projection\\", children: [v3340, v3341] }; - case v3342: - case v3343: - case v3269: - case v3268: - case v3344: - case v3345: return this._parseComparator(left, tokenName); - case v3315: - var token = this._lookaheadToken(0); - if (undefined === v3346 || undefined === v3347) { - right = this._parseIndexExpression(); - return this._projectIfSlice(left, right); - } - this._match(v3348); - this._match(v3349); - right = this._parseProjectionRHS(20); - return { type: \\"Projection\\", children: [left, right] }; - default: this._errorToken(this._lookaheadToken(0)); -} }; -const v3350 = {}; -v3350.constructor = v3325; -v3325.prototype = v3350; -v3284.led = v3325; -var v3351; -v3351 = function (tokenType) { if (this._lookahead(0) === tokenType) { - this._advance(); -} -else { - var t = this._lookaheadToken(0); - var error = new v3306(\\"Expected \\" + tokenType + \\", got: \\" + t.type); - error.name = \\"ParserError\\"; - throw error; -} }; -const v3352 = {}; -v3352.constructor = v3351; -v3351.prototype = v3352; -v3284._match = v3351; -var v3353; -v3353 = function (token) { var error = new v3306(\\"Invalid token (\\" + token.type + \\"): \\\\\\"\\" + token.value + \\"\\\\\\"\\"); error.name = \\"ParserError\\"; throw error; }; -const v3354 = {}; -v3354.constructor = v3353; -v3353.prototype = v3354; -v3284._errorToken = v3353; -var v3355; -v3355 = function () { if (this._lookahead(0) === v3347 || this._lookahead(1) === v3347) { - return this._parseSliceExpression(); -} -else { - var node = { type: \\"Index\\", value: this._lookaheadToken(0).value }; - this._advance(); - this._match(v3349); - return node; -} }; -const v3356 = {}; -v3356.constructor = v3355; -v3355.prototype = v3356; -v3284._parseIndexExpression = v3355; -var v3357; -v3357 = function (left, right) { var indexExpr = { type: \\"IndexExpression\\", children: [left, right] }; if (right.type === \\"Slice\\") { - return { type: \\"Projection\\", children: [indexExpr, this._parseProjectionRHS(20)] }; -} -else { - return indexExpr; -} }; -const v3358 = {}; -v3358.constructor = v3357; -v3357.prototype = v3358; -v3284._projectIfSlice = v3357; -var v3359; -v3359 = function () { var parts = [null, null, null]; var index = 0; var currentToken = this._lookahead(0); while (currentToken !== v3338 && index < 3) { - if (currentToken === v3347) { - index++; - this._advance(); - } - else if (currentToken === v3346) { - parts[index] = this._lookaheadToken(0).value; - this._advance(); - } - else { - var t = this._lookahead(0); - var error = new v3287(\\"Syntax error, unexpected token: \\" + t.value + \\"(\\" + t.type + \\")\\"); - error.name = \\"Parsererror\\"; - throw error; - } - currentToken = this._lookahead(0); -} this._match(v3338); return { type: \\"Slice\\", children: parts }; }; -const v3360 = {}; -v3360.constructor = v3359; -v3359.prototype = v3360; -v3284._parseSliceExpression = v3359; -var v3361; -var v3362 = v3295; -v3361 = function (left, comparator) { var right = this.expression(v3362[comparator]); return { type: \\"Comparator\\", name: comparator, children: [left, right] }; }; -const v3363 = {}; -v3363.constructor = v3361; -v3361.prototype = v3363; -v3284._parseComparator = v3361; -var v3364; -var v3365 = \\"UnquotedIdentifier\\"; -var v3366 = \\"Lbracket\\"; -v3364 = function (rbp) { var lookahead = this._lookahead(0); var exprTokens = [v3365, v3230, v3348]; if (exprTokens.indexOf(lookahead) >= 0) { - return this.expression(rbp); -} -else if (lookahead === v3366) { - this._match(v3315); - return this._parseMultiselectList(); -} -else if (lookahead === v3312) { - this._match(v3312); - return this._parseMultiselectHash(); -} }; -const v3367 = {}; -v3367.constructor = v3364; -v3364.prototype = v3367; -v3284._parseDotRHS = v3364; -var v3368; -v3368 = function (rbp) { var right; if (v3362[this._lookahead(0)] < 10) { - right = { type: \\"Identity\\" }; -} -else if (this._lookahead(0) === v3315) { - right = this.expression(rbp); -} -else if (this._lookahead(0) === v3311) { - right = this.expression(rbp); -} -else if (this._lookahead(0) === v3326) { - this._match(v3326); - right = this._parseDotRHS(rbp); -} -else { - var t = this._lookaheadToken(0); - var error = new v3287(\\"Sytanx error, unexpected token: \\" + t.value + \\"(\\" + t.type + \\")\\"); - error.name = \\"ParserError\\"; - throw error; -} return right; }; -const v3369 = {}; -v3369.constructor = v3368; -v3368.prototype = v3369; -v3284._parseProjectionRHS = v3368; -var v3370; -v3370 = function () { var expressions = []; while (this._lookahead(0) !== v3338) { - var expression = this.expression(0); - expressions.push(expression); - if (this._lookahead(0) === v3332) { - this._match(v3333); - if (this._lookahead(0) === v3310) { - throw new v3306(\\"Unexpected token Rbracket\\"); - } - } -} this._match(v3338); return { type: \\"MultiSelectList\\", children: expressions }; }; -const v3371 = {}; -v3371.constructor = v3370; -v3370.prototype = v3371; -v3284._parseMultiselectList = v3370; -var v3372; -var v3373 = \\"QuotedIdentifier\\"; -var v3374 = \\"Rbrace\\"; -v3372 = function () { var pairs = []; var identifierTypes = [v3365, v3373]; var keyToken, keyName, value, node; for (;;) { - keyToken = this._lookaheadToken(0); - if (identifierTypes.indexOf(keyToken.type) < 0) { - throw new v3287(\\"Expecting an identifier token, got: \\" + keyToken.type); - } - keyName = keyToken.value; - this._advance(); - this._match(v3317); - value = this.expression(0); - node = { type: \\"KeyValuePair\\", name: keyName, value: value }; - pairs.push(node); - if (this._lookahead(0) === v3333) { - this._match(v3333); - } - else if (this._lookahead(0) === v3374) { - this._match(v3374); - break; - } -} return { type: \\"MultiSelectHash\\", children: pairs }; }; -const v3375 = {}; -v3375.constructor = v3372; -v3372.prototype = v3375; -v3284._parseMultiselectHash = v3372; -v3283.prototype = v3284; -var v3282 = v3283; -v3281 = function compile(stream) { var parser = new v3282(); var ast = parser.parse(stream); return ast; }; -const v3376 = {}; -v3376.constructor = v3281; -v3281.prototype = v3376; -v3214.compile = v3281; -var v3377; -var v3378 = v3283; -var v3380; -var v3381 = 0; -var v3382 = 8; -var v3383 = 0; -var v3384 = 2; -var v3385 = 3; -var v3386 = 1; -var v3387 = 2; -var v3388 = 2; -var v3389 = 3; -var v3390 = 4; -var v3391 = 6; -var v3392 = 3; -var v3393 = 8; -var v3394 = 9; -var v3395 = 4; -var v3396 = 3; -var v3397 = 6; -var v3398 = 9; -var v3399 = 6; -var v3400 = 1; -var v3401 = 4; -var v3402 = 4; -var v3403 = 8; -v3380 = function Runtime(interpreter) { this._interpreter = interpreter; this.functionTable = { abs: { _func: this._functionAbs, _signature: [{ types: [v3381] }] }, avg: { _func: this._functionAvg, _signature: [{ types: [v3382] }] }, ceil: { _func: this._functionCeil, _signature: [{ types: [v3383] }] }, contains: { _func: this._functionContains, _signature: [{ types: [v3384, v3385] }, { types: [v3386] }] }, \\"ends_with\\": { _func: this._functionEndsWith, _signature: [{ types: [v3387] }, { types: [v3387] }] }, floor: { _func: this._functionFloor, _signature: [{ types: [v3381] }] }, length: { _func: this._functionLength, _signature: [{ types: [v3388, v3389, v3390] }] }, map: { _func: this._functionMap, _signature: [{ types: [v3391] }, { types: [v3392] }] }, max: { _func: this._functionMax, _signature: [{ types: [v3393, v3394] }] }, \\"merge\\": { _func: this._functionMerge, _signature: [{ types: [v3395], variadic: true }] }, \\"max_by\\": { _func: this._functionMaxBy, _signature: [{ types: [v3396] }, { types: [v3397] }] }, sum: { _func: this._functionSum, _signature: [{ types: [v3393] }] }, \\"starts_with\\": { _func: this._functionStartsWith, _signature: [{ types: [v3384] }, { types: [v3384] }] }, min: { _func: this._functionMin, _signature: [{ types: [v3393, v3398] }] }, \\"min_by\\": { _func: this._functionMinBy, _signature: [{ types: [v3385] }, { types: [v3399] }] }, type: { _func: this._functionType, _signature: [{ types: [v3400] }] }, keys: { _func: this._functionKeys, _signature: [{ types: [v3401] }] }, values: { _func: this._functionValues, _signature: [{ types: [v3402] }] }, sort: { _func: this._functionSort, _signature: [{ types: [v3398, v3403] }] }, \\"sort_by\\": { _func: this._functionSortBy, _signature: [{ types: [v3385] }, { types: [v3391] }] }, join: { _func: this._functionJoin, _signature: [{ types: [v3384] }, { types: [v3394] }] }, reverse: { _func: this._functionReverse, _signature: [{ types: [v3388, v3385] }] }, \\"to_array\\": { _func: this._functionToArray, _signature: [{ types: [v3386] }] }, \\"to_string\\": { _func: this._functionToString, _signature: [{ types: [v3400] }] }, \\"to_number\\": { _func: this._functionToNumber, _signature: [{ types: [v3386] }] }, \\"not_null\\": { _func: this._functionNotNull, _signature: [{ types: [v3400], variadic: true }] } }; }; -const v3404 = {}; -var v3405; -v3405 = function (name, resolvedArgs) { var functionEntry = this.functionTable[name]; if (functionEntry === undefined) { - throw new v3287(\\"Unknown function: \\" + name + \\"()\\"); -} this._validateArgs(name, resolvedArgs, functionEntry._signature); return functionEntry._func.call(this, resolvedArgs); }; -const v3406 = {}; -v3406.constructor = v3405; -v3405.prototype = v3406; -v3404.callFunction = v3405; -var v3407; -const v3409 = {}; -v3409[\\"0\\"] = \\"number\\"; -v3409[\\"1\\"] = \\"any\\"; -v3409[\\"2\\"] = \\"string\\"; -v3409[\\"3\\"] = \\"array\\"; -v3409[\\"4\\"] = \\"object\\"; -v3409[\\"5\\"] = \\"boolean\\"; -v3409[\\"6\\"] = \\"expression\\"; -v3409[\\"7\\"] = \\"null\\"; -v3409[\\"8\\"] = \\"Array\\"; -v3409[\\"9\\"] = \\"Array\\"; -var v3408 = v3409; -v3407 = function (name, args, signature) { var pluralized; if (signature[signature.length - 1].variadic) { - if (args.length < signature.length) { - pluralized = signature.length === 1 ? \\" argument\\" : \\" arguments\\"; - throw new v3287(\\"ArgumentError: \\" + name + \\"() \\" + \\"takes at least\\" + signature.length + pluralized + \\" but received \\" + args.length); - } -} -else if (args.length !== signature.length) { - pluralized = signature.length === 1 ? \\" argument\\" : \\" arguments\\"; - throw new v3287(\\"ArgumentError: \\" + name + \\"() \\" + \\"takes \\" + signature.length + pluralized + \\" but received \\" + args.length); -} var currentSpec; var actualType; var typeMatched; for (var i = 0; i < signature.length; i++) { - typeMatched = false; - currentSpec = signature[i].types; - actualType = this._getTypeName(args[i]); - for (var j = 0; j < currentSpec.length; j++) { - if (this._typeMatches(actualType, currentSpec[j], args[i])) { - typeMatched = true; - break; - } - } - if (!typeMatched) { - var expected = currentSpec.map(function (typeIdentifier) { return v3408[typeIdentifier]; }).join(\\",\\"); - throw new v3287(\\"TypeError: \\" + name + \\"() \\" + \\"expected argument \\" + (i + 1) + \\" to be type \\" + expected + \\" but received type \\" + v3408[actualType] + \\" instead.\\"); - } -} }; -const v3410 = {}; -v3410.constructor = v3407; -v3407.prototype = v3410; -v3404._validateArgs = v3407; -var v3411; -var v3412 = 9; -var v3413 = 0; -var v3414 = 2; -v3411 = function (actual, expected, argValue) { if (expected === v3400) { - return true; -} if (expected === v3412 || expected === v3403 || expected === v3392) { - if (expected === v3392) { - return actual === v3392; - } - else if (actual === v3392) { - var subtype; - if (expected === v3403) { - subtype = v3413; - } - else if (expected === v3412) { - subtype = v3414; - } - for (var i = 0; i < argValue.length; i++) { - if (!this._typeMatches(this._getTypeName(argValue[i]), subtype, argValue[i])) { - return false; - } - } - return true; - } -} -else { - return actual === expected; -} }; -const v3415 = {}; -v3415.constructor = v3411; -v3411.prototype = v3415; -v3404._typeMatches = v3411; -var v3416; -var v3417 = 5; -var v3418 = 7; -var v3419 = \\"Expref\\"; -var v3420 = 6; -v3416 = function (obj) { switch (v113.toString.call(obj)) { - case \\"[object String]\\": return v3414; - case \\"[object Number]\\": return v3413; - case \\"[object Array]\\": return v3392; - case \\"[object Boolean]\\": return v3417; - case \\"[object Null]\\": return v3418; - case \\"[object Object]\\": if (obj.jmespathType === v3419) { - return v3420; - } - else { - return v3402; - } -} }; -const v3421 = {}; -v3421.constructor = v3416; -v3416.prototype = v3421; -v3404._getTypeName = v3416; -var v3422; -v3422 = function (resolvedArgs) { return resolvedArgs[0].lastIndexOf(resolvedArgs[1]) === 0; }; -const v3423 = {}; -v3423.constructor = v3422; -v3422.prototype = v3423; -v3404._functionStartsWith = v3422; -var v3424; -v3424 = function (resolvedArgs) { var searchStr = resolvedArgs[0]; var suffix = resolvedArgs[1]; return searchStr.indexOf(suffix, searchStr.length - suffix.length) !== -1; }; -const v3425 = {}; -v3425.constructor = v3424; -v3424.prototype = v3425; -v3404._functionEndsWith = v3424; -var v3426; -v3426 = function (resolvedArgs) { var typeName = this._getTypeName(resolvedArgs[0]); if (typeName === v3414) { - var originalStr = resolvedArgs[0]; - var reversedStr = \\"\\"; - for (var i = originalStr.length - 1; i >= 0; i--) { - reversedStr += originalStr[i]; - } - return reversedStr; -} -else { - var reversedArray = resolvedArgs[0].slice(0); - reversedArray.reverse(); - return reversedArray; -} }; -const v3427 = {}; -v3427.constructor = v3426; -v3426.prototype = v3427; -v3404._functionReverse = v3426; -var v3428; -var v3429 = v787; -v3428 = function (resolvedArgs) { return v3429.abs(resolvedArgs[0]); }; -const v3430 = {}; -v3430.constructor = v3428; -v3428.prototype = v3430; -v3404._functionAbs = v3428; -var v3431; -v3431 = function (resolvedArgs) { return v3429.ceil(resolvedArgs[0]); }; -const v3432 = {}; -v3432.constructor = v3431; -v3431.prototype = v3432; -v3404._functionCeil = v3431; -var v3433; -v3433 = function (resolvedArgs) { var sum = 0; var inputArray = resolvedArgs[0]; for (var i = 0; i < inputArray.length; i++) { - sum += inputArray[i]; -} return sum / inputArray.length; }; -const v3434 = {}; -v3434.constructor = v3433; -v3433.prototype = v3434; -v3404._functionAvg = v3433; -var v3435; -v3435 = function (resolvedArgs) { return resolvedArgs[0].indexOf(resolvedArgs[1]) >= 0; }; -const v3436 = {}; -v3436.constructor = v3435; -v3435.prototype = v3436; -v3404._functionContains = v3435; -var v3437; -v3437 = function (resolvedArgs) { return v3429.floor(resolvedArgs[0]); }; -const v3438 = {}; -v3438.constructor = v3437; -v3437.prototype = v3438; -v3404._functionFloor = v3437; -var v3439; -var v3441; -v3441 = function isObject(obj) { if (obj !== null) { - return v113.toString.call(obj) === \\"[object Object]\\"; -} -else { - return false; -} }; -const v3442 = {}; -v3442.constructor = v3441; -v3441.prototype = v3442; -var v3440 = v3441; -var v3443 = v31; -v3439 = function (resolvedArgs) { if (!v3440(resolvedArgs[0])) { - return resolvedArgs[0].length; -} -else { - return v3443.keys(resolvedArgs[0]).length; -} }; -const v3444 = {}; -v3444.constructor = v3439; -v3439.prototype = v3444; -v3404._functionLength = v3439; -var v3445; -v3445 = function (resolvedArgs) { var mapped = []; var interpreter = this._interpreter; var exprefNode = resolvedArgs[0]; var elements = resolvedArgs[1]; for (var i = 0; i < elements.length; i++) { - mapped.push(interpreter.visit(exprefNode, elements[i])); -} return mapped; }; -const v3446 = {}; -v3446.constructor = v3445; -v3445.prototype = v3446; -v3404._functionMap = v3445; -var v3447; -v3447 = function (resolvedArgs) { var merged = {}; for (var i = 0; i < resolvedArgs.length; i++) { - var current = resolvedArgs[i]; - for (var key in current) { - merged[key] = current[key]; - } -} return merged; }; -const v3448 = {}; -v3448.constructor = v3447; -v3447.prototype = v3448; -v3404._functionMerge = v3447; -var v3449; -v3449 = function (resolvedArgs) { if (resolvedArgs[0].length > 0) { - var typeName = this._getTypeName(resolvedArgs[0][0]); - if (typeName === v3413) { - return v3429.max.apply(v3429, resolvedArgs[0]); - } - else { - var elements = resolvedArgs[0]; - var maxElement = elements[0]; - for (var i = 1; i < elements.length; i++) { - if (maxElement.localeCompare(elements[i]) < 0) { - maxElement = elements[i]; - } - } - return maxElement; - } -} -else { - return null; -} }; -const v3450 = {}; -v3450.constructor = v3449; -v3449.prototype = v3450; -v3404._functionMax = v3449; -var v3451; -v3451 = function (resolvedArgs) { if (resolvedArgs[0].length > 0) { - var typeName = this._getTypeName(resolvedArgs[0][0]); - if (typeName === v3413) { - return v3429.min.apply(v3429, resolvedArgs[0]); - } - else { - var elements = resolvedArgs[0]; - var minElement = elements[0]; - for (var i = 1; i < elements.length; i++) { - if (elements[i].localeCompare(minElement) < 0) { - minElement = elements[i]; - } - } - return minElement; - } -} -else { - return null; -} }; -const v3452 = {}; -v3452.constructor = v3451; -v3451.prototype = v3452; -v3404._functionMin = v3451; -var v3453; -v3453 = function (resolvedArgs) { var sum = 0; var listToSum = resolvedArgs[0]; for (var i = 0; i < listToSum.length; i++) { - sum += listToSum[i]; -} return sum; }; -const v3454 = {}; -v3454.constructor = v3453; -v3453.prototype = v3454; -v3404._functionSum = v3453; -var v3455; -v3455 = function (resolvedArgs) { switch (this._getTypeName(resolvedArgs[0])) { - case v3413: return \\"number\\"; - case v3414: return \\"string\\"; - case v3392: return \\"array\\"; - case v3402: return \\"object\\"; - case v3417: return \\"boolean\\"; - case v3420: return \\"expref\\"; - case v3418: return \\"null\\"; -} }; -const v3456 = {}; -v3456.constructor = v3455; -v3455.prototype = v3456; -v3404._functionType = v3455; -var v3457; -v3457 = function (resolvedArgs) { return v3443.keys(resolvedArgs[0]); }; -const v3458 = {}; -v3458.constructor = v3457; -v3457.prototype = v3458; -v3404._functionKeys = v3457; -var v3459; -v3459 = function (resolvedArgs) { var obj = resolvedArgs[0]; var keys = v3443.keys(obj); var values = []; for (var i = 0; i < keys.length; i++) { - values.push(obj[keys[i]]); -} return values; }; -const v3460 = {}; -v3460.constructor = v3459; -v3459.prototype = v3460; -v3404._functionValues = v3459; -var v3461; -v3461 = function (resolvedArgs) { var joinChar = resolvedArgs[0]; var listJoin = resolvedArgs[1]; return listJoin.join(joinChar); }; -const v3462 = {}; -v3462.constructor = v3461; -v3461.prototype = v3462; -v3404._functionJoin = v3461; -var v3463; -v3463 = function (resolvedArgs) { if (this._getTypeName(resolvedArgs[0]) === v3392) { - return resolvedArgs[0]; -} -else { - return [resolvedArgs[0]]; -} }; -const v3464 = {}; -v3464.constructor = v3463; -v3463.prototype = v3464; -v3404._functionToArray = v3463; -var v3465; -var v3466 = v163; -v3465 = function (resolvedArgs) { if (this._getTypeName(resolvedArgs[0]) === v3414) { - return resolvedArgs[0]; -} -else { - return v3466.stringify(resolvedArgs[0]); -} }; -const v3467 = {}; -v3467.constructor = v3465; -v3465.prototype = v3467; -v3404._functionToString = v3465; -var v3468; -var v3469 = v1017; -v3468 = function (resolvedArgs) { var typeName = this._getTypeName(resolvedArgs[0]); var convertedValue; if (typeName === v3413) { - return resolvedArgs[0]; -} -else if (typeName === v3414) { - convertedValue = +resolvedArgs[0]; - if (!v3469(convertedValue)) { - return convertedValue; - } -} return null; }; -const v3470 = {}; -v3470.constructor = v3468; -v3468.prototype = v3470; -v3404._functionToNumber = v3468; -var v3471; -v3471 = function (resolvedArgs) { for (var i = 0; i < resolvedArgs.length; i++) { - if (this._getTypeName(resolvedArgs[i]) !== v3418) { - return resolvedArgs[i]; - } -} return null; }; -const v3472 = {}; -v3472.constructor = v3471; -v3471.prototype = v3472; -v3404._functionNotNull = v3471; -var v3473; -v3473 = function (resolvedArgs) { var sortedArray = resolvedArgs[0].slice(0); sortedArray.sort(); return sortedArray; }; -const v3474 = {}; -v3474.constructor = v3473; -v3473.prototype = v3474; -v3404._functionSort = v3473; -var v3475; -v3475 = function (resolvedArgs) { var sortedArray = resolvedArgs[0].slice(0); if (sortedArray.length === 0) { - return sortedArray; -} var interpreter = this._interpreter; var exprefNode = resolvedArgs[1]; var requiredType = this._getTypeName(interpreter.visit(exprefNode, sortedArray[0])); if ([v3413, v3414].indexOf(requiredType) < 0) { - throw new v3287(\\"TypeError\\"); -} var that = this; var decorated = []; for (var i = 0; i < sortedArray.length; i++) { - decorated.push([i, sortedArray[i]]); -} decorated.sort(function (a, b) { var exprA = interpreter.visit(exprefNode, a[1]); var exprB = interpreter.visit(exprefNode, b[1]); if (that._getTypeName(exprA) !== requiredType) { - throw new v3287(\\"TypeError: expected \\" + requiredType + \\", received \\" + that._getTypeName(exprA)); -} -else if (that._getTypeName(exprB) !== requiredType) { - throw new v3287(\\"TypeError: expected \\" + requiredType + \\", received \\" + that._getTypeName(exprB)); -} if (exprA > exprB) { - return 1; -} -else if (exprA < exprB) { - return -1; -} -else { - return a[0] - b[0]; -} }); for (var j = 0; j < decorated.length; j++) { - sortedArray[j] = decorated[j][1]; -} return sortedArray; }; -const v3476 = {}; -v3476.constructor = v3475; -v3475.prototype = v3476; -v3404._functionSortBy = v3475; -var v3477; -var v3478 = Infinity; -v3477 = function (resolvedArgs) { var exprefNode = resolvedArgs[1]; var resolvedArray = resolvedArgs[0]; var keyFunction = this.createKeyFunction(exprefNode, [v3413, v3414]); var maxNumber = -v3478; var maxRecord; var current; for (var i = 0; i < resolvedArray.length; i++) { - current = keyFunction(resolvedArray[i]); - if (current > maxNumber) { - maxNumber = current; - maxRecord = resolvedArray[i]; - } -} return maxRecord; }; -const v3479 = {}; -v3479.constructor = v3477; -v3477.prototype = v3479; -v3404._functionMaxBy = v3477; -var v3480; -v3480 = function (resolvedArgs) { var exprefNode = resolvedArgs[1]; var resolvedArray = resolvedArgs[0]; var keyFunction = this.createKeyFunction(exprefNode, [v3413, v3414]); var minNumber = v3478; var minRecord; var current; for (var i = 0; i < resolvedArray.length; i++) { - current = keyFunction(resolvedArray[i]); - if (current < minNumber) { - minNumber = current; - minRecord = resolvedArray[i]; - } -} return minRecord; }; -const v3481 = {}; -v3481.constructor = v3480; -v3480.prototype = v3481; -v3404._functionMinBy = v3480; -var v3482; -v3482 = function (exprefNode, allowedTypes) { var that = this; var interpreter = this._interpreter; var keyFunc = function (x) { var current = interpreter.visit(exprefNode, x); if (allowedTypes.indexOf(that._getTypeName(current)) < 0) { - var msg = \\"TypeError: expected one of \\" + allowedTypes + \\", received \\" + that._getTypeName(current); - throw new v3287(msg); -} return current; }; return keyFunc; }; -const v3483 = {}; -v3483.constructor = v3482; -v3482.prototype = v3483; -v3404.createKeyFunction = v3482; -v3380.prototype = v3404; -var v3379 = v3380; -var v3485; -v3485 = function TreeInterpreter(runtime) { this.runtime = runtime; }; -const v3486 = {}; -var v3487; -v3487 = function (node, value) { return this.visit(node, value); }; -const v3488 = {}; -v3488.constructor = v3487; -v3487.prototype = v3488; -v3486.search = v3487; -var v3489; -var v3491; -v3491 = function isArray(obj) { if (obj !== null) { - return v113.toString.call(obj) === \\"[object Array]\\"; -} -else { - return false; -} }; -const v3492 = {}; -v3492.constructor = v3491; -v3491.prototype = v3492; -var v3490 = v3491; -var v3493 = undefined; -var v3494 = v3491; -var v3495 = undefined; -var v3496 = undefined; -var v3497 = undefined; -var v3498 = undefined; -var v3499 = undefined; -var v3500 = undefined; -var v3501 = undefined; -var v3503; -var v3504 = v31; -v3503 = function objValues(obj) { var keys = v3504.keys(obj); var values = []; for (var i = 0; i < keys.length; i++) { - values.push(obj[keys[i]]); -} return values; }; -const v3505 = {}; -v3505.constructor = v3503; -v3503.prototype = v3505; -var v3502 = v3503; -var v3506 = undefined; -var v3508; -var v3509 = v3491; -var v3510 = v3441; -v3508 = function isFalse(obj) { if (obj === \\"\\" || obj === false || obj === null) { - return true; -} -else if (v3509(obj) && obj.length === 0) { - return true; -} -else if (v3510(obj)) { - for (var key in obj) { - if (obj.hasOwnProperty(key)) { - return false; - } - } - return true; -} -else { - return false; -} }; -const v3511 = {}; -v3511.constructor = v3508; -v3508.prototype = v3511; -var v3507 = v3508; -var v3512 = undefined; -var v3513 = undefined; -var v3515; -const v3517 = console._stdout._writableState.afterWriteTickInfo.constructor.prototype.hasOwnProperty; -var v3516 = v3517; -var v3518 = v3517; -v3515 = function strictDeepEqual(first, second) { if (first === second) { - return true; -} var firstType = v113.toString.call(first); if (firstType !== v113.toString.call(second)) { - return false; -} if (v3509(first) === true) { - if (first.length !== second.length) { - return false; - } - for (var i = 0; i < first.length; i++) { - if (strictDeepEqual(first[i], second[i]) === false) { - return false; - } - } - return true; -} if (v3510(first) === true) { - var keysSeen = {}; - for (var key in first) { - if (v3516.call(first, key)) { - if (strictDeepEqual(first[key], second[key]) === false) { - return false; - } - keysSeen[key] = true; - } - } - for (var key2 in second) { - if (v3518.call(second, key2)) { - if (keysSeen[key2] !== true) { - return false; - } - } - } - return true; -} return false; }; -const v3519 = {}; -v3519.constructor = v3515; -v3515.prototype = v3519; -var v3514 = v3515; -var v3520 = \\"NE\\"; -var v3521 = v3515; -var v3522 = \\"GT\\"; -var v3523 = \\"GTE\\"; -var v3524 = undefined; -var v3525 = undefined; -var v3526 = undefined; -var v3527 = undefined; -v3489 = function (node, value) { var matched, current, result, first, second, field, left, right, collected, i; switch (node.type) { - case \\"Field\\": - if (value !== null && v3440(value)) { - field = value[node.name]; - if (field === undefined) { - return null; - } - else { - return field; - } - } - return null; - case \\"Subexpression\\": - result = this.visit(node.children[0], value); - for (i = 1; i < node.children.length; i++) { - result = this.visit(node.children[1], result); - if (result === null) { - return null; - } - } - return result; - case \\"IndexExpression\\": - left = this.visit(node.children[0], value); - right = this.visit(node.children[1], left); - return right; - case \\"Index\\": - if (!v3490(value)) { - return null; - } - var index = node.value; - if (v3493 < 0) { - index = value.length + v3493; - } - result = value[v3493]; - if (result === undefined) { - result = null; - } - return result; - case \\"Slice\\": - if (!v3494(value)) { - return null; - } - var sliceParams = node.children.slice(0); - var computed = this.computeSliceParams(value.length, v3495); - var start = v3496[0]; - var stop = v3496[1]; - var step = v3496[2]; - result = []; - if (v3497 > 0) { - for (i = v3498; i < v3499; i += v3497) { - result.push(value[i]); - } - } - else { - for (i = v3500; i > v3499; i += v3497) { - result.push(value[i]); - } - } - return result; - case \\"Projection\\": - var base = this.visit(node.children[0], value); - if (!v3490(v3501)) { - return null; - } - collected = []; - for (i = 0; i < undefined; i++) { - current = this.visit(node.children[1], v3501[i]); - if (current !== null) { - collected.push(current); - } - } - return collected; - case \\"ValueProjection\\": - base = this.visit(node.children[0], value); - if (!v3440(v3501)) { - return null; - } - collected = []; - var values = v3502(v3501); - for (i = 0; i < undefined; i++) { - current = this.visit(node.children[1], v3506[i]); - if (current !== null) { - collected.push(current); - } - } - return collected; - case \\"FilterProjection\\": - base = this.visit(node.children[0], value); - if (!v3490(v3501)) { - return null; - } - var filtered = []; - var finalResults = []; - for (i = 0; i < undefined; i++) { - matched = this.visit(node.children[2], v3501[i]); - if (!v3507(matched)) { - undefined(v3501[i]); - } - } - for (var j = 0; j < undefined; j++) { - current = this.visit(node.children[1], v3512[j]); - if (current !== null) { - undefined(current); - } - } - return v3513; - case \\"Comparator\\": - first = this.visit(node.children[0], value); - second = this.visit(node.children[1], value); - switch (node.name) { - case v3342: - result = v3514(first, second); - break; - case v3520: - result = !v3521(first, second); - break; - case v3522: - result = first > second; - break; - case v3523: - result = first >= second; - break; - case v3267: - result = first < second; - break; - case v3266: - result = first <= second; - break; - default: throw new v3287(\\"Unknown comparator: \\" + node.name); - } - return result; - case v3260: - var original = this.visit(node.children[0], value); - if (!v3490(v3524)) { - return null; - } - var merged = []; - for (i = 0; i < undefined; i++) { - current = v3524[i]; - if (v3490(current)) { - undefined(v3525, current); - } - else { - undefined(current); - } - } - return v3525; - case \\"Identity\\": return value; - case \\"MultiSelectList\\": - if (value === null) { - return null; - } - collected = []; - for (i = 0; i < node.children.length; i++) { - collected.push(this.visit(node.children[i], value)); - } - return collected; - case \\"MultiSelectHash\\": - if (value === null) { - return null; - } - collected = {}; - var child; - for (i = 0; i < node.children.length; i++) { - child = node.children[i]; - collected[undefined] = this.visit(undefined, value); - } - return collected; - case \\"OrExpression\\": - matched = this.visit(node.children[0], value); - if (v3507(matched)) { - matched = this.visit(node.children[1], value); - } - return matched; - case \\"AndExpression\\": - first = this.visit(node.children[0], value); - if (v3507(first) === true) { - return first; - } - return this.visit(node.children[1], value); - case \\"NotExpression\\": - first = this.visit(node.children[0], value); - return v3507(first); - case \\"Literal\\": return node.value; - case v3328: - left = this.visit(node.children[0], value); - return this.visit(node.children[1], left); - case v3319: return value; - case \\"Function\\": - var resolvedArgs = []; - for (i = 0; i < node.children.length; i++) { - undefined(this.visit(node.children[i], value)); - } - return this.runtime.callFunction(node.name, v3526); - case \\"ExpressionReference\\": - var refNode = node.children[0]; - undefined = v3419; - return v3527; - default: throw new v3287(\\"Unknown node type: \\" + node.type); -} }; -const v3528 = {}; -v3528.constructor = v3489; -v3489.prototype = v3528; -v3486.visit = v3489; -var v3529; -v3529 = function (arrayLength, sliceParams) { var start = sliceParams[0]; var stop = sliceParams[1]; var step = sliceParams[2]; var computed = [null, null, null]; if (step === null) { - step = 1; -} -else if (step === 0) { - var error = new v3287(\\"Invalid slice, step cannot be 0\\"); - error.name = \\"RuntimeError\\"; - throw error; -} var stepValueNegative = step < 0 ? true : false; if (start === null) { - start = stepValueNegative ? arrayLength - 1 : 0; -} -else { - start = this.capSliceRange(arrayLength, start, step); -} if (stop === null) { - stop = stepValueNegative ? -1 : arrayLength; -} -else { - stop = this.capSliceRange(arrayLength, stop, step); -} computed[0] = start; computed[1] = stop; computed[2] = step; return computed; }; -const v3530 = {}; -v3530.constructor = v3529; -v3529.prototype = v3530; -v3486.computeSliceParams = v3529; -var v3531; -v3531 = function (arrayLength, actualValue, step) { if (actualValue < 0) { - actualValue += arrayLength; - if (actualValue < 0) { - actualValue = step < 0 ? -1 : 0; - } -} -else if (actualValue >= arrayLength) { - actualValue = step < 0 ? arrayLength - 1 : arrayLength; -} return actualValue; }; -const v3532 = {}; -v3532.constructor = v3531; -v3531.prototype = v3532; -v3486.capSliceRange = v3531; -v3485.prototype = v3486; -var v3484 = v3485; -v3377 = function search(data, expression) { var parser = new v3378(); var runtime = new v3379(); var interpreter = new v3484(runtime); runtime._interpreter = interpreter; var node = parser.parse(expression); return interpreter.search(node, data); }; -const v3533 = {}; -v3533.constructor = v3377; -v3377.prototype = v3533; -v3214.search = v3377; -v3214.strictDeepEqual = v3515; -var v3213 = v3214; -v3211 = function eachItem(callback) { var self = this; function wrappedCallback(err, data) { if (err) - return callback(err, null); if (data === null) - return callback(null, null); var config = self.service.paginationConfig(self.operation); var resultKey = config.resultKey; if (v3212.isArray(resultKey)) - resultKey = resultKey[0]; var items = v3213.search(data, resultKey); var continueIteration = true; v3.arrayEach(items, function (item) { continueIteration = callback(null, item); if (continueIteration === false) { - return v111; -} }); return continueIteration; } this.eachPage(wrappedCallback); }; -const v3534 = {}; -v3534.constructor = v3211; -v3211.prototype = v3534; -v3199.eachItem = v3211; -var v3535; -v3535 = function isPageable() { return this.service.paginationConfig(this.operation) ? true : false; }; -const v3536 = {}; -v3536.constructor = v3535; -v3535.prototype = v3536; -v3199.isPageable = v3535; -var v3537; -var v3538 = v8; -var v3539 = v117; -var v3540 = v1017; -var v3541 = undefined; -var v3542 = v40; -var v3543 = undefined; -var v3544 = undefined; -v3537 = function createReadStream() { var streams = v3.stream; var req = this; var stream = null; if (2 === 2) { - stream = new streams.PassThrough(); - v3538.nextTick(function () { req.send(); }); -} -else { - stream = new streams.Stream(); - stream.readable = true; - stream.sent = false; - stream.on(\\"newListener\\", function (event) { if (!stream.sent && event === \\"data\\") { - stream.sent = true; - v3538.nextTick(function () { req.send(); }); - } }); -} this.on(\\"error\\", function (err) { stream.emit(\\"error\\", err); }); this.on(\\"httpHeaders\\", function streamHeaders(statusCode, headers, resp) { if (statusCode < 300) { - req.removeListener(\\"httpData\\", v428.HTTP_DATA); - req.removeListener(\\"httpError\\", undefined); - req.on(\\"httpError\\", function streamHttpError(error) { resp.error = error; resp.error.retryable = false; }); - var shouldCheckContentLength = false; - var expectedLen; - if (req.httpRequest.method !== \\"HEAD\\") { - expectedLen = v3539(headers[\\"content-length\\"], 10); - } - if (expectedLen !== undefined && !v3540(expectedLen) && expectedLen >= 0) { - shouldCheckContentLength = true; - var receivedLen = 0; - } - var checkContentLengthAndEmit = function checkContentLengthAndEmit() { if (shouldCheckContentLength && v3541 !== expectedLen) { - stream.emit(\\"error\\", v3.error(new v3542(\\"Stream content length mismatch. Received \\" + v3543 + \\" of \\" + expectedLen + \\" bytes.\\"), { code: \\"StreamContentLengthMismatch\\" })); - } - else if (2 === 2) { - stream.end(); - } - else { - stream.emit(\\"end\\"); - } }; - var httpStream = resp.httpResponse.createUnbufferedStream(); - if (2 === 2) { - if (shouldCheckContentLength) { - var lengthAccumulator = new streams.PassThrough(); - lengthAccumulator._write = function (chunk) { if (chunk && chunk.length) { - v3544 += chunk.length; - } return streams.PassThrough.prototype._write.apply(this, arguments); }; - lengthAccumulator.on(\\"end\\", checkContentLengthAndEmit); - stream.on(\\"error\\", function (err) { shouldCheckContentLength = false; httpStream.unpipe(lengthAccumulator); lengthAccumulator.emit(\\"end\\"); lengthAccumulator.end(); }); - httpStream.pipe(lengthAccumulator).pipe(stream, { end: false }); - } - else { - httpStream.pipe(stream); - } - } - else { - if (shouldCheckContentLength) { - httpStream.on(\\"data\\", function (arg) { if (arg && arg.length) { - v3544 += arg.length; - } }); - } - httpStream.on(\\"data\\", function (arg) { stream.emit(\\"data\\", arg); }); - httpStream.on(\\"end\\", checkContentLengthAndEmit); - } - httpStream.on(\\"error\\", function (err) { shouldCheckContentLength = false; stream.emit(\\"error\\", err); }); -} }); return stream; }; -const v3545 = {}; -v3545.constructor = v3537; -v3537.prototype = v3545; -v3199.createReadStream = v3537; -var v3546; -v3546 = function emit(eventName, args, done) { if (typeof args === \\"function\\") { - done = args; - args = null; -} if (!done) - done = function () { }; if (!args) - args = this.eventParameters(eventName, this.response); var origEmit = v401.emit; origEmit.call(this, eventName, args, function (err) { if (err) - this.response.error = err; done.call(this, err); }); }; -const v3547 = {}; -v3547.constructor = v3546; -v3546.prototype = v3547; -v3199.emitEvent = v3546; -var v3548; -v3548 = function eventParameters(eventName) { switch (eventName) { - case \\"restart\\": - case \\"validate\\": - case \\"sign\\": - case \\"build\\": - case \\"afterValidate\\": - case \\"afterBuild\\": return [this]; - case \\"error\\": return [this.response.error, this.response]; - default: return [this.response]; -} }; -const v3549 = {}; -v3549.constructor = v3548; -v3548.prototype = v3549; -v3199.eventParameters = v3548; -var v3550; -v3550 = function presign(expires, callback) { if (!callback && typeof expires === \\"function\\") { - callback = expires; - expires = null; -} return new v450.Presign().sign(this.toGet(), expires, callback); }; -const v3551 = {}; -v3551.constructor = v3550; -v3550.prototype = v3551; -v3199.presign = v3550; -var v3552; -v3552 = function isPresigned() { return v113.hasOwnProperty.call(this.httpRequest.headers, \\"presigned-expires\\"); }; -const v3553 = {}; -v3553.constructor = v3552; -v3552.prototype = v3553; -v3199.isPresigned = v3552; -var v3554; -v3554 = function toUnauthenticated() { this._unAuthenticated = true; this.removeListener(\\"validate\\", v428.VALIDATE_CREDENTIALS); this.removeListener(\\"sign\\", v428.SIGN); return this; }; -const v3555 = {}; -v3555.constructor = v3554; -v3554.prototype = v3555; -v3199.toUnauthenticated = v3554; -var v3556; -v3556 = function toGet() { if (this.service.api.protocol === \\"query\\" || this.service.api.protocol === \\"ec2\\") { - this.removeListener(\\"build\\", this.buildAsGet); - this.addListener(\\"build\\", this.buildAsGet); -} return this; }; -const v3557 = {}; -v3557.constructor = v3556; -v3556.prototype = v3557; -v3199.toGet = v3556; -var v3558; -v3558 = function buildAsGet(request) { request.httpRequest.method = \\"GET\\"; request.httpRequest.path = request.service.endpoint.path + \\"?\\" + request.httpRequest.body; request.httpRequest.body = \\"\\"; delete request.httpRequest.headers[\\"Content-Length\\"]; delete request.httpRequest.headers[\\"Content-Type\\"]; }; -const v3559 = {}; -v3559.constructor = v3558; -v3558.prototype = v3559; -v3199.buildAsGet = v3558; -var v3560; -v3560 = function haltHandlersOnError() { this._haltHandlersOnError = true; }; -const v3561 = {}; -v3561.constructor = v3560; -v3560.prototype = v3561; -v3199.haltHandlersOnError = v3560; -var v3562; -var v3563 = v244; -var v3564 = v31; -v3562 = function promise() { var self = this; this.httpRequest.appendToUserAgent(\\"promise\\"); return new v3563(function (resolve, reject) { self.on(\\"complete\\", function (resp) { if (resp.error) { - reject(resp.error); -} -else { - resolve(v3564.defineProperty(resp.data || {}, \\"$response\\", { value: resp })); -} }); self.runTo(); }); }; -const v3565 = {}; -v3565.constructor = v3562; -v3562.prototype = v3565; -v3199.promise = v3562; -v3199.listeners = v403; -v3199.on = v405; -v3199.onAsync = v407; -v3199.removeListener = v409; -v3199.removeAllListeners = v411; -v3199.emit = v413; -v3199.callListeners = v415; -v3199.addListeners = v418; -v3199.addNamedListener = v420; -v3199.addNamedAsyncListener = v422; -v3199.addNamedListeners = v424; -v3199.addListener = v405; -v3163.prototype = v3199; -v3163.__super__ = v31; -var v3566; -var v3567 = v31; -v3566 = function addPromisesToClass(PromiseDependency) { this.prototype.promise = function promise() { var self = this; this.httpRequest.appendToUserAgent(\\"promise\\"); return new PromiseDependency(function (resolve, reject) { self.on(\\"complete\\", function (resp) { if (resp.error) { - reject(resp.error); -} -else { - resolve(v3567.defineProperty(resp.data || {}, \\"$response\\", { value: resp })); -} }); self.runTo(); }); }; }; -const v3568 = {}; -v3568.constructor = v3566; -v3566.prototype = v3568; -v3163.addPromisesToClass = v3566; -var v3569; -v3569 = function deletePromisesFromClass() { delete this.prototype.promise; }; -const v3570 = {}; -v3570.constructor = v3569; -v3569.prototype = v3570; -v3163.deletePromisesFromClass = v3569; -v2.Request = v3163; -var v3571; -var v3572 = v2; -v3571 = function Response(request) { this.request = request; this.data = null; this.error = null; this.retryCount = 0; this.redirectCount = 0; this.httpResponse = new v3572.HttpResponse(); if (request) { - this.maxRetries = request.service.numRetries(); - this.maxRedirects = request.service.config.maxRedirects; -} }; -const v3573 = {}; -v3573.constructor = v3571; -var v3574; -v3574 = function nextPage(callback) { var config; var service = this.request.service; var operation = this.request.operation; try { - config = service.paginationConfig(operation, true); -} -catch (e) { - this.error = e; -} if (!this.hasNextPage()) { - if (callback) - callback(this.error, null); - else if (this.error) - throw this.error; - return null; -} var params = v3.copy(this.request.params); if (!this.nextPageTokens) { - return callback ? callback(null, null) : null; -} -else { - var inputTokens = config.inputToken; - if (typeof inputTokens === \\"string\\") - inputTokens = [inputTokens]; - for (var i = 0; i < inputTokens.length; i++) { - params[inputTokens[i]] = this.nextPageTokens[i]; - } - return service.makeRequest(this.request.operation, params, callback); -} }; -const v3575 = {}; -v3575.constructor = v3574; -v3574.prototype = v3575; -v3573.nextPage = v3574; -var v3576; -v3576 = function hasNextPage() { this.cacheNextPageTokens(); if (this.nextPageTokens) - return true; if (this.nextPageTokens === undefined) - return undefined; -else - return false; }; -const v3577 = {}; -v3577.constructor = v3576; -v3576.prototype = v3577; -v3573.hasNextPage = v3576; -var v3578; -var v3579 = v3214; -var v3580 = v3214; -v3578 = function cacheNextPageTokens() { if (v113.hasOwnProperty.call(this, \\"nextPageTokens\\")) - return this.nextPageTokens; this.nextPageTokens = undefined; var config = this.request.service.paginationConfig(this.request.operation); if (!config) - return this.nextPageTokens; this.nextPageTokens = null; if (config.moreResults) { - if (!v3579.search(this.data, config.moreResults)) { - return this.nextPageTokens; - } -} var exprs = config.outputToken; if (typeof exprs === \\"string\\") - exprs = [exprs]; v3.arrayEach.call(this, exprs, function (expr) { var output = v3580.search(this.data, expr); if (output) { - this.nextPageTokens = this.nextPageTokens || []; - this.nextPageTokens.push(output); -} }); return this.nextPageTokens; }; -const v3581 = {}; -v3581.constructor = v3578; -v3578.prototype = v3581; -v3573.cacheNextPageTokens = v3578; -v3571.prototype = v3573; -v3571.__super__ = v31; -v2.Response = v3571; -var v3582; -v3582 = function constructor(service, state) { this.service = service; this.state = state; this.loadWaiterConfig(this.state); }; -const v3583 = {}; -v3583.constructor = v3582; -v3583.service = null; -v3583.state = null; -v3583.config = null; -const v3584 = {}; -var v3585; -var v3586 = v3214; -var v3587 = v3214; -var v3588 = undefined; -v3585 = function (resp, expected, argument) { try { - var result = v3586.search(resp.data, argument); -} -catch (err) { - return false; -} return v3587.strictDeepEqual(v3588, expected); }; -const v3589 = {}; -v3589.constructor = v3585; -v3585.prototype = v3589; -v3584.path = v3585; -var v3590; -var v3591 = v33; -var v3592 = undefined; -var v3593 = undefined; -var v3594 = undefined; -v3590 = function (resp, expected, argument) { try { - var results = v3587.search(resp.data, argument); -} -catch (err) { - return false; -} if (!v3591.isArray(v3592)) - results = [v3593]; var numResults = undefined; if (!numResults) - return false; for (var ind = 0; ind < numResults; ind++) { - if (!v3587.strictDeepEqual(v3594[ind], expected)) { - return false; - } -} return true; }; -const v3595 = {}; -v3595.constructor = v3590; -v3590.prototype = v3595; -v3584.pathAll = v3590; -var v3596; -var v3597 = v3214; -var v3598 = v33; -var v3599 = undefined; -var v3600 = v3214; -var v3601 = undefined; -v3596 = function (resp, expected, argument) { try { - var results = v3597.search(resp.data, argument); -} -catch (err) { - return false; -} if (!v3598.isArray(v3599)) - results = [v3599]; var numResults = undefined; for (var ind = 0; ind < numResults; ind++) { - if (v3600.strictDeepEqual(v3601[ind], expected)) { - return true; - } -} return false; }; -const v3602 = {}; -v3602.constructor = v3596; -v3596.prototype = v3602; -v3584.pathAny = v3596; -var v3603; -v3603 = function (resp, expected) { var statusCode = resp.httpResponse.statusCode; return (typeof statusCode === \\"number\\") && (statusCode === expected); }; -const v3604 = {}; -v3604.constructor = v3603; -v3603.prototype = v3604; -v3584.status = v3603; -var v3605; -v3605 = function (resp, expected) { if (typeof expected === \\"string\\" && resp.error) { - return expected === resp.error.code; -} return expected === !!resp.error; }; -const v3606 = {}; -v3606.constructor = v3605; -v3605.prototype = v3606; -v3584.error = v3605; -v3583.matchers = v3584; -const v3607 = Object.create(v401); -const v3608 = {}; -const v3609 = []; -var v3610; -v3610 = function (resp) { var waiter = resp.request._waiter; if (resp.error && resp.error.code === \\"ResourceNotReady\\") { - resp.error.retryDelay = (waiter.config.delay || 0) * 1000; -} }; -const v3611 = {}; -v3611.constructor = v3610; -v3610.prototype = v3611; -v3609.push(v3610); -v3608.retry = v3609; -const v3612 = []; -var v3613; -v3613 = function CHECK_ACCEPTORS(resp) { var waiter = resp.request._waiter; var acceptors = waiter.config.acceptors; var acceptorMatched = false; var state = \\"retry\\"; acceptors.forEach(function (acceptor) { if (!acceptorMatched) { - var matcher = waiter.matchers[acceptor.matcher]; - if (matcher && matcher(resp, acceptor.expected, acceptor.argument)) { - acceptorMatched = true; - state = acceptor.state; - } -} }); if (!acceptorMatched && resp.error) - state = \\"failure\\"; if (state === \\"success\\") { - waiter.setSuccess(resp); -} -else { - waiter.setError(resp, state === \\"retry\\"); -} }; -const v3614 = {}; -v3614.constructor = v3613; -v3613.prototype = v3614; -v3612.push(v3613); -v3608.extractData = v3612; -const v3615 = []; -v3615.push(v3613); -v3608.extractError = v3615; -v3607._events = v3608; -v3607.RETRY_CHECK = v3610; -v3607.CHECK_OUTPUT = v3613; -v3607.CHECK_ERROR = v3613; -v3583.listeners = v3607; -var v3616; -v3616 = function wait(params, callback) { if (typeof params === \\"function\\") { - callback = params; - params = undefined; -} if (params && params.$waiter) { - params = v3.copy(params); - if (typeof params.$waiter.delay === \\"number\\") { - this.config.delay = params.$waiter.delay; - } - if (typeof params.$waiter.maxAttempts === \\"number\\") { - this.config.maxAttempts = params.$waiter.maxAttempts; - } - delete params.$waiter; -} var request = this.service.makeRequest(this.config.operation, params); request._waiter = this; request.response.maxRetries = this.config.maxAttempts; request.addListeners(this.listeners); if (callback) - request.send(callback); return request; }; -const v3617 = {}; -v3617.constructor = v3616; -v3616.prototype = v3617; -v3583.wait = v3616; -var v3618; -v3618 = function setSuccess(resp) { resp.error = null; resp.data = resp.data || {}; resp.request.removeAllListeners(\\"extractData\\"); }; -const v3619 = {}; -v3619.constructor = v3618; -v3618.prototype = v3619; -v3583.setSuccess = v3618; -var v3620; -var v3621 = v40; -v3620 = function setError(resp, retryable) { resp.data = null; resp.error = v3.error(resp.error || new v3621(), { code: \\"ResourceNotReady\\", message: \\"Resource is not in the state \\" + this.state, retryable: retryable }); }; -const v3622 = {}; -v3622.constructor = v3620; -v3620.prototype = v3622; -v3583.setError = v3620; -var v3623; -var v3624 = v40; -v3623 = function loadWaiterConfig(state) { if (!this.service.api.waiters[state]) { - throw new v3.error(new v3624(), { code: \\"StateNotFoundError\\", message: \\"State \\" + state + \\" not found.\\" }); -} this.config = v3.copy(this.service.api.waiters[state]); }; -const v3625 = {}; -v3625.constructor = v3623; -v3623.prototype = v3625; -v3583.loadWaiterConfig = v3623; -v3582.prototype = v3583; -v3582.__super__ = v31; -v2.ResourceWaiter = v3582; -var v3626; -v3626 = function ParamValidator(validation) { if (validation === true || validation === undefined) { - validation = { \\"min\\": true }; -} this.validation = validation; }; -const v3627 = {}; -v3627.constructor = v3626; -var v3628; -var v3629 = v40; -v3628 = function validate(shape, params, context) { this.errors = []; this.validateMember(shape, params || {}, context || \\"params\\"); if (this.errors.length > 1) { - var msg = this.errors.join(\\"\\\\n* \\"); - msg = \\"There were \\" + this.errors.length + \\" validation errors:\\\\n* \\" + msg; - throw v3.error(new v3629(msg), { code: \\"MultipleValidationErrors\\", errors: this.errors }); -} -else if (this.errors.length === 1) { - throw this.errors[0]; -} -else { - return true; -} }; -const v3630 = {}; -v3630.constructor = v3628; -v3628.prototype = v3630; -v3627.validate = v3628; -var v3631; -var v3632 = v40; -v3631 = function fail(code, message) { this.errors.push(v3.error(new v3632(message), { code: code })); }; -const v3633 = {}; -v3633.constructor = v3631; -v3631.prototype = v3633; -v3627.fail = v3631; -var v3634; -v3634 = function validateStructure(shape, params, context) { if (shape.isDocument) - return true; this.validateType(params, context, [\\"object\\"], \\"structure\\"); var paramName; for (var i = 0; shape.required && i < shape.required.length; i++) { - paramName = shape.required[i]; - var value = params[paramName]; - if (value === undefined || value === null) { - this.fail(\\"MissingRequiredParameter\\", \\"Missing required key '\\" + paramName + \\"' in \\" + context); - } -} for (paramName in params) { - if (!v113.hasOwnProperty.call(params, paramName)) - continue; - var paramValue = params[paramName], memberShape = shape.members[paramName]; - if (memberShape !== undefined) { - var memberContext = [context, paramName].join(\\".\\"); - this.validateMember(memberShape, paramValue, memberContext); - } - else if (paramValue !== undefined && paramValue !== null) { - this.fail(\\"UnexpectedParameter\\", \\"Unexpected key '\\" + paramName + \\"' found in \\" + context); - } -} return true; }; -const v3635 = {}; -v3635.constructor = v3634; -v3634.prototype = v3635; -v3627.validateStructure = v3634; -var v3636; -v3636 = function validateMember(shape, param, context) { switch (shape.type) { - case \\"structure\\": return this.validateStructure(shape, param, context); - case \\"list\\": return this.validateList(shape, param, context); - case \\"map\\": return this.validateMap(shape, param, context); - default: return this.validateScalar(shape, param, context); -} }; -const v3637 = {}; -v3637.constructor = v3636; -v3636.prototype = v3637; -v3627.validateMember = v3636; -var v3638; -var v3639 = v33; -v3638 = function validateList(shape, params, context) { if (this.validateType(params, context, [v3639])) { - this.validateRange(shape, params.length, context, \\"list member count\\"); - for (var i = 0; i < params.length; i++) { - this.validateMember(shape.member, params[i], context + \\"[\\" + i + \\"]\\"); - } -} }; -const v3640 = {}; -v3640.constructor = v3638; -v3638.prototype = v3640; -v3627.validateList = v3638; -var v3641; -v3641 = function validateMap(shape, params, context) { if (this.validateType(params, context, [\\"object\\"], \\"map\\")) { - var mapCount = 0; - for (var param in params) { - if (!v113.hasOwnProperty.call(params, param)) - continue; - this.validateMember(shape.key, param, context + \\"[key='\\" + param + \\"']\\"); - this.validateMember(shape.value, params[param], context + \\"['\\" + param + \\"']\\"); - mapCount++; - } - this.validateRange(shape, mapCount, context, \\"map member count\\"); -} }; -const v3642 = {}; -v3642.constructor = v3641; -v3641.prototype = v3642; -v3627.validateMap = v3641; -var v3643; -var v3644 = v77; -v3643 = function validateScalar(shape, value, context) { switch (shape.type) { - case null: - case undefined: - case \\"string\\": return this.validateString(shape, value, context); - case \\"base64\\": - case \\"binary\\": return this.validatePayload(value, context); - case \\"integer\\": - case \\"float\\": return this.validateNumber(shape, value, context); - case \\"boolean\\": return this.validateType(value, context, [\\"boolean\\"]); - case \\"timestamp\\": return this.validateType(value, context, [v3644, /^\\\\d{4}-\\\\d{2}-\\\\d{2}T\\\\d{2}:\\\\d{2}:\\\\d{2}(\\\\.\\\\d+)?Z$/, \\"number\\"], \\"Date object, ISO-8601 string, or a UNIX timestamp\\"); - default: return this.fail(\\"UnkownType\\", \\"Unhandled type \\" + shape.type + \\" for \\" + context); -} }; -const v3645 = {}; -v3645.constructor = v3643; -v3643.prototype = v3645; -v3627.validateScalar = v3643; -var v3646; -v3646 = function validateString(shape, value, context) { var validTypes = [\\"string\\"]; if (shape.isJsonValue) { - validTypes = validTypes.concat([\\"number\\", \\"object\\", \\"boolean\\"]); -} if (value !== null && this.validateType(value, context, validTypes)) { - this.validateEnum(shape, value, context); - this.validateRange(shape, value.length, context, \\"string length\\"); - this.validatePattern(shape, value, context); - this.validateUri(shape, value, context); -} }; -const v3647 = {}; -v3647.constructor = v3646; -v3646.prototype = v3647; -v3627.validateString = v3646; -var v3648; -v3648 = function validateUri(shape, value, context) { if (shape[\\"location\\"] === \\"uri\\") { - if (value.length === 0) { - this.fail(\\"UriParameterError\\", \\"Expected uri parameter to have length >= 1,\\" + \\" but found \\\\\\"\\" + value + \\"\\\\\\" for \\" + context); - } -} }; -const v3649 = {}; -v3649.constructor = v3648; -v3648.prototype = v3649; -v3627.validateUri = v3648; -var v3650; -var v3651 = v373; -v3650 = function validatePattern(shape, value, context) { if (this.validation[\\"pattern\\"] && shape[\\"pattern\\"] !== undefined) { - if (!(new v3651(shape[\\"pattern\\"])).test(value)) { - this.fail(\\"PatternMatchError\\", \\"Provided value \\\\\\"\\" + value + \\"\\\\\\" \\" + \\"does not match regex pattern /\\" + shape[\\"pattern\\"] + \\"/ for \\" + context); - } -} }; -const v3652 = {}; -v3652.constructor = v3650; -v3650.prototype = v3652; -v3627.validatePattern = v3650; -var v3653; -v3653 = function validateRange(shape, value, context, descriptor) { if (this.validation[\\"min\\"]) { - if (shape[\\"min\\"] !== undefined && value < shape[\\"min\\"]) { - this.fail(\\"MinRangeError\\", \\"Expected \\" + descriptor + \\" >= \\" + shape[\\"min\\"] + \\", but found \\" + value + \\" for \\" + context); - } -} if (this.validation[\\"max\\"]) { - if (shape[\\"max\\"] !== undefined && value > shape[\\"max\\"]) { - this.fail(\\"MaxRangeError\\", \\"Expected \\" + descriptor + \\" <= \\" + shape[\\"max\\"] + \\", but found \\" + value + \\" for \\" + context); - } -} }; -const v3654 = {}; -v3654.constructor = v3653; -v3653.prototype = v3654; -v3627.validateRange = v3653; -var v3655; -v3655 = function validateRange(shape, value, context) { if (this.validation[\\"enum\\"] && shape[\\"enum\\"] !== undefined) { - if (shape[\\"enum\\"].indexOf(value) === -1) { - this.fail(\\"EnumError\\", \\"Found string value of \\" + value + \\", but \\" + \\"expected \\" + shape[\\"enum\\"].join(\\"|\\") + \\" for \\" + context); - } -} }; -const v3656 = {}; -v3656.constructor = v3655; -v3655.prototype = v3656; -v3627.validateEnum = v3655; -var v3657; -var v3658 = v373; -v3657 = function validateType(value, context, acceptedTypes, type) { if (value === null || value === undefined) - return false; var foundInvalidType = false; for (var i = 0; i < acceptedTypes.length; i++) { - if (typeof acceptedTypes[i] === \\"string\\") { - if (typeof value === acceptedTypes[i]) - return true; - } - else if (acceptedTypes[i] instanceof v3658) { - if ((value || \\"\\").toString().match(acceptedTypes[i])) - return true; - } - else { - if (value instanceof acceptedTypes[i]) - return true; - if (v3.isType(value, acceptedTypes[i])) - return true; - if (!type && !foundInvalidType) - acceptedTypes = acceptedTypes.slice(); - acceptedTypes[i] = v3.typeName(acceptedTypes[i]); - } - foundInvalidType = true; -} var acceptedType = type; if (!acceptedType) { - acceptedType = acceptedTypes.join(\\", \\").replace(/,([^,]+)$/, \\", or$1\\"); -} var vowel = acceptedType.match(/^[aeiou]/i) ? \\"n\\" : \\"\\"; this.fail(\\"InvalidParameterType\\", \\"Expected \\" + context + \\" to be a\\" + vowel + \\" \\" + acceptedType); return false; }; -const v3659 = {}; -v3659.constructor = v3657; -v3657.prototype = v3659; -v3627.validateType = v3657; -var v3660; -var v3661 = v912; -v3660 = function validateNumber(shape, value, context) { if (value === null || value === undefined) - return; if (typeof value === \\"string\\") { - var castedValue = v3661(value); - if (castedValue.toString() === value) - value = castedValue; -} if (this.validateType(value, context, [\\"number\\"])) { - this.validateRange(shape, value, context, \\"numeric value\\"); -} }; -const v3662 = {}; -v3662.constructor = v3660; -v3660.prototype = v3662; -v3627.validateNumber = v3660; -var v3663; -var v3664 = undefined; -var v3665 = undefined; -v3663 = function validatePayload(value, context) { if (value === null || value === undefined) - return; if (typeof value === \\"string\\") - return; if (value && typeof value.byteLength === \\"number\\") - return; if (v3.isNode()) { - var Stream = v3.stream.Stream; - if (v3.Buffer.isBuffer(value) || value instanceof Stream) - return; -} -else { - if (typeof v3664 !== void 0 && value instanceof v3665) - return; -} var types = [\\"Buffer\\", \\"Stream\\", \\"File\\", \\"Blob\\", \\"ArrayBuffer\\", \\"DataView\\"]; if (value) { - for (var i = 0; i < types.length; i++) { - if (v3.isType(value, types[i])) - return; - if (v3.typeName(value.constructor) === types[i]) - return; - } -} this.fail(\\"InvalidParameterType\\", \\"Expected \\" + context + \\" to be a \\" + \\"string, Buffer, Stream, Blob, or typed array object\\"); }; -const v3666 = {}; -v3666.constructor = v3663; -v3663.prototype = v3666; -v3627.validatePayload = v3663; -v3626.prototype = v3627; -v3626.__super__ = v31; -v2.ParamValidator = v3626; -v2.events = v426; -v2.IniLoader = v181; -v2.STS = v297; -var v3667; -var v3668 = v2; -v3667 = function TemporaryCredentials(params, masterCredentials) { v3668.Credentials.call(this); this.loadMasterCredentials(masterCredentials); this.expired = true; this.params = params || {}; if (this.params.RoleArn) { - this.params.RoleSessionName = this.params.RoleSessionName || \\"temporary-credentials\\"; -} }; -const v3669 = Object.create(v252); -v3669.constructor = v3667; -var v3670; -v3670 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3671 = {}; -v3671.constructor = v3670; -v3670.prototype = v3671; -v3669.refresh = v3670; -var v3672; -v3672 = function load(callback) { var self = this; self.createClients(); self.masterCredentials.get(function () { self.service.config.credentials = self.masterCredentials; var operation = self.params.RoleArn ? self.service.assumeRole : self.service.getSessionToken; operation.call(self.service, function (err, data) { if (!err) { - self.service.credentialsFrom(data, self); -} callback(err); }); }); }; -const v3673 = {}; -v3673.constructor = v3672; -v3672.prototype = v3673; -v3669.load = v3672; -var v3674; -var v3675 = v2; -v3674 = function loadMasterCredentials(masterCredentials) { this.masterCredentials = masterCredentials || v2582; while (this.masterCredentials.masterCredentials) { - this.masterCredentials = this.masterCredentials.masterCredentials; -} if (typeof this.masterCredentials.get !== \\"function\\") { - this.masterCredentials = new v3675.Credentials(this.masterCredentials); -} }; -const v3676 = {}; -v3676.constructor = v3674; -v3674.prototype = v3676; -v3669.loadMasterCredentials = v3674; -var v3677; -var v3678 = v297; -v3677 = function () { this.service = this.service || new v3678({ params: this.params }); }; -const v3679 = {}; -v3679.constructor = v3677; -v3677.prototype = v3679; -v3669.createClients = v3677; -v3667.prototype = v3669; -v3667.__super__ = v253; -v2.TemporaryCredentials = v3667; -var v3680; -var v3681 = v2; -var v3682 = v40; -var v3683 = v297; -v3680 = function ChainableTemporaryCredentials(options) { v3681.Credentials.call(this); options = options || {}; this.errorCode = \\"ChainableTemporaryCredentialsProviderFailure\\"; this.expired = true; this.tokenCodeFn = null; var params = v3.copy(options.params) || {}; if (params.RoleArn) { - params.RoleSessionName = params.RoleSessionName || \\"temporary-credentials\\"; -} if (params.SerialNumber) { - if (!options.tokenCodeFn || (typeof options.tokenCodeFn !== \\"function\\")) { - throw new v3.error(new v3682(\\"tokenCodeFn must be a function when params.SerialNumber is given\\"), { code: this.errorCode }); - } - else { - this.tokenCodeFn = options.tokenCodeFn; - } -} var config = v3.merge({ params: params, credentials: options.masterCredentials || v2582 }, options.stsConfig || {}); this.service = new v3683(config); }; -const v3684 = Object.create(v252); -v3684.constructor = v3680; -var v3685; -v3685 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3686 = {}; -v3686.constructor = v3685; -v3685.prototype = v3686; -v3684.refresh = v3685; -var v3687; -v3687 = function load(callback) { var self = this; var operation = self.service.config.params.RoleArn ? \\"assumeRole\\" : \\"getSessionToken\\"; this.getTokenCode(function (err, tokenCode) { var params = {}; if (err) { - callback(err); - return; -} if (tokenCode) { - params.TokenCode = tokenCode; -} self.service[operation](params, function (err, data) { if (!err) { - self.service.credentialsFrom(data, self); -} callback(err); }); }); }; -const v3688 = {}; -v3688.constructor = v3687; -v3687.prototype = v3688; -v3684.load = v3687; -var v3689; -var v3690 = v40; -var v3691 = v40; -v3689 = function getTokenCode(callback) { var self = this; if (this.tokenCodeFn) { - this.tokenCodeFn(this.service.config.params.SerialNumber, function (err, token) { if (err) { - var message = err; - if (err instanceof v3690) { - message = err.message; - } - callback(v3.error(new v3691(\\"Error fetching MFA token: \\" + message), { code: self.errorCode })); - return; - } callback(null, token); }); -} -else { - callback(null); -} }; -const v3692 = {}; -v3692.constructor = v3689; -v3689.prototype = v3692; -v3684.getTokenCode = v3689; -v3680.prototype = v3684; -v3680.__super__ = v253; -v2.ChainableTemporaryCredentials = v3680; -var v3693; -var v3694 = v2; -v3693 = function WebIdentityCredentials(params, clientConfig) { v3694.Credentials.call(this); this.expired = true; this.params = params; this.params.RoleSessionName = this.params.RoleSessionName || \\"web-identity\\"; this.data = null; this._clientConfig = v3.copy(clientConfig || {}); }; -const v3695 = Object.create(v252); -v3695.constructor = v3693; -var v3696; -v3696 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3697 = {}; -v3697.constructor = v3696; -v3696.prototype = v3697; -v3695.refresh = v3696; -var v3698; -v3698 = function load(callback) { var self = this; self.createClients(); self.service.assumeRoleWithWebIdentity(function (err, data) { self.data = null; if (!err) { - self.data = data; - self.service.credentialsFrom(data, self); -} callback(err); }); }; -const v3699 = {}; -v3699.constructor = v3698; -v3698.prototype = v3699; -v3695.load = v3698; -var v3700; -var v3701 = v297; -v3700 = function () { if (!this.service) { - var stsConfig = v3.merge({}, this._clientConfig); - stsConfig.params = this.params; - this.service = new v3701(stsConfig); -} }; -const v3702 = {}; -v3702.constructor = v3700; -v3700.prototype = v3702; -v3695.createClients = v3700; -v3693.prototype = v3695; -v3693.__super__ = v253; -v2.WebIdentityCredentials = v3693; -var v3703; -var v3704 = v299; -var v3705 = v31; -v3703 = function () { if (v3704 !== v3705) { - return v3704.apply(this, arguments); -} }; -const v3706 = Object.create(v309); -v3706.constructor = v3703; -const v3707 = {}; -const v3708 = []; -var v3709; -var v3710 = v3706; -v3709 = function EVENTS_BUBBLE(event) { var baseClass = v387.getPrototypeOf(v3710); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v3711 = {}; -v3711.constructor = v3709; -v3709.prototype = v3711; -v3708.push(v3709); -v3707.apiCallAttempt = v3708; -const v3712 = []; -var v3713; -v3713 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v388.getPrototypeOf(v3710); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v3714 = {}; -v3714.constructor = v3713; -v3713.prototype = v3714; -v3712.push(v3713); -v3707.apiCall = v3712; -v3706._events = v3707; -v3706.MONITOR_EVENTS_BUBBLE = v3709; -v3706.CALL_EVENTS_BUBBLE = v3713; -v3703.prototype = v3706; -v3703.__super__ = v299; -const v3715 = {}; -v3715[\\"2014-06-30\\"] = null; -v3703.services = v3715; -const v3716 = []; -v3716.push(\\"2014-06-30\\"); -v3703.apiVersions = v3716; -v3703.serviceIdentifier = \\"cognitoidentity\\"; -v2.CognitoIdentity = v3703; -var v3717; -var v3718 = v2; -var v3719 = v31; -v3717 = function CognitoIdentityCredentials(params, clientConfig) { v3718.Credentials.call(this); this.expired = true; this.params = params; this.data = null; this._identityId = null; this._clientConfig = v3.copy(clientConfig || {}); this.loadCachedId(); var self = this; v3719.defineProperty(this, \\"identityId\\", { get: function () { self.loadCachedId(); return self._identityId || self.params.IdentityId; }, set: function (identityId) { self._identityId = identityId; } }); }; -const v3720 = Object.create(v252); -const v3721 = {}; -v3721.id = \\"aws.cognito.identity-id.\\"; -v3721.providers = \\"aws.cognito.identity-providers.\\"; -v3720.localStorageKey = v3721; -v3720.constructor = v3717; -var v3722; -v3722 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3723 = {}; -v3723.constructor = v3722; -v3722.prototype = v3723; -v3720.refresh = v3722; -var v3724; -v3724 = function load(callback) { var self = this; self.createClients(); self.data = null; self._identityId = null; self.getId(function (err) { if (!err) { - if (!self.params.RoleArn) { - self.getCredentialsForIdentity(callback); - } - else { - self.getCredentialsFromSTS(callback); - } -} -else { - self.clearIdOnNotAuthorized(err); - callback(err); -} }); }; -const v3725 = {}; -v3725.constructor = v3724; -v3724.prototype = v3725; -v3720.load = v3724; -var v3726; -v3726 = function clearCache() { this._identityId = null; delete this.params.IdentityId; var poolId = this.params.IdentityPoolId; var loginId = this.params.LoginId || \\"\\"; delete this.storage[this.localStorageKey.id + poolId + loginId]; delete this.storage[this.localStorageKey.providers + poolId + loginId]; }; -const v3727 = {}; -v3727.constructor = v3726; -v3726.prototype = v3727; -v3720.clearCachedId = v3726; -var v3728; -v3728 = function clearIdOnNotAuthorized(err) { var self = this; if (err.code == \\"NotAuthorizedException\\") { - self.clearCachedId(); -} }; -const v3729 = {}; -v3729.constructor = v3728; -v3728.prototype = v3729; -v3720.clearIdOnNotAuthorized = v3728; -var v3730; -v3730 = function getId(callback) { var self = this; if (typeof self.params.IdentityId === \\"string\\") { - return callback(null, self.params.IdentityId); -} self.cognito.getId(function (err, data) { if (!err && data.IdentityId) { - self.params.IdentityId = data.IdentityId; - callback(null, data.IdentityId); -} -else { - callback(err); -} }); }; -const v3731 = {}; -v3731.constructor = v3730; -v3730.prototype = v3731; -v3720.getId = v3730; -var v3732; -v3732 = function loadCredentials(data, credentials) { if (!data || !credentials) - return; credentials.expired = false; credentials.accessKeyId = data.Credentials.AccessKeyId; credentials.secretAccessKey = data.Credentials.SecretKey; credentials.sessionToken = data.Credentials.SessionToken; credentials.expireTime = data.Credentials.Expiration; }; -const v3733 = {}; -v3733.constructor = v3732; -v3732.prototype = v3733; -v3720.loadCredentials = v3732; -var v3734; -v3734 = function getCredentialsForIdentity(callback) { var self = this; self.cognito.getCredentialsForIdentity(function (err, data) { if (!err) { - self.cacheId(data); - self.data = data; - self.loadCredentials(self.data, self); -} -else { - self.clearIdOnNotAuthorized(err); -} callback(err); }); }; -const v3735 = {}; -v3735.constructor = v3734; -v3734.prototype = v3735; -v3720.getCredentialsForIdentity = v3734; -var v3736; -v3736 = function getCredentialsFromSTS(callback) { var self = this; self.cognito.getOpenIdToken(function (err, data) { if (!err) { - self.cacheId(data); - self.params.WebIdentityToken = data.Token; - self.webIdentityCredentials.refresh(function (webErr) { if (!webErr) { - self.data = self.webIdentityCredentials.data; - self.sts.credentialsFrom(self.data, self); - } callback(webErr); }); -} -else { - self.clearIdOnNotAuthorized(err); - callback(err); -} }); }; -const v3737 = {}; -v3737.constructor = v3736; -v3736.prototype = v3737; -v3720.getCredentialsFromSTS = v3736; -var v3738; -var v3739 = v31; -v3738 = function loadCachedId() { var self = this; if (v3.isBrowser() && !self.params.IdentityId) { - var id = self.getStorage(\\"id\\"); - if (id && self.params.Logins) { - var actualProviders = v3739.keys(self.params.Logins); - var cachedProviders = (self.getStorage(\\"providers\\") || \\"\\").split(\\",\\"); - var intersect = cachedProviders.filter(function (n) { return actualProviders.indexOf(n) !== -1; }); - if (intersect.length !== 0) { - self.params.IdentityId = id; - } - } - else if (id) { - self.params.IdentityId = id; - } -} }; -const v3740 = {}; -v3740.constructor = v3738; -v3738.prototype = v3740; -v3720.loadCachedId = v3738; -var v3741; -var v3742 = v2; -var v3743 = v3703; -var v3744 = v297; -v3741 = function () { var clientConfig = this._clientConfig; this.webIdentityCredentials = this.webIdentityCredentials || new v3742.WebIdentityCredentials(this.params, clientConfig); if (!this.cognito) { - var cognitoConfig = v3.merge({}, clientConfig); - cognitoConfig.params = this.params; - this.cognito = new v3743(cognitoConfig); -} this.sts = this.sts || new v3744(clientConfig); }; -const v3745 = {}; -v3745.constructor = v3741; -v3741.prototype = v3745; -v3720.createClients = v3741; -var v3746; -var v3747 = v31; -v3746 = function cacheId(data) { this._identityId = data.IdentityId; this.params.IdentityId = this._identityId; if (v3.isBrowser()) { - this.setStorage(\\"id\\", data.IdentityId); - if (this.params.Logins) { - this.setStorage(\\"providers\\", v3747.keys(this.params.Logins).join(\\",\\")); - } -} }; -const v3748 = {}; -v3748.constructor = v3746; -v3746.prototype = v3748; -v3720.cacheId = v3746; -var v3749; -v3749 = function getStorage(key) { return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || \\"\\")]; }; -const v3750 = {}; -v3750.constructor = v3749; -v3749.prototype = v3750; -v3720.getStorage = v3749; -var v3751; -v3751 = function setStorage(key, val) { try { - this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || \\"\\")] = val; -} -catch (_) { } }; -const v3752 = {}; -v3752.constructor = v3751; -v3751.prototype = v3752; -v3720.setStorage = v3751; -const v3753 = {}; -v3720.storage = v3753; -v3717.prototype = v3720; -v3717.__super__ = v253; -v2.CognitoIdentityCredentials = v3717; -var v3754; -var v3755 = v2; -v3754 = function SAMLCredentials(params) { v3755.Credentials.call(this); this.expired = true; this.params = params; }; -const v3756 = Object.create(v252); -v3756.constructor = v3754; -var v3757; -v3757 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3758 = {}; -v3758.constructor = v3757; -v3757.prototype = v3758; -v3756.refresh = v3757; -var v3759; -v3759 = function load(callback) { var self = this; self.createClients(); self.service.assumeRoleWithSAML(function (err, data) { if (!err) { - self.service.credentialsFrom(data, self); -} callback(err); }); }; -const v3760 = {}; -v3760.constructor = v3759; -v3759.prototype = v3760; -v3756.load = v3759; -var v3761; -var v3762 = v297; -v3761 = function () { this.service = this.service || new v3762({ params: this.params }); }; -const v3763 = {}; -v3763.constructor = v3761; -v3761.prototype = v3763; -v3756.createClients = v3761; -v3754.prototype = v3756; -v3754.__super__ = v253; -v2.SAMLCredentials = v3754; -var v3764; -var v3765 = v2; -var v3766 = v8; -v3764 = function ProcessCredentials(options) { v3765.Credentials.call(this); options = options || {}; this.filename = options.filename; this.profile = options.profile || v3766.env.AWS_PROFILE || \\"default\\"; this.get(options.callback || v65.noop); }; -const v3767 = Object.create(v252); -v3767.constructor = v3764; -var v3768; -var v3769 = v200; -var v3770 = v31; -var v3771 = v40; -var v3772 = v77; -var v3773 = v40; -v3768 = function load(callback) { var self = this; try { - var profiles = v3.getProfilesFromSharedConfig(v3769, this.filename); - var profile = profiles[this.profile] || {}; - if (v3770.keys(profile).length === 0) { - throw v3.error(new v3771(\\"Profile \\" + this.profile + \\" not found\\"), { code: \\"ProcessCredentialsProviderFailure\\" }); - } - if (profile[\\"credential_process\\"]) { - this.loadViaCredentialProcess(profile, function (err, data) { if (err) { - callback(err, null); - } - else { - self.expired = false; - self.accessKeyId = data.AccessKeyId; - self.secretAccessKey = data.SecretAccessKey; - self.sessionToken = data.SessionToken; - if (data.Expiration) { - self.expireTime = new v3772(data.Expiration); - } - callback(null); - } }); - } - else { - throw v3.error(new v3773(\\"Profile \\" + this.profile + \\" did not include credential process\\"), { code: \\"ProcessCredentialsProviderFailure\\" }); - } -} -catch (err) { - callback(err); -} }; -const v3774 = {}; -v3774.constructor = v3768; -v3768.prototype = v3774; -v3767.load = v3768; -var v3775; -const v3777 = require(\\"child_process\\"); -var v3776 = v3777; -var v3778 = v8; -var v3779 = v40; -var v3780 = v163; -var v3781 = v77; -var v3782 = v40; -var v3783 = v40; -v3775 = function loadViaCredentialProcess(profile, callback) { v3776.exec(profile[\\"credential_process\\"], { env: v3778.env }, function (err, stdOut, stdErr) { if (err) { - callback(v3.error(new v3779(\\"credential_process returned error\\"), { code: \\"ProcessCredentialsProviderFailure\\" }), null); -} -else { - try { - var credData = v3780.parse(stdOut); - if (credData.Expiration) { - var currentTime = v73.getDate(); - var expireTime = new v3781(credData.Expiration); - if (expireTime < currentTime) { - throw v3782(\\"credential_process returned expired credentials\\"); - } - } - if (credData.Version !== 1) { - throw v3779(\\"credential_process does not return Version == 1\\"); - } - callback(null, credData); - } - catch (err) { - callback(v3.error(new v3783(err.message), { code: \\"ProcessCredentialsProviderFailure\\" }), null); - } -} }); }; -const v3784 = {}; -v3784.constructor = v3775; -v3775.prototype = v3784; -v3767.loadViaCredentialProcess = v3775; -var v3785; -var v3786 = v200; -v3785 = function refresh(callback) { v3786.clearCachedFiles(); this.coalesceRefresh(callback || v65.callback); }; -const v3787 = {}; -v3787.constructor = v3785; -v3785.prototype = v3787; -v3767.refresh = v3785; -v3764.prototype = v3767; -v3764.__super__ = v253; -v2.ProcessCredentials = v3764; -v2.NodeHttpClient = v3152; -var v3788; -var v3789 = v2; -v3788 = function TokenFileWebIdentityCredentials(clientConfig) { v3789.Credentials.call(this); this.data = null; this.clientConfig = v3.copy(clientConfig || {}); }; -const v3790 = Object.create(v252); -v3790.constructor = v3788; -var v3791; -var v3792 = v8; -var v3793 = v8; -var v3794 = v8; -var v3795 = v8; -v3791 = function getParamsFromEnv() { var ENV_TOKEN_FILE = \\"AWS_WEB_IDENTITY_TOKEN_FILE\\", ENV_ROLE_ARN = \\"AWS_ROLE_ARN\\"; if (v3792.env[ENV_TOKEN_FILE] && v3793.env[ENV_ROLE_ARN]) { - return [{ envTokenFile: v3794.env[ENV_TOKEN_FILE], roleArn: v3795.env[ENV_ROLE_ARN], roleSessionName: v3795.env[\\"AWS_ROLE_SESSION_NAME\\"] }]; -} }; -const v3796 = {}; -v3796.constructor = v3791; -v3791.prototype = v3796; -v3790.getParamsFromEnv = v3791; -var v3797; -var v3798 = v200; -var v3799 = v31; -var v3800 = v40; -v3797 = function getParamsFromSharedConfig() { var profiles = v3.getProfilesFromSharedConfig(v3798); var profileName = v3793.env.AWS_PROFILE || \\"default\\"; var profile = profiles[profileName] || {}; if (v3799.keys(profile).length === 0) { - throw v3.error(new v3800(\\"Profile \\" + profileName + \\" not found\\"), { code: \\"TokenFileWebIdentityCredentialsProviderFailure\\" }); -} var paramsArray = []; while (!profile[\\"web_identity_token_file\\"] && profile[\\"source_profile\\"]) { - paramsArray.unshift({ roleArn: profile[\\"role_arn\\"], roleSessionName: profile[\\"role_session_name\\"] }); - var sourceProfile = profile[\\"source_profile\\"]; - profile = profiles[sourceProfile]; -} paramsArray.unshift({ envTokenFile: profile[\\"web_identity_token_file\\"], roleArn: profile[\\"role_arn\\"], roleSessionName: profile[\\"role_session_name\\"] }); return paramsArray; }; -const v3801 = {}; -v3801.constructor = v3797; -v3797.prototype = v3801; -v3790.getParamsFromSharedConfig = v3797; -var v3802; -v3802 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3803 = {}; -v3803.constructor = v3802; -v3802.prototype = v3803; -v3790.refresh = v3802; -var v3804; -v3804 = function assumeRoleChaining(paramsArray, callback) { var self = this; if (paramsArray.length === 0) { - self.service.credentialsFrom(self.data, self); - callback(); -} -else { - var params = paramsArray.shift(); - self.service.config.credentials = self.service.credentialsFrom(self.data, self); - self.service.assumeRole({ RoleArn: params.roleArn, RoleSessionName: params.roleSessionName || \\"token-file-web-identity\\" }, function (err, data) { self.data = null; if (err) { - callback(err); - } - else { - self.data = data; - self.assumeRoleChaining(paramsArray, callback); - } }); -} }; -const v3805 = {}; -v3805.constructor = v3804; -v3804.prototype = v3805; -v3790.assumeRoleChaining = v3804; -var v3806; -const v3808 = require(\\"fs\\"); -var v3807 = v3808; -v3806 = function load(callback) { var self = this; try { - var paramsArray = self.getParamsFromEnv(); - if (!paramsArray) { - paramsArray = self.getParamsFromSharedConfig(); - } - if (paramsArray) { - var params = paramsArray.shift(); - var oidcToken = v3807.readFileSync(params.envTokenFile, { encoding: \\"ascii\\" }); - if (!self.service) { - self.createClients(); - } - self.service.assumeRoleWithWebIdentity({ WebIdentityToken: oidcToken, RoleArn: params.roleArn, RoleSessionName: params.roleSessionName || \\"token-file-web-identity\\" }, function (err, data) { self.data = null; if (err) { - callback(err); - } - else { - self.data = data; - self.assumeRoleChaining(paramsArray, callback); - } }); - } -} -catch (err) { - callback(err); -} }; -const v3809 = {}; -v3809.constructor = v3806; -v3806.prototype = v3809; -v3790.load = v3806; -var v3810; -var v3811 = v297; -v3810 = function () { if (!this.service) { - var stsConfig = v3.merge({}, this.clientConfig); - this.service = new v3811(stsConfig); - this.service.retryableError = function (error) { if (error.code === \\"IDPCommunicationErrorException\\" || error.code === \\"InvalidIdentityToken\\") { - return true; - } - else { - return v309.retryableError.call(this, error); - } }; -} }; -const v3812 = {}; -v3812.constructor = v3810; -v3810.prototype = v3812; -v3790.createClients = v3810; -v3788.prototype = v3790; -v3788.__super__ = v253; -v2.TokenFileWebIdentityCredentials = v3788; -var v3813; -v3813 = function MetadataService(options) { if (options && options.host) { - options.endpoint = \\"http://\\" + options.host; - delete options.host; -} v3.update(this, options); }; -const v3814 = {}; -v3814.endpoint = \\"http://169.254.169.254\\"; -const v3815 = {}; -v3815.timeout = 0; -v3814.httpOptions = v3815; -v3814.disableFetchToken = false; -v3814.constructor = v3813; -var v3816; -var v3817 = v8; -var v3818 = v40; -const v3820 = URL; -var v3819 = v3820; -var v3821 = v3820; -var v3822 = v2; -v3816 = function request(path, options, callback) { if (arguments.length === 2) { - callback = options; - options = {}; -} if (v3817.env[\\"AWS_EC2_METADATA_DISABLED\\"]) { - callback(new v3818(\\"EC2 Instance Metadata Service access disabled\\")); - return; -} path = path || \\"/\\"; if (v3819) { - new v3821(this.endpoint); -} var httpRequest = new v3822.HttpRequest(this.endpoint + path); httpRequest.method = options.method || \\"GET\\"; if (options.headers) { - httpRequest.headers = options.headers; -} v3.handleRequestWithRetries(httpRequest, this, callback); }; -const v3823 = {}; -v3823.constructor = v3816; -v3816.prototype = v3823; -v3814.request = v3816; -const v3824 = []; -v3824.push(); -v3814.loadCredentialsCallbacks = v3824; -var v3825; -v3825 = function fetchMetadataToken(callback) { var self = this; var tokenFetchPath = \\"/latest/api/token\\"; self.request(tokenFetchPath, { \\"method\\": \\"PUT\\", \\"headers\\": { \\"x-aws-ec2-metadata-token-ttl-seconds\\": \\"21600\\" } }, callback); }; -const v3826 = {}; -v3826.constructor = v3825; -v3825.prototype = v3826; -v3814.fetchMetadataToken = v3825; -var v3827; -var v3828 = v163; -v3827 = function fetchCredentials(options, cb) { var self = this; var basePath = \\"/latest/meta-data/iam/security-credentials/\\"; self.request(basePath, options, function (err, roleName) { if (err) { - self.disableFetchToken = !(err.statusCode === 401); - cb(v3.error(err, { message: \\"EC2 Metadata roleName request returned error\\" })); - return; -} roleName = roleName.split(\\"\\\\n\\")[0]; self.request(basePath + roleName, options, function (credErr, credData) { if (credErr) { - self.disableFetchToken = !(credErr.statusCode === 401); - cb(v3.error(credErr, { message: \\"EC2 Metadata creds request returned error\\" })); - return; -} try { - var credentials = v3828.parse(credData); - cb(null, credentials); -} -catch (parseError) { - cb(parseError); -} }); }); }; -const v3829 = {}; -v3829.constructor = v3827; -v3827.prototype = v3829; -v3814.fetchCredentials = v3827; -var v3830; -v3830 = function loadCredentials(callback) { var self = this; self.loadCredentialsCallbacks.push(callback); if (self.loadCredentialsCallbacks.length > 1) { - return; -} function callbacks(err, creds) { var cb; while ((cb = self.loadCredentialsCallbacks.shift()) !== undefined) { - cb(err, creds); -} } if (self.disableFetchToken) { - self.fetchCredentials({}, callbacks); -} -else { - self.fetchMetadataToken(function (tokenError, token) { if (tokenError) { - if (tokenError.code === \\"TimeoutError\\") { - self.disableFetchToken = true; - } - else if (tokenError.retryable === true) { - callbacks(v3.error(tokenError, { message: \\"EC2 Metadata token request returned error\\" })); - return; - } - else if (tokenError.statusCode === 400) { - callbacks(v3.error(tokenError, { message: \\"EC2 Metadata token request returned 400\\" })); - return; - } - } var options = {}; if (token) { - options.headers = { \\"x-aws-ec2-metadata-token\\": token }; - } self.fetchCredentials(options, callbacks); }); -} }; -const v3831 = {}; -v3831.constructor = v3830; -v3830.prototype = v3831; -v3814.loadCredentials = v3830; -v3813.prototype = v3814; -v3813.__super__ = v31; -v2.MetadataService = v3813; -var v3832; -var v3833 = v2; -var v3834 = v2; -v3832 = function EC2MetadataCredentials(options) { v3833.Credentials.call(this); options = options ? v3.copy(options) : {}; options = v3.merge({ maxRetries: this.defaultMaxRetries }, options); if (!options.httpOptions) - options.httpOptions = {}; options.httpOptions = v3.merge({ timeout: this.defaultTimeout, connectTimeout: this.defaultConnectTimeout }, options.httpOptions); this.metadataService = new v3834.MetadataService(options); this.logger = options.logger || v251 && null; }; -const v3835 = Object.create(v252); -v3835.constructor = v3832; -v3835.defaultTimeout = 1000; -v3835.defaultConnectTimeout = 1000; -v3835.defaultMaxRetries = 3; -v3835.originalExpiration = undefined; -var v3836; -v3836 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3837 = {}; -v3837.constructor = v3836; -v3836.prototype = v3837; -v3835.refresh = v3836; -var v3838; -v3838 = function load(callback) { var self = this; self.metadataService.loadCredentials(function (err, creds) { if (err) { - if (self.hasLoadedCredentials()) { - self.extendExpirationIfExpired(); - callback(); - } - else { - callback(err); - } -} -else { - self.setCredentials(creds); - self.extendExpirationIfExpired(); - callback(); -} }); }; -const v3839 = {}; -v3839.constructor = v3838; -v3838.prototype = v3839; -v3835.load = v3838; -var v3840; -v3840 = function hasLoadedCredentials() { return this.AccessKeyId && this.secretAccessKey; }; -const v3841 = {}; -v3841.constructor = v3840; -v3840.prototype = v3841; -v3835.hasLoadedCredentials = v3840; -var v3842; -var v3843 = v787; -var v3844 = v787; -var v3845 = v77; -v3842 = function extendExpirationIfExpired() { if (this.needsRefresh()) { - this.originalExpiration = this.originalExpiration || this.expireTime; - this.expired = false; - var nextTimeout = 15 * 60 + v3843.floor(v3844.random() * 5 * 60); - var currentTime = v73.getDate().getTime(); - this.expireTime = new v3845(currentTime + nextTimeout * 1000); - this.logger.warn(\\"Attempting credential expiration extension due to a \\" + \\"credential service availability issue. A refresh of these \\" + \\"credentials will be attempted again at \\" + this.expireTime + \\"\\\\nFor more information, please visit: https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html\\"); -} }; -const v3846 = {}; -v3846.constructor = v3842; -v3842.prototype = v3846; -v3835.extendExpirationIfExpired = v3842; -var v3847; -var v3848 = v77; -v3847 = function setCredentials(creds) { var currentTime = v73.getDate().getTime(); var expireTime = new v3848(creds.Expiration); this.expired = currentTime >= expireTime ? true : false; this.metadata = creds; this.accessKeyId = creds.AccessKeyId; this.secretAccessKey = creds.SecretAccessKey; this.sessionToken = creds.Token; this.expireTime = expireTime; }; -const v3849 = {}; -v3849.constructor = v3847; -v3847.prototype = v3849; -v3835.setCredentials = v3847; -v3832.prototype = v3835; -v3832.__super__ = v253; -v2.EC2MetadataCredentials = v3832; -var v3850; -var v3851 = v2; -v3850 = function RemoteCredentials(options) { v3851.Credentials.call(this); options = options ? v3.copy(options) : {}; if (!options.httpOptions) - options.httpOptions = {}; options.httpOptions = v3.merge(this.httpOptions, options.httpOptions); v3.update(this, options); }; -const v3852 = Object.create(v252); -v3852.constructor = v3850; -const v3853 = {}; -v3853.timeout = 1000; -v3852.httpOptions = v3853; -v3852.maxRetries = 3; -var v3854; -var v3855 = v282; -var v3856 = v8; -var v3857 = v8; -var v3858 = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; -var v3859 = v8; -var v3860 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; -v3854 = function isConfiguredForEcsCredentials() { return v3855(v3856 && v3856.env && (v3857.env[v3858] || v3859.env[v3860])); }; -const v3861 = {}; -v3861.constructor = v3854; -v3854.prototype = v3861; -v3852.isConfiguredForEcsCredentials = v3854; -var v3862; -var v3863 = v8; -var v3864 = v8; -var v3865 = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; -var v3866 = v8; -var v3867 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; -var v3868 = \\"169.254.170.2\\"; -const v3870 = []; -v3870.push(\\"http:\\", \\"https:\\"); -var v3869 = v3870; -var v3871 = v40; -var v3872 = v3870; -const v3874 = []; -v3874.push(\\"https:\\"); -var v3873 = v3874; -const v3876 = []; -v3876.push(\\"localhost\\", \\"127.0.0.1\\"); -var v3875 = v3876; -var v3877 = v40; -var v3878 = v3876; -var v3879 = v40; -var v3880 = \\"AWS_CONTAINER_CREDENTIALS_RELATIVE_URI\\"; -var v3881 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; -var v3882 = v40; -v3862 = function getECSFullUri() { if (v3857 && v3863.env) { - var relative = v3864.env[v3865], full = v3866.env[v3867]; - if (relative) { - return \\"http://\\" + v3868 + relative; - } - else if (full) { - var parsed = v3.urlParse(full); - if (v3869.indexOf(parsed.protocol) < 0) { - throw v3.error(new v3871(\\"Unsupported protocol: AWS.RemoteCredentials supports \\" + v3872.join(\\",\\") + \\" only; \\" + parsed.protocol + \\" requested.\\"), { code: \\"ECSCredentialsProviderFailure\\" }); - } - if (v3873.indexOf(parsed.protocol) < 0 && v3875.indexOf(parsed.hostname) < 0) { - throw v3.error(new v3877(\\"Unsupported hostname: AWS.RemoteCredentials only supports \\" + v3878.join(\\",\\") + \\" for \\" + parsed.protocol + \\"; \\" + parsed.protocol + \\"//\\" + parsed.hostname + \\" requested.\\"), { code: \\"ECSCredentialsProviderFailure\\" }); - } - return full; - } - else { - throw v3.error(new v3879(\\"Variable \\" + v3880 + \\" or \\" + v3881 + \\" must be set to use AWS.RemoteCredentials.\\"), { code: \\"ECSCredentialsProviderFailure\\" }); - } -} -else { - throw v3.error(new v3882(\\"No process info available\\"), { code: \\"ECSCredentialsProviderFailure\\" }); -} }; -const v3883 = {}; -v3883.constructor = v3862; -v3862.prototype = v3883; -v3852.getECSFullUri = v3862; -var v3884; -var v3885 = v8; -var v3886 = v8; -var v3887 = v8; -var v3888 = \\"AWS_CONTAINER_CREDENTIALS_FULL_URI\\"; -var v3889 = \\"AWS_CONTAINER_AUTHORIZATION_TOKEN\\"; -v3884 = function getECSAuthToken() { if (v3885 && v3886.env && v3887.env[v3888]) { - return v3885.env[v3889]; -} }; -const v3890 = {}; -v3890.constructor = v3884; -v3884.prototype = v3890; -v3852.getECSAuthToken = v3884; -var v3891; -v3891 = function credsFormatIsValid(credData) { return (!!credData.accessKeyId && !!credData.secretAccessKey && !!credData.sessionToken && !!credData.expireTime); }; -const v3892 = {}; -v3892.constructor = v3891; -v3891.prototype = v3892; -v3852.credsFormatIsValid = v3891; -var v3893; -var v3894 = v77; -v3893 = function formatCreds(credData) { if (!!credData.credentials) { - credData = credData.credentials; -} return { expired: false, accessKeyId: credData.accessKeyId || credData.AccessKeyId, secretAccessKey: credData.secretAccessKey || credData.SecretAccessKey, sessionToken: credData.sessionToken || credData.Token, expireTime: new v3894(credData.expiration || credData.Expiration) }; }; -const v3895 = {}; -v3895.constructor = v3893; -v3893.prototype = v3895; -v3852.formatCreds = v3893; -var v3896; -var v3897 = v2; -v3896 = function request(url, callback) { var httpRequest = new v3897.HttpRequest(url); httpRequest.method = \\"GET\\"; httpRequest.headers.Accept = \\"application/json\\"; var token = this.getECSAuthToken(); if (token) { - httpRequest.headers.Authorization = token; -} v3.handleRequestWithRetries(httpRequest, this, callback); }; -const v3898 = {}; -v3898.constructor = v3896; -v3896.prototype = v3898; -v3852.request = v3896; -var v3899; -v3899 = function refresh(callback) { this.coalesceRefresh(callback || v65.callback); }; -const v3900 = {}; -v3900.constructor = v3899; -v3899.prototype = v3900; -v3852.refresh = v3899; -var v3901; -var v3902 = v163; -var v3903 = v40; -var v3904 = undefined; -v3901 = function load(callback) { var self = this; var fullUri; try { - fullUri = this.getECSFullUri(); -} -catch (err) { - callback(err); - return; -} this.request(fullUri, function (err, data) { if (!err) { - try { - data = v3902.parse(data); - var creds = self.formatCreds(data); - if (!self.credsFormatIsValid(creds)) { - throw v3.error(new v3903(\\"Response data is not in valid format\\"), { code: \\"ECSCredentialsProviderFailure\\" }); - } - v3.update(self, creds); - } - catch (dataError) { - err = dataError; - } -} callback(err, v3904); }); }; -const v3905 = {}; -v3905.constructor = v3901; -v3901.prototype = v3905; -v3852.load = v3901; -v3850.prototype = v3852; -v3850.__super__ = v253; -v2.RemoteCredentials = v3850; -v2.ECSCredentials = v3850; -var v3906; -var v3907 = v2; -v3906 = function EnvironmentCredentials(envPrefix) { v3907.Credentials.call(this); this.envPrefix = envPrefix; this.get(function () { }); }; -const v3908 = Object.create(v252); -v3908.constructor = v3906; -var v3909; -var v3910 = v8; -var v3911 = v8; -var v3912 = v40; -var v3913 = v8; -var v3914 = v2; -v3909 = function refresh(callback) { if (!callback) - callback = v65.callback; if (!v3910 || !v3911.env) { - callback(v3.error(new v3912(\\"No process info or environment variables available\\"), { code: \\"EnvironmentCredentialsProviderFailure\\" })); - return; -} var keys = [\\"ACCESS_KEY_ID\\", \\"SECRET_ACCESS_KEY\\", \\"SESSION_TOKEN\\"]; var values = []; for (var i = 0; i < keys.length; i++) { - var prefix = \\"\\"; - if (this.envPrefix) - prefix = this.envPrefix + \\"_\\"; - values[i] = v3913.env[prefix + keys[i]]; - if (!values[i] && keys[i] !== \\"SESSION_TOKEN\\") { - callback(v3.error(new v3912(\\"Variable \\" + prefix + keys[i] + \\" not set.\\"), { code: \\"EnvironmentCredentialsProviderFailure\\" })); - return; - } -} this.expired = false; v3914.Credentials.apply(this, values); callback(); }; -const v3915 = {}; -v3915.constructor = v3909; -v3909.prototype = v3915; -v3908.refresh = v3909; -v3906.prototype = v3908; -v3906.__super__ = v253; -v2.EnvironmentCredentials = v3906; -var v3916; -var v3917 = v2; -v3916 = function FileSystemCredentials(filename) { v3917.Credentials.call(this); this.filename = filename; this.get(function () { }); }; -const v3918 = Object.create(v252); -v3918.constructor = v3916; -var v3919; -var v3920 = v163; -var v3921 = v2; -var v3922 = v40; -v3919 = function refresh(callback) { if (!callback) - callback = v65.callback; try { - var creds = v3920.parse(v3.readFileSync(this.filename)); - v3921.Credentials.call(this, creds); - if (!this.accessKeyId || !this.secretAccessKey) { - throw v3.error(new v3922(\\"Credentials not set in \\" + this.filename), { code: \\"FileSystemCredentialsProviderFailure\\" }); - } - this.expired = false; - callback(); -} -catch (err) { - callback(err); -} }; -const v3923 = {}; -v3923.constructor = v3919; -v3919.prototype = v3923; -v3918.refresh = v3919; -v3916.prototype = v3918; -v3916.__super__ = v253; -v2.FileSystemCredentials = v3916; -v2.SharedIniFileCredentials = v278; -var v3924; -var v3925 = v2; -var v3926 = v8; -v3924 = function SsoCredentials(options) { v3925.Credentials.call(this); options = options || {}; this.errorCode = \\"SsoCredentialsProviderFailure\\"; this.expired = true; this.filename = options.filename; this.profile = options.profile || v3926.env.AWS_PROFILE || \\"default\\"; this.service = options.ssoClient; this.get(options.callback || v65.noop); }; -const v3927 = Object.create(v252); -v3927.constructor = v3924; -var v3928; -var v3929 = v200; -var v3930 = v31; -var v3931 = v40; -var v3932 = v40; -var v3933 = v96; -var v3934 = v192; -var v3935 = v200; -var v3936 = v163; -var v3937 = v40; -var v3938 = v40; -var v3939 = v77; -var v3940 = v40; -var v3941 = v2; -var v3942 = v40; -var v3943 = v77; -v3928 = function load(callback) { var EXPIRE_WINDOW_MS = 15 * 60 * 1000; var self = this; try { - var profiles = v3.getProfilesFromSharedConfig(v3929, this.filename); - var profile = profiles[this.profile] || {}; - if (v3930.keys(profile).length === 0) { - throw v3.error(new v3931(\\"Profile \\" + this.profile + \\" not found\\"), { code: self.errorCode }); - } - if (!profile.sso_start_url || !profile.sso_account_id || !profile.sso_region || !profile.sso_role_name) { - throw v3.error(new v3932(\\"Profile \\" + this.profile + \\" does not have valid SSO credentials. Required parameters \\\\\\"sso_account_id\\\\\\", \\\\\\"sso_region\\\\\\", \\" + \\"\\\\\\"sso_role_name\\\\\\", \\\\\\"sso_start_url\\\\\\". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html\\"), { code: self.errorCode }); - } - var hasher = v3933.createHash(\\"sha1\\"); - var fileName = hasher.update(profile.sso_start_url).digest(\\"hex\\") + \\".json\\"; - var cachePath = v3934.join(v3935.getHomeDir(), \\".aws\\", \\"sso\\", \\"cache\\", fileName); - var cacheFile = v3.readFileSync(cachePath); - var cacheContent = null; - if (cacheFile) { - cacheContent = v3936.parse(cacheFile); - } - if (!cacheContent) { - throw v3.error(new v3937(\\"Cached credentials not found under \\" + this.profile + \\" profile. Please make sure you log in with aws sso login first\\"), { code: self.errorCode }); - } - if (!cacheContent.startUrl || !cacheContent.region || !cacheContent.accessToken || !cacheContent.expiresAt) { - throw v3.error(new v3938(\\"Cached credentials are missing required properties. Try running aws sso login.\\")); - } - if (new v3939(cacheContent.expiresAt).getTime() - v3939.now() <= EXPIRE_WINDOW_MS) { - throw v3.error(new v3940(\\"The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.\\")); - } - if (!self.service || self.service.config.region !== profile.sso_region) { - self.service = new v3941.SSO({ region: profile.sso_region }); - } - var request = { accessToken: cacheContent.accessToken, accountId: profile.sso_account_id, roleName: profile.sso_role_name }; - self.service.getRoleCredentials(request, function (err, data) { if (err || !data || !data.roleCredentials) { - callback(v3.error(err || new v3942(\\"Please log in using \\\\\\"aws sso login\\\\\\"\\"), { code: self.errorCode }), null); - } - else if (!data.roleCredentials.accessKeyId || !data.roleCredentials.secretAccessKey || !data.roleCredentials.sessionToken || !data.roleCredentials.expiration) { - throw v3.error(new v3942(\\"SSO returns an invalid temporary credential.\\")); - } - else { - self.expired = false; - self.accessKeyId = data.roleCredentials.accessKeyId; - self.secretAccessKey = data.roleCredentials.secretAccessKey; - self.sessionToken = data.roleCredentials.sessionToken; - self.expireTime = new v3943(data.roleCredentials.expiration); - callback(null); - } }); -} -catch (err) { - callback(err); -} }; -const v3944 = {}; -v3944.constructor = v3928; -v3928.prototype = v3944; -v3927.load = v3928; -var v3945; -var v3946 = v200; -v3945 = function refresh(callback) { v3946.clearCachedFiles(); this.coalesceRefresh(callback || v65.callback); }; -const v3947 = {}; -v3947.constructor = v3945; -v3945.prototype = v3947; -v3927.refresh = v3945; -v3924.prototype = v3927; -v3924.__super__ = v253; -v2.SsoCredentials = v3924; -var v3948; -var v3949 = v299; -var v3950 = v31; -v3948 = function () { if (v3949 !== v3950) { - return v3949.apply(this, arguments); -} }; -const v3951 = Object.create(v309); -v3951.constructor = v3948; -const v3952 = {}; -const v3953 = []; -var v3954; -var v3955 = v31; -var v3956 = v3951; -v3954 = function EVENTS_BUBBLE(event) { var baseClass = v3955.getPrototypeOf(v3956); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v3957 = {}; -v3957.constructor = v3954; -v3954.prototype = v3957; -v3953.push(v3954); -v3952.apiCallAttempt = v3953; -const v3958 = []; -var v3959; -v3959 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v387.getPrototypeOf(v3956); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v3960 = {}; -v3960.constructor = v3959; -v3959.prototype = v3960; -v3958.push(v3959); -v3952.apiCall = v3958; -v3951._events = v3952; -v3951.MONITOR_EVENTS_BUBBLE = v3954; -v3951.CALL_EVENTS_BUBBLE = v3959; -v3948.prototype = v3951; -v3948.__super__ = v299; -const v3961 = {}; -v3961[\\"2015-12-08\\"] = null; -v3948.services = v3961; -const v3962 = []; -v3962.push(\\"2015-12-08\\"); -v3948.apiVersions = v3962; -v3948.serviceIdentifier = \\"acm\\"; -v2.ACM = v3948; -var v3963; -var v3964 = v299; -var v3965 = v31; -v3963 = function () { if (v3964 !== v3965) { - return v3964.apply(this, arguments); -} }; -const v3966 = Object.create(v309); -v3966.constructor = v3963; -const v3967 = {}; -const v3968 = []; -var v3969; -var v3970 = v31; -var v3971 = v3966; -v3969 = function EVENTS_BUBBLE(event) { var baseClass = v3970.getPrototypeOf(v3971); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v3972 = {}; -v3972.constructor = v3969; -v3969.prototype = v3972; -v3968.push(v3969); -v3967.apiCallAttempt = v3968; -const v3973 = []; -var v3974; -v3974 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v3955.getPrototypeOf(v3971); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v3975 = {}; -v3975.constructor = v3974; -v3974.prototype = v3975; -v3973.push(v3974); -v3967.apiCall = v3973; -v3966._events = v3967; -v3966.MONITOR_EVENTS_BUBBLE = v3969; -v3966.CALL_EVENTS_BUBBLE = v3974; -var v3976; -v3976 = function setAcceptHeader(req) { var httpRequest = req.httpRequest; if (!httpRequest.headers.Accept) { - httpRequest.headers[\\"Accept\\"] = \\"application/json\\"; -} }; -const v3977 = {}; -v3977.constructor = v3976; -v3976.prototype = v3977; -v3966.setAcceptHeader = v3976; -var v3978; -v3978 = function setupRequestListeners(request) { request.addListener(\\"build\\", this.setAcceptHeader); if (request.operation === \\"getExport\\") { - var params = request.params || {}; - if (params.exportType === \\"swagger\\") { - request.addListener(\\"extractData\\", v3.convertPayloadToString); - } -} }; -const v3979 = {}; -v3979.constructor = v3978; -v3978.prototype = v3979; -v3966.setupRequestListeners = v3978; -v3963.prototype = v3966; -v3963.__super__ = v299; -const v3980 = {}; -v3980[\\"2015-07-09\\"] = null; -v3963.services = v3980; -const v3981 = []; -v3981.push(\\"2015-07-09\\"); -v3963.apiVersions = v3981; -v3963.serviceIdentifier = \\"apigateway\\"; -v2.APIGateway = v3963; -var v3982; -var v3983 = v299; -var v3984 = v31; -v3982 = function () { if (v3983 !== v3984) { - return v3983.apply(this, arguments); -} }; -const v3985 = Object.create(v309); -v3985.constructor = v3982; -const v3986 = {}; -const v3987 = []; -var v3988; -var v3989 = v31; -var v3990 = v3985; -v3988 = function EVENTS_BUBBLE(event) { var baseClass = v3989.getPrototypeOf(v3990); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v3991 = {}; -v3991.constructor = v3988; -v3988.prototype = v3991; -v3987.push(v3988); -v3986.apiCallAttempt = v3987; -const v3992 = []; -var v3993; -v3993 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v3970.getPrototypeOf(v3990); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v3994 = {}; -v3994.constructor = v3993; -v3993.prototype = v3994; -v3992.push(v3993); -v3986.apiCall = v3992; -v3985._events = v3986; -v3985.MONITOR_EVENTS_BUBBLE = v3988; -v3985.CALL_EVENTS_BUBBLE = v3993; -v3982.prototype = v3985; -v3982.__super__ = v299; -const v3995 = {}; -v3995[\\"2016-02-06\\"] = null; -v3982.services = v3995; -const v3996 = []; -v3996.push(\\"2016-02-06\\"); -v3982.apiVersions = v3996; -v3982.serviceIdentifier = \\"applicationautoscaling\\"; -v2.ApplicationAutoScaling = v3982; -var v3997; -var v3998 = v299; -var v3999 = v31; -v3997 = function () { if (v3998 !== v3999) { - return v3998.apply(this, arguments); -} }; -const v4000 = Object.create(v309); -v4000.constructor = v3997; -const v4001 = {}; -const v4002 = []; -var v4003; -var v4004 = v31; -var v4005 = v4000; -v4003 = function EVENTS_BUBBLE(event) { var baseClass = v4004.getPrototypeOf(v4005); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4006 = {}; -v4006.constructor = v4003; -v4003.prototype = v4006; -v4002.push(v4003); -v4001.apiCallAttempt = v4002; -const v4007 = []; -var v4008; -v4008 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v3989.getPrototypeOf(v4005); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4009 = {}; -v4009.constructor = v4008; -v4008.prototype = v4009; -v4007.push(v4008); -v4001.apiCall = v4007; -v4000._events = v4001; -v4000.MONITOR_EVENTS_BUBBLE = v4003; -v4000.CALL_EVENTS_BUBBLE = v4008; -v3997.prototype = v4000; -v3997.__super__ = v299; -const v4010 = {}; -v4010[\\"2016-12-01\\"] = null; -v3997.services = v4010; -const v4011 = []; -v4011.push(\\"2016-12-01\\"); -v3997.apiVersions = v4011; -v3997.serviceIdentifier = \\"appstream\\"; -v2.AppStream = v3997; -var v4012; -var v4013 = v299; -var v4014 = v31; -v4012 = function () { if (v4013 !== v4014) { - return v4013.apply(this, arguments); -} }; -const v4015 = Object.create(v309); -v4015.constructor = v4012; -const v4016 = {}; -const v4017 = []; -var v4018; -var v4019 = v31; -var v4020 = v4015; -v4018 = function EVENTS_BUBBLE(event) { var baseClass = v4019.getPrototypeOf(v4020); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4021 = {}; -v4021.constructor = v4018; -v4018.prototype = v4021; -v4017.push(v4018); -v4016.apiCallAttempt = v4017; -const v4022 = []; -var v4023; -v4023 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4004.getPrototypeOf(v4020); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4024 = {}; -v4024.constructor = v4023; -v4023.prototype = v4024; -v4022.push(v4023); -v4016.apiCall = v4022; -v4015._events = v4016; -v4015.MONITOR_EVENTS_BUBBLE = v4018; -v4015.CALL_EVENTS_BUBBLE = v4023; -v4012.prototype = v4015; -v4012.__super__ = v299; -const v4025 = {}; -v4025[\\"2011-01-01\\"] = null; -v4012.services = v4025; -const v4026 = []; -v4026.push(\\"2011-01-01\\"); -v4012.apiVersions = v4026; -v4012.serviceIdentifier = \\"autoscaling\\"; -v2.AutoScaling = v4012; -var v4027; -var v4028 = v299; -var v4029 = v31; -v4027 = function () { if (v4028 !== v4029) { - return v4028.apply(this, arguments); -} }; -const v4030 = Object.create(v309); -v4030.constructor = v4027; -const v4031 = {}; -const v4032 = []; -var v4033; -var v4034 = v31; -var v4035 = v4030; -v4033 = function EVENTS_BUBBLE(event) { var baseClass = v4034.getPrototypeOf(v4035); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4036 = {}; -v4036.constructor = v4033; -v4033.prototype = v4036; -v4032.push(v4033); -v4031.apiCallAttempt = v4032; -const v4037 = []; -var v4038; -v4038 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4019.getPrototypeOf(v4035); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4039 = {}; -v4039.constructor = v4038; -v4038.prototype = v4039; -v4037.push(v4038); -v4031.apiCall = v4037; -v4030._events = v4031; -v4030.MONITOR_EVENTS_BUBBLE = v4033; -v4030.CALL_EVENTS_BUBBLE = v4038; -v4027.prototype = v4030; -v4027.__super__ = v299; -const v4040 = {}; -v4040[\\"2016-08-10\\"] = null; -v4027.services = v4040; -const v4041 = []; -v4041.push(\\"2016-08-10\\"); -v4027.apiVersions = v4041; -v4027.serviceIdentifier = \\"batch\\"; -v2.Batch = v4027; -var v4042; -var v4043 = v299; -var v4044 = v31; -v4042 = function () { if (v4043 !== v4044) { - return v4043.apply(this, arguments); -} }; -const v4045 = Object.create(v309); -v4045.constructor = v4042; -const v4046 = {}; -const v4047 = []; -var v4048; -var v4049 = v31; -var v4050 = v4045; -v4048 = function EVENTS_BUBBLE(event) { var baseClass = v4049.getPrototypeOf(v4050); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4051 = {}; -v4051.constructor = v4048; -v4048.prototype = v4051; -v4047.push(v4048); -v4046.apiCallAttempt = v4047; -const v4052 = []; -var v4053; -v4053 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4034.getPrototypeOf(v4050); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4054 = {}; -v4054.constructor = v4053; -v4053.prototype = v4054; -v4052.push(v4053); -v4046.apiCall = v4052; -v4045._events = v4046; -v4045.MONITOR_EVENTS_BUBBLE = v4048; -v4045.CALL_EVENTS_BUBBLE = v4053; -v4042.prototype = v4045; -v4042.__super__ = v299; -const v4055 = {}; -v4055[\\"2016-10-20\\"] = null; -v4042.services = v4055; -const v4056 = []; -v4056.push(\\"2016-10-20\\"); -v4042.apiVersions = v4056; -v4042.serviceIdentifier = \\"budgets\\"; -v2.Budgets = v4042; -var v4057; -var v4058 = v299; -var v4059 = v31; -v4057 = function () { if (v4058 !== v4059) { - return v4058.apply(this, arguments); -} }; -const v4060 = Object.create(v309); -v4060.constructor = v4057; -const v4061 = {}; -const v4062 = []; -var v4063; -var v4064 = v31; -var v4065 = v4060; -v4063 = function EVENTS_BUBBLE(event) { var baseClass = v4064.getPrototypeOf(v4065); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4066 = {}; -v4066.constructor = v4063; -v4063.prototype = v4066; -v4062.push(v4063); -v4061.apiCallAttempt = v4062; -const v4067 = []; -var v4068; -v4068 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4049.getPrototypeOf(v4065); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4069 = {}; -v4069.constructor = v4068; -v4068.prototype = v4069; -v4067.push(v4068); -v4061.apiCall = v4067; -v4060._events = v4061; -v4060.MONITOR_EVENTS_BUBBLE = v4063; -v4060.CALL_EVENTS_BUBBLE = v4068; -v4057.prototype = v4060; -v4057.__super__ = v299; -const v4070 = {}; -v4070[\\"2016-05-10\\"] = null; -v4070[\\"2016-05-10*\\"] = null; -v4070[\\"2017-01-11\\"] = null; -v4057.services = v4070; -const v4071 = []; -v4071.push(\\"2016-05-10\\", \\"2016-05-10*\\", \\"2017-01-11\\"); -v4057.apiVersions = v4071; -v4057.serviceIdentifier = \\"clouddirectory\\"; -v2.CloudDirectory = v4057; -var v4072; -var v4073 = v299; -var v4074 = v31; -v4072 = function () { if (v4073 !== v4074) { - return v4073.apply(this, arguments); -} }; -const v4075 = Object.create(v309); -v4075.constructor = v4072; -const v4076 = {}; -const v4077 = []; -var v4078; -var v4079 = v31; -var v4080 = v4075; -v4078 = function EVENTS_BUBBLE(event) { var baseClass = v4079.getPrototypeOf(v4080); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4081 = {}; -v4081.constructor = v4078; -v4078.prototype = v4081; -v4077.push(v4078); -v4076.apiCallAttempt = v4077; -const v4082 = []; -var v4083; -v4083 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4064.getPrototypeOf(v4080); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4084 = {}; -v4084.constructor = v4083; -v4083.prototype = v4084; -v4082.push(v4083); -v4076.apiCall = v4082; -v4075._events = v4076; -v4075.MONITOR_EVENTS_BUBBLE = v4078; -v4075.CALL_EVENTS_BUBBLE = v4083; -v4072.prototype = v4075; -v4072.__super__ = v299; -const v4085 = {}; -v4085[\\"2010-05-15\\"] = null; -v4072.services = v4085; -const v4086 = []; -v4086.push(\\"2010-05-15\\"); -v4072.apiVersions = v4086; -v4072.serviceIdentifier = \\"cloudformation\\"; -v2.CloudFormation = v4072; -var v4087; -var v4088 = v299; -var v4089 = v31; -v4087 = function () { if (v4088 !== v4089) { - return v4088.apply(this, arguments); -} }; -const v4090 = Object.create(v309); -v4090.constructor = v4087; -const v4091 = {}; -const v4092 = []; -var v4093; -var v4094 = v31; -var v4095 = v4090; -v4093 = function EVENTS_BUBBLE(event) { var baseClass = v4094.getPrototypeOf(v4095); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4096 = {}; -v4096.constructor = v4093; -v4093.prototype = v4096; -v4092.push(v4093); -v4091.apiCallAttempt = v4092; -const v4097 = []; -var v4098; -v4098 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4079.getPrototypeOf(v4095); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4099 = {}; -v4099.constructor = v4098; -v4098.prototype = v4099; -v4097.push(v4098); -v4091.apiCall = v4097; -v4090._events = v4091; -v4090.MONITOR_EVENTS_BUBBLE = v4093; -v4090.CALL_EVENTS_BUBBLE = v4098; -var v4100; -v4100 = function setupRequestListeners(request) { request.addListener(\\"extractData\\", v3.hoistPayloadMember); }; -const v4101 = {}; -v4101.constructor = v4100; -v4100.prototype = v4101; -v4090.setupRequestListeners = v4100; -v4087.prototype = v4090; -v4087.__super__ = v299; -const v4102 = {}; -v4102[\\"2013-05-12*\\"] = null; -v4102[\\"2013-11-11*\\"] = null; -v4102[\\"2014-05-31*\\"] = null; -v4102[\\"2014-10-21*\\"] = null; -v4102[\\"2014-11-06*\\"] = null; -v4102[\\"2015-04-17*\\"] = null; -v4102[\\"2015-07-27*\\"] = null; -v4102[\\"2015-09-17*\\"] = null; -v4102[\\"2016-01-13*\\"] = null; -v4102[\\"2016-01-28*\\"] = null; -v4102[\\"2016-08-01*\\"] = null; -v4102[\\"2016-08-20*\\"] = null; -v4102[\\"2016-09-07*\\"] = null; -v4102[\\"2016-09-29*\\"] = null; -v4102[\\"2016-11-25\\"] = null; -v4102[\\"2016-11-25*\\"] = null; -v4102[\\"2017-03-25\\"] = null; -v4102[\\"2017-03-25*\\"] = null; -v4102[\\"2017-10-30\\"] = null; -v4102[\\"2017-10-30*\\"] = null; -v4102[\\"2018-06-18\\"] = null; -v4102[\\"2018-06-18*\\"] = null; -v4102[\\"2018-11-05\\"] = null; -v4102[\\"2018-11-05*\\"] = null; -v4102[\\"2019-03-26\\"] = null; -v4102[\\"2019-03-26*\\"] = null; -v4102[\\"2020-05-31\\"] = null; -v4087.services = v4102; -const v4103 = []; -v4103.push(\\"2013-05-12*\\", \\"2013-11-11*\\", \\"2014-05-31*\\", \\"2014-10-21*\\", \\"2014-11-06*\\", \\"2015-04-17*\\", \\"2015-07-27*\\", \\"2015-09-17*\\", \\"2016-01-13*\\", \\"2016-01-28*\\", \\"2016-08-01*\\", \\"2016-08-20*\\", \\"2016-09-07*\\", \\"2016-09-29*\\", \\"2016-11-25\\", \\"2016-11-25*\\", \\"2017-03-25\\", \\"2017-03-25*\\", \\"2017-10-30\\", \\"2017-10-30*\\", \\"2018-06-18\\", \\"2018-06-18*\\", \\"2018-11-05\\", \\"2018-11-05*\\", \\"2019-03-26\\", \\"2019-03-26*\\", \\"2020-05-31\\"); -v4087.apiVersions = v4103; -v4087.serviceIdentifier = \\"cloudfront\\"; -var v4104; -var v4105 = v40; -v4104 = function Signer(keyPairId, privateKey) { if (keyPairId === void 0 || privateKey === void 0) { - throw new v4105(\\"A key pair ID and private key are required\\"); -} this.keyPairId = keyPairId; this.privateKey = privateKey; }; -const v4106 = {}; -v4106.constructor = v4104; -var v4107; -var v4109; -var v4111; -v4111 = function (string) { var replacements = { \\"+\\": \\"-\\", \\"=\\": \\"_\\", \\"/\\": \\"~\\" }; return string.replace(/[\\\\+=\\\\/]/g, function (match) { return replacements[match]; }); }; -const v4112 = {}; -v4112.constructor = v4111; -v4111.prototype = v4112; -var v4110 = v4111; -var v4113 = v38; -var v4115; -var v4116 = v96; -var v4117 = v4111; -v4115 = function (policy, privateKey) { var sign = v4116.createSign(\\"RSA-SHA1\\"); sign.write(policy); return v4117(sign.sign(privateKey, \\"base64\\")); }; -const v4118 = {}; -v4118.constructor = v4115; -v4115.prototype = v4118; -var v4114 = v4115; -v4109 = function (policy, keyPairId, privateKey) { policy = policy.replace(/\\\\s/gm, \\"\\"); return { Policy: v4110(v4113(policy)), \\"Key-Pair-Id\\": keyPairId, Signature: v4114(policy, privateKey) }; }; -const v4119 = {}; -v4119.constructor = v4109; -v4109.prototype = v4119; -var v4108 = v4109; -var v4121; -var v4122 = v163; -var v4123 = v4115; -v4121 = function (url, expires, keyPairId, privateKey) { var policy = v4122.stringify({ Statement: [{ Resource: url, Condition: { DateLessThan: { \\"AWS:EpochTime\\": expires } } }] }); return { Expires: expires, \\"Key-Pair-Id\\": keyPairId, Signature: v4123(policy.toString(), privateKey) }; }; -const v4124 = {}; -v4124.constructor = v4121; -v4121.prototype = v4124; -var v4120 = v4121; -var v4126; -v4126 = function (result, callback) { if (!callback || typeof callback !== \\"function\\") { - return result; -} callback(null, result); }; -const v4127 = {}; -v4127.constructor = v4126; -v4126.prototype = v4127; -var v4125 = v4126; -v4107 = function (options, cb) { var signatureHash = \\"policy\\" in options ? v4108(options.policy, this.keyPairId, this.privateKey) : v4120(options.url, options.expires, this.keyPairId, this.privateKey); var cookieHash = {}; for (var key in signatureHash) { - if (v113.hasOwnProperty.call(signatureHash, key)) { - cookieHash[\\"CloudFront-\\" + key] = signatureHash[key]; - } -} return v4125(cookieHash, cb); }; -const v4128 = {}; -v4128.constructor = v4107; -v4107.prototype = v4128; -v4106.getSignedCookie = v4107; -var v4129; -var v4131; -var v4133; -var v4134 = v40; -v4133 = function (url) { var parts = url.split(\\"://\\"); if (parts.length < 2) { - throw new v4134(\\"Invalid URL.\\"); -} return parts[0].replace(\\"*\\", \\"\\"); }; -const v4135 = {}; -v4135.constructor = v4133; -v4133.prototype = v4135; -var v4132 = v4133; -var v4137; -var v4138 = v22; -v4137 = function (rtmpUrl) { var parsed = v4138.parse(rtmpUrl); return parsed.path.replace(/^\\\\//, \\"\\") + (parsed.hash || \\"\\"); }; -const v4139 = {}; -v4139.constructor = v4137; -v4137.prototype = v4139; -var v4136 = v4137; -var v4140 = v40; -v4131 = function (url) { switch (v4132(url)) { - case \\"http\\": - case \\"https\\": return url; - case \\"rtmp\\": return v4136(url); - default: throw new v4140(\\"Invalid URI scheme. Scheme must be one of\\" + \\" http, https, or rtmp\\"); -} }; -const v4141 = {}; -v4141.constructor = v4131; -v4131.prototype = v4141; -var v4130 = v4131; -var v4143; -v4143 = function (err, callback) { if (!callback || typeof callback !== \\"function\\") { - throw err; -} callback(err); }; -const v4144 = {}; -v4144.constructor = v4143; -v4143.prototype = v4144; -var v4142 = v4143; -var v4145 = v22; -var v4146 = v4109; -var v4147 = v4121; -var v4148 = undefined; -var v4149 = v4133; -var v4150 = v4137; -var v4151 = v22; -var v4152 = v22; -var v4153 = v4143; -var v4154 = v4126; -var v4155 = undefined; -v4129 = function (options, cb) { try { - var resource = v4130(options.url); -} -catch (err) { - return v4142(err, cb); -} var parsedUrl = v4145.parse(options.url, true), signatureHash = v113.hasOwnProperty.call(options, \\"policy\\") ? v4146(options.policy, this.keyPairId, this.privateKey) : v4147(v4148, options.expires, this.keyPairId, this.privateKey); parsedUrl.search = null; for (var key in signatureHash) { - if (v113.hasOwnProperty.call(signatureHash, key)) { - parsedUrl.query[key] = signatureHash[key]; - } -} try { - var signedUrl = v4149(options.url) === \\"rtmp\\" ? v4150(v4151.format(parsedUrl)) : v4152.format(parsedUrl); -} -catch (err) { - return v4153(err, cb); -} return v4154(v4155, cb); }; -const v4156 = {}; -v4156.constructor = v4129; -v4129.prototype = v4156; -v4106.getSignedUrl = v4129; -v4104.prototype = v4106; -v4104.__super__ = v31; -v4087.Signer = v4104; -v2.CloudFront = v4087; -var v4157; -var v4158 = v299; -var v4159 = v31; -v4157 = function () { if (v4158 !== v4159) { - return v4158.apply(this, arguments); -} }; -const v4160 = Object.create(v309); -v4160.constructor = v4157; -const v4161 = {}; -const v4162 = []; -var v4163; -var v4164 = v31; -var v4165 = v4160; -v4163 = function EVENTS_BUBBLE(event) { var baseClass = v4164.getPrototypeOf(v4165); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4166 = {}; -v4166.constructor = v4163; -v4163.prototype = v4166; -v4162.push(v4163); -v4161.apiCallAttempt = v4162; -const v4167 = []; -var v4168; -v4168 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4094.getPrototypeOf(v4165); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4169 = {}; -v4169.constructor = v4168; -v4168.prototype = v4169; -v4167.push(v4168); -v4161.apiCall = v4167; -v4160._events = v4161; -v4160.MONITOR_EVENTS_BUBBLE = v4163; -v4160.CALL_EVENTS_BUBBLE = v4168; -v4157.prototype = v4160; -v4157.__super__ = v299; -const v4170 = {}; -v4170[\\"2014-05-30\\"] = null; -v4157.services = v4170; -const v4171 = []; -v4171.push(\\"2014-05-30\\"); -v4157.apiVersions = v4171; -v4157.serviceIdentifier = \\"cloudhsm\\"; -v2.CloudHSM = v4157; -var v4172; -var v4173 = v299; -var v4174 = v31; -v4172 = function () { if (v4173 !== v4174) { - return v4173.apply(this, arguments); -} }; -const v4175 = Object.create(v309); -v4175.constructor = v4172; -const v4176 = {}; -const v4177 = []; -var v4178; -var v4179 = v31; -var v4180 = v4175; -v4178 = function EVENTS_BUBBLE(event) { var baseClass = v4179.getPrototypeOf(v4180); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4181 = {}; -v4181.constructor = v4178; -v4178.prototype = v4181; -v4177.push(v4178); -v4176.apiCallAttempt = v4177; -const v4182 = []; -var v4183; -v4183 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4164.getPrototypeOf(v4180); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4184 = {}; -v4184.constructor = v4183; -v4183.prototype = v4184; -v4182.push(v4183); -v4176.apiCall = v4182; -v4175._events = v4176; -v4175.MONITOR_EVENTS_BUBBLE = v4178; -v4175.CALL_EVENTS_BUBBLE = v4183; -v4172.prototype = v4175; -v4172.__super__ = v299; -const v4185 = {}; -v4185[\\"2011-02-01\\"] = null; -v4185[\\"2013-01-01\\"] = null; -v4172.services = v4185; -const v4186 = []; -v4186.push(\\"2011-02-01\\", \\"2013-01-01\\"); -v4172.apiVersions = v4186; -v4172.serviceIdentifier = \\"cloudsearch\\"; -v2.CloudSearch = v4172; -var v4187; -var v4188 = v299; -var v4189 = v31; -v4187 = function () { if (v4188 !== v4189) { - return v4188.apply(this, arguments); -} }; -const v4190 = Object.create(v309); -v4190.constructor = v4187; -const v4191 = {}; -const v4192 = []; -var v4193; -var v4194 = v31; -var v4195 = v4190; -v4193 = function EVENTS_BUBBLE(event) { var baseClass = v4194.getPrototypeOf(v4195); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4196 = {}; -v4196.constructor = v4193; -v4193.prototype = v4196; -v4192.push(v4193); -v4191.apiCallAttempt = v4192; -const v4197 = []; -var v4198; -v4198 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4179.getPrototypeOf(v4195); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4199 = {}; -v4199.constructor = v4198; -v4198.prototype = v4199; -v4197.push(v4198); -v4191.apiCall = v4197; -v4190._events = v4191; -v4190.MONITOR_EVENTS_BUBBLE = v4193; -v4190.CALL_EVENTS_BUBBLE = v4198; -var v4200; -var v4201 = v40; -v4200 = function validateService() { if (!this.config.endpoint || this.config.endpoint.indexOf(\\"{\\") >= 0) { - var msg = \\"AWS.CloudSearchDomain requires an explicit \\" + \\"\`endpoint' configuration option.\\"; - throw v3.error(new v4201(), { name: \\"InvalidEndpoint\\", message: msg }); -} }; -const v4202 = {}; -v4202.constructor = v4200; -v4200.prototype = v4202; -v4190.validateService = v4200; -var v4203; -v4203 = function setupRequestListeners(request) { request.removeListener(\\"validate\\", v428.VALIDATE_CREDENTIALS); request.onAsync(\\"validate\\", this.validateCredentials); request.addListener(\\"validate\\", this.updateRegion); if (request.operation === \\"search\\") { - request.addListener(\\"build\\", this.convertGetToPost); -} }; -const v4204 = {}; -v4204.constructor = v4203; -v4203.prototype = v4204; -v4190.setupRequestListeners = v4203; -var v4205; -v4205 = function (req, done) { if (!req.service.api.signatureVersion) - return done(); req.service.config.getCredentials(function (err) { if (err) { - req.removeListener(\\"sign\\", v428.SIGN); -} done(); }); }; -const v4206 = {}; -v4206.constructor = v4205; -v4205.prototype = v4206; -v4190.validateCredentials = v4205; -var v4207; -v4207 = function (request) { var httpRequest = request.httpRequest; var path = httpRequest.path.split(\\"?\\"); httpRequest.method = \\"POST\\"; httpRequest.path = path[0]; httpRequest.body = path[1]; httpRequest.headers[\\"Content-Length\\"] = httpRequest.body.length; httpRequest.headers[\\"Content-Type\\"] = \\"application/x-www-form-urlencoded\\"; }; -const v4208 = {}; -v4208.constructor = v4207; -v4207.prototype = v4208; -v4190.convertGetToPost = v4207; -var v4209; -v4209 = function updateRegion(request) { var endpoint = request.httpRequest.endpoint.hostname; var zones = endpoint.split(\\".\\"); request.httpRequest.region = zones[1] || request.httpRequest.region; }; -const v4210 = {}; -v4210.constructor = v4209; -v4209.prototype = v4210; -v4190.updateRegion = v4209; -v4187.prototype = v4190; -v4187.__super__ = v299; -const v4211 = {}; -v4211[\\"2013-01-01\\"] = null; -v4187.services = v4211; -const v4212 = []; -v4212.push(\\"2013-01-01\\"); -v4187.apiVersions = v4212; -v4187.serviceIdentifier = \\"cloudsearchdomain\\"; -v2.CloudSearchDomain = v4187; -var v4213; -var v4214 = v299; -var v4215 = v31; -v4213 = function () { if (v4214 !== v4215) { - return v4214.apply(this, arguments); -} }; -const v4216 = Object.create(v309); -v4216.constructor = v4213; -const v4217 = {}; -const v4218 = []; -var v4219; -var v4220 = v31; -var v4221 = v4216; -v4219 = function EVENTS_BUBBLE(event) { var baseClass = v4220.getPrototypeOf(v4221); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4222 = {}; -v4222.constructor = v4219; -v4219.prototype = v4222; -v4218.push(v4219); -v4217.apiCallAttempt = v4218; -const v4223 = []; -var v4224; -v4224 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4194.getPrototypeOf(v4221); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4225 = {}; -v4225.constructor = v4224; -v4224.prototype = v4225; -v4223.push(v4224); -v4217.apiCall = v4223; -v4216._events = v4217; -v4216.MONITOR_EVENTS_BUBBLE = v4219; -v4216.CALL_EVENTS_BUBBLE = v4224; -v4213.prototype = v4216; -v4213.__super__ = v299; -const v4226 = {}; -v4226[\\"2013-11-01\\"] = null; -v4213.services = v4226; -const v4227 = []; -v4227.push(\\"2013-11-01\\"); -v4213.apiVersions = v4227; -v4213.serviceIdentifier = \\"cloudtrail\\"; -v2.CloudTrail = v4213; -var v4228; -var v4229 = v299; -var v4230 = v31; -v4228 = function () { if (v4229 !== v4230) { - return v4229.apply(this, arguments); -} }; -const v4231 = Object.create(v309); -v4231.constructor = v4228; -const v4232 = {}; -const v4233 = []; -var v4234; -var v4235 = v31; -var v4236 = v4231; -v4234 = function EVENTS_BUBBLE(event) { var baseClass = v4235.getPrototypeOf(v4236); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4237 = {}; -v4237.constructor = v4234; -v4234.prototype = v4237; -v4233.push(v4234); -v4232.apiCallAttempt = v4233; -const v4238 = []; -var v4239; -v4239 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4220.getPrototypeOf(v4236); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4240 = {}; -v4240.constructor = v4239; -v4239.prototype = v4240; -v4238.push(v4239); -v4232.apiCall = v4238; -v4231._events = v4232; -v4231.MONITOR_EVENTS_BUBBLE = v4234; -v4231.CALL_EVENTS_BUBBLE = v4239; -v4228.prototype = v4231; -v4228.__super__ = v299; -const v4241 = {}; -v4241[\\"2010-08-01\\"] = null; -v4228.services = v4241; -const v4242 = []; -v4242.push(\\"2010-08-01\\"); -v4228.apiVersions = v4242; -v4228.serviceIdentifier = \\"cloudwatch\\"; -v2.CloudWatch = v4228; -var v4243; -var v4244 = v299; -var v4245 = v31; -v4243 = function () { if (v4244 !== v4245) { - return v4244.apply(this, arguments); -} }; -const v4246 = Object.create(v309); -v4246.constructor = v4243; -const v4247 = {}; -const v4248 = []; -var v4249; -var v4250 = v31; -var v4251 = v4246; -v4249 = function EVENTS_BUBBLE(event) { var baseClass = v4250.getPrototypeOf(v4251); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4252 = {}; -v4252.constructor = v4249; -v4249.prototype = v4252; -v4248.push(v4249); -v4247.apiCallAttempt = v4248; -const v4253 = []; -var v4254; -v4254 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4235.getPrototypeOf(v4251); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4255 = {}; -v4255.constructor = v4254; -v4254.prototype = v4255; -v4253.push(v4254); -v4247.apiCall = v4253; -v4246._events = v4247; -v4246.MONITOR_EVENTS_BUBBLE = v4249; -v4246.CALL_EVENTS_BUBBLE = v4254; -v4243.prototype = v4246; -v4243.__super__ = v299; -const v4256 = {}; -v4256[\\"2014-02-03*\\"] = null; -v4256[\\"2015-10-07\\"] = null; -v4243.services = v4256; -const v4257 = []; -v4257.push(\\"2014-02-03*\\", \\"2015-10-07\\"); -v4243.apiVersions = v4257; -v4243.serviceIdentifier = \\"cloudwatchevents\\"; -v2.CloudWatchEvents = v4243; -var v4258; -var v4259 = v299; -var v4260 = v31; -v4258 = function () { if (v4259 !== v4260) { - return v4259.apply(this, arguments); -} }; -const v4261 = Object.create(v309); -v4261.constructor = v4258; -const v4262 = {}; -const v4263 = []; -var v4264; -var v4265 = v31; -var v4266 = v4261; -v4264 = function EVENTS_BUBBLE(event) { var baseClass = v4265.getPrototypeOf(v4266); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4267 = {}; -v4267.constructor = v4264; -v4264.prototype = v4267; -v4263.push(v4264); -v4262.apiCallAttempt = v4263; -const v4268 = []; -var v4269; -v4269 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4250.getPrototypeOf(v4266); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4270 = {}; -v4270.constructor = v4269; -v4269.prototype = v4270; -v4268.push(v4269); -v4262.apiCall = v4268; -v4261._events = v4262; -v4261.MONITOR_EVENTS_BUBBLE = v4264; -v4261.CALL_EVENTS_BUBBLE = v4269; -v4258.prototype = v4261; -v4258.__super__ = v299; -const v4271 = {}; -v4271[\\"2014-03-28\\"] = null; -v4258.services = v4271; -const v4272 = []; -v4272.push(\\"2014-03-28\\"); -v4258.apiVersions = v4272; -v4258.serviceIdentifier = \\"cloudwatchlogs\\"; -v2.CloudWatchLogs = v4258; -var v4273; -var v4274 = v299; -var v4275 = v31; -v4273 = function () { if (v4274 !== v4275) { - return v4274.apply(this, arguments); -} }; -const v4276 = Object.create(v309); -v4276.constructor = v4273; -const v4277 = {}; -const v4278 = []; -var v4279; -var v4280 = v31; -var v4281 = v4276; -v4279 = function EVENTS_BUBBLE(event) { var baseClass = v4280.getPrototypeOf(v4281); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4282 = {}; -v4282.constructor = v4279; -v4279.prototype = v4282; -v4278.push(v4279); -v4277.apiCallAttempt = v4278; -const v4283 = []; -var v4284; -v4284 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4265.getPrototypeOf(v4281); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4285 = {}; -v4285.constructor = v4284; -v4284.prototype = v4285; -v4283.push(v4284); -v4277.apiCall = v4283; -v4276._events = v4277; -v4276.MONITOR_EVENTS_BUBBLE = v4279; -v4276.CALL_EVENTS_BUBBLE = v4284; -v4273.prototype = v4276; -v4273.__super__ = v299; -const v4286 = {}; -v4286[\\"2016-10-06\\"] = null; -v4273.services = v4286; -const v4287 = []; -v4287.push(\\"2016-10-06\\"); -v4273.apiVersions = v4287; -v4273.serviceIdentifier = \\"codebuild\\"; -v2.CodeBuild = v4273; -var v4288; -var v4289 = v299; -var v4290 = v31; -v4288 = function () { if (v4289 !== v4290) { - return v4289.apply(this, arguments); -} }; -const v4291 = Object.create(v309); -v4291.constructor = v4288; -const v4292 = {}; -const v4293 = []; -var v4294; -var v4295 = v31; -var v4296 = v4291; -v4294 = function EVENTS_BUBBLE(event) { var baseClass = v4295.getPrototypeOf(v4296); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4297 = {}; -v4297.constructor = v4294; -v4294.prototype = v4297; -v4293.push(v4294); -v4292.apiCallAttempt = v4293; -const v4298 = []; -var v4299; -v4299 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4280.getPrototypeOf(v4296); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4300 = {}; -v4300.constructor = v4299; -v4299.prototype = v4300; -v4298.push(v4299); -v4292.apiCall = v4298; -v4291._events = v4292; -v4291.MONITOR_EVENTS_BUBBLE = v4294; -v4291.CALL_EVENTS_BUBBLE = v4299; -v4288.prototype = v4291; -v4288.__super__ = v299; -const v4301 = {}; -v4301[\\"2015-04-13\\"] = null; -v4288.services = v4301; -const v4302 = []; -v4302.push(\\"2015-04-13\\"); -v4288.apiVersions = v4302; -v4288.serviceIdentifier = \\"codecommit\\"; -v2.CodeCommit = v4288; -var v4303; -var v4304 = v299; -var v4305 = v31; -v4303 = function () { if (v4304 !== v4305) { - return v4304.apply(this, arguments); -} }; -const v4306 = Object.create(v309); -v4306.constructor = v4303; -const v4307 = {}; -const v4308 = []; -var v4309; -var v4310 = v31; -var v4311 = v4306; -v4309 = function EVENTS_BUBBLE(event) { var baseClass = v4310.getPrototypeOf(v4311); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4312 = {}; -v4312.constructor = v4309; -v4309.prototype = v4312; -v4308.push(v4309); -v4307.apiCallAttempt = v4308; -const v4313 = []; -var v4314; -v4314 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4295.getPrototypeOf(v4311); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4315 = {}; -v4315.constructor = v4314; -v4314.prototype = v4315; -v4313.push(v4314); -v4307.apiCall = v4313; -v4306._events = v4307; -v4306.MONITOR_EVENTS_BUBBLE = v4309; -v4306.CALL_EVENTS_BUBBLE = v4314; -v4303.prototype = v4306; -v4303.__super__ = v299; -const v4316 = {}; -v4316[\\"2014-10-06\\"] = null; -v4303.services = v4316; -const v4317 = []; -v4317.push(\\"2014-10-06\\"); -v4303.apiVersions = v4317; -v4303.serviceIdentifier = \\"codedeploy\\"; -v2.CodeDeploy = v4303; -var v4318; -var v4319 = v299; -var v4320 = v31; -v4318 = function () { if (v4319 !== v4320) { - return v4319.apply(this, arguments); -} }; -const v4321 = Object.create(v309); -v4321.constructor = v4318; -const v4322 = {}; -const v4323 = []; -var v4324; -var v4325 = v31; -var v4326 = v4321; -v4324 = function EVENTS_BUBBLE(event) { var baseClass = v4325.getPrototypeOf(v4326); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4327 = {}; -v4327.constructor = v4324; -v4324.prototype = v4327; -v4323.push(v4324); -v4322.apiCallAttempt = v4323; -const v4328 = []; -var v4329; -v4329 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4310.getPrototypeOf(v4326); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4330 = {}; -v4330.constructor = v4329; -v4329.prototype = v4330; -v4328.push(v4329); -v4322.apiCall = v4328; -v4321._events = v4322; -v4321.MONITOR_EVENTS_BUBBLE = v4324; -v4321.CALL_EVENTS_BUBBLE = v4329; -v4318.prototype = v4321; -v4318.__super__ = v299; -const v4331 = {}; -v4331[\\"2015-07-09\\"] = null; -v4318.services = v4331; -const v4332 = []; -v4332.push(\\"2015-07-09\\"); -v4318.apiVersions = v4332; -v4318.serviceIdentifier = \\"codepipeline\\"; -v2.CodePipeline = v4318; -var v4333; -var v4334 = v299; -var v4335 = v31; -v4333 = function () { if (v4334 !== v4335) { - return v4334.apply(this, arguments); -} }; -const v4336 = Object.create(v309); -v4336.constructor = v4333; -const v4337 = {}; -const v4338 = []; -var v4339; -var v4340 = v31; -var v4341 = v4336; -v4339 = function EVENTS_BUBBLE(event) { var baseClass = v4340.getPrototypeOf(v4341); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4342 = {}; -v4342.constructor = v4339; -v4339.prototype = v4342; -v4338.push(v4339); -v4337.apiCallAttempt = v4338; -const v4343 = []; -var v4344; -v4344 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4325.getPrototypeOf(v4341); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4345 = {}; -v4345.constructor = v4344; -v4344.prototype = v4345; -v4343.push(v4344); -v4337.apiCall = v4343; -v4336._events = v4337; -v4336.MONITOR_EVENTS_BUBBLE = v4339; -v4336.CALL_EVENTS_BUBBLE = v4344; -v4333.prototype = v4336; -v4333.__super__ = v299; -const v4346 = {}; -v4346[\\"2016-04-18\\"] = null; -v4333.services = v4346; -const v4347 = []; -v4347.push(\\"2016-04-18\\"); -v4333.apiVersions = v4347; -v4333.serviceIdentifier = \\"cognitoidentityserviceprovider\\"; -v2.CognitoIdentityServiceProvider = v4333; -var v4348; -var v4349 = v299; -var v4350 = v31; -v4348 = function () { if (v4349 !== v4350) { - return v4349.apply(this, arguments); -} }; -const v4351 = Object.create(v309); -v4351.constructor = v4348; -const v4352 = {}; -const v4353 = []; -var v4354; -var v4355 = v31; -var v4356 = v4351; -v4354 = function EVENTS_BUBBLE(event) { var baseClass = v4355.getPrototypeOf(v4356); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4357 = {}; -v4357.constructor = v4354; -v4354.prototype = v4357; -v4353.push(v4354); -v4352.apiCallAttempt = v4353; -const v4358 = []; -var v4359; -v4359 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4340.getPrototypeOf(v4356); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4360 = {}; -v4360.constructor = v4359; -v4359.prototype = v4360; -v4358.push(v4359); -v4352.apiCall = v4358; -v4351._events = v4352; -v4351.MONITOR_EVENTS_BUBBLE = v4354; -v4351.CALL_EVENTS_BUBBLE = v4359; -v4348.prototype = v4351; -v4348.__super__ = v299; -const v4361 = {}; -v4361[\\"2014-06-30\\"] = null; -v4348.services = v4361; -const v4362 = []; -v4362.push(\\"2014-06-30\\"); -v4348.apiVersions = v4362; -v4348.serviceIdentifier = \\"cognitosync\\"; -v2.CognitoSync = v4348; -var v4363; -var v4364 = v299; -var v4365 = v31; -v4363 = function () { if (v4364 !== v4365) { - return v4364.apply(this, arguments); -} }; -const v4366 = Object.create(v309); -v4366.constructor = v4363; -const v4367 = {}; -const v4368 = []; -var v4369; -var v4370 = v31; -var v4371 = v4366; -v4369 = function EVENTS_BUBBLE(event) { var baseClass = v4370.getPrototypeOf(v4371); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4372 = {}; -v4372.constructor = v4369; -v4369.prototype = v4372; -v4368.push(v4369); -v4367.apiCallAttempt = v4368; -const v4373 = []; -var v4374; -v4374 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4355.getPrototypeOf(v4371); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4375 = {}; -v4375.constructor = v4374; -v4374.prototype = v4375; -v4373.push(v4374); -v4367.apiCall = v4373; -v4366._events = v4367; -v4366.MONITOR_EVENTS_BUBBLE = v4369; -v4366.CALL_EVENTS_BUBBLE = v4374; -v4363.prototype = v4366; -v4363.__super__ = v299; -const v4376 = {}; -v4376[\\"2014-11-12\\"] = null; -v4363.services = v4376; -const v4377 = []; -v4377.push(\\"2014-11-12\\"); -v4363.apiVersions = v4377; -v4363.serviceIdentifier = \\"configservice\\"; -v2.ConfigService = v4363; -var v4378; -var v4379 = v299; -var v4380 = v31; -v4378 = function () { if (v4379 !== v4380) { - return v4379.apply(this, arguments); -} }; -const v4381 = Object.create(v309); -v4381.constructor = v4378; -const v4382 = {}; -const v4383 = []; -var v4384; -var v4385 = v31; -var v4386 = v4381; -v4384 = function EVENTS_BUBBLE(event) { var baseClass = v4385.getPrototypeOf(v4386); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4387 = {}; -v4387.constructor = v4384; -v4384.prototype = v4387; -v4383.push(v4384); -v4382.apiCallAttempt = v4383; -const v4388 = []; -var v4389; -v4389 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4370.getPrototypeOf(v4386); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4390 = {}; -v4390.constructor = v4389; -v4389.prototype = v4390; -v4388.push(v4389); -v4382.apiCall = v4388; -v4381._events = v4382; -v4381.MONITOR_EVENTS_BUBBLE = v4384; -v4381.CALL_EVENTS_BUBBLE = v4389; -v4378.prototype = v4381; -v4378.__super__ = v299; -const v4391 = {}; -v4391[\\"2017-01-06\\"] = null; -v4378.services = v4391; -const v4392 = []; -v4392.push(\\"2017-01-06\\"); -v4378.apiVersions = v4392; -v4378.serviceIdentifier = \\"cur\\"; -v2.CUR = v4378; -var v4393; -var v4394 = v299; -var v4395 = v31; -v4393 = function () { if (v4394 !== v4395) { - return v4394.apply(this, arguments); -} }; -const v4396 = Object.create(v309); -v4396.constructor = v4393; -const v4397 = {}; -const v4398 = []; -var v4399; -var v4400 = v31; -var v4401 = v4396; -v4399 = function EVENTS_BUBBLE(event) { var baseClass = v4400.getPrototypeOf(v4401); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4402 = {}; -v4402.constructor = v4399; -v4399.prototype = v4402; -v4398.push(v4399); -v4397.apiCallAttempt = v4398; -const v4403 = []; -var v4404; -v4404 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4385.getPrototypeOf(v4401); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4405 = {}; -v4405.constructor = v4404; -v4404.prototype = v4405; -v4403.push(v4404); -v4397.apiCall = v4403; -v4396._events = v4397; -v4396.MONITOR_EVENTS_BUBBLE = v4399; -v4396.CALL_EVENTS_BUBBLE = v4404; -v4393.prototype = v4396; -v4393.__super__ = v299; -const v4406 = {}; -v4406[\\"2012-10-29\\"] = null; -v4393.services = v4406; -const v4407 = []; -v4407.push(\\"2012-10-29\\"); -v4393.apiVersions = v4407; -v4393.serviceIdentifier = \\"datapipeline\\"; -v2.DataPipeline = v4393; -var v4408; -var v4409 = v299; -var v4410 = v31; -v4408 = function () { if (v4409 !== v4410) { - return v4409.apply(this, arguments); -} }; -const v4411 = Object.create(v309); -v4411.constructor = v4408; -const v4412 = {}; -const v4413 = []; -var v4414; -var v4415 = v31; -var v4416 = v4411; -v4414 = function EVENTS_BUBBLE(event) { var baseClass = v4415.getPrototypeOf(v4416); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4417 = {}; -v4417.constructor = v4414; -v4414.prototype = v4417; -v4413.push(v4414); -v4412.apiCallAttempt = v4413; -const v4418 = []; -var v4419; -v4419 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4400.getPrototypeOf(v4416); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4420 = {}; -v4420.constructor = v4419; -v4419.prototype = v4420; -v4418.push(v4419); -v4412.apiCall = v4418; -v4411._events = v4412; -v4411.MONITOR_EVENTS_BUBBLE = v4414; -v4411.CALL_EVENTS_BUBBLE = v4419; -v4408.prototype = v4411; -v4408.__super__ = v299; -const v4421 = {}; -v4421[\\"2015-06-23\\"] = null; -v4408.services = v4421; -const v4422 = []; -v4422.push(\\"2015-06-23\\"); -v4408.apiVersions = v4422; -v4408.serviceIdentifier = \\"devicefarm\\"; -v2.DeviceFarm = v4408; -var v4423; -var v4424 = v299; -var v4425 = v31; -v4423 = function () { if (v4424 !== v4425) { - return v4424.apply(this, arguments); -} }; -const v4426 = Object.create(v309); -v4426.constructor = v4423; -const v4427 = {}; -const v4428 = []; -var v4429; -var v4430 = v31; -var v4431 = v4426; -v4429 = function EVENTS_BUBBLE(event) { var baseClass = v4430.getPrototypeOf(v4431); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4432 = {}; -v4432.constructor = v4429; -v4429.prototype = v4432; -v4428.push(v4429); -v4427.apiCallAttempt = v4428; -const v4433 = []; -var v4434; -v4434 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4415.getPrototypeOf(v4431); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4435 = {}; -v4435.constructor = v4434; -v4434.prototype = v4435; -v4433.push(v4434); -v4427.apiCall = v4433; -v4426._events = v4427; -v4426.MONITOR_EVENTS_BUBBLE = v4429; -v4426.CALL_EVENTS_BUBBLE = v4434; -v4423.prototype = v4426; -v4423.__super__ = v299; -const v4436 = {}; -v4436[\\"2012-10-25\\"] = null; -v4423.services = v4436; -const v4437 = []; -v4437.push(\\"2012-10-25\\"); -v4423.apiVersions = v4437; -v4423.serviceIdentifier = \\"directconnect\\"; -v2.DirectConnect = v4423; -var v4438; -var v4439 = v299; -var v4440 = v31; -v4438 = function () { if (v4439 !== v4440) { - return v4439.apply(this, arguments); -} }; -const v4441 = Object.create(v309); -v4441.constructor = v4438; -const v4442 = {}; -const v4443 = []; -var v4444; -var v4445 = v31; -var v4446 = v4441; -v4444 = function EVENTS_BUBBLE(event) { var baseClass = v4445.getPrototypeOf(v4446); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4447 = {}; -v4447.constructor = v4444; -v4444.prototype = v4447; -v4443.push(v4444); -v4442.apiCallAttempt = v4443; -const v4448 = []; -var v4449; -v4449 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4430.getPrototypeOf(v4446); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4450 = {}; -v4450.constructor = v4449; -v4449.prototype = v4450; -v4448.push(v4449); -v4442.apiCall = v4448; -v4441._events = v4442; -v4441.MONITOR_EVENTS_BUBBLE = v4444; -v4441.CALL_EVENTS_BUBBLE = v4449; -v4438.prototype = v4441; -v4438.__super__ = v299; -const v4451 = {}; -v4451[\\"2015-04-16\\"] = null; -v4438.services = v4451; -const v4452 = []; -v4452.push(\\"2015-04-16\\"); -v4438.apiVersions = v4452; -v4438.serviceIdentifier = \\"directoryservice\\"; -v2.DirectoryService = v4438; -var v4453; -var v4454 = v299; -var v4455 = v31; -v4453 = function () { if (v4454 !== v4455) { - return v4454.apply(this, arguments); -} }; -const v4456 = Object.create(v309); -v4456.constructor = v4453; -const v4457 = {}; -const v4458 = []; -var v4459; -var v4460 = v31; -var v4461 = v4456; -v4459 = function EVENTS_BUBBLE(event) { var baseClass = v4460.getPrototypeOf(v4461); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4462 = {}; -v4462.constructor = v4459; -v4459.prototype = v4462; -v4458.push(v4459); -v4457.apiCallAttempt = v4458; -const v4463 = []; -var v4464; -v4464 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4445.getPrototypeOf(v4461); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4465 = {}; -v4465.constructor = v4464; -v4464.prototype = v4465; -v4463.push(v4464); -v4457.apiCall = v4463; -v4456._events = v4457; -v4456.MONITOR_EVENTS_BUBBLE = v4459; -v4456.CALL_EVENTS_BUBBLE = v4464; -v4453.prototype = v4456; -v4453.__super__ = v299; -const v4466 = {}; -v4466[\\"2015-11-01\\"] = null; -v4453.services = v4466; -const v4467 = []; -v4467.push(\\"2015-11-01\\"); -v4453.apiVersions = v4467; -v4453.serviceIdentifier = \\"discovery\\"; -v2.Discovery = v4453; -var v4468; -var v4469 = v299; -var v4470 = v31; -v4468 = function () { if (v4469 !== v4470) { - return v4469.apply(this, arguments); -} }; -const v4471 = Object.create(v309); -v4471.constructor = v4468; -const v4472 = {}; -const v4473 = []; -var v4474; -var v4475 = v31; -var v4476 = v4471; -v4474 = function EVENTS_BUBBLE(event) { var baseClass = v4475.getPrototypeOf(v4476); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4477 = {}; -v4477.constructor = v4474; -v4474.prototype = v4477; -v4473.push(v4474); -v4472.apiCallAttempt = v4473; -const v4478 = []; -var v4479; -v4479 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4460.getPrototypeOf(v4476); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4480 = {}; -v4480.constructor = v4479; -v4479.prototype = v4480; -v4478.push(v4479); -v4472.apiCall = v4478; -v4471._events = v4472; -v4471.MONITOR_EVENTS_BUBBLE = v4474; -v4471.CALL_EVENTS_BUBBLE = v4479; -v4468.prototype = v4471; -v4468.__super__ = v299; -const v4481 = {}; -v4481[\\"2016-01-01\\"] = null; -v4468.services = v4481; -const v4482 = []; -v4482.push(\\"2016-01-01\\"); -v4468.apiVersions = v4482; -v4468.serviceIdentifier = \\"dms\\"; -v2.DMS = v4468; -var v4483; -var v4484 = v299; -var v4485 = v31; -v4483 = function () { if (v4484 !== v4485) { - return v4484.apply(this, arguments); -} }; -const v4486 = Object.create(v309); -v4486.constructor = v4483; -const v4487 = {}; -const v4488 = []; -var v4489; -var v4490 = v31; -var v4491 = v4486; -v4489 = function EVENTS_BUBBLE(event) { var baseClass = v4490.getPrototypeOf(v4491); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4492 = {}; -v4492.constructor = v4489; -v4489.prototype = v4492; -v4488.push(v4489); -v4487.apiCallAttempt = v4488; -const v4493 = []; -var v4494; -v4494 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4475.getPrototypeOf(v4491); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4495 = {}; -v4495.constructor = v4494; -v4494.prototype = v4495; -v4493.push(v4494); -v4487.apiCall = v4493; -v4486._events = v4487; -v4486.MONITOR_EVENTS_BUBBLE = v4489; -v4486.CALL_EVENTS_BUBBLE = v4494; -var v4496; -v4496 = function setupRequestListeners(request) { if (request.service.config.dynamoDbCrc32) { - request.removeListener(\\"extractData\\", v1903.EXTRACT_DATA); - request.addListener(\\"extractData\\", this.checkCrc32); - request.addListener(\\"extractData\\", v1903.EXTRACT_DATA); -} }; -const v4497 = {}; -v4497.constructor = v4496; -v4496.prototype = v4497; -v4486.setupRequestListeners = v4496; -var v4498; -var v4499 = v40; -v4498 = function checkCrc32(resp) { if (!resp.httpResponse.streaming && !resp.request.service.crc32IsValid(resp)) { - resp.data = null; - resp.error = v3.error(new v4499(), { code: \\"CRC32CheckFailed\\", message: \\"CRC32 integrity check failed\\", retryable: true }); - resp.request.haltHandlersOnError(); - throw (resp.error); -} }; -const v4500 = {}; -v4500.constructor = v4498; -v4498.prototype = v4500; -v4486.checkCrc32 = v4498; -var v4501; -var v4502 = v117; -v4501 = function crc32IsValid(resp) { var crc = resp.httpResponse.headers[\\"x-amz-crc32\\"]; if (!crc) - return true; return v4502(crc, 10) === v91.crc32(resp.httpResponse.body); }; -const v4503 = {}; -v4503.constructor = v4501; -v4501.prototype = v4503; -v4486.crc32IsValid = v4501; -v4486.defaultRetryCount = 10; -var v4504; -v4504 = function retryDelays(retryCount, err) { var retryDelayOptions = v3.copy(this.config.retryDelayOptions); if (typeof retryDelayOptions.base !== \\"number\\") { - retryDelayOptions.base = 50; -} var delay = v3.calculateRetryDelay(retryCount, retryDelayOptions, err); return delay; }; -const v4505 = {}; -v4505.constructor = v4504; -v4504.prototype = v4505; -v4486.retryDelays = v4504; -v4483.prototype = v4486; -v4483.__super__ = v299; -const v4506 = {}; -v4506[\\"2011-12-05\\"] = null; -var v4507; -var v4508 = v4483; -var v4509 = v31; -v4507 = function () { if (v4508 !== v4509) { - return v4508.apply(this, arguments); -} }; -const v4510 = Object.create(v4486); -v4510.serviceIdentifier = \\"dynamodb\\"; -v4510.constructor = v4507; -const v4511 = Object.create(v2532); -v4511.isApi = true; -v4511.apiVersion = \\"2012-08-10\\"; -v4511.endpointPrefix = \\"dynamodb\\"; -v4511.signingName = undefined; -v4511.globalEndpoint = undefined; -v4511.signatureVersion = \\"v4\\"; -v4511.jsonVersion = \\"1.0\\"; -v4511.targetPrefix = \\"DynamoDB_20120810\\"; -v4511.protocol = \\"json\\"; -v4511.timestampFormat = undefined; -v4511.xmlNamespaceUri = undefined; -v4511.abbreviation = \\"DynamoDB\\"; -v4511.fullName = \\"Amazon DynamoDB\\"; -v4511.serviceId = \\"DynamoDB\\"; -v4511.xmlNoDefaultLists = undefined; -v4511.hasRequiredEndpointDiscovery = false; -v4511.endpointOperation = \\"describeEndpoints\\"; -const v4512 = Object.create(v889); -v4511.operations = v4512; -const v4513 = Object.create(v889); -v4511.shapes = v4513; -const v4514 = Object.create(v889); -v4511.paginators = v4514; -const v4515 = Object.create(v889); -v4511.waiters = v4515; -v4511.errorCodeMapping = undefined; -v4510.api = v4511; -var v4516; -var v4517 = \\"batchExecuteStatement\\"; -v4516 = function (params, callback) { return this.makeRequest(v4517, params, callback); }; -const v4518 = {}; -v4518.constructor = v4516; -v4516.prototype = v4518; -v4510.batchExecuteStatement = v4516; -var v4519; -var v4520 = \\"batchGetItem\\"; -v4519 = function (params, callback) { return this.makeRequest(v4520, params, callback); }; -const v4521 = {}; -v4521.constructor = v4519; -v4519.prototype = v4521; -v4510.batchGetItem = v4519; -var v4522; -var v4523 = \\"batchWriteItem\\"; -v4522 = function (params, callback) { return this.makeRequest(v4523, params, callback); }; -const v4524 = {}; -v4524.constructor = v4522; -v4522.prototype = v4524; -v4510.batchWriteItem = v4522; -var v4525; -var v4526 = \\"createBackup\\"; -v4525 = function (params, callback) { return this.makeRequest(v4526, params, callback); }; -const v4527 = {}; -v4527.constructor = v4525; -v4525.prototype = v4527; -v4510.createBackup = v4525; -var v4528; -var v4529 = \\"createGlobalTable\\"; -v4528 = function (params, callback) { return this.makeRequest(v4529, params, callback); }; -const v4530 = {}; -v4530.constructor = v4528; -v4528.prototype = v4530; -v4510.createGlobalTable = v4528; -var v4531; -var v4532 = \\"createTable\\"; -v4531 = function (params, callback) { return this.makeRequest(v4532, params, callback); }; -const v4533 = {}; -v4533.constructor = v4531; -v4531.prototype = v4533; -v4510.createTable = v4531; -var v4534; -var v4535 = \\"deleteBackup\\"; -v4534 = function (params, callback) { return this.makeRequest(v4535, params, callback); }; -const v4536 = {}; -v4536.constructor = v4534; -v4534.prototype = v4536; -v4510.deleteBackup = v4534; -var v4537; -var v4538 = \\"deleteItem\\"; -v4537 = function (params, callback) { return this.makeRequest(v4538, params, callback); }; -const v4539 = {}; -v4539.constructor = v4537; -v4537.prototype = v4539; -v4510.deleteItem = v4537; -var v4540; -var v4541 = \\"deleteTable\\"; -v4540 = function (params, callback) { return this.makeRequest(v4541, params, callback); }; -const v4542 = {}; -v4542.constructor = v4540; -v4540.prototype = v4542; -v4510.deleteTable = v4540; -var v4543; -var v4544 = \\"describeBackup\\"; -v4543 = function (params, callback) { return this.makeRequest(v4544, params, callback); }; -const v4545 = {}; -v4545.constructor = v4543; -v4543.prototype = v4545; -v4510.describeBackup = v4543; -var v4546; -var v4547 = \\"describeContinuousBackups\\"; -v4546 = function (params, callback) { return this.makeRequest(v4547, params, callback); }; -const v4548 = {}; -v4548.constructor = v4546; -v4546.prototype = v4548; -v4510.describeContinuousBackups = v4546; -var v4549; -var v4550 = \\"describeContributorInsights\\"; -v4549 = function (params, callback) { return this.makeRequest(v4550, params, callback); }; -const v4551 = {}; -v4551.constructor = v4549; -v4549.prototype = v4551; -v4510.describeContributorInsights = v4549; -var v4552; -var v4553 = \\"describeEndpoints\\"; -v4552 = function (params, callback) { return this.makeRequest(v4553, params, callback); }; -const v4554 = {}; -v4554.constructor = v4552; -v4552.prototype = v4554; -v4510.describeEndpoints = v4552; -var v4555; -var v4556 = \\"describeExport\\"; -v4555 = function (params, callback) { return this.makeRequest(v4556, params, callback); }; -const v4557 = {}; -v4557.constructor = v4555; -v4555.prototype = v4557; -v4510.describeExport = v4555; -var v4558; -var v4559 = \\"describeGlobalTable\\"; -v4558 = function (params, callback) { return this.makeRequest(v4559, params, callback); }; -const v4560 = {}; -v4560.constructor = v4558; -v4558.prototype = v4560; -v4510.describeGlobalTable = v4558; -var v4561; -var v4562 = \\"describeGlobalTableSettings\\"; -v4561 = function (params, callback) { return this.makeRequest(v4562, params, callback); }; -const v4563 = {}; -v4563.constructor = v4561; -v4561.prototype = v4563; -v4510.describeGlobalTableSettings = v4561; -var v4564; -var v4565 = \\"describeKinesisStreamingDestination\\"; -v4564 = function (params, callback) { return this.makeRequest(v4565, params, callback); }; -const v4566 = {}; -v4566.constructor = v4564; -v4564.prototype = v4566; -v4510.describeKinesisStreamingDestination = v4564; -var v4567; -var v4568 = \\"describeLimits\\"; -v4567 = function (params, callback) { return this.makeRequest(v4568, params, callback); }; -const v4569 = {}; -v4569.constructor = v4567; -v4567.prototype = v4569; -v4510.describeLimits = v4567; -var v4570; -var v4571 = \\"describeTable\\"; -v4570 = function (params, callback) { return this.makeRequest(v4571, params, callback); }; -const v4572 = {}; -v4572.constructor = v4570; -v4570.prototype = v4572; -v4510.describeTable = v4570; -var v4573; -var v4574 = \\"describeTableReplicaAutoScaling\\"; -v4573 = function (params, callback) { return this.makeRequest(v4574, params, callback); }; -const v4575 = {}; -v4575.constructor = v4573; -v4573.prototype = v4575; -v4510.describeTableReplicaAutoScaling = v4573; -var v4576; -var v4577 = \\"describeTimeToLive\\"; -v4576 = function (params, callback) { return this.makeRequest(v4577, params, callback); }; -const v4578 = {}; -v4578.constructor = v4576; -v4576.prototype = v4578; -v4510.describeTimeToLive = v4576; -var v4579; -var v4580 = \\"disableKinesisStreamingDestination\\"; -v4579 = function (params, callback) { return this.makeRequest(v4580, params, callback); }; -const v4581 = {}; -v4581.constructor = v4579; -v4579.prototype = v4581; -v4510.disableKinesisStreamingDestination = v4579; -var v4582; -var v4583 = \\"enableKinesisStreamingDestination\\"; -v4582 = function (params, callback) { return this.makeRequest(v4583, params, callback); }; -const v4584 = {}; -v4584.constructor = v4582; -v4582.prototype = v4584; -v4510.enableKinesisStreamingDestination = v4582; -var v4585; -var v4586 = \\"executeStatement\\"; -v4585 = function (params, callback) { return this.makeRequest(v4586, params, callback); }; -const v4587 = {}; -v4587.constructor = v4585; -v4585.prototype = v4587; -v4510.executeStatement = v4585; -var v4588; -var v4589 = \\"executeTransaction\\"; -v4588 = function (params, callback) { return this.makeRequest(v4589, params, callback); }; -const v4590 = {}; -v4590.constructor = v4588; -v4588.prototype = v4590; -v4510.executeTransaction = v4588; -var v4591; -var v4592 = \\"exportTableToPointInTime\\"; -v4591 = function (params, callback) { return this.makeRequest(v4592, params, callback); }; -const v4593 = {}; -v4593.constructor = v4591; -v4591.prototype = v4593; -v4510.exportTableToPointInTime = v4591; -var v4594; -var v4595 = \\"getItem\\"; -v4594 = function (params, callback) { return this.makeRequest(v4595, params, callback); }; -const v4596 = {}; -v4596.constructor = v4594; -v4594.prototype = v4596; -v4510.getItem = v4594; -var v4597; -var v4598 = \\"listBackups\\"; -v4597 = function (params, callback) { return this.makeRequest(v4598, params, callback); }; -const v4599 = {}; -v4599.constructor = v4597; -v4597.prototype = v4599; -v4510.listBackups = v4597; -var v4600; -var v4601 = \\"listContributorInsights\\"; -v4600 = function (params, callback) { return this.makeRequest(v4601, params, callback); }; -const v4602 = {}; -v4602.constructor = v4600; -v4600.prototype = v4602; -v4510.listContributorInsights = v4600; -var v4603; -var v4604 = \\"listExports\\"; -v4603 = function (params, callback) { return this.makeRequest(v4604, params, callback); }; -const v4605 = {}; -v4605.constructor = v4603; -v4603.prototype = v4605; -v4510.listExports = v4603; -var v4606; -var v4607 = \\"listGlobalTables\\"; -v4606 = function (params, callback) { return this.makeRequest(v4607, params, callback); }; -const v4608 = {}; -v4608.constructor = v4606; -v4606.prototype = v4608; -v4510.listGlobalTables = v4606; -var v4609; -var v4610 = \\"listTables\\"; -v4609 = function (params, callback) { return this.makeRequest(v4610, params, callback); }; -const v4611 = {}; -v4611.constructor = v4609; -v4609.prototype = v4611; -v4510.listTables = v4609; -var v4612; -var v4613 = \\"listTagsOfResource\\"; -v4612 = function (params, callback) { return this.makeRequest(v4613, params, callback); }; -const v4614 = {}; -v4614.constructor = v4612; -v4612.prototype = v4614; -v4510.listTagsOfResource = v4612; -var v4615; -var v4616 = \\"putItem\\"; -v4615 = function (params, callback) { return this.makeRequest(v4616, params, callback); }; -const v4617 = {}; -v4617.constructor = v4615; -v4615.prototype = v4617; -v4510.putItem = v4615; -var v4618; -var v4619 = \\"query\\"; -v4618 = function (params, callback) { return this.makeRequest(v4619, params, callback); }; -const v4620 = {}; -v4620.constructor = v4618; -v4618.prototype = v4620; -v4510.query = v4618; -var v4621; -var v4622 = \\"restoreTableFromBackup\\"; -v4621 = function (params, callback) { return this.makeRequest(v4622, params, callback); }; -const v4623 = {}; -v4623.constructor = v4621; -v4621.prototype = v4623; -v4510.restoreTableFromBackup = v4621; -var v4624; -var v4625 = \\"restoreTableToPointInTime\\"; -v4624 = function (params, callback) { return this.makeRequest(v4625, params, callback); }; -const v4626 = {}; -v4626.constructor = v4624; -v4624.prototype = v4626; -v4510.restoreTableToPointInTime = v4624; -var v4627; -var v4628 = \\"scan\\"; -v4627 = function (params, callback) { return this.makeRequest(v4628, params, callback); }; -const v4629 = {}; -v4629.constructor = v4627; -v4627.prototype = v4629; -v4510.scan = v4627; -var v4630; -var v4631 = \\"tagResource\\"; -v4630 = function (params, callback) { return this.makeRequest(v4631, params, callback); }; -const v4632 = {}; -v4632.constructor = v4630; -v4630.prototype = v4632; -v4510.tagResource = v4630; -var v4633; -var v4634 = \\"transactGetItems\\"; -v4633 = function (params, callback) { return this.makeRequest(v4634, params, callback); }; -const v4635 = {}; -v4635.constructor = v4633; -v4633.prototype = v4635; -v4510.transactGetItems = v4633; -var v4636; -var v4637 = \\"transactWriteItems\\"; -v4636 = function (params, callback) { return this.makeRequest(v4637, params, callback); }; -const v4638 = {}; -v4638.constructor = v4636; -v4636.prototype = v4638; -v4510.transactWriteItems = v4636; -var v4639; -var v4640 = \\"untagResource\\"; -v4639 = function (params, callback) { return this.makeRequest(v4640, params, callback); }; -const v4641 = {}; -v4641.constructor = v4639; -v4639.prototype = v4641; -v4510.untagResource = v4639; -var v4642; -var v4643 = \\"updateContinuousBackups\\"; -v4642 = function (params, callback) { return this.makeRequest(v4643, params, callback); }; -const v4644 = {}; -v4644.constructor = v4642; -v4642.prototype = v4644; -v4510.updateContinuousBackups = v4642; -var v4645; -var v4646 = \\"updateContributorInsights\\"; -v4645 = function (params, callback) { return this.makeRequest(v4646, params, callback); }; -const v4647 = {}; -v4647.constructor = v4645; -v4645.prototype = v4647; -v4510.updateContributorInsights = v4645; -var v4648; -var v4649 = \\"updateGlobalTable\\"; -v4648 = function (params, callback) { return this.makeRequest(v4649, params, callback); }; -const v4650 = {}; -v4650.constructor = v4648; -v4648.prototype = v4650; -v4510.updateGlobalTable = v4648; -var v4651; -var v4652 = \\"updateGlobalTableSettings\\"; -v4651 = function (params, callback) { return this.makeRequest(v4652, params, callback); }; -const v4653 = {}; -v4653.constructor = v4651; -v4651.prototype = v4653; -v4510.updateGlobalTableSettings = v4651; -var v4654; -var v4655 = \\"updateItem\\"; -v4654 = function (params, callback) { return this.makeRequest(v4655, params, callback); }; -const v4656 = {}; -v4656.constructor = v4654; -v4654.prototype = v4656; -v4510.updateItem = v4654; -var v4657; -var v4658 = \\"updateTable\\"; -v4657 = function (params, callback) { return this.makeRequest(v4658, params, callback); }; -const v4659 = {}; -v4659.constructor = v4657; -v4657.prototype = v4659; -v4510.updateTable = v4657; -var v4660; -var v4661 = \\"updateTableReplicaAutoScaling\\"; -v4660 = function (params, callback) { return this.makeRequest(v4661, params, callback); }; -const v4662 = {}; -v4662.constructor = v4660; -v4660.prototype = v4662; -v4510.updateTableReplicaAutoScaling = v4660; -var v4663; -var v4664 = \\"updateTimeToLive\\"; -v4663 = function (params, callback) { return this.makeRequest(v4664, params, callback); }; -const v4665 = {}; -v4665.constructor = v4663; -v4663.prototype = v4665; -v4510.updateTimeToLive = v4663; -v4507.prototype = v4510; -v4507.__super__ = v4483; -v4506[\\"2012-08-10\\"] = v4507; -v4483.services = v4506; -const v4666 = []; -v4666.push(\\"2011-12-05\\", \\"2012-08-10\\"); -v4483.apiVersions = v4666; -v4483.serviceIdentifier = \\"dynamodb\\"; -const v4667 = {}; -var v4668; -var v4670; -var v4672; -var v4673 = v3; -var v4674 = v3; -var v4675 = v3; -var v4676 = v3; -v4672 = function isBinary(data) { var types = [\\"Buffer\\", \\"File\\", \\"Blob\\", \\"ArrayBuffer\\", \\"DataView\\", \\"Int8Array\\", \\"Uint8Array\\", \\"Uint8ClampedArray\\", \\"Int16Array\\", \\"Uint16Array\\", \\"Int32Array\\", \\"Uint32Array\\", \\"Float32Array\\", \\"Float64Array\\"]; if (v4673.isNode()) { - var Stream = v4674.stream.Stream; - if (v4675.Buffer.isBuffer(data) || data instanceof Stream) { - return true; - } -} for (var i = 0; i < types.length; i++) { - if (data !== undefined && data.constructor) { - if (v4676.isType(data, types[i])) - return true; - if (v4673.typeName(data.constructor) === types[i]) - return true; - } -} return false; }; -const v4677 = {}; -v4677.constructor = v4672; -v4672.prototype = v4677; -var v4671 = v4672; -var v4678 = v3; -v4670 = function typeOf(data) { if (data === null && typeof data === \\"object\\") { - return \\"null\\"; -} -else if (data !== undefined && v4671(data)) { - return \\"Binary\\"; -} -else if (data !== undefined && data.constructor) { - return data.wrapperName || v4678.typeName(data.constructor); -} -else if (data !== undefined && typeof data === \\"object\\") { - return \\"Object\\"; -} -else { - return \\"undefined\\"; -} }; -const v4679 = {}; -v4679.constructor = v4670; -v4670.prototype = v4679; -var v4669 = v4670; -var v4681; -v4681 = function formatMap(data, options) { var map = { M: {} }; for (var key in data) { - var formatted = v4667.input(data[key], options); - if (formatted !== void 0) { - map[\\"M\\"][key] = formatted; - } -} return map; }; -const v4682 = {}; -v4682.constructor = v4681; -v4681.prototype = v4682; -var v4680 = v4681; -var v4684; -v4684 = function formatList(data, options) { var list = { L: [] }; for (var i = 0; i < data.length; i++) { - list[\\"L\\"].push(v4667.input(data[i], options)); -} return list; }; -const v4685 = {}; -v4685.constructor = v4684; -v4684.prototype = v4685; -var v4683 = v4684; -var v4687; -var v4689; -v4689 = function filterEmptySetValues(set) { var nonEmptyValues = []; var potentiallyEmptyTypes = { String: true, Binary: true, Number: false }; if (potentiallyEmptyTypes[set.type]) { - for (var i = 0; i < set.values.length; i++) { - if (set.values[i].length === 0) { - continue; - } - nonEmptyValues.push(set.values[i]); - } - return nonEmptyValues; -} return set.values; }; -const v4690 = {}; -v4690.constructor = v4689; -v4689.prototype = v4690; -var v4688 = v4689; -v4687 = function formatSet(data, options) { options = options || {}; var values = data.values; if (options.convertEmptyValues) { - values = v4688(data); - if (values.length === 0) { - return v4667.input(null); - } -} var map = {}; switch (data.type) { - case \\"String\\": - map[\\"SS\\"] = values; - break; - case \\"Binary\\": - map[\\"BS\\"] = values; - break; - case \\"Number\\": map[\\"NS\\"] = values.map(function (value) { return value.toString(); }); -} return map; }; -const v4691 = {}; -v4691.constructor = v4687; -v4687.prototype = v4691; -var v4686 = v4687; -var v4692 = v4681; -v4668 = function convertInput(data, options) { options = options || {}; var type = v4669(data); if (type === \\"Object\\") { - return v4680(data, options); -} -else if (type === \\"Array\\") { - return v4683(data, options); -} -else if (type === \\"Set\\") { - return v4686(data, options); -} -else if (type === \\"String\\") { - if (data.length === 0 && options.convertEmptyValues) { - return convertInput(null); - } - return { S: data }; -} -else if (type === \\"Number\\" || type === \\"NumberValue\\") { - return { N: data.toString() }; -} -else if (type === \\"Binary\\") { - if (data.length === 0 && options.convertEmptyValues) { - return convertInput(null); - } - return { B: data }; -} -else if (type === \\"Boolean\\") { - return { BOOL: data }; -} -else if (type === \\"null\\") { - return { NULL: true }; -} -else if (type !== \\"undefined\\" && type !== \\"Function\\") { - return v4692(data, options); -} }; -const v4693 = {}; -v4693.constructor = v4668; -v4668.prototype = v4693; -v4667.input = v4668; -var v4694; -v4694 = function marshallItem(data, options) { return v4667.input(data, options).M; }; -const v4695 = {}; -v4695.constructor = v4694; -v4694.prototype = v4695; -v4667.marshall = v4694; -var v4696; -var v4698; -v4698 = function Set(list, options) { options = options || {}; this.wrapperName = \\"Set\\"; this.initialize(list, options.validate); }; -const v4699 = {}; -v4699.constructor = v4698; -var v4700; -v4700 = function (list, validate) { var self = this; self.values = [].concat(list); self.detectType(); if (validate) { - self.validate(); -} }; -const v4701 = {}; -v4701.constructor = v4700; -v4700.prototype = v4701; -v4699.initialize = v4700; -var v4702; -const v4704 = {}; -v4704.String = \\"String\\"; -v4704.Number = \\"Number\\"; -v4704.NumberValue = \\"Number\\"; -v4704.Binary = \\"Binary\\"; -var v4703 = v4704; -var v4705 = v4670; -var v4706 = v3; -var v4707 = v40; -v4702 = function () { this.type = v4703[v4705(this.values[0])]; if (!this.type) { - throw v4706.error(new v4707(), { code: \\"InvalidSetType\\", message: \\"Sets can contain string, number, or binary values\\" }); -} }; -const v4708 = {}; -v4708.constructor = v4702; -v4702.prototype = v4708; -v4699.detectType = v4702; -var v4709; -var v4710 = v4704; -var v4711 = v4670; -var v4712 = v40; -v4709 = function () { var self = this; var length = self.values.length; var values = self.values; for (var i = 0; i < length; i++) { - if (v4710[v4711(values[i])] !== self.type) { - throw v4706.error(new v4712(), { code: \\"InvalidType\\", message: self.type + \\" Set contains \\" + v4711(values[i]) + \\" value\\" }); - } -} }; -const v4713 = {}; -v4713.constructor = v4709; -v4709.prototype = v4713; -v4699.validate = v4709; -var v4714; -v4714 = function () { var self = this; return self.values; }; -const v4715 = {}; -v4715.constructor = v4714; -v4714.prototype = v4715; -v4699.toJSON = v4714; -v4698.prototype = v4699; -v4698.__super__ = v31; -var v4697 = v4698; -var v4717; -var v4719; -v4719 = function NumberValue(value) { this.wrapperName = \\"NumberValue\\"; this.value = value.toString(); }; -const v4720 = {}; -v4720.constructor = v4719; -var v4721; -v4721 = function () { return this.toNumber(); }; -const v4722 = {}; -v4722.constructor = v4721; -v4721.prototype = v4722; -v4720.toJSON = v4721; -var v4723; -const v4725 = Number; -var v4724 = v4725; -v4723 = function () { return v4724(this.value); }; -const v4726 = {}; -v4726.constructor = v4723; -v4723.prototype = v4726; -v4720.toNumber = v4723; -var v4727; -v4727 = function () { return this.value; }; -const v4728 = {}; -v4728.constructor = v4727; -v4727.prototype = v4728; -v4720.toString = v4727; -v4719.prototype = v4720; -v4719.__super__ = v31; -var v4718 = v4719; -var v4729 = v4725; -v4717 = function convertNumber(value, wrapNumbers) { return wrapNumbers ? new v4718(value) : v4729(value); }; -const v4730 = {}; -v4730.constructor = v4717; -v4717.prototype = v4730; -var v4716 = v4717; -var v4731 = v4698; -var v4732 = v4698; -var v4733 = v4717; -v4696 = function convertOutput(data, options) { options = options || {}; var list, map, i; for (var type in data) { - var values = data[type]; - if (type === \\"M\\") { - map = {}; - for (var key in values) { - map[key] = convertOutput(values[key], options); - } - return map; - } - else if (type === \\"L\\") { - list = []; - for (i = 0; i < values.length; i++) { - list.push(convertOutput(values[i], options)); - } - return list; - } - else if (type === \\"SS\\") { - list = []; - for (i = 0; i < values.length; i++) { - list.push(values[i] + \\"\\"); - } - return new v4697(list); - } - else if (type === \\"NS\\") { - list = []; - for (i = 0; i < values.length; i++) { - list.push(v4716(values[i], options.wrapNumbers)); - } - return new v4731(list); - } - else if (type === \\"BS\\") { - list = []; - for (i = 0; i < values.length; i++) { - list.push(v41.toBuffer(values[i])); - } - return new v4732(list); - } - else if (type === \\"S\\") { - return values + \\"\\"; - } - else if (type === \\"N\\") { - return v4733(values, options.wrapNumbers); - } - else if (type === \\"B\\") { - return v41.toBuffer(values); - } - else if (type === \\"BOOL\\") { - return (values === \\"true\\" || values === \\"TRUE\\" || values === true); - } - else if (type === \\"NULL\\") { - return null; - } -} }; -const v4734 = {}; -v4734.constructor = v4696; -v4696.prototype = v4734; -v4667.output = v4696; -var v4735; -v4735 = function unmarshall(data, options) { return v4667.output({ M: data }, options); }; -const v4736 = {}; -v4736.constructor = v4735; -v4735.prototype = v4736; -v4667.unmarshall = v4735; -v4483.Converter = v4667; -var v4737; -v4737 = function DocumentClient(options) { var self = this; self.options = options || {}; self.configure(self.options); }; -const v4738 = {}; -v4738.constructor = v4737; -var v4739; -v4739 = function configure(options) { var self = this; self.service = options.service; self.bindServiceObject(options); self.attrValue = options.attrValue = self.service.api.operations.putItem.input.members.Item.value.shape; }; -const v4740 = {}; -v4740.constructor = v4739; -v4739.prototype = v4740; -v4738.configure = v4739; -var v4741; -var v4742 = v2; -v4741 = function bindServiceObject(options) { var self = this; options = options || {}; if (!self.service) { - self.service = new v4742.DynamoDB(options); -} -else { - var config = v3.copy(self.service.config); - self.service = new self.service.constructor.__super__(config); - self.service.config.params = v3.merge(self.service.config.params || {}, options.params); -} }; -const v4743 = {}; -v4743.constructor = v4741; -v4741.prototype = v4743; -v4738.bindServiceObject = v4741; -var v4744; -v4744 = function (operation, params, callback) { var self = this; var request = self.service[operation](params); self.setupRequest(request); self.setupResponse(request); if (typeof callback === \\"function\\") { - request.send(callback); -} return request; }; -const v4745 = {}; -v4745.constructor = v4744; -v4744.prototype = v4745; -v4738.makeServiceRequest = v4744; -const v4746 = {}; -v4746.batchGet = \\"batchGetItem\\"; -v4746.batchWrite = \\"batchWriteItem\\"; -v4746.delete = \\"deleteItem\\"; -v4746.get = \\"getItem\\"; -v4746.put = \\"putItem\\"; -v4746.query = \\"query\\"; -v4746.scan = \\"scan\\"; -v4746.update = \\"updateItem\\"; -v4746.transactGet = \\"transactGetItems\\"; -v4746.transactWrite = \\"transactWriteItems\\"; -v4738.serviceClientOperationsMap = v4746; -var v4747; -v4747 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"batchGet\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4748 = {}; -v4748.constructor = v4747; -v4747.prototype = v4748; -v4738.batchGet = v4747; -var v4749; -v4749 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"batchWrite\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4750 = {}; -v4750.constructor = v4749; -v4749.prototype = v4750; -v4738.batchWrite = v4749; -var v4751; -v4751 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"delete\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4752 = {}; -v4752.constructor = v4751; -v4751.prototype = v4752; -v4738.delete = v4751; -var v4753; -v4753 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"get\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4754 = {}; -v4754.constructor = v4753; -v4753.prototype = v4754; -v4738.get = v4753; -var v4755; -v4755 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"put\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4756 = {}; -v4756.constructor = v4755; -v4755.prototype = v4756; -v4738.put = v4755; -var v4757; -v4757 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"update\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4758 = {}; -v4758.constructor = v4757; -v4757.prototype = v4758; -v4738.update = v4757; -var v4759; -v4759 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"scan\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4760 = {}; -v4760.constructor = v4759; -v4759.prototype = v4760; -v4738.scan = v4759; -var v4761; -v4761 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"query\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4762 = {}; -v4762.constructor = v4761; -v4761.prototype = v4762; -v4738.query = v4761; -var v4763; -v4763 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"transactWrite\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4764 = {}; -v4764.constructor = v4763; -v4763.prototype = v4764; -v4738.transactWrite = v4763; -var v4765; -v4765 = function (params, callback) { var operation = this.serviceClientOperationsMap[\\"transactGet\\"]; return this.makeServiceRequest(operation, params, callback); }; -const v4766 = {}; -v4766.constructor = v4765; -v4765.prototype = v4766; -v4738.transactGet = v4765; -var v4767; -var v4768 = v4698; -v4767 = function (list, options) { options = options || {}; return new v4768(list, options); }; -const v4769 = {}; -v4769.constructor = v4767; -v4767.prototype = v4769; -v4738.createSet = v4767; -var v4770; -var v4772; -var v4773 = v282; -var v4774 = v282; -v4772 = function (options) { options = options || {}; this.attrValue = options.attrValue; this.convertEmptyValues = v4773(options.convertEmptyValues); this.wrapNumbers = v4774(options.wrapNumbers); }; -const v4775 = {}; -v4775.constructor = v4772; -var v4776; -v4776 = function (value, shape) { this.mode = \\"input\\"; return this.translate(value, shape); }; -const v4777 = {}; -v4777.constructor = v4776; -v4776.prototype = v4777; -v4775.translateInput = v4776; -var v4778; -v4778 = function (value, shape) { this.mode = \\"output\\"; return this.translate(value, shape); }; -const v4779 = {}; -v4779.constructor = v4778; -v4778.prototype = v4779; -v4775.translateOutput = v4778; -var v4780; -var v4781 = v4667; -v4780 = function (value, shape) { var self = this; if (!shape || value === undefined) - return undefined; if (shape.shape === self.attrValue) { - return v4781[self.mode](value, { convertEmptyValues: self.convertEmptyValues, wrapNumbers: self.wrapNumbers }); -} switch (shape.type) { - case \\"structure\\": return self.translateStructure(value, shape); - case \\"map\\": return self.translateMap(value, shape); - case \\"list\\": return self.translateList(value, shape); - default: return self.translateScalar(value, shape); -} }; -const v4782 = {}; -v4782.constructor = v4780; -v4780.prototype = v4782; -v4775.translate = v4780; -var v4783; -var v4784 = v3; -v4783 = function (structure, shape) { var self = this; if (structure == null) - return undefined; var struct = {}; v4784.each(structure, function (name, value) { var memberShape = shape.members[name]; if (memberShape) { - var result = self.translate(value, memberShape); - if (result !== undefined) - struct[name] = result; -} }); return struct; }; -const v4785 = {}; -v4785.constructor = v4783; -v4783.prototype = v4785; -v4775.translateStructure = v4783; -var v4786; -var v4787 = v3; -v4786 = function (list, shape) { var self = this; if (list == null) - return undefined; var out = []; v4787.arrayEach(list, function (value) { var result = self.translate(value, shape.member); if (result === undefined) - out.push(null); -else - out.push(result); }); return out; }; -const v4788 = {}; -v4788.constructor = v4786; -v4786.prototype = v4788; -v4775.translateList = v4786; -var v4789; -var v4790 = v3; -v4789 = function (map, shape) { var self = this; if (map == null) - return undefined; var out = {}; v4790.each(map, function (key, value) { var result = self.translate(value, shape.value); if (result === undefined) - out[key] = null; -else - out[key] = result; }); return out; }; -const v4791 = {}; -v4791.constructor = v4789; -v4789.prototype = v4791; -v4775.translateMap = v4789; -var v4792; -v4792 = function (value, shape) { return shape.toType(value); }; -const v4793 = {}; -v4793.constructor = v4792; -v4792.prototype = v4793; -v4775.translateScalar = v4792; -v4772.prototype = v4775; -var v4771 = v4772; -v4770 = function () { return new v4771(this.options); }; -const v4794 = {}; -v4794.constructor = v4770; -v4770.prototype = v4794; -v4738.getTranslator = v4770; -var v4795; -v4795 = function setupRequest(request) { var self = this; var translator = self.getTranslator(); var operation = request.operation; var inputShape = request.service.api.operations[operation].input; request._events.validate.unshift(function (req) { req.rawParams = v3.copy(req.params); req.params = translator.translateInput(req.rawParams, inputShape); }); }; -const v4796 = {}; -v4796.constructor = v4795; -v4795.prototype = v4796; -v4738.setupRequest = v4795; -var v4797; -v4797 = function setupResponse(request) { var self = this; var translator = self.getTranslator(); var outputShape = self.service.api.operations[request.operation].output; request.on(\\"extractData\\", function (response) { response.data = translator.translateOutput(response.data, outputShape); }); var response = request.response; response.nextPage = function (cb) { var resp = this; var req = resp.request; var config; var service = req.service; var operation = req.operation; try { - config = service.paginationConfig(operation, true); -} -catch (e) { - resp.error = e; -} if (!resp.hasNextPage()) { - if (cb) - cb(resp.error, null); - else if (resp.error) - throw resp.error; - return null; -} var params = v3.copy(req.rawParams); if (!resp.nextPageTokens) { - return cb ? cb(null, null) : null; -} -else { - var inputTokens = config.inputToken; - if (typeof inputTokens === \\"string\\") - inputTokens = [inputTokens]; - for (var i = 0; i < inputTokens.length; i++) { - params[inputTokens[i]] = resp.nextPageTokens[i]; - } - return self[operation](params, cb); -} }; }; -const v4798 = {}; -v4798.constructor = v4797; -v4797.prototype = v4798; -v4738.setupResponse = v4797; -v4737.prototype = v4738; -v4737.__super__ = v31; -v4483.DocumentClient = v4737; -v2.DynamoDB = v4483; -var v4799; -var v4800 = v299; -var v4801 = v31; -v4799 = function () { if (v4800 !== v4801) { - return v4800.apply(this, arguments); -} }; -const v4802 = Object.create(v309); -v4802.constructor = v4799; -const v4803 = {}; -const v4804 = []; -var v4805; -var v4806 = v31; -var v4807 = v4802; -v4805 = function EVENTS_BUBBLE(event) { var baseClass = v4806.getPrototypeOf(v4807); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4808 = {}; -v4808.constructor = v4805; -v4805.prototype = v4808; -v4804.push(v4805); -v4803.apiCallAttempt = v4804; -const v4809 = []; -var v4810; -v4810 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4490.getPrototypeOf(v4807); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4811 = {}; -v4811.constructor = v4810; -v4810.prototype = v4811; -v4809.push(v4810); -v4803.apiCall = v4809; -v4802._events = v4803; -v4802.MONITOR_EVENTS_BUBBLE = v4805; -v4802.CALL_EVENTS_BUBBLE = v4810; -v4799.prototype = v4802; -v4799.__super__ = v299; -const v4812 = {}; -v4812[\\"2012-08-10\\"] = null; -v4799.services = v4812; -const v4813 = []; -v4813.push(\\"2012-08-10\\"); -v4799.apiVersions = v4813; -v4799.serviceIdentifier = \\"dynamodbstreams\\"; -v2.DynamoDBStreams = v4799; -var v4814; -var v4815 = v299; -var v4816 = v31; -v4814 = function () { if (v4815 !== v4816) { - return v4815.apply(this, arguments); -} }; -const v4817 = Object.create(v309); -v4817.constructor = v4814; -const v4818 = {}; -const v4819 = []; -var v4820; -var v4821 = v31; -var v4822 = v4817; -v4820 = function EVENTS_BUBBLE(event) { var baseClass = v4821.getPrototypeOf(v4822); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4823 = {}; -v4823.constructor = v4820; -v4820.prototype = v4823; -v4819.push(v4820); -v4818.apiCallAttempt = v4819; -const v4824 = []; -var v4825; -v4825 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4806.getPrototypeOf(v4822); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4826 = {}; -v4826.constructor = v4825; -v4825.prototype = v4826; -v4824.push(v4825); -v4818.apiCall = v4824; -v4817._events = v4818; -v4817.MONITOR_EVENTS_BUBBLE = v4820; -v4817.CALL_EVENTS_BUBBLE = v4825; -var v4827; -v4827 = function setupRequestListeners(request) { request.removeListener(\\"extractError\\", v797.EXTRACT_ERROR); request.addListener(\\"extractError\\", this.extractError); if (request.operation === \\"copySnapshot\\") { - request.onAsync(\\"validate\\", this.buildCopySnapshotPresignedUrl); -} }; -const v4828 = {}; -v4828.constructor = v4827; -v4827.prototype = v4828; -v4817.setupRequestListeners = v4827; -var v4829; -v4829 = function buildCopySnapshotPresignedUrl(req, done) { if (req.params.PresignedUrl || req._subRequest) { - return done(); -} req.params = v3.copy(req.params); req.params.DestinationRegion = req.service.config.region; var config = v3.copy(req.service.config); delete config.endpoint; config.region = req.params.SourceRegion; var svc = new req.service.constructor(config); var newReq = svc[req.operation](req.params); newReq._subRequest = true; newReq.presign(function (err, url) { if (err) - done(err); -else { - req.params.PresignedUrl = url; - done(); -} }); }; -const v4830 = {}; -v4830.constructor = v4829; -v4829.prototype = v4830; -v4817.buildCopySnapshotPresignedUrl = v4829; -var v4831; -var v4832 = v40; -var v4833 = v40; -v4831 = function extractError(resp) { var httpResponse = resp.httpResponse; var data = new v937.Parser().parse(httpResponse.body.toString() || \\"\\"); if (data.Errors) { - resp.error = v3.error(new v4832(), { code: data.Errors.Error.Code, message: data.Errors.Error.Message }); -} -else { - resp.error = v3.error(new v4833(), { code: httpResponse.statusCode, message: null }); -} resp.error.requestId = data.RequestID || null; }; -const v4834 = {}; -v4834.constructor = v4831; -v4831.prototype = v4834; -v4817.extractError = v4831; -v4814.prototype = v4817; -v4814.__super__ = v299; -const v4835 = {}; -v4835[\\"2013-06-15*\\"] = null; -v4835[\\"2013-10-15*\\"] = null; -v4835[\\"2014-02-01*\\"] = null; -v4835[\\"2014-05-01*\\"] = null; -v4835[\\"2014-06-15*\\"] = null; -v4835[\\"2014-09-01*\\"] = null; -v4835[\\"2014-10-01*\\"] = null; -v4835[\\"2015-03-01*\\"] = null; -v4835[\\"2015-04-15*\\"] = null; -v4835[\\"2015-10-01*\\"] = null; -v4835[\\"2016-04-01*\\"] = null; -v4835[\\"2016-09-15*\\"] = null; -v4835[\\"2016-11-15\\"] = null; -v4814.services = v4835; -const v4836 = []; -v4836.push(\\"2013-06-15*\\", \\"2013-10-15*\\", \\"2014-02-01*\\", \\"2014-05-01*\\", \\"2014-06-15*\\", \\"2014-09-01*\\", \\"2014-10-01*\\", \\"2015-03-01*\\", \\"2015-04-15*\\", \\"2015-10-01*\\", \\"2016-04-01*\\", \\"2016-09-15*\\", \\"2016-11-15\\"); -v4814.apiVersions = v4836; -v4814.serviceIdentifier = \\"ec2\\"; -v2.EC2 = v4814; -var v4837; -var v4838 = v299; -var v4839 = v31; -v4837 = function () { if (v4838 !== v4839) { - return v4838.apply(this, arguments); -} }; -const v4840 = Object.create(v309); -v4840.constructor = v4837; -const v4841 = {}; -const v4842 = []; -var v4843; -var v4844 = v31; -var v4845 = v4840; -v4843 = function EVENTS_BUBBLE(event) { var baseClass = v4844.getPrototypeOf(v4845); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4846 = {}; -v4846.constructor = v4843; -v4843.prototype = v4846; -v4842.push(v4843); -v4841.apiCallAttempt = v4842; -const v4847 = []; -var v4848; -v4848 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4821.getPrototypeOf(v4845); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4849 = {}; -v4849.constructor = v4848; -v4848.prototype = v4849; -v4847.push(v4848); -v4841.apiCall = v4847; -v4840._events = v4841; -v4840.MONITOR_EVENTS_BUBBLE = v4843; -v4840.CALL_EVENTS_BUBBLE = v4848; -v4837.prototype = v4840; -v4837.__super__ = v299; -const v4850 = {}; -v4850[\\"2015-09-21\\"] = null; -v4837.services = v4850; -const v4851 = []; -v4851.push(\\"2015-09-21\\"); -v4837.apiVersions = v4851; -v4837.serviceIdentifier = \\"ecr\\"; -v2.ECR = v4837; -var v4852; -var v4853 = v299; -var v4854 = v31; -v4852 = function () { if (v4853 !== v4854) { - return v4853.apply(this, arguments); -} }; -const v4855 = Object.create(v309); -v4855.constructor = v4852; -const v4856 = {}; -const v4857 = []; -var v4858; -var v4859 = v31; -var v4860 = v4855; -v4858 = function EVENTS_BUBBLE(event) { var baseClass = v4859.getPrototypeOf(v4860); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4861 = {}; -v4861.constructor = v4858; -v4858.prototype = v4861; -v4857.push(v4858); -v4856.apiCallAttempt = v4857; -const v4862 = []; -var v4863; -v4863 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4844.getPrototypeOf(v4860); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4864 = {}; -v4864.constructor = v4863; -v4863.prototype = v4864; -v4862.push(v4863); -v4856.apiCall = v4862; -v4855._events = v4856; -v4855.MONITOR_EVENTS_BUBBLE = v4858; -v4855.CALL_EVENTS_BUBBLE = v4863; -v4852.prototype = v4855; -v4852.__super__ = v299; -const v4865 = {}; -v4865[\\"2014-11-13\\"] = null; -v4852.services = v4865; -const v4866 = []; -v4866.push(\\"2014-11-13\\"); -v4852.apiVersions = v4866; -v4852.serviceIdentifier = \\"ecs\\"; -v2.ECS = v4852; -var v4867; -var v4868 = v299; -var v4869 = v31; -v4867 = function () { if (v4868 !== v4869) { - return v4868.apply(this, arguments); -} }; -const v4870 = Object.create(v309); -v4870.constructor = v4867; -const v4871 = {}; -const v4872 = []; -var v4873; -var v4874 = v31; -var v4875 = v4870; -v4873 = function EVENTS_BUBBLE(event) { var baseClass = v4874.getPrototypeOf(v4875); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4876 = {}; -v4876.constructor = v4873; -v4873.prototype = v4876; -v4872.push(v4873); -v4871.apiCallAttempt = v4872; -const v4877 = []; -var v4878; -v4878 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4859.getPrototypeOf(v4875); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4879 = {}; -v4879.constructor = v4878; -v4878.prototype = v4879; -v4877.push(v4878); -v4871.apiCall = v4877; -v4870._events = v4871; -v4870.MONITOR_EVENTS_BUBBLE = v4873; -v4870.CALL_EVENTS_BUBBLE = v4878; -v4867.prototype = v4870; -v4867.__super__ = v299; -const v4880 = {}; -v4880[\\"2015-02-01\\"] = null; -v4867.services = v4880; -const v4881 = []; -v4881.push(\\"2015-02-01\\"); -v4867.apiVersions = v4881; -v4867.serviceIdentifier = \\"efs\\"; -v2.EFS = v4867; -var v4882; -var v4883 = v299; -var v4884 = v31; -v4882 = function () { if (v4883 !== v4884) { - return v4883.apply(this, arguments); -} }; -const v4885 = Object.create(v309); -v4885.constructor = v4882; -const v4886 = {}; -const v4887 = []; -var v4888; -var v4889 = v31; -var v4890 = v4885; -v4888 = function EVENTS_BUBBLE(event) { var baseClass = v4889.getPrototypeOf(v4890); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4891 = {}; -v4891.constructor = v4888; -v4888.prototype = v4891; -v4887.push(v4888); -v4886.apiCallAttempt = v4887; -const v4892 = []; -var v4893; -v4893 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4874.getPrototypeOf(v4890); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4894 = {}; -v4894.constructor = v4893; -v4893.prototype = v4894; -v4892.push(v4893); -v4886.apiCall = v4892; -v4885._events = v4886; -v4885.MONITOR_EVENTS_BUBBLE = v4888; -v4885.CALL_EVENTS_BUBBLE = v4893; -v4882.prototype = v4885; -v4882.__super__ = v299; -const v4895 = {}; -v4895[\\"2012-11-15*\\"] = null; -v4895[\\"2014-03-24*\\"] = null; -v4895[\\"2014-07-15*\\"] = null; -v4895[\\"2014-09-30*\\"] = null; -v4895[\\"2015-02-02\\"] = null; -v4882.services = v4895; -const v4896 = []; -v4896.push(\\"2012-11-15*\\", \\"2014-03-24*\\", \\"2014-07-15*\\", \\"2014-09-30*\\", \\"2015-02-02\\"); -v4882.apiVersions = v4896; -v4882.serviceIdentifier = \\"elasticache\\"; -v2.ElastiCache = v4882; -var v4897; -var v4898 = v299; -var v4899 = v31; -v4897 = function () { if (v4898 !== v4899) { - return v4898.apply(this, arguments); -} }; -const v4900 = Object.create(v309); -v4900.constructor = v4897; -const v4901 = {}; -const v4902 = []; -var v4903; -var v4904 = v31; -var v4905 = v4900; -v4903 = function EVENTS_BUBBLE(event) { var baseClass = v4904.getPrototypeOf(v4905); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4906 = {}; -v4906.constructor = v4903; -v4903.prototype = v4906; -v4902.push(v4903); -v4901.apiCallAttempt = v4902; -const v4907 = []; -var v4908; -v4908 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4889.getPrototypeOf(v4905); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4909 = {}; -v4909.constructor = v4908; -v4908.prototype = v4909; -v4907.push(v4908); -v4901.apiCall = v4907; -v4900._events = v4901; -v4900.MONITOR_EVENTS_BUBBLE = v4903; -v4900.CALL_EVENTS_BUBBLE = v4908; -v4897.prototype = v4900; -v4897.__super__ = v299; -const v4910 = {}; -v4910[\\"2010-12-01\\"] = null; -v4897.services = v4910; -const v4911 = []; -v4911.push(\\"2010-12-01\\"); -v4897.apiVersions = v4911; -v4897.serviceIdentifier = \\"elasticbeanstalk\\"; -v2.ElasticBeanstalk = v4897; -var v4912; -var v4913 = v299; -var v4914 = v31; -v4912 = function () { if (v4913 !== v4914) { - return v4913.apply(this, arguments); -} }; -const v4915 = Object.create(v309); -v4915.constructor = v4912; -const v4916 = {}; -const v4917 = []; -var v4918; -var v4919 = v31; -var v4920 = v4915; -v4918 = function EVENTS_BUBBLE(event) { var baseClass = v4919.getPrototypeOf(v4920); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4921 = {}; -v4921.constructor = v4918; -v4918.prototype = v4921; -v4917.push(v4918); -v4916.apiCallAttempt = v4917; -const v4922 = []; -var v4923; -v4923 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4904.getPrototypeOf(v4920); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4924 = {}; -v4924.constructor = v4923; -v4923.prototype = v4924; -v4922.push(v4923); -v4916.apiCall = v4922; -v4915._events = v4916; -v4915.MONITOR_EVENTS_BUBBLE = v4918; -v4915.CALL_EVENTS_BUBBLE = v4923; -v4912.prototype = v4915; -v4912.__super__ = v299; -const v4925 = {}; -v4925[\\"2012-06-01\\"] = null; -v4912.services = v4925; -const v4926 = []; -v4926.push(\\"2012-06-01\\"); -v4912.apiVersions = v4926; -v4912.serviceIdentifier = \\"elb\\"; -v2.ELB = v4912; -var v4927; -var v4928 = v299; -var v4929 = v31; -v4927 = function () { if (v4928 !== v4929) { - return v4928.apply(this, arguments); -} }; -const v4930 = Object.create(v309); -v4930.constructor = v4927; -const v4931 = {}; -const v4932 = []; -var v4933; -var v4934 = v31; -var v4935 = v4930; -v4933 = function EVENTS_BUBBLE(event) { var baseClass = v4934.getPrototypeOf(v4935); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4936 = {}; -v4936.constructor = v4933; -v4933.prototype = v4936; -v4932.push(v4933); -v4931.apiCallAttempt = v4932; -const v4937 = []; -var v4938; -v4938 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4919.getPrototypeOf(v4935); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4939 = {}; -v4939.constructor = v4938; -v4938.prototype = v4939; -v4937.push(v4938); -v4931.apiCall = v4937; -v4930._events = v4931; -v4930.MONITOR_EVENTS_BUBBLE = v4933; -v4930.CALL_EVENTS_BUBBLE = v4938; -v4927.prototype = v4930; -v4927.__super__ = v299; -const v4940 = {}; -v4940[\\"2015-12-01\\"] = null; -v4927.services = v4940; -const v4941 = []; -v4941.push(\\"2015-12-01\\"); -v4927.apiVersions = v4941; -v4927.serviceIdentifier = \\"elbv2\\"; -v2.ELBv2 = v4927; -var v4942; -var v4943 = v299; -var v4944 = v31; -v4942 = function () { if (v4943 !== v4944) { - return v4943.apply(this, arguments); -} }; -const v4945 = Object.create(v309); -v4945.constructor = v4942; -const v4946 = {}; -const v4947 = []; -var v4948; -var v4949 = v31; -var v4950 = v4945; -v4948 = function EVENTS_BUBBLE(event) { var baseClass = v4949.getPrototypeOf(v4950); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4951 = {}; -v4951.constructor = v4948; -v4948.prototype = v4951; -v4947.push(v4948); -v4946.apiCallAttempt = v4947; -const v4952 = []; -var v4953; -v4953 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4934.getPrototypeOf(v4950); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4954 = {}; -v4954.constructor = v4953; -v4953.prototype = v4954; -v4952.push(v4953); -v4946.apiCall = v4952; -v4945._events = v4946; -v4945.MONITOR_EVENTS_BUBBLE = v4948; -v4945.CALL_EVENTS_BUBBLE = v4953; -v4942.prototype = v4945; -v4942.__super__ = v299; -const v4955 = {}; -v4955[\\"2009-03-31\\"] = null; -v4942.services = v4955; -const v4956 = []; -v4956.push(\\"2009-03-31\\"); -v4942.apiVersions = v4956; -v4942.serviceIdentifier = \\"emr\\"; -v2.EMR = v4942; -var v4957; -var v4958 = v299; -var v4959 = v31; -v4957 = function () { if (v4958 !== v4959) { - return v4958.apply(this, arguments); -} }; -const v4960 = Object.create(v309); -v4960.constructor = v4957; -const v4961 = {}; -const v4962 = []; -var v4963; -var v4964 = v31; -var v4965 = v4960; -v4963 = function EVENTS_BUBBLE(event) { var baseClass = v4964.getPrototypeOf(v4965); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4966 = {}; -v4966.constructor = v4963; -v4963.prototype = v4966; -v4962.push(v4963); -v4961.apiCallAttempt = v4962; -const v4967 = []; -var v4968; -v4968 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4949.getPrototypeOf(v4965); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4969 = {}; -v4969.constructor = v4968; -v4968.prototype = v4969; -v4967.push(v4968); -v4961.apiCall = v4967; -v4960._events = v4961; -v4960.MONITOR_EVENTS_BUBBLE = v4963; -v4960.CALL_EVENTS_BUBBLE = v4968; -v4957.prototype = v4960; -v4957.__super__ = v299; -const v4970 = {}; -v4970[\\"2015-01-01\\"] = null; -v4957.services = v4970; -const v4971 = []; -v4971.push(\\"2015-01-01\\"); -v4957.apiVersions = v4971; -v4957.serviceIdentifier = \\"es\\"; -v2.ES = v4957; -var v4972; -var v4973 = v299; -var v4974 = v31; -v4972 = function () { if (v4973 !== v4974) { - return v4973.apply(this, arguments); -} }; -const v4975 = Object.create(v309); -v4975.constructor = v4972; -const v4976 = {}; -const v4977 = []; -var v4978; -var v4979 = v31; -var v4980 = v4975; -v4978 = function EVENTS_BUBBLE(event) { var baseClass = v4979.getPrototypeOf(v4980); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4981 = {}; -v4981.constructor = v4978; -v4978.prototype = v4981; -v4977.push(v4978); -v4976.apiCallAttempt = v4977; -const v4982 = []; -var v4983; -v4983 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4964.getPrototypeOf(v4980); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4984 = {}; -v4984.constructor = v4983; -v4983.prototype = v4984; -v4982.push(v4983); -v4976.apiCall = v4982; -v4975._events = v4976; -v4975.MONITOR_EVENTS_BUBBLE = v4978; -v4975.CALL_EVENTS_BUBBLE = v4983; -v4972.prototype = v4975; -v4972.__super__ = v299; -const v4985 = {}; -v4985[\\"2012-09-25\\"] = null; -v4972.services = v4985; -const v4986 = []; -v4986.push(\\"2012-09-25\\"); -v4972.apiVersions = v4986; -v4972.serviceIdentifier = \\"elastictranscoder\\"; -v2.ElasticTranscoder = v4972; -var v4987; -var v4988 = v299; -var v4989 = v31; -v4987 = function () { if (v4988 !== v4989) { - return v4988.apply(this, arguments); -} }; -const v4990 = Object.create(v309); -v4990.constructor = v4987; -const v4991 = {}; -const v4992 = []; -var v4993; -var v4994 = v31; -var v4995 = v4990; -v4993 = function EVENTS_BUBBLE(event) { var baseClass = v4994.getPrototypeOf(v4995); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v4996 = {}; -v4996.constructor = v4993; -v4993.prototype = v4996; -v4992.push(v4993); -v4991.apiCallAttempt = v4992; -const v4997 = []; -var v4998; -v4998 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4979.getPrototypeOf(v4995); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v4999 = {}; -v4999.constructor = v4998; -v4998.prototype = v4999; -v4997.push(v4998); -v4991.apiCall = v4997; -v4990._events = v4991; -v4990.MONITOR_EVENTS_BUBBLE = v4993; -v4990.CALL_EVENTS_BUBBLE = v4998; -v4987.prototype = v4990; -v4987.__super__ = v299; -const v5000 = {}; -v5000[\\"2015-08-04\\"] = null; -v4987.services = v5000; -const v5001 = []; -v5001.push(\\"2015-08-04\\"); -v4987.apiVersions = v5001; -v4987.serviceIdentifier = \\"firehose\\"; -v2.Firehose = v4987; -var v5002; -var v5003 = v299; -var v5004 = v31; -v5002 = function () { if (v5003 !== v5004) { - return v5003.apply(this, arguments); -} }; -const v5005 = Object.create(v309); -v5005.constructor = v5002; -const v5006 = {}; -const v5007 = []; -var v5008; -var v5009 = v31; -var v5010 = v5005; -v5008 = function EVENTS_BUBBLE(event) { var baseClass = v5009.getPrototypeOf(v5010); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5011 = {}; -v5011.constructor = v5008; -v5008.prototype = v5011; -v5007.push(v5008); -v5006.apiCallAttempt = v5007; -const v5012 = []; -var v5013; -v5013 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v4994.getPrototypeOf(v5010); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5014 = {}; -v5014.constructor = v5013; -v5013.prototype = v5014; -v5012.push(v5013); -v5006.apiCall = v5012; -v5005._events = v5006; -v5005.MONITOR_EVENTS_BUBBLE = v5008; -v5005.CALL_EVENTS_BUBBLE = v5013; -v5002.prototype = v5005; -v5002.__super__ = v299; -const v5015 = {}; -v5015[\\"2015-10-01\\"] = null; -v5002.services = v5015; -const v5016 = []; -v5016.push(\\"2015-10-01\\"); -v5002.apiVersions = v5016; -v5002.serviceIdentifier = \\"gamelift\\"; -v2.GameLift = v5002; -var v5017; -var v5018 = v299; -var v5019 = v31; -v5017 = function () { if (v5018 !== v5019) { - return v5018.apply(this, arguments); -} }; -const v5020 = Object.create(v309); -v5020.constructor = v5017; -const v5021 = {}; -const v5022 = []; -var v5023; -var v5024 = v31; -var v5025 = v5020; -v5023 = function EVENTS_BUBBLE(event) { var baseClass = v5024.getPrototypeOf(v5025); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5026 = {}; -v5026.constructor = v5023; -v5023.prototype = v5026; -v5022.push(v5023); -v5021.apiCallAttempt = v5022; -const v5027 = []; -var v5028; -v5028 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5009.getPrototypeOf(v5025); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5029 = {}; -v5029.constructor = v5028; -v5028.prototype = v5029; -v5027.push(v5028); -v5021.apiCall = v5027; -v5020._events = v5021; -v5020.MONITOR_EVENTS_BUBBLE = v5023; -v5020.CALL_EVENTS_BUBBLE = v5028; -var v5030; -var v5031 = v33; -v5030 = function setupRequestListeners(request) { if (v5031.isArray(request._events.validate)) { - request._events.validate.unshift(this.validateAccountId); -} -else { - request.on(\\"validate\\", this.validateAccountId); -} request.removeListener(\\"afterBuild\\", v428.COMPUTE_SHA256); request.on(\\"build\\", this.addGlacierApiVersion); request.on(\\"build\\", this.addTreeHashHeaders); }; -const v5032 = {}; -v5032.constructor = v5030; -v5030.prototype = v5032; -v5020.setupRequestListeners = v5030; -var v5033; -v5033 = function validateAccountId(request) { if (request.params.accountId !== undefined) - return; request.params = v3.copy(request.params); request.params.accountId = \\"-\\"; }; -const v5034 = {}; -v5034.constructor = v5033; -v5033.prototype = v5034; -v5020.validateAccountId = v5033; -var v5035; -v5035 = function addGlacierApiVersion(request) { var version = request.service.api.apiVersion; request.httpRequest.headers[\\"x-amz-glacier-version\\"] = version; }; -const v5036 = {}; -v5036.constructor = v5035; -v5035.prototype = v5036; -v5020.addGlacierApiVersion = v5035; -var v5037; -v5037 = function addTreeHashHeaders(request) { if (request.params.body === undefined) - return; var hashes = request.service.computeChecksums(request.params.body); request.httpRequest.headers[\\"X-Amz-Content-Sha256\\"] = hashes.linearHash; if (!request.httpRequest.headers[\\"x-amz-sha256-tree-hash\\"]) { - request.httpRequest.headers[\\"x-amz-sha256-tree-hash\\"] = hashes.treeHash; -} }; -const v5038 = {}; -v5038.constructor = v5037; -v5037.prototype = v5038; -v5020.addTreeHashHeaders = v5037; -var v5039; -var v5040 = v787; -v5039 = function computeChecksums(data) { if (!v3.Buffer.isBuffer(data)) - data = v41.toBuffer(data); var mb = 1024 * 1024; var hashes = []; var hash = v91.createHash(\\"sha256\\"); for (var i = 0; i < data.length; i += mb) { - var chunk = data.slice(i, v5040.min(i + mb, data.length)); - hash.update(chunk); - hashes.push(v91.sha256(chunk)); -} return { linearHash: hash.digest(\\"hex\\"), treeHash: this.buildHashTree(hashes) }; }; -const v5041 = {}; -v5041.constructor = v5039; -v5039.prototype = v5041; -v5020.computeChecksums = v5039; -var v5042; -v5042 = function buildHashTree(hashes) { while (hashes.length > 1) { - var tmpHashes = []; - for (var i = 0; i < hashes.length; i += 2) { - if (hashes[i + 1]) { - var tmpHash = v41.alloc(64); - tmpHash.write(hashes[i], 0, 32, \\"binary\\"); - tmpHash.write(hashes[i + 1], 32, 32, \\"binary\\"); - tmpHashes.push(v91.sha256(tmpHash)); - } - else { - tmpHashes.push(hashes[i]); - } - } - hashes = tmpHashes; -} return v91.toHex(hashes[0]); }; -const v5043 = {}; -v5043.constructor = v5042; -v5042.prototype = v5043; -v5020.buildHashTree = v5042; -v5017.prototype = v5020; -v5017.__super__ = v299; -const v5044 = {}; -v5044[\\"2012-06-01\\"] = null; -v5017.services = v5044; -const v5045 = []; -v5045.push(\\"2012-06-01\\"); -v5017.apiVersions = v5045; -v5017.serviceIdentifier = \\"glacier\\"; -v2.Glacier = v5017; -var v5046; -var v5047 = v299; -var v5048 = v31; -v5046 = function () { if (v5047 !== v5048) { - return v5047.apply(this, arguments); -} }; -const v5049 = Object.create(v309); -v5049.constructor = v5046; -const v5050 = {}; -const v5051 = []; -var v5052; -var v5053 = v31; -var v5054 = v5049; -v5052 = function EVENTS_BUBBLE(event) { var baseClass = v5053.getPrototypeOf(v5054); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5055 = {}; -v5055.constructor = v5052; -v5052.prototype = v5055; -v5051.push(v5052); -v5050.apiCallAttempt = v5051; -const v5056 = []; -var v5057; -v5057 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5024.getPrototypeOf(v5054); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5058 = {}; -v5058.constructor = v5057; -v5057.prototype = v5058; -v5056.push(v5057); -v5050.apiCall = v5056; -v5049._events = v5050; -v5049.MONITOR_EVENTS_BUBBLE = v5052; -v5049.CALL_EVENTS_BUBBLE = v5057; -v5046.prototype = v5049; -v5046.__super__ = v299; -const v5059 = {}; -v5059[\\"2016-08-04\\"] = null; -v5046.services = v5059; -const v5060 = []; -v5060.push(\\"2016-08-04\\"); -v5046.apiVersions = v5060; -v5046.serviceIdentifier = \\"health\\"; -v2.Health = v5046; -var v5061; -var v5062 = v299; -var v5063 = v31; -v5061 = function () { if (v5062 !== v5063) { - return v5062.apply(this, arguments); -} }; -const v5064 = Object.create(v309); -v5064.constructor = v5061; -const v5065 = {}; -const v5066 = []; -var v5067; -var v5068 = v31; -var v5069 = v5064; -v5067 = function EVENTS_BUBBLE(event) { var baseClass = v5068.getPrototypeOf(v5069); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5070 = {}; -v5070.constructor = v5067; -v5067.prototype = v5070; -v5066.push(v5067); -v5065.apiCallAttempt = v5066; -const v5071 = []; -var v5072; -v5072 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5053.getPrototypeOf(v5069); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5073 = {}; -v5073.constructor = v5072; -v5072.prototype = v5073; -v5071.push(v5072); -v5065.apiCall = v5071; -v5064._events = v5065; -v5064.MONITOR_EVENTS_BUBBLE = v5067; -v5064.CALL_EVENTS_BUBBLE = v5072; -v5061.prototype = v5064; -v5061.__super__ = v299; -const v5074 = {}; -v5074[\\"2010-05-08\\"] = null; -v5061.services = v5074; -const v5075 = []; -v5075.push(\\"2010-05-08\\"); -v5061.apiVersions = v5075; -v5061.serviceIdentifier = \\"iam\\"; -v2.IAM = v5061; -var v5076; -var v5077 = v299; -var v5078 = v31; -v5076 = function () { if (v5077 !== v5078) { - return v5077.apply(this, arguments); -} }; -const v5079 = Object.create(v309); -v5079.constructor = v5076; -const v5080 = {}; -const v5081 = []; -var v5082; -var v5083 = v31; -var v5084 = v5079; -v5082 = function EVENTS_BUBBLE(event) { var baseClass = v5083.getPrototypeOf(v5084); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5085 = {}; -v5085.constructor = v5082; -v5082.prototype = v5085; -v5081.push(v5082); -v5080.apiCallAttempt = v5081; -const v5086 = []; -var v5087; -v5087 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5068.getPrototypeOf(v5084); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5088 = {}; -v5088.constructor = v5087; -v5087.prototype = v5088; -v5086.push(v5087); -v5080.apiCall = v5086; -v5079._events = v5080; -v5079.MONITOR_EVENTS_BUBBLE = v5082; -v5079.CALL_EVENTS_BUBBLE = v5087; -v5076.prototype = v5079; -v5076.__super__ = v299; -const v5089 = {}; -v5089[\\"2010-06-01\\"] = null; -v5076.services = v5089; -const v5090 = []; -v5090.push(\\"2010-06-01\\"); -v5076.apiVersions = v5090; -v5076.serviceIdentifier = \\"importexport\\"; -v2.ImportExport = v5076; -var v5091; -var v5092 = v299; -var v5093 = v31; -v5091 = function () { if (v5092 !== v5093) { - return v5092.apply(this, arguments); -} }; -const v5094 = Object.create(v309); -v5094.constructor = v5091; -const v5095 = {}; -const v5096 = []; -var v5097; -var v5098 = v31; -var v5099 = v5094; -v5097 = function EVENTS_BUBBLE(event) { var baseClass = v5098.getPrototypeOf(v5099); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5100 = {}; -v5100.constructor = v5097; -v5097.prototype = v5100; -v5096.push(v5097); -v5095.apiCallAttempt = v5096; -const v5101 = []; -var v5102; -v5102 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5083.getPrototypeOf(v5099); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5103 = {}; -v5103.constructor = v5102; -v5102.prototype = v5103; -v5101.push(v5102); -v5095.apiCall = v5101; -v5094._events = v5095; -v5094.MONITOR_EVENTS_BUBBLE = v5097; -v5094.CALL_EVENTS_BUBBLE = v5102; -v5091.prototype = v5094; -v5091.__super__ = v299; -const v5104 = {}; -v5104[\\"2015-08-18*\\"] = null; -v5104[\\"2016-02-16\\"] = null; -v5091.services = v5104; -const v5105 = []; -v5105.push(\\"2015-08-18*\\", \\"2016-02-16\\"); -v5091.apiVersions = v5105; -v5091.serviceIdentifier = \\"inspector\\"; -v2.Inspector = v5091; -var v5106; -var v5107 = v299; -var v5108 = v31; -v5106 = function () { if (v5107 !== v5108) { - return v5107.apply(this, arguments); -} }; -const v5109 = Object.create(v309); -v5109.constructor = v5106; -const v5110 = {}; -const v5111 = []; -var v5112; -var v5113 = v31; -var v5114 = v5109; -v5112 = function EVENTS_BUBBLE(event) { var baseClass = v5113.getPrototypeOf(v5114); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5115 = {}; -v5115.constructor = v5112; -v5112.prototype = v5115; -v5111.push(v5112); -v5110.apiCallAttempt = v5111; -const v5116 = []; -var v5117; -v5117 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5098.getPrototypeOf(v5114); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5118 = {}; -v5118.constructor = v5117; -v5117.prototype = v5118; -v5116.push(v5117); -v5110.apiCall = v5116; -v5109._events = v5110; -v5109.MONITOR_EVENTS_BUBBLE = v5112; -v5109.CALL_EVENTS_BUBBLE = v5117; -v5106.prototype = v5109; -v5106.__super__ = v299; -const v5119 = {}; -v5119[\\"2015-05-28\\"] = null; -v5106.services = v5119; -const v5120 = []; -v5120.push(\\"2015-05-28\\"); -v5106.apiVersions = v5120; -v5106.serviceIdentifier = \\"iot\\"; -v2.Iot = v5106; -var v5121; -var v5122 = v299; -var v5123 = v31; -v5121 = function () { if (v5122 !== v5123) { - return v5122.apply(this, arguments); -} }; -const v5124 = Object.create(v309); -v5124.constructor = v5121; -const v5125 = {}; -const v5126 = []; -var v5127; -var v5128 = v31; -var v5129 = v5124; -v5127 = function EVENTS_BUBBLE(event) { var baseClass = v5128.getPrototypeOf(v5129); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5130 = {}; -v5130.constructor = v5127; -v5127.prototype = v5130; -v5126.push(v5127); -v5125.apiCallAttempt = v5126; -const v5131 = []; -var v5132; -v5132 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5113.getPrototypeOf(v5129); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5133 = {}; -v5133.constructor = v5132; -v5132.prototype = v5133; -v5131.push(v5132); -v5125.apiCall = v5131; -v5124._events = v5125; -v5124.MONITOR_EVENTS_BUBBLE = v5127; -v5124.CALL_EVENTS_BUBBLE = v5132; -var v5134; -var v5135 = v40; -v5134 = function validateService() { if (!this.config.endpoint || this.config.endpoint.indexOf(\\"{\\") >= 0) { - var msg = \\"AWS.IotData requires an explicit \\" + \\"\`endpoint' configuration option.\\"; - throw v3.error(new v5135(), { name: \\"InvalidEndpoint\\", message: msg }); -} }; -const v5136 = {}; -v5136.constructor = v5134; -v5134.prototype = v5136; -v5124.validateService = v5134; -var v5137; -const v5139 = []; -v5139.push(\\"deleteThingShadow\\", \\"getThingShadow\\", \\"updateThingShadow\\"); -var v5138 = v5139; -v5137 = function setupRequestListeners(request) { request.addListener(\\"validateResponse\\", this.validateResponseBody); if (v5138.indexOf(request.operation) > -1) { - request.addListener(\\"extractData\\", v3.convertPayloadToString); -} }; -const v5140 = {}; -v5140.constructor = v5137; -v5137.prototype = v5140; -v5124.setupRequestListeners = v5137; -var v5141; -v5141 = function validateResponseBody(resp) { var body = resp.httpResponse.body.toString() || \\"{}\\"; var bodyCheck = body.trim(); if (!bodyCheck || bodyCheck.charAt(0) !== \\"{\\") { - resp.httpResponse.body = \\"\\"; -} }; -const v5142 = {}; -v5142.constructor = v5141; -v5141.prototype = v5142; -v5124.validateResponseBody = v5141; -v5121.prototype = v5124; -v5121.__super__ = v299; -const v5143 = {}; -v5143[\\"2015-05-28\\"] = null; -v5121.services = v5143; -const v5144 = []; -v5144.push(\\"2015-05-28\\"); -v5121.apiVersions = v5144; -v5121.serviceIdentifier = \\"iotdata\\"; -v2.IotData = v5121; -var v5145; -var v5146 = v299; -var v5147 = v31; -v5145 = function () { if (v5146 !== v5147) { - return v5146.apply(this, arguments); -} }; -const v5148 = Object.create(v309); -v5148.constructor = v5145; -const v5149 = {}; -const v5150 = []; -var v5151; -var v5152 = v31; -var v5153 = v5148; -v5151 = function EVENTS_BUBBLE(event) { var baseClass = v5152.getPrototypeOf(v5153); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5154 = {}; -v5154.constructor = v5151; -v5151.prototype = v5154; -v5150.push(v5151); -v5149.apiCallAttempt = v5150; -const v5155 = []; -var v5156; -v5156 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5128.getPrototypeOf(v5153); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5157 = {}; -v5157.constructor = v5156; -v5156.prototype = v5157; -v5155.push(v5156); -v5149.apiCall = v5155; -v5148._events = v5149; -v5148.MONITOR_EVENTS_BUBBLE = v5151; -v5148.CALL_EVENTS_BUBBLE = v5156; -v5145.prototype = v5148; -v5145.__super__ = v299; -const v5158 = {}; -v5158[\\"2013-12-02\\"] = null; -v5145.services = v5158; -const v5159 = []; -v5159.push(\\"2013-12-02\\"); -v5145.apiVersions = v5159; -v5145.serviceIdentifier = \\"kinesis\\"; -v2.Kinesis = v5145; -var v5160; -var v5161 = v299; -var v5162 = v31; -v5160 = function () { if (v5161 !== v5162) { - return v5161.apply(this, arguments); -} }; -const v5163 = Object.create(v309); -v5163.constructor = v5160; -const v5164 = {}; -const v5165 = []; -var v5166; -var v5167 = v31; -var v5168 = v5163; -v5166 = function EVENTS_BUBBLE(event) { var baseClass = v5167.getPrototypeOf(v5168); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5169 = {}; -v5169.constructor = v5166; -v5166.prototype = v5169; -v5165.push(v5166); -v5164.apiCallAttempt = v5165; -const v5170 = []; -var v5171; -v5171 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5152.getPrototypeOf(v5168); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5172 = {}; -v5172.constructor = v5171; -v5171.prototype = v5172; -v5170.push(v5171); -v5164.apiCall = v5170; -v5163._events = v5164; -v5163.MONITOR_EVENTS_BUBBLE = v5166; -v5163.CALL_EVENTS_BUBBLE = v5171; -v5160.prototype = v5163; -v5160.__super__ = v299; -const v5173 = {}; -v5173[\\"2015-08-14\\"] = null; -v5160.services = v5173; -const v5174 = []; -v5174.push(\\"2015-08-14\\"); -v5160.apiVersions = v5174; -v5160.serviceIdentifier = \\"kinesisanalytics\\"; -v2.KinesisAnalytics = v5160; -var v5175; -var v5176 = v299; -var v5177 = v31; -v5175 = function () { if (v5176 !== v5177) { - return v5176.apply(this, arguments); -} }; -const v5178 = Object.create(v309); -v5178.constructor = v5175; -const v5179 = {}; -const v5180 = []; -var v5181; -var v5182 = v31; -var v5183 = v5178; -v5181 = function EVENTS_BUBBLE(event) { var baseClass = v5182.getPrototypeOf(v5183); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5184 = {}; -v5184.constructor = v5181; -v5181.prototype = v5184; -v5180.push(v5181); -v5179.apiCallAttempt = v5180; -const v5185 = []; -var v5186; -v5186 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5167.getPrototypeOf(v5183); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5187 = {}; -v5187.constructor = v5186; -v5186.prototype = v5187; -v5185.push(v5186); -v5179.apiCall = v5185; -v5178._events = v5179; -v5178.MONITOR_EVENTS_BUBBLE = v5181; -v5178.CALL_EVENTS_BUBBLE = v5186; -v5175.prototype = v5178; -v5175.__super__ = v299; -const v5188 = {}; -v5188[\\"2014-11-01\\"] = null; -v5175.services = v5188; -const v5189 = []; -v5189.push(\\"2014-11-01\\"); -v5175.apiVersions = v5189; -v5175.serviceIdentifier = \\"kms\\"; -v2.KMS = v5175; -var v5190; -var v5191 = v299; -var v5192 = v31; -v5190 = function () { if (v5191 !== v5192) { - return v5191.apply(this, arguments); -} }; -const v5193 = Object.create(v309); -v5193.constructor = v5190; -const v5194 = {}; -const v5195 = []; -var v5196; -var v5197 = v31; -var v5198 = v5193; -v5196 = function EVENTS_BUBBLE(event) { var baseClass = v5197.getPrototypeOf(v5198); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5199 = {}; -v5199.constructor = v5196; -v5196.prototype = v5199; -v5195.push(v5196); -v5194.apiCallAttempt = v5195; -const v5200 = []; -var v5201; -v5201 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5182.getPrototypeOf(v5198); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5202 = {}; -v5202.constructor = v5201; -v5201.prototype = v5202; -v5200.push(v5201); -v5194.apiCall = v5200; -v5193._events = v5194; -v5193.MONITOR_EVENTS_BUBBLE = v5196; -v5193.CALL_EVENTS_BUBBLE = v5201; -var v5203; -v5203 = function setupRequestListeners(request) { if (request.operation === \\"invoke\\") { - request.addListener(\\"extractData\\", v3.convertPayloadToString); -} }; -const v5204 = {}; -v5204.constructor = v5203; -v5203.prototype = v5204; -v5193.setupRequestListeners = v5203; -v5190.prototype = v5193; -v5190.__super__ = v299; -const v5205 = {}; -v5205[\\"2014-11-11\\"] = null; -v5205[\\"2015-03-31\\"] = null; -v5190.services = v5205; -const v5206 = []; -v5206.push(\\"2014-11-11\\", \\"2015-03-31\\"); -v5190.apiVersions = v5206; -v5190.serviceIdentifier = \\"lambda\\"; -v2.Lambda = v5190; -var v5207; -var v5208 = v299; -var v5209 = v31; -v5207 = function () { if (v5208 !== v5209) { - return v5208.apply(this, arguments); -} }; -const v5210 = Object.create(v309); -v5210.constructor = v5207; -const v5211 = {}; -const v5212 = []; -var v5213; -var v5214 = v31; -var v5215 = v5210; -v5213 = function EVENTS_BUBBLE(event) { var baseClass = v5214.getPrototypeOf(v5215); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5216 = {}; -v5216.constructor = v5213; -v5213.prototype = v5216; -v5212.push(v5213); -v5211.apiCallAttempt = v5212; -const v5217 = []; -var v5218; -v5218 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5197.getPrototypeOf(v5215); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5219 = {}; -v5219.constructor = v5218; -v5218.prototype = v5219; -v5217.push(v5218); -v5211.apiCall = v5217; -v5210._events = v5211; -v5210.MONITOR_EVENTS_BUBBLE = v5213; -v5210.CALL_EVENTS_BUBBLE = v5218; -v5207.prototype = v5210; -v5207.__super__ = v299; -const v5220 = {}; -v5220[\\"2016-11-28\\"] = null; -v5207.services = v5220; -const v5221 = []; -v5221.push(\\"2016-11-28\\"); -v5207.apiVersions = v5221; -v5207.serviceIdentifier = \\"lexruntime\\"; -v2.LexRuntime = v5207; -var v5222; -var v5223 = v299; -var v5224 = v31; -v5222 = function () { if (v5223 !== v5224) { - return v5223.apply(this, arguments); -} }; -const v5225 = Object.create(v309); -v5225.constructor = v5222; -const v5226 = {}; -const v5227 = []; -var v5228; -var v5229 = v31; -var v5230 = v5225; -v5228 = function EVENTS_BUBBLE(event) { var baseClass = v5229.getPrototypeOf(v5230); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5231 = {}; -v5231.constructor = v5228; -v5228.prototype = v5231; -v5227.push(v5228); -v5226.apiCallAttempt = v5227; -const v5232 = []; -var v5233; -v5233 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5214.getPrototypeOf(v5230); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5234 = {}; -v5234.constructor = v5233; -v5233.prototype = v5234; -v5232.push(v5233); -v5226.apiCall = v5232; -v5225._events = v5226; -v5225.MONITOR_EVENTS_BUBBLE = v5228; -v5225.CALL_EVENTS_BUBBLE = v5233; -v5222.prototype = v5225; -v5222.__super__ = v299; -const v5235 = {}; -v5235[\\"2016-11-28\\"] = null; -v5222.services = v5235; -const v5236 = []; -v5236.push(\\"2016-11-28\\"); -v5222.apiVersions = v5236; -v5222.serviceIdentifier = \\"lightsail\\"; -v2.Lightsail = v5222; -var v5237; -var v5238 = v299; -var v5239 = v31; -v5237 = function () { if (v5238 !== v5239) { - return v5238.apply(this, arguments); -} }; -const v5240 = Object.create(v309); -v5240.constructor = v5237; -const v5241 = {}; -const v5242 = []; -var v5243; -var v5244 = v31; -var v5245 = v5240; -v5243 = function EVENTS_BUBBLE(event) { var baseClass = v5244.getPrototypeOf(v5245); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5246 = {}; -v5246.constructor = v5243; -v5243.prototype = v5246; -v5242.push(v5243); -v5241.apiCallAttempt = v5242; -const v5247 = []; -var v5248; -v5248 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5229.getPrototypeOf(v5245); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5249 = {}; -v5249.constructor = v5248; -v5248.prototype = v5249; -v5247.push(v5248); -v5241.apiCall = v5247; -v5240._events = v5241; -v5240.MONITOR_EVENTS_BUBBLE = v5243; -v5240.CALL_EVENTS_BUBBLE = v5248; -var v5250; -v5250 = function setupRequestListeners(request) { if (request.operation === \\"predict\\") { - request.addListener(\\"build\\", this.buildEndpoint); -} }; -const v5251 = {}; -v5251.constructor = v5250; -v5250.prototype = v5251; -v5240.setupRequestListeners = v5250; -var v5252; -var v5253 = v2; -v5252 = function buildEndpoint(request) { var url = request.params.PredictEndpoint; if (url) { - request.httpRequest.endpoint = new v5253.Endpoint(url); -} }; -const v5254 = {}; -v5254.constructor = v5252; -v5252.prototype = v5254; -v5240.buildEndpoint = v5252; -v5237.prototype = v5240; -v5237.__super__ = v299; -const v5255 = {}; -v5255[\\"2014-12-12\\"] = null; -v5237.services = v5255; -const v5256 = []; -v5256.push(\\"2014-12-12\\"); -v5237.apiVersions = v5256; -v5237.serviceIdentifier = \\"machinelearning\\"; -v2.MachineLearning = v5237; -var v5257; -var v5258 = v299; -var v5259 = v31; -v5257 = function () { if (v5258 !== v5259) { - return v5258.apply(this, arguments); -} }; -const v5260 = Object.create(v309); -v5260.constructor = v5257; -const v5261 = {}; -const v5262 = []; -var v5263; -var v5264 = v31; -var v5265 = v5260; -v5263 = function EVENTS_BUBBLE(event) { var baseClass = v5264.getPrototypeOf(v5265); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5266 = {}; -v5266.constructor = v5263; -v5263.prototype = v5266; -v5262.push(v5263); -v5261.apiCallAttempt = v5262; -const v5267 = []; -var v5268; -v5268 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5244.getPrototypeOf(v5265); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5269 = {}; -v5269.constructor = v5268; -v5268.prototype = v5269; -v5267.push(v5268); -v5261.apiCall = v5267; -v5260._events = v5261; -v5260.MONITOR_EVENTS_BUBBLE = v5263; -v5260.CALL_EVENTS_BUBBLE = v5268; -v5257.prototype = v5260; -v5257.__super__ = v299; -const v5270 = {}; -v5270[\\"2015-07-01\\"] = null; -v5257.services = v5270; -const v5271 = []; -v5271.push(\\"2015-07-01\\"); -v5257.apiVersions = v5271; -v5257.serviceIdentifier = \\"marketplacecommerceanalytics\\"; -v2.MarketplaceCommerceAnalytics = v5257; -var v5272; -var v5273 = v299; -var v5274 = v31; -v5272 = function () { if (v5273 !== v5274) { - return v5273.apply(this, arguments); -} }; -const v5275 = Object.create(v309); -v5275.constructor = v5272; -const v5276 = {}; -const v5277 = []; -var v5278; -var v5279 = v31; -var v5280 = v5275; -v5278 = function EVENTS_BUBBLE(event) { var baseClass = v5279.getPrototypeOf(v5280); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5281 = {}; -v5281.constructor = v5278; -v5278.prototype = v5281; -v5277.push(v5278); -v5276.apiCallAttempt = v5277; -const v5282 = []; -var v5283; -v5283 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5264.getPrototypeOf(v5280); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5284 = {}; -v5284.constructor = v5283; -v5283.prototype = v5284; -v5282.push(v5283); -v5276.apiCall = v5282; -v5275._events = v5276; -v5275.MONITOR_EVENTS_BUBBLE = v5278; -v5275.CALL_EVENTS_BUBBLE = v5283; -v5272.prototype = v5275; -v5272.__super__ = v299; -const v5285 = {}; -v5285[\\"2016-01-14\\"] = null; -v5272.services = v5285; -const v5286 = []; -v5286.push(\\"2016-01-14\\"); -v5272.apiVersions = v5286; -v5272.serviceIdentifier = \\"marketplacemetering\\"; -v2.MarketplaceMetering = v5272; -var v5287; -var v5288 = v299; -var v5289 = v31; -v5287 = function () { if (v5288 !== v5289) { - return v5288.apply(this, arguments); -} }; -const v5290 = Object.create(v309); -v5290.constructor = v5287; -const v5291 = {}; -const v5292 = []; -var v5293; -var v5294 = v31; -var v5295 = v5290; -v5293 = function EVENTS_BUBBLE(event) { var baseClass = v5294.getPrototypeOf(v5295); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5296 = {}; -v5296.constructor = v5293; -v5293.prototype = v5296; -v5292.push(v5293); -v5291.apiCallAttempt = v5292; -const v5297 = []; -var v5298; -v5298 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5279.getPrototypeOf(v5295); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5299 = {}; -v5299.constructor = v5298; -v5298.prototype = v5299; -v5297.push(v5298); -v5291.apiCall = v5297; -v5290._events = v5291; -v5290.MONITOR_EVENTS_BUBBLE = v5293; -v5290.CALL_EVENTS_BUBBLE = v5298; -v5287.prototype = v5290; -v5287.__super__ = v299; -const v5300 = {}; -v5300[\\"2017-01-17\\"] = null; -v5287.services = v5300; -const v5301 = []; -v5301.push(\\"2017-01-17\\"); -v5287.apiVersions = v5301; -v5287.serviceIdentifier = \\"mturk\\"; -v2.MTurk = v5287; -var v5302; -var v5303 = v299; -var v5304 = v31; -v5302 = function () { if (v5303 !== v5304) { - return v5303.apply(this, arguments); -} }; -const v5305 = Object.create(v309); -v5305.constructor = v5302; -const v5306 = {}; -const v5307 = []; -var v5308; -var v5309 = v31; -var v5310 = v5305; -v5308 = function EVENTS_BUBBLE(event) { var baseClass = v5309.getPrototypeOf(v5310); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5311 = {}; -v5311.constructor = v5308; -v5308.prototype = v5311; -v5307.push(v5308); -v5306.apiCallAttempt = v5307; -const v5312 = []; -var v5313; -v5313 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5294.getPrototypeOf(v5310); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5314 = {}; -v5314.constructor = v5313; -v5313.prototype = v5314; -v5312.push(v5313); -v5306.apiCall = v5312; -v5305._events = v5306; -v5305.MONITOR_EVENTS_BUBBLE = v5308; -v5305.CALL_EVENTS_BUBBLE = v5313; -v5302.prototype = v5305; -v5302.__super__ = v299; -const v5315 = {}; -v5315[\\"2014-06-05\\"] = null; -v5302.services = v5315; -const v5316 = []; -v5316.push(\\"2014-06-05\\"); -v5302.apiVersions = v5316; -v5302.serviceIdentifier = \\"mobileanalytics\\"; -v2.MobileAnalytics = v5302; -var v5317; -var v5318 = v299; -var v5319 = v31; -v5317 = function () { if (v5318 !== v5319) { - return v5318.apply(this, arguments); -} }; -const v5320 = Object.create(v309); -v5320.constructor = v5317; -const v5321 = {}; -const v5322 = []; -var v5323; -var v5324 = v31; -var v5325 = v5320; -v5323 = function EVENTS_BUBBLE(event) { var baseClass = v5324.getPrototypeOf(v5325); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5326 = {}; -v5326.constructor = v5323; -v5323.prototype = v5326; -v5322.push(v5323); -v5321.apiCallAttempt = v5322; -const v5327 = []; -var v5328; -v5328 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5309.getPrototypeOf(v5325); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5329 = {}; -v5329.constructor = v5328; -v5328.prototype = v5329; -v5327.push(v5328); -v5321.apiCall = v5327; -v5320._events = v5321; -v5320.MONITOR_EVENTS_BUBBLE = v5323; -v5320.CALL_EVENTS_BUBBLE = v5328; -v5317.prototype = v5320; -v5317.__super__ = v299; -const v5330 = {}; -v5330[\\"2013-02-18\\"] = null; -v5317.services = v5330; -const v5331 = []; -v5331.push(\\"2013-02-18\\"); -v5317.apiVersions = v5331; -v5317.serviceIdentifier = \\"opsworks\\"; -v2.OpsWorks = v5317; -var v5332; -var v5333 = v299; -var v5334 = v31; -v5332 = function () { if (v5333 !== v5334) { - return v5333.apply(this, arguments); -} }; -const v5335 = Object.create(v309); -v5335.constructor = v5332; -const v5336 = {}; -const v5337 = []; -var v5338; -var v5339 = v31; -var v5340 = v5335; -v5338 = function EVENTS_BUBBLE(event) { var baseClass = v5339.getPrototypeOf(v5340); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5341 = {}; -v5341.constructor = v5338; -v5338.prototype = v5341; -v5337.push(v5338); -v5336.apiCallAttempt = v5337; -const v5342 = []; -var v5343; -v5343 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5324.getPrototypeOf(v5340); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5344 = {}; -v5344.constructor = v5343; -v5343.prototype = v5344; -v5342.push(v5343); -v5336.apiCall = v5342; -v5335._events = v5336; -v5335.MONITOR_EVENTS_BUBBLE = v5338; -v5335.CALL_EVENTS_BUBBLE = v5343; -v5332.prototype = v5335; -v5332.__super__ = v299; -const v5345 = {}; -v5345[\\"2016-11-01\\"] = null; -v5332.services = v5345; -const v5346 = []; -v5346.push(\\"2016-11-01\\"); -v5332.apiVersions = v5346; -v5332.serviceIdentifier = \\"opsworkscm\\"; -v2.OpsWorksCM = v5332; -var v5347; -var v5348 = v299; -var v5349 = v31; -v5347 = function () { if (v5348 !== v5349) { - return v5348.apply(this, arguments); -} }; -const v5350 = Object.create(v309); -v5350.constructor = v5347; -const v5351 = {}; -const v5352 = []; -var v5353; -var v5354 = v31; -var v5355 = v5350; -v5353 = function EVENTS_BUBBLE(event) { var baseClass = v5354.getPrototypeOf(v5355); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5356 = {}; -v5356.constructor = v5353; -v5353.prototype = v5356; -v5352.push(v5353); -v5351.apiCallAttempt = v5352; -const v5357 = []; -var v5358; -v5358 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5339.getPrototypeOf(v5355); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5359 = {}; -v5359.constructor = v5358; -v5358.prototype = v5359; -v5357.push(v5358); -v5351.apiCall = v5357; -v5350._events = v5351; -v5350.MONITOR_EVENTS_BUBBLE = v5353; -v5350.CALL_EVENTS_BUBBLE = v5358; -v5347.prototype = v5350; -v5347.__super__ = v299; -const v5360 = {}; -v5360[\\"2016-11-28\\"] = null; -v5347.services = v5360; -const v5361 = []; -v5361.push(\\"2016-11-28\\"); -v5347.apiVersions = v5361; -v5347.serviceIdentifier = \\"organizations\\"; -v2.Organizations = v5347; -var v5362; -var v5363 = v299; -var v5364 = v31; -v5362 = function () { if (v5363 !== v5364) { - return v5363.apply(this, arguments); -} }; -const v5365 = Object.create(v309); -v5365.constructor = v5362; -const v5366 = {}; -const v5367 = []; -var v5368; -var v5369 = v31; -var v5370 = v5365; -v5368 = function EVENTS_BUBBLE(event) { var baseClass = v5369.getPrototypeOf(v5370); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5371 = {}; -v5371.constructor = v5368; -v5368.prototype = v5371; -v5367.push(v5368); -v5366.apiCallAttempt = v5367; -const v5372 = []; -var v5373; -v5373 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5354.getPrototypeOf(v5370); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5374 = {}; -v5374.constructor = v5373; -v5373.prototype = v5374; -v5372.push(v5373); -v5366.apiCall = v5372; -v5365._events = v5366; -v5365.MONITOR_EVENTS_BUBBLE = v5368; -v5365.CALL_EVENTS_BUBBLE = v5373; -v5362.prototype = v5365; -v5362.__super__ = v299; -const v5375 = {}; -v5375[\\"2016-12-01\\"] = null; -v5362.services = v5375; -const v5376 = []; -v5376.push(\\"2016-12-01\\"); -v5362.apiVersions = v5376; -v5362.serviceIdentifier = \\"pinpoint\\"; -v2.Pinpoint = v5362; -var v5377; -var v5378 = v299; -var v5379 = v31; -v5377 = function () { if (v5378 !== v5379) { - return v5378.apply(this, arguments); -} }; -const v5380 = Object.create(v309); -v5380.constructor = v5377; -const v5381 = {}; -const v5382 = []; -var v5383; -var v5384 = v31; -var v5385 = v5380; -v5383 = function EVENTS_BUBBLE(event) { var baseClass = v5384.getPrototypeOf(v5385); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5386 = {}; -v5386.constructor = v5383; -v5383.prototype = v5386; -v5382.push(v5383); -v5381.apiCallAttempt = v5382; -const v5387 = []; -var v5388; -v5388 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5369.getPrototypeOf(v5385); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5389 = {}; -v5389.constructor = v5388; -v5388.prototype = v5389; -v5387.push(v5388); -v5381.apiCall = v5387; -v5380._events = v5381; -v5380.MONITOR_EVENTS_BUBBLE = v5383; -v5380.CALL_EVENTS_BUBBLE = v5388; -v5377.prototype = v5380; -v5377.__super__ = v299; -const v5390 = {}; -v5390[\\"2016-06-10\\"] = null; -v5377.services = v5390; -const v5391 = []; -v5391.push(\\"2016-06-10\\"); -v5377.apiVersions = v5391; -v5377.serviceIdentifier = \\"polly\\"; -var v5392; -v5392 = function Signer(options) { options = options || {}; this.options = options; this.service = options.service; this.bindServiceObject(options); this._operations = {}; }; -const v5393 = {}; -v5393.constructor = v5392; -var v5394; -var v5395 = v2; -v5394 = function bindServiceObject(options) { options = options || {}; if (!this.service) { - this.service = new v5395.Polly(options); -} -else { - var config = v3.copy(this.service.config); - this.service = new this.service.constructor.__super__(config); - this.service.config.params = v3.merge(this.service.config.params || {}, options.params); -} }; -const v5396 = {}; -v5396.constructor = v5394; -v5394.prototype = v5396; -v5393.bindServiceObject = v5394; -var v5397; -v5397 = function modifyInputMembers(input) { var modifiedInput = v3.copy(input); modifiedInput.members = v3.copy(input.members); v3.each(input.members, function (name, member) { modifiedInput.members[name] = v3.copy(member); if (!member.location || member.location === \\"body\\") { - modifiedInput.members[name].location = \\"querystring\\"; - modifiedInput.members[name].locationName = name; -} }); return modifiedInput; }; -const v5398 = {}; -v5398.constructor = v5397; -v5397.prototype = v5398; -v5393.modifyInputMembers = v5397; -var v5399; -var v5400 = v1977; -v5399 = function convertPostToGet(req) { req.httpRequest.method = \\"GET\\"; var operation = req.service.api.operations[req.operation]; var input = this._operations[req.operation]; if (!input) { - this._operations[req.operation] = input = this.modifyInputMembers(operation.input); -} var uri = v5400.generateURI(req.httpRequest.endpoint.path, operation.httpPath, input, req.params); req.httpRequest.path = uri; req.httpRequest.body = \\"\\"; delete req.httpRequest.headers[\\"Content-Length\\"]; delete req.httpRequest.headers[\\"Content-Type\\"]; }; -const v5401 = {}; -v5401.constructor = v5399; -v5399.prototype = v5401; -v5393.convertPostToGet = v5399; -var v5402; -v5402 = function getSynthesizeSpeechUrl(params, expires, callback) { var self = this; var request = this.service.makeRequest(\\"synthesizeSpeech\\", params); request.removeAllListeners(\\"build\\"); request.on(\\"build\\", function (req) { self.convertPostToGet(req); }); return request.presign(expires, callback); }; -const v5403 = {}; -v5403.constructor = v5402; -v5402.prototype = v5403; -v5393.getSynthesizeSpeechUrl = v5402; -v5392.prototype = v5393; -v5392.__super__ = v31; -v5377.Presigner = v5392; -v2.Polly = v5377; -var v5404; -var v5405 = v299; -var v5406 = v31; -v5404 = function () { if (v5405 !== v5406) { - return v5405.apply(this, arguments); -} }; -const v5407 = Object.create(v309); -v5407.constructor = v5404; -const v5408 = {}; -const v5409 = []; -var v5410; -var v5411 = v31; -var v5412 = v5407; -v5410 = function EVENTS_BUBBLE(event) { var baseClass = v5411.getPrototypeOf(v5412); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5413 = {}; -v5413.constructor = v5410; -v5410.prototype = v5413; -v5409.push(v5410); -v5408.apiCallAttempt = v5409; -const v5414 = []; -var v5415; -v5415 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5384.getPrototypeOf(v5412); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5416 = {}; -v5416.constructor = v5415; -v5415.prototype = v5416; -v5414.push(v5415); -v5408.apiCall = v5414; -v5407._events = v5408; -v5407.MONITOR_EVENTS_BUBBLE = v5410; -v5407.CALL_EVENTS_BUBBLE = v5415; -var v5417; -const v5419 = {}; -var v5420; -var v5421 = v5419; -v5420 = function setupRequestListeners(service, request, crossRegionOperations) { if (crossRegionOperations.indexOf(request.operation) !== -1 && request.params.SourceRegion) { - request.params = v3.copy(request.params); - if (request.params.PreSignedUrl || request.params.SourceRegion === service.config.region) { - delete request.params.SourceRegion; - } - else { - var doesParamValidation = !!service.config.paramValidation; - if (doesParamValidation) { - request.removeListener(\\"validate\\", v428.VALIDATE_PARAMETERS); - } - request.onAsync(\\"validate\\", v5421.buildCrossRegionPresignedUrl); - if (doesParamValidation) { - request.addListener(\\"validate\\", v428.VALIDATE_PARAMETERS); - } - } -} }; -const v5422 = {}; -v5422.constructor = v5420; -v5420.prototype = v5422; -v5419.setupRequestListeners = v5420; -var v5423; -v5423 = function buildCrossRegionPresignedUrl(req, done) { var config = v3.copy(req.service.config); config.region = req.params.SourceRegion; delete req.params.SourceRegion; delete config.endpoint; delete config.params; config.signatureVersion = \\"v4\\"; var destinationRegion = req.service.config.region; var svc = new req.service.constructor(config); var newReq = svc[req.operation](v3.copy(req.params)); newReq.on(\\"build\\", function addDestinationRegionParam(request) { var httpRequest = request.httpRequest; httpRequest.params.DestinationRegion = destinationRegion; httpRequest.body = v3.queryParamsToString(httpRequest.params); }); newReq.presign(function (err, url) { if (err) - done(err); -else { - req.params.PreSignedUrl = url; - done(); -} }); }; -const v5424 = {}; -v5424.constructor = v5423; -v5423.prototype = v5424; -v5419.buildCrossRegionPresignedUrl = v5423; -var v5418 = v5419; -const v5426 = []; -v5426.push(\\"copyDBSnapshot\\", \\"createDBInstanceReadReplica\\", \\"createDBCluster\\", \\"copyDBClusterSnapshot\\", \\"startDBInstanceAutomatedBackupsReplication\\"); -var v5425 = v5426; -v5417 = function setupRequestListeners(request) { v5418.setupRequestListeners(this, request, v5425); }; -const v5427 = {}; -v5427.constructor = v5417; -v5417.prototype = v5427; -v5407.setupRequestListeners = v5417; -v5404.prototype = v5407; -v5404.__super__ = v299; -const v5428 = {}; -v5428[\\"2013-01-10\\"] = null; -v5428[\\"2013-02-12\\"] = null; -v5428[\\"2013-09-09\\"] = null; -v5428[\\"2014-09-01\\"] = null; -v5428[\\"2014-09-01*\\"] = null; -v5428[\\"2014-10-31\\"] = null; -v5404.services = v5428; -const v5429 = []; -v5429.push(\\"2013-01-10\\", \\"2013-02-12\\", \\"2013-09-09\\", \\"2014-09-01\\", \\"2014-09-01*\\", \\"2014-10-31\\"); -v5404.apiVersions = v5429; -v5404.serviceIdentifier = \\"rds\\"; -var v5430; -v5430 = function Signer(options) { this.options = options || {}; }; -const v5431 = {}; -v5431.constructor = v5430; -var v5432; -v5432 = function convertUrlToAuthToken(url) { var protocol = \\"https://\\"; if (url.indexOf(protocol) === 0) { - return url.substring(protocol.length); -} }; -const v5433 = {}; -v5433.constructor = v5432; -v5432.prototype = v5433; -v5431.convertUrlToAuthToken = v5432; -var v5434; -var v5435 = v2; -var v5436 = v2; -const v5438 = {}; -v5438.signatureVersion = \\"v4\\"; -v5438.signingName = \\"rds-db\\"; -const v5439 = {}; -v5438.operations = v5439; -var v5437 = v5438; -v5434 = function getAuthToken(options, callback) { if (typeof options === \\"function\\" && callback === undefined) { - callback = options; - options = {}; -} var self = this; var hasCallback = typeof callback === \\"function\\"; options = v3.merge(this.options, options); var optionsValidation = this.validateAuthTokenOptions(options); if (optionsValidation !== true) { - if (hasCallback) { - return callback(optionsValidation, null); - } - throw optionsValidation; -} var expires = 900; var serviceOptions = { region: options.region, endpoint: new v5435.Endpoint(options.hostname + \\":\\" + options.port), paramValidation: false, signatureVersion: \\"v4\\" }; if (options.credentials) { - serviceOptions.credentials = options.credentials; -} service = new v5436.Service(serviceOptions); undefined = v5437; var request = undefined(); this.modifyRequestForAuthToken(request, options); if (hasCallback) { - request.presign(expires, function (err, url) { if (url) { - url = self.convertUrlToAuthToken(url); - } callback(err, url); }); -} -else { - var url = request.presign(expires); - return this.convertUrlToAuthToken(url); -} }; -const v5440 = {}; -v5440.constructor = v5434; -v5434.prototype = v5440; -v5431.getAuthToken = v5434; -var v5441; -v5441 = function modifyRequestForAuthToken(request, options) { request.on(\\"build\\", request.buildAsGet); var httpRequest = request.httpRequest; httpRequest.body = v3.queryParamsToString({ Action: \\"connect\\", DBUser: options.username }); }; -const v5442 = {}; -v5442.constructor = v5441; -v5441.prototype = v5442; -v5431.modifyRequestForAuthToken = v5441; -var v5443; -const v5445 = {}; -v5445.region = \\"string\\"; -v5445.hostname = \\"string\\"; -v5445.port = \\"number\\"; -v5445.username = \\"string\\"; -var v5444 = v5445; -var v5446 = v5445; -var v5447 = v5445; -var v5448 = v5445; -var v5449 = v40; -v5443 = function validateAuthTokenOptions(options) { var message = \\"\\"; options = options || {}; for (var key in v5444) { - if (!v113.hasOwnProperty.call(v5446, key)) { - continue; - } - if (typeof options[key] !== v5447[key]) { - message += \\"option '\\" + key + \\"' should have been type '\\" + v5448[key] + \\"', was '\\" + typeof options[key] + \\"'.\\\\n\\"; - } -} if (message.length) { - return v3.error(new v5449(), { code: \\"InvalidParameter\\", message: message }); -} return true; }; -const v5450 = {}; -v5450.constructor = v5443; -v5443.prototype = v5450; -v5431.validateAuthTokenOptions = v5443; -v5430.prototype = v5431; -v5430.__super__ = v31; -v5404.Signer = v5430; -v2.RDS = v5404; -var v5451; -var v5452 = v299; -var v5453 = v31; -v5451 = function () { if (v5452 !== v5453) { - return v5452.apply(this, arguments); -} }; -const v5454 = Object.create(v309); -v5454.constructor = v5451; -const v5455 = {}; -const v5456 = []; -var v5457; -var v5458 = v31; -var v5459 = v5454; -v5457 = function EVENTS_BUBBLE(event) { var baseClass = v5458.getPrototypeOf(v5459); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5460 = {}; -v5460.constructor = v5457; -v5457.prototype = v5460; -v5456.push(v5457); -v5455.apiCallAttempt = v5456; -const v5461 = []; -var v5462; -v5462 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5411.getPrototypeOf(v5459); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5463 = {}; -v5463.constructor = v5462; -v5462.prototype = v5463; -v5461.push(v5462); -v5455.apiCall = v5461; -v5454._events = v5455; -v5454.MONITOR_EVENTS_BUBBLE = v5457; -v5454.CALL_EVENTS_BUBBLE = v5462; -v5451.prototype = v5454; -v5451.__super__ = v299; -const v5464 = {}; -v5464[\\"2012-12-01\\"] = null; -v5451.services = v5464; -const v5465 = []; -v5465.push(\\"2012-12-01\\"); -v5451.apiVersions = v5465; -v5451.serviceIdentifier = \\"redshift\\"; -v2.Redshift = v5451; -var v5466; -var v5467 = v299; -var v5468 = v31; -v5466 = function () { if (v5467 !== v5468) { - return v5467.apply(this, arguments); -} }; -const v5469 = Object.create(v309); -v5469.constructor = v5466; -const v5470 = {}; -const v5471 = []; -var v5472; -var v5473 = v31; -var v5474 = v5469; -v5472 = function EVENTS_BUBBLE(event) { var baseClass = v5473.getPrototypeOf(v5474); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5475 = {}; -v5475.constructor = v5472; -v5472.prototype = v5475; -v5471.push(v5472); -v5470.apiCallAttempt = v5471; -const v5476 = []; -var v5477; -v5477 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5458.getPrototypeOf(v5474); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5478 = {}; -v5478.constructor = v5477; -v5477.prototype = v5478; -v5476.push(v5477); -v5470.apiCall = v5476; -v5469._events = v5470; -v5469.MONITOR_EVENTS_BUBBLE = v5472; -v5469.CALL_EVENTS_BUBBLE = v5477; -v5466.prototype = v5469; -v5466.__super__ = v299; -const v5479 = {}; -v5479[\\"2016-06-27\\"] = null; -v5466.services = v5479; -const v5480 = []; -v5480.push(\\"2016-06-27\\"); -v5466.apiVersions = v5480; -v5466.serviceIdentifier = \\"rekognition\\"; -v2.Rekognition = v5466; -var v5481; -var v5482 = v299; -var v5483 = v31; -v5481 = function () { if (v5482 !== v5483) { - return v5482.apply(this, arguments); -} }; -const v5484 = Object.create(v309); -v5484.constructor = v5481; -const v5485 = {}; -const v5486 = []; -var v5487; -var v5488 = v31; -var v5489 = v5484; -v5487 = function EVENTS_BUBBLE(event) { var baseClass = v5488.getPrototypeOf(v5489); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5490 = {}; -v5490.constructor = v5487; -v5487.prototype = v5490; -v5486.push(v5487); -v5485.apiCallAttempt = v5486; -const v5491 = []; -var v5492; -v5492 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5473.getPrototypeOf(v5489); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5493 = {}; -v5493.constructor = v5492; -v5492.prototype = v5493; -v5491.push(v5492); -v5485.apiCall = v5491; -v5484._events = v5485; -v5484.MONITOR_EVENTS_BUBBLE = v5487; -v5484.CALL_EVENTS_BUBBLE = v5492; -v5481.prototype = v5484; -v5481.__super__ = v299; -const v5494 = {}; -v5494[\\"2017-01-26\\"] = null; -v5481.services = v5494; -const v5495 = []; -v5495.push(\\"2017-01-26\\"); -v5481.apiVersions = v5495; -v5481.serviceIdentifier = \\"resourcegroupstaggingapi\\"; -v2.ResourceGroupsTaggingAPI = v5481; -var v5496; -var v5497 = v299; -var v5498 = v31; -v5496 = function () { if (v5497 !== v5498) { - return v5497.apply(this, arguments); -} }; -const v5499 = Object.create(v309); -v5499.constructor = v5496; -const v5500 = {}; -const v5501 = []; -var v5502; -var v5503 = v31; -var v5504 = v5499; -v5502 = function EVENTS_BUBBLE(event) { var baseClass = v5503.getPrototypeOf(v5504); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5505 = {}; -v5505.constructor = v5502; -v5502.prototype = v5505; -v5501.push(v5502); -v5500.apiCallAttempt = v5501; -const v5506 = []; -var v5507; -v5507 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5488.getPrototypeOf(v5504); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5508 = {}; -v5508.constructor = v5507; -v5507.prototype = v5508; -v5506.push(v5507); -v5500.apiCall = v5506; -v5499._events = v5500; -v5499.MONITOR_EVENTS_BUBBLE = v5502; -v5499.CALL_EVENTS_BUBBLE = v5507; -var v5509; -v5509 = function setupRequestListeners(request) { request.on(\\"build\\", this.sanitizeUrl); }; -const v5510 = {}; -v5510.constructor = v5509; -v5509.prototype = v5510; -v5499.setupRequestListeners = v5509; -var v5511; -v5511 = function sanitizeUrl(request) { var path = request.httpRequest.path; request.httpRequest.path = path.replace(/\\\\/%2F\\\\w+%2F/, \\"/\\"); }; -const v5512 = {}; -v5512.constructor = v5511; -v5511.prototype = v5512; -v5499.sanitizeUrl = v5511; -var v5513; -v5513 = function retryableError(error) { if (error.code === \\"PriorRequestNotComplete\\" && error.statusCode === 400) { - return true; -} -else { - var _super = v309.retryableError; - return _super.call(this, error); -} }; -const v5514 = {}; -v5514.constructor = v5513; -v5513.prototype = v5514; -v5499.retryableError = v5513; -v5496.prototype = v5499; -v5496.__super__ = v299; -const v5515 = {}; -v5515[\\"2013-04-01\\"] = null; -v5496.services = v5515; -const v5516 = []; -v5516.push(\\"2013-04-01\\"); -v5496.apiVersions = v5516; -v5496.serviceIdentifier = \\"route53\\"; -v2.Route53 = v5496; -var v5517; -var v5518 = v299; -var v5519 = v31; -v5517 = function () { if (v5518 !== v5519) { - return v5518.apply(this, arguments); -} }; -const v5520 = Object.create(v309); -v5520.constructor = v5517; -const v5521 = {}; -const v5522 = []; -var v5523; -var v5524 = v31; -var v5525 = v5520; -v5523 = function EVENTS_BUBBLE(event) { var baseClass = v5524.getPrototypeOf(v5525); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5526 = {}; -v5526.constructor = v5523; -v5523.prototype = v5526; -v5522.push(v5523); -v5521.apiCallAttempt = v5522; -const v5527 = []; -var v5528; -v5528 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5503.getPrototypeOf(v5525); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5529 = {}; -v5529.constructor = v5528; -v5528.prototype = v5529; -v5527.push(v5528); -v5521.apiCall = v5527; -v5520._events = v5521; -v5520.MONITOR_EVENTS_BUBBLE = v5523; -v5520.CALL_EVENTS_BUBBLE = v5528; -v5517.prototype = v5520; -v5517.__super__ = v299; -const v5530 = {}; -v5530[\\"2014-05-15\\"] = null; -v5517.services = v5530; -const v5531 = []; -v5531.push(\\"2014-05-15\\"); -v5517.apiVersions = v5531; -v5517.serviceIdentifier = \\"route53domains\\"; -v2.Route53Domains = v5517; -var v5532; -var v5533 = v299; -var v5534 = v31; -v5532 = function () { if (v5533 !== v5534) { - return v5533.apply(this, arguments); -} }; -const v5535 = Object.create(v309); -v5535.constructor = v5532; -const v5536 = {}; -const v5537 = []; -var v5538; -var v5539 = v31; -var v5540 = v5535; -v5538 = function EVENTS_BUBBLE(event) { var baseClass = v5539.getPrototypeOf(v5540); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5541 = {}; -v5541.constructor = v5538; -v5538.prototype = v5541; -v5537.push(v5538); -v5536.apiCallAttempt = v5537; -const v5542 = []; -var v5543; -v5543 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5524.getPrototypeOf(v5540); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5544 = {}; -v5544.constructor = v5543; -v5543.prototype = v5544; -v5542.push(v5543); -v5536.apiCall = v5542; -v5535._events = v5536; -v5535.MONITOR_EVENTS_BUBBLE = v5538; -v5535.CALL_EVENTS_BUBBLE = v5543; -var v5545; -v5545 = function getSignatureVersion(request) { var defaultApiVersion = this.api.signatureVersion; var userDefinedVersion = this._originalConfig ? this._originalConfig.signatureVersion : null; var regionDefinedVersion = this.config.signatureVersion; var isPresigned = request ? request.isPresigned() : false; if (userDefinedVersion) { - userDefinedVersion = userDefinedVersion === \\"v2\\" ? \\"s3\\" : userDefinedVersion; - return userDefinedVersion; -} if (isPresigned !== true) { - defaultApiVersion = \\"v4\\"; -} -else if (regionDefinedVersion) { - defaultApiVersion = regionDefinedVersion; -} return defaultApiVersion; }; -const v5546 = {}; -v5546.constructor = v5545; -v5545.prototype = v5546; -v5535.getSignatureVersion = v5545; -var v5547; -var v5548 = \\"s3-object-lambda\\"; -v5547 = function getSigningName(req) { if (req && req.operation === \\"writeGetObjectResponse\\") { - return v5548; -} var _super = v309.getSigningName; return (req && req._parsedArn && req._parsedArn.service) ? req._parsedArn.service : _super.call(this); }; -const v5549 = {}; -v5549.constructor = v5547; -v5547.prototype = v5549; -v5535.getSigningName = v5547; -var v5550; -v5550 = function getSignerClass(request) { var signatureVersion = this.getSignatureVersion(request); return v450.RequestSigner.getVersion(signatureVersion); }; -const v5551 = {}; -v5551.constructor = v5550; -v5550.prototype = v5551; -v5535.getSignerClass = v5550; -var v5552; -var v5553 = v40; -v5552 = function validateService() { var msg; var messages = []; if (!this.config.region) - this.config.region = \\"us-east-1\\"; if (!this.config.endpoint && this.config.s3BucketEndpoint) { - messages.push(\\"An endpoint must be provided when configuring \\" + \\"\`s3BucketEndpoint\` to true.\\"); -} if (messages.length === 1) { - msg = messages[0]; -} -else if (messages.length > 1) { - msg = \\"Multiple configuration errors:\\\\n\\" + messages.join(\\"\\\\n\\"); -} if (msg) { - throw v3.error(new v5553(), { name: \\"InvalidEndpoint\\", message: msg }); -} }; -const v5554 = {}; -v5554.constructor = v5552; -v5552.prototype = v5554; -v5535.validateService = v5552; -var v5555; -v5555 = function shouldDisableBodySigning(request) { var signerClass = this.getSignerClass(); if (this.config.s3DisableBodySigning === true && signerClass === v450.V4 && request.httpRequest.endpoint.protocol === \\"https:\\") { - return true; -} return false; }; -const v5556 = {}; -v5556.constructor = v5555; -v5555.prototype = v5556; -v5535.shouldDisableBodySigning = v5555; -var v5557; -const v5559 = {}; -var v5560; -v5560 = function isArnInParam(req, paramName) { var inputShape = (req.service.api.operations[req.operation] || {}).input || {}; var inputMembers = inputShape.members || {}; if (!req.params[paramName] || !inputMembers[paramName]) - return false; return v2654.validate(req.params[paramName]); }; -const v5561 = {}; -v5561.constructor = v5560; -v5560.prototype = v5561; -v5559.isArnInParam = v5560; -var v5562; -var v5563 = v40; -v5562 = function validateArnService(req) { var parsedArn = req._parsedArn; if (parsedArn.service !== \\"s3\\" && parsedArn.service !== \\"s3-outposts\\" && parsedArn.service !== \\"s3-object-lambda\\") { - throw v3.error(new v5563(), { code: \\"InvalidARN\\", message: \\"expect 's3' or 's3-outposts' or 's3-object-lambda' in ARN service component\\" }); -} }; -const v5564 = {}; -v5564.constructor = v5562; -v5562.prototype = v5564; -v5559.validateArnService = v5562; -var v5565; -var v5566 = v40; -v5565 = function validateArnAccount(req) { var parsedArn = req._parsedArn; if (!/[0-9]{12}/.exec(parsedArn.accountId)) { - throw v3.error(new v5566(), { code: \\"InvalidARN\\", message: \\"ARN accountID does not match regex \\\\\\"[0-9]{12}\\\\\\"\\" }); -} }; -const v5567 = {}; -v5567.constructor = v5565; -v5565.prototype = v5567; -v5559.validateArnAccount = v5565; -var v5568; -var v5569 = v5559; -var v5570 = v40; -v5568 = function validateS3AccessPointArn(req) { var parsedArn = req._parsedArn; var delimiter = parsedArn.resource[\\"accesspoint\\".length]; if (parsedArn.resource.split(delimiter).length !== 2) { - throw v3.error(new v5566(), { code: \\"InvalidARN\\", message: \\"Access Point ARN should have one resource accesspoint/{accesspointName}\\" }); -} var accessPoint = parsedArn.resource.split(delimiter)[1]; var accessPointPrefix = accessPoint + \\"-\\" + parsedArn.accountId; if (!v5569.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\\\\./)) { - throw v3.error(new v5570(), { code: \\"InvalidARN\\", message: \\"Access point resource in ARN is not DNS compatible. Got \\" + accessPoint }); -} req._parsedArn.accessPoint = accessPoint; }; -const v5571 = {}; -v5571.constructor = v5568; -v5568.prototype = v5571; -v5559.validateS3AccessPointArn = v5568; -var v5572; -var v5573 = v40; -var v5574 = v373; -var v5575 = v40; -v5572 = function validateOutpostsArn(req) { var parsedArn = req._parsedArn; if (parsedArn.resource.indexOf(\\"outpost:\\") !== 0 && parsedArn.resource.indexOf(\\"outpost/\\") !== 0) { - throw v3.error(new v5573(), { code: \\"InvalidARN\\", message: \\"ARN resource should begin with 'outpost/'\\" }); -} var delimiter = parsedArn.resource[\\"outpost\\".length]; var outpostId = parsedArn.resource.split(delimiter)[1]; var dnsHostRegex = new v5574(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); if (!dnsHostRegex.test(outpostId)) { - throw v3.error(new v5575(), { code: \\"InvalidARN\\", message: \\"Outpost resource in ARN is not DNS compatible. Got \\" + outpostId }); -} req._parsedArn.outpostId = outpostId; }; -const v5576 = {}; -v5576.constructor = v5572; -v5572.prototype = v5576; -v5559.validateOutpostsArn = v5572; -var v5577; -var v5578 = v40; -var v5579 = v5559; -var v5580 = v40; -v5577 = function validateOutpostsAccessPointArn(req) { var parsedArn = req._parsedArn; var delimiter = parsedArn.resource[\\"outpost\\".length]; if (parsedArn.resource.split(delimiter).length !== 4) { - throw v3.error(new v5578(), { code: \\"InvalidARN\\", message: \\"Outposts ARN should have two resources outpost/{outpostId}/accesspoint/{accesspointName}\\" }); -} var accessPoint = parsedArn.resource.split(delimiter)[3]; var accessPointPrefix = accessPoint + \\"-\\" + parsedArn.accountId; if (!v5579.dnsCompatibleBucketName(accessPointPrefix) || accessPointPrefix.match(/\\\\./)) { - throw v3.error(new v5580(), { code: \\"InvalidARN\\", message: \\"Access point resource in ARN is not DNS compatible. Got \\" + accessPoint }); -} req._parsedArn.accessPoint = accessPoint; }; -const v5581 = {}; -v5581.constructor = v5577; -v5577.prototype = v5581; -v5559.validateOutpostsAccessPointArn = v5577; -var v5582; -var v5583 = v40; -var v5584 = v40; -var v5585 = v40; -var v5586 = v313; -var v5587 = v313; -var v5588 = v40; -var v5589 = v40; -var v5590 = v40; -v5582 = function validateArnRegion(req, options) { if (options === undefined) { - options = {}; -} var useArnRegion = v5579.loadUseArnRegionConfig(req); var regionFromArn = req._parsedArn.region; var clientRegion = req.service.config.region; var useFipsEndpoint = req.service.config.useFipsEndpoint; var allowFipsEndpoint = options.allowFipsEndpoint || false; if (!regionFromArn) { - var message = \\"ARN region is empty\\"; - if (req._parsedArn.service === \\"s3\\") { - message = message + \\"\\\\nYou may want to use multi-regional ARN. The feature is not supported in current SDK. \\" + \\"You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).\\"; - } - throw v3.error(new v5583(), { code: \\"InvalidARN\\", message: message }); -} if (useFipsEndpoint && !allowFipsEndpoint) { - throw v3.error(new v5584(), { code: \\"InvalidConfiguration\\", message: \\"ARN endpoint is not compatible with FIPS region\\" }); -} if (regionFromArn.indexOf(\\"fips\\") >= 0) { - throw v3.error(new v5585(), { code: \\"InvalidConfiguration\\", message: \\"FIPS region not allowed in ARN\\" }); -} if (!useArnRegion && regionFromArn !== clientRegion) { - throw v3.error(new v5585(), { code: \\"InvalidConfiguration\\", message: \\"Configured region conflicts with access point region\\" }); -} -else if (useArnRegion && v5586.getEndpointSuffix(regionFromArn) !== v5587.getEndpointSuffix(clientRegion)) { - throw v3.error(new v5588(), { code: \\"InvalidConfiguration\\", message: \\"Configured region and access point region not in same partition\\" }); -} if (req.service.config.useAccelerateEndpoint) { - throw v3.error(new v5589(), { code: \\"InvalidConfiguration\\", message: \\"useAccelerateEndpoint config is not supported with access point ARN\\" }); -} if (req._parsedArn.service === \\"s3-outposts\\" && req.service.config.useDualstackEndpoint) { - throw v3.error(new v5590(), { code: \\"InvalidConfiguration\\", message: \\"Dualstack is not supported with outposts access point ARN\\" }); -} }; -const v5591 = {}; -v5591.constructor = v5582; -v5582.prototype = v5591; -v5559.validateArnRegion = v5582; -var v5592; -var v5593 = v8; -var v5594 = v8; -var v5595 = v8; -v5592 = function loadUseArnRegionConfig(req) { var envName = \\"AWS_S3_USE_ARN_REGION\\"; var configName = \\"s3_use_arn_region\\"; var useArnRegion = true; var originalConfig = req.service._originalConfig || {}; if (req.service.config.s3UseArnRegion !== undefined) { - return req.service.config.s3UseArnRegion; -} -else if (originalConfig.s3UseArnRegion !== undefined) { - useArnRegion = originalConfig.s3UseArnRegion === true; -} -else if (v3.isNode()) { - if (v5593.env[envName]) { - var value = v5594.env[envName].trim().toLowerCase(); - if ([\\"false\\", \\"true\\"].indexOf(value) < 0) { - throw v3.error(new v5588(), { code: \\"InvalidConfiguration\\", message: envName + \\" only accepts true or false. Got \\" + v5595.env[envName], retryable: false }); - } - useArnRegion = value === \\"true\\"; - } - else { - var profiles = {}; - var profile = {}; - try { - profiles = v3.getProfilesFromSharedConfig(v200); - profile = profiles[v5595.env.AWS_PROFILE || \\"default\\"]; - } - catch (e) { } - if (profile[configName]) { - if ([\\"false\\", \\"true\\"].indexOf(profile[configName].trim().toLowerCase()) < 0) { - throw v3.error(new v5589(), { code: \\"InvalidConfiguration\\", message: configName + \\" only accepts true or false. Got \\" + profile[configName], retryable: false }); - } - useArnRegion = profile[configName].trim().toLowerCase() === \\"true\\"; - } - } -} req.service.config.s3UseArnRegion = useArnRegion; return useArnRegion; }; -const v5596 = {}; -v5596.constructor = v5592; -v5592.prototype = v5596; -v5559.loadUseArnRegionConfig = v5592; -var v5597; -var v5598 = v40; -v5597 = function validatePopulateUriFromArn(req) { if (req.service._originalConfig && req.service._originalConfig.endpoint) { - throw v3.error(new v5598(), { code: \\"InvalidConfiguration\\", message: \\"Custom endpoint is not compatible with access point ARN\\" }); -} if (req.service.config.s3ForcePathStyle) { - throw v3.error(new v5598(), { code: \\"InvalidConfiguration\\", message: \\"Cannot construct path-style endpoint with access point\\" }); -} }; -const v5599 = {}; -v5599.constructor = v5597; -v5597.prototype = v5599; -v5559.validatePopulateUriFromArn = v5597; -var v5600; -var v5601 = v373; -var v5602 = v373; -v5600 = function dnsCompatibleBucketName(bucketName) { var b = bucketName; var domain = new v5601(/^[a-z0-9][a-z0-9\\\\.\\\\-]{1,61}[a-z0-9]$/); var ipAddress = new v5602(/(\\\\d+\\\\.){3}\\\\d+/); var dots = new v5602(/\\\\.\\\\./); return (b.match(domain) && !b.match(ipAddress) && !b.match(dots)) ? true : false; }; -const v5603 = {}; -v5603.constructor = v5600; -v5600.prototype = v5603; -v5559.dnsCompatibleBucketName = v5600; -var v5558 = v5559; -var v5604 = v5559; -var v5605 = v5559; -var v5606 = v5559; -var v5607 = v5559; -var v5608 = v5559; -var v5609 = v5559; -v5557 = function setupRequestListeners(request) { var prependListener = true; request.addListener(\\"validate\\", this.validateScheme); request.addListener(\\"validate\\", this.validateBucketName, prependListener); request.addListener(\\"validate\\", this.optInUsEast1RegionalEndpoint, prependListener); request.removeListener(\\"validate\\", v428.VALIDATE_REGION); request.addListener(\\"build\\", this.addContentType); request.addListener(\\"build\\", this.computeContentMd5); request.addListener(\\"build\\", this.computeSseCustomerKeyMd5); request.addListener(\\"build\\", this.populateURI); request.addListener(\\"afterBuild\\", this.addExpect100Continue); request.addListener(\\"extractError\\", this.extractError); request.addListener(\\"extractData\\", v3.hoistPayloadMember); request.addListener(\\"extractData\\", this.extractData); request.addListener(\\"extractData\\", this.extractErrorFrom200Response); request.addListener(\\"beforePresign\\", this.prepareSignedUrl); if (this.shouldDisableBodySigning(request)) { - request.removeListener(\\"afterBuild\\", v428.COMPUTE_SHA256); - request.addListener(\\"afterBuild\\", this.disableBodySigning); -} if (request.operation !== \\"createBucket\\" && v5558.isArnInParam(request, \\"Bucket\\")) { - request._parsedArn = v2654.parse(request.params.Bucket); - request.removeListener(\\"validate\\", this.validateBucketName); - request.removeListener(\\"build\\", this.populateURI); - if (request._parsedArn.service === \\"s3\\") { - request.addListener(\\"validate\\", v5604.validateS3AccessPointArn); - request.addListener(\\"validate\\", this.validateArnResourceType); - request.addListener(\\"validate\\", this.validateArnRegion); - } - else if (request._parsedArn.service === \\"s3-outposts\\") { - request.addListener(\\"validate\\", v5605.validateOutpostsAccessPointArn); - request.addListener(\\"validate\\", v5606.validateOutpostsArn); - request.addListener(\\"validate\\", v5607.validateArnRegion); - } - request.addListener(\\"validate\\", v5608.validateArnAccount); - request.addListener(\\"validate\\", v5608.validateArnService); - request.addListener(\\"build\\", this.populateUriFromAccessPointArn); - request.addListener(\\"build\\", v5609.validatePopulateUriFromArn); - return; -} request.addListener(\\"validate\\", this.validateBucketEndpoint); request.addListener(\\"validate\\", this.correctBucketRegionFromCache); request.onAsync(\\"extractError\\", this.requestBucketRegion); if (v3.isBrowser()) { - request.onAsync(\\"retry\\", this.reqRegionForNetworkingError); -} }; -const v5610 = {}; -v5610.constructor = v5557; -v5557.prototype = v5610; -v5535.setupRequestListeners = v5557; -var v5611; -var v5612 = v40; -v5611 = function (req) { var params = req.params, scheme = req.httpRequest.endpoint.protocol, sensitive = params.SSECustomerKey || params.CopySourceSSECustomerKey; if (sensitive && scheme !== \\"https:\\") { - var msg = \\"Cannot send SSE keys over HTTP. Set 'sslEnabled'\\" + \\"to 'true' in your configuration\\"; - throw v3.error(new v5612(), { code: \\"ConfigError\\", message: msg }); -} }; -const v5613 = {}; -v5613.constructor = v5611; -v5611.prototype = v5613; -v5535.validateScheme = v5611; -var v5614; -var v5615 = v40; -v5614 = function (req) { if (!req.params.Bucket && req.service.config.s3BucketEndpoint) { - var msg = \\"Cannot send requests to root API with \`s3BucketEndpoint\` set.\\"; - throw v3.error(new v5615(), { code: \\"ConfigError\\", message: msg }); -} }; -const v5616 = {}; -v5616.constructor = v5614; -v5614.prototype = v5616; -v5535.validateBucketEndpoint = v5614; -var v5617; -var v5618 = v5559; -v5617 = function validateArnRegion(req) { v5618.validateArnRegion(req, { allowFipsEndpoint: true }); }; -const v5619 = {}; -v5619.constructor = v5617; -v5617.prototype = v5619; -v5535.validateArnRegion = v5617; -var v5620; -var v5621 = v40; -v5620 = function validateArnResourceType(req) { var resource = req._parsedArn.resource; if (resource.indexOf(\\"accesspoint:\\") !== 0 && resource.indexOf(\\"accesspoint/\\") !== 0) { - throw v3.error(new v5621(), { code: \\"InvalidARN\\", message: \\"ARN resource should begin with 'accesspoint/'\\" }); -} }; -const v5622 = {}; -v5622.constructor = v5620; -v5620.prototype = v5622; -v5535.validateArnResourceType = v5620; -var v5623; -var v5624 = v40; -v5623 = function validateBucketName(req) { var service = req.service; var signatureVersion = service.getSignatureVersion(req); var bucket = req.params && req.params.Bucket; var key = req.params && req.params.Key; var slashIndex = bucket && bucket.indexOf(\\"/\\"); if (bucket && slashIndex >= 0) { - if (typeof key === \\"string\\" && slashIndex > 0) { - req.params = v3.copy(req.params); - var prefix = bucket.substr(slashIndex + 1) || \\"\\"; - req.params.Key = prefix + \\"/\\" + key; - req.params.Bucket = bucket.substr(0, slashIndex); - } - else if (signatureVersion === \\"v4\\") { - var msg = \\"Bucket names cannot contain forward slashes. Bucket: \\" + bucket; - throw v3.error(new v5624(), { code: \\"InvalidBucket\\", message: msg }); - } -} }; -const v5625 = {}; -v5625.constructor = v5623; -v5623.prototype = v5625; -v5535.validateBucketName = v5623; -var v5626; -v5626 = function isValidAccelerateOperation(operation) { var invalidOperations = [\\"createBucket\\", \\"deleteBucket\\", \\"listBuckets\\"]; return invalidOperations.indexOf(operation) === -1; }; -const v5627 = {}; -v5627.constructor = v5626; -v5626.prototype = v5627; -v5535.isValidAccelerateOperation = v5626; -var v5628; -var v5629 = v2560; -var v5630 = undefined; -v5628 = function optInUsEast1RegionalEndpoint(req) { var service = req.service; var config = service.config; config.s3UsEast1RegionalEndpoint = v5629(service._originalConfig, { env: \\"AWS_S3_US_EAST_1_REGIONAL_ENDPOINT\\", sharedConfig: \\"s3_us_east_1_regional_endpoint\\", clientConfig: \\"s3UsEast1RegionalEndpoint\\" }); if (!(service._originalConfig || {}).endpoint && req.httpRequest.region === \\"us-east-1\\" && config.s3UsEast1RegionalEndpoint === \\"regional\\" && req.httpRequest.endpoint.hostname.indexOf(\\"s3.amazonaws.com\\") >= 0) { - var insertPoint = config.endpoint.indexOf(\\".amazonaws.com\\"); - regionalEndpoint = config.endpoint.substring(0, insertPoint) + \\".us-east-1\\" + config.endpoint.substring(insertPoint); - req.httpRequest.updateEndpoint(v5630); -} }; -const v5631 = {}; -v5631.constructor = v5628; -v5628.prototype = v5631; -v5535.optInUsEast1RegionalEndpoint = v5628; -var v5632; -v5632 = function populateURI(req) { var httpRequest = req.httpRequest; var b = req.params.Bucket; var service = req.service; var endpoint = httpRequest.endpoint; if (b) { - if (!service.pathStyleBucketName(b)) { - if (service.config.useAccelerateEndpoint && service.isValidAccelerateOperation(req.operation)) { - if (service.config.useDualstackEndpoint) { - endpoint.hostname = b + \\".s3-accelerate.dualstack.amazonaws.com\\"; - } - else { - endpoint.hostname = b + \\".s3-accelerate.amazonaws.com\\"; - } - } - else if (!service.config.s3BucketEndpoint) { - endpoint.hostname = b + \\".\\" + endpoint.hostname; - } - var port = endpoint.port; - if (port !== 80 && port !== 443) { - endpoint.host = endpoint.hostname + \\":\\" + endpoint.port; - } - else { - endpoint.host = endpoint.hostname; - } - httpRequest.virtualHostedBucket = b; - service.removeVirtualHostedBucketFromPath(req); - } -} }; -const v5633 = {}; -v5633.constructor = v5632; -v5632.prototype = v5633; -v5535.populateURI = v5632; -var v5634; -var v5635 = v373; -v5634 = function removeVirtualHostedBucketFromPath(req) { var httpRequest = req.httpRequest; var bucket = httpRequest.virtualHostedBucket; if (bucket && httpRequest.path) { - if (req.params && req.params.Key) { - var encodedS3Key = \\"/\\" + v3.uriEscapePath(req.params.Key); - if (httpRequest.path.indexOf(encodedS3Key) === 0 && (httpRequest.path.length === encodedS3Key.length || httpRequest.path[encodedS3Key.length] === \\"?\\")) { - return; - } - } - httpRequest.path = httpRequest.path.replace(new v5635(\\"/\\" + bucket), \\"\\"); - if (httpRequest.path[0] !== \\"/\\") { - httpRequest.path = \\"/\\" + httpRequest.path; - } -} }; -const v5636 = {}; -v5636.constructor = v5634; -v5634.prototype = v5636; -v5535.removeVirtualHostedBucketFromPath = v5634; -var v5637; -var v5638 = v313; -var v5639 = v373; -v5637 = function populateUriFromAccessPointArn(req) { var accessPointArn = req._parsedArn; var isOutpostArn = accessPointArn.service === \\"s3-outposts\\"; var isObjectLambdaArn = accessPointArn.service === \\"s3-object-lambda\\"; var outpostsSuffix = isOutpostArn ? \\".\\" + accessPointArn.outpostId : \\"\\"; var serviceName = isOutpostArn ? \\"s3-outposts\\" : \\"s3-accesspoint\\"; var fipsSuffix = !isOutpostArn && req.service.config.useFipsEndpoint ? \\"-fips\\" : \\"\\"; var dualStackSuffix = !isOutpostArn && req.service.config.useDualstackEndpoint ? \\".dualstack\\" : \\"\\"; var endpoint = req.httpRequest.endpoint; var dnsSuffix = v5638.getEndpointSuffix(accessPointArn.region); var useArnRegion = req.service.config.s3UseArnRegion; endpoint.hostname = [accessPointArn.accessPoint + \\"-\\" + accessPointArn.accountId + outpostsSuffix, serviceName + fipsSuffix + dualStackSuffix, useArnRegion ? accessPointArn.region : req.service.config.region, dnsSuffix].join(\\".\\"); if (isObjectLambdaArn) { - var serviceName = \\"s3-object-lambda\\"; - var accesspointName = accessPointArn.resource.split(\\"/\\")[1]; - var fipsSuffix = req.service.config.useFipsEndpoint ? \\"-fips\\" : \\"\\"; - endpoint.hostname = [accesspointName + \\"-\\" + accessPointArn.accountId, serviceName + fipsSuffix, useArnRegion ? accessPointArn.region : req.service.config.region, dnsSuffix].join(\\".\\"); -} endpoint.host = endpoint.hostname; var encodedArn = v3.uriEscape(req.params.Bucket); var path = req.httpRequest.path; req.httpRequest.path = path.replace(new v5639(\\"/\\" + encodedArn), \\"\\"); if (req.httpRequest.path[0] !== \\"/\\") { - req.httpRequest.path = \\"/\\" + req.httpRequest.path; -} req.httpRequest.region = accessPointArn.region; }; -const v5640 = {}; -v5640.constructor = v5637; -v5637.prototype = v5640; -v5535.populateUriFromAccessPointArn = v5637; -var v5641; -v5641 = function addExpect100Continue(req) { var len = req.httpRequest.headers[\\"Content-Length\\"]; if (v3.isNode() && (len >= 1024 * 1024 || req.params.Body instanceof v3.stream.Stream)) { - req.httpRequest.headers[\\"Expect\\"] = \\"100-continue\\"; -} }; -const v5642 = {}; -v5642.constructor = v5641; -v5641.prototype = v5642; -v5535.addExpect100Continue = v5641; -var v5643; -v5643 = function addContentType(req) { var httpRequest = req.httpRequest; if (httpRequest.method === \\"GET\\" || httpRequest.method === \\"HEAD\\") { - delete httpRequest.headers[\\"Content-Type\\"]; - return; -} if (!httpRequest.headers[\\"Content-Type\\"]) { - httpRequest.headers[\\"Content-Type\\"] = \\"application/octet-stream\\"; -} var contentType = httpRequest.headers[\\"Content-Type\\"]; if (v3.isBrowser()) { - if (typeof httpRequest.body === \\"string\\" && !contentType.match(/;\\\\s*charset=/)) { - var charset = \\"; charset=UTF-8\\"; - httpRequest.headers[\\"Content-Type\\"] += charset; - } - else { - var replaceFn = function (_, prefix, charsetName) { return prefix + charsetName.toUpperCase(); }; - httpRequest.headers[\\"Content-Type\\"] = contentType.replace(/(;\\\\s*charset=)(.+)$/, replaceFn); - } -} }; -const v5644 = {}; -v5644.constructor = v5643; -v5643.prototype = v5644; -v5535.addContentType = v5643; -var v5645; -v5645 = function willComputeChecksums(req) { var rules = req.service.api.operations[req.operation].input.members; var body = req.httpRequest.body; var needsContentMD5 = req.service.config.computeChecksums && rules.ContentMD5 && !req.params.ContentMD5 && body && (v3.Buffer.isBuffer(req.httpRequest.body) || typeof req.httpRequest.body === \\"string\\"); if (needsContentMD5 && req.service.shouldDisableBodySigning(req) && !req.isPresigned()) { - return true; -} if (needsContentMD5 && this.getSignatureVersion(req) === \\"s3\\" && req.isPresigned()) { - return true; -} return false; }; -const v5646 = {}; -v5646.constructor = v5645; -v5645.prototype = v5646; -v5535.willComputeChecksums = v5645; -var v5647; -v5647 = function computeContentMd5(req) { if (req.service.willComputeChecksums(req)) { - var md5 = v91.md5(req.httpRequest.body, \\"base64\\"); - req.httpRequest.headers[\\"Content-MD5\\"] = md5; -} }; -const v5648 = {}; -v5648.constructor = v5647; -v5647.prototype = v5648; -v5535.computeContentMd5 = v5647; -var v5649; -v5649 = function computeSseCustomerKeyMd5(req) { var keys = { SSECustomerKey: \\"x-amz-server-side-encryption-customer-key-MD5\\", CopySourceSSECustomerKey: \\"x-amz-copy-source-server-side-encryption-customer-key-MD5\\" }; v3.each(keys, function (key, header) { if (req.params[key]) { - var value = v91.md5(req.params[key], \\"base64\\"); - req.httpRequest.headers[header] = value; -} }); }; -const v5650 = {}; -v5650.constructor = v5649; -v5649.prototype = v5650; -v5535.computeSseCustomerKeyMd5 = v5649; -var v5651; -var v5652 = v5559; -v5651 = function pathStyleBucketName(bucketName) { if (this.config.s3ForcePathStyle) - return true; if (this.config.s3BucketEndpoint) - return false; if (v5652.dnsCompatibleBucketName(bucketName)) { - return (this.config.sslEnabled && bucketName.match(/\\\\./)) ? true : false; -} -else { - return true; -} }; -const v5653 = {}; -v5653.constructor = v5651; -v5651.prototype = v5653; -v5535.pathStyleBucketName = v5651; -var v5654; -const v5656 = {}; -v5656.completeMultipartUpload = true; -v5656.copyObject = true; -v5656.uploadPartCopy = true; -var v5655 = v5656; -var v5657 = v40; -v5654 = function extractErrorFrom200Response(resp) { if (!v5655[resp.request.operation]) - return; var httpResponse = resp.httpResponse; if (httpResponse.body && httpResponse.body.toString().match(\\"\\")) { - resp.data = null; - var service = this.service ? this.service : this; - service.extractError(resp); - throw resp.error; -} -else if (!httpResponse.body || !httpResponse.body.toString().match(/<[\\\\w_]/)) { - resp.data = null; - throw v3.error(new v5657(), { code: \\"InternalError\\", message: \\"S3 aborted request\\" }); -} }; -const v5658 = {}; -v5658.constructor = v5654; -v5654.prototype = v5658; -v5535.extractErrorFrom200Response = v5654; -var v5659; -var v5660 = v5656; -const v5662 = []; -v5662.push(\\"AuthorizationHeaderMalformed\\", \\"BadRequest\\", \\"PermanentRedirect\\", 301); -var v5661 = v5662; -v5659 = function retryableError(error, request) { if (v5660[request.operation] && error.statusCode === 200) { - return true; -} -else if (request._requestRegionForBucket && request.service.bucketRegionCache[request._requestRegionForBucket]) { - return false; -} -else if (error && error.code === \\"RequestTimeout\\") { - return true; -} -else if (error && v5661.indexOf(error.code) != -1 && error.region && error.region != request.httpRequest.region) { - request.httpRequest.region = error.region; - if (error.statusCode === 301) { - request.service.updateReqBucketRegion(request); - } - return true; -} -else { - var _super = v309.retryableError; - return _super.call(this, error, request); -} }; -const v5663 = {}; -v5663.constructor = v5659; -v5659.prototype = v5663; -v5535.retryableError = v5659; -var v5664; -var v5665 = v2; -v5664 = function updateReqBucketRegion(request, region) { var httpRequest = request.httpRequest; if (typeof region === \\"string\\" && region.length) { - httpRequest.region = region; -} if (!httpRequest.endpoint.host.match(/s3(?!-accelerate).*\\\\.amazonaws\\\\.com$/)) { - return; -} var service = request.service; var s3Config = service.config; var s3BucketEndpoint = s3Config.s3BucketEndpoint; if (s3BucketEndpoint) { - delete s3Config.s3BucketEndpoint; -} var newConfig = v3.copy(s3Config); delete newConfig.endpoint; newConfig.region = httpRequest.region; httpRequest.endpoint = (new v5665.S3(newConfig)).endpoint; service.populateURI(request); s3Config.s3BucketEndpoint = s3BucketEndpoint; httpRequest.headers.Host = httpRequest.endpoint.host; if (request._asm.currentState === \\"validate\\") { - request.removeListener(\\"build\\", service.populateURI); - request.addListener(\\"build\\", service.removeVirtualHostedBucketFromPath); -} }; -const v5666 = {}; -v5666.constructor = v5664; -v5664.prototype = v5666; -v5535.updateReqBucketRegion = v5664; -var v5667; -v5667 = function extractData(resp) { var req = resp.request; if (req.operation === \\"getBucketLocation\\") { - var match = resp.httpResponse.body.toString().match(/>(.+)<\\\\/Location/); - delete resp.data[\\"_\\"]; - if (match) { - resp.data.LocationConstraint = match[1]; - } - else { - resp.data.LocationConstraint = \\"\\"; - } -} var bucket = req.params.Bucket || null; if (req.operation === \\"deleteBucket\\" && typeof bucket === \\"string\\" && !resp.error) { - req.service.clearBucketRegionCache(bucket); -} -else { - var headers = resp.httpResponse.headers || {}; - var region = headers[\\"x-amz-bucket-region\\"] || null; - if (!region && req.operation === \\"createBucket\\" && !resp.error) { - var createBucketConfiguration = req.params.CreateBucketConfiguration; - if (!createBucketConfiguration) { - region = \\"us-east-1\\"; - } - else if (createBucketConfiguration.LocationConstraint === \\"EU\\") { - region = \\"eu-west-1\\"; - } - else { - region = createBucketConfiguration.LocationConstraint; - } - } - if (region) { - if (bucket && region !== req.service.bucketRegionCache[bucket]) { - req.service.bucketRegionCache[bucket] = region; - } - } -} req.service.extractRequestIds(resp); }; -const v5668 = {}; -v5668.constructor = v5667; -v5667.prototype = v5668; -v5535.extractData = v5667; -var v5669; -var v5670 = v40; -v5669 = function extractError(resp) { var codes = { 304: \\"NotModified\\", 403: \\"Forbidden\\", 400: \\"BadRequest\\", 404: \\"NotFound\\" }; var req = resp.request; var code = resp.httpResponse.statusCode; var body = resp.httpResponse.body || \\"\\"; var headers = resp.httpResponse.headers || {}; var region = headers[\\"x-amz-bucket-region\\"] || null; var bucket = req.params.Bucket || null; var bucketRegionCache = req.service.bucketRegionCache; if (region && bucket && region !== bucketRegionCache[bucket]) { - bucketRegionCache[bucket] = region; -} var cachedRegion; if (codes[code] && body.length === 0) { - if (bucket && !region) { - cachedRegion = bucketRegionCache[bucket] || null; - if (cachedRegion !== req.httpRequest.region) { - region = cachedRegion; - } - } - resp.error = v3.error(new v5670(), { code: codes[code], message: null, region: region }); -} -else { - var data = new v937.Parser().parse(body.toString()); - if (data.Region && !region) { - region = data.Region; - if (bucket && region !== bucketRegionCache[bucket]) { - bucketRegionCache[bucket] = region; - } - } - else if (bucket && !region && !data.Region) { - cachedRegion = bucketRegionCache[bucket] || null; - if (cachedRegion !== req.httpRequest.region) { - region = cachedRegion; - } - } - resp.error = v3.error(new v5621(), { code: data.Code || code, message: data.Message || null, region: region }); -} req.service.extractRequestIds(resp); }; -const v5671 = {}; -v5671.constructor = v5669; -v5669.prototype = v5671; -v5535.extractError = v5669; -var v5672; -var v5673 = v5662; -v5672 = function requestBucketRegion(resp, done) { var error = resp.error; var req = resp.request; var bucket = req.params.Bucket || null; if (!error || !bucket || error.region || req.operation === \\"listObjects\\" || (v3.isNode() && req.operation === \\"headBucket\\") || (error.statusCode === 400 && req.operation !== \\"headObject\\") || v5673.indexOf(error.code) === -1) { - return done(); -} var reqOperation = v3.isNode() ? \\"headBucket\\" : \\"listObjects\\"; var reqParams = { Bucket: bucket }; if (reqOperation === \\"listObjects\\") - reqParams.MaxKeys = 0; var regionReq = req.service[reqOperation](reqParams); regionReq._requestRegionForBucket = bucket; regionReq.send(function () { var region = req.service.bucketRegionCache[bucket] || null; error.region = region; done(); }); }; -const v5674 = {}; -v5674.constructor = v5672; -v5672.prototype = v5674; -v5535.requestBucketRegion = v5672; -var v5675; -var v5676 = v5559; -v5675 = function reqRegionForNetworkingError(resp, done) { if (!v3.isBrowser()) { - return done(); -} var error = resp.error; var request = resp.request; var bucket = request.params.Bucket; if (!error || error.code !== \\"NetworkingError\\" || !bucket || request.httpRequest.region === \\"us-east-1\\") { - return done(); -} var service = request.service; var bucketRegionCache = service.bucketRegionCache; var cachedRegion = bucketRegionCache[bucket] || null; if (cachedRegion && cachedRegion !== request.httpRequest.region) { - service.updateReqBucketRegion(request, cachedRegion); - done(); -} -else if (!v5676.dnsCompatibleBucketName(bucket)) { - service.updateReqBucketRegion(request, \\"us-east-1\\"); - if (bucketRegionCache[bucket] !== \\"us-east-1\\") { - bucketRegionCache[bucket] = \\"us-east-1\\"; - } - done(); -} -else if (request.httpRequest.virtualHostedBucket) { - var getRegionReq = service.listObjects({ Bucket: bucket, MaxKeys: 0 }); - service.updateReqBucketRegion(getRegionReq, \\"us-east-1\\"); - getRegionReq._requestRegionForBucket = bucket; - getRegionReq.send(function () { var region = service.bucketRegionCache[bucket] || null; if (region && region !== request.httpRequest.region) { - service.updateReqBucketRegion(request, region); - } done(); }); -} -else { - done(); -} }; -const v5677 = {}; -v5677.constructor = v5675; -v5675.prototype = v5677; -v5535.reqRegionForNetworkingError = v5675; -const v5678 = {}; -v5535.bucketRegionCache = v5678; -var v5679; -var v5680 = v31; -v5679 = function (buckets) { var bucketRegionCache = this.bucketRegionCache; if (!buckets) { - buckets = v5680.keys(bucketRegionCache); -} -else if (typeof buckets === \\"string\\") { - buckets = [buckets]; -} for (var i = 0; i < buckets.length; i++) { - delete bucketRegionCache[buckets[i]]; -} return bucketRegionCache; }; -const v5681 = {}; -v5681.constructor = v5679; -v5679.prototype = v5681; -v5535.clearBucketRegionCache = v5679; -var v5682; -v5682 = function correctBucketRegionFromCache(req) { var bucket = req.params.Bucket || null; if (bucket) { - var service = req.service; - var requestRegion = req.httpRequest.region; - var cachedRegion = service.bucketRegionCache[bucket]; - if (cachedRegion && cachedRegion !== requestRegion) { - service.updateReqBucketRegion(req, cachedRegion); - } -} }; -const v5683 = {}; -v5683.constructor = v5682; -v5682.prototype = v5683; -v5535.correctBucketRegionFromCache = v5682; -var v5684; -v5684 = function extractRequestIds(resp) { var extendedRequestId = resp.httpResponse.headers ? resp.httpResponse.headers[\\"x-amz-id-2\\"] : null; var cfId = resp.httpResponse.headers ? resp.httpResponse.headers[\\"x-amz-cf-id\\"] : null; resp.extendedRequestId = extendedRequestId; resp.cfId = cfId; if (resp.error) { - resp.error.requestId = resp.requestId || null; - resp.error.extendedRequestId = extendedRequestId; - resp.error.cfId = cfId; -} }; -const v5685 = {}; -v5685.constructor = v5684; -v5684.prototype = v5685; -v5535.extractRequestIds = v5684; -var v5686; -var v5687 = v40; -v5686 = function getSignedUrl(operation, params, callback) { params = v3.copy(params || {}); var expires = params.Expires || 900; if (typeof expires !== \\"number\\") { - throw v3.error(new v5687(), { code: \\"InvalidParameterException\\", message: \\"The expiration must be a number, received \\" + typeof expires }); -} delete params.Expires; var request = this.makeRequest(operation, params); if (callback) { - v3.defer(function () { request.presign(expires, callback); }); -} -else { - return request.presign(expires, callback); -} }; -const v5688 = {}; -v5688.constructor = v5686; -v5686.prototype = v5688; -v5535.getSignedUrl = v5686; -var v5689; -v5689 = function createPresignedPost(params, callback) { if (typeof params === \\"function\\" && callback === undefined) { - callback = params; - params = null; -} params = v3.copy(params || {}); var boundParams = this.config.params || {}; var bucket = params.Bucket || boundParams.Bucket, self = this, config = this.config, endpoint = v3.copy(this.endpoint); if (!config.s3BucketEndpoint) { - endpoint.pathname = \\"/\\" + bucket; -} function finalizePost() { return { url: v3.urlFormat(endpoint), fields: self.preparePostFields(config.credentials, config.region, bucket, params.Fields, params.Conditions, params.Expires) }; } if (callback) { - config.getCredentials(function (err) { if (err) { - callback(err); - } - else { - try { - callback(null, finalizePost()); - } - catch (err) { - callback(err); - } - } }); -} -else { - return finalizePost(); -} }; -const v5690 = {}; -v5690.constructor = v5689; -v5689.prototype = v5690; -v5535.createPresignedPost = v5689; -var v5691; -var v5692 = v510; -var v5693 = v77; -v5691 = function preparePostFields(credentials, region, bucket, fields, conditions, expiresInSeconds) { var now = this.getSkewCorrectedDate(); if (!credentials || !region || !bucket) { - throw new v5670(\\"Unable to create a POST object policy without a bucket,\\" + \\" region, and credentials\\"); -} fields = v3.copy(fields || {}); conditions = (conditions || []).slice(0); expiresInSeconds = expiresInSeconds || 3600; var signingDate = v73.iso8601(now).replace(/[:\\\\-]|\\\\.\\\\d{3}/g, \\"\\"); var shortDate = signingDate.substr(0, 8); var scope = v5692.createScope(shortDate, region, \\"s3\\"); var credential = credentials.accessKeyId + \\"/\\" + scope; fields[\\"bucket\\"] = bucket; fields[\\"X-Amz-Algorithm\\"] = \\"AWS4-HMAC-SHA256\\"; fields[\\"X-Amz-Credential\\"] = credential; fields[\\"X-Amz-Date\\"] = signingDate; if (credentials.sessionToken) { - fields[\\"X-Amz-Security-Token\\"] = credentials.sessionToken; -} for (var field in fields) { - if (fields.hasOwnProperty(field)) { - var condition = {}; - condition[field] = fields[field]; - conditions.push(condition); - } -} fields.Policy = this.preparePostPolicy(new v5693(now.valueOf() + expiresInSeconds * 1000), conditions); fields[\\"X-Amz-Signature\\"] = v91.hmac(v5692.getSigningKey(credentials, shortDate, region, \\"s3\\", true), fields.Policy, \\"hex\\"); return fields; }; -const v5694 = {}; -v5694.constructor = v5691; -v5691.prototype = v5694; -v5535.preparePostFields = v5691; -var v5695; -var v5696 = v163; -v5695 = function preparePostPolicy(expiration, conditions) { return v37.encode(v5696.stringify({ expiration: v73.iso8601(expiration), conditions: conditions })); }; -const v5697 = {}; -v5697.constructor = v5695; -v5695.prototype = v5697; -v5535.preparePostPolicy = v5695; -var v5698; -v5698 = function prepareSignedUrl(request) { request.addListener(\\"validate\\", request.service.noPresignedContentLength); request.removeListener(\\"build\\", request.service.addContentType); if (!request.params.Body) { - request.removeListener(\\"build\\", request.service.computeContentMd5); +v18.constructor = v17; +v17.prototype = v18; +var v16 = v17; +v11 = () => { +v12(); +v16(); +return v14; } -else { - request.addListener(\\"afterBuild\\", v428.COMPUTE_SHA256); -} }; -const v5699 = {}; -v5699.constructor = v5698; -v5698.prototype = v5699; -v5535.prepareSignedUrl = v5698; -var v5700; -v5700 = function disableBodySigning(request) { var headers = request.httpRequest.headers; if (!v113.hasOwnProperty.call(headers, \\"presigned-expires\\")) { - headers[\\"X-Amz-Content-Sha256\\"] = \\"UNSIGNED-PAYLOAD\\"; -} }; -const v5701 = {}; -v5701.constructor = v5700; -v5700.prototype = v5701; -v5535.disableBodySigning = v5700; -var v5702; -v5702 = function noPresignedContentLength(request) { if (request.params.ContentLength !== undefined) { - throw v3.error(new v5670(), { code: \\"UnexpectedParameter\\", message: \\"ContentLength is not supported in pre-signed URLs.\\" }); -} }; -const v5703 = {}; -v5703.constructor = v5702; -v5702.prototype = v5703; -v5535.noPresignedContentLength = v5702; -var v5704; -v5704 = function createBucket(params, callback) { if (typeof params === \\"function\\" || !params) { - callback = callback || params; - params = {}; -} var hostname = this.endpoint.hostname; var copiedParams = v3.copy(params); if (hostname !== this.api.globalEndpoint && !params.CreateBucketConfiguration) { - copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region }; -} return this.makeRequest(\\"createBucket\\", copiedParams, callback); }; -const v5705 = {}; -v5705.constructor = v5704; -v5704.prototype = v5705; -v5535.createBucket = v5704; -var v5706; -var v5707 = \\"s3-object-lambda\\"; -var v5708 = v2; -v5706 = function writeGetObjectResponse(params, callback) { var request = this.makeRequest(\\"writeGetObjectResponse\\", v3.copy(params), callback); var hostname = this.endpoint.hostname; if (hostname.indexOf(this.config.region) !== -1) { - hostname = hostname.replace(\\"s3.\\", v5707 + \\".\\"); +; +v2.push(v3,v11,); +var v1 = v2; +v0 = () => { +return v1.map((closure,) => { +return closure(); } -else { - hostname = hostname.replace(\\"s3.\\", v5707 + \\".\\" + this.config.region + \\".\\"); -} request.httpRequest.endpoint = new v5708.Endpoint(hostname, this.config); return request; }; -const v5709 = {}; -v5709.constructor = v5706; -v5706.prototype = v5709; -v5535.writeGetObjectResponse = v5706; -var v5710; -v5710 = function upload(params, options, callback) { if (typeof options === \\"function\\" && callback === undefined) { - callback = options; - options = null; -} options = options || {}; options = v3.merge(options || {}, { service: this, params: params }); var uploader = new v5708.S3.ManagedUpload(options); if (typeof callback === \\"function\\") - uploader.send(callback); return uploader; }; -const v5711 = {}; -v5711.constructor = v5710; -v5710.prototype = v5711; -v5535.upload = v5710; -var v5712; -var v5713 = v244; -var v5714 = \\"getSignedUrl\\"; -v5712 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v5713(function (resolve, reject) { args.push(function (err, data) { if (err) { - reject(err); +,); } -else { - resolve(data); -} }); self[v5714].apply(self, args); }); }; -const v5715 = {}; -v5715.constructor = v5712; -v5712.prototype = v5715; -v5535.getSignedUrlPromise = v5712; -v5532.prototype = v5535; -v5532.__super__ = v299; -const v5716 = {}; -v5716[\\"2006-03-01\\"] = null; -v5532.services = v5716; -const v5717 = []; -v5717.push(\\"2006-03-01\\"); -v5532.apiVersions = v5717; -v5532.serviceIdentifier = \\"s3\\"; -var v5718; -var v5719 = v2; -var v5720 = v40; -v5718 = function ManagedUpload(options) { var self = this; v5719.SequentialExecutor.call(self); self.body = null; self.sliceFn = null; self.callback = null; self.parts = {}; self.completeInfo = []; self.fillQueue = function () { self.callback(new v5720(\\"Unsupported body payload \\" + typeof self.body)); }; self.configure(options); }; -const v5721 = {}; -v5721.constructor = v5718; -var v5722; -var v5723 = v33; -var v5724 = v40; -var v5725 = v40; -v5722 = function configure(options) { options = options || {}; this.partSize = this.minPartSize; if (options.queueSize) - this.queueSize = options.queueSize; if (options.partSize) - this.partSize = options.partSize; if (options.leavePartsOnError) - this.leavePartsOnError = true; if (options.tags) { - if (!v5723.isArray(options.tags)) { - throw new v5724(\\"Tags must be specified as an array; \\" + typeof options.tags + \\" provided.\\"); - } - this.tags = options.tags; -} if (this.partSize < this.minPartSize) { - throw new v5725(\\"partSize must be greater than \\" + this.minPartSize); -} this.service = options.service; this.bindServiceObject(options.params); this.validateBody(); this.adjustTotalBytes(); }; -const v5726 = {}; -v5726.constructor = v5722; -v5722.prototype = v5726; -v5721.configure = v5722; -v5721.leavePartsOnError = false; -v5721.queueSize = 4; -v5721.partSize = null; -v5721.minPartSize = 5242880; -v5721.maxTotalParts = 10000; -var v5727; -v5727 = function (callback) { var self = this; self.failed = false; self.callback = callback || function (err) { if (err) - throw err; }; var runFill = true; if (self.sliceFn) { - self.fillQueue = self.fillBuffer; +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0NnN0RvOUQsYUFjQTtBQVFaLEVBQUssRUFLQSxDQUxDLENBUk07QUFBQTtDRDk3RHA5RDtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N5OUQrL0QsZUFnQkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7Q0R6K0QvL0Q7QUFBQTtBQUFBO0FBQUE7QUFBQTtLQzJnRW1rRSxNQU1BO0FBUXZDLEVBQUUsRUFBQyxDQVJvQztBQW9CekIsRUFBRSxFQUFDLENBcEJzQjtBQWtDTixPQU9ELEVBUEMsQ0FsQ007QUFBQTtDRGpoRW5rRTtBQUFBO0FBQUE7QUFBQTtNQ2c3RG85RCxhQWNBO0FBUVosR0FBSyxFQUtBLENBTEMsQ0FSTTtBQUFBO0NEOTdEcDlEO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtNQ3k5RCsvRCxlQWdCQTtBQVFaLEdBQUssRUFLQSxDQUxDLENBUk07QUFBQTtDRHorRC8vRDtBQUFBO0FBQUE7QUFBQTtBQUFBO01DMmdFbWtFLE1BTUE7QUFRdkMsR0FBRSxFQUFDLENBUm9DO0FBb0J6QixHQUFFLEVBQUMsQ0FwQnNCO0FBa0NOLE9BT0QsR0FQQyxDQWxDTTtBQUFBO0NEamhFbmtFO0FBQUE7QUFBQTtLQ2luRThxRSxNQU1BO0FBTUosT0FPN0IsRUFBSSxDQVNBLEdBVHdCLENBYUQsQ0FDZCxPQURjLE1BYUE7QUFBQSxPQUFGLE9BQUU7QUFBQTtBQTFCQyxFQVBDLENBTkk7QUFBQTtDRHZuRTlxRTtBQUFBIn0" +`; + +exports[`avoid collision with a locally scoped array binding 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const [v1,]=[2,] +return v1+free; } -else if (v3.isNode()) { - var Stream = v3.stream.Stream; - if (self.body instanceof Stream) { - runFill = false; - self.fillQueue = self.fillStream; - self.partBuffers = []; - self.body.on(\\"error\\", function (err) { self.cleanup(err); }).on(\\"readable\\", function () { self.fillQueue(); }).on(\\"end\\", function () { self.isDoneChunking = true; self.numParts = self.totalPartNumbers; self.fillQueue.call(self); if (self.isDoneChunking && self.totalPartNumbers >= 1 && self.doneParts === self.numParts) { - self.finishMultiPart(); - } }); - } -} if (runFill) - self.fillQueue.call(self); }; -const v5728 = {}; -v5728.constructor = v5727; -v5727.prototype = v5728; -v5721.send = v5727; -var v5729; -var v5730 = v40; -v5729 = function () { var self = this; if (self.isDoneChunking === true && self.totalPartNumbers === 1 && self.singlePart) { - self.singlePart.abort(); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NtaFNzcVMsTUFNQTtBQTBDbkYsSUFJUCxJQUFNLENBT0EsRUFyRG9GO0FBaUcxQixNQU1QLENBQ0QsRUFEQyxFQUFNLENBT0EsQ0FDRCxDQURDLEVBOUcyQjtBQXVISixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBdkhJO0FBQUE7Q0R6aFN0cVM7QUFBQSJ9" +`; + +exports[`avoid collision with a locally scoped array binding with nested object binding 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const [{v1,},]=[{v1:2,},] +return v1+free; } -else { - self.cleanup(v3.error(new v5730(\\"Request aborted by user\\"), { code: \\"RequestAbortedError\\", retryable: false })); -} }; -const v5731 = {}; -v5731.constructor = v5729; -v5729.prototype = v5731; -v5721.abort = v5729; -var v5732; -var v5733 = v40; -v5732 = function validateBody() { var self = this; self.body = self.service.config.params.Body; if (typeof self.body === \\"string\\") { - self.body = v41.toBuffer(self.body); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0MwMlN5Z1QsTUFNQTtBQTBDL0YsSUFJUCxJQUFNLENBT0EsRUFyRGdHO0FBaUcxQixNQU1mLENBQ0QsQ0FFRixFQUZFLEVBREMsRUFBYyxDQVdBLENBQ0QsQ0FFTCxFQUFHLENBSUEsQ0FORSxFQURDLEVBbEgyQjtBQW1JSixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBbklJO0FBQUE7Q0RoM1N6Z1Q7QUFBQSJ9" +`; + +exports[`avoid collision with a locally scoped class 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +class v1{ +foo = 2 } -else if (!self.body) { - throw new v5733(\\"params.Body is required\\"); -} self.sliceFn = v3.arraySliceFn(self.body); }; -const v5734 = {}; -v5734.constructor = v5732; -v5732.prototype = v5734; -v5721.validateBody = v5732; -var v5735; -var v5736 = v2; -var v5737 = v31; -v5735 = function bindServiceObject(params) { params = params || {}; var self = this; if (!self.service) { - self.service = new v5736.S3({ params: params }); +return new v1().foo+free; } -else { - var service = self.service; - var config = v3.copy(service.config); - config.signatureVersion = service.getSignatureVersion(); - self.service = new service.constructor.__super__(config); - self.service.config.params = v3.merge(self.service.config.params || {}, params); - v5737.defineProperty(self.service, \\"_originalConfig\\", { get: function () { return service._originalConfig; }, enumerable: false, configurable: true }); -} }; -const v5738 = {}; -v5738.constructor = v5735; -v5735.prototype = v5738; -v5721.bindServiceObject = v5735; -var v5739; -var v5740 = v56; -var v5741 = v787; -v5739 = function adjustTotalBytes() { var self = this; try { - self.totalBytes = v5740(self.body); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N1L1RrcVUsTUFNQTtBQTBDM0csSUFJUCxJQUFNLENBT0EsRUFyRDRHO0FBaUdwQyxNQU12QixFQU51QjtBQWlCWCxHQUFLLEdBTUQsQ0F2Qk87QUFBQSxDQWpHb0M7QUFxSUosT0FPWixJQUlGLEVBSkUsRUFBSSxDQVNBLEdBVE8sQ0FlQSxJQXRCQyxDQXJJSTtBQUFBO0NENy9UbHFVO0FBQUEifQ" +`; + +exports[`avoid collision with a locally scoped function 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +function v1(){ +return 2; } -catch (e) { } if (self.totalBytes) { - var newPartSize = v5741.ceil(self.totalBytes / self.maxTotalParts); - if (newPartSize > self.partSize) - self.partSize = newPartSize; + +return v1()+free; } -else { - self.totalBytes = undefined; -} }; -const v5742 = {}; -v5742.constructor = v5739; -v5739.prototype = v5742; -v5721.adjustTotalBytes = v5739; -v5721.isDoneChunking = false; -v5721.partPos = 0; -v5721.totalChunkedBytes = 0; -v5721.totalUploadedBytes = 0; -v5721.totalBytes = undefined; -v5721.numParts = 0; -v5721.totalPartNumbers = 0; -v5721.activeParts = 0; -v5721.doneParts = 0; -v5721.parts = null; -v5721.completeInfo = null; -v5721.failed = false; -v5721.multipartReq = null; -v5721.partBuffers = null; -v5721.partBufferLength = 0; -var v5743; -var v5744 = v56; -v5743 = function fillBuffer() { var self = this; var bodyLen = v5744(self.body); if (bodyLen === 0) { - self.isDoneChunking = true; - self.numParts = 1; - self.nextChunk(self.body); - return; -} while (self.activeParts < self.queueSize && self.partPos < bodyLen) { - var endPos = v5741.min(self.partPos + self.partSize, bodyLen); - var buf = self.sliceFn.call(self.body, self.partPos, endPos); - self.partPos += self.partSize; - if (v5740(buf) < self.partSize || self.partPos === bodyLen) { - self.isDoneChunking = true; - self.numParts = self.totalPartNumbers + 1; - } - self.nextChunk(buf); -} }; -const v5745 = {}; -v5745.constructor = v5743; -v5743.prototype = v5745; -v5721.fillBuffer = v5743; -var v5746; -var v5747 = v1816; -var v5748 = v1816; -var v5749 = undefined; -v5746 = function fillStream() { var self = this; if (self.activeParts >= self.queueSize) - return; var buf = self.body.read(self.partSize - self.partBufferLength) || self.body.read(); if (buf) { - self.partBuffers.push(buf); - self.partBufferLength += buf.length; - self.totalChunkedBytes += buf.length; -} if (self.partBufferLength >= self.partSize) { - var pbuf = self.partBuffers.length === 1 ? self.partBuffers[0] : v5747.concat(self.partBuffers); - self.partBuffers = []; - self.partBufferLength = 0; - if (pbuf.length > self.partSize) { - var rest = pbuf.slice(self.partSize); - self.partBuffers.push(rest); - self.partBufferLength += rest.length; - pbuf = pbuf.slice(0, self.partSize); - } - self.nextChunk(pbuf); -} if (self.isDoneChunking && !self.isDoneSending) { - pbuf = self.partBuffers.length === 1 ? self.partBuffers[0] : v5748.concat(self.partBuffers); - self.partBuffers = []; - self.partBufferLength = 0; - self.totalBytes = self.totalChunkedBytes; - self.isDoneSending = true; - if (self.numParts === 0 || undefined > 0) { - self.numParts++; - self.nextChunk(v5749); - } -} self.body.read(0); }; -const v5750 = {}; -v5750.constructor = v5746; -v5746.prototype = v5750; -v5721.fillStream = v5746; -var v5751; -v5751 = function nextChunk(chunk) { var self = this; if (self.failed) - return null; var partNumber = ++self.totalPartNumbers; if (self.isDoneChunking && partNumber === 1) { - var params = { Body: chunk }; - if (this.tags) { - params.Tagging = this.getTaggingHeader(); - } - var req = self.service.putObject(params); - req._managedUpload = self; - req.on(\\"httpUploadProgress\\", self.progress).send(self.finishSinglePart); - self.singlePart = req; - return null; +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M2cVRzMVQsTUFNQTtBQTBDekcsSUFJUCxJQUFNLENBT0EsRUFyRDBHO0FBaUc1QixhQWNBO0FBUU4sT0FPRCxDQVBDLENBUk07QUFBQTtBQS9HNEI7QUEySUosT0FPVixFQUFFLEVBQU8sQ0FPQSxJQWRDLENBM0lJO0FBQUE7Q0RuclR0MVQ7QUFBQSJ9" +`; + +exports[`avoid collision with a locally scoped object binding variable 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const {v1,}={v1:2,} +return v1+free; } -else if (self.service.config.params.ContentMD5) { - var err = v3.error(new v5733(\\"The Content-MD5 you specified is invalid for multi-part uploads.\\"), { code: \\"InvalidDigest\\", retryable: false }); - self.cleanup(err); - return null; -} if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) { - return null; -} self.activeParts++; if (!self.service.config.params.UploadId) { - if (!self.multipartReq) { - self.multipartReq = self.service.createMultipartUpload(); - self.multipartReq.on(\\"success\\", function (resp) { self.service.config.params.UploadId = resp.data.UploadId; self.multipartReq = null; }); - self.queueChunks(chunk, partNumber); - self.multipartReq.on(\\"error\\", function (err) { self.cleanup(err); }); - self.multipartReq.send(); - } - else { - self.queueChunks(chunk, partNumber); - } +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N1MlFrZ1IsTUFNQTtBQTBDM0YsSUFJUCxJQUFNLENBT0EsRUFyRDRGO0FBaUcxQixNQU1iLENBRUYsRUFGRSxFQUFZLENBU0EsQ0FFTCxFQUFHLENBSUEsQ0FORSxFQWhIMkI7QUErSEosT0FPUixFQUFPLENBS0EsSUFaQyxDQS9ISTtBQUFBO0NENzJRbGdSO0FBQUEifQ" +`; + +exports[`avoid collision with a locally scoped object binding variable with renamed property 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const {v2:v1,}={v2:2,} +return v1+free; } -else { - self.uploadPart(chunk, partNumber); -} }; -const v5752 = {}; -v5752.constructor = v5751; -v5751.prototype = v5752; -v5721.nextChunk = v5751; -var v5753; -v5753 = function getTaggingHeader() { var kvPairStrings = []; for (var i = 0; i < this.tags.length; i++) { - kvPairStrings.push(v3.uriEscape(this.tags[i].Key) + \\"=\\" + v3.uriEscape(this.tags[i].Value)); -} return kvPairStrings.join(\\"&\\"); }; -const v5754 = {}; -v5754.constructor = v5753; -v5753.prototype = v5754; -v5721.getTaggingHeader = v5753; -var v5755; -var v5756 = v40; -v5755 = function uploadPart(chunk, partNumber) { var self = this; var partParams = { Body: chunk, ContentLength: v55.byteLength(chunk), PartNumber: partNumber }; var partInfo = { ETag: null, PartNumber: partNumber }; self.completeInfo[partNumber] = partInfo; var req = self.service.uploadPart(partParams); self.parts[partNumber] = req; req._lastUploadedBytes = 0; req._managedUpload = self; req.on(\\"httpUploadProgress\\", self.progress); req.send(function (err, data) { delete self.parts[partParams.PartNumber]; self.activeParts--; if (!err && (!data || !data.ETag)) { - var message = \\"No access to ETag property on response.\\"; - if (v3.isBrowser()) { - message += \\" Check CORS configuration to expose ETag header.\\"; - } - err = v3.error(new v5756(message), { code: \\"ETagMissing\\", retryable: false }); -} if (err) - return self.cleanup(err); if (self.completeInfo[partNumber] && self.completeInfo[partNumber].ETag !== null) - return null; partInfo.ETag = data.ETag; self.doneParts++; if (self.isDoneChunking && self.doneParts === self.totalPartNumbers) { - self.finishMultiPart(); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0Myc1IwMlIsTUFNQTtBQTBDL0YsSUFJUCxJQUFNLENBT0EsRUFyRGdHO0FBaUcxQixNQU1iLENBRU4sRUFBSSxDQUlBLEVBTkUsRUFBWSxDQWFBLENBRUwsRUFBRyxDQUlBLENBTkUsRUFwSDJCO0FBbUlKLE9BT1IsRUFBTyxDQUtBLElBWkMsQ0FuSUk7QUFBQTtDRGp0UjEyUjtBQUFBIn0" +`; + +exports[`avoid collision with a locally scoped variable 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const v1=2 +return v1+free; } -else { - self.fillQueue.call(self); -} }); }; -const v5757 = {}; -v5757.constructor = v5755; -v5755.prototype = v5757; -v5721.uploadPart = v5755; -var v5758; -v5758 = function queueChunks(chunk, partNumber) { var self = this; self.multipartReq.on(\\"success\\", function () { self.uploadPart(chunk, partNumber); }); }; -const v5759 = {}; -v5759.constructor = v5758; -v5758.prototype = v5759; -v5721.queueChunks = v5758; -var v5760; -v5760 = function cleanup(err) { var self = this; if (self.failed) - return; if (typeof self.body.removeAllListeners === \\"function\\" && typeof self.body.resume === \\"function\\") { - self.body.removeAllListeners(\\"readable\\"); - self.body.removeAllListeners(\\"end\\"); - self.body.resume(); -} if (self.multipartReq) { - self.multipartReq.removeAllListeners(\\"success\\"); - self.multipartReq.removeAllListeners(\\"error\\"); - self.multipartReq.removeAllListeners(\\"complete\\"); - delete self.multipartReq; -} if (self.service.config.params.UploadId && !self.leavePartsOnError) { - self.service.abortMultipartUpload().send(); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NxaVFvclEsTUFNQTtBQTBDL0UsSUFJUCxJQUFNLENBT0EsRUFyRGdGO0FBaUcxQixNQU1MLEVBQUksQ0FLQSxDQTVHMkI7QUFtSEosT0FPUixFQUFPLENBS0EsSUFaQyxDQW5ISTtBQUFBO0NEM2lRcHJRO0FBQUEifQ" +`; + +exports[`avoid collision with a parameter array binding 1`] = ` +"var v0; +var v2 = 1; +v0 = ([v1,],) => { +let free=v2 +return v1+free; } -else if (self.leavePartsOnError) { - self.isDoneChunking = false; -} v3.each(self.parts, function (partNumber, part) { part.removeAllListeners(\\"complete\\"); part.abort(); }); self.activeParts = 0; self.partPos = 0; self.numParts = 0; self.totalPartNumbers = 0; self.parts = {}; self.failed = true; self.callback(err); }; -const v5761 = {}; -v5761.constructor = v5760; -v5760.prototype = v5761; -v5721.cleanup = v5760; -var v5762; -var v5763 = v33; -var v5764 = v136; -v5762 = function finishMultiPart() { var self = this; var completeParams = { MultipartUpload: { Parts: self.completeInfo.slice(1) } }; self.service.completeMultipartUpload(completeParams, function (err, data) { if (err) { - return self.cleanup(err); -} if (data && typeof data.Location === \\"string\\") { - data.Location = data.Location.replace(/%2F/g, \\"/\\"); -} if (v5763.isArray(self.tags)) { - for (var i = 0; i < self.tags.length; i++) { - self.tags[i].Value = v5764(self.tags[i].Value); - } - self.service.putObjectTagging({ Tagging: { TagSet: self.tags } }, function (e, d) { if (e) { - self.callback(e); - } - else { - self.callback(e, data); - } }); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NxcFc2dlcsQ0FDeEYsQ0FDWCxFQURXLEVBRHdGLE1Bb0JBO0FBMEMxQixJQUlQLElBQU0sQ0FPQSxFQXJEMkI7QUE4REosT0FPUixFQUFPLENBS0EsSUFaQyxDQTlESTtBQUFBO0NEenFXN3ZXO0FBQUEifQ" +`; + +exports[`avoid collision with a parameter declaration 1`] = ` +"var v0; +var v2 = 1; +v0 = (v1,) => { +let free=v2 +return v1+free; } -else { - self.callback(err, data); -} }); }; -const v5765 = {}; -v5765.constructor = v5762; -v5762.prototype = v5765; -v5721.finishMultiPart = v5762; -var v5766; -v5766 = function finishSinglePart(err, data) { var upload = this.request._managedUpload; var httpReq = this.request.httpRequest; var endpoint = httpReq.endpoint; if (err) - return upload.callback(err); data.Location = [endpoint.protocol, \\"//\\", endpoint.host, httpReq.path].join(\\"\\"); data.key = this.request.params.Key; data.Key = this.request.params.Key; data.Bucket = this.request.params.Bucket; upload.callback(err, data); }; -const v5767 = {}; -v5767.constructor = v5766; -v5766.prototype = v5767; -v5721.finishSinglePart = v5766; -var v5768; -v5768 = function progress(info) { var upload = this._managedUpload; if (this.operation === \\"putObject\\") { - info.part = 1; - info.key = this.params.Key; +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NvMFV3NlUsQ0FDeEYsRUFEd0YsTUFnQkE7QUEwQzFCLElBSVAsSUFBTSxDQU9BLEVBckQyQjtBQThESixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBOURJO0FBQUE7Q0RwMVV4NlU7QUFBQSJ9" +`; + +exports[`avoid collision with a parameter object binding 1`] = ` +"var v0; +var v2 = 1; +v0 = ({v1,},) => { +let free=v2 +return v1+free; } -else { - upload.totalUploadedBytes += info.loaded - this._lastUploadedBytes; - this._lastUploadedBytes = info.loaded; - info = { loaded: upload.totalUploadedBytes, total: upload.totalBytes, part: this.params.PartNumber, key: this.params.Key }; -} upload.emit(\\"httpUploadProgress\\", [info]); }; -const v5769 = {}; -v5769.constructor = v5768; -v5768.prototype = v5769; -v5721.progress = v5768; -v5721.listeners = v403; -v5721.on = v405; -v5721.onAsync = v407; -v5721.removeListener = v409; -v5721.removeAllListeners = v411; -v5721.emit = v413; -v5721.callListeners = v415; -v5721.addListeners = v418; -v5721.addNamedListener = v420; -v5721.addNamedAsyncListener = v422; -v5721.addNamedListeners = v424; -v5721.addListener = v405; -var v5770; -var v5771 = v244; -var v5772 = \\"send\\"; -v5770 = function promise() { var self = this; var args = v71.slice.call(arguments); return new v5771(function (resolve, reject) { args.push(function (err, data) { if (err) { - reject(err); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M4a1Y4clYsQ0FDeEYsQ0FFbEIsRUFGa0IsRUFEd0YsTUE0QkE7QUEwQzFCLElBSVAsSUFBTSxDQU9BLEVBckQyQjtBQThESixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBOURJO0FBQUE7Q0QxbVY5clY7QUFBQSJ9" +`; + +exports[`avoid collision with a parameter object binding renamed 1`] = ` +"var v0; +var v2 = 1; +v0 = ({v2:v1,},) => { +let free=v2 +return v1+free; } -else { - resolve(data); -} }); self[v5772].apply(self, args); }); }; -const v5773 = {}; -v5773.constructor = v5770; -v5770.prototype = v5773; -v5721.promise = v5770; -v5718.prototype = v5721; -v5718.__super__ = v31; -var v5774; -v5774 = function addPromisesToClass(PromiseDependency) { this.prototype.promise = v3.promisifyMethod(\\"send\\", PromiseDependency); }; -const v5775 = {}; -v5775.constructor = v5774; -v5774.prototype = v5775; -v5718.addPromisesToClass = v5774; -var v5776; -v5776 = function deletePromisesFromClass() { delete this.prototype.promise; }; -const v5777 = {}; -v5777.constructor = v5776; -v5776.prototype = v5777; -v5718.deletePromisesFromClass = v5776; -v5532.ManagedUpload = v5718; -var v5778; -v5778 = function addPromisesToClass(PromiseDependency) { this.prototype.getSignedUrlPromise = v3.promisifyMethod(\\"getSignedUrl\\", PromiseDependency); }; -const v5779 = {}; -v5779.constructor = v5778; -v5778.prototype = v5779; -v5532.addPromisesToClass = v5778; -var v5780; -v5780 = function deletePromisesFromClass() { delete this.prototype.getSignedUrlPromise; }; -const v5781 = {}; -v5781.constructor = v5780; -v5780.prototype = v5781; -v5532.deletePromisesFromClass = v5780; -v2.S3 = v5532; -var v5782; -var v5783 = v299; -var v5784 = v31; -v5782 = function () { if (v5783 !== v5784) { - return v5783.apply(this, arguments); -} }; -const v5785 = Object.create(v309); -v5785.constructor = v5782; -const v5786 = {}; -const v5787 = []; -var v5788; -var v5789 = v31; -var v5790 = v5785; -v5788 = function EVENTS_BUBBLE(event) { var baseClass = v5789.getPrototypeOf(v5790); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5791 = {}; -v5791.constructor = v5788; -v5788.prototype = v5791; -v5787.push(v5788); -v5786.apiCallAttempt = v5787; -const v5792 = []; -var v5793; -v5793 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5539.getPrototypeOf(v5790); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5794 = {}; -v5794.constructor = v5793; -v5793.prototype = v5794; -v5792.push(v5793); -v5786.apiCall = v5792; -v5785._events = v5786; -v5785.MONITOR_EVENTS_BUBBLE = v5788; -v5785.CALL_EVENTS_BUBBLE = v5793; -var v5795; -var v5796 = v5559; -var v5797 = v5559; -var v5798 = v5559; -var v5799 = v5559; -var v5800 = v5559; -var v5801 = v5559; -var v5802 = v5559; -v5795 = function setupRequestListeners(request) { request.addListener(\\"extractError\\", this.extractHostId); request.addListener(\\"extractData\\", this.extractHostId); request.addListener(\\"validate\\", this.validateAccountId); var isArnInBucket = v5796.isArnInParam(request, \\"Bucket\\"); var isArnInName = v5797.isArnInParam(request, \\"Name\\"); if (isArnInBucket) { - request._parsedArn = v2654.parse(request.params[\\"Bucket\\"]); - request.addListener(\\"validate\\", this.validateOutpostsBucketArn); - request.addListener(\\"validate\\", v5798.validateOutpostsArn); - request.addListener(\\"afterBuild\\", this.addOutpostIdHeader); +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NvM1Z3K1YsQ0FDeEYsQ0FFdEIsRUFBSSxDQUlBLEVBTmtCLEVBRHdGLE1BZ0NBO0FBMEMxQixJQUlQLElBQU0sQ0FPQSxFQXJEMkI7QUE4REosT0FPUixFQUFPLENBS0EsSUFaQyxDQTlESTtBQUFBO0NEcDVWeCtWO0FBQUEifQ" +`; + +exports[`avoid collision with a parameter with object binding nested in array binding 1`] = ` +"var v0; +var v2 = 1; +v0 = ([{v1,},],) => { +let free=v2 +return v1+free; } -else if (isArnInName) { - request._parsedArn = v2654.parse(request.params[\\"Name\\"]); - request.addListener(\\"validate\\", v5799.validateOutpostsAccessPointArn); - request.addListener(\\"validate\\", v5800.validateOutpostsArn); - request.addListener(\\"afterBuild\\", this.addOutpostIdHeader); -} if (isArnInBucket || isArnInName) { - request.addListener(\\"validate\\", this.validateArnRegion); - request.addListener(\\"validate\\", this.validateArnAccountWithParams, true); - request.addListener(\\"validate\\", v5801.validateArnAccount); - request.addListener(\\"validate\\", v5799.validateArnService); - request.addListener(\\"build\\", this.populateParamFromArn, true); - request.addListener(\\"build\\", this.populateUriFromArn); - request.addListener(\\"build\\", v5802.validatePopulateUriFromArn); -} if (request.params.OutpostId && (request.operation === \\"createBucket\\" || request.operation === \\"listRegionalBuckets\\")) { - request.addListener(\\"build\\", this.populateEndpointForOutpostId); -} }; -const v5803 = {}; -v5803.constructor = v5795; -v5795.prototype = v5803; -v5785.setupRequestListeners = v5795; -var v5804; -v5804 = function addOutpostIdHeader(req) { req.httpRequest.headers[\\"x-amz-outpost-id\\"] = req._parsedArn.outpostId; }; -const v5805 = {}; -v5805.constructor = v5804; -v5804.prototype = v5805; -v5785.addOutpostIdHeader = v5804; -var v5806; -var v5807 = v40; -var v5808 = v5559; -var v5809 = v40; -v5806 = function validateOutpostsBucketArn(req) { var parsedArn = req._parsedArn; var delimiter = parsedArn.resource[\\"outpost\\".length]; if (parsedArn.resource.split(delimiter).length !== 4) { - throw v3.error(new v5807(), { code: \\"InvalidARN\\", message: \\"Bucket ARN should have two resources outpost/{outpostId}/bucket/{accesspointName}\\" }); -} var bucket = parsedArn.resource.split(delimiter)[3]; if (!v5808.dnsCompatibleBucketName(bucket) || bucket.match(/\\\\./)) { - throw v3.error(new v5809(), { code: \\"InvalidARN\\", message: \\"Bucket ARN is not DNS compatible. Got \\" + bucket }); -} req._parsedArn.bucket = bucket; }; -const v5810 = {}; -v5810.constructor = v5806; -v5806.prototype = v5810; -v5785.validateOutpostsBucketArn = v5806; -var v5811; -var v5812 = v5559; -v5811 = function populateParamFromArn(req) { var parsedArn = req._parsedArn; if (v5812.isArnInParam(req, \\"Bucket\\")) { - req.params.Bucket = parsedArn.bucket; +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NrOFdzalgsQ0FDeEYsQ0FDbkIsQ0FFRixFQUZFLEVBRG1CLEVBRHdGLE1BZ0NBO0FBMEMxQixJQUlQLElBQU0sQ0FPQSxFQXJEMkI7QUE4REosT0FPUixFQUFPLENBS0EsSUFaQyxDQTlESTtBQUFBO0NEbCtXdGpYO0FBQUEifQ" +`; + +exports[`avoid name collision with a closure's lexical scope 1`] = ` +"var v0; +var v2; +var v4; +var v5 = 0; +v4 = class v1{ +foo(){ +return (v5+=1); } -else if (v5812.isArnInParam(req, \\"Name\\")) { - req.params.Name = parsedArn.accessPoint; -} }; -const v5813 = {}; -v5813.constructor = v5811; -v5811.prototype = v5813; -v5785.populateParamFromArn = v5811; -var v5814; -v5814 = function populateUriFromArn(req) { var parsedArn = req._parsedArn; var endpoint = req.httpRequest.endpoint; var useArnRegion = req.service.config.s3UseArnRegion; var useFipsEndpoint = req.service.config.useFipsEndpoint; endpoint.hostname = [\\"s3-outposts\\" + (useFipsEndpoint ? \\"-fips\\" : \\"\\"), useArnRegion ? parsedArn.region : req.service.config.region, \\"amazonaws.com\\"].join(\\".\\"); endpoint.host = endpoint.hostname; }; -const v5815 = {}; -v5815.constructor = v5814; -v5814.prototype = v5815; -v5785.populateUriFromArn = v5814; -var v5816; -v5816 = function populateEndpointForOutpostId(req) { var endpoint = req.httpRequest.endpoint; var useFipsEndpoint = req.service.config.useFipsEndpoint; endpoint.hostname = [\\"s3-outposts\\" + (useFipsEndpoint ? \\"-fips\\" : \\"\\"), req.service.config.region, \\"amazonaws.com\\"].join(\\".\\"); endpoint.host = endpoint.hostname; }; -const v5817 = {}; -v5817.constructor = v5816; -v5816.prototype = v5817; -v5785.populateEndpointForOutpostId = v5816; -var v5818; -v5818 = function (response) { var hostId = response.httpResponse.headers ? response.httpResponse.headers[\\"x-amz-id-2\\"] : null; response.extendedRequestId = hostId; if (response.error) { - response.error.extendedRequestId = hostId; -} }; -const v5819 = {}; -v5819.constructor = v5818; -v5818.prototype = v5819; -v5785.extractHostId = v5818; -var v5820; -var v5821 = v5559; -v5820 = function validateArnRegion(req) { v5821.validateArnRegion(req, { allowFipsEndpoint: true }); }; -const v5822 = {}; -v5822.constructor = v5820; -v5820.prototype = v5822; -v5785.validateArnRegion = v5820; -var v5823; -var v5824 = v40; -v5823 = function validateArnAccountWithParams(req) { var params = req.params; var inputModel = req.service.api.operations[req.operation].input; if (inputModel.members.AccountId) { - var parsedArn = req._parsedArn; - if (parsedArn.accountId) { - if (params.AccountId) { - if (params.AccountId !== parsedArn.accountId) { - throw v3.error(new v5824(), { code: \\"ValidationError\\", message: \\"AccountId in ARN and request params should be same.\\" }); - } - } - else { - params.AccountId = parsedArn.accountId; - } - } -} }; -const v5825 = {}; -v5825.constructor = v5823; -v5823.prototype = v5825; -v5785.validateArnAccountWithParams = v5823; -var v5826; -var v5827 = v40; -var v5828 = v40; -var v5829 = v40; -v5826 = function (request) { var params = request.params; if (!v113.hasOwnProperty.call(params, \\"AccountId\\")) - return; var accountId = params.AccountId; if (typeof accountId !== \\"string\\") { - throw v3.error(new v5827(), { code: \\"ValidationError\\", message: \\"AccountId must be a string.\\" }); -} if (accountId.length < 1 || accountId.length > 63) { - throw v3.error(new v5828(), { code: \\"ValidationError\\", message: \\"AccountId length should be between 1 to 63 characters, inclusive.\\" }); -} var hostPattern = /^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\\\\-]*[a-zA-Z0-9]$/; if (!hostPattern.test(accountId)) { - throw v3.error(new v5829(), { code: \\"ValidationError\\", message: \\"AccountId should be hostname compatible. AccountId: \\" + accountId }); -} }; -const v5830 = {}; -v5830.constructor = v5826; -v5826.prototype = v5830; -v5785.validateAccountId = v5826; -var v5831; -v5831 = function getSigningName(req) { var _super = v309.getSigningName; if (req && req._parsedArn && req._parsedArn.service) { - return req._parsedArn.service; + +}; +var v3 = v4; +v2 = class v2 extends v3{ +}; +var v1 = v2; +v0 = () => { +const v3=new v1() +return v3.foo(); } -else if (req.params.OutpostId && (req.operation === \\"createBucket\\" || req.operation === \\"listRegionalBuckets\\")) { - return \\"s3-outposts\\"; +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDdXNQdXdQLE1BTXZELEVBTnVEO0FBc0J0QyxHQVBrQyxFQWFBO0FBUU4sT0FPRCxDQUNOLEVBQUssRUFNQSxDQVBDLENBUEMsQ0FSTTtBQUFBO0FBNUJJO0FBQUEsQyxDRHZzUHZ3UDtBQUFBO0tDeXdQZ3lQLE1BTWQsRUFOYyxTQWlCSCxFQWpCRztBQUFBLEMsQ0R6d1BoeVA7QUFBQTtLQ3UwUGk0UCxNQU1BO0FBTXpCLE1BTVosRUFBVyxDQUtBLElBSUYsRUFKRSxFQWpCMEI7QUErQkosT0FPUCxFQUFJLENBR0EsR0FIRSxFQVBDLENBL0JJO0FBQUE7Q0Q3MFBqNFA7QUFBQSJ9" +`; + +exports[`instantiating the AWS SDK 1`] = ` +"var v0; +const v2 = require(\\"aws-sdk\\",); +var v1 = v2; +v0 = () => { +const client=new v1.DynamoDB() +return client.config.endpoint; } -else { - return _super.call(this, req); -} }; -const v5832 = {}; -v5832.constructor = v5831; -v5831.prototype = v5832; -v5785.getSigningName = v5831; -v5782.prototype = v5785; -v5782.__super__ = v299; -const v5833 = {}; -v5833[\\"2018-08-20\\"] = null; -v5782.services = v5833; -const v5834 = []; -v5834.push(\\"2018-08-20\\"); -v5782.apiVersions = v5834; -v5782.serviceIdentifier = \\"s3control\\"; -v2.S3Control = v5782; -var v5835; -var v5836 = v299; -var v5837 = v31; -v5835 = function () { if (v5836 !== v5837) { - return v5836.apply(this, arguments); -} }; -const v5838 = Object.create(v309); -v5838.constructor = v5835; -const v5839 = {}; -const v5840 = []; -var v5841; -var v5842 = v31; -var v5843 = v5838; -v5841 = function EVENTS_BUBBLE(event) { var baseClass = v5842.getPrototypeOf(v5843); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5844 = {}; -v5844.constructor = v5841; -v5841.prototype = v5844; -v5840.push(v5841); -v5839.apiCallAttempt = v5840; -const v5845 = []; -var v5846; -v5846 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5789.getPrototypeOf(v5843); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5847 = {}; -v5847.constructor = v5846; -v5846.prototype = v5847; -v5845.push(v5846); -v5839.apiCall = v5845; -v5838._events = v5839; -v5838.MONITOR_EVENTS_BUBBLE = v5841; -v5838.CALL_EVENTS_BUBBLE = v5846; -v5835.prototype = v5838; -v5835.__super__ = v299; -const v5848 = {}; -v5848[\\"2015-12-10\\"] = null; -v5835.services = v5848; -const v5849 = []; -v5849.push(\\"2015-12-10\\"); -v5835.apiVersions = v5849; -v5835.serviceIdentifier = \\"servicecatalog\\"; -v2.ServiceCatalog = v5835; -var v5850; -var v5851 = v299; -var v5852 = v31; -v5850 = function () { if (v5851 !== v5852) { - return v5851.apply(this, arguments); -} }; -const v5853 = Object.create(v309); -v5853.constructor = v5850; -const v5854 = {}; -const v5855 = []; -var v5856; -var v5857 = v31; -var v5858 = v5853; -v5856 = function EVENTS_BUBBLE(event) { var baseClass = v5857.getPrototypeOf(v5858); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5859 = {}; -v5859.constructor = v5856; -v5856.prototype = v5859; -v5855.push(v5856); -v5854.apiCallAttempt = v5855; -const v5860 = []; -var v5861; -v5861 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5842.getPrototypeOf(v5858); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5862 = {}; -v5862.constructor = v5861; -v5861.prototype = v5862; -v5860.push(v5861); -v5854.apiCall = v5860; -v5853._events = v5854; -v5853.MONITOR_EVENTS_BUBBLE = v5856; -v5853.CALL_EVENTS_BUBBLE = v5861; -v5850.prototype = v5853; -v5850.__super__ = v299; -const v5863 = {}; -v5863[\\"2010-12-01\\"] = null; -v5850.services = v5863; -const v5864 = []; -v5864.push(\\"2010-12-01\\"); -v5850.apiVersions = v5864; -v5850.serviceIdentifier = \\"ses\\"; -v2.SES = v5850; -var v5865; -var v5866 = v299; -var v5867 = v31; -v5865 = function () { if (v5866 !== v5867) { - return v5866.apply(this, arguments); -} }; -const v5868 = Object.create(v309); -v5868.constructor = v5865; -const v5869 = {}; -const v5870 = []; -var v5871; -var v5872 = v31; -var v5873 = v5868; -v5871 = function EVENTS_BUBBLE(event) { var baseClass = v5872.getPrototypeOf(v5873); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5874 = {}; -v5874.constructor = v5871; -v5871.prototype = v5874; -v5870.push(v5871); -v5869.apiCallAttempt = v5870; -const v5875 = []; -var v5876; -v5876 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5857.getPrototypeOf(v5873); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5877 = {}; -v5877.constructor = v5876; -v5876.prototype = v5877; -v5875.push(v5876); -v5869.apiCall = v5875; -v5868._events = v5869; -v5868.MONITOR_EVENTS_BUBBLE = v5871; -v5868.CALL_EVENTS_BUBBLE = v5876; -v5865.prototype = v5868; -v5865.__super__ = v299; -const v5878 = {}; -v5878[\\"2016-06-02\\"] = null; -v5865.services = v5878; -const v5879 = []; -v5879.push(\\"2016-06-02\\"); -v5865.apiVersions = v5879; -v5865.serviceIdentifier = \\"shield\\"; -v2.Shield = v5865; -var v5880; -var v5881 = v299; -var v5882 = v31; -v5880 = function () { if (v5881 !== v5882) { - return v5881.apply(this, arguments); -} }; -const v5883 = Object.create(v309); -v5883.constructor = v5880; -const v5884 = {}; -const v5885 = []; -var v5886; -var v5887 = v31; -var v5888 = v5883; -v5886 = function EVENTS_BUBBLE(event) { var baseClass = v5887.getPrototypeOf(v5888); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5889 = {}; -v5889.constructor = v5886; -v5886.prototype = v5889; -v5885.push(v5886); -v5884.apiCallAttempt = v5885; -const v5890 = []; -var v5891; -v5891 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5872.getPrototypeOf(v5888); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5892 = {}; -v5892.constructor = v5891; -v5891.prototype = v5892; -v5890.push(v5891); -v5884.apiCall = v5890; -v5883._events = v5884; -v5883.MONITOR_EVENTS_BUBBLE = v5886; -v5883.CALL_EVENTS_BUBBLE = v5891; -v5880.prototype = v5883; -v5880.__super__ = v299; -const v5893 = {}; -v5893[\\"2009-04-15\\"] = null; -v5880.services = v5893; -const v5894 = []; -v5894.push(\\"2009-04-15\\"); -v5880.apiVersions = v5894; -v5880.serviceIdentifier = \\"simpledb\\"; -v2.SimpleDB = v5880; -var v5895; -var v5896 = v299; -var v5897 = v31; -v5895 = function () { if (v5896 !== v5897) { - return v5896.apply(this, arguments); -} }; -const v5898 = Object.create(v309); -v5898.constructor = v5895; -const v5899 = {}; -const v5900 = []; -var v5901; -var v5902 = v31; -var v5903 = v5898; -v5901 = function EVENTS_BUBBLE(event) { var baseClass = v5902.getPrototypeOf(v5903); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5904 = {}; -v5904.constructor = v5901; -v5901.prototype = v5904; -v5900.push(v5901); -v5899.apiCallAttempt = v5900; -const v5905 = []; -var v5906; -v5906 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5887.getPrototypeOf(v5903); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5907 = {}; -v5907.constructor = v5906; -v5906.prototype = v5907; -v5905.push(v5906); -v5899.apiCall = v5905; -v5898._events = v5899; -v5898.MONITOR_EVENTS_BUBBLE = v5901; -v5898.CALL_EVENTS_BUBBLE = v5906; -v5895.prototype = v5898; -v5895.__super__ = v299; -const v5908 = {}; -v5908[\\"2016-10-24\\"] = null; -v5895.services = v5908; -const v5909 = []; -v5909.push(\\"2016-10-24\\"); -v5895.apiVersions = v5909; -v5895.serviceIdentifier = \\"sms\\"; -v2.SMS = v5895; -var v5910; -var v5911 = v299; -var v5912 = v31; -v5910 = function () { if (v5911 !== v5912) { - return v5911.apply(this, arguments); -} }; -const v5913 = Object.create(v309); -v5913.constructor = v5910; -const v5914 = {}; -const v5915 = []; -var v5916; -var v5917 = v31; -var v5918 = v5913; -v5916 = function EVENTS_BUBBLE(event) { var baseClass = v5917.getPrototypeOf(v5918); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5919 = {}; -v5919.constructor = v5916; -v5916.prototype = v5919; -v5915.push(v5916); -v5914.apiCallAttempt = v5915; -const v5920 = []; -var v5921; -v5921 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5902.getPrototypeOf(v5918); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5922 = {}; -v5922.constructor = v5921; -v5921.prototype = v5922; -v5920.push(v5921); -v5914.apiCall = v5920; -v5913._events = v5914; -v5913.MONITOR_EVENTS_BUBBLE = v5916; -v5913.CALL_EVENTS_BUBBLE = v5921; -v5910.prototype = v5913; -v5910.__super__ = v299; -const v5923 = {}; -v5923[\\"2016-06-30\\"] = null; -v5910.services = v5923; -const v5924 = []; -v5924.push(\\"2016-06-30\\"); -v5910.apiVersions = v5924; -v5910.serviceIdentifier = \\"snowball\\"; -v2.Snowball = v5910; -var v5925; -var v5926 = v299; -var v5927 = v31; -v5925 = function () { if (v5926 !== v5927) { - return v5926.apply(this, arguments); -} }; -const v5928 = Object.create(v309); -v5928.constructor = v5925; -const v5929 = {}; -const v5930 = []; -var v5931; -var v5932 = v31; -var v5933 = v5928; -v5931 = function EVENTS_BUBBLE(event) { var baseClass = v5932.getPrototypeOf(v5933); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5934 = {}; -v5934.constructor = v5931; -v5931.prototype = v5934; -v5930.push(v5931); -v5929.apiCallAttempt = v5930; -const v5935 = []; -var v5936; -v5936 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5917.getPrototypeOf(v5933); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5937 = {}; -v5937.constructor = v5936; -v5936.prototype = v5937; -v5935.push(v5936); -v5929.apiCall = v5935; -v5928._events = v5929; -v5928.MONITOR_EVENTS_BUBBLE = v5931; -v5928.CALL_EVENTS_BUBBLE = v5936; -v5925.prototype = v5928; -v5925.__super__ = v299; -const v5938 = {}; -v5938[\\"2010-03-31\\"] = null; -v5925.services = v5938; -const v5939 = []; -v5939.push(\\"2010-03-31\\"); -v5925.apiVersions = v5939; -v5925.serviceIdentifier = \\"sns\\"; -v2.SNS = v5925; -var v5940; -var v5941 = v299; -var v5942 = v31; -v5940 = function () { if (v5941 !== v5942) { - return v5941.apply(this, arguments); -} }; -const v5943 = Object.create(v309); -v5943.constructor = v5940; -const v5944 = {}; -const v5945 = []; -var v5946; -var v5947 = v31; -var v5948 = v5943; -v5946 = function EVENTS_BUBBLE(event) { var baseClass = v5947.getPrototypeOf(v5948); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5949 = {}; -v5949.constructor = v5946; -v5946.prototype = v5949; -v5945.push(v5946); -v5944.apiCallAttempt = v5945; -const v5950 = []; -var v5951; -v5951 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5932.getPrototypeOf(v5948); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5952 = {}; -v5952.constructor = v5951; -v5951.prototype = v5952; -v5950.push(v5951); -v5944.apiCall = v5950; -v5943._events = v5944; -v5943.MONITOR_EVENTS_BUBBLE = v5946; -v5943.CALL_EVENTS_BUBBLE = v5951; -var v5953; -v5953 = function setupRequestListeners(request) { request.addListener(\\"build\\", this.buildEndpoint); if (request.service.config.computeChecksums) { - if (request.operation === \\"sendMessage\\") { - request.addListener(\\"extractData\\", this.verifySendMessageChecksum); - } - else if (request.operation === \\"sendMessageBatch\\") { - request.addListener(\\"extractData\\", this.verifySendMessageBatchChecksum); - } - else if (request.operation === \\"receiveMessage\\") { - request.addListener(\\"extractData\\", this.verifyReceiveMessageChecksum); - } -} }; -const v5954 = {}; -v5954.constructor = v5953; -v5953.prototype = v5954; -v5943.setupRequestListeners = v5953; -var v5955; -v5955 = function verifySendMessageChecksum(response) { if (!response.data) - return; var md5 = response.data.MD5OfMessageBody; var body = this.params.MessageBody; var calculatedMd5 = this.service.calculateChecksum(body); if (calculatedMd5 !== md5) { - var msg = \\"Got \\\\\\"\\" + response.data.MD5OfMessageBody + \\"\\\\\\", expecting \\\\\\"\\" + calculatedMd5 + \\"\\\\\\".\\"; - this.service.throwInvalidChecksumError(response, [response.data.MessageId], msg); -} }; -const v5956 = {}; -v5956.constructor = v5955; -v5955.prototype = v5956; -v5943.verifySendMessageChecksum = v5955; -var v5957; -v5957 = function verifySendMessageBatchChecksum(response) { if (!response.data) - return; var service = this.service; var entries = {}; var errors = []; var messageIds = []; v3.arrayEach(response.data.Successful, function (entry) { entries[entry.Id] = entry; }); v3.arrayEach(this.params.Entries, function (entry) { if (entries[entry.Id]) { - var md5 = entries[entry.Id].MD5OfMessageBody; - var body = entry.MessageBody; - if (!service.isChecksumValid(md5, body)) { - errors.push(entry.Id); - messageIds.push(entries[entry.Id].MessageId); - } -} }); if (errors.length > 0) { - service.throwInvalidChecksumError(response, messageIds, \\"Invalid messages: \\" + errors.join(\\", \\")); -} }; -const v5958 = {}; -v5958.constructor = v5957; -v5957.prototype = v5958; -v5943.verifySendMessageBatchChecksum = v5957; -var v5959; -v5959 = function verifyReceiveMessageChecksum(response) { if (!response.data) - return; var service = this.service; var messageIds = []; v3.arrayEach(response.data.Messages, function (message) { var md5 = message.MD5OfBody; var body = message.Body; if (!service.isChecksumValid(md5, body)) { - messageIds.push(message.MessageId); -} }); if (messageIds.length > 0) { - service.throwInvalidChecksumError(response, messageIds, \\"Invalid messages: \\" + messageIds.join(\\", \\")); -} }; -const v5960 = {}; -v5960.constructor = v5959; -v5959.prototype = v5960; -v5943.verifyReceiveMessageChecksum = v5959; -var v5961; -var v5962 = v40; -v5961 = function throwInvalidChecksumError(response, ids, message) { response.error = v3.error(new v5962(), { retryable: true, code: \\"InvalidChecksum\\", messageIds: ids, message: response.request.operation + \\" returned an invalid MD5 response. \\" + message }); }; -const v5963 = {}; -v5963.constructor = v5961; -v5961.prototype = v5963; -v5943.throwInvalidChecksumError = v5961; -var v5964; -v5964 = function isChecksumValid(checksum, data) { return this.calculateChecksum(data) === checksum; }; -const v5965 = {}; -v5965.constructor = v5964; -v5964.prototype = v5965; -v5943.isChecksumValid = v5964; -var v5966; -v5966 = function calculateChecksum(data) { return v91.md5(data, \\"hex\\"); }; -const v5967 = {}; -v5967.constructor = v5966; -v5966.prototype = v5967; -v5943.calculateChecksum = v5966; -var v5968; -var v5969 = v2; -v5968 = function buildEndpoint(request) { var url = request.httpRequest.params.QueueUrl; if (url) { - request.httpRequest.endpoint = new v5969.Endpoint(url); - var matches = request.httpRequest.endpoint.host.match(/^sqs\\\\.(.+?)\\\\./); - if (matches) - request.httpRequest.region = matches[1]; -} }; -const v5970 = {}; -v5970.constructor = v5968; -v5968.prototype = v5970; -v5943.buildEndpoint = v5968; -v5940.prototype = v5943; -v5940.__super__ = v299; -const v5971 = {}; -v5971[\\"2012-11-05\\"] = null; -v5940.services = v5971; -const v5972 = []; -v5972.push(\\"2012-11-05\\"); -v5940.apiVersions = v5972; -v5940.serviceIdentifier = \\"sqs\\"; -v2.SQS = v5940; -var v5973; -var v5974 = v299; -var v5975 = v31; -v5973 = function () { if (v5974 !== v5975) { - return v5974.apply(this, arguments); -} }; -const v5976 = Object.create(v309); -v5976.constructor = v5973; -const v5977 = {}; -const v5978 = []; -var v5979; -var v5980 = v31; -var v5981 = v5976; -v5979 = function EVENTS_BUBBLE(event) { var baseClass = v5980.getPrototypeOf(v5981); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5982 = {}; -v5982.constructor = v5979; -v5979.prototype = v5982; -v5978.push(v5979); -v5977.apiCallAttempt = v5978; -const v5983 = []; -var v5984; -v5984 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5947.getPrototypeOf(v5981); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v5985 = {}; -v5985.constructor = v5984; -v5984.prototype = v5985; -v5983.push(v5984); -v5977.apiCall = v5983; -v5976._events = v5977; -v5976.MONITOR_EVENTS_BUBBLE = v5979; -v5976.CALL_EVENTS_BUBBLE = v5984; -v5973.prototype = v5976; -v5973.__super__ = v299; -const v5986 = {}; -v5986[\\"2014-11-06\\"] = null; -v5973.services = v5986; -const v5987 = []; -v5987.push(\\"2014-11-06\\"); -v5973.apiVersions = v5987; -v5973.serviceIdentifier = \\"ssm\\"; -v2.SSM = v5973; -var v5988; -var v5989 = v299; -var v5990 = v31; -v5988 = function () { if (v5989 !== v5990) { - return v5989.apply(this, arguments); -} }; -const v5991 = Object.create(v309); -v5991.constructor = v5988; -const v5992 = {}; -const v5993 = []; -var v5994; -var v5995 = v31; -var v5996 = v5991; -v5994 = function EVENTS_BUBBLE(event) { var baseClass = v5995.getPrototypeOf(v5996); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v5997 = {}; -v5997.constructor = v5994; -v5994.prototype = v5997; -v5993.push(v5994); -v5992.apiCallAttempt = v5993; -const v5998 = []; -var v5999; -v5999 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5980.getPrototypeOf(v5996); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6000 = {}; -v6000.constructor = v5999; -v5999.prototype = v6000; -v5998.push(v5999); -v5992.apiCall = v5998; -v5991._events = v5992; -v5991.MONITOR_EVENTS_BUBBLE = v5994; -v5991.CALL_EVENTS_BUBBLE = v5999; -v5988.prototype = v5991; -v5988.__super__ = v299; -const v6001 = {}; -v6001[\\"2013-06-30\\"] = null; -v5988.services = v6001; -const v6002 = []; -v6002.push(\\"2013-06-30\\"); -v5988.apiVersions = v6002; -v5988.serviceIdentifier = \\"storagegateway\\"; -v2.StorageGateway = v5988; -var v6003; -var v6004 = v299; -var v6005 = v31; -v6003 = function () { if (v6004 !== v6005) { - return v6004.apply(this, arguments); -} }; -const v6006 = Object.create(v309); -v6006.constructor = v6003; -const v6007 = {}; -const v6008 = []; -var v6009; -var v6010 = v31; -var v6011 = v6006; -v6009 = function EVENTS_BUBBLE(event) { var baseClass = v6010.getPrototypeOf(v6011); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6012 = {}; -v6012.constructor = v6009; -v6009.prototype = v6012; -v6008.push(v6009); -v6007.apiCallAttempt = v6008; -const v6013 = []; -var v6014; -v6014 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v5995.getPrototypeOf(v6011); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6015 = {}; -v6015.constructor = v6014; -v6014.prototype = v6015; -v6013.push(v6014); -v6007.apiCall = v6013; -v6006._events = v6007; -v6006.MONITOR_EVENTS_BUBBLE = v6009; -v6006.CALL_EVENTS_BUBBLE = v6014; -v6003.prototype = v6006; -v6003.__super__ = v299; -const v6016 = {}; -v6016[\\"2016-11-23\\"] = null; -v6003.services = v6016; -const v6017 = []; -v6017.push(\\"2016-11-23\\"); -v6003.apiVersions = v6017; -v6003.serviceIdentifier = \\"stepfunctions\\"; -v2.StepFunctions = v6003; -var v6018; -var v6019 = v299; -var v6020 = v31; -v6018 = function () { if (v6019 !== v6020) { - return v6019.apply(this, arguments); -} }; -const v6021 = Object.create(v309); -v6021.constructor = v6018; -const v6022 = {}; -const v6023 = []; -var v6024; -var v6025 = v31; -var v6026 = v6021; -v6024 = function EVENTS_BUBBLE(event) { var baseClass = v6025.getPrototypeOf(v6026); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6027 = {}; -v6027.constructor = v6024; -v6024.prototype = v6027; -v6023.push(v6024); -v6022.apiCallAttempt = v6023; -const v6028 = []; -var v6029; -v6029 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6010.getPrototypeOf(v6026); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6030 = {}; -v6030.constructor = v6029; -v6029.prototype = v6030; -v6028.push(v6029); -v6022.apiCall = v6028; -v6021._events = v6022; -v6021.MONITOR_EVENTS_BUBBLE = v6024; -v6021.CALL_EVENTS_BUBBLE = v6029; -v6018.prototype = v6021; -v6018.__super__ = v299; -const v6031 = {}; -v6031[\\"2013-04-15\\"] = null; -v6018.services = v6031; -const v6032 = []; -v6032.push(\\"2013-04-15\\"); -v6018.apiVersions = v6032; -v6018.serviceIdentifier = \\"support\\"; -v2.Support = v6018; -var v6033; -var v6034 = v299; -var v6035 = v31; -v6033 = function () { if (v6034 !== v6035) { - return v6034.apply(this, arguments); -} }; -const v6036 = Object.create(v309); -v6036.constructor = v6033; -const v6037 = {}; -const v6038 = []; -var v6039; -var v6040 = v31; -var v6041 = v6036; -v6039 = function EVENTS_BUBBLE(event) { var baseClass = v6040.getPrototypeOf(v6041); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6042 = {}; -v6042.constructor = v6039; -v6039.prototype = v6042; -v6038.push(v6039); -v6037.apiCallAttempt = v6038; -const v6043 = []; -var v6044; -v6044 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6025.getPrototypeOf(v6041); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6045 = {}; -v6045.constructor = v6044; -v6044.prototype = v6045; -v6043.push(v6044); -v6037.apiCall = v6043; -v6036._events = v6037; -v6036.MONITOR_EVENTS_BUBBLE = v6039; -v6036.CALL_EVENTS_BUBBLE = v6044; -v6033.prototype = v6036; -v6033.__super__ = v299; -const v6046 = {}; -v6046[\\"2012-01-25\\"] = null; -v6033.services = v6046; -const v6047 = []; -v6047.push(\\"2012-01-25\\"); -v6033.apiVersions = v6047; -v6033.serviceIdentifier = \\"swf\\"; -v2.SWF = v6033; -v2.SimpleWorkflow = v6033; -var v6048; -var v6049 = v299; -var v6050 = v31; -v6048 = function () { if (v6049 !== v6050) { - return v6049.apply(this, arguments); -} }; -const v6051 = Object.create(v309); -v6051.constructor = v6048; -const v6052 = {}; -const v6053 = []; -var v6054; -var v6055 = v31; -var v6056 = v6051; -v6054 = function EVENTS_BUBBLE(event) { var baseClass = v6055.getPrototypeOf(v6056); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6057 = {}; -v6057.constructor = v6054; -v6054.prototype = v6057; -v6053.push(v6054); -v6052.apiCallAttempt = v6053; -const v6058 = []; -var v6059; -v6059 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6040.getPrototypeOf(v6056); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6060 = {}; -v6060.constructor = v6059; -v6059.prototype = v6060; -v6058.push(v6059); -v6052.apiCall = v6058; -v6051._events = v6052; -v6051.MONITOR_EVENTS_BUBBLE = v6054; -v6051.CALL_EVENTS_BUBBLE = v6059; -v6048.prototype = v6051; -v6048.__super__ = v299; -const v6061 = {}; -v6061[\\"2016-04-12\\"] = null; -v6048.services = v6061; -const v6062 = []; -v6062.push(\\"2016-04-12\\"); -v6048.apiVersions = v6062; -v6048.serviceIdentifier = \\"xray\\"; -v2.XRay = v6048; -var v6063; -var v6064 = v299; -var v6065 = v31; -v6063 = function () { if (v6064 !== v6065) { - return v6064.apply(this, arguments); -} }; -const v6066 = Object.create(v309); -v6066.constructor = v6063; -const v6067 = {}; -const v6068 = []; -var v6069; -var v6070 = v31; -var v6071 = v6066; -v6069 = function EVENTS_BUBBLE(event) { var baseClass = v6070.getPrototypeOf(v6071); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6072 = {}; -v6072.constructor = v6069; -v6069.prototype = v6072; -v6068.push(v6069); -v6067.apiCallAttempt = v6068; -const v6073 = []; -var v6074; -v6074 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6055.getPrototypeOf(v6071); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6075 = {}; -v6075.constructor = v6074; -v6074.prototype = v6075; -v6073.push(v6074); -v6067.apiCall = v6073; -v6066._events = v6067; -v6066.MONITOR_EVENTS_BUBBLE = v6069; -v6066.CALL_EVENTS_BUBBLE = v6074; -v6063.prototype = v6066; -v6063.__super__ = v299; -const v6076 = {}; -v6076[\\"2015-08-24\\"] = null; -v6063.services = v6076; -const v6077 = []; -v6077.push(\\"2015-08-24\\"); -v6063.apiVersions = v6077; -v6063.serviceIdentifier = \\"waf\\"; -v2.WAF = v6063; -var v6078; -var v6079 = v299; -var v6080 = v31; -v6078 = function () { if (v6079 !== v6080) { - return v6079.apply(this, arguments); -} }; -const v6081 = Object.create(v309); -v6081.constructor = v6078; -const v6082 = {}; -const v6083 = []; -var v6084; -var v6085 = v31; -var v6086 = v6081; -v6084 = function EVENTS_BUBBLE(event) { var baseClass = v6085.getPrototypeOf(v6086); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6087 = {}; -v6087.constructor = v6084; -v6084.prototype = v6087; -v6083.push(v6084); -v6082.apiCallAttempt = v6083; -const v6088 = []; -var v6089; -v6089 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6070.getPrototypeOf(v6086); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6090 = {}; -v6090.constructor = v6089; -v6089.prototype = v6090; -v6088.push(v6089); -v6082.apiCall = v6088; -v6081._events = v6082; -v6081.MONITOR_EVENTS_BUBBLE = v6084; -v6081.CALL_EVENTS_BUBBLE = v6089; -v6078.prototype = v6081; -v6078.__super__ = v299; -const v6091 = {}; -v6091[\\"2016-11-28\\"] = null; -v6078.services = v6091; -const v6092 = []; -v6092.push(\\"2016-11-28\\"); -v6078.apiVersions = v6092; -v6078.serviceIdentifier = \\"wafregional\\"; -v2.WAFRegional = v6078; -var v6093; -var v6094 = v299; -var v6095 = v31; -v6093 = function () { if (v6094 !== v6095) { - return v6094.apply(this, arguments); -} }; -const v6096 = Object.create(v309); -v6096.constructor = v6093; -const v6097 = {}; -const v6098 = []; -var v6099; -var v6100 = v31; -var v6101 = v6096; -v6099 = function EVENTS_BUBBLE(event) { var baseClass = v6100.getPrototypeOf(v6101); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6102 = {}; -v6102.constructor = v6099; -v6099.prototype = v6102; -v6098.push(v6099); -v6097.apiCallAttempt = v6098; -const v6103 = []; -var v6104; -v6104 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6085.getPrototypeOf(v6101); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6105 = {}; -v6105.constructor = v6104; -v6104.prototype = v6105; -v6103.push(v6104); -v6097.apiCall = v6103; -v6096._events = v6097; -v6096.MONITOR_EVENTS_BUBBLE = v6099; -v6096.CALL_EVENTS_BUBBLE = v6104; -v6093.prototype = v6096; -v6093.__super__ = v299; -const v6106 = {}; -v6106[\\"2016-05-01\\"] = null; -v6093.services = v6106; -const v6107 = []; -v6107.push(\\"2016-05-01\\"); -v6093.apiVersions = v6107; -v6093.serviceIdentifier = \\"workdocs\\"; -v2.WorkDocs = v6093; -var v6108; -var v6109 = v299; -var v6110 = v31; -v6108 = function () { if (v6109 !== v6110) { - return v6109.apply(this, arguments); -} }; -const v6111 = Object.create(v309); -v6111.constructor = v6108; -const v6112 = {}; -const v6113 = []; -var v6114; -var v6115 = v31; -var v6116 = v6111; -v6114 = function EVENTS_BUBBLE(event) { var baseClass = v6115.getPrototypeOf(v6116); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6117 = {}; -v6117.constructor = v6114; -v6114.prototype = v6117; -v6113.push(v6114); -v6112.apiCallAttempt = v6113; -const v6118 = []; -var v6119; -v6119 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6100.getPrototypeOf(v6116); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6120 = {}; -v6120.constructor = v6119; -v6119.prototype = v6120; -v6118.push(v6119); -v6112.apiCall = v6118; -v6111._events = v6112; -v6111.MONITOR_EVENTS_BUBBLE = v6114; -v6111.CALL_EVENTS_BUBBLE = v6119; -v6108.prototype = v6111; -v6108.__super__ = v299; -const v6121 = {}; -v6121[\\"2015-04-08\\"] = null; -v6108.services = v6121; -const v6122 = []; -v6122.push(\\"2015-04-08\\"); -v6108.apiVersions = v6122; -v6108.serviceIdentifier = \\"workspaces\\"; -v2.WorkSpaces = v6108; -var v6123; -var v6124 = v299; -var v6125 = v31; -v6123 = function () { if (v6124 !== v6125) { - return v6124.apply(this, arguments); -} }; -const v6126 = Object.create(v309); -v6126.constructor = v6123; -const v6127 = {}; -const v6128 = []; -var v6129; -var v6130 = v31; -var v6131 = v6126; -v6129 = function EVENTS_BUBBLE(event) { var baseClass = v6130.getPrototypeOf(v6131); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6132 = {}; -v6132.constructor = v6129; -v6129.prototype = v6132; -v6128.push(v6129); -v6127.apiCallAttempt = v6128; -const v6133 = []; -var v6134; -v6134 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6115.getPrototypeOf(v6131); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6135 = {}; -v6135.constructor = v6134; -v6134.prototype = v6135; -v6133.push(v6134); -v6127.apiCall = v6133; -v6126._events = v6127; -v6126.MONITOR_EVENTS_BUBBLE = v6129; -v6126.CALL_EVENTS_BUBBLE = v6134; -v6123.prototype = v6126; -v6123.__super__ = v299; -const v6136 = {}; -v6136[\\"2017-04-19\\"] = null; -v6123.services = v6136; -const v6137 = []; -v6137.push(\\"2017-04-19\\"); -v6123.apiVersions = v6137; -v6123.serviceIdentifier = \\"codestar\\"; -v2.CodeStar = v6123; -var v6138; -var v6139 = v299; -var v6140 = v31; -v6138 = function () { if (v6139 !== v6140) { - return v6139.apply(this, arguments); -} }; -const v6141 = Object.create(v309); -v6141.constructor = v6138; -const v6142 = {}; -const v6143 = []; -var v6144; -var v6145 = v31; -var v6146 = v6141; -v6144 = function EVENTS_BUBBLE(event) { var baseClass = v6145.getPrototypeOf(v6146); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6147 = {}; -v6147.constructor = v6144; -v6144.prototype = v6147; -v6143.push(v6144); -v6142.apiCallAttempt = v6143; -const v6148 = []; -var v6149; -v6149 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6130.getPrototypeOf(v6146); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6150 = {}; -v6150.constructor = v6149; -v6149.prototype = v6150; -v6148.push(v6149); -v6142.apiCall = v6148; -v6141._events = v6142; -v6141.MONITOR_EVENTS_BUBBLE = v6144; -v6141.CALL_EVENTS_BUBBLE = v6149; -v6138.prototype = v6141; -v6138.__super__ = v299; -const v6151 = {}; -v6151[\\"2017-04-19\\"] = null; -v6138.services = v6151; -const v6152 = []; -v6152.push(\\"2017-04-19\\"); -v6138.apiVersions = v6152; -v6138.serviceIdentifier = \\"lexmodelbuildingservice\\"; -v2.LexModelBuildingService = v6138; -var v6153; -var v6154 = v299; -var v6155 = v31; -v6153 = function () { if (v6154 !== v6155) { - return v6154.apply(this, arguments); -} }; -const v6156 = Object.create(v309); -v6156.constructor = v6153; -const v6157 = {}; -const v6158 = []; -var v6159; -var v6160 = v31; -var v6161 = v6156; -v6159 = function EVENTS_BUBBLE(event) { var baseClass = v6160.getPrototypeOf(v6161); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6162 = {}; -v6162.constructor = v6159; -v6159.prototype = v6162; -v6158.push(v6159); -v6157.apiCallAttempt = v6158; -const v6163 = []; -var v6164; -v6164 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6145.getPrototypeOf(v6161); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6165 = {}; -v6165.constructor = v6164; -v6164.prototype = v6165; -v6163.push(v6164); -v6157.apiCall = v6163; -v6156._events = v6157; -v6156.MONITOR_EVENTS_BUBBLE = v6159; -v6156.CALL_EVENTS_BUBBLE = v6164; -v6153.prototype = v6156; -v6153.__super__ = v299; -const v6166 = {}; -v6166[\\"2017-01-11\\"] = null; -v6153.services = v6166; -const v6167 = []; -v6167.push(\\"2017-01-11\\"); -v6153.apiVersions = v6167; -v6153.serviceIdentifier = \\"marketplaceentitlementservice\\"; -v2.MarketplaceEntitlementService = v6153; -var v6168; -var v6169 = v299; -var v6170 = v31; -v6168 = function () { if (v6169 !== v6170) { - return v6169.apply(this, arguments); -} }; -const v6171 = Object.create(v309); -v6171.constructor = v6168; -const v6172 = {}; -const v6173 = []; -var v6174; -var v6175 = v31; -var v6176 = v6171; -v6174 = function EVENTS_BUBBLE(event) { var baseClass = v6175.getPrototypeOf(v6176); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6177 = {}; -v6177.constructor = v6174; -v6174.prototype = v6177; -v6173.push(v6174); -v6172.apiCallAttempt = v6173; -const v6178 = []; -var v6179; -v6179 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6160.getPrototypeOf(v6176); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6180 = {}; -v6180.constructor = v6179; -v6179.prototype = v6180; -v6178.push(v6179); -v6172.apiCall = v6178; -v6171._events = v6172; -v6171.MONITOR_EVENTS_BUBBLE = v6174; -v6171.CALL_EVENTS_BUBBLE = v6179; -v6168.prototype = v6171; -v6168.__super__ = v299; -const v6181 = {}; -v6181[\\"2017-05-18\\"] = null; -v6168.services = v6181; -const v6182 = []; -v6182.push(\\"2017-05-18\\"); -v6168.apiVersions = v6182; -v6168.serviceIdentifier = \\"athena\\"; -v2.Athena = v6168; -var v6183; -var v6184 = v299; -var v6185 = v31; -v6183 = function () { if (v6184 !== v6185) { - return v6184.apply(this, arguments); -} }; -const v6186 = Object.create(v309); -v6186.constructor = v6183; -const v6187 = {}; -const v6188 = []; -var v6189; -var v6190 = v31; -var v6191 = v6186; -v6189 = function EVENTS_BUBBLE(event) { var baseClass = v6190.getPrototypeOf(v6191); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6192 = {}; -v6192.constructor = v6189; -v6189.prototype = v6192; -v6188.push(v6189); -v6187.apiCallAttempt = v6188; -const v6193 = []; -var v6194; -v6194 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6175.getPrototypeOf(v6191); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6195 = {}; -v6195.constructor = v6194; -v6194.prototype = v6195; -v6193.push(v6194); -v6187.apiCall = v6193; -v6186._events = v6187; -v6186.MONITOR_EVENTS_BUBBLE = v6189; -v6186.CALL_EVENTS_BUBBLE = v6194; -v6183.prototype = v6186; -v6183.__super__ = v299; -const v6196 = {}; -v6196[\\"2017-06-07\\"] = null; -v6183.services = v6196; -const v6197 = []; -v6197.push(\\"2017-06-07\\"); -v6183.apiVersions = v6197; -v6183.serviceIdentifier = \\"greengrass\\"; -v2.Greengrass = v6183; -var v6198; -var v6199 = v299; -var v6200 = v31; -v6198 = function () { if (v6199 !== v6200) { - return v6199.apply(this, arguments); -} }; -const v6201 = Object.create(v309); -v6201.constructor = v6198; -const v6202 = {}; -const v6203 = []; -var v6204; -var v6205 = v31; -var v6206 = v6201; -v6204 = function EVENTS_BUBBLE(event) { var baseClass = v6205.getPrototypeOf(v6206); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6207 = {}; -v6207.constructor = v6204; -v6204.prototype = v6207; -v6203.push(v6204); -v6202.apiCallAttempt = v6203; -const v6208 = []; -var v6209; -v6209 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6190.getPrototypeOf(v6206); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6210 = {}; -v6210.constructor = v6209; -v6209.prototype = v6210; -v6208.push(v6209); -v6202.apiCall = v6208; -v6201._events = v6202; -v6201.MONITOR_EVENTS_BUBBLE = v6204; -v6201.CALL_EVENTS_BUBBLE = v6209; -v6198.prototype = v6201; -v6198.__super__ = v299; -const v6211 = {}; -v6211[\\"2017-04-19\\"] = null; -v6198.services = v6211; -const v6212 = []; -v6212.push(\\"2017-04-19\\"); -v6198.apiVersions = v6212; -v6198.serviceIdentifier = \\"dax\\"; -v2.DAX = v6198; -var v6213; -var v6214 = v299; -var v6215 = v31; -v6213 = function () { if (v6214 !== v6215) { - return v6214.apply(this, arguments); -} }; -const v6216 = Object.create(v309); -v6216.constructor = v6213; -const v6217 = {}; -const v6218 = []; -var v6219; -var v6220 = v31; -var v6221 = v6216; -v6219 = function EVENTS_BUBBLE(event) { var baseClass = v6220.getPrototypeOf(v6221); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6222 = {}; -v6222.constructor = v6219; -v6219.prototype = v6222; -v6218.push(v6219); -v6217.apiCallAttempt = v6218; -const v6223 = []; -var v6224; -v6224 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6205.getPrototypeOf(v6221); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6225 = {}; -v6225.constructor = v6224; -v6224.prototype = v6225; -v6223.push(v6224); -v6217.apiCall = v6223; -v6216._events = v6217; -v6216.MONITOR_EVENTS_BUBBLE = v6219; -v6216.CALL_EVENTS_BUBBLE = v6224; -v6213.prototype = v6216; -v6213.__super__ = v299; -const v6226 = {}; -v6226[\\"2017-05-31\\"] = null; -v6213.services = v6226; -const v6227 = []; -v6227.push(\\"2017-05-31\\"); -v6213.apiVersions = v6227; -v6213.serviceIdentifier = \\"migrationhub\\"; -v2.MigrationHub = v6213; -var v6228; -var v6229 = v299; -var v6230 = v31; -v6228 = function () { if (v6229 !== v6230) { - return v6229.apply(this, arguments); -} }; -const v6231 = Object.create(v309); -v6231.constructor = v6228; -const v6232 = {}; -const v6233 = []; -var v6234; -var v6235 = v31; -var v6236 = v6231; -v6234 = function EVENTS_BUBBLE(event) { var baseClass = v6235.getPrototypeOf(v6236); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6237 = {}; -v6237.constructor = v6234; -v6234.prototype = v6237; -v6233.push(v6234); -v6232.apiCallAttempt = v6233; -const v6238 = []; -var v6239; -v6239 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6220.getPrototypeOf(v6236); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6240 = {}; -v6240.constructor = v6239; -v6239.prototype = v6240; -v6238.push(v6239); -v6232.apiCall = v6238; -v6231._events = v6232; -v6231.MONITOR_EVENTS_BUBBLE = v6234; -v6231.CALL_EVENTS_BUBBLE = v6239; -v6228.prototype = v6231; -v6228.__super__ = v299; -const v6241 = {}; -v6241[\\"2017-04-28\\"] = null; -v6228.services = v6241; -const v6242 = []; -v6242.push(\\"2017-04-28\\"); -v6228.apiVersions = v6242; -v6228.serviceIdentifier = \\"cloudhsmv2\\"; -v2.CloudHSMV2 = v6228; -var v6243; -var v6244 = v299; -var v6245 = v31; -v6243 = function () { if (v6244 !== v6245) { - return v6244.apply(this, arguments); -} }; -const v6246 = Object.create(v309); -v6246.constructor = v6243; -const v6247 = {}; -const v6248 = []; -var v6249; -var v6250 = v31; -var v6251 = v6246; -v6249 = function EVENTS_BUBBLE(event) { var baseClass = v6250.getPrototypeOf(v6251); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6252 = {}; -v6252.constructor = v6249; -v6249.prototype = v6252; -v6248.push(v6249); -v6247.apiCallAttempt = v6248; -const v6253 = []; -var v6254; -v6254 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6235.getPrototypeOf(v6251); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6255 = {}; -v6255.constructor = v6254; -v6254.prototype = v6255; -v6253.push(v6254); -v6247.apiCall = v6253; -v6246._events = v6247; -v6246.MONITOR_EVENTS_BUBBLE = v6249; -v6246.CALL_EVENTS_BUBBLE = v6254; -v6243.prototype = v6246; -v6243.__super__ = v299; -const v6256 = {}; -v6256[\\"2017-03-31\\"] = null; -v6243.services = v6256; -const v6257 = []; -v6257.push(\\"2017-03-31\\"); -v6243.apiVersions = v6257; -v6243.serviceIdentifier = \\"glue\\"; -v2.Glue = v6243; -var v6258; -var v6259 = v299; -var v6260 = v31; -v6258 = function () { if (v6259 !== v6260) { - return v6259.apply(this, arguments); -} }; -const v6261 = Object.create(v309); -v6261.constructor = v6258; -const v6262 = {}; -const v6263 = []; -var v6264; -var v6265 = v31; -var v6266 = v6261; -v6264 = function EVENTS_BUBBLE(event) { var baseClass = v6265.getPrototypeOf(v6266); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6267 = {}; -v6267.constructor = v6264; -v6264.prototype = v6267; -v6263.push(v6264); -v6262.apiCallAttempt = v6263; -const v6268 = []; -var v6269; -v6269 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6250.getPrototypeOf(v6266); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6270 = {}; -v6270.constructor = v6269; -v6269.prototype = v6270; -v6268.push(v6269); -v6262.apiCall = v6268; -v6261._events = v6262; -v6261.MONITOR_EVENTS_BUBBLE = v6264; -v6261.CALL_EVENTS_BUBBLE = v6269; -v6258.prototype = v6261; -v6258.__super__ = v299; -const v6271 = {}; -v6271[\\"2017-07-01\\"] = null; -v6258.services = v6271; -const v6272 = []; -v6272.push(\\"2017-07-01\\"); -v6258.apiVersions = v6272; -v6258.serviceIdentifier = \\"mobile\\"; -v2.Mobile = v6258; -var v6273; -var v6274 = v299; -var v6275 = v31; -v6273 = function () { if (v6274 !== v6275) { - return v6274.apply(this, arguments); -} }; -const v6276 = Object.create(v309); -v6276.constructor = v6273; -const v6277 = {}; -const v6278 = []; -var v6279; -var v6280 = v31; -var v6281 = v6276; -v6279 = function EVENTS_BUBBLE(event) { var baseClass = v6280.getPrototypeOf(v6281); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6282 = {}; -v6282.constructor = v6279; -v6279.prototype = v6282; -v6278.push(v6279); -v6277.apiCallAttempt = v6278; -const v6283 = []; -var v6284; -v6284 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6265.getPrototypeOf(v6281); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6285 = {}; -v6285.constructor = v6284; -v6284.prototype = v6285; -v6283.push(v6284); -v6277.apiCall = v6283; -v6276._events = v6277; -v6276.MONITOR_EVENTS_BUBBLE = v6279; -v6276.CALL_EVENTS_BUBBLE = v6284; -v6273.prototype = v6276; -v6273.__super__ = v299; -const v6286 = {}; -v6286[\\"2017-10-15\\"] = null; -v6273.services = v6286; -const v6287 = []; -v6287.push(\\"2017-10-15\\"); -v6273.apiVersions = v6287; -v6273.serviceIdentifier = \\"pricing\\"; -v2.Pricing = v6273; -var v6288; -var v6289 = v299; -var v6290 = v31; -v6288 = function () { if (v6289 !== v6290) { - return v6289.apply(this, arguments); -} }; -const v6291 = Object.create(v309); -v6291.constructor = v6288; -const v6292 = {}; -const v6293 = []; -var v6294; -var v6295 = v31; -var v6296 = v6291; -v6294 = function EVENTS_BUBBLE(event) { var baseClass = v6295.getPrototypeOf(v6296); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6297 = {}; -v6297.constructor = v6294; -v6294.prototype = v6297; -v6293.push(v6294); -v6292.apiCallAttempt = v6293; -const v6298 = []; -var v6299; -v6299 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6280.getPrototypeOf(v6296); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6300 = {}; -v6300.constructor = v6299; -v6299.prototype = v6300; -v6298.push(v6299); -v6292.apiCall = v6298; -v6291._events = v6292; -v6291.MONITOR_EVENTS_BUBBLE = v6294; -v6291.CALL_EVENTS_BUBBLE = v6299; -v6288.prototype = v6291; -v6288.__super__ = v299; -const v6301 = {}; -v6301[\\"2017-10-25\\"] = null; -v6288.services = v6301; -const v6302 = []; -v6302.push(\\"2017-10-25\\"); -v6288.apiVersions = v6302; -v6288.serviceIdentifier = \\"costexplorer\\"; -v2.CostExplorer = v6288; -var v6303; -var v6304 = v299; -var v6305 = v31; -v6303 = function () { if (v6304 !== v6305) { - return v6304.apply(this, arguments); -} }; -const v6306 = Object.create(v309); -v6306.constructor = v6303; -const v6307 = {}; -const v6308 = []; -var v6309; -var v6310 = v31; -var v6311 = v6306; -v6309 = function EVENTS_BUBBLE(event) { var baseClass = v6310.getPrototypeOf(v6311); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6312 = {}; -v6312.constructor = v6309; -v6309.prototype = v6312; -v6308.push(v6309); -v6307.apiCallAttempt = v6308; -const v6313 = []; -var v6314; -v6314 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6295.getPrototypeOf(v6311); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6315 = {}; -v6315.constructor = v6314; -v6314.prototype = v6315; -v6313.push(v6314); -v6307.apiCall = v6313; -v6306._events = v6307; -v6306.MONITOR_EVENTS_BUBBLE = v6309; -v6306.CALL_EVENTS_BUBBLE = v6314; -v6303.prototype = v6306; -v6303.__super__ = v299; -const v6316 = {}; -v6316[\\"2017-08-29\\"] = null; -v6303.services = v6316; -const v6317 = []; -v6317.push(\\"2017-08-29\\"); -v6303.apiVersions = v6317; -v6303.serviceIdentifier = \\"mediaconvert\\"; -v2.MediaConvert = v6303; -var v6318; -var v6319 = v299; -var v6320 = v31; -v6318 = function () { if (v6319 !== v6320) { - return v6319.apply(this, arguments); -} }; -const v6321 = Object.create(v309); -v6321.constructor = v6318; -const v6322 = {}; -const v6323 = []; -var v6324; -var v6325 = v31; -var v6326 = v6321; -v6324 = function EVENTS_BUBBLE(event) { var baseClass = v6325.getPrototypeOf(v6326); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6327 = {}; -v6327.constructor = v6324; -v6324.prototype = v6327; -v6323.push(v6324); -v6322.apiCallAttempt = v6323; -const v6328 = []; -var v6329; -v6329 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6310.getPrototypeOf(v6326); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6330 = {}; -v6330.constructor = v6329; -v6329.prototype = v6330; -v6328.push(v6329); -v6322.apiCall = v6328; -v6321._events = v6322; -v6321.MONITOR_EVENTS_BUBBLE = v6324; -v6321.CALL_EVENTS_BUBBLE = v6329; -v6318.prototype = v6321; -v6318.__super__ = v299; -const v6331 = {}; -v6331[\\"2017-10-14\\"] = null; -v6318.services = v6331; -const v6332 = []; -v6332.push(\\"2017-10-14\\"); -v6318.apiVersions = v6332; -v6318.serviceIdentifier = \\"medialive\\"; -v2.MediaLive = v6318; -var v6333; -var v6334 = v299; -var v6335 = v31; -v6333 = function () { if (v6334 !== v6335) { - return v6334.apply(this, arguments); -} }; -const v6336 = Object.create(v309); -v6336.constructor = v6333; -const v6337 = {}; -const v6338 = []; -var v6339; -var v6340 = v31; -var v6341 = v6336; -v6339 = function EVENTS_BUBBLE(event) { var baseClass = v6340.getPrototypeOf(v6341); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6342 = {}; -v6342.constructor = v6339; -v6339.prototype = v6342; -v6338.push(v6339); -v6337.apiCallAttempt = v6338; -const v6343 = []; -var v6344; -v6344 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6325.getPrototypeOf(v6341); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6345 = {}; -v6345.constructor = v6344; -v6344.prototype = v6345; -v6343.push(v6344); -v6337.apiCall = v6343; -v6336._events = v6337; -v6336.MONITOR_EVENTS_BUBBLE = v6339; -v6336.CALL_EVENTS_BUBBLE = v6344; -v6333.prototype = v6336; -v6333.__super__ = v299; -const v6346 = {}; -v6346[\\"2017-10-12\\"] = null; -v6333.services = v6346; -const v6347 = []; -v6347.push(\\"2017-10-12\\"); -v6333.apiVersions = v6347; -v6333.serviceIdentifier = \\"mediapackage\\"; -v2.MediaPackage = v6333; -var v6348; -var v6349 = v299; -var v6350 = v31; -v6348 = function () { if (v6349 !== v6350) { - return v6349.apply(this, arguments); -} }; -const v6351 = Object.create(v309); -v6351.constructor = v6348; -const v6352 = {}; -const v6353 = []; -var v6354; -var v6355 = v31; -var v6356 = v6351; -v6354 = function EVENTS_BUBBLE(event) { var baseClass = v6355.getPrototypeOf(v6356); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6357 = {}; -v6357.constructor = v6354; -v6354.prototype = v6357; -v6353.push(v6354); -v6352.apiCallAttempt = v6353; -const v6358 = []; -var v6359; -v6359 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6340.getPrototypeOf(v6356); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6360 = {}; -v6360.constructor = v6359; -v6359.prototype = v6360; -v6358.push(v6359); -v6352.apiCall = v6358; -v6351._events = v6352; -v6351.MONITOR_EVENTS_BUBBLE = v6354; -v6351.CALL_EVENTS_BUBBLE = v6359; -v6348.prototype = v6351; -v6348.__super__ = v299; -const v6361 = {}; -v6361[\\"2017-09-01\\"] = null; -v6348.services = v6361; -const v6362 = []; -v6362.push(\\"2017-09-01\\"); -v6348.apiVersions = v6362; -v6348.serviceIdentifier = \\"mediastore\\"; -v2.MediaStore = v6348; -var v6363; -var v6364 = v299; -var v6365 = v31; -v6363 = function () { if (v6364 !== v6365) { - return v6364.apply(this, arguments); -} }; -const v6366 = Object.create(v309); -v6366.constructor = v6363; -const v6367 = {}; -const v6368 = []; -var v6369; -var v6370 = v31; -var v6371 = v6366; -v6369 = function EVENTS_BUBBLE(event) { var baseClass = v6370.getPrototypeOf(v6371); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6372 = {}; -v6372.constructor = v6369; -v6369.prototype = v6372; -v6368.push(v6369); -v6367.apiCallAttempt = v6368; -const v6373 = []; -var v6374; -v6374 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6355.getPrototypeOf(v6371); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6375 = {}; -v6375.constructor = v6374; -v6374.prototype = v6375; -v6373.push(v6374); -v6367.apiCall = v6373; -v6366._events = v6367; -v6366.MONITOR_EVENTS_BUBBLE = v6369; -v6366.CALL_EVENTS_BUBBLE = v6374; -v6363.prototype = v6366; -v6363.__super__ = v299; -const v6376 = {}; -v6376[\\"2017-09-01\\"] = null; -v6363.services = v6376; -const v6377 = []; -v6377.push(\\"2017-09-01\\"); -v6363.apiVersions = v6377; -v6363.serviceIdentifier = \\"mediastoredata\\"; -v2.MediaStoreData = v6363; -var v6378; -var v6379 = v299; -var v6380 = v31; -v6378 = function () { if (v6379 !== v6380) { - return v6379.apply(this, arguments); -} }; -const v6381 = Object.create(v309); -v6381.constructor = v6378; -const v6382 = {}; -const v6383 = []; -var v6384; -var v6385 = v31; -var v6386 = v6381; -v6384 = function EVENTS_BUBBLE(event) { var baseClass = v6385.getPrototypeOf(v6386); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6387 = {}; -v6387.constructor = v6384; -v6384.prototype = v6387; -v6383.push(v6384); -v6382.apiCallAttempt = v6383; -const v6388 = []; -var v6389; -v6389 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6370.getPrototypeOf(v6386); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6390 = {}; -v6390.constructor = v6389; -v6389.prototype = v6390; -v6388.push(v6389); -v6382.apiCall = v6388; -v6381._events = v6382; -v6381.MONITOR_EVENTS_BUBBLE = v6384; -v6381.CALL_EVENTS_BUBBLE = v6389; -v6378.prototype = v6381; -v6378.__super__ = v299; -const v6391 = {}; -v6391[\\"2017-07-25\\"] = null; -v6378.services = v6391; -const v6392 = []; -v6392.push(\\"2017-07-25\\"); -v6378.apiVersions = v6392; -v6378.serviceIdentifier = \\"appsync\\"; -v2.AppSync = v6378; -var v6393; -var v6394 = v299; -var v6395 = v31; -v6393 = function () { if (v6394 !== v6395) { - return v6394.apply(this, arguments); -} }; -const v6396 = Object.create(v309); -v6396.constructor = v6393; -const v6397 = {}; -const v6398 = []; -var v6399; -var v6400 = v31; -var v6401 = v6396; -v6399 = function EVENTS_BUBBLE(event) { var baseClass = v6400.getPrototypeOf(v6401); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6402 = {}; -v6402.constructor = v6399; -v6399.prototype = v6402; -v6398.push(v6399); -v6397.apiCallAttempt = v6398; -const v6403 = []; -var v6404; -v6404 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6385.getPrototypeOf(v6401); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6405 = {}; -v6405.constructor = v6404; -v6404.prototype = v6405; -v6403.push(v6404); -v6397.apiCall = v6403; -v6396._events = v6397; -v6396.MONITOR_EVENTS_BUBBLE = v6399; -v6396.CALL_EVENTS_BUBBLE = v6404; -v6393.prototype = v6396; -v6393.__super__ = v299; -const v6406 = {}; -v6406[\\"2017-11-28\\"] = null; -v6393.services = v6406; -const v6407 = []; -v6407.push(\\"2017-11-28\\"); -v6393.apiVersions = v6407; -v6393.serviceIdentifier = \\"guardduty\\"; -v2.GuardDuty = v6393; -var v6408; -var v6409 = v299; -var v6410 = v31; -v6408 = function () { if (v6409 !== v6410) { - return v6409.apply(this, arguments); -} }; -const v6411 = Object.create(v309); -v6411.constructor = v6408; -const v6412 = {}; -const v6413 = []; -var v6414; -var v6415 = v31; -var v6416 = v6411; -v6414 = function EVENTS_BUBBLE(event) { var baseClass = v6415.getPrototypeOf(v6416); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6417 = {}; -v6417.constructor = v6414; -v6414.prototype = v6417; -v6413.push(v6414); -v6412.apiCallAttempt = v6413; -const v6418 = []; -var v6419; -v6419 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6400.getPrototypeOf(v6416); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6420 = {}; -v6420.constructor = v6419; -v6419.prototype = v6420; -v6418.push(v6419); -v6412.apiCall = v6418; -v6411._events = v6412; -v6411.MONITOR_EVENTS_BUBBLE = v6414; -v6411.CALL_EVENTS_BUBBLE = v6419; -v6408.prototype = v6411; -v6408.__super__ = v299; -const v6421 = {}; -v6421[\\"2017-11-27\\"] = null; -v6408.services = v6421; -const v6422 = []; -v6422.push(\\"2017-11-27\\"); -v6408.apiVersions = v6422; -v6408.serviceIdentifier = \\"mq\\"; -v2.MQ = v6408; -var v6423; -var v6424 = v299; -var v6425 = v31; -v6423 = function () { if (v6424 !== v6425) { - return v6424.apply(this, arguments); -} }; -const v6426 = Object.create(v309); -v6426.constructor = v6423; -const v6427 = {}; -const v6428 = []; -var v6429; -var v6430 = v31; -var v6431 = v6426; -v6429 = function EVENTS_BUBBLE(event) { var baseClass = v6430.getPrototypeOf(v6431); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6432 = {}; -v6432.constructor = v6429; -v6429.prototype = v6432; -v6428.push(v6429); -v6427.apiCallAttempt = v6428; -const v6433 = []; -var v6434; -v6434 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6415.getPrototypeOf(v6431); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6435 = {}; -v6435.constructor = v6434; -v6434.prototype = v6435; -v6433.push(v6434); -v6427.apiCall = v6433; -v6426._events = v6427; -v6426.MONITOR_EVENTS_BUBBLE = v6429; -v6426.CALL_EVENTS_BUBBLE = v6434; -v6423.prototype = v6426; -v6423.__super__ = v299; -const v6436 = {}; -v6436[\\"2017-11-27\\"] = null; -v6423.services = v6436; -const v6437 = []; -v6437.push(\\"2017-11-27\\"); -v6423.apiVersions = v6437; -v6423.serviceIdentifier = \\"comprehend\\"; -v2.Comprehend = v6423; -var v6438; -var v6439 = v299; -var v6440 = v31; -v6438 = function () { if (v6439 !== v6440) { - return v6439.apply(this, arguments); -} }; -const v6441 = Object.create(v309); -v6441.constructor = v6438; -const v6442 = {}; -const v6443 = []; -var v6444; -var v6445 = v31; -var v6446 = v6441; -v6444 = function EVENTS_BUBBLE(event) { var baseClass = v6445.getPrototypeOf(v6446); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6447 = {}; -v6447.constructor = v6444; -v6444.prototype = v6447; -v6443.push(v6444); -v6442.apiCallAttempt = v6443; -const v6448 = []; -var v6449; -v6449 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6430.getPrototypeOf(v6446); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6450 = {}; -v6450.constructor = v6449; -v6449.prototype = v6450; -v6448.push(v6449); -v6442.apiCall = v6448; -v6441._events = v6442; -v6441.MONITOR_EVENTS_BUBBLE = v6444; -v6441.CALL_EVENTS_BUBBLE = v6449; -v6438.prototype = v6441; -v6438.__super__ = v299; -const v6451 = {}; -v6451[\\"2017-09-29\\"] = null; -v6438.services = v6451; -const v6452 = []; -v6452.push(\\"2017-09-29\\"); -v6438.apiVersions = v6452; -v6438.serviceIdentifier = \\"iotjobsdataplane\\"; -v2.IoTJobsDataPlane = v6438; -var v6453; -var v6454 = v299; -var v6455 = v31; -v6453 = function () { if (v6454 !== v6455) { - return v6454.apply(this, arguments); -} }; -const v6456 = Object.create(v309); -v6456.constructor = v6453; -const v6457 = {}; -const v6458 = []; -var v6459; -var v6460 = v31; -var v6461 = v6456; -v6459 = function EVENTS_BUBBLE(event) { var baseClass = v6460.getPrototypeOf(v6461); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6462 = {}; -v6462.constructor = v6459; -v6459.prototype = v6462; -v6458.push(v6459); -v6457.apiCallAttempt = v6458; -const v6463 = []; -var v6464; -v6464 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6445.getPrototypeOf(v6461); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6465 = {}; -v6465.constructor = v6464; -v6464.prototype = v6465; -v6463.push(v6464); -v6457.apiCall = v6463; -v6456._events = v6457; -v6456.MONITOR_EVENTS_BUBBLE = v6459; -v6456.CALL_EVENTS_BUBBLE = v6464; -v6453.prototype = v6456; -v6453.__super__ = v299; -const v6466 = {}; -v6466[\\"2017-09-30\\"] = null; -v6453.services = v6466; -const v6467 = []; -v6467.push(\\"2017-09-30\\"); -v6453.apiVersions = v6467; -v6453.serviceIdentifier = \\"kinesisvideoarchivedmedia\\"; -v2.KinesisVideoArchivedMedia = v6453; -var v6468; -var v6469 = v299; -var v6470 = v31; -v6468 = function () { if (v6469 !== v6470) { - return v6469.apply(this, arguments); -} }; -const v6471 = Object.create(v309); -v6471.constructor = v6468; -const v6472 = {}; -const v6473 = []; -var v6474; -var v6475 = v31; -var v6476 = v6471; -v6474 = function EVENTS_BUBBLE(event) { var baseClass = v6475.getPrototypeOf(v6476); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6477 = {}; -v6477.constructor = v6474; -v6474.prototype = v6477; -v6473.push(v6474); -v6472.apiCallAttempt = v6473; -const v6478 = []; -var v6479; -v6479 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6460.getPrototypeOf(v6476); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6480 = {}; -v6480.constructor = v6479; -v6479.prototype = v6480; -v6478.push(v6479); -v6472.apiCall = v6478; -v6471._events = v6472; -v6471.MONITOR_EVENTS_BUBBLE = v6474; -v6471.CALL_EVENTS_BUBBLE = v6479; -v6468.prototype = v6471; -v6468.__super__ = v299; -const v6481 = {}; -v6481[\\"2017-09-30\\"] = null; -v6468.services = v6481; -const v6482 = []; -v6482.push(\\"2017-09-30\\"); -v6468.apiVersions = v6482; -v6468.serviceIdentifier = \\"kinesisvideomedia\\"; -v2.KinesisVideoMedia = v6468; -var v6483; -var v6484 = v299; -var v6485 = v31; -v6483 = function () { if (v6484 !== v6485) { - return v6484.apply(this, arguments); -} }; -const v6486 = Object.create(v309); -v6486.constructor = v6483; -const v6487 = {}; -const v6488 = []; -var v6489; -var v6490 = v31; -var v6491 = v6486; -v6489 = function EVENTS_BUBBLE(event) { var baseClass = v6490.getPrototypeOf(v6491); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6492 = {}; -v6492.constructor = v6489; -v6489.prototype = v6492; -v6488.push(v6489); -v6487.apiCallAttempt = v6488; -const v6493 = []; -var v6494; -v6494 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6475.getPrototypeOf(v6491); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6495 = {}; -v6495.constructor = v6494; -v6494.prototype = v6495; -v6493.push(v6494); -v6487.apiCall = v6493; -v6486._events = v6487; -v6486.MONITOR_EVENTS_BUBBLE = v6489; -v6486.CALL_EVENTS_BUBBLE = v6494; -v6483.prototype = v6486; -v6483.__super__ = v299; -const v6496 = {}; -v6496[\\"2017-09-30\\"] = null; -v6483.services = v6496; -const v6497 = []; -v6497.push(\\"2017-09-30\\"); -v6483.apiVersions = v6497; -v6483.serviceIdentifier = \\"kinesisvideo\\"; -v2.KinesisVideo = v6483; -var v6498; -var v6499 = v299; -var v6500 = v31; -v6498 = function () { if (v6499 !== v6500) { - return v6499.apply(this, arguments); -} }; -const v6501 = Object.create(v309); -v6501.constructor = v6498; -const v6502 = {}; -const v6503 = []; -var v6504; -var v6505 = v31; -var v6506 = v6501; -v6504 = function EVENTS_BUBBLE(event) { var baseClass = v6505.getPrototypeOf(v6506); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6507 = {}; -v6507.constructor = v6504; -v6504.prototype = v6507; -v6503.push(v6504); -v6502.apiCallAttempt = v6503; -const v6508 = []; -var v6509; -v6509 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6490.getPrototypeOf(v6506); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6510 = {}; -v6510.constructor = v6509; -v6509.prototype = v6510; -v6508.push(v6509); -v6502.apiCall = v6508; -v6501._events = v6502; -v6501.MONITOR_EVENTS_BUBBLE = v6504; -v6501.CALL_EVENTS_BUBBLE = v6509; -v6498.prototype = v6501; -v6498.__super__ = v299; -const v6511 = {}; -v6511[\\"2017-05-13\\"] = null; -v6498.services = v6511; -const v6512 = []; -v6512.push(\\"2017-05-13\\"); -v6498.apiVersions = v6512; -v6498.serviceIdentifier = \\"sagemakerruntime\\"; -v2.SageMakerRuntime = v6498; -var v6513; -var v6514 = v299; -var v6515 = v31; -v6513 = function () { if (v6514 !== v6515) { - return v6514.apply(this, arguments); -} }; -const v6516 = Object.create(v309); -v6516.constructor = v6513; -const v6517 = {}; -const v6518 = []; -var v6519; -var v6520 = v31; -var v6521 = v6516; -v6519 = function EVENTS_BUBBLE(event) { var baseClass = v6520.getPrototypeOf(v6521); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6522 = {}; -v6522.constructor = v6519; -v6519.prototype = v6522; -v6518.push(v6519); -v6517.apiCallAttempt = v6518; -const v6523 = []; -var v6524; -v6524 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6505.getPrototypeOf(v6521); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6525 = {}; -v6525.constructor = v6524; -v6524.prototype = v6525; -v6523.push(v6524); -v6517.apiCall = v6523; -v6516._events = v6517; -v6516.MONITOR_EVENTS_BUBBLE = v6519; -v6516.CALL_EVENTS_BUBBLE = v6524; -v6513.prototype = v6516; -v6513.__super__ = v299; -const v6526 = {}; -v6526[\\"2017-07-24\\"] = null; -v6513.services = v6526; -const v6527 = []; -v6527.push(\\"2017-07-24\\"); -v6513.apiVersions = v6527; -v6513.serviceIdentifier = \\"sagemaker\\"; -v2.SageMaker = v6513; -var v6528; -var v6529 = v299; -var v6530 = v31; -v6528 = function () { if (v6529 !== v6530) { - return v6529.apply(this, arguments); -} }; -const v6531 = Object.create(v309); -v6531.constructor = v6528; -const v6532 = {}; -const v6533 = []; -var v6534; -var v6535 = v31; -var v6536 = v6531; -v6534 = function EVENTS_BUBBLE(event) { var baseClass = v6535.getPrototypeOf(v6536); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6537 = {}; -v6537.constructor = v6534; -v6534.prototype = v6537; -v6533.push(v6534); -v6532.apiCallAttempt = v6533; -const v6538 = []; -var v6539; -v6539 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6520.getPrototypeOf(v6536); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6540 = {}; -v6540.constructor = v6539; -v6539.prototype = v6540; -v6538.push(v6539); -v6532.apiCall = v6538; -v6531._events = v6532; -v6531.MONITOR_EVENTS_BUBBLE = v6534; -v6531.CALL_EVENTS_BUBBLE = v6539; -v6528.prototype = v6531; -v6528.__super__ = v299; -const v6541 = {}; -v6541[\\"2017-07-01\\"] = null; -v6528.services = v6541; -const v6542 = []; -v6542.push(\\"2017-07-01\\"); -v6528.apiVersions = v6542; -v6528.serviceIdentifier = \\"translate\\"; -v2.Translate = v6528; -var v6543; -var v6544 = v299; -var v6545 = v31; -v6543 = function () { if (v6544 !== v6545) { - return v6544.apply(this, arguments); -} }; -const v6546 = Object.create(v309); -v6546.constructor = v6543; -const v6547 = {}; -const v6548 = []; -var v6549; -var v6550 = v31; -var v6551 = v6546; -v6549 = function EVENTS_BUBBLE(event) { var baseClass = v6550.getPrototypeOf(v6551); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6552 = {}; -v6552.constructor = v6549; -v6549.prototype = v6552; -v6548.push(v6549); -v6547.apiCallAttempt = v6548; -const v6553 = []; -var v6554; -v6554 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6535.getPrototypeOf(v6551); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6555 = {}; -v6555.constructor = v6554; -v6554.prototype = v6555; -v6553.push(v6554); -v6547.apiCall = v6553; -v6546._events = v6547; -v6546.MONITOR_EVENTS_BUBBLE = v6549; -v6546.CALL_EVENTS_BUBBLE = v6554; -v6543.prototype = v6546; -v6543.__super__ = v299; -const v6556 = {}; -v6556[\\"2017-11-27\\"] = null; -v6543.services = v6556; -const v6557 = []; -v6557.push(\\"2017-11-27\\"); -v6543.apiVersions = v6557; -v6543.serviceIdentifier = \\"resourcegroups\\"; -v2.ResourceGroups = v6543; -var v6558; -var v6559 = v299; -var v6560 = v31; -v6558 = function () { if (v6559 !== v6560) { - return v6559.apply(this, arguments); -} }; -const v6561 = Object.create(v309); -v6561.constructor = v6558; -const v6562 = {}; -const v6563 = []; -var v6564; -var v6565 = v31; -var v6566 = v6561; -v6564 = function EVENTS_BUBBLE(event) { var baseClass = v6565.getPrototypeOf(v6566); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6567 = {}; -v6567.constructor = v6564; -v6564.prototype = v6567; -v6563.push(v6564); -v6562.apiCallAttempt = v6563; -const v6568 = []; -var v6569; -v6569 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6550.getPrototypeOf(v6566); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6570 = {}; -v6570.constructor = v6569; -v6569.prototype = v6570; -v6568.push(v6569); -v6562.apiCall = v6568; -v6561._events = v6562; -v6561.MONITOR_EVENTS_BUBBLE = v6564; -v6561.CALL_EVENTS_BUBBLE = v6569; -v6558.prototype = v6561; -v6558.__super__ = v299; -const v6571 = {}; -v6571[\\"2017-11-09\\"] = null; -v6558.services = v6571; -const v6572 = []; -v6572.push(\\"2017-11-09\\"); -v6558.apiVersions = v6572; -v6558.serviceIdentifier = \\"alexaforbusiness\\"; -v2.AlexaForBusiness = v6558; -var v6573; -var v6574 = v299; -var v6575 = v31; -v6573 = function () { if (v6574 !== v6575) { - return v6574.apply(this, arguments); -} }; -const v6576 = Object.create(v309); -v6576.constructor = v6573; -const v6577 = {}; -const v6578 = []; -var v6579; -var v6580 = v31; -var v6581 = v6576; -v6579 = function EVENTS_BUBBLE(event) { var baseClass = v6580.getPrototypeOf(v6581); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6582 = {}; -v6582.constructor = v6579; -v6579.prototype = v6582; -v6578.push(v6579); -v6577.apiCallAttempt = v6578; -const v6583 = []; -var v6584; -v6584 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6565.getPrototypeOf(v6581); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6585 = {}; -v6585.constructor = v6584; -v6584.prototype = v6585; -v6583.push(v6584); -v6577.apiCall = v6583; -v6576._events = v6577; -v6576.MONITOR_EVENTS_BUBBLE = v6579; -v6576.CALL_EVENTS_BUBBLE = v6584; -v6573.prototype = v6576; -v6573.__super__ = v299; -const v6586 = {}; -v6586[\\"2017-09-23\\"] = null; -v6573.services = v6586; -const v6587 = []; -v6587.push(\\"2017-09-23\\"); -v6573.apiVersions = v6587; -v6573.serviceIdentifier = \\"cloud9\\"; -v2.Cloud9 = v6573; -var v6588; -var v6589 = v299; -var v6590 = v31; -v6588 = function () { if (v6589 !== v6590) { - return v6589.apply(this, arguments); -} }; -const v6591 = Object.create(v309); -v6591.constructor = v6588; -const v6592 = {}; -const v6593 = []; -var v6594; -var v6595 = v31; -var v6596 = v6591; -v6594 = function EVENTS_BUBBLE(event) { var baseClass = v6595.getPrototypeOf(v6596); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6597 = {}; -v6597.constructor = v6594; -v6594.prototype = v6597; -v6593.push(v6594); -v6592.apiCallAttempt = v6593; -const v6598 = []; -var v6599; -v6599 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6580.getPrototypeOf(v6596); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6600 = {}; -v6600.constructor = v6599; -v6599.prototype = v6600; -v6598.push(v6599); -v6592.apiCall = v6598; -v6591._events = v6592; -v6591.MONITOR_EVENTS_BUBBLE = v6594; -v6591.CALL_EVENTS_BUBBLE = v6599; -v6588.prototype = v6591; -v6588.__super__ = v299; -const v6601 = {}; -v6601[\\"2017-09-08\\"] = null; -v6588.services = v6601; -const v6602 = []; -v6602.push(\\"2017-09-08\\"); -v6588.apiVersions = v6602; -v6588.serviceIdentifier = \\"serverlessapplicationrepository\\"; -v2.ServerlessApplicationRepository = v6588; -var v6603; -var v6604 = v299; -var v6605 = v31; -v6603 = function () { if (v6604 !== v6605) { - return v6604.apply(this, arguments); -} }; -const v6606 = Object.create(v309); -v6606.constructor = v6603; -const v6607 = {}; -const v6608 = []; -var v6609; -var v6610 = v31; -var v6611 = v6606; -v6609 = function EVENTS_BUBBLE(event) { var baseClass = v6610.getPrototypeOf(v6611); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6612 = {}; -v6612.constructor = v6609; -v6609.prototype = v6612; -v6608.push(v6609); -v6607.apiCallAttempt = v6608; -const v6613 = []; -var v6614; -v6614 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6595.getPrototypeOf(v6611); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6615 = {}; -v6615.constructor = v6614; -v6614.prototype = v6615; -v6613.push(v6614); -v6607.apiCall = v6613; -v6606._events = v6607; -v6606.MONITOR_EVENTS_BUBBLE = v6609; -v6606.CALL_EVENTS_BUBBLE = v6614; -v6603.prototype = v6606; -v6603.__super__ = v299; -const v6616 = {}; -v6616[\\"2017-03-14\\"] = null; -v6603.services = v6616; -const v6617 = []; -v6617.push(\\"2017-03-14\\"); -v6603.apiVersions = v6617; -v6603.serviceIdentifier = \\"servicediscovery\\"; -v2.ServiceDiscovery = v6603; -var v6618; -var v6619 = v299; -var v6620 = v31; -v6618 = function () { if (v6619 !== v6620) { - return v6619.apply(this, arguments); -} }; -const v6621 = Object.create(v309); -v6621.constructor = v6618; -const v6622 = {}; -const v6623 = []; -var v6624; -var v6625 = v31; -var v6626 = v6621; -v6624 = function EVENTS_BUBBLE(event) { var baseClass = v6625.getPrototypeOf(v6626); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6627 = {}; -v6627.constructor = v6624; -v6624.prototype = v6627; -v6623.push(v6624); -v6622.apiCallAttempt = v6623; -const v6628 = []; -var v6629; -v6629 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6610.getPrototypeOf(v6626); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6630 = {}; -v6630.constructor = v6629; -v6629.prototype = v6630; -v6628.push(v6629); -v6622.apiCall = v6628; -v6621._events = v6622; -v6621.MONITOR_EVENTS_BUBBLE = v6624; -v6621.CALL_EVENTS_BUBBLE = v6629; -v6618.prototype = v6621; -v6618.__super__ = v299; -const v6631 = {}; -v6631[\\"2017-10-01\\"] = null; -v6618.services = v6631; -const v6632 = []; -v6632.push(\\"2017-10-01\\"); -v6618.apiVersions = v6632; -v6618.serviceIdentifier = \\"workmail\\"; -v2.WorkMail = v6618; -var v6633; -var v6634 = v299; -var v6635 = v31; -v6633 = function () { if (v6634 !== v6635) { - return v6634.apply(this, arguments); -} }; -const v6636 = Object.create(v309); -v6636.constructor = v6633; -const v6637 = {}; -const v6638 = []; -var v6639; -var v6640 = v31; -var v6641 = v6636; -v6639 = function EVENTS_BUBBLE(event) { var baseClass = v6640.getPrototypeOf(v6641); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6642 = {}; -v6642.constructor = v6639; -v6639.prototype = v6642; -v6638.push(v6639); -v6637.apiCallAttempt = v6638; -const v6643 = []; -var v6644; -v6644 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6625.getPrototypeOf(v6641); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6645 = {}; -v6645.constructor = v6644; -v6644.prototype = v6645; -v6643.push(v6644); -v6637.apiCall = v6643; -v6636._events = v6637; -v6636.MONITOR_EVENTS_BUBBLE = v6639; -v6636.CALL_EVENTS_BUBBLE = v6644; -v6633.prototype = v6636; -v6633.__super__ = v299; -const v6646 = {}; -v6646[\\"2018-01-06\\"] = null; -v6633.services = v6646; -const v6647 = []; -v6647.push(\\"2018-01-06\\"); -v6633.apiVersions = v6647; -v6633.serviceIdentifier = \\"autoscalingplans\\"; -v2.AutoScalingPlans = v6633; -var v6648; -var v6649 = v299; -var v6650 = v31; -v6648 = function () { if (v6649 !== v6650) { - return v6649.apply(this, arguments); -} }; -const v6651 = Object.create(v309); -v6651.constructor = v6648; -const v6652 = {}; -const v6653 = []; -var v6654; -var v6655 = v31; -var v6656 = v6651; -v6654 = function EVENTS_BUBBLE(event) { var baseClass = v6655.getPrototypeOf(v6656); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6657 = {}; -v6657.constructor = v6654; -v6654.prototype = v6657; -v6653.push(v6654); -v6652.apiCallAttempt = v6653; -const v6658 = []; -var v6659; -v6659 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6640.getPrototypeOf(v6656); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6660 = {}; -v6660.constructor = v6659; -v6659.prototype = v6660; -v6658.push(v6659); -v6652.apiCall = v6658; -v6651._events = v6652; -v6651.MONITOR_EVENTS_BUBBLE = v6654; -v6651.CALL_EVENTS_BUBBLE = v6659; -v6648.prototype = v6651; -v6648.__super__ = v299; -const v6661 = {}; -v6661[\\"2017-10-26\\"] = null; -v6648.services = v6661; -const v6662 = []; -v6662.push(\\"2017-10-26\\"); -v6648.apiVersions = v6662; -v6648.serviceIdentifier = \\"transcribeservice\\"; -v2.TranscribeService = v6648; -var v6663; -var v6664 = v299; -var v6665 = v31; -v6663 = function () { if (v6664 !== v6665) { - return v6664.apply(this, arguments); -} }; -const v6666 = Object.create(v309); -v6666.constructor = v6663; -const v6667 = {}; -const v6668 = []; -var v6669; -var v6670 = v31; -var v6671 = v6666; -v6669 = function EVENTS_BUBBLE(event) { var baseClass = v6670.getPrototypeOf(v6671); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6672 = {}; -v6672.constructor = v6669; -v6669.prototype = v6672; -v6668.push(v6669); -v6667.apiCallAttempt = v6668; -const v6673 = []; -var v6674; -v6674 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6655.getPrototypeOf(v6671); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6675 = {}; -v6675.constructor = v6674; -v6674.prototype = v6675; -v6673.push(v6674); -v6667.apiCall = v6673; -v6666._events = v6667; -v6666.MONITOR_EVENTS_BUBBLE = v6669; -v6666.CALL_EVENTS_BUBBLE = v6674; -v6663.prototype = v6666; -v6663.__super__ = v299; -const v6676 = {}; -v6676[\\"2017-08-08\\"] = null; -v6663.services = v6676; -const v6677 = []; -v6677.push(\\"2017-08-08\\"); -v6663.apiVersions = v6677; -v6663.serviceIdentifier = \\"connect\\"; -v2.Connect = v6663; -var v6678; -var v6679 = v299; -var v6680 = v31; -v6678 = function () { if (v6679 !== v6680) { - return v6679.apply(this, arguments); -} }; -const v6681 = Object.create(v309); -v6681.constructor = v6678; -const v6682 = {}; -const v6683 = []; -var v6684; -var v6685 = v31; -var v6686 = v6681; -v6684 = function EVENTS_BUBBLE(event) { var baseClass = v6685.getPrototypeOf(v6686); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6687 = {}; -v6687.constructor = v6684; -v6684.prototype = v6687; -v6683.push(v6684); -v6682.apiCallAttempt = v6683; -const v6688 = []; -var v6689; -v6689 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6670.getPrototypeOf(v6686); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6690 = {}; -v6690.constructor = v6689; -v6689.prototype = v6690; -v6688.push(v6689); -v6682.apiCall = v6688; -v6681._events = v6682; -v6681.MONITOR_EVENTS_BUBBLE = v6684; -v6681.CALL_EVENTS_BUBBLE = v6689; -v6678.prototype = v6681; -v6678.__super__ = v299; -const v6691 = {}; -v6691[\\"2017-08-22\\"] = null; -v6678.services = v6691; -const v6692 = []; -v6692.push(\\"2017-08-22\\"); -v6678.apiVersions = v6692; -v6678.serviceIdentifier = \\"acmpca\\"; -v2.ACMPCA = v6678; -var v6693; -var v6694 = v299; -var v6695 = v31; -v6693 = function () { if (v6694 !== v6695) { - return v6694.apply(this, arguments); -} }; -const v6696 = Object.create(v309); -v6696.constructor = v6693; -const v6697 = {}; -const v6698 = []; -var v6699; -var v6700 = v31; -var v6701 = v6696; -v6699 = function EVENTS_BUBBLE(event) { var baseClass = v6700.getPrototypeOf(v6701); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6702 = {}; -v6702.constructor = v6699; -v6699.prototype = v6702; -v6698.push(v6699); -v6697.apiCallAttempt = v6698; -const v6703 = []; -var v6704; -v6704 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6685.getPrototypeOf(v6701); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6705 = {}; -v6705.constructor = v6704; -v6704.prototype = v6705; -v6703.push(v6704); -v6697.apiCall = v6703; -v6696._events = v6697; -v6696.MONITOR_EVENTS_BUBBLE = v6699; -v6696.CALL_EVENTS_BUBBLE = v6704; -v6693.prototype = v6696; -v6693.__super__ = v299; -const v6706 = {}; -v6706[\\"2018-01-01\\"] = null; -v6693.services = v6706; -const v6707 = []; -v6707.push(\\"2018-01-01\\"); -v6693.apiVersions = v6707; -v6693.serviceIdentifier = \\"fms\\"; -v2.FMS = v6693; -var v6708; -var v6709 = v299; -var v6710 = v31; -v6708 = function () { if (v6709 !== v6710) { - return v6709.apply(this, arguments); -} }; -const v6711 = Object.create(v309); -v6711.constructor = v6708; -const v6712 = {}; -const v6713 = []; -var v6714; -var v6715 = v31; -var v6716 = v6711; -v6714 = function EVENTS_BUBBLE(event) { var baseClass = v6715.getPrototypeOf(v6716); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6717 = {}; -v6717.constructor = v6714; -v6714.prototype = v6717; -v6713.push(v6714); -v6712.apiCallAttempt = v6713; -const v6718 = []; -var v6719; -v6719 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6700.getPrototypeOf(v6716); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6720 = {}; -v6720.constructor = v6719; -v6719.prototype = v6720; -v6718.push(v6719); -v6712.apiCall = v6718; -v6711._events = v6712; -v6711.MONITOR_EVENTS_BUBBLE = v6714; -v6711.CALL_EVENTS_BUBBLE = v6719; -v6708.prototype = v6711; -v6708.__super__ = v299; -const v6721 = {}; -v6721[\\"2017-10-17\\"] = null; -v6708.services = v6721; -const v6722 = []; -v6722.push(\\"2017-10-17\\"); -v6708.apiVersions = v6722; -v6708.serviceIdentifier = \\"secretsmanager\\"; -v2.SecretsManager = v6708; -var v6723; -var v6724 = v299; -var v6725 = v31; -v6723 = function () { if (v6724 !== v6725) { - return v6724.apply(this, arguments); -} }; -const v6726 = Object.create(v309); -v6726.constructor = v6723; -const v6727 = {}; -const v6728 = []; -var v6729; -var v6730 = v31; -var v6731 = v6726; -v6729 = function EVENTS_BUBBLE(event) { var baseClass = v6730.getPrototypeOf(v6731); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6732 = {}; -v6732.constructor = v6729; -v6729.prototype = v6732; -v6728.push(v6729); -v6727.apiCallAttempt = v6728; -const v6733 = []; -var v6734; -v6734 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6715.getPrototypeOf(v6731); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6735 = {}; -v6735.constructor = v6734; -v6734.prototype = v6735; -v6733.push(v6734); -v6727.apiCall = v6733; -v6726._events = v6727; -v6726.MONITOR_EVENTS_BUBBLE = v6729; -v6726.CALL_EVENTS_BUBBLE = v6734; -v6723.prototype = v6726; -v6723.__super__ = v299; -const v6736 = {}; -v6736[\\"2017-11-27\\"] = null; -v6723.services = v6736; -const v6737 = []; -v6737.push(\\"2017-11-27\\"); -v6723.apiVersions = v6737; -v6723.serviceIdentifier = \\"iotanalytics\\"; -v2.IoTAnalytics = v6723; -var v6738; -var v6739 = v299; -var v6740 = v31; -v6738 = function () { if (v6739 !== v6740) { - return v6739.apply(this, arguments); -} }; -const v6741 = Object.create(v309); -v6741.constructor = v6738; -const v6742 = {}; -const v6743 = []; -var v6744; -var v6745 = v31; -var v6746 = v6741; -v6744 = function EVENTS_BUBBLE(event) { var baseClass = v6745.getPrototypeOf(v6746); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6747 = {}; -v6747.constructor = v6744; -v6744.prototype = v6747; -v6743.push(v6744); -v6742.apiCallAttempt = v6743; -const v6748 = []; -var v6749; -v6749 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6730.getPrototypeOf(v6746); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6750 = {}; -v6750.constructor = v6749; -v6749.prototype = v6750; -v6748.push(v6749); -v6742.apiCall = v6748; -v6741._events = v6742; -v6741.MONITOR_EVENTS_BUBBLE = v6744; -v6741.CALL_EVENTS_BUBBLE = v6749; -v6738.prototype = v6741; -v6738.__super__ = v299; -const v6751 = {}; -v6751[\\"2018-05-14\\"] = null; -v6738.services = v6751; -const v6752 = []; -v6752.push(\\"2018-05-14\\"); -v6738.apiVersions = v6752; -v6738.serviceIdentifier = \\"iot1clickdevicesservice\\"; -v2.IoT1ClickDevicesService = v6738; -var v6753; -var v6754 = v299; -var v6755 = v31; -v6753 = function () { if (v6754 !== v6755) { - return v6754.apply(this, arguments); -} }; -const v6756 = Object.create(v309); -v6756.constructor = v6753; -const v6757 = {}; -const v6758 = []; -var v6759; -var v6760 = v31; -var v6761 = v6756; -v6759 = function EVENTS_BUBBLE(event) { var baseClass = v6760.getPrototypeOf(v6761); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6762 = {}; -v6762.constructor = v6759; -v6759.prototype = v6762; -v6758.push(v6759); -v6757.apiCallAttempt = v6758; -const v6763 = []; -var v6764; -v6764 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6745.getPrototypeOf(v6761); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6765 = {}; -v6765.constructor = v6764; -v6764.prototype = v6765; -v6763.push(v6764); -v6757.apiCall = v6763; -v6756._events = v6757; -v6756.MONITOR_EVENTS_BUBBLE = v6759; -v6756.CALL_EVENTS_BUBBLE = v6764; -v6753.prototype = v6756; -v6753.__super__ = v299; -const v6766 = {}; -v6766[\\"2018-05-14\\"] = null; -v6753.services = v6766; -const v6767 = []; -v6767.push(\\"2018-05-14\\"); -v6753.apiVersions = v6767; -v6753.serviceIdentifier = \\"iot1clickprojects\\"; -v2.IoT1ClickProjects = v6753; -var v6768; -var v6769 = v299; -var v6770 = v31; -v6768 = function () { if (v6769 !== v6770) { - return v6769.apply(this, arguments); -} }; -const v6771 = Object.create(v309); -v6771.constructor = v6768; -const v6772 = {}; -const v6773 = []; -var v6774; -var v6775 = v31; -var v6776 = v6771; -v6774 = function EVENTS_BUBBLE(event) { var baseClass = v6775.getPrototypeOf(v6776); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6777 = {}; -v6777.constructor = v6774; -v6774.prototype = v6777; -v6773.push(v6774); -v6772.apiCallAttempt = v6773; -const v6778 = []; -var v6779; -v6779 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6760.getPrototypeOf(v6776); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6780 = {}; -v6780.constructor = v6779; -v6779.prototype = v6780; -v6778.push(v6779); -v6772.apiCall = v6778; -v6771._events = v6772; -v6771.MONITOR_EVENTS_BUBBLE = v6774; -v6771.CALL_EVENTS_BUBBLE = v6779; -v6768.prototype = v6771; -v6768.__super__ = v299; -const v6781 = {}; -v6781[\\"2018-02-27\\"] = null; -v6768.services = v6781; -const v6782 = []; -v6782.push(\\"2018-02-27\\"); -v6768.apiVersions = v6782; -v6768.serviceIdentifier = \\"pi\\"; -v2.PI = v6768; -var v6783; -var v6784 = v299; -var v6785 = v31; -v6783 = function () { if (v6784 !== v6785) { - return v6784.apply(this, arguments); -} }; -const v6786 = Object.create(v309); -v6786.constructor = v6783; -const v6787 = {}; -const v6788 = []; -var v6789; -var v6790 = v31; -var v6791 = v6786; -v6789 = function EVENTS_BUBBLE(event) { var baseClass = v6790.getPrototypeOf(v6791); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6792 = {}; -v6792.constructor = v6789; -v6789.prototype = v6792; -v6788.push(v6789); -v6787.apiCallAttempt = v6788; -const v6793 = []; -var v6794; -v6794 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6775.getPrototypeOf(v6791); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6795 = {}; -v6795.constructor = v6794; -v6794.prototype = v6795; -v6793.push(v6794); -v6787.apiCall = v6793; -v6786._events = v6787; -v6786.MONITOR_EVENTS_BUBBLE = v6789; -v6786.CALL_EVENTS_BUBBLE = v6794; -var v6796; -const v6798 = []; -v6798.push(\\"createDBCluster\\", \\"copyDBClusterSnapshot\\"); -var v6797 = v6798; -var v6799 = v5419; -var v6800 = v6798; -v6796 = function setupRequestListeners(request) { if (v6797.indexOf(request.operation) !== -1 && this.config.params && this.config.params.SourceRegion && request.params && !request.params.SourceRegion) { - request.params.SourceRegion = this.config.params.SourceRegion; -} v6799.setupRequestListeners(this, request, v6800); }; -const v6801 = {}; -v6801.constructor = v6796; -v6796.prototype = v6801; -v6786.setupRequestListeners = v6796; -v6783.prototype = v6786; -v6783.__super__ = v299; -const v6802 = {}; -v6802[\\"2014-10-31\\"] = null; -v6783.services = v6802; -const v6803 = []; -v6803.push(\\"2014-10-31\\"); -v6783.apiVersions = v6803; -v6783.serviceIdentifier = \\"neptune\\"; -v2.Neptune = v6783; -var v6804; -var v6805 = v299; -var v6806 = v31; -v6804 = function () { if (v6805 !== v6806) { - return v6805.apply(this, arguments); -} }; -const v6807 = Object.create(v309); -v6807.constructor = v6804; -const v6808 = {}; -const v6809 = []; -var v6810; -var v6811 = v31; -var v6812 = v6807; -v6810 = function EVENTS_BUBBLE(event) { var baseClass = v6811.getPrototypeOf(v6812); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6813 = {}; -v6813.constructor = v6810; -v6810.prototype = v6813; -v6809.push(v6810); -v6808.apiCallAttempt = v6809; -const v6814 = []; -var v6815; -v6815 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6790.getPrototypeOf(v6812); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6816 = {}; -v6816.constructor = v6815; -v6815.prototype = v6816; -v6814.push(v6815); -v6808.apiCall = v6814; -v6807._events = v6808; -v6807.MONITOR_EVENTS_BUBBLE = v6810; -v6807.CALL_EVENTS_BUBBLE = v6815; -v6804.prototype = v6807; -v6804.__super__ = v299; -const v6817 = {}; -v6817[\\"2018-04-23\\"] = null; -v6804.services = v6817; -const v6818 = []; -v6818.push(\\"2018-04-23\\"); -v6804.apiVersions = v6818; -v6804.serviceIdentifier = \\"mediatailor\\"; -v2.MediaTailor = v6804; -var v6819; -var v6820 = v299; -var v6821 = v31; -v6819 = function () { if (v6820 !== v6821) { - return v6820.apply(this, arguments); -} }; -const v6822 = Object.create(v309); -v6822.constructor = v6819; -const v6823 = {}; -const v6824 = []; -var v6825; -var v6826 = v31; -var v6827 = v6822; -v6825 = function EVENTS_BUBBLE(event) { var baseClass = v6826.getPrototypeOf(v6827); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6828 = {}; -v6828.constructor = v6825; -v6825.prototype = v6828; -v6824.push(v6825); -v6823.apiCallAttempt = v6824; -const v6829 = []; -var v6830; -v6830 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6811.getPrototypeOf(v6827); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6831 = {}; -v6831.constructor = v6830; -v6830.prototype = v6831; -v6829.push(v6830); -v6823.apiCall = v6829; -v6822._events = v6823; -v6822.MONITOR_EVENTS_BUBBLE = v6825; -v6822.CALL_EVENTS_BUBBLE = v6830; -v6819.prototype = v6822; -v6819.__super__ = v299; -const v6832 = {}; -v6832[\\"2017-11-01\\"] = null; -v6819.services = v6832; -const v6833 = []; -v6833.push(\\"2017-11-01\\"); -v6819.apiVersions = v6833; -v6819.serviceIdentifier = \\"eks\\"; -v2.EKS = v6819; -var v6834; -var v6835 = v299; -var v6836 = v31; -v6834 = function () { if (v6835 !== v6836) { - return v6835.apply(this, arguments); -} }; -const v6837 = Object.create(v309); -v6837.constructor = v6834; -const v6838 = {}; -const v6839 = []; -var v6840; -var v6841 = v31; -var v6842 = v6837; -v6840 = function EVENTS_BUBBLE(event) { var baseClass = v6841.getPrototypeOf(v6842); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6843 = {}; -v6843.constructor = v6840; -v6840.prototype = v6843; -v6839.push(v6840); -v6838.apiCallAttempt = v6839; -const v6844 = []; -var v6845; -v6845 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6826.getPrototypeOf(v6842); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6846 = {}; -v6846.constructor = v6845; -v6845.prototype = v6846; -v6844.push(v6845); -v6838.apiCall = v6844; -v6837._events = v6838; -v6837.MONITOR_EVENTS_BUBBLE = v6840; -v6837.CALL_EVENTS_BUBBLE = v6845; -v6834.prototype = v6837; -v6834.__super__ = v299; -const v6847 = {}; -v6847[\\"2017-12-19\\"] = null; -v6834.services = v6847; -const v6848 = []; -v6848.push(\\"2017-12-19\\"); -v6834.apiVersions = v6848; -v6834.serviceIdentifier = \\"macie\\"; -v2.Macie = v6834; -var v6849; -var v6850 = v299; -var v6851 = v31; -v6849 = function () { if (v6850 !== v6851) { - return v6850.apply(this, arguments); -} }; -const v6852 = Object.create(v309); -v6852.constructor = v6849; -const v6853 = {}; -const v6854 = []; -var v6855; -var v6856 = v31; -var v6857 = v6852; -v6855 = function EVENTS_BUBBLE(event) { var baseClass = v6856.getPrototypeOf(v6857); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6858 = {}; -v6858.constructor = v6855; -v6855.prototype = v6858; -v6854.push(v6855); -v6853.apiCallAttempt = v6854; -const v6859 = []; -var v6860; -v6860 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6841.getPrototypeOf(v6857); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6861 = {}; -v6861.constructor = v6860; -v6860.prototype = v6861; -v6859.push(v6860); -v6853.apiCall = v6859; -v6852._events = v6853; -v6852.MONITOR_EVENTS_BUBBLE = v6855; -v6852.CALL_EVENTS_BUBBLE = v6860; -v6849.prototype = v6852; -v6849.__super__ = v299; -const v6862 = {}; -v6862[\\"2018-01-12\\"] = null; -v6849.services = v6862; -const v6863 = []; -v6863.push(\\"2018-01-12\\"); -v6849.apiVersions = v6863; -v6849.serviceIdentifier = \\"dlm\\"; -v2.DLM = v6849; -var v6864; -var v6865 = v299; -var v6866 = v31; -v6864 = function () { if (v6865 !== v6866) { - return v6865.apply(this, arguments); -} }; -const v6867 = Object.create(v309); -v6867.constructor = v6864; -const v6868 = {}; -const v6869 = []; -var v6870; -var v6871 = v31; -var v6872 = v6867; -v6870 = function EVENTS_BUBBLE(event) { var baseClass = v6871.getPrototypeOf(v6872); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6873 = {}; -v6873.constructor = v6870; -v6870.prototype = v6873; -v6869.push(v6870); -v6868.apiCallAttempt = v6869; -const v6874 = []; -var v6875; -v6875 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6856.getPrototypeOf(v6872); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6876 = {}; -v6876.constructor = v6875; -v6875.prototype = v6876; -v6874.push(v6875); -v6868.apiCall = v6874; -v6867._events = v6868; -v6867.MONITOR_EVENTS_BUBBLE = v6870; -v6867.CALL_EVENTS_BUBBLE = v6875; -v6864.prototype = v6867; -v6864.__super__ = v299; -const v6877 = {}; -v6877[\\"2017-08-25\\"] = null; -v6864.services = v6877; -const v6878 = []; -v6878.push(\\"2017-08-25\\"); -v6864.apiVersions = v6878; -v6864.serviceIdentifier = \\"signer\\"; -v2.Signer = v6864; -var v6879; -var v6880 = v299; -var v6881 = v31; -v6879 = function () { if (v6880 !== v6881) { - return v6880.apply(this, arguments); -} }; -const v6882 = Object.create(v309); -v6882.constructor = v6879; -const v6883 = {}; -const v6884 = []; -var v6885; -var v6886 = v31; -var v6887 = v6882; -v6885 = function EVENTS_BUBBLE(event) { var baseClass = v6886.getPrototypeOf(v6887); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6888 = {}; -v6888.constructor = v6885; -v6885.prototype = v6888; -v6884.push(v6885); -v6883.apiCallAttempt = v6884; -const v6889 = []; -var v6890; -v6890 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6871.getPrototypeOf(v6887); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6891 = {}; -v6891.constructor = v6890; -v6890.prototype = v6891; -v6889.push(v6890); -v6883.apiCall = v6889; -v6882._events = v6883; -v6882.MONITOR_EVENTS_BUBBLE = v6885; -v6882.CALL_EVENTS_BUBBLE = v6890; -v6879.prototype = v6882; -v6879.__super__ = v299; -const v6892 = {}; -v6892[\\"2018-05-01\\"] = null; -v6879.services = v6892; -const v6893 = []; -v6893.push(\\"2018-05-01\\"); -v6879.apiVersions = v6893; -v6879.serviceIdentifier = \\"chime\\"; -v2.Chime = v6879; -var v6894; -var v6895 = v299; -var v6896 = v31; -v6894 = function () { if (v6895 !== v6896) { - return v6895.apply(this, arguments); -} }; -const v6897 = Object.create(v309); -v6897.constructor = v6894; -const v6898 = {}; -const v6899 = []; -var v6900; -var v6901 = v31; -var v6902 = v6897; -v6900 = function EVENTS_BUBBLE(event) { var baseClass = v6901.getPrototypeOf(v6902); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6903 = {}; -v6903.constructor = v6900; -v6900.prototype = v6903; -v6899.push(v6900); -v6898.apiCallAttempt = v6899; -const v6904 = []; -var v6905; -v6905 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6886.getPrototypeOf(v6902); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6906 = {}; -v6906.constructor = v6905; -v6905.prototype = v6906; -v6904.push(v6905); -v6898.apiCall = v6904; -v6897._events = v6898; -v6897.MONITOR_EVENTS_BUBBLE = v6900; -v6897.CALL_EVENTS_BUBBLE = v6905; -v6894.prototype = v6897; -v6894.__super__ = v299; -const v6907 = {}; -v6907[\\"2018-07-26\\"] = null; -v6894.services = v6907; -const v6908 = []; -v6908.push(\\"2018-07-26\\"); -v6894.apiVersions = v6908; -v6894.serviceIdentifier = \\"pinpointemail\\"; -v2.PinpointEmail = v6894; -var v6909; -var v6910 = v299; -var v6911 = v31; -v6909 = function () { if (v6910 !== v6911) { - return v6910.apply(this, arguments); -} }; -const v6912 = Object.create(v309); -v6912.constructor = v6909; -const v6913 = {}; -const v6914 = []; -var v6915; -var v6916 = v31; -var v6917 = v6912; -v6915 = function EVENTS_BUBBLE(event) { var baseClass = v6916.getPrototypeOf(v6917); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6918 = {}; -v6918.constructor = v6915; -v6915.prototype = v6918; -v6914.push(v6915); -v6913.apiCallAttempt = v6914; -const v6919 = []; -var v6920; -v6920 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6901.getPrototypeOf(v6917); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6921 = {}; -v6921.constructor = v6920; -v6920.prototype = v6921; -v6919.push(v6920); -v6913.apiCall = v6919; -v6912._events = v6913; -v6912.MONITOR_EVENTS_BUBBLE = v6915; -v6912.CALL_EVENTS_BUBBLE = v6920; -v6909.prototype = v6912; -v6909.__super__ = v299; -const v6922 = {}; -v6922[\\"2018-01-04\\"] = null; -v6909.services = v6922; -const v6923 = []; -v6923.push(\\"2018-01-04\\"); -v6909.apiVersions = v6923; -v6909.serviceIdentifier = \\"ram\\"; -v2.RAM = v6909; -var v6924; -var v6925 = v299; -var v6926 = v31; -v6924 = function () { if (v6925 !== v6926) { - return v6925.apply(this, arguments); -} }; -const v6927 = Object.create(v309); -v6927.constructor = v6924; -const v6928 = {}; -const v6929 = []; -var v6930; -var v6931 = v31; -var v6932 = v6927; -v6930 = function EVENTS_BUBBLE(event) { var baseClass = v6931.getPrototypeOf(v6932); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6933 = {}; -v6933.constructor = v6930; -v6930.prototype = v6933; -v6929.push(v6930); -v6928.apiCallAttempt = v6929; -const v6934 = []; -var v6935; -v6935 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6916.getPrototypeOf(v6932); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6936 = {}; -v6936.constructor = v6935; -v6935.prototype = v6936; -v6934.push(v6935); -v6928.apiCall = v6934; -v6927._events = v6928; -v6927.MONITOR_EVENTS_BUBBLE = v6930; -v6927.CALL_EVENTS_BUBBLE = v6935; -v6924.prototype = v6927; -v6924.__super__ = v299; -const v6937 = {}; -v6937[\\"2018-04-01\\"] = null; -v6924.services = v6937; -const v6938 = []; -v6938.push(\\"2018-04-01\\"); -v6924.apiVersions = v6938; -v6924.serviceIdentifier = \\"route53resolver\\"; -v2.Route53Resolver = v6924; -var v6939; -var v6940 = v299; -var v6941 = v31; -v6939 = function () { if (v6940 !== v6941) { - return v6940.apply(this, arguments); -} }; -const v6942 = Object.create(v309); -v6942.constructor = v6939; -const v6943 = {}; -const v6944 = []; -var v6945; -var v6946 = v31; -var v6947 = v6942; -v6945 = function EVENTS_BUBBLE(event) { var baseClass = v6946.getPrototypeOf(v6947); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6948 = {}; -v6948.constructor = v6945; -v6945.prototype = v6948; -v6944.push(v6945); -v6943.apiCallAttempt = v6944; -const v6949 = []; -var v6950; -v6950 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6931.getPrototypeOf(v6947); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6951 = {}; -v6951.constructor = v6950; -v6950.prototype = v6951; -v6949.push(v6950); -v6943.apiCall = v6949; -v6942._events = v6943; -v6942.MONITOR_EVENTS_BUBBLE = v6945; -v6942.CALL_EVENTS_BUBBLE = v6950; -v6939.prototype = v6942; -v6939.__super__ = v299; -const v6952 = {}; -v6952[\\"2018-09-05\\"] = null; -v6939.services = v6952; -const v6953 = []; -v6953.push(\\"2018-09-05\\"); -v6939.apiVersions = v6953; -v6939.serviceIdentifier = \\"pinpointsmsvoice\\"; -v2.PinpointSMSVoice = v6939; -var v6954; -var v6955 = v299; -var v6956 = v31; -v6954 = function () { if (v6955 !== v6956) { - return v6955.apply(this, arguments); -} }; -const v6957 = Object.create(v309); -v6957.constructor = v6954; -const v6958 = {}; -const v6959 = []; -var v6960; -var v6961 = v31; -var v6962 = v6957; -v6960 = function EVENTS_BUBBLE(event) { var baseClass = v6961.getPrototypeOf(v6962); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6963 = {}; -v6963.constructor = v6960; -v6960.prototype = v6963; -v6959.push(v6960); -v6958.apiCallAttempt = v6959; -const v6964 = []; -var v6965; -v6965 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6946.getPrototypeOf(v6962); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6966 = {}; -v6966.constructor = v6965; -v6965.prototype = v6966; -v6964.push(v6965); -v6958.apiCall = v6964; -v6957._events = v6958; -v6957.MONITOR_EVENTS_BUBBLE = v6960; -v6957.CALL_EVENTS_BUBBLE = v6965; -v6954.prototype = v6957; -v6954.__super__ = v299; -const v6967 = {}; -v6967[\\"2018-04-01\\"] = null; -v6954.services = v6967; -const v6968 = []; -v6968.push(\\"2018-04-01\\"); -v6954.apiVersions = v6968; -v6954.serviceIdentifier = \\"quicksight\\"; -v2.QuickSight = v6954; -var v6969; -var v6970 = v299; -var v6971 = v31; -v6969 = function () { if (v6970 !== v6971) { - return v6970.apply(this, arguments); -} }; -const v6972 = Object.create(v309); -v6972.constructor = v6969; -const v6973 = {}; -const v6974 = []; -var v6975; -var v6976 = v31; -var v6977 = v6972; -v6975 = function EVENTS_BUBBLE(event) { var baseClass = v6976.getPrototypeOf(v6977); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6978 = {}; -v6978.constructor = v6975; -v6975.prototype = v6978; -v6974.push(v6975); -v6973.apiCallAttempt = v6974; -const v6979 = []; -var v6980; -v6980 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6961.getPrototypeOf(v6977); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6981 = {}; -v6981.constructor = v6980; -v6980.prototype = v6981; -v6979.push(v6980); -v6973.apiCall = v6979; -v6972._events = v6973; -v6972.MONITOR_EVENTS_BUBBLE = v6975; -v6972.CALL_EVENTS_BUBBLE = v6980; -var v6982; -v6982 = function retryableError(error) { if (error.code === \\"BadRequestException\\" && error.message && error.message.match(/^Communications link failure/) && error.statusCode === 400) { - return true; +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQytyWHN4WCxNQU1BO0FBTXhDLE1BTXRCLE1BQXFCLENBU0EsSUFJWCxFQUFTLENBSUEsUUFSRSxFQXJCeUM7QUE4Q0osT0FPakIsTUFBTyxDQU9BLE1BUFMsQ0FjQSxRQXJCQyxDQTlDSTtBQUFBO0NEcnNYdHhYO0FBQUEifQ" +`; + +exports[`instantiating the AWS SDK v3 1`] = ` +"var v0; +const v2 = require(\\"@aws-sdk/client-dynamodb\\",); +const v3 = v2.DynamoDBClient; +var v1 = v3; +v0 = () => { +const client=new v1({},) +return client.config.serviceId; } -else { - var _super = v309.retryableError; - return _super.call(this, error); -} }; -const v6983 = {}; -v6983.constructor = v6982; -v6982.prototype = v6983; -v6972.retryableError = v6982; -v6969.prototype = v6972; -v6969.__super__ = v299; -const v6984 = {}; -v6984[\\"2018-08-01\\"] = null; -v6969.services = v6984; -const v6985 = []; -v6985.push(\\"2018-08-01\\"); -v6969.apiVersions = v6985; -v6969.serviceIdentifier = \\"rdsdataservice\\"; -v2.RDSDataService = v6969; -var v6986; -var v6987 = v299; -var v6988 = v31; -v6986 = function () { if (v6987 !== v6988) { - return v6987.apply(this, arguments); -} }; -const v6989 = Object.create(v309); -v6989.constructor = v6986; -const v6990 = {}; -const v6991 = []; -var v6992; -var v6993 = v31; -var v6994 = v6989; -v6992 = function EVENTS_BUBBLE(event) { var baseClass = v6993.getPrototypeOf(v6994); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v6995 = {}; -v6995.constructor = v6992; -v6992.prototype = v6995; -v6991.push(v6992); -v6990.apiCallAttempt = v6991; -const v6996 = []; -var v6997; -v6997 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6976.getPrototypeOf(v6994); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v6998 = {}; -v6998.constructor = v6997; -v6997.prototype = v6998; -v6996.push(v6997); -v6990.apiCall = v6996; -v6989._events = v6990; -v6989.MONITOR_EVENTS_BUBBLE = v6992; -v6989.CALL_EVENTS_BUBBLE = v6997; -v6986.prototype = v6989; -v6986.__super__ = v299; -const v6999 = {}; -v6999[\\"2017-07-25\\"] = null; -v6986.services = v6999; -const v7000 = []; -v7000.push(\\"2017-07-25\\"); -v6986.apiVersions = v7000; -v6986.serviceIdentifier = \\"amplify\\"; -v2.Amplify = v6986; -var v7001; -var v7002 = v299; -var v7003 = v31; -v7001 = function () { if (v7002 !== v7003) { - return v7002.apply(this, arguments); -} }; -const v7004 = Object.create(v309); -v7004.constructor = v7001; -const v7005 = {}; -const v7006 = []; -var v7007; -var v7008 = v31; -var v7009 = v7004; -v7007 = function EVENTS_BUBBLE(event) { var baseClass = v7008.getPrototypeOf(v7009); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7010 = {}; -v7010.constructor = v7007; -v7007.prototype = v7010; -v7006.push(v7007); -v7005.apiCallAttempt = v7006; -const v7011 = []; -var v7012; -v7012 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v6993.getPrototypeOf(v7009); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7013 = {}; -v7013.constructor = v7012; -v7012.prototype = v7013; -v7011.push(v7012); -v7005.apiCall = v7011; -v7004._events = v7005; -v7004.MONITOR_EVENTS_BUBBLE = v7007; -v7004.CALL_EVENTS_BUBBLE = v7012; -v7001.prototype = v7004; -v7001.__super__ = v299; -const v7014 = {}; -v7014[\\"2018-11-09\\"] = null; -v7001.services = v7014; -const v7015 = []; -v7015.push(\\"2018-11-09\\"); -v7001.apiVersions = v7015; -v7001.serviceIdentifier = \\"datasync\\"; -v2.DataSync = v7001; -var v7016; -var v7017 = v299; -var v7018 = v31; -v7016 = function () { if (v7017 !== v7018) { - return v7017.apply(this, arguments); -} }; -const v7019 = Object.create(v309); -v7019.constructor = v7016; -const v7020 = {}; -const v7021 = []; -var v7022; -var v7023 = v31; -var v7024 = v7019; -v7022 = function EVENTS_BUBBLE(event) { var baseClass = v7023.getPrototypeOf(v7024); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7025 = {}; -v7025.constructor = v7022; -v7022.prototype = v7025; -v7021.push(v7022); -v7020.apiCallAttempt = v7021; -const v7026 = []; -var v7027; -v7027 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7008.getPrototypeOf(v7024); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7028 = {}; -v7028.constructor = v7027; -v7027.prototype = v7028; -v7026.push(v7027); -v7020.apiCall = v7026; -v7019._events = v7020; -v7019.MONITOR_EVENTS_BUBBLE = v7022; -v7019.CALL_EVENTS_BUBBLE = v7027; -v7016.prototype = v7019; -v7016.__super__ = v299; -const v7029 = {}; -v7029[\\"2018-06-29\\"] = null; -v7016.services = v7029; -const v7030 = []; -v7030.push(\\"2018-06-29\\"); -v7016.apiVersions = v7030; -v7016.serviceIdentifier = \\"robomaker\\"; -v2.RoboMaker = v7016; -var v7031; -var v7032 = v299; -var v7033 = v31; -v7031 = function () { if (v7032 !== v7033) { - return v7032.apply(this, arguments); -} }; -const v7034 = Object.create(v309); -v7034.constructor = v7031; -const v7035 = {}; -const v7036 = []; -var v7037; -var v7038 = v31; -var v7039 = v7034; -v7037 = function EVENTS_BUBBLE(event) { var baseClass = v7038.getPrototypeOf(v7039); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7040 = {}; -v7040.constructor = v7037; -v7037.prototype = v7040; -v7036.push(v7037); -v7035.apiCallAttempt = v7036; -const v7041 = []; -var v7042; -v7042 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7023.getPrototypeOf(v7039); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7043 = {}; -v7043.constructor = v7042; -v7042.prototype = v7043; -v7041.push(v7042); -v7035.apiCall = v7041; -v7034._events = v7035; -v7034.MONITOR_EVENTS_BUBBLE = v7037; -v7034.CALL_EVENTS_BUBBLE = v7042; -v7031.prototype = v7034; -v7031.__super__ = v299; -const v7044 = {}; -v7044[\\"2018-11-05\\"] = null; -v7031.services = v7044; -const v7045 = []; -v7045.push(\\"2018-11-05\\"); -v7031.apiVersions = v7045; -v7031.serviceIdentifier = \\"transfer\\"; -v2.Transfer = v7031; -var v7046; -var v7047 = v299; -var v7048 = v31; -v7046 = function () { if (v7047 !== v7048) { - return v7047.apply(this, arguments); -} }; -const v7049 = Object.create(v309); -v7049.constructor = v7046; -const v7050 = {}; -const v7051 = []; -var v7052; -var v7053 = v31; -var v7054 = v7049; -v7052 = function EVENTS_BUBBLE(event) { var baseClass = v7053.getPrototypeOf(v7054); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7055 = {}; -v7055.constructor = v7052; -v7052.prototype = v7055; -v7051.push(v7052); -v7050.apiCallAttempt = v7051; -const v7056 = []; -var v7057; -v7057 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7038.getPrototypeOf(v7054); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7058 = {}; -v7058.constructor = v7057; -v7057.prototype = v7058; -v7056.push(v7057); -v7050.apiCall = v7056; -v7049._events = v7050; -v7049.MONITOR_EVENTS_BUBBLE = v7052; -v7049.CALL_EVENTS_BUBBLE = v7057; -v7046.prototype = v7049; -v7046.__super__ = v299; -const v7059 = {}; -v7059[\\"2018-08-08\\"] = null; -v7046.services = v7059; -const v7060 = []; -v7060.push(\\"2018-08-08\\"); -v7046.apiVersions = v7060; -v7046.serviceIdentifier = \\"globalaccelerator\\"; -v2.GlobalAccelerator = v7046; -var v7061; -var v7062 = v299; -var v7063 = v31; -v7061 = function () { if (v7062 !== v7063) { - return v7062.apply(this, arguments); -} }; -const v7064 = Object.create(v309); -v7064.constructor = v7061; -const v7065 = {}; -const v7066 = []; -var v7067; -var v7068 = v31; -var v7069 = v7064; -v7067 = function EVENTS_BUBBLE(event) { var baseClass = v7068.getPrototypeOf(v7069); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7070 = {}; -v7070.constructor = v7067; -v7067.prototype = v7070; -v7066.push(v7067); -v7065.apiCallAttempt = v7066; -const v7071 = []; -var v7072; -v7072 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7053.getPrototypeOf(v7069); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7073 = {}; -v7073.constructor = v7072; -v7072.prototype = v7073; -v7071.push(v7072); -v7065.apiCall = v7071; -v7064._events = v7065; -v7064.MONITOR_EVENTS_BUBBLE = v7067; -v7064.CALL_EVENTS_BUBBLE = v7072; -v7061.prototype = v7064; -v7061.__super__ = v299; -const v7074 = {}; -v7074[\\"2018-10-30\\"] = null; -v7061.services = v7074; -const v7075 = []; -v7075.push(\\"2018-10-30\\"); -v7061.apiVersions = v7075; -v7061.serviceIdentifier = \\"comprehendmedical\\"; -v2.ComprehendMedical = v7061; -var v7076; -var v7077 = v299; -var v7078 = v31; -v7076 = function () { if (v7077 !== v7078) { - return v7077.apply(this, arguments); -} }; -const v7079 = Object.create(v309); -v7079.constructor = v7076; -const v7080 = {}; -const v7081 = []; -var v7082; -var v7083 = v31; -var v7084 = v7079; -v7082 = function EVENTS_BUBBLE(event) { var baseClass = v7083.getPrototypeOf(v7084); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7085 = {}; -v7085.constructor = v7082; -v7082.prototype = v7085; -v7081.push(v7082); -v7080.apiCallAttempt = v7081; -const v7086 = []; -var v7087; -v7087 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7068.getPrototypeOf(v7084); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7088 = {}; -v7088.constructor = v7087; -v7087.prototype = v7088; -v7086.push(v7087); -v7080.apiCall = v7086; -v7079._events = v7080; -v7079.MONITOR_EVENTS_BUBBLE = v7082; -v7079.CALL_EVENTS_BUBBLE = v7087; -v7076.prototype = v7079; -v7076.__super__ = v299; -const v7089 = {}; -v7089[\\"2018-05-23\\"] = null; -v7076.services = v7089; -const v7090 = []; -v7090.push(\\"2018-05-23\\"); -v7076.apiVersions = v7090; -v7076.serviceIdentifier = \\"kinesisanalyticsv2\\"; -v2.KinesisAnalyticsV2 = v7076; -var v7091; -var v7092 = v299; -var v7093 = v31; -v7091 = function () { if (v7092 !== v7093) { - return v7092.apply(this, arguments); -} }; -const v7094 = Object.create(v309); -v7094.constructor = v7091; -const v7095 = {}; -const v7096 = []; -var v7097; -var v7098 = v31; -var v7099 = v7094; -v7097 = function EVENTS_BUBBLE(event) { var baseClass = v7098.getPrototypeOf(v7099); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7100 = {}; -v7100.constructor = v7097; -v7097.prototype = v7100; -v7096.push(v7097); -v7095.apiCallAttempt = v7096; -const v7101 = []; -var v7102; -v7102 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7083.getPrototypeOf(v7099); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7103 = {}; -v7103.constructor = v7102; -v7102.prototype = v7103; -v7101.push(v7102); -v7095.apiCall = v7101; -v7094._events = v7095; -v7094.MONITOR_EVENTS_BUBBLE = v7097; -v7094.CALL_EVENTS_BUBBLE = v7102; -v7091.prototype = v7094; -v7091.__super__ = v299; -const v7104 = {}; -v7104[\\"2018-11-14\\"] = null; -v7091.services = v7104; -const v7105 = []; -v7105.push(\\"2018-11-14\\"); -v7091.apiVersions = v7105; -v7091.serviceIdentifier = \\"mediaconnect\\"; -v2.MediaConnect = v7091; -var v7106; -var v7107 = v299; -var v7108 = v31; -v7106 = function () { if (v7107 !== v7108) { - return v7107.apply(this, arguments); -} }; -const v7109 = Object.create(v309); -v7109.constructor = v7106; -const v7110 = {}; -const v7111 = []; -var v7112; -var v7113 = v31; -var v7114 = v7109; -v7112 = function EVENTS_BUBBLE(event) { var baseClass = v7113.getPrototypeOf(v7114); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7115 = {}; -v7115.constructor = v7112; -v7112.prototype = v7115; -v7111.push(v7112); -v7110.apiCallAttempt = v7111; -const v7116 = []; -var v7117; -v7117 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7098.getPrototypeOf(v7114); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7118 = {}; -v7118.constructor = v7117; -v7117.prototype = v7118; -v7116.push(v7117); -v7110.apiCall = v7116; -v7109._events = v7110; -v7109.MONITOR_EVENTS_BUBBLE = v7112; -v7109.CALL_EVENTS_BUBBLE = v7117; -v7106.prototype = v7109; -v7106.__super__ = v299; -const v7119 = {}; -v7119[\\"2018-03-01\\"] = null; -v7106.services = v7119; -const v7120 = []; -v7120.push(\\"2018-03-01\\"); -v7106.apiVersions = v7120; -v7106.serviceIdentifier = \\"fsx\\"; -v2.FSx = v7106; -var v7121; -var v7122 = v299; -var v7123 = v31; -v7121 = function () { if (v7122 !== v7123) { - return v7122.apply(this, arguments); -} }; -const v7124 = Object.create(v309); -v7124.constructor = v7121; -const v7125 = {}; -const v7126 = []; -var v7127; -var v7128 = v31; -var v7129 = v7124; -v7127 = function EVENTS_BUBBLE(event) { var baseClass = v7128.getPrototypeOf(v7129); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7130 = {}; -v7130.constructor = v7127; -v7127.prototype = v7130; -v7126.push(v7127); -v7125.apiCallAttempt = v7126; -const v7131 = []; -var v7132; -v7132 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7113.getPrototypeOf(v7129); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7133 = {}; -v7133.constructor = v7132; -v7132.prototype = v7133; -v7131.push(v7132); -v7125.apiCall = v7131; -v7124._events = v7125; -v7124.MONITOR_EVENTS_BUBBLE = v7127; -v7124.CALL_EVENTS_BUBBLE = v7132; -v7121.prototype = v7124; -v7121.__super__ = v299; -const v7134 = {}; -v7134[\\"2018-10-26\\"] = null; -v7121.services = v7134; -const v7135 = []; -v7135.push(\\"2018-10-26\\"); -v7121.apiVersions = v7135; -v7121.serviceIdentifier = \\"securityhub\\"; -v2.SecurityHub = v7121; -var v7136; -var v7137 = v299; -var v7138 = v31; -v7136 = function () { if (v7137 !== v7138) { - return v7137.apply(this, arguments); -} }; -const v7139 = Object.create(v309); -v7139.constructor = v7136; -const v7140 = {}; -const v7141 = []; -var v7142; -var v7143 = v31; -var v7144 = v7139; -v7142 = function EVENTS_BUBBLE(event) { var baseClass = v7143.getPrototypeOf(v7144); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7145 = {}; -v7145.constructor = v7142; -v7142.prototype = v7145; -v7141.push(v7142); -v7140.apiCallAttempt = v7141; -const v7146 = []; -var v7147; -v7147 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7128.getPrototypeOf(v7144); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7148 = {}; -v7148.constructor = v7147; -v7147.prototype = v7148; -v7146.push(v7147); -v7140.apiCall = v7146; -v7139._events = v7140; -v7139.MONITOR_EVENTS_BUBBLE = v7142; -v7139.CALL_EVENTS_BUBBLE = v7147; -v7136.prototype = v7139; -v7136.__super__ = v299; -const v7149 = {}; -v7149[\\"2018-10-01\\"] = null; -v7149[\\"2018-10-01*\\"] = null; -v7149[\\"2019-01-25\\"] = null; -v7136.services = v7149; -const v7150 = []; -v7150.push(\\"2018-10-01\\", \\"2018-10-01*\\", \\"2019-01-25\\"); -v7136.apiVersions = v7150; -v7136.serviceIdentifier = \\"appmesh\\"; -v2.AppMesh = v7136; -var v7151; -var v7152 = v299; -var v7153 = v31; -v7151 = function () { if (v7152 !== v7153) { - return v7152.apply(this, arguments); -} }; -const v7154 = Object.create(v309); -v7154.constructor = v7151; -const v7155 = {}; -const v7156 = []; -var v7157; -var v7158 = v31; -var v7159 = v7154; -v7157 = function EVENTS_BUBBLE(event) { var baseClass = v7158.getPrototypeOf(v7159); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7160 = {}; -v7160.constructor = v7157; -v7157.prototype = v7160; -v7156.push(v7157); -v7155.apiCallAttempt = v7156; -const v7161 = []; -var v7162; -v7162 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7143.getPrototypeOf(v7159); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7163 = {}; -v7163.constructor = v7162; -v7162.prototype = v7163; -v7161.push(v7162); -v7155.apiCall = v7161; -v7154._events = v7155; -v7154.MONITOR_EVENTS_BUBBLE = v7157; -v7154.CALL_EVENTS_BUBBLE = v7162; -v7151.prototype = v7154; -v7151.__super__ = v299; -const v7164 = {}; -v7164[\\"2018-08-01\\"] = null; -v7151.services = v7164; -const v7165 = []; -v7165.push(\\"2018-08-01\\"); -v7151.apiVersions = v7165; -v7151.serviceIdentifier = \\"licensemanager\\"; -v2.LicenseManager = v7151; -var v7166; -var v7167 = v299; -var v7168 = v31; -v7166 = function () { if (v7167 !== v7168) { - return v7167.apply(this, arguments); -} }; -const v7169 = Object.create(v309); -v7169.constructor = v7166; -const v7170 = {}; -const v7171 = []; -var v7172; -var v7173 = v31; -var v7174 = v7169; -v7172 = function EVENTS_BUBBLE(event) { var baseClass = v7173.getPrototypeOf(v7174); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7175 = {}; -v7175.constructor = v7172; -v7172.prototype = v7175; -v7171.push(v7172); -v7170.apiCallAttempt = v7171; -const v7176 = []; -var v7177; -v7177 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7158.getPrototypeOf(v7174); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7178 = {}; -v7178.constructor = v7177; -v7177.prototype = v7178; -v7176.push(v7177); -v7170.apiCall = v7176; -v7169._events = v7170; -v7169.MONITOR_EVENTS_BUBBLE = v7172; -v7169.CALL_EVENTS_BUBBLE = v7177; -v7166.prototype = v7169; -v7166.__super__ = v299; -const v7179 = {}; -v7179[\\"2018-11-14\\"] = null; -v7166.services = v7179; -const v7180 = []; -v7180.push(\\"2018-11-14\\"); -v7166.apiVersions = v7180; -v7166.serviceIdentifier = \\"kafka\\"; -v2.Kafka = v7166; -var v7181; -var v7182 = v299; -var v7183 = v31; -v7181 = function () { if (v7182 !== v7183) { - return v7182.apply(this, arguments); -} }; -const v7184 = Object.create(v309); -v7184.constructor = v7181; -const v7185 = {}; -const v7186 = []; -var v7187; -var v7188 = v31; -var v7189 = v7184; -v7187 = function EVENTS_BUBBLE(event) { var baseClass = v7188.getPrototypeOf(v7189); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7190 = {}; -v7190.constructor = v7187; -v7187.prototype = v7190; -v7186.push(v7187); -v7185.apiCallAttempt = v7186; -const v7191 = []; -var v7192; -v7192 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7173.getPrototypeOf(v7189); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7193 = {}; -v7193.constructor = v7192; -v7192.prototype = v7193; -v7191.push(v7192); -v7185.apiCall = v7191; -v7184._events = v7185; -v7184.MONITOR_EVENTS_BUBBLE = v7187; -v7184.CALL_EVENTS_BUBBLE = v7192; -v7181.prototype = v7184; -v7181.__super__ = v299; -const v7194 = {}; -v7194[\\"2018-11-29\\"] = null; -v7181.services = v7194; -const v7195 = []; -v7195.push(\\"2018-11-29\\"); -v7181.apiVersions = v7195; -v7181.serviceIdentifier = \\"apigatewaymanagementapi\\"; -v2.ApiGatewayManagementApi = v7181; -var v7196; -var v7197 = v299; -var v7198 = v31; -v7196 = function () { if (v7197 !== v7198) { - return v7197.apply(this, arguments); -} }; -const v7199 = Object.create(v309); -v7199.constructor = v7196; -const v7200 = {}; -const v7201 = []; -var v7202; -var v7203 = v31; -var v7204 = v7199; -v7202 = function EVENTS_BUBBLE(event) { var baseClass = v7203.getPrototypeOf(v7204); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7205 = {}; -v7205.constructor = v7202; -v7202.prototype = v7205; -v7201.push(v7202); -v7200.apiCallAttempt = v7201; -const v7206 = []; -var v7207; -v7207 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7188.getPrototypeOf(v7204); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7208 = {}; -v7208.constructor = v7207; -v7207.prototype = v7208; -v7206.push(v7207); -v7200.apiCall = v7206; -v7199._events = v7200; -v7199.MONITOR_EVENTS_BUBBLE = v7202; -v7199.CALL_EVENTS_BUBBLE = v7207; -v7196.prototype = v7199; -v7196.__super__ = v299; -const v7209 = {}; -v7209[\\"2018-11-29\\"] = null; -v7196.services = v7209; -const v7210 = []; -v7210.push(\\"2018-11-29\\"); -v7196.apiVersions = v7210; -v7196.serviceIdentifier = \\"apigatewayv2\\"; -v2.ApiGatewayV2 = v7196; -var v7211; -var v7212 = v299; -var v7213 = v31; -v7211 = function () { if (v7212 !== v7213) { - return v7212.apply(this, arguments); -} }; -const v7214 = Object.create(v309); -v7214.constructor = v7211; -const v7215 = {}; -const v7216 = []; -var v7217; -var v7218 = v31; -var v7219 = v7214; -v7217 = function EVENTS_BUBBLE(event) { var baseClass = v7218.getPrototypeOf(v7219); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7220 = {}; -v7220.constructor = v7217; -v7217.prototype = v7220; -v7216.push(v7217); -v7215.apiCallAttempt = v7216; -const v7221 = []; -var v7222; -v7222 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7203.getPrototypeOf(v7219); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7223 = {}; -v7223.constructor = v7222; -v7222.prototype = v7223; -v7221.push(v7222); -v7215.apiCall = v7221; -v7214._events = v7215; -v7214.MONITOR_EVENTS_BUBBLE = v7217; -v7214.CALL_EVENTS_BUBBLE = v7222; -var v7224; -const v7226 = []; -v7226.push(\\"createDBCluster\\", \\"copyDBClusterSnapshot\\"); -var v7225 = v7226; -var v7227 = v5419; -var v7228 = v7226; -v7224 = function setupRequestListeners(request) { if (v7225.indexOf(request.operation) !== -1 && this.config.params && this.config.params.SourceRegion && request.params && !request.params.SourceRegion) { - request.params.SourceRegion = this.config.params.SourceRegion; -} v7227.setupRequestListeners(this, request, v7228); }; -const v7229 = {}; -v7229.constructor = v7224; -v7224.prototype = v7229; -v7214.setupRequestListeners = v7224; -v7211.prototype = v7214; -v7211.__super__ = v299; -const v7230 = {}; -v7230[\\"2014-10-31\\"] = null; -v7211.services = v7230; -const v7231 = []; -v7231.push(\\"2014-10-31\\"); -v7211.apiVersions = v7231; -v7211.serviceIdentifier = \\"docdb\\"; -v2.DocDB = v7211; -var v7232; -var v7233 = v299; -var v7234 = v31; -v7232 = function () { if (v7233 !== v7234) { - return v7233.apply(this, arguments); -} }; -const v7235 = Object.create(v309); -v7235.constructor = v7232; -const v7236 = {}; -const v7237 = []; -var v7238; -var v7239 = v31; -var v7240 = v7235; -v7238 = function EVENTS_BUBBLE(event) { var baseClass = v7239.getPrototypeOf(v7240); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7241 = {}; -v7241.constructor = v7238; -v7238.prototype = v7241; -v7237.push(v7238); -v7236.apiCallAttempt = v7237; -const v7242 = []; -var v7243; -v7243 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7218.getPrototypeOf(v7240); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7244 = {}; -v7244.constructor = v7243; -v7243.prototype = v7244; -v7242.push(v7243); -v7236.apiCall = v7242; -v7235._events = v7236; -v7235.MONITOR_EVENTS_BUBBLE = v7238; -v7235.CALL_EVENTS_BUBBLE = v7243; -v7232.prototype = v7235; -v7232.__super__ = v299; -const v7245 = {}; -v7245[\\"2018-11-15\\"] = null; -v7232.services = v7245; -const v7246 = []; -v7246.push(\\"2018-11-15\\"); -v7232.apiVersions = v7246; -v7232.serviceIdentifier = \\"backup\\"; -v2.Backup = v7232; -var v7247; -var v7248 = v299; -var v7249 = v31; -v7247 = function () { if (v7248 !== v7249) { - return v7248.apply(this, arguments); -} }; -const v7250 = Object.create(v309); -v7250.constructor = v7247; -const v7251 = {}; -const v7252 = []; -var v7253; -var v7254 = v31; -var v7255 = v7250; -v7253 = function EVENTS_BUBBLE(event) { var baseClass = v7254.getPrototypeOf(v7255); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7256 = {}; -v7256.constructor = v7253; -v7253.prototype = v7256; -v7252.push(v7253); -v7251.apiCallAttempt = v7252; -const v7257 = []; -var v7258; -v7258 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7239.getPrototypeOf(v7255); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7259 = {}; -v7259.constructor = v7258; -v7258.prototype = v7259; -v7257.push(v7258); -v7251.apiCall = v7257; -v7250._events = v7251; -v7250.MONITOR_EVENTS_BUBBLE = v7253; -v7250.CALL_EVENTS_BUBBLE = v7258; -v7247.prototype = v7250; -v7247.__super__ = v299; -const v7260 = {}; -v7260[\\"2018-09-25\\"] = null; -v7247.services = v7260; -const v7261 = []; -v7261.push(\\"2018-09-25\\"); -v7247.apiVersions = v7261; -v7247.serviceIdentifier = \\"worklink\\"; -v2.WorkLink = v7247; -var v7262; -var v7263 = v299; -var v7264 = v31; -v7262 = function () { if (v7263 !== v7264) { - return v7263.apply(this, arguments); -} }; -const v7265 = Object.create(v309); -v7265.constructor = v7262; -const v7266 = {}; -const v7267 = []; -var v7268; -var v7269 = v31; -var v7270 = v7265; -v7268 = function EVENTS_BUBBLE(event) { var baseClass = v7269.getPrototypeOf(v7270); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7271 = {}; -v7271.constructor = v7268; -v7268.prototype = v7271; -v7267.push(v7268); -v7266.apiCallAttempt = v7267; -const v7272 = []; -var v7273; -v7273 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7254.getPrototypeOf(v7270); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7274 = {}; -v7274.constructor = v7273; -v7273.prototype = v7274; -v7272.push(v7273); -v7266.apiCall = v7272; -v7265._events = v7266; -v7265.MONITOR_EVENTS_BUBBLE = v7268; -v7265.CALL_EVENTS_BUBBLE = v7273; -v7262.prototype = v7265; -v7262.__super__ = v299; -const v7275 = {}; -v7275[\\"2018-06-27\\"] = null; -v7262.services = v7275; -const v7276 = []; -v7276.push(\\"2018-06-27\\"); -v7262.apiVersions = v7276; -v7262.serviceIdentifier = \\"textract\\"; -v2.Textract = v7262; -var v7277; -var v7278 = v299; -var v7279 = v31; -v7277 = function () { if (v7278 !== v7279) { - return v7278.apply(this, arguments); -} }; -const v7280 = Object.create(v309); -v7280.constructor = v7277; -const v7281 = {}; -const v7282 = []; -var v7283; -var v7284 = v31; -var v7285 = v7280; -v7283 = function EVENTS_BUBBLE(event) { var baseClass = v7284.getPrototypeOf(v7285); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7286 = {}; -v7286.constructor = v7283; -v7283.prototype = v7286; -v7282.push(v7283); -v7281.apiCallAttempt = v7282; -const v7287 = []; -var v7288; -v7288 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7269.getPrototypeOf(v7285); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7289 = {}; -v7289.constructor = v7288; -v7288.prototype = v7289; -v7287.push(v7288); -v7281.apiCall = v7287; -v7280._events = v7281; -v7280.MONITOR_EVENTS_BUBBLE = v7283; -v7280.CALL_EVENTS_BUBBLE = v7288; -v7277.prototype = v7280; -v7277.__super__ = v299; -const v7290 = {}; -v7290[\\"2018-09-24\\"] = null; -v7277.services = v7290; -const v7291 = []; -v7291.push(\\"2018-09-24\\"); -v7277.apiVersions = v7291; -v7277.serviceIdentifier = \\"managedblockchain\\"; -v2.ManagedBlockchain = v7277; -var v7292; -var v7293 = v299; -var v7294 = v31; -v7292 = function () { if (v7293 !== v7294) { - return v7293.apply(this, arguments); -} }; -const v7295 = Object.create(v309); -v7295.constructor = v7292; -const v7296 = {}; -const v7297 = []; -var v7298; -var v7299 = v31; -var v7300 = v7295; -v7298 = function EVENTS_BUBBLE(event) { var baseClass = v7299.getPrototypeOf(v7300); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7301 = {}; -v7301.constructor = v7298; -v7298.prototype = v7301; -v7297.push(v7298); -v7296.apiCallAttempt = v7297; -const v7302 = []; -var v7303; -v7303 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7284.getPrototypeOf(v7300); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7304 = {}; -v7304.constructor = v7303; -v7303.prototype = v7304; -v7302.push(v7303); -v7296.apiCall = v7302; -v7295._events = v7296; -v7295.MONITOR_EVENTS_BUBBLE = v7298; -v7295.CALL_EVENTS_BUBBLE = v7303; -v7292.prototype = v7295; -v7292.__super__ = v299; -const v7305 = {}; -v7305[\\"2018-11-07\\"] = null; -v7292.services = v7305; -const v7306 = []; -v7306.push(\\"2018-11-07\\"); -v7292.apiVersions = v7306; -v7292.serviceIdentifier = \\"mediapackagevod\\"; -v2.MediaPackageVod = v7292; -var v7307; -var v7308 = v299; -var v7309 = v31; -v7307 = function () { if (v7308 !== v7309) { - return v7308.apply(this, arguments); -} }; -const v7310 = Object.create(v309); -v7310.constructor = v7307; -const v7311 = {}; -const v7312 = []; -var v7313; -var v7314 = v31; -var v7315 = v7310; -v7313 = function EVENTS_BUBBLE(event) { var baseClass = v7314.getPrototypeOf(v7315); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7316 = {}; -v7316.constructor = v7313; -v7313.prototype = v7316; -v7312.push(v7313); -v7311.apiCallAttempt = v7312; -const v7317 = []; -var v7318; -v7318 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7299.getPrototypeOf(v7315); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7319 = {}; -v7319.constructor = v7318; -v7318.prototype = v7319; -v7317.push(v7318); -v7311.apiCall = v7317; -v7310._events = v7311; -v7310.MONITOR_EVENTS_BUBBLE = v7313; -v7310.CALL_EVENTS_BUBBLE = v7318; -v7307.prototype = v7310; -v7307.__super__ = v299; -const v7320 = {}; -v7320[\\"2019-05-23\\"] = null; -v7307.services = v7320; -const v7321 = []; -v7321.push(\\"2019-05-23\\"); -v7307.apiVersions = v7321; -v7307.serviceIdentifier = \\"groundstation\\"; -v2.GroundStation = v7307; -var v7322; -var v7323 = v299; -var v7324 = v31; -v7322 = function () { if (v7323 !== v7324) { - return v7323.apply(this, arguments); -} }; -const v7325 = Object.create(v309); -v7325.constructor = v7322; -const v7326 = {}; -const v7327 = []; -var v7328; -var v7329 = v31; -var v7330 = v7325; -v7328 = function EVENTS_BUBBLE(event) { var baseClass = v7329.getPrototypeOf(v7330); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7331 = {}; -v7331.constructor = v7328; -v7328.prototype = v7331; -v7327.push(v7328); -v7326.apiCallAttempt = v7327; -const v7332 = []; -var v7333; -v7333 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7314.getPrototypeOf(v7330); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7334 = {}; -v7334.constructor = v7333; -v7333.prototype = v7334; -v7332.push(v7333); -v7326.apiCall = v7332; -v7325._events = v7326; -v7325.MONITOR_EVENTS_BUBBLE = v7328; -v7325.CALL_EVENTS_BUBBLE = v7333; -v7322.prototype = v7325; -v7322.__super__ = v299; -const v7335 = {}; -v7335[\\"2018-09-06\\"] = null; -v7322.services = v7335; -const v7336 = []; -v7336.push(\\"2018-09-06\\"); -v7322.apiVersions = v7336; -v7322.serviceIdentifier = \\"iotthingsgraph\\"; -v2.IoTThingsGraph = v7322; -var v7337; -var v7338 = v299; -var v7339 = v31; -v7337 = function () { if (v7338 !== v7339) { - return v7338.apply(this, arguments); -} }; -const v7340 = Object.create(v309); -v7340.constructor = v7337; -const v7341 = {}; -const v7342 = []; -var v7343; -var v7344 = v31; -var v7345 = v7340; -v7343 = function EVENTS_BUBBLE(event) { var baseClass = v7344.getPrototypeOf(v7345); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7346 = {}; -v7346.constructor = v7343; -v7343.prototype = v7346; -v7342.push(v7343); -v7341.apiCallAttempt = v7342; -const v7347 = []; -var v7348; -v7348 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7329.getPrototypeOf(v7345); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7349 = {}; -v7349.constructor = v7348; -v7348.prototype = v7349; -v7347.push(v7348); -v7341.apiCall = v7347; -v7340._events = v7341; -v7340.MONITOR_EVENTS_BUBBLE = v7343; -v7340.CALL_EVENTS_BUBBLE = v7348; -v7337.prototype = v7340; -v7337.__super__ = v299; -const v7350 = {}; -v7350[\\"2018-07-27\\"] = null; -v7337.services = v7350; -const v7351 = []; -v7351.push(\\"2018-07-27\\"); -v7337.apiVersions = v7351; -v7337.serviceIdentifier = \\"iotevents\\"; -v2.IoTEvents = v7337; -var v7352; -var v7353 = v299; -var v7354 = v31; -v7352 = function () { if (v7353 !== v7354) { - return v7353.apply(this, arguments); -} }; -const v7355 = Object.create(v309); -v7355.constructor = v7352; -const v7356 = {}; -const v7357 = []; -var v7358; -var v7359 = v31; -var v7360 = v7355; -v7358 = function EVENTS_BUBBLE(event) { var baseClass = v7359.getPrototypeOf(v7360); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7361 = {}; -v7361.constructor = v7358; -v7358.prototype = v7361; -v7357.push(v7358); -v7356.apiCallAttempt = v7357; -const v7362 = []; -var v7363; -v7363 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7344.getPrototypeOf(v7360); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7364 = {}; -v7364.constructor = v7363; -v7363.prototype = v7364; -v7362.push(v7363); -v7356.apiCall = v7362; -v7355._events = v7356; -v7355.MONITOR_EVENTS_BUBBLE = v7358; -v7355.CALL_EVENTS_BUBBLE = v7363; -v7352.prototype = v7355; -v7352.__super__ = v299; -const v7365 = {}; -v7365[\\"2018-10-23\\"] = null; -v7352.services = v7365; -const v7366 = []; -v7366.push(\\"2018-10-23\\"); -v7352.apiVersions = v7366; -v7352.serviceIdentifier = \\"ioteventsdata\\"; -v2.IoTEventsData = v7352; -var v7367; -var v7368 = v299; -var v7369 = v31; -v7367 = function () { if (v7368 !== v7369) { - return v7368.apply(this, arguments); -} }; -const v7370 = Object.create(v309); -v7370.constructor = v7367; -const v7371 = {}; -const v7372 = []; -var v7373; -var v7374 = v31; -var v7375 = v7370; -v7373 = function EVENTS_BUBBLE(event) { var baseClass = v7374.getPrototypeOf(v7375); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7376 = {}; -v7376.constructor = v7373; -v7373.prototype = v7376; -v7372.push(v7373); -v7371.apiCallAttempt = v7372; -const v7377 = []; -var v7378; -v7378 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7359.getPrototypeOf(v7375); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7379 = {}; -v7379.constructor = v7378; -v7378.prototype = v7379; -v7377.push(v7378); -v7371.apiCall = v7377; -v7370._events = v7371; -v7370.MONITOR_EVENTS_BUBBLE = v7373; -v7370.CALL_EVENTS_BUBBLE = v7378; -v7367.prototype = v7370; -v7367.__super__ = v299; -const v7380 = {}; -v7380[\\"2018-05-22\\"] = null; -v7367.services = v7380; -const v7381 = []; -v7381.push(\\"2018-05-22\\"); -v7367.apiVersions = v7381; -v7367.serviceIdentifier = \\"personalize\\"; -v2.Personalize = v7367; -var v7382; -var v7383 = v299; -var v7384 = v31; -v7382 = function () { if (v7383 !== v7384) { - return v7383.apply(this, arguments); -} }; -const v7385 = Object.create(v309); -v7385.constructor = v7382; -const v7386 = {}; -const v7387 = []; -var v7388; -var v7389 = v31; -var v7390 = v7385; -v7388 = function EVENTS_BUBBLE(event) { var baseClass = v7389.getPrototypeOf(v7390); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7391 = {}; -v7391.constructor = v7388; -v7388.prototype = v7391; -v7387.push(v7388); -v7386.apiCallAttempt = v7387; -const v7392 = []; -var v7393; -v7393 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7374.getPrototypeOf(v7390); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7394 = {}; -v7394.constructor = v7393; -v7393.prototype = v7394; -v7392.push(v7393); -v7386.apiCall = v7392; -v7385._events = v7386; -v7385.MONITOR_EVENTS_BUBBLE = v7388; -v7385.CALL_EVENTS_BUBBLE = v7393; -v7382.prototype = v7385; -v7382.__super__ = v299; -const v7395 = {}; -v7395[\\"2018-03-22\\"] = null; -v7382.services = v7395; -const v7396 = []; -v7396.push(\\"2018-03-22\\"); -v7382.apiVersions = v7396; -v7382.serviceIdentifier = \\"personalizeevents\\"; -v2.PersonalizeEvents = v7382; -var v7397; -var v7398 = v299; -var v7399 = v31; -v7397 = function () { if (v7398 !== v7399) { - return v7398.apply(this, arguments); -} }; -const v7400 = Object.create(v309); -v7400.constructor = v7397; -const v7401 = {}; -const v7402 = []; -var v7403; -var v7404 = v31; -var v7405 = v7400; -v7403 = function EVENTS_BUBBLE(event) { var baseClass = v7404.getPrototypeOf(v7405); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7406 = {}; -v7406.constructor = v7403; -v7403.prototype = v7406; -v7402.push(v7403); -v7401.apiCallAttempt = v7402; -const v7407 = []; -var v7408; -v7408 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7389.getPrototypeOf(v7405); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7409 = {}; -v7409.constructor = v7408; -v7408.prototype = v7409; -v7407.push(v7408); -v7401.apiCall = v7407; -v7400._events = v7401; -v7400.MONITOR_EVENTS_BUBBLE = v7403; -v7400.CALL_EVENTS_BUBBLE = v7408; -v7397.prototype = v7400; -v7397.__super__ = v299; -const v7410 = {}; -v7410[\\"2018-05-22\\"] = null; -v7397.services = v7410; -const v7411 = []; -v7411.push(\\"2018-05-22\\"); -v7397.apiVersions = v7411; -v7397.serviceIdentifier = \\"personalizeruntime\\"; -v2.PersonalizeRuntime = v7397; -var v7412; -var v7413 = v299; -var v7414 = v31; -v7412 = function () { if (v7413 !== v7414) { - return v7413.apply(this, arguments); -} }; -const v7415 = Object.create(v309); -v7415.constructor = v7412; -const v7416 = {}; -const v7417 = []; -var v7418; -var v7419 = v31; -var v7420 = v7415; -v7418 = function EVENTS_BUBBLE(event) { var baseClass = v7419.getPrototypeOf(v7420); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7421 = {}; -v7421.constructor = v7418; -v7418.prototype = v7421; -v7417.push(v7418); -v7416.apiCallAttempt = v7417; -const v7422 = []; -var v7423; -v7423 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7404.getPrototypeOf(v7420); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7424 = {}; -v7424.constructor = v7423; -v7423.prototype = v7424; -v7422.push(v7423); -v7416.apiCall = v7422; -v7415._events = v7416; -v7415.MONITOR_EVENTS_BUBBLE = v7418; -v7415.CALL_EVENTS_BUBBLE = v7423; -v7412.prototype = v7415; -v7412.__super__ = v299; -const v7425 = {}; -v7425[\\"2018-11-25\\"] = null; -v7412.services = v7425; -const v7426 = []; -v7426.push(\\"2018-11-25\\"); -v7412.apiVersions = v7426; -v7412.serviceIdentifier = \\"applicationinsights\\"; -v2.ApplicationInsights = v7412; -var v7427; -var v7428 = v299; -var v7429 = v31; -v7427 = function () { if (v7428 !== v7429) { - return v7428.apply(this, arguments); -} }; -const v7430 = Object.create(v309); -v7430.constructor = v7427; -const v7431 = {}; -const v7432 = []; -var v7433; -var v7434 = v31; -var v7435 = v7430; -v7433 = function EVENTS_BUBBLE(event) { var baseClass = v7434.getPrototypeOf(v7435); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7436 = {}; -v7436.constructor = v7433; -v7433.prototype = v7436; -v7432.push(v7433); -v7431.apiCallAttempt = v7432; -const v7437 = []; -var v7438; -v7438 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7419.getPrototypeOf(v7435); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7439 = {}; -v7439.constructor = v7438; -v7438.prototype = v7439; -v7437.push(v7438); -v7431.apiCall = v7437; -v7430._events = v7431; -v7430.MONITOR_EVENTS_BUBBLE = v7433; -v7430.CALL_EVENTS_BUBBLE = v7438; -v7427.prototype = v7430; -v7427.__super__ = v299; -const v7440 = {}; -v7440[\\"2019-06-24\\"] = null; -v7427.services = v7440; -const v7441 = []; -v7441.push(\\"2019-06-24\\"); -v7427.apiVersions = v7441; -v7427.serviceIdentifier = \\"servicequotas\\"; -v2.ServiceQuotas = v7427; -var v7442; -var v7443 = v299; -var v7444 = v31; -v7442 = function () { if (v7443 !== v7444) { - return v7443.apply(this, arguments); -} }; -const v7445 = Object.create(v309); -v7445.constructor = v7442; -const v7446 = {}; -const v7447 = []; -var v7448; -var v7449 = v31; -var v7450 = v7445; -v7448 = function EVENTS_BUBBLE(event) { var baseClass = v7449.getPrototypeOf(v7450); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7451 = {}; -v7451.constructor = v7448; -v7448.prototype = v7451; -v7447.push(v7448); -v7446.apiCallAttempt = v7447; -const v7452 = []; -var v7453; -v7453 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7434.getPrototypeOf(v7450); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7454 = {}; -v7454.constructor = v7453; -v7453.prototype = v7454; -v7452.push(v7453); -v7446.apiCall = v7452; -v7445._events = v7446; -v7445.MONITOR_EVENTS_BUBBLE = v7448; -v7445.CALL_EVENTS_BUBBLE = v7453; -v7442.prototype = v7445; -v7442.__super__ = v299; -const v7455 = {}; -v7455[\\"2018-04-02\\"] = null; -v7442.services = v7455; -const v7456 = []; -v7456.push(\\"2018-04-02\\"); -v7442.apiVersions = v7456; -v7442.serviceIdentifier = \\"ec2instanceconnect\\"; -v2.EC2InstanceConnect = v7442; -var v7457; -var v7458 = v299; -var v7459 = v31; -v7457 = function () { if (v7458 !== v7459) { - return v7458.apply(this, arguments); -} }; -const v7460 = Object.create(v309); -v7460.constructor = v7457; -const v7461 = {}; -const v7462 = []; -var v7463; -var v7464 = v31; -var v7465 = v7460; -v7463 = function EVENTS_BUBBLE(event) { var baseClass = v7464.getPrototypeOf(v7465); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7466 = {}; -v7466.constructor = v7463; -v7463.prototype = v7466; -v7462.push(v7463); -v7461.apiCallAttempt = v7462; -const v7467 = []; -var v7468; -v7468 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7449.getPrototypeOf(v7465); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7469 = {}; -v7469.constructor = v7468; -v7468.prototype = v7469; -v7467.push(v7468); -v7461.apiCall = v7467; -v7460._events = v7461; -v7460.MONITOR_EVENTS_BUBBLE = v7463; -v7460.CALL_EVENTS_BUBBLE = v7468; -var v7470; -var v7471 = v40; -v7470 = function setupRequestListeners(request) { if (request.operation === \\"putEvents\\") { - var params = request.params || {}; - if (params.EndpointId !== undefined) { - throw new v3.error(new v7471(), { code: \\"InvalidParameter\\", message: \\"EndpointId is not supported in current SDK.\\\\n\\" + \\"You should consider switching to V3(https://github.com/aws/aws-sdk-js-v3).\\" }); - } -} }; -const v7472 = {}; -v7472.constructor = v7470; -v7470.prototype = v7472; -v7460.setupRequestListeners = v7470; -v7457.prototype = v7460; -v7457.__super__ = v299; -const v7473 = {}; -v7473[\\"2015-10-07\\"] = null; -v7457.services = v7473; -const v7474 = []; -v7474.push(\\"2015-10-07\\"); -v7457.apiVersions = v7474; -v7457.serviceIdentifier = \\"eventbridge\\"; -v2.EventBridge = v7457; -var v7475; -var v7476 = v299; -var v7477 = v31; -v7475 = function () { if (v7476 !== v7477) { - return v7476.apply(this, arguments); -} }; -const v7478 = Object.create(v309); -v7478.constructor = v7475; -const v7479 = {}; -const v7480 = []; -var v7481; -var v7482 = v31; -var v7483 = v7478; -v7481 = function EVENTS_BUBBLE(event) { var baseClass = v7482.getPrototypeOf(v7483); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7484 = {}; -v7484.constructor = v7481; -v7481.prototype = v7484; -v7480.push(v7481); -v7479.apiCallAttempt = v7480; -const v7485 = []; -var v7486; -v7486 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7464.getPrototypeOf(v7483); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7487 = {}; -v7487.constructor = v7486; -v7486.prototype = v7487; -v7485.push(v7486); -v7479.apiCall = v7485; -v7478._events = v7479; -v7478.MONITOR_EVENTS_BUBBLE = v7481; -v7478.CALL_EVENTS_BUBBLE = v7486; -v7475.prototype = v7478; -v7475.__super__ = v299; -const v7488 = {}; -v7488[\\"2017-03-31\\"] = null; -v7475.services = v7488; -const v7489 = []; -v7489.push(\\"2017-03-31\\"); -v7475.apiVersions = v7489; -v7475.serviceIdentifier = \\"lakeformation\\"; -v2.LakeFormation = v7475; -var v7490; -var v7491 = v299; -var v7492 = v31; -v7490 = function () { if (v7491 !== v7492) { - return v7491.apply(this, arguments); -} }; -const v7493 = Object.create(v309); -v7493.constructor = v7490; -const v7494 = {}; -const v7495 = []; -var v7496; -var v7497 = v31; -var v7498 = v7493; -v7496 = function EVENTS_BUBBLE(event) { var baseClass = v7497.getPrototypeOf(v7498); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7499 = {}; -v7499.constructor = v7496; -v7496.prototype = v7499; -v7495.push(v7496); -v7494.apiCallAttempt = v7495; -const v7500 = []; -var v7501; -v7501 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7482.getPrototypeOf(v7498); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7502 = {}; -v7502.constructor = v7501; -v7501.prototype = v7502; -v7500.push(v7501); -v7494.apiCall = v7500; -v7493._events = v7494; -v7493.MONITOR_EVENTS_BUBBLE = v7496; -v7493.CALL_EVENTS_BUBBLE = v7501; -v7490.prototype = v7493; -v7490.__super__ = v299; -const v7503 = {}; -v7503[\\"2018-06-26\\"] = null; -v7490.services = v7503; -const v7504 = []; -v7504.push(\\"2018-06-26\\"); -v7490.apiVersions = v7504; -v7490.serviceIdentifier = \\"forecastservice\\"; -v2.ForecastService = v7490; -var v7505; -var v7506 = v299; -var v7507 = v31; -v7505 = function () { if (v7506 !== v7507) { - return v7506.apply(this, arguments); -} }; -const v7508 = Object.create(v309); -v7508.constructor = v7505; -const v7509 = {}; -const v7510 = []; -var v7511; -var v7512 = v31; -var v7513 = v7508; -v7511 = function EVENTS_BUBBLE(event) { var baseClass = v7512.getPrototypeOf(v7513); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7514 = {}; -v7514.constructor = v7511; -v7511.prototype = v7514; -v7510.push(v7511); -v7509.apiCallAttempt = v7510; -const v7515 = []; -var v7516; -v7516 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7497.getPrototypeOf(v7513); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7517 = {}; -v7517.constructor = v7516; -v7516.prototype = v7517; -v7515.push(v7516); -v7509.apiCall = v7515; -v7508._events = v7509; -v7508.MONITOR_EVENTS_BUBBLE = v7511; -v7508.CALL_EVENTS_BUBBLE = v7516; -v7505.prototype = v7508; -v7505.__super__ = v299; -const v7518 = {}; -v7518[\\"2018-06-26\\"] = null; -v7505.services = v7518; -const v7519 = []; -v7519.push(\\"2018-06-26\\"); -v7505.apiVersions = v7519; -v7505.serviceIdentifier = \\"forecastqueryservice\\"; -v2.ForecastQueryService = v7505; -var v7520; -var v7521 = v299; -var v7522 = v31; -v7520 = function () { if (v7521 !== v7522) { - return v7521.apply(this, arguments); -} }; -const v7523 = Object.create(v309); -v7523.constructor = v7520; -const v7524 = {}; -const v7525 = []; -var v7526; -var v7527 = v31; -var v7528 = v7523; -v7526 = function EVENTS_BUBBLE(event) { var baseClass = v7527.getPrototypeOf(v7528); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7529 = {}; -v7529.constructor = v7526; -v7526.prototype = v7529; -v7525.push(v7526); -v7524.apiCallAttempt = v7525; -const v7530 = []; -var v7531; -v7531 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7512.getPrototypeOf(v7528); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7532 = {}; -v7532.constructor = v7531; -v7531.prototype = v7532; -v7530.push(v7531); -v7524.apiCall = v7530; -v7523._events = v7524; -v7523.MONITOR_EVENTS_BUBBLE = v7526; -v7523.CALL_EVENTS_BUBBLE = v7531; -v7520.prototype = v7523; -v7520.__super__ = v299; -const v7533 = {}; -v7533[\\"2019-01-02\\"] = null; -v7520.services = v7533; -const v7534 = []; -v7534.push(\\"2019-01-02\\"); -v7520.apiVersions = v7534; -v7520.serviceIdentifier = \\"qldb\\"; -v2.QLDB = v7520; -var v7535; -var v7536 = v299; -var v7537 = v31; -v7535 = function () { if (v7536 !== v7537) { - return v7536.apply(this, arguments); -} }; -const v7538 = Object.create(v309); -v7538.constructor = v7535; -const v7539 = {}; -const v7540 = []; -var v7541; -var v7542 = v31; -var v7543 = v7538; -v7541 = function EVENTS_BUBBLE(event) { var baseClass = v7542.getPrototypeOf(v7543); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7544 = {}; -v7544.constructor = v7541; -v7541.prototype = v7544; -v7540.push(v7541); -v7539.apiCallAttempt = v7540; -const v7545 = []; -var v7546; -v7546 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7527.getPrototypeOf(v7543); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7547 = {}; -v7547.constructor = v7546; -v7546.prototype = v7547; -v7545.push(v7546); -v7539.apiCall = v7545; -v7538._events = v7539; -v7538.MONITOR_EVENTS_BUBBLE = v7541; -v7538.CALL_EVENTS_BUBBLE = v7546; -v7535.prototype = v7538; -v7535.__super__ = v299; -const v7548 = {}; -v7548[\\"2019-07-11\\"] = null; -v7535.services = v7548; -const v7549 = []; -v7549.push(\\"2019-07-11\\"); -v7535.apiVersions = v7549; -v7535.serviceIdentifier = \\"qldbsession\\"; -v2.QLDBSession = v7535; -var v7550; -var v7551 = v299; -var v7552 = v31; -v7550 = function () { if (v7551 !== v7552) { - return v7551.apply(this, arguments); -} }; -const v7553 = Object.create(v309); -v7553.constructor = v7550; -const v7554 = {}; -const v7555 = []; -var v7556; -var v7557 = v31; -var v7558 = v7553; -v7556 = function EVENTS_BUBBLE(event) { var baseClass = v7557.getPrototypeOf(v7558); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7559 = {}; -v7559.constructor = v7556; -v7556.prototype = v7559; -v7555.push(v7556); -v7554.apiCallAttempt = v7555; -const v7560 = []; -var v7561; -v7561 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7542.getPrototypeOf(v7558); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7562 = {}; -v7562.constructor = v7561; -v7561.prototype = v7562; -v7560.push(v7561); -v7554.apiCall = v7560; -v7553._events = v7554; -v7553.MONITOR_EVENTS_BUBBLE = v7556; -v7553.CALL_EVENTS_BUBBLE = v7561; -v7550.prototype = v7553; -v7550.__super__ = v299; -const v7563 = {}; -v7563[\\"2019-05-01\\"] = null; -v7550.services = v7563; -const v7564 = []; -v7564.push(\\"2019-05-01\\"); -v7550.apiVersions = v7564; -v7550.serviceIdentifier = \\"workmailmessageflow\\"; -v2.WorkMailMessageFlow = v7550; -var v7565; -var v7566 = v299; -var v7567 = v31; -v7565 = function () { if (v7566 !== v7567) { - return v7566.apply(this, arguments); -} }; -const v7568 = Object.create(v309); -v7568.constructor = v7565; -const v7569 = {}; -const v7570 = []; -var v7571; -var v7572 = v31; -var v7573 = v7568; -v7571 = function EVENTS_BUBBLE(event) { var baseClass = v7572.getPrototypeOf(v7573); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7574 = {}; -v7574.constructor = v7571; -v7571.prototype = v7574; -v7570.push(v7571); -v7569.apiCallAttempt = v7570; -const v7575 = []; -var v7576; -v7576 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7557.getPrototypeOf(v7573); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7577 = {}; -v7577.constructor = v7576; -v7576.prototype = v7577; -v7575.push(v7576); -v7569.apiCall = v7575; -v7568._events = v7569; -v7568.MONITOR_EVENTS_BUBBLE = v7571; -v7568.CALL_EVENTS_BUBBLE = v7576; -v7565.prototype = v7568; -v7565.__super__ = v299; -const v7578 = {}; -v7578[\\"2019-10-15\\"] = null; -v7565.services = v7578; -const v7579 = []; -v7579.push(\\"2019-10-15\\"); -v7565.apiVersions = v7579; -v7565.serviceIdentifier = \\"codestarnotifications\\"; -v2.CodeStarNotifications = v7565; -var v7580; -var v7581 = v299; -var v7582 = v31; -v7580 = function () { if (v7581 !== v7582) { - return v7581.apply(this, arguments); -} }; -const v7583 = Object.create(v309); -v7583.constructor = v7580; -const v7584 = {}; -const v7585 = []; -var v7586; -var v7587 = v31; -var v7588 = v7583; -v7586 = function EVENTS_BUBBLE(event) { var baseClass = v7587.getPrototypeOf(v7588); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7589 = {}; -v7589.constructor = v7586; -v7586.prototype = v7589; -v7585.push(v7586); -v7584.apiCallAttempt = v7585; -const v7590 = []; -var v7591; -v7591 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7572.getPrototypeOf(v7588); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7592 = {}; -v7592.constructor = v7591; -v7591.prototype = v7592; -v7590.push(v7591); -v7584.apiCall = v7590; -v7583._events = v7584; -v7583.MONITOR_EVENTS_BUBBLE = v7586; -v7583.CALL_EVENTS_BUBBLE = v7591; -v7580.prototype = v7583; -v7580.__super__ = v299; -const v7593 = {}; -v7593[\\"2019-06-28\\"] = null; -v7580.services = v7593; -const v7594 = []; -v7594.push(\\"2019-06-28\\"); -v7580.apiVersions = v7594; -v7580.serviceIdentifier = \\"savingsplans\\"; -v2.SavingsPlans = v7580; -var v7595; -var v7596 = v299; -var v7597 = v31; -v7595 = function () { if (v7596 !== v7597) { - return v7596.apply(this, arguments); -} }; -const v7598 = Object.create(v309); -v7598.constructor = v7595; -const v7599 = {}; -const v7600 = []; -var v7601; -var v7602 = v31; -var v7603 = v7598; -v7601 = function EVENTS_BUBBLE(event) { var baseClass = v7602.getPrototypeOf(v7603); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7604 = {}; -v7604.constructor = v7601; -v7601.prototype = v7604; -v7600.push(v7601); -v7599.apiCallAttempt = v7600; -const v7605 = []; -var v7606; -v7606 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7587.getPrototypeOf(v7603); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7607 = {}; -v7607.constructor = v7606; -v7606.prototype = v7607; -v7605.push(v7606); -v7599.apiCall = v7605; -v7598._events = v7599; -v7598.MONITOR_EVENTS_BUBBLE = v7601; -v7598.CALL_EVENTS_BUBBLE = v7606; -v7595.prototype = v7598; -v7595.__super__ = v299; -const v7608 = {}; -v7608[\\"2019-06-10\\"] = null; -v7595.services = v7608; -const v7609 = []; -v7609.push(\\"2019-06-10\\"); -v7595.apiVersions = v7609; -v7595.serviceIdentifier = \\"sso\\"; -v2.SSO = v7595; -var v7610; -var v7611 = v299; -var v7612 = v31; -v7610 = function () { if (v7611 !== v7612) { - return v7611.apply(this, arguments); -} }; -const v7613 = Object.create(v309); -v7613.constructor = v7610; -const v7614 = {}; -const v7615 = []; -var v7616; -var v7617 = v31; -var v7618 = v7613; -v7616 = function EVENTS_BUBBLE(event) { var baseClass = v7617.getPrototypeOf(v7618); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7619 = {}; -v7619.constructor = v7616; -v7616.prototype = v7619; -v7615.push(v7616); -v7614.apiCallAttempt = v7615; -const v7620 = []; -var v7621; -v7621 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7602.getPrototypeOf(v7618); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7622 = {}; -v7622.constructor = v7621; -v7621.prototype = v7622; -v7620.push(v7621); -v7614.apiCall = v7620; -v7613._events = v7614; -v7613.MONITOR_EVENTS_BUBBLE = v7616; -v7613.CALL_EVENTS_BUBBLE = v7621; -v7610.prototype = v7613; -v7610.__super__ = v299; -const v7623 = {}; -v7623[\\"2019-06-10\\"] = null; -v7610.services = v7623; -const v7624 = []; -v7624.push(\\"2019-06-10\\"); -v7610.apiVersions = v7624; -v7610.serviceIdentifier = \\"ssooidc\\"; -v2.SSOOIDC = v7610; -var v7625; -var v7626 = v299; -var v7627 = v31; -v7625 = function () { if (v7626 !== v7627) { - return v7626.apply(this, arguments); -} }; -const v7628 = Object.create(v309); -v7628.constructor = v7625; -const v7629 = {}; -const v7630 = []; -var v7631; -var v7632 = v31; -var v7633 = v7628; -v7631 = function EVENTS_BUBBLE(event) { var baseClass = v7632.getPrototypeOf(v7633); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7634 = {}; -v7634.constructor = v7631; -v7631.prototype = v7634; -v7630.push(v7631); -v7629.apiCallAttempt = v7630; -const v7635 = []; -var v7636; -v7636 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7617.getPrototypeOf(v7633); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7637 = {}; -v7637.constructor = v7636; -v7636.prototype = v7637; -v7635.push(v7636); -v7629.apiCall = v7635; -v7628._events = v7629; -v7628.MONITOR_EVENTS_BUBBLE = v7631; -v7628.CALL_EVENTS_BUBBLE = v7636; -v7625.prototype = v7628; -v7625.__super__ = v299; -const v7638 = {}; -v7638[\\"2018-09-17\\"] = null; -v7625.services = v7638; -const v7639 = []; -v7639.push(\\"2018-09-17\\"); -v7625.apiVersions = v7639; -v7625.serviceIdentifier = \\"marketplacecatalog\\"; -v2.MarketplaceCatalog = v7625; -var v7640; -var v7641 = v299; -var v7642 = v31; -v7640 = function () { if (v7641 !== v7642) { - return v7641.apply(this, arguments); -} }; -const v7643 = Object.create(v309); -v7643.constructor = v7640; -const v7644 = {}; -const v7645 = []; -var v7646; -var v7647 = v31; -var v7648 = v7643; -v7646 = function EVENTS_BUBBLE(event) { var baseClass = v7647.getPrototypeOf(v7648); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7649 = {}; -v7649.constructor = v7646; -v7646.prototype = v7649; -v7645.push(v7646); -v7644.apiCallAttempt = v7645; -const v7650 = []; -var v7651; -v7651 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7632.getPrototypeOf(v7648); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7652 = {}; -v7652.constructor = v7651; -v7651.prototype = v7652; -v7650.push(v7651); -v7644.apiCall = v7650; -v7643._events = v7644; -v7643.MONITOR_EVENTS_BUBBLE = v7646; -v7643.CALL_EVENTS_BUBBLE = v7651; -v7640.prototype = v7643; -v7640.__super__ = v299; -const v7653 = {}; -v7653[\\"2017-07-25\\"] = null; -v7640.services = v7653; -const v7654 = []; -v7654.push(\\"2017-07-25\\"); -v7640.apiVersions = v7654; -v7640.serviceIdentifier = \\"dataexchange\\"; -v2.DataExchange = v7640; -var v7655; -var v7656 = v299; -var v7657 = v31; -v7655 = function () { if (v7656 !== v7657) { - return v7656.apply(this, arguments); -} }; -const v7658 = Object.create(v309); -v7658.constructor = v7655; -const v7659 = {}; -const v7660 = []; -var v7661; -var v7662 = v31; -var v7663 = v7658; -v7661 = function EVENTS_BUBBLE(event) { var baseClass = v7662.getPrototypeOf(v7663); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7664 = {}; -v7664.constructor = v7661; -v7661.prototype = v7664; -v7660.push(v7661); -v7659.apiCallAttempt = v7660; -const v7665 = []; -var v7666; -v7666 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7647.getPrototypeOf(v7663); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7667 = {}; -v7667.constructor = v7666; -v7666.prototype = v7667; -v7665.push(v7666); -v7659.apiCall = v7665; -v7658._events = v7659; -v7658.MONITOR_EVENTS_BUBBLE = v7661; -v7658.CALL_EVENTS_BUBBLE = v7666; -v7655.prototype = v7658; -v7655.__super__ = v299; -const v7668 = {}; -v7668[\\"2019-09-27\\"] = null; -v7655.services = v7668; -const v7669 = []; -v7669.push(\\"2019-09-27\\"); -v7655.apiVersions = v7669; -v7655.serviceIdentifier = \\"sesv2\\"; -v2.SESV2 = v7655; -var v7670; -var v7671 = v299; -var v7672 = v31; -v7670 = function () { if (v7671 !== v7672) { - return v7671.apply(this, arguments); -} }; -const v7673 = Object.create(v309); -v7673.constructor = v7670; -const v7674 = {}; -const v7675 = []; -var v7676; -var v7677 = v31; -var v7678 = v7673; -v7676 = function EVENTS_BUBBLE(event) { var baseClass = v7677.getPrototypeOf(v7678); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7679 = {}; -v7679.constructor = v7676; -v7676.prototype = v7679; -v7675.push(v7676); -v7674.apiCallAttempt = v7675; -const v7680 = []; -var v7681; -v7681 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7662.getPrototypeOf(v7678); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7682 = {}; -v7682.constructor = v7681; -v7681.prototype = v7682; -v7680.push(v7681); -v7674.apiCall = v7680; -v7673._events = v7674; -v7673.MONITOR_EVENTS_BUBBLE = v7676; -v7673.CALL_EVENTS_BUBBLE = v7681; -v7670.prototype = v7673; -v7670.__super__ = v299; -const v7683 = {}; -v7683[\\"2019-06-30\\"] = null; -v7670.services = v7683; -const v7684 = []; -v7684.push(\\"2019-06-30\\"); -v7670.apiVersions = v7684; -v7670.serviceIdentifier = \\"migrationhubconfig\\"; -v2.MigrationHubConfig = v7670; -var v7685; -var v7686 = v299; -var v7687 = v31; -v7685 = function () { if (v7686 !== v7687) { - return v7686.apply(this, arguments); -} }; -const v7688 = Object.create(v309); -v7688.constructor = v7685; -const v7689 = {}; -const v7690 = []; -var v7691; -var v7692 = v31; -var v7693 = v7688; -v7691 = function EVENTS_BUBBLE(event) { var baseClass = v7692.getPrototypeOf(v7693); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7694 = {}; -v7694.constructor = v7691; -v7691.prototype = v7694; -v7690.push(v7691); -v7689.apiCallAttempt = v7690; -const v7695 = []; -var v7696; -v7696 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7677.getPrototypeOf(v7693); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7697 = {}; -v7697.constructor = v7696; -v7696.prototype = v7697; -v7695.push(v7696); -v7689.apiCall = v7695; -v7688._events = v7689; -v7688.MONITOR_EVENTS_BUBBLE = v7691; -v7688.CALL_EVENTS_BUBBLE = v7696; -v7685.prototype = v7688; -v7685.__super__ = v299; -const v7698 = {}; -v7698[\\"2018-09-07\\"] = null; -v7685.services = v7698; -const v7699 = []; -v7699.push(\\"2018-09-07\\"); -v7685.apiVersions = v7699; -v7685.serviceIdentifier = \\"connectparticipant\\"; -v2.ConnectParticipant = v7685; -var v7700; -var v7701 = v299; -var v7702 = v31; -v7700 = function () { if (v7701 !== v7702) { - return v7701.apply(this, arguments); -} }; -const v7703 = Object.create(v309); -v7703.constructor = v7700; -const v7704 = {}; -const v7705 = []; -var v7706; -var v7707 = v31; -var v7708 = v7703; -v7706 = function EVENTS_BUBBLE(event) { var baseClass = v7707.getPrototypeOf(v7708); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7709 = {}; -v7709.constructor = v7706; -v7706.prototype = v7709; -v7705.push(v7706); -v7704.apiCallAttempt = v7705; -const v7710 = []; -var v7711; -v7711 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7692.getPrototypeOf(v7708); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7712 = {}; -v7712.constructor = v7711; -v7711.prototype = v7712; -v7710.push(v7711); -v7704.apiCall = v7710; -v7703._events = v7704; -v7703.MONITOR_EVENTS_BUBBLE = v7706; -v7703.CALL_EVENTS_BUBBLE = v7711; -v7700.prototype = v7703; -v7700.__super__ = v299; -const v7713 = {}; -v7713[\\"2019-10-09\\"] = null; -v7700.services = v7713; -const v7714 = []; -v7714.push(\\"2019-10-09\\"); -v7700.apiVersions = v7714; -v7700.serviceIdentifier = \\"appconfig\\"; -v2.AppConfig = v7700; -var v7715; -var v7716 = v299; -var v7717 = v31; -v7715 = function () { if (v7716 !== v7717) { - return v7716.apply(this, arguments); -} }; -const v7718 = Object.create(v309); -v7718.constructor = v7715; -const v7719 = {}; -const v7720 = []; -var v7721; -var v7722 = v31; -var v7723 = v7718; -v7721 = function EVENTS_BUBBLE(event) { var baseClass = v7722.getPrototypeOf(v7723); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7724 = {}; -v7724.constructor = v7721; -v7721.prototype = v7724; -v7720.push(v7721); -v7719.apiCallAttempt = v7720; -const v7725 = []; -var v7726; -v7726 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7707.getPrototypeOf(v7723); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7727 = {}; -v7727.constructor = v7726; -v7726.prototype = v7727; -v7725.push(v7726); -v7719.apiCall = v7725; -v7718._events = v7719; -v7718.MONITOR_EVENTS_BUBBLE = v7721; -v7718.CALL_EVENTS_BUBBLE = v7726; -v7715.prototype = v7718; -v7715.__super__ = v299; -const v7728 = {}; -v7728[\\"2018-10-05\\"] = null; -v7715.services = v7728; -const v7729 = []; -v7729.push(\\"2018-10-05\\"); -v7715.apiVersions = v7729; -v7715.serviceIdentifier = \\"iotsecuretunneling\\"; -v2.IoTSecureTunneling = v7715; -var v7730; -var v7731 = v299; -var v7732 = v31; -v7730 = function () { if (v7731 !== v7732) { - return v7731.apply(this, arguments); -} }; -const v7733 = Object.create(v309); -v7733.constructor = v7730; -const v7734 = {}; -const v7735 = []; -var v7736; -var v7737 = v31; -var v7738 = v7733; -v7736 = function EVENTS_BUBBLE(event) { var baseClass = v7737.getPrototypeOf(v7738); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7739 = {}; -v7739.constructor = v7736; -v7736.prototype = v7739; -v7735.push(v7736); -v7734.apiCallAttempt = v7735; -const v7740 = []; -var v7741; -v7741 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7722.getPrototypeOf(v7738); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7742 = {}; -v7742.constructor = v7741; -v7741.prototype = v7742; -v7740.push(v7741); -v7734.apiCall = v7740; -v7733._events = v7734; -v7733.MONITOR_EVENTS_BUBBLE = v7736; -v7733.CALL_EVENTS_BUBBLE = v7741; -v7730.prototype = v7733; -v7730.__super__ = v299; -const v7743 = {}; -v7743[\\"2019-07-29\\"] = null; -v7730.services = v7743; -const v7744 = []; -v7744.push(\\"2019-07-29\\"); -v7730.apiVersions = v7744; -v7730.serviceIdentifier = \\"wafv2\\"; -v2.WAFV2 = v7730; -var v7745; -var v7746 = v299; -var v7747 = v31; -v7745 = function () { if (v7746 !== v7747) { - return v7746.apply(this, arguments); -} }; -const v7748 = Object.create(v309); -v7748.constructor = v7745; -const v7749 = {}; -const v7750 = []; -var v7751; -var v7752 = v31; -var v7753 = v7748; -v7751 = function EVENTS_BUBBLE(event) { var baseClass = v7752.getPrototypeOf(v7753); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7754 = {}; -v7754.constructor = v7751; -v7751.prototype = v7754; -v7750.push(v7751); -v7749.apiCallAttempt = v7750; -const v7755 = []; -var v7756; -v7756 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7737.getPrototypeOf(v7753); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7757 = {}; -v7757.constructor = v7756; -v7756.prototype = v7757; -v7755.push(v7756); -v7749.apiCall = v7755; -v7748._events = v7749; -v7748.MONITOR_EVENTS_BUBBLE = v7751; -v7748.CALL_EVENTS_BUBBLE = v7756; -v7745.prototype = v7748; -v7745.__super__ = v299; -const v7758 = {}; -v7758[\\"2017-07-25\\"] = null; -v7745.services = v7758; -const v7759 = []; -v7759.push(\\"2017-07-25\\"); -v7745.apiVersions = v7759; -v7745.serviceIdentifier = \\"elasticinference\\"; -v2.ElasticInference = v7745; -var v7760; -var v7761 = v299; -var v7762 = v31; -v7760 = function () { if (v7761 !== v7762) { - return v7761.apply(this, arguments); -} }; -const v7763 = Object.create(v309); -v7763.constructor = v7760; -const v7764 = {}; -const v7765 = []; -var v7766; -var v7767 = v31; -var v7768 = v7763; -v7766 = function EVENTS_BUBBLE(event) { var baseClass = v7767.getPrototypeOf(v7768); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7769 = {}; -v7769.constructor = v7766; -v7766.prototype = v7769; -v7765.push(v7766); -v7764.apiCallAttempt = v7765; -const v7770 = []; -var v7771; -v7771 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7752.getPrototypeOf(v7768); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7772 = {}; -v7772.constructor = v7771; -v7771.prototype = v7772; -v7770.push(v7771); -v7764.apiCall = v7770; -v7763._events = v7764; -v7763.MONITOR_EVENTS_BUBBLE = v7766; -v7763.CALL_EVENTS_BUBBLE = v7771; -v7760.prototype = v7763; -v7760.__super__ = v299; -const v7773 = {}; -v7773[\\"2019-12-02\\"] = null; -v7760.services = v7773; -const v7774 = []; -v7774.push(\\"2019-12-02\\"); -v7760.apiVersions = v7774; -v7760.serviceIdentifier = \\"imagebuilder\\"; -v2.Imagebuilder = v7760; -var v7775; -var v7776 = v299; -var v7777 = v31; -v7775 = function () { if (v7776 !== v7777) { - return v7776.apply(this, arguments); -} }; -const v7778 = Object.create(v309); -v7778.constructor = v7775; -const v7779 = {}; -const v7780 = []; -var v7781; -var v7782 = v31; -var v7783 = v7778; -v7781 = function EVENTS_BUBBLE(event) { var baseClass = v7782.getPrototypeOf(v7783); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7784 = {}; -v7784.constructor = v7781; -v7781.prototype = v7784; -v7780.push(v7781); -v7779.apiCallAttempt = v7780; -const v7785 = []; -var v7786; -v7786 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7767.getPrototypeOf(v7783); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7787 = {}; -v7787.constructor = v7786; -v7786.prototype = v7787; -v7785.push(v7786); -v7779.apiCall = v7785; -v7778._events = v7779; -v7778.MONITOR_EVENTS_BUBBLE = v7781; -v7778.CALL_EVENTS_BUBBLE = v7786; -v7775.prototype = v7778; -v7775.__super__ = v299; -const v7788 = {}; -v7788[\\"2019-12-02\\"] = null; -v7775.services = v7788; -const v7789 = []; -v7789.push(\\"2019-12-02\\"); -v7775.apiVersions = v7789; -v7775.serviceIdentifier = \\"schemas\\"; -v2.Schemas = v7775; -var v7790; -var v7791 = v299; -var v7792 = v31; -v7790 = function () { if (v7791 !== v7792) { - return v7791.apply(this, arguments); -} }; -const v7793 = Object.create(v309); -v7793.constructor = v7790; -const v7794 = {}; -const v7795 = []; -var v7796; -var v7797 = v31; -var v7798 = v7793; -v7796 = function EVENTS_BUBBLE(event) { var baseClass = v7797.getPrototypeOf(v7798); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7799 = {}; -v7799.constructor = v7796; -v7796.prototype = v7799; -v7795.push(v7796); -v7794.apiCallAttempt = v7795; -const v7800 = []; -var v7801; -v7801 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7782.getPrototypeOf(v7798); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7802 = {}; -v7802.constructor = v7801; -v7801.prototype = v7802; -v7800.push(v7801); -v7794.apiCall = v7800; -v7793._events = v7794; -v7793.MONITOR_EVENTS_BUBBLE = v7796; -v7793.CALL_EVENTS_BUBBLE = v7801; -v7790.prototype = v7793; -v7790.__super__ = v299; -const v7803 = {}; -v7803[\\"2019-11-01\\"] = null; -v7790.services = v7803; -const v7804 = []; -v7804.push(\\"2019-11-01\\"); -v7790.apiVersions = v7804; -v7790.serviceIdentifier = \\"accessanalyzer\\"; -v2.AccessAnalyzer = v7790; -var v7805; -var v7806 = v299; -var v7807 = v31; -v7805 = function () { if (v7806 !== v7807) { - return v7806.apply(this, arguments); -} }; -const v7808 = Object.create(v309); -v7808.constructor = v7805; -const v7809 = {}; -const v7810 = []; -var v7811; -var v7812 = v31; -var v7813 = v7808; -v7811 = function EVENTS_BUBBLE(event) { var baseClass = v7812.getPrototypeOf(v7813); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7814 = {}; -v7814.constructor = v7811; -v7811.prototype = v7814; -v7810.push(v7811); -v7809.apiCallAttempt = v7810; -const v7815 = []; -var v7816; -v7816 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7797.getPrototypeOf(v7813); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7817 = {}; -v7817.constructor = v7816; -v7816.prototype = v7817; -v7815.push(v7816); -v7809.apiCall = v7815; -v7808._events = v7809; -v7808.MONITOR_EVENTS_BUBBLE = v7811; -v7808.CALL_EVENTS_BUBBLE = v7816; -v7805.prototype = v7808; -v7805.__super__ = v299; -const v7818 = {}; -v7818[\\"2019-09-19\\"] = null; -v7805.services = v7818; -const v7819 = []; -v7819.push(\\"2019-09-19\\"); -v7805.apiVersions = v7819; -v7805.serviceIdentifier = \\"codegurureviewer\\"; -v2.CodeGuruReviewer = v7805; -var v7820; -var v7821 = v299; -var v7822 = v31; -v7820 = function () { if (v7821 !== v7822) { - return v7821.apply(this, arguments); -} }; -const v7823 = Object.create(v309); -v7823.constructor = v7820; -const v7824 = {}; -const v7825 = []; -var v7826; -var v7827 = v31; -var v7828 = v7823; -v7826 = function EVENTS_BUBBLE(event) { var baseClass = v7827.getPrototypeOf(v7828); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7829 = {}; -v7829.constructor = v7826; -v7826.prototype = v7829; -v7825.push(v7826); -v7824.apiCallAttempt = v7825; -const v7830 = []; -var v7831; -v7831 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7812.getPrototypeOf(v7828); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7832 = {}; -v7832.constructor = v7831; -v7831.prototype = v7832; -v7830.push(v7831); -v7824.apiCall = v7830; -v7823._events = v7824; -v7823.MONITOR_EVENTS_BUBBLE = v7826; -v7823.CALL_EVENTS_BUBBLE = v7831; -v7820.prototype = v7823; -v7820.__super__ = v299; -const v7833 = {}; -v7833[\\"2019-07-18\\"] = null; -v7820.services = v7833; -const v7834 = []; -v7834.push(\\"2019-07-18\\"); -v7820.apiVersions = v7834; -v7820.serviceIdentifier = \\"codeguruprofiler\\"; -v2.CodeGuruProfiler = v7820; -var v7835; -var v7836 = v299; -var v7837 = v31; -v7835 = function () { if (v7836 !== v7837) { - return v7836.apply(this, arguments); -} }; -const v7838 = Object.create(v309); -v7838.constructor = v7835; -const v7839 = {}; -const v7840 = []; -var v7841; -var v7842 = v31; -var v7843 = v7838; -v7841 = function EVENTS_BUBBLE(event) { var baseClass = v7842.getPrototypeOf(v7843); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7844 = {}; -v7844.constructor = v7841; -v7841.prototype = v7844; -v7840.push(v7841); -v7839.apiCallAttempt = v7840; -const v7845 = []; -var v7846; -v7846 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7827.getPrototypeOf(v7843); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7847 = {}; -v7847.constructor = v7846; -v7846.prototype = v7847; -v7845.push(v7846); -v7839.apiCall = v7845; -v7838._events = v7839; -v7838.MONITOR_EVENTS_BUBBLE = v7841; -v7838.CALL_EVENTS_BUBBLE = v7846; -v7835.prototype = v7838; -v7835.__super__ = v299; -const v7848 = {}; -v7848[\\"2019-11-01\\"] = null; -v7835.services = v7848; -const v7849 = []; -v7849.push(\\"2019-11-01\\"); -v7835.apiVersions = v7849; -v7835.serviceIdentifier = \\"computeoptimizer\\"; -v2.ComputeOptimizer = v7835; -var v7850; -var v7851 = v299; -var v7852 = v31; -v7850 = function () { if (v7851 !== v7852) { - return v7851.apply(this, arguments); -} }; -const v7853 = Object.create(v309); -v7853.constructor = v7850; -const v7854 = {}; -const v7855 = []; -var v7856; -var v7857 = v31; -var v7858 = v7853; -v7856 = function EVENTS_BUBBLE(event) { var baseClass = v7857.getPrototypeOf(v7858); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7859 = {}; -v7859.constructor = v7856; -v7856.prototype = v7859; -v7855.push(v7856); -v7854.apiCallAttempt = v7855; -const v7860 = []; -var v7861; -v7861 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7842.getPrototypeOf(v7858); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7862 = {}; -v7862.constructor = v7861; -v7861.prototype = v7862; -v7860.push(v7861); -v7854.apiCall = v7860; -v7853._events = v7854; -v7853.MONITOR_EVENTS_BUBBLE = v7856; -v7853.CALL_EVENTS_BUBBLE = v7861; -v7850.prototype = v7853; -v7850.__super__ = v299; -const v7863 = {}; -v7863[\\"2019-11-15\\"] = null; -v7850.services = v7863; -const v7864 = []; -v7864.push(\\"2019-11-15\\"); -v7850.apiVersions = v7864; -v7850.serviceIdentifier = \\"frauddetector\\"; -v2.FraudDetector = v7850; -var v7865; -var v7866 = v299; -var v7867 = v31; -v7865 = function () { if (v7866 !== v7867) { - return v7866.apply(this, arguments); -} }; -const v7868 = Object.create(v309); -v7868.constructor = v7865; -const v7869 = {}; -const v7870 = []; -var v7871; -var v7872 = v31; -var v7873 = v7868; -v7871 = function EVENTS_BUBBLE(event) { var baseClass = v7872.getPrototypeOf(v7873); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7874 = {}; -v7874.constructor = v7871; -v7871.prototype = v7874; -v7870.push(v7871); -v7869.apiCallAttempt = v7870; -const v7875 = []; -var v7876; -v7876 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7857.getPrototypeOf(v7873); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7877 = {}; -v7877.constructor = v7876; -v7876.prototype = v7877; -v7875.push(v7876); -v7869.apiCall = v7875; -v7868._events = v7869; -v7868.MONITOR_EVENTS_BUBBLE = v7871; -v7868.CALL_EVENTS_BUBBLE = v7876; -v7865.prototype = v7868; -v7865.__super__ = v299; -const v7878 = {}; -v7878[\\"2019-02-03\\"] = null; -v7865.services = v7878; -const v7879 = []; -v7879.push(\\"2019-02-03\\"); -v7865.apiVersions = v7879; -v7865.serviceIdentifier = \\"kendra\\"; -v2.Kendra = v7865; -var v7880; -var v7881 = v299; -var v7882 = v31; -v7880 = function () { if (v7881 !== v7882) { - return v7881.apply(this, arguments); -} }; -const v7883 = Object.create(v309); -v7883.constructor = v7880; -const v7884 = {}; -const v7885 = []; -var v7886; -var v7887 = v31; -var v7888 = v7883; -v7886 = function EVENTS_BUBBLE(event) { var baseClass = v7887.getPrototypeOf(v7888); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7889 = {}; -v7889.constructor = v7886; -v7886.prototype = v7889; -v7885.push(v7886); -v7884.apiCallAttempt = v7885; -const v7890 = []; -var v7891; -v7891 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7872.getPrototypeOf(v7888); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7892 = {}; -v7892.constructor = v7891; -v7891.prototype = v7892; -v7890.push(v7891); -v7884.apiCall = v7890; -v7883._events = v7884; -v7883.MONITOR_EVENTS_BUBBLE = v7886; -v7883.CALL_EVENTS_BUBBLE = v7891; -v7880.prototype = v7883; -v7880.__super__ = v299; -const v7893 = {}; -v7893[\\"2019-07-05\\"] = null; -v7880.services = v7893; -const v7894 = []; -v7894.push(\\"2019-07-05\\"); -v7880.apiVersions = v7894; -v7880.serviceIdentifier = \\"networkmanager\\"; -v2.NetworkManager = v7880; -var v7895; -var v7896 = v299; -var v7897 = v31; -v7895 = function () { if (v7896 !== v7897) { - return v7896.apply(this, arguments); -} }; -const v7898 = Object.create(v309); -v7898.constructor = v7895; -const v7899 = {}; -const v7900 = []; -var v7901; -var v7902 = v31; -var v7903 = v7898; -v7901 = function EVENTS_BUBBLE(event) { var baseClass = v7902.getPrototypeOf(v7903); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7904 = {}; -v7904.constructor = v7901; -v7901.prototype = v7904; -v7900.push(v7901); -v7899.apiCallAttempt = v7900; -const v7905 = []; -var v7906; -v7906 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7887.getPrototypeOf(v7903); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7907 = {}; -v7907.constructor = v7906; -v7906.prototype = v7907; -v7905.push(v7906); -v7899.apiCall = v7905; -v7898._events = v7899; -v7898.MONITOR_EVENTS_BUBBLE = v7901; -v7898.CALL_EVENTS_BUBBLE = v7906; -v7895.prototype = v7898; -v7895.__super__ = v299; -const v7908 = {}; -v7908[\\"2019-12-03\\"] = null; -v7895.services = v7908; -const v7909 = []; -v7909.push(\\"2019-12-03\\"); -v7895.apiVersions = v7909; -v7895.serviceIdentifier = \\"outposts\\"; -v2.Outposts = v7895; -var v7910; -var v7911 = v299; -var v7912 = v31; -v7910 = function () { if (v7911 !== v7912) { - return v7911.apply(this, arguments); -} }; -const v7913 = Object.create(v309); -v7913.constructor = v7910; -const v7914 = {}; -const v7915 = []; -var v7916; -var v7917 = v31; -var v7918 = v7913; -v7916 = function EVENTS_BUBBLE(event) { var baseClass = v7917.getPrototypeOf(v7918); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7919 = {}; -v7919.constructor = v7916; -v7916.prototype = v7919; -v7915.push(v7916); -v7914.apiCallAttempt = v7915; -const v7920 = []; -var v7921; -v7921 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7902.getPrototypeOf(v7918); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7922 = {}; -v7922.constructor = v7921; -v7921.prototype = v7922; -v7920.push(v7921); -v7914.apiCall = v7920; -v7913._events = v7914; -v7913.MONITOR_EVENTS_BUBBLE = v7916; -v7913.CALL_EVENTS_BUBBLE = v7921; -v7910.prototype = v7913; -v7910.__super__ = v299; -const v7923 = {}; -v7923[\\"2019-11-07\\"] = null; -v7910.services = v7923; -const v7924 = []; -v7924.push(\\"2019-11-07\\"); -v7910.apiVersions = v7924; -v7910.serviceIdentifier = \\"augmentedairuntime\\"; -v2.AugmentedAIRuntime = v7910; -var v7925; -var v7926 = v299; -var v7927 = v31; -v7925 = function () { if (v7926 !== v7927) { - return v7926.apply(this, arguments); -} }; -const v7928 = Object.create(v309); -v7928.constructor = v7925; -const v7929 = {}; -const v7930 = []; -var v7931; -var v7932 = v31; -var v7933 = v7928; -v7931 = function EVENTS_BUBBLE(event) { var baseClass = v7932.getPrototypeOf(v7933); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7934 = {}; -v7934.constructor = v7931; -v7931.prototype = v7934; -v7930.push(v7931); -v7929.apiCallAttempt = v7930; -const v7935 = []; -var v7936; -v7936 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7917.getPrototypeOf(v7933); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7937 = {}; -v7937.constructor = v7936; -v7936.prototype = v7937; -v7935.push(v7936); -v7929.apiCall = v7935; -v7928._events = v7929; -v7928.MONITOR_EVENTS_BUBBLE = v7931; -v7928.CALL_EVENTS_BUBBLE = v7936; -v7925.prototype = v7928; -v7925.__super__ = v299; -const v7938 = {}; -v7938[\\"2019-11-02\\"] = null; -v7925.services = v7938; -const v7939 = []; -v7939.push(\\"2019-11-02\\"); -v7925.apiVersions = v7939; -v7925.serviceIdentifier = \\"ebs\\"; -v2.EBS = v7925; -var v7940; -var v7941 = v299; -var v7942 = v31; -v7940 = function () { if (v7941 !== v7942) { - return v7941.apply(this, arguments); -} }; -const v7943 = Object.create(v309); -v7943.constructor = v7940; -const v7944 = {}; -const v7945 = []; -var v7946; -var v7947 = v31; -var v7948 = v7943; -v7946 = function EVENTS_BUBBLE(event) { var baseClass = v7947.getPrototypeOf(v7948); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7949 = {}; -v7949.constructor = v7946; -v7946.prototype = v7949; -v7945.push(v7946); -v7944.apiCallAttempt = v7945; -const v7950 = []; -var v7951; -v7951 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7932.getPrototypeOf(v7948); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7952 = {}; -v7952.constructor = v7951; -v7951.prototype = v7952; -v7950.push(v7951); -v7944.apiCall = v7950; -v7943._events = v7944; -v7943.MONITOR_EVENTS_BUBBLE = v7946; -v7943.CALL_EVENTS_BUBBLE = v7951; -v7940.prototype = v7943; -v7940.__super__ = v299; -const v7953 = {}; -v7953[\\"2019-12-04\\"] = null; -v7940.services = v7953; -const v7954 = []; -v7954.push(\\"2019-12-04\\"); -v7940.apiVersions = v7954; -v7940.serviceIdentifier = \\"kinesisvideosignalingchannels\\"; -v2.KinesisVideoSignalingChannels = v7940; -var v7955; -var v7956 = v299; -var v7957 = v31; -v7955 = function () { if (v7956 !== v7957) { - return v7956.apply(this, arguments); -} }; -const v7958 = Object.create(v309); -v7958.constructor = v7955; -const v7959 = {}; -const v7960 = []; -var v7961; -var v7962 = v31; -var v7963 = v7958; -v7961 = function EVENTS_BUBBLE(event) { var baseClass = v7962.getPrototypeOf(v7963); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7964 = {}; -v7964.constructor = v7961; -v7961.prototype = v7964; -v7960.push(v7961); -v7959.apiCallAttempt = v7960; -const v7965 = []; -var v7966; -v7966 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7947.getPrototypeOf(v7963); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7967 = {}; -v7967.constructor = v7966; -v7966.prototype = v7967; -v7965.push(v7966); -v7959.apiCall = v7965; -v7958._events = v7959; -v7958.MONITOR_EVENTS_BUBBLE = v7961; -v7958.CALL_EVENTS_BUBBLE = v7966; -v7955.prototype = v7958; -v7955.__super__ = v299; -const v7968 = {}; -v7968[\\"2018-10-26\\"] = null; -v7955.services = v7968; -const v7969 = []; -v7969.push(\\"2018-10-26\\"); -v7955.apiVersions = v7969; -v7955.serviceIdentifier = \\"detective\\"; -v2.Detective = v7955; -var v7970; -var v7971 = v299; -var v7972 = v31; -v7970 = function () { if (v7971 !== v7972) { - return v7971.apply(this, arguments); -} }; -const v7973 = Object.create(v309); -v7973.constructor = v7970; -const v7974 = {}; -const v7975 = []; -var v7976; -var v7977 = v31; -var v7978 = v7973; -v7976 = function EVENTS_BUBBLE(event) { var baseClass = v7977.getPrototypeOf(v7978); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7979 = {}; -v7979.constructor = v7976; -v7976.prototype = v7979; -v7975.push(v7976); -v7974.apiCallAttempt = v7975; -const v7980 = []; -var v7981; -v7981 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7962.getPrototypeOf(v7978); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7982 = {}; -v7982.constructor = v7981; -v7981.prototype = v7982; -v7980.push(v7981); -v7974.apiCall = v7980; -v7973._events = v7974; -v7973.MONITOR_EVENTS_BUBBLE = v7976; -v7973.CALL_EVENTS_BUBBLE = v7981; -v7970.prototype = v7973; -v7970.__super__ = v299; -const v7983 = {}; -v7983[\\"2019-12-01\\"] = null; -v7970.services = v7983; -const v7984 = []; -v7984.push(\\"2019-12-01\\"); -v7970.apiVersions = v7984; -v7970.serviceIdentifier = \\"codestarconnections\\"; -v2.CodeStarconnections = v7970; -var v7985; -var v7986 = v299; -var v7987 = v31; -v7985 = function () { if (v7986 !== v7987) { - return v7986.apply(this, arguments); -} }; -const v7988 = Object.create(v309); -v7988.constructor = v7985; -const v7989 = {}; -const v7990 = []; -var v7991; -var v7992 = v31; -var v7993 = v7988; -v7991 = function EVENTS_BUBBLE(event) { var baseClass = v7992.getPrototypeOf(v7993); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v7994 = {}; -v7994.constructor = v7991; -v7991.prototype = v7994; -v7990.push(v7991); -v7989.apiCallAttempt = v7990; -const v7995 = []; -var v7996; -v7996 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7977.getPrototypeOf(v7993); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v7997 = {}; -v7997.constructor = v7996; -v7996.prototype = v7997; -v7995.push(v7996); -v7989.apiCall = v7995; -v7988._events = v7989; -v7988.MONITOR_EVENTS_BUBBLE = v7991; -v7988.CALL_EVENTS_BUBBLE = v7996; -v7985.prototype = v7988; -v7985.__super__ = v299; -const v7998 = {}; -v7998[\\"2017-10-11\\"] = null; -v7985.services = v7998; -const v7999 = []; -v7999.push(\\"2017-10-11\\"); -v7985.apiVersions = v7999; -v7985.serviceIdentifier = \\"synthetics\\"; -v2.Synthetics = v7985; -var v8000; -var v8001 = v299; -var v8002 = v31; -v8000 = function () { if (v8001 !== v8002) { - return v8001.apply(this, arguments); -} }; -const v8003 = Object.create(v309); -v8003.constructor = v8000; -const v8004 = {}; -const v8005 = []; -var v8006; -var v8007 = v31; -var v8008 = v8003; -v8006 = function EVENTS_BUBBLE(event) { var baseClass = v8007.getPrototypeOf(v8008); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8009 = {}; -v8009.constructor = v8006; -v8006.prototype = v8009; -v8005.push(v8006); -v8004.apiCallAttempt = v8005; -const v8010 = []; -var v8011; -v8011 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v7992.getPrototypeOf(v8008); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8012 = {}; -v8012.constructor = v8011; -v8011.prototype = v8012; -v8010.push(v8011); -v8004.apiCall = v8010; -v8003._events = v8004; -v8003.MONITOR_EVENTS_BUBBLE = v8006; -v8003.CALL_EVENTS_BUBBLE = v8011; -v8000.prototype = v8003; -v8000.__super__ = v299; -const v8013 = {}; -v8013[\\"2019-12-02\\"] = null; -v8000.services = v8013; -const v8014 = []; -v8014.push(\\"2019-12-02\\"); -v8000.apiVersions = v8014; -v8000.serviceIdentifier = \\"iotsitewise\\"; -v2.IoTSiteWise = v8000; -var v8015; -var v8016 = v299; -var v8017 = v31; -v8015 = function () { if (v8016 !== v8017) { - return v8016.apply(this, arguments); -} }; -const v8018 = Object.create(v309); -v8018.constructor = v8015; -const v8019 = {}; -const v8020 = []; -var v8021; -var v8022 = v31; -var v8023 = v8018; -v8021 = function EVENTS_BUBBLE(event) { var baseClass = v8022.getPrototypeOf(v8023); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8024 = {}; -v8024.constructor = v8021; -v8021.prototype = v8024; -v8020.push(v8021); -v8019.apiCallAttempt = v8020; -const v8025 = []; -var v8026; -v8026 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8007.getPrototypeOf(v8023); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8027 = {}; -v8027.constructor = v8026; -v8026.prototype = v8027; -v8025.push(v8026); -v8019.apiCall = v8025; -v8018._events = v8019; -v8018.MONITOR_EVENTS_BUBBLE = v8021; -v8018.CALL_EVENTS_BUBBLE = v8026; -v8015.prototype = v8018; -v8015.__super__ = v299; -const v8028 = {}; -v8028[\\"2020-01-01\\"] = null; -v8015.services = v8028; -const v8029 = []; -v8029.push(\\"2020-01-01\\"); -v8015.apiVersions = v8029; -v8015.serviceIdentifier = \\"macie2\\"; -v2.Macie2 = v8015; -var v8030; -var v8031 = v299; -var v8032 = v31; -v8030 = function () { if (v8031 !== v8032) { - return v8031.apply(this, arguments); -} }; -const v8033 = Object.create(v309); -v8033.constructor = v8030; -const v8034 = {}; -const v8035 = []; -var v8036; -var v8037 = v31; -var v8038 = v8033; -v8036 = function EVENTS_BUBBLE(event) { var baseClass = v8037.getPrototypeOf(v8038); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8039 = {}; -v8039.constructor = v8036; -v8036.prototype = v8039; -v8035.push(v8036); -v8034.apiCallAttempt = v8035; -const v8040 = []; -var v8041; -v8041 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8022.getPrototypeOf(v8038); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8042 = {}; -v8042.constructor = v8041; -v8041.prototype = v8042; -v8040.push(v8041); -v8034.apiCall = v8040; -v8033._events = v8034; -v8033.MONITOR_EVENTS_BUBBLE = v8036; -v8033.CALL_EVENTS_BUBBLE = v8041; -v8030.prototype = v8033; -v8030.__super__ = v299; -const v8043 = {}; -v8043[\\"2018-09-22\\"] = null; -v8030.services = v8043; -const v8044 = []; -v8044.push(\\"2018-09-22\\"); -v8030.apiVersions = v8044; -v8030.serviceIdentifier = \\"codeartifact\\"; -v2.CodeArtifact = v8030; -var v8045; -var v8046 = v299; -var v8047 = v31; -v8045 = function () { if (v8046 !== v8047) { - return v8046.apply(this, arguments); -} }; -const v8048 = Object.create(v309); -v8048.constructor = v8045; -const v8049 = {}; -const v8050 = []; -var v8051; -var v8052 = v31; -var v8053 = v8048; -v8051 = function EVENTS_BUBBLE(event) { var baseClass = v8052.getPrototypeOf(v8053); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8054 = {}; -v8054.constructor = v8051; -v8051.prototype = v8054; -v8050.push(v8051); -v8049.apiCallAttempt = v8050; -const v8055 = []; -var v8056; -v8056 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8037.getPrototypeOf(v8053); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8057 = {}; -v8057.constructor = v8056; -v8056.prototype = v8057; -v8055.push(v8056); -v8049.apiCall = v8055; -v8048._events = v8049; -v8048.MONITOR_EVENTS_BUBBLE = v8051; -v8048.CALL_EVENTS_BUBBLE = v8056; -v8045.prototype = v8048; -v8045.__super__ = v299; -const v8058 = {}; -v8058[\\"2020-03-01\\"] = null; -v8045.services = v8058; -const v8059 = []; -v8059.push(\\"2020-03-01\\"); -v8045.apiVersions = v8059; -v8045.serviceIdentifier = \\"honeycode\\"; -v2.Honeycode = v8045; -var v8060; -var v8061 = v299; -var v8062 = v31; -v8060 = function () { if (v8061 !== v8062) { - return v8061.apply(this, arguments); -} }; -const v8063 = Object.create(v309); -v8063.constructor = v8060; -const v8064 = {}; -const v8065 = []; -var v8066; -var v8067 = v31; -var v8068 = v8063; -v8066 = function EVENTS_BUBBLE(event) { var baseClass = v8067.getPrototypeOf(v8068); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8069 = {}; -v8069.constructor = v8066; -v8066.prototype = v8069; -v8065.push(v8066); -v8064.apiCallAttempt = v8065; -const v8070 = []; -var v8071; -v8071 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8052.getPrototypeOf(v8068); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8072 = {}; -v8072.constructor = v8071; -v8071.prototype = v8072; -v8070.push(v8071); -v8064.apiCall = v8070; -v8063._events = v8064; -v8063.MONITOR_EVENTS_BUBBLE = v8066; -v8063.CALL_EVENTS_BUBBLE = v8071; -v8060.prototype = v8063; -v8060.__super__ = v299; -const v8073 = {}; -v8073[\\"2020-07-14\\"] = null; -v8060.services = v8073; -const v8074 = []; -v8074.push(\\"2020-07-14\\"); -v8060.apiVersions = v8074; -v8060.serviceIdentifier = \\"ivs\\"; -v2.IVS = v8060; -var v8075; -var v8076 = v299; -var v8077 = v31; -v8075 = function () { if (v8076 !== v8077) { - return v8076.apply(this, arguments); -} }; -const v8078 = Object.create(v309); -v8078.constructor = v8075; -const v8079 = {}; -const v8080 = []; -var v8081; -var v8082 = v31; -var v8083 = v8078; -v8081 = function EVENTS_BUBBLE(event) { var baseClass = v8082.getPrototypeOf(v8083); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8084 = {}; -v8084.constructor = v8081; -v8081.prototype = v8084; -v8080.push(v8081); -v8079.apiCallAttempt = v8080; -const v8085 = []; -var v8086; -v8086 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8067.getPrototypeOf(v8083); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8087 = {}; -v8087.constructor = v8086; -v8086.prototype = v8087; -v8085.push(v8086); -v8079.apiCall = v8085; -v8078._events = v8079; -v8078.MONITOR_EVENTS_BUBBLE = v8081; -v8078.CALL_EVENTS_BUBBLE = v8086; -v8075.prototype = v8078; -v8075.__super__ = v299; -const v8088 = {}; -v8088[\\"2019-09-01\\"] = null; -v8075.services = v8088; -const v8089 = []; -v8089.push(\\"2019-09-01\\"); -v8075.apiVersions = v8089; -v8075.serviceIdentifier = \\"braket\\"; -v2.Braket = v8075; -var v8090; -var v8091 = v299; -var v8092 = v31; -v8090 = function () { if (v8091 !== v8092) { - return v8091.apply(this, arguments); -} }; -const v8093 = Object.create(v309); -v8093.constructor = v8090; -const v8094 = {}; -const v8095 = []; -var v8096; -var v8097 = v31; -var v8098 = v8093; -v8096 = function EVENTS_BUBBLE(event) { var baseClass = v8097.getPrototypeOf(v8098); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8099 = {}; -v8099.constructor = v8096; -v8096.prototype = v8099; -v8095.push(v8096); -v8094.apiCallAttempt = v8095; -const v8100 = []; -var v8101; -v8101 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8082.getPrototypeOf(v8098); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8102 = {}; -v8102.constructor = v8101; -v8101.prototype = v8102; -v8100.push(v8101); -v8094.apiCall = v8100; -v8093._events = v8094; -v8093.MONITOR_EVENTS_BUBBLE = v8096; -v8093.CALL_EVENTS_BUBBLE = v8101; -v8090.prototype = v8093; -v8090.__super__ = v299; -const v8103 = {}; -v8103[\\"2020-06-15\\"] = null; -v8090.services = v8103; -const v8104 = []; -v8104.push(\\"2020-06-15\\"); -v8090.apiVersions = v8104; -v8090.serviceIdentifier = \\"identitystore\\"; -v2.IdentityStore = v8090; -var v8105; -var v8106 = v299; -var v8107 = v31; -v8105 = function () { if (v8106 !== v8107) { - return v8106.apply(this, arguments); -} }; -const v8108 = Object.create(v309); -v8108.constructor = v8105; -const v8109 = {}; -const v8110 = []; -var v8111; -var v8112 = v31; -var v8113 = v8108; -v8111 = function EVENTS_BUBBLE(event) { var baseClass = v8112.getPrototypeOf(v8113); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8114 = {}; -v8114.constructor = v8111; -v8111.prototype = v8114; -v8110.push(v8111); -v8109.apiCallAttempt = v8110; -const v8115 = []; -var v8116; -v8116 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8097.getPrototypeOf(v8113); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8117 = {}; -v8117.constructor = v8116; -v8116.prototype = v8117; -v8115.push(v8116); -v8109.apiCall = v8115; -v8108._events = v8109; -v8108.MONITOR_EVENTS_BUBBLE = v8111; -v8108.CALL_EVENTS_BUBBLE = v8116; -v8105.prototype = v8108; -v8105.__super__ = v299; -const v8118 = {}; -v8118[\\"2020-08-23\\"] = null; -v8105.services = v8118; -const v8119 = []; -v8119.push(\\"2020-08-23\\"); -v8105.apiVersions = v8119; -v8105.serviceIdentifier = \\"appflow\\"; -v2.Appflow = v8105; -var v8120; -var v8121 = v299; -var v8122 = v31; -v8120 = function () { if (v8121 !== v8122) { - return v8121.apply(this, arguments); -} }; -const v8123 = Object.create(v309); -v8123.constructor = v8120; -const v8124 = {}; -const v8125 = []; -var v8126; -var v8127 = v31; -var v8128 = v8123; -v8126 = function EVENTS_BUBBLE(event) { var baseClass = v8127.getPrototypeOf(v8128); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8129 = {}; -v8129.constructor = v8126; -v8126.prototype = v8129; -v8125.push(v8126); -v8124.apiCallAttempt = v8125; -const v8130 = []; -var v8131; -v8131 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8112.getPrototypeOf(v8128); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8132 = {}; -v8132.constructor = v8131; -v8131.prototype = v8132; -v8130.push(v8131); -v8124.apiCall = v8130; -v8123._events = v8124; -v8123.MONITOR_EVENTS_BUBBLE = v8126; -v8123.CALL_EVENTS_BUBBLE = v8131; -v8120.prototype = v8123; -v8120.__super__ = v299; -const v8133 = {}; -v8133[\\"2019-12-20\\"] = null; -v8120.services = v8133; -const v8134 = []; -v8134.push(\\"2019-12-20\\"); -v8120.apiVersions = v8134; -v8120.serviceIdentifier = \\"redshiftdata\\"; -v2.RedshiftData = v8120; -var v8135; -var v8136 = v299; -var v8137 = v31; -v8135 = function () { if (v8136 !== v8137) { - return v8136.apply(this, arguments); -} }; -const v8138 = Object.create(v309); -v8138.constructor = v8135; -const v8139 = {}; -const v8140 = []; -var v8141; -var v8142 = v31; -var v8143 = v8138; -v8141 = function EVENTS_BUBBLE(event) { var baseClass = v8142.getPrototypeOf(v8143); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8144 = {}; -v8144.constructor = v8141; -v8141.prototype = v8144; -v8140.push(v8141); -v8139.apiCallAttempt = v8140; -const v8145 = []; -var v8146; -v8146 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8127.getPrototypeOf(v8143); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8147 = {}; -v8147.constructor = v8146; -v8146.prototype = v8147; -v8145.push(v8146); -v8139.apiCall = v8145; -v8138._events = v8139; -v8138.MONITOR_EVENTS_BUBBLE = v8141; -v8138.CALL_EVENTS_BUBBLE = v8146; -v8135.prototype = v8138; -v8135.__super__ = v299; -const v8148 = {}; -v8148[\\"2020-07-20\\"] = null; -v8135.services = v8148; -const v8149 = []; -v8149.push(\\"2020-07-20\\"); -v8135.apiVersions = v8149; -v8135.serviceIdentifier = \\"ssoadmin\\"; -v2.SSOAdmin = v8135; -var v8150; -var v8151 = v299; -var v8152 = v31; -v8150 = function () { if (v8151 !== v8152) { - return v8151.apply(this, arguments); -} }; -const v8153 = Object.create(v309); -v8153.constructor = v8150; -const v8154 = {}; -const v8155 = []; -var v8156; -var v8157 = v31; -var v8158 = v8153; -v8156 = function EVENTS_BUBBLE(event) { var baseClass = v8157.getPrototypeOf(v8158); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8159 = {}; -v8159.constructor = v8156; -v8156.prototype = v8159; -v8155.push(v8156); -v8154.apiCallAttempt = v8155; -const v8160 = []; -var v8161; -v8161 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8142.getPrototypeOf(v8158); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8162 = {}; -v8162.constructor = v8161; -v8161.prototype = v8162; -v8160.push(v8161); -v8154.apiCall = v8160; -v8153._events = v8154; -v8153.MONITOR_EVENTS_BUBBLE = v8156; -v8153.CALL_EVENTS_BUBBLE = v8161; -v8150.prototype = v8153; -v8150.__super__ = v299; -const v8163 = {}; -v8163[\\"2018-11-01\\"] = null; -v8150.services = v8163; -const v8164 = []; -v8164.push(\\"2018-11-01\\"); -v8150.apiVersions = v8164; -v8150.serviceIdentifier = \\"timestreamquery\\"; -v2.TimestreamQuery = v8150; -var v8165; -var v8166 = v299; -var v8167 = v31; -v8165 = function () { if (v8166 !== v8167) { - return v8166.apply(this, arguments); -} }; -const v8168 = Object.create(v309); -v8168.constructor = v8165; -const v8169 = {}; -const v8170 = []; -var v8171; -var v8172 = v31; -var v8173 = v8168; -v8171 = function EVENTS_BUBBLE(event) { var baseClass = v8172.getPrototypeOf(v8173); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8174 = {}; -v8174.constructor = v8171; -v8171.prototype = v8174; -v8170.push(v8171); -v8169.apiCallAttempt = v8170; -const v8175 = []; -var v8176; -v8176 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8157.getPrototypeOf(v8173); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8177 = {}; -v8177.constructor = v8176; -v8176.prototype = v8177; -v8175.push(v8176); -v8169.apiCall = v8175; -v8168._events = v8169; -v8168.MONITOR_EVENTS_BUBBLE = v8171; -v8168.CALL_EVENTS_BUBBLE = v8176; -v8165.prototype = v8168; -v8165.__super__ = v299; -const v8178 = {}; -v8178[\\"2018-11-01\\"] = null; -v8165.services = v8178; -const v8179 = []; -v8179.push(\\"2018-11-01\\"); -v8165.apiVersions = v8179; -v8165.serviceIdentifier = \\"timestreamwrite\\"; -v2.TimestreamWrite = v8165; -var v8180; -var v8181 = v299; -var v8182 = v31; -v8180 = function () { if (v8181 !== v8182) { - return v8181.apply(this, arguments); -} }; -const v8183 = Object.create(v309); -v8183.constructor = v8180; -const v8184 = {}; -const v8185 = []; -var v8186; -var v8187 = v31; -var v8188 = v8183; -v8186 = function EVENTS_BUBBLE(event) { var baseClass = v8187.getPrototypeOf(v8188); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8189 = {}; -v8189.constructor = v8186; -v8186.prototype = v8189; -v8185.push(v8186); -v8184.apiCallAttempt = v8185; -const v8190 = []; -var v8191; -v8191 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8172.getPrototypeOf(v8188); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8192 = {}; -v8192.constructor = v8191; -v8191.prototype = v8192; -v8190.push(v8191); -v8184.apiCall = v8190; -v8183._events = v8184; -v8183.MONITOR_EVENTS_BUBBLE = v8186; -v8183.CALL_EVENTS_BUBBLE = v8191; -v8180.prototype = v8183; -v8180.__super__ = v299; -const v8193 = {}; -v8193[\\"2017-07-25\\"] = null; -v8180.services = v8193; -const v8194 = []; -v8194.push(\\"2017-07-25\\"); -v8180.apiVersions = v8194; -v8180.serviceIdentifier = \\"s3outposts\\"; -v2.S3Outposts = v8180; -var v8195; -var v8196 = v299; -var v8197 = v31; -v8195 = function () { if (v8196 !== v8197) { - return v8196.apply(this, arguments); -} }; -const v8198 = Object.create(v309); -v8198.constructor = v8195; -const v8199 = {}; -const v8200 = []; -var v8201; -var v8202 = v31; -var v8203 = v8198; -v8201 = function EVENTS_BUBBLE(event) { var baseClass = v8202.getPrototypeOf(v8203); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8204 = {}; -v8204.constructor = v8201; -v8201.prototype = v8204; -v8200.push(v8201); -v8199.apiCallAttempt = v8200; -const v8205 = []; -var v8206; -v8206 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8187.getPrototypeOf(v8203); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8207 = {}; -v8207.constructor = v8206; -v8206.prototype = v8207; -v8205.push(v8206); -v8199.apiCall = v8205; -v8198._events = v8199; -v8198.MONITOR_EVENTS_BUBBLE = v8201; -v8198.CALL_EVENTS_BUBBLE = v8206; -v8195.prototype = v8198; -v8195.__super__ = v299; -const v8208 = {}; -v8208[\\"2017-07-25\\"] = null; -v8195.services = v8208; -const v8209 = []; -v8209.push(\\"2017-07-25\\"); -v8195.apiVersions = v8209; -v8195.serviceIdentifier = \\"databrew\\"; -v2.DataBrew = v8195; -var v8210; -var v8211 = v299; -var v8212 = v31; -v8210 = function () { if (v8211 !== v8212) { - return v8211.apply(this, arguments); -} }; -const v8213 = Object.create(v309); -v8213.constructor = v8210; -const v8214 = {}; -const v8215 = []; -var v8216; -var v8217 = v31; -var v8218 = v8213; -v8216 = function EVENTS_BUBBLE(event) { var baseClass = v8217.getPrototypeOf(v8218); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8219 = {}; -v8219.constructor = v8216; -v8216.prototype = v8219; -v8215.push(v8216); -v8214.apiCallAttempt = v8215; -const v8220 = []; -var v8221; -v8221 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8202.getPrototypeOf(v8218); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8222 = {}; -v8222.constructor = v8221; -v8221.prototype = v8222; -v8220.push(v8221); -v8214.apiCall = v8220; -v8213._events = v8214; -v8213.MONITOR_EVENTS_BUBBLE = v8216; -v8213.CALL_EVENTS_BUBBLE = v8221; -v8210.prototype = v8213; -v8210.__super__ = v299; -const v8223 = {}; -v8223[\\"2020-06-24\\"] = null; -v8210.services = v8223; -const v8224 = []; -v8224.push(\\"2020-06-24\\"); -v8210.apiVersions = v8224; -v8210.serviceIdentifier = \\"servicecatalogappregistry\\"; -v2.ServiceCatalogAppRegistry = v8210; -var v8225; -var v8226 = v299; -var v8227 = v31; -v8225 = function () { if (v8226 !== v8227) { - return v8226.apply(this, arguments); -} }; -const v8228 = Object.create(v309); -v8228.constructor = v8225; -const v8229 = {}; -const v8230 = []; -var v8231; -var v8232 = v31; -var v8233 = v8228; -v8231 = function EVENTS_BUBBLE(event) { var baseClass = v8232.getPrototypeOf(v8233); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8234 = {}; -v8234.constructor = v8231; -v8231.prototype = v8234; -v8230.push(v8231); -v8229.apiCallAttempt = v8230; -const v8235 = []; -var v8236; -v8236 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8217.getPrototypeOf(v8233); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8237 = {}; -v8237.constructor = v8236; -v8236.prototype = v8237; -v8235.push(v8236); -v8229.apiCall = v8235; -v8228._events = v8229; -v8228.MONITOR_EVENTS_BUBBLE = v8231; -v8228.CALL_EVENTS_BUBBLE = v8236; -v8225.prototype = v8228; -v8225.__super__ = v299; -const v8238 = {}; -v8238[\\"2020-11-12\\"] = null; -v8225.services = v8238; -const v8239 = []; -v8239.push(\\"2020-11-12\\"); -v8225.apiVersions = v8239; -v8225.serviceIdentifier = \\"networkfirewall\\"; -v2.NetworkFirewall = v8225; -var v8240; -var v8241 = v299; -var v8242 = v31; -v8240 = function () { if (v8241 !== v8242) { - return v8241.apply(this, arguments); -} }; -const v8243 = Object.create(v309); -v8243.constructor = v8240; -const v8244 = {}; -const v8245 = []; -var v8246; -var v8247 = v31; -var v8248 = v8243; -v8246 = function EVENTS_BUBBLE(event) { var baseClass = v8247.getPrototypeOf(v8248); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8249 = {}; -v8249.constructor = v8246; -v8246.prototype = v8249; -v8245.push(v8246); -v8244.apiCallAttempt = v8245; -const v8250 = []; -var v8251; -v8251 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8232.getPrototypeOf(v8248); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8252 = {}; -v8252.constructor = v8251; -v8251.prototype = v8252; -v8250.push(v8251); -v8244.apiCall = v8250; -v8243._events = v8244; -v8243.MONITOR_EVENTS_BUBBLE = v8246; -v8243.CALL_EVENTS_BUBBLE = v8251; -v8240.prototype = v8243; -v8240.__super__ = v299; -const v8253 = {}; -v8253[\\"2020-07-01\\"] = null; -v8240.services = v8253; -const v8254 = []; -v8254.push(\\"2020-07-01\\"); -v8240.apiVersions = v8254; -v8240.serviceIdentifier = \\"mwaa\\"; -v2.MWAA = v8240; -var v8255; -var v8256 = v299; -var v8257 = v31; -v8255 = function () { if (v8256 !== v8257) { - return v8256.apply(this, arguments); -} }; -const v8258 = Object.create(v309); -v8258.constructor = v8255; -const v8259 = {}; -const v8260 = []; -var v8261; -var v8262 = v31; -var v8263 = v8258; -v8261 = function EVENTS_BUBBLE(event) { var baseClass = v8262.getPrototypeOf(v8263); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8264 = {}; -v8264.constructor = v8261; -v8261.prototype = v8264; -v8260.push(v8261); -v8259.apiCallAttempt = v8260; -const v8265 = []; -var v8266; -v8266 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8247.getPrototypeOf(v8263); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8267 = {}; -v8267.constructor = v8266; -v8266.prototype = v8267; -v8265.push(v8266); -v8259.apiCall = v8265; -v8258._events = v8259; -v8258.MONITOR_EVENTS_BUBBLE = v8261; -v8258.CALL_EVENTS_BUBBLE = v8266; -v8255.prototype = v8258; -v8255.__super__ = v299; -const v8268 = {}; -v8268[\\"2020-08-11\\"] = null; -v8255.services = v8268; -const v8269 = []; -v8269.push(\\"2020-08-11\\"); -v8255.apiVersions = v8269; -v8255.serviceIdentifier = \\"amplifybackend\\"; -v2.AmplifyBackend = v8255; -var v8270; -var v8271 = v299; -var v8272 = v31; -v8270 = function () { if (v8271 !== v8272) { - return v8271.apply(this, arguments); -} }; -const v8273 = Object.create(v309); -v8273.constructor = v8270; -const v8274 = {}; -const v8275 = []; -var v8276; -var v8277 = v31; -var v8278 = v8273; -v8276 = function EVENTS_BUBBLE(event) { var baseClass = v8277.getPrototypeOf(v8278); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8279 = {}; -v8279.constructor = v8276; -v8276.prototype = v8279; -v8275.push(v8276); -v8274.apiCallAttempt = v8275; -const v8280 = []; -var v8281; -v8281 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8262.getPrototypeOf(v8278); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8282 = {}; -v8282.constructor = v8281; -v8281.prototype = v8282; -v8280.push(v8281); -v8274.apiCall = v8280; -v8273._events = v8274; -v8273.MONITOR_EVENTS_BUBBLE = v8276; -v8273.CALL_EVENTS_BUBBLE = v8281; -v8270.prototype = v8273; -v8270.__super__ = v299; -const v8283 = {}; -v8283[\\"2020-07-29\\"] = null; -v8270.services = v8283; -const v8284 = []; -v8284.push(\\"2020-07-29\\"); -v8270.apiVersions = v8284; -v8270.serviceIdentifier = \\"appintegrations\\"; -v2.AppIntegrations = v8270; -var v8285; -var v8286 = v299; -var v8287 = v31; -v8285 = function () { if (v8286 !== v8287) { - return v8286.apply(this, arguments); -} }; -const v8288 = Object.create(v309); -v8288.constructor = v8285; -const v8289 = {}; -const v8290 = []; -var v8291; -var v8292 = v31; -var v8293 = v8288; -v8291 = function EVENTS_BUBBLE(event) { var baseClass = v8292.getPrototypeOf(v8293); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8294 = {}; -v8294.constructor = v8291; -v8291.prototype = v8294; -v8290.push(v8291); -v8289.apiCallAttempt = v8290; -const v8295 = []; -var v8296; -v8296 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8277.getPrototypeOf(v8293); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8297 = {}; -v8297.constructor = v8296; -v8296.prototype = v8297; -v8295.push(v8296); -v8289.apiCall = v8295; -v8288._events = v8289; -v8288.MONITOR_EVENTS_BUBBLE = v8291; -v8288.CALL_EVENTS_BUBBLE = v8296; -v8285.prototype = v8288; -v8285.__super__ = v299; -const v8298 = {}; -v8298[\\"2020-08-21\\"] = null; -v8285.services = v8298; -const v8299 = []; -v8299.push(\\"2020-08-21\\"); -v8285.apiVersions = v8299; -v8285.serviceIdentifier = \\"connectcontactlens\\"; -v2.ConnectContactLens = v8285; -var v8300; -var v8301 = v299; -var v8302 = v31; -v8300 = function () { if (v8301 !== v8302) { - return v8301.apply(this, arguments); -} }; -const v8303 = Object.create(v309); -v8303.constructor = v8300; -const v8304 = {}; -const v8305 = []; -var v8306; -var v8307 = v31; -var v8308 = v8303; -v8306 = function EVENTS_BUBBLE(event) { var baseClass = v8307.getPrototypeOf(v8308); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8309 = {}; -v8309.constructor = v8306; -v8306.prototype = v8309; -v8305.push(v8306); -v8304.apiCallAttempt = v8305; -const v8310 = []; -var v8311; -v8311 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8292.getPrototypeOf(v8308); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8312 = {}; -v8312.constructor = v8311; -v8311.prototype = v8312; -v8310.push(v8311); -v8304.apiCall = v8310; -v8303._events = v8304; -v8303.MONITOR_EVENTS_BUBBLE = v8306; -v8303.CALL_EVENTS_BUBBLE = v8311; -v8300.prototype = v8303; -v8300.__super__ = v299; -const v8313 = {}; -v8313[\\"2020-12-01\\"] = null; -v8300.services = v8313; -const v8314 = []; -v8314.push(\\"2020-12-01\\"); -v8300.apiVersions = v8314; -v8300.serviceIdentifier = \\"devopsguru\\"; -v2.DevOpsGuru = v8300; -var v8315; -var v8316 = v299; -var v8317 = v31; -v8315 = function () { if (v8316 !== v8317) { - return v8316.apply(this, arguments); -} }; -const v8318 = Object.create(v309); -v8318.constructor = v8315; -const v8319 = {}; -const v8320 = []; -var v8321; -var v8322 = v31; -var v8323 = v8318; -v8321 = function EVENTS_BUBBLE(event) { var baseClass = v8322.getPrototypeOf(v8323); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8324 = {}; -v8324.constructor = v8321; -v8321.prototype = v8324; -v8320.push(v8321); -v8319.apiCallAttempt = v8320; -const v8325 = []; -var v8326; -v8326 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8307.getPrototypeOf(v8323); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8327 = {}; -v8327.constructor = v8326; -v8326.prototype = v8327; -v8325.push(v8326); -v8319.apiCall = v8325; -v8318._events = v8319; -v8318.MONITOR_EVENTS_BUBBLE = v8321; -v8318.CALL_EVENTS_BUBBLE = v8326; -v8315.prototype = v8318; -v8315.__super__ = v299; -const v8328 = {}; -v8328[\\"2020-10-30\\"] = null; -v8315.services = v8328; -const v8329 = []; -v8329.push(\\"2020-10-30\\"); -v8315.apiVersions = v8329; -v8315.serviceIdentifier = \\"ecrpublic\\"; -v2.ECRPUBLIC = v8315; -var v8330; -var v8331 = v299; -var v8332 = v31; -v8330 = function () { if (v8331 !== v8332) { - return v8331.apply(this, arguments); -} }; -const v8333 = Object.create(v309); -v8333.constructor = v8330; -const v8334 = {}; -const v8335 = []; -var v8336; -var v8337 = v31; -var v8338 = v8333; -v8336 = function EVENTS_BUBBLE(event) { var baseClass = v8337.getPrototypeOf(v8338); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8339 = {}; -v8339.constructor = v8336; -v8336.prototype = v8339; -v8335.push(v8336); -v8334.apiCallAttempt = v8335; -const v8340 = []; -var v8341; -v8341 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8322.getPrototypeOf(v8338); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8342 = {}; -v8342.constructor = v8341; -v8341.prototype = v8342; -v8340.push(v8341); -v8334.apiCall = v8340; -v8333._events = v8334; -v8333.MONITOR_EVENTS_BUBBLE = v8336; -v8333.CALL_EVENTS_BUBBLE = v8341; -v8330.prototype = v8333; -v8330.__super__ = v299; -const v8343 = {}; -v8343[\\"2020-11-20\\"] = null; -v8330.services = v8343; -const v8344 = []; -v8344.push(\\"2020-11-20\\"); -v8330.apiVersions = v8344; -v8330.serviceIdentifier = \\"lookoutvision\\"; -v2.LookoutVision = v8330; -var v8345; -var v8346 = v299; -var v8347 = v31; -v8345 = function () { if (v8346 !== v8347) { - return v8346.apply(this, arguments); -} }; -const v8348 = Object.create(v309); -v8348.constructor = v8345; -const v8349 = {}; -const v8350 = []; -var v8351; -var v8352 = v31; -var v8353 = v8348; -v8351 = function EVENTS_BUBBLE(event) { var baseClass = v8352.getPrototypeOf(v8353); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8354 = {}; -v8354.constructor = v8351; -v8351.prototype = v8354; -v8350.push(v8351); -v8349.apiCallAttempt = v8350; -const v8355 = []; -var v8356; -v8356 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8337.getPrototypeOf(v8353); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8357 = {}; -v8357.constructor = v8356; -v8356.prototype = v8357; -v8355.push(v8356); -v8349.apiCall = v8355; -v8348._events = v8349; -v8348.MONITOR_EVENTS_BUBBLE = v8351; -v8348.CALL_EVENTS_BUBBLE = v8356; -v8345.prototype = v8348; -v8345.__super__ = v299; -const v8358 = {}; -v8358[\\"2020-07-01\\"] = null; -v8345.services = v8358; -const v8359 = []; -v8359.push(\\"2020-07-01\\"); -v8345.apiVersions = v8359; -v8345.serviceIdentifier = \\"sagemakerfeaturestoreruntime\\"; -v2.SageMakerFeatureStoreRuntime = v8345; -var v8360; -var v8361 = v299; -var v8362 = v31; -v8360 = function () { if (v8361 !== v8362) { - return v8361.apply(this, arguments); -} }; -const v8363 = Object.create(v309); -v8363.constructor = v8360; -const v8364 = {}; -const v8365 = []; -var v8366; -var v8367 = v31; -var v8368 = v8363; -v8366 = function EVENTS_BUBBLE(event) { var baseClass = v8367.getPrototypeOf(v8368); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8369 = {}; -v8369.constructor = v8366; -v8366.prototype = v8369; -v8365.push(v8366); -v8364.apiCallAttempt = v8365; -const v8370 = []; -var v8371; -v8371 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8352.getPrototypeOf(v8368); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8372 = {}; -v8372.constructor = v8371; -v8371.prototype = v8372; -v8370.push(v8371); -v8364.apiCall = v8370; -v8363._events = v8364; -v8363.MONITOR_EVENTS_BUBBLE = v8366; -v8363.CALL_EVENTS_BUBBLE = v8371; -v8360.prototype = v8363; -v8360.__super__ = v299; -const v8373 = {}; -v8373[\\"2020-08-15\\"] = null; -v8360.services = v8373; -const v8374 = []; -v8374.push(\\"2020-08-15\\"); -v8360.apiVersions = v8374; -v8360.serviceIdentifier = \\"customerprofiles\\"; -v2.CustomerProfiles = v8360; -var v8375; -var v8376 = v299; -var v8377 = v31; -v8375 = function () { if (v8376 !== v8377) { - return v8376.apply(this, arguments); -} }; -const v8378 = Object.create(v309); -v8378.constructor = v8375; -const v8379 = {}; -const v8380 = []; -var v8381; -var v8382 = v31; -var v8383 = v8378; -v8381 = function EVENTS_BUBBLE(event) { var baseClass = v8382.getPrototypeOf(v8383); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8384 = {}; -v8384.constructor = v8381; -v8381.prototype = v8384; -v8380.push(v8381); -v8379.apiCallAttempt = v8380; -const v8385 = []; -var v8386; -v8386 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8367.getPrototypeOf(v8383); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8387 = {}; -v8387.constructor = v8386; -v8386.prototype = v8387; -v8385.push(v8386); -v8379.apiCall = v8385; -v8378._events = v8379; -v8378.MONITOR_EVENTS_BUBBLE = v8381; -v8378.CALL_EVENTS_BUBBLE = v8386; -v8375.prototype = v8378; -v8375.__super__ = v299; -const v8388 = {}; -v8388[\\"2017-07-25\\"] = null; -v8375.services = v8388; -const v8389 = []; -v8389.push(\\"2017-07-25\\"); -v8375.apiVersions = v8389; -v8375.serviceIdentifier = \\"auditmanager\\"; -v2.AuditManager = v8375; -var v8390; -var v8391 = v299; -var v8392 = v31; -v8390 = function () { if (v8391 !== v8392) { - return v8391.apply(this, arguments); -} }; -const v8393 = Object.create(v309); -v8393.constructor = v8390; -const v8394 = {}; -const v8395 = []; -var v8396; -var v8397 = v31; -var v8398 = v8393; -v8396 = function EVENTS_BUBBLE(event) { var baseClass = v8397.getPrototypeOf(v8398); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8399 = {}; -v8399.constructor = v8396; -v8396.prototype = v8399; -v8395.push(v8396); -v8394.apiCallAttempt = v8395; -const v8400 = []; -var v8401; -v8401 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8382.getPrototypeOf(v8398); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8402 = {}; -v8402.constructor = v8401; -v8401.prototype = v8402; -v8400.push(v8401); -v8394.apiCall = v8400; -v8393._events = v8394; -v8393.MONITOR_EVENTS_BUBBLE = v8396; -v8393.CALL_EVENTS_BUBBLE = v8401; -v8390.prototype = v8393; -v8390.__super__ = v299; -const v8403 = {}; -v8403[\\"2020-10-01\\"] = null; -v8390.services = v8403; -const v8404 = []; -v8404.push(\\"2020-10-01\\"); -v8390.apiVersions = v8404; -v8390.serviceIdentifier = \\"emrcontainers\\"; -v2.EMRcontainers = v8390; -var v8405; -var v8406 = v299; -var v8407 = v31; -v8405 = function () { if (v8406 !== v8407) { - return v8406.apply(this, arguments); -} }; -const v8408 = Object.create(v309); -v8408.constructor = v8405; -const v8409 = {}; -const v8410 = []; -var v8411; -var v8412 = v31; -var v8413 = v8408; -v8411 = function EVENTS_BUBBLE(event) { var baseClass = v8412.getPrototypeOf(v8413); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8414 = {}; -v8414.constructor = v8411; -v8411.prototype = v8414; -v8410.push(v8411); -v8409.apiCallAttempt = v8410; -const v8415 = []; -var v8416; -v8416 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8397.getPrototypeOf(v8413); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8417 = {}; -v8417.constructor = v8416; -v8416.prototype = v8417; -v8415.push(v8416); -v8409.apiCall = v8415; -v8408._events = v8409; -v8408.MONITOR_EVENTS_BUBBLE = v8411; -v8408.CALL_EVENTS_BUBBLE = v8416; -v8405.prototype = v8408; -v8405.__super__ = v299; -const v8418 = {}; -v8418[\\"2017-07-01\\"] = null; -v8405.services = v8418; -const v8419 = []; -v8419.push(\\"2017-07-01\\"); -v8405.apiVersions = v8419; -v8405.serviceIdentifier = \\"healthlake\\"; -v2.HealthLake = v8405; -var v8420; -var v8421 = v299; -var v8422 = v31; -v8420 = function () { if (v8421 !== v8422) { - return v8421.apply(this, arguments); -} }; -const v8423 = Object.create(v309); -v8423.constructor = v8420; -const v8424 = {}; -const v8425 = []; -var v8426; -var v8427 = v31; -var v8428 = v8423; -v8426 = function EVENTS_BUBBLE(event) { var baseClass = v8427.getPrototypeOf(v8428); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8429 = {}; -v8429.constructor = v8426; -v8426.prototype = v8429; -v8425.push(v8426); -v8424.apiCallAttempt = v8425; -const v8430 = []; -var v8431; -v8431 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8412.getPrototypeOf(v8428); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8432 = {}; -v8432.constructor = v8431; -v8431.prototype = v8432; -v8430.push(v8431); -v8424.apiCall = v8430; -v8423._events = v8424; -v8423.MONITOR_EVENTS_BUBBLE = v8426; -v8423.CALL_EVENTS_BUBBLE = v8431; -v8420.prototype = v8423; -v8420.__super__ = v299; -const v8433 = {}; -v8433[\\"2020-09-23\\"] = null; -v8420.services = v8433; -const v8434 = []; -v8434.push(\\"2020-09-23\\"); -v8420.apiVersions = v8434; -v8420.serviceIdentifier = \\"sagemakeredge\\"; -v2.SagemakerEdge = v8420; -var v8435; -var v8436 = v299; -var v8437 = v31; -v8435 = function () { if (v8436 !== v8437) { - return v8436.apply(this, arguments); -} }; -const v8438 = Object.create(v309); -v8438.constructor = v8435; -const v8439 = {}; -const v8440 = []; -var v8441; -var v8442 = v31; -var v8443 = v8438; -v8441 = function EVENTS_BUBBLE(event) { var baseClass = v8442.getPrototypeOf(v8443); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8444 = {}; -v8444.constructor = v8441; -v8441.prototype = v8444; -v8440.push(v8441); -v8439.apiCallAttempt = v8440; -const v8445 = []; -var v8446; -v8446 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8427.getPrototypeOf(v8443); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8447 = {}; -v8447.constructor = v8446; -v8446.prototype = v8447; -v8445.push(v8446); -v8439.apiCall = v8445; -v8438._events = v8439; -v8438.MONITOR_EVENTS_BUBBLE = v8441; -v8438.CALL_EVENTS_BUBBLE = v8446; -v8435.prototype = v8438; -v8435.__super__ = v299; -const v8448 = {}; -v8448[\\"2020-08-01\\"] = null; -v8435.services = v8448; -const v8449 = []; -v8449.push(\\"2020-08-01\\"); -v8435.apiVersions = v8449; -v8435.serviceIdentifier = \\"amp\\"; -v2.Amp = v8435; -var v8450; -var v8451 = v299; -var v8452 = v31; -v8450 = function () { if (v8451 !== v8452) { - return v8451.apply(this, arguments); -} }; -const v8453 = Object.create(v309); -v8453.constructor = v8450; -const v8454 = {}; -const v8455 = []; -var v8456; -var v8457 = v31; -var v8458 = v8453; -v8456 = function EVENTS_BUBBLE(event) { var baseClass = v8457.getPrototypeOf(v8458); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8459 = {}; -v8459.constructor = v8456; -v8456.prototype = v8459; -v8455.push(v8456); -v8454.apiCallAttempt = v8455; -const v8460 = []; -var v8461; -v8461 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8442.getPrototypeOf(v8458); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8462 = {}; -v8462.constructor = v8461; -v8461.prototype = v8462; -v8460.push(v8461); -v8454.apiCall = v8460; -v8453._events = v8454; -v8453.MONITOR_EVENTS_BUBBLE = v8456; -v8453.CALL_EVENTS_BUBBLE = v8461; -v8450.prototype = v8453; -v8450.__super__ = v299; -const v8463 = {}; -v8463[\\"2020-11-30\\"] = null; -v8450.services = v8463; -const v8464 = []; -v8464.push(\\"2020-11-30\\"); -v8450.apiVersions = v8464; -v8450.serviceIdentifier = \\"greengrassv2\\"; -v2.GreengrassV2 = v8450; -var v8465; -var v8466 = v299; -var v8467 = v31; -v8465 = function () { if (v8466 !== v8467) { - return v8466.apply(this, arguments); -} }; -const v8468 = Object.create(v309); -v8468.constructor = v8465; -const v8469 = {}; -const v8470 = []; -var v8471; -var v8472 = v31; -var v8473 = v8468; -v8471 = function EVENTS_BUBBLE(event) { var baseClass = v8472.getPrototypeOf(v8473); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8474 = {}; -v8474.constructor = v8471; -v8471.prototype = v8474; -v8470.push(v8471); -v8469.apiCallAttempt = v8470; -const v8475 = []; -var v8476; -v8476 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8457.getPrototypeOf(v8473); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8477 = {}; -v8477.constructor = v8476; -v8476.prototype = v8477; -v8475.push(v8476); -v8469.apiCall = v8475; -v8468._events = v8469; -v8468.MONITOR_EVENTS_BUBBLE = v8471; -v8468.CALL_EVENTS_BUBBLE = v8476; -v8465.prototype = v8468; -v8465.__super__ = v299; -const v8478 = {}; -v8478[\\"2020-09-18\\"] = null; -v8465.services = v8478; -const v8479 = []; -v8479.push(\\"2020-09-18\\"); -v8465.apiVersions = v8479; -v8465.serviceIdentifier = \\"iotdeviceadvisor\\"; -v2.IotDeviceAdvisor = v8465; -var v8480; -var v8481 = v299; -var v8482 = v31; -v8480 = function () { if (v8481 !== v8482) { - return v8481.apply(this, arguments); -} }; -const v8483 = Object.create(v309); -v8483.constructor = v8480; -const v8484 = {}; -const v8485 = []; -var v8486; -var v8487 = v31; -var v8488 = v8483; -v8486 = function EVENTS_BUBBLE(event) { var baseClass = v8487.getPrototypeOf(v8488); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8489 = {}; -v8489.constructor = v8486; -v8486.prototype = v8489; -v8485.push(v8486); -v8484.apiCallAttempt = v8485; -const v8490 = []; -var v8491; -v8491 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8472.getPrototypeOf(v8488); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8492 = {}; -v8492.constructor = v8491; -v8491.prototype = v8492; -v8490.push(v8491); -v8484.apiCall = v8490; -v8483._events = v8484; -v8483.MONITOR_EVENTS_BUBBLE = v8486; -v8483.CALL_EVENTS_BUBBLE = v8491; -v8480.prototype = v8483; -v8480.__super__ = v299; -const v8493 = {}; -v8493[\\"2020-11-03\\"] = null; -v8480.services = v8493; -const v8494 = []; -v8494.push(\\"2020-11-03\\"); -v8480.apiVersions = v8494; -v8480.serviceIdentifier = \\"iotfleethub\\"; -v2.IoTFleetHub = v8480; -var v8495; -var v8496 = v299; -var v8497 = v31; -v8495 = function () { if (v8496 !== v8497) { - return v8496.apply(this, arguments); -} }; -const v8498 = Object.create(v309); -v8498.constructor = v8495; -const v8499 = {}; -const v8500 = []; -var v8501; -var v8502 = v31; -var v8503 = v8498; -v8501 = function EVENTS_BUBBLE(event) { var baseClass = v8502.getPrototypeOf(v8503); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8504 = {}; -v8504.constructor = v8501; -v8501.prototype = v8504; -v8500.push(v8501); -v8499.apiCallAttempt = v8500; -const v8505 = []; -var v8506; -v8506 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8487.getPrototypeOf(v8503); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8507 = {}; -v8507.constructor = v8506; -v8506.prototype = v8507; -v8505.push(v8506); -v8499.apiCall = v8505; -v8498._events = v8499; -v8498.MONITOR_EVENTS_BUBBLE = v8501; -v8498.CALL_EVENTS_BUBBLE = v8506; -v8495.prototype = v8498; -v8495.__super__ = v299; -const v8508 = {}; -v8508[\\"2020-11-22\\"] = null; -v8495.services = v8508; -const v8509 = []; -v8509.push(\\"2020-11-22\\"); -v8495.apiVersions = v8509; -v8495.serviceIdentifier = \\"iotwireless\\"; -v2.IoTWireless = v8495; -var v8510; -var v8511 = v299; -var v8512 = v31; -v8510 = function () { if (v8511 !== v8512) { - return v8511.apply(this, arguments); -} }; -const v8513 = Object.create(v309); -v8513.constructor = v8510; -const v8514 = {}; -const v8515 = []; -var v8516; -var v8517 = v31; -var v8518 = v8513; -v8516 = function EVENTS_BUBBLE(event) { var baseClass = v8517.getPrototypeOf(v8518); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8519 = {}; -v8519.constructor = v8516; -v8516.prototype = v8519; -v8515.push(v8516); -v8514.apiCallAttempt = v8515; -const v8520 = []; -var v8521; -v8521 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8502.getPrototypeOf(v8518); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8522 = {}; -v8522.constructor = v8521; -v8521.prototype = v8522; -v8520.push(v8521); -v8514.apiCall = v8520; -v8513._events = v8514; -v8513.MONITOR_EVENTS_BUBBLE = v8516; -v8513.CALL_EVENTS_BUBBLE = v8521; -v8510.prototype = v8513; -v8510.__super__ = v299; -const v8523 = {}; -v8523[\\"2020-11-19\\"] = null; -v8510.services = v8523; -const v8524 = []; -v8524.push(\\"2020-11-19\\"); -v8510.apiVersions = v8524; -v8510.serviceIdentifier = \\"location\\"; -v2.Location = v8510; -var v8525; -var v8526 = v299; -var v8527 = v31; -v8525 = function () { if (v8526 !== v8527) { - return v8526.apply(this, arguments); -} }; -const v8528 = Object.create(v309); -v8528.constructor = v8525; -const v8529 = {}; -const v8530 = []; -var v8531; -var v8532 = v31; -var v8533 = v8528; -v8531 = function EVENTS_BUBBLE(event) { var baseClass = v8532.getPrototypeOf(v8533); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8534 = {}; -v8534.constructor = v8531; -v8531.prototype = v8534; -v8530.push(v8531); -v8529.apiCallAttempt = v8530; -const v8535 = []; -var v8536; -v8536 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8517.getPrototypeOf(v8533); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8537 = {}; -v8537.constructor = v8536; -v8536.prototype = v8537; -v8535.push(v8536); -v8529.apiCall = v8535; -v8528._events = v8529; -v8528.MONITOR_EVENTS_BUBBLE = v8531; -v8528.CALL_EVENTS_BUBBLE = v8536; -v8525.prototype = v8528; -v8525.__super__ = v299; -const v8538 = {}; -v8538[\\"2020-03-31\\"] = null; -v8525.services = v8538; -const v8539 = []; -v8539.push(\\"2020-03-31\\"); -v8525.apiVersions = v8539; -v8525.serviceIdentifier = \\"wellarchitected\\"; -v2.WellArchitected = v8525; -var v8540; -var v8541 = v299; -var v8542 = v31; -v8540 = function () { if (v8541 !== v8542) { - return v8541.apply(this, arguments); -} }; -const v8543 = Object.create(v309); -v8543.constructor = v8540; -const v8544 = {}; -const v8545 = []; -var v8546; -var v8547 = v31; -var v8548 = v8543; -v8546 = function EVENTS_BUBBLE(event) { var baseClass = v8547.getPrototypeOf(v8548); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8549 = {}; -v8549.constructor = v8546; -v8546.prototype = v8549; -v8545.push(v8546); -v8544.apiCallAttempt = v8545; -const v8550 = []; -var v8551; -v8551 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8532.getPrototypeOf(v8548); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8552 = {}; -v8552.constructor = v8551; -v8551.prototype = v8552; -v8550.push(v8551); -v8544.apiCall = v8550; -v8543._events = v8544; -v8543.MONITOR_EVENTS_BUBBLE = v8546; -v8543.CALL_EVENTS_BUBBLE = v8551; -v8540.prototype = v8543; -v8540.__super__ = v299; -const v8553 = {}; -v8553[\\"2020-08-07\\"] = null; -v8540.services = v8553; -const v8554 = []; -v8554.push(\\"2020-08-07\\"); -v8540.apiVersions = v8554; -v8540.serviceIdentifier = \\"lexmodelsv2\\"; -v2.LexModelsV2 = v8540; -var v8555; -var v8556 = v299; -var v8557 = v31; -v8555 = function () { if (v8556 !== v8557) { - return v8556.apply(this, arguments); -} }; -const v8558 = Object.create(v309); -v8558.constructor = v8555; -const v8559 = {}; -const v8560 = []; -var v8561; -var v8562 = v31; -var v8563 = v8558; -v8561 = function EVENTS_BUBBLE(event) { var baseClass = v8562.getPrototypeOf(v8563); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8564 = {}; -v8564.constructor = v8561; -v8561.prototype = v8564; -v8560.push(v8561); -v8559.apiCallAttempt = v8560; -const v8565 = []; -var v8566; -v8566 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8547.getPrototypeOf(v8563); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8567 = {}; -v8567.constructor = v8566; -v8566.prototype = v8567; -v8565.push(v8566); -v8559.apiCall = v8565; -v8558._events = v8559; -v8558.MONITOR_EVENTS_BUBBLE = v8561; -v8558.CALL_EVENTS_BUBBLE = v8566; -v8555.prototype = v8558; -v8555.__super__ = v299; -const v8568 = {}; -v8568[\\"2020-08-07\\"] = null; -v8555.services = v8568; -const v8569 = []; -v8569.push(\\"2020-08-07\\"); -v8555.apiVersions = v8569; -v8555.serviceIdentifier = \\"lexruntimev2\\"; -v2.LexRuntimeV2 = v8555; -var v8570; -var v8571 = v299; -var v8572 = v31; -v8570 = function () { if (v8571 !== v8572) { - return v8571.apply(this, arguments); -} }; -const v8573 = Object.create(v309); -v8573.constructor = v8570; -const v8574 = {}; -const v8575 = []; -var v8576; -var v8577 = v31; -var v8578 = v8573; -v8576 = function EVENTS_BUBBLE(event) { var baseClass = v8577.getPrototypeOf(v8578); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8579 = {}; -v8579.constructor = v8576; -v8576.prototype = v8579; -v8575.push(v8576); -v8574.apiCallAttempt = v8575; -const v8580 = []; -var v8581; -v8581 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8562.getPrototypeOf(v8578); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8582 = {}; -v8582.constructor = v8581; -v8581.prototype = v8582; -v8580.push(v8581); -v8574.apiCall = v8580; -v8573._events = v8574; -v8573.MONITOR_EVENTS_BUBBLE = v8576; -v8573.CALL_EVENTS_BUBBLE = v8581; -v8570.prototype = v8573; -v8570.__super__ = v299; -const v8583 = {}; -v8583[\\"2020-12-01\\"] = null; -v8570.services = v8583; -const v8584 = []; -v8584.push(\\"2020-12-01\\"); -v8570.apiVersions = v8584; -v8570.serviceIdentifier = \\"fis\\"; -v2.Fis = v8570; -var v8585; -var v8586 = v299; -var v8587 = v31; -v8585 = function () { if (v8586 !== v8587) { - return v8586.apply(this, arguments); -} }; -const v8588 = Object.create(v309); -v8588.constructor = v8585; -const v8589 = {}; -const v8590 = []; -var v8591; -var v8592 = v31; -var v8593 = v8588; -v8591 = function EVENTS_BUBBLE(event) { var baseClass = v8592.getPrototypeOf(v8593); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8594 = {}; -v8594.constructor = v8591; -v8591.prototype = v8594; -v8590.push(v8591); -v8589.apiCallAttempt = v8590; -const v8595 = []; -var v8596; -v8596 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8577.getPrototypeOf(v8593); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8597 = {}; -v8597.constructor = v8596; -v8596.prototype = v8597; -v8595.push(v8596); -v8589.apiCall = v8595; -v8588._events = v8589; -v8588.MONITOR_EVENTS_BUBBLE = v8591; -v8588.CALL_EVENTS_BUBBLE = v8596; -v8585.prototype = v8588; -v8585.__super__ = v299; -const v8598 = {}; -v8598[\\"2017-07-25\\"] = null; -v8585.services = v8598; -const v8599 = []; -v8599.push(\\"2017-07-25\\"); -v8585.apiVersions = v8599; -v8585.serviceIdentifier = \\"lookoutmetrics\\"; -v2.LookoutMetrics = v8585; -var v8600; -var v8601 = v299; -var v8602 = v31; -v8600 = function () { if (v8601 !== v8602) { - return v8601.apply(this, arguments); -} }; -const v8603 = Object.create(v309); -v8603.constructor = v8600; -const v8604 = {}; -const v8605 = []; -var v8606; -var v8607 = v31; -var v8608 = v8603; -v8606 = function EVENTS_BUBBLE(event) { var baseClass = v8607.getPrototypeOf(v8608); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8609 = {}; -v8609.constructor = v8606; -v8606.prototype = v8609; -v8605.push(v8606); -v8604.apiCallAttempt = v8605; -const v8610 = []; -var v8611; -v8611 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8592.getPrototypeOf(v8608); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8612 = {}; -v8612.constructor = v8611; -v8611.prototype = v8612; -v8610.push(v8611); -v8604.apiCall = v8610; -v8603._events = v8604; -v8603.MONITOR_EVENTS_BUBBLE = v8606; -v8603.CALL_EVENTS_BUBBLE = v8611; -v8600.prototype = v8603; -v8600.__super__ = v299; -const v8613 = {}; -v8613[\\"2020-02-26\\"] = null; -v8600.services = v8613; -const v8614 = []; -v8614.push(\\"2020-02-26\\"); -v8600.apiVersions = v8614; -v8600.serviceIdentifier = \\"mgn\\"; -v2.Mgn = v8600; -var v8615; -var v8616 = v299; -var v8617 = v31; -v8615 = function () { if (v8616 !== v8617) { - return v8616.apply(this, arguments); -} }; -const v8618 = Object.create(v309); -v8618.constructor = v8615; -const v8619 = {}; -const v8620 = []; -var v8621; -var v8622 = v31; -var v8623 = v8618; -v8621 = function EVENTS_BUBBLE(event) { var baseClass = v8622.getPrototypeOf(v8623); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8624 = {}; -v8624.constructor = v8621; -v8621.prototype = v8624; -v8620.push(v8621); -v8619.apiCallAttempt = v8620; -const v8625 = []; -var v8626; -v8626 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8607.getPrototypeOf(v8623); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8627 = {}; -v8627.constructor = v8626; -v8626.prototype = v8627; -v8625.push(v8626); -v8619.apiCall = v8625; -v8618._events = v8619; -v8618.MONITOR_EVENTS_BUBBLE = v8621; -v8618.CALL_EVENTS_BUBBLE = v8626; -v8615.prototype = v8618; -v8615.__super__ = v299; -const v8628 = {}; -v8628[\\"2020-12-15\\"] = null; -v8615.services = v8628; -const v8629 = []; -v8629.push(\\"2020-12-15\\"); -v8615.apiVersions = v8629; -v8615.serviceIdentifier = \\"lookoutequipment\\"; -v2.LookoutEquipment = v8615; -var v8630; -var v8631 = v299; -var v8632 = v31; -v8630 = function () { if (v8631 !== v8632) { - return v8631.apply(this, arguments); -} }; -const v8633 = Object.create(v309); -v8633.constructor = v8630; -const v8634 = {}; -const v8635 = []; -var v8636; -var v8637 = v31; -var v8638 = v8633; -v8636 = function EVENTS_BUBBLE(event) { var baseClass = v8637.getPrototypeOf(v8638); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8639 = {}; -v8639.constructor = v8636; -v8636.prototype = v8639; -v8635.push(v8636); -v8634.apiCallAttempt = v8635; -const v8640 = []; -var v8641; -v8641 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8622.getPrototypeOf(v8638); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8642 = {}; -v8642.constructor = v8641; -v8641.prototype = v8642; -v8640.push(v8641); -v8634.apiCall = v8640; -v8633._events = v8634; -v8633.MONITOR_EVENTS_BUBBLE = v8636; -v8633.CALL_EVENTS_BUBBLE = v8641; -v8630.prototype = v8633; -v8630.__super__ = v299; -const v8643 = {}; -v8643[\\"2020-08-01\\"] = null; -v8630.services = v8643; -const v8644 = []; -v8644.push(\\"2020-08-01\\"); -v8630.apiVersions = v8644; -v8630.serviceIdentifier = \\"nimble\\"; -v2.Nimble = v8630; -var v8645; -var v8646 = v299; -var v8647 = v31; -v8645 = function () { if (v8646 !== v8647) { - return v8646.apply(this, arguments); -} }; -const v8648 = Object.create(v309); -v8648.constructor = v8645; -const v8649 = {}; -const v8650 = []; -var v8651; -var v8652 = v31; -var v8653 = v8648; -v8651 = function EVENTS_BUBBLE(event) { var baseClass = v8652.getPrototypeOf(v8653); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8654 = {}; -v8654.constructor = v8651; -v8651.prototype = v8654; -v8650.push(v8651); -v8649.apiCallAttempt = v8650; -const v8655 = []; -var v8656; -v8656 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8637.getPrototypeOf(v8653); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8657 = {}; -v8657.constructor = v8656; -v8656.prototype = v8657; -v8655.push(v8656); -v8649.apiCall = v8655; -v8648._events = v8649; -v8648.MONITOR_EVENTS_BUBBLE = v8651; -v8648.CALL_EVENTS_BUBBLE = v8656; -v8645.prototype = v8648; -v8645.__super__ = v299; -const v8658 = {}; -v8658[\\"2021-03-12\\"] = null; -v8645.services = v8658; -const v8659 = []; -v8659.push(\\"2021-03-12\\"); -v8645.apiVersions = v8659; -v8645.serviceIdentifier = \\"finspace\\"; -v2.Finspace = v8645; -var v8660; -var v8661 = v299; -var v8662 = v31; -v8660 = function () { if (v8661 !== v8662) { - return v8661.apply(this, arguments); -} }; -const v8663 = Object.create(v309); -v8663.constructor = v8660; -const v8664 = {}; -const v8665 = []; -var v8666; -var v8667 = v31; -var v8668 = v8663; -v8666 = function EVENTS_BUBBLE(event) { var baseClass = v8667.getPrototypeOf(v8668); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8669 = {}; -v8669.constructor = v8666; -v8666.prototype = v8669; -v8665.push(v8666); -v8664.apiCallAttempt = v8665; -const v8670 = []; -var v8671; -v8671 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8652.getPrototypeOf(v8668); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8672 = {}; -v8672.constructor = v8671; -v8671.prototype = v8672; -v8670.push(v8671); -v8664.apiCall = v8670; -v8663._events = v8664; -v8663.MONITOR_EVENTS_BUBBLE = v8666; -v8663.CALL_EVENTS_BUBBLE = v8671; -v8660.prototype = v8663; -v8660.__super__ = v299; -const v8673 = {}; -v8673[\\"2020-07-13\\"] = null; -v8660.services = v8673; -const v8674 = []; -v8674.push(\\"2020-07-13\\"); -v8660.apiVersions = v8674; -v8660.serviceIdentifier = \\"finspacedata\\"; -v2.Finspacedata = v8660; -var v8675; -var v8676 = v299; -var v8677 = v31; -v8675 = function () { if (v8676 !== v8677) { - return v8676.apply(this, arguments); -} }; -const v8678 = Object.create(v309); -v8678.constructor = v8675; -const v8679 = {}; -const v8680 = []; -var v8681; -var v8682 = v31; -var v8683 = v8678; -v8681 = function EVENTS_BUBBLE(event) { var baseClass = v8682.getPrototypeOf(v8683); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8684 = {}; -v8684.constructor = v8681; -v8681.prototype = v8684; -v8680.push(v8681); -v8679.apiCallAttempt = v8680; -const v8685 = []; -var v8686; -v8686 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8667.getPrototypeOf(v8683); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8687 = {}; -v8687.constructor = v8686; -v8686.prototype = v8687; -v8685.push(v8686); -v8679.apiCall = v8685; -v8678._events = v8679; -v8678.MONITOR_EVENTS_BUBBLE = v8681; -v8678.CALL_EVENTS_BUBBLE = v8686; -v8675.prototype = v8678; -v8675.__super__ = v299; -const v8688 = {}; -v8688[\\"2021-05-03\\"] = null; -v8675.services = v8688; -const v8689 = []; -v8689.push(\\"2021-05-03\\"); -v8675.apiVersions = v8689; -v8675.serviceIdentifier = \\"ssmcontacts\\"; -v2.SSMContacts = v8675; -var v8690; -var v8691 = v299; -var v8692 = v31; -v8690 = function () { if (v8691 !== v8692) { - return v8691.apply(this, arguments); -} }; -const v8693 = Object.create(v309); -v8693.constructor = v8690; -const v8694 = {}; -const v8695 = []; -var v8696; -var v8697 = v31; -var v8698 = v8693; -v8696 = function EVENTS_BUBBLE(event) { var baseClass = v8697.getPrototypeOf(v8698); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8699 = {}; -v8699.constructor = v8696; -v8696.prototype = v8699; -v8695.push(v8696); -v8694.apiCallAttempt = v8695; -const v8700 = []; -var v8701; -v8701 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8682.getPrototypeOf(v8698); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8702 = {}; -v8702.constructor = v8701; -v8701.prototype = v8702; -v8700.push(v8701); -v8694.apiCall = v8700; -v8693._events = v8694; -v8693.MONITOR_EVENTS_BUBBLE = v8696; -v8693.CALL_EVENTS_BUBBLE = v8701; -v8690.prototype = v8693; -v8690.__super__ = v299; -const v8703 = {}; -v8703[\\"2018-05-10\\"] = null; -v8690.services = v8703; -const v8704 = []; -v8704.push(\\"2018-05-10\\"); -v8690.apiVersions = v8704; -v8690.serviceIdentifier = \\"ssmincidents\\"; -v2.SSMIncidents = v8690; -var v8705; -var v8706 = v299; -var v8707 = v31; -v8705 = function () { if (v8706 !== v8707) { - return v8706.apply(this, arguments); -} }; -const v8708 = Object.create(v309); -v8708.constructor = v8705; -const v8709 = {}; -const v8710 = []; -var v8711; -var v8712 = v31; -var v8713 = v8708; -v8711 = function EVENTS_BUBBLE(event) { var baseClass = v8712.getPrototypeOf(v8713); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8714 = {}; -v8714.constructor = v8711; -v8711.prototype = v8714; -v8710.push(v8711); -v8709.apiCallAttempt = v8710; -const v8715 = []; -var v8716; -v8716 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8697.getPrototypeOf(v8713); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8717 = {}; -v8717.constructor = v8716; -v8716.prototype = v8717; -v8715.push(v8716); -v8709.apiCall = v8715; -v8708._events = v8709; -v8708.MONITOR_EVENTS_BUBBLE = v8711; -v8708.CALL_EVENTS_BUBBLE = v8716; -v8705.prototype = v8708; -v8705.__super__ = v299; -const v8718 = {}; -v8718[\\"2020-09-10\\"] = null; -v8705.services = v8718; -const v8719 = []; -v8719.push(\\"2020-09-10\\"); -v8705.apiVersions = v8719; -v8705.serviceIdentifier = \\"applicationcostprofiler\\"; -v2.ApplicationCostProfiler = v8705; -var v8720; -var v8721 = v299; -var v8722 = v31; -v8720 = function () { if (v8721 !== v8722) { - return v8721.apply(this, arguments); -} }; -const v8723 = Object.create(v309); -v8723.constructor = v8720; -const v8724 = {}; -const v8725 = []; -var v8726; -var v8727 = v31; -var v8728 = v8723; -v8726 = function EVENTS_BUBBLE(event) { var baseClass = v8727.getPrototypeOf(v8728); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8729 = {}; -v8729.constructor = v8726; -v8726.prototype = v8729; -v8725.push(v8726); -v8724.apiCallAttempt = v8725; -const v8730 = []; -var v8731; -v8731 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8712.getPrototypeOf(v8728); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8732 = {}; -v8732.constructor = v8731; -v8731.prototype = v8732; -v8730.push(v8731); -v8724.apiCall = v8730; -v8723._events = v8724; -v8723.MONITOR_EVENTS_BUBBLE = v8726; -v8723.CALL_EVENTS_BUBBLE = v8731; -v8720.prototype = v8723; -v8720.__super__ = v299; -const v8733 = {}; -v8733[\\"2020-05-15\\"] = null; -v8720.services = v8733; -const v8734 = []; -v8734.push(\\"2020-05-15\\"); -v8720.apiVersions = v8734; -v8720.serviceIdentifier = \\"apprunner\\"; -v2.AppRunner = v8720; -var v8735; -var v8736 = v299; -var v8737 = v31; -v8735 = function () { if (v8736 !== v8737) { - return v8736.apply(this, arguments); -} }; -const v8738 = Object.create(v309); -v8738.constructor = v8735; -const v8739 = {}; -const v8740 = []; -var v8741; -var v8742 = v31; -var v8743 = v8738; -v8741 = function EVENTS_BUBBLE(event) { var baseClass = v8742.getPrototypeOf(v8743); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8744 = {}; -v8744.constructor = v8741; -v8741.prototype = v8744; -v8740.push(v8741); -v8739.apiCallAttempt = v8740; -const v8745 = []; -var v8746; -v8746 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8727.getPrototypeOf(v8743); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8747 = {}; -v8747.constructor = v8746; -v8746.prototype = v8747; -v8745.push(v8746); -v8739.apiCall = v8745; -v8738._events = v8739; -v8738.MONITOR_EVENTS_BUBBLE = v8741; -v8738.CALL_EVENTS_BUBBLE = v8746; -v8735.prototype = v8738; -v8735.__super__ = v299; -const v8748 = {}; -v8748[\\"2020-07-20\\"] = null; -v8735.services = v8748; -const v8749 = []; -v8749.push(\\"2020-07-20\\"); -v8735.apiVersions = v8749; -v8735.serviceIdentifier = \\"proton\\"; -v2.Proton = v8735; -var v8750; -var v8751 = v299; -var v8752 = v31; -v8750 = function () { if (v8751 !== v8752) { - return v8751.apply(this, arguments); -} }; -const v8753 = Object.create(v309); -v8753.constructor = v8750; -const v8754 = {}; -const v8755 = []; -var v8756; -var v8757 = v31; -var v8758 = v8753; -v8756 = function EVENTS_BUBBLE(event) { var baseClass = v8757.getPrototypeOf(v8758); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8759 = {}; -v8759.constructor = v8756; -v8756.prototype = v8759; -v8755.push(v8756); -v8754.apiCallAttempt = v8755; -const v8760 = []; -var v8761; -v8761 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8742.getPrototypeOf(v8758); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8762 = {}; -v8762.constructor = v8761; -v8761.prototype = v8762; -v8760.push(v8761); -v8754.apiCall = v8760; -v8753._events = v8754; -v8753.MONITOR_EVENTS_BUBBLE = v8756; -v8753.CALL_EVENTS_BUBBLE = v8761; -v8750.prototype = v8753; -v8750.__super__ = v299; -const v8763 = {}; -v8763[\\"2019-12-02\\"] = null; -v8750.services = v8763; -const v8764 = []; -v8764.push(\\"2019-12-02\\"); -v8750.apiVersions = v8764; -v8750.serviceIdentifier = \\"route53recoverycluster\\"; -v2.Route53RecoveryCluster = v8750; -var v8765; -var v8766 = v299; -var v8767 = v31; -v8765 = function () { if (v8766 !== v8767) { - return v8766.apply(this, arguments); -} }; -const v8768 = Object.create(v309); -v8768.constructor = v8765; -const v8769 = {}; -const v8770 = []; -var v8771; -var v8772 = v31; -var v8773 = v8768; -v8771 = function EVENTS_BUBBLE(event) { var baseClass = v8772.getPrototypeOf(v8773); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8774 = {}; -v8774.constructor = v8771; -v8771.prototype = v8774; -v8770.push(v8771); -v8769.apiCallAttempt = v8770; -const v8775 = []; -var v8776; -v8776 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8757.getPrototypeOf(v8773); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8777 = {}; -v8777.constructor = v8776; -v8776.prototype = v8777; -v8775.push(v8776); -v8769.apiCall = v8775; -v8768._events = v8769; -v8768.MONITOR_EVENTS_BUBBLE = v8771; -v8768.CALL_EVENTS_BUBBLE = v8776; -v8765.prototype = v8768; -v8765.__super__ = v299; -const v8778 = {}; -v8778[\\"2020-11-02\\"] = null; -v8765.services = v8778; -const v8779 = []; -v8779.push(\\"2020-11-02\\"); -v8765.apiVersions = v8779; -v8765.serviceIdentifier = \\"route53recoverycontrolconfig\\"; -v2.Route53RecoveryControlConfig = v8765; -var v8780; -var v8781 = v299; -var v8782 = v31; -v8780 = function () { if (v8781 !== v8782) { - return v8781.apply(this, arguments); -} }; -const v8783 = Object.create(v309); -v8783.constructor = v8780; -const v8784 = {}; -const v8785 = []; -var v8786; -var v8787 = v31; -var v8788 = v8783; -v8786 = function EVENTS_BUBBLE(event) { var baseClass = v8787.getPrototypeOf(v8788); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8789 = {}; -v8789.constructor = v8786; -v8786.prototype = v8789; -v8785.push(v8786); -v8784.apiCallAttempt = v8785; -const v8790 = []; -var v8791; -v8791 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8772.getPrototypeOf(v8788); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8792 = {}; -v8792.constructor = v8791; -v8791.prototype = v8792; -v8790.push(v8791); -v8784.apiCall = v8790; -v8783._events = v8784; -v8783.MONITOR_EVENTS_BUBBLE = v8786; -v8783.CALL_EVENTS_BUBBLE = v8791; -v8780.prototype = v8783; -v8780.__super__ = v299; -const v8793 = {}; -v8793[\\"2019-12-02\\"] = null; -v8780.services = v8793; -const v8794 = []; -v8794.push(\\"2019-12-02\\"); -v8780.apiVersions = v8794; -v8780.serviceIdentifier = \\"route53recoveryreadiness\\"; -v2.Route53RecoveryReadiness = v8780; -var v8795; -var v8796 = v299; -var v8797 = v31; -v8795 = function () { if (v8796 !== v8797) { - return v8796.apply(this, arguments); -} }; -const v8798 = Object.create(v309); -v8798.constructor = v8795; -const v8799 = {}; -const v8800 = []; -var v8801; -var v8802 = v31; -var v8803 = v8798; -v8801 = function EVENTS_BUBBLE(event) { var baseClass = v8802.getPrototypeOf(v8803); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8804 = {}; -v8804.constructor = v8801; -v8801.prototype = v8804; -v8800.push(v8801); -v8799.apiCallAttempt = v8800; -const v8805 = []; -var v8806; -v8806 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8787.getPrototypeOf(v8803); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8807 = {}; -v8807.constructor = v8806; -v8806.prototype = v8807; -v8805.push(v8806); -v8799.apiCall = v8805; -v8798._events = v8799; -v8798.MONITOR_EVENTS_BUBBLE = v8801; -v8798.CALL_EVENTS_BUBBLE = v8806; -v8795.prototype = v8798; -v8795.__super__ = v299; -const v8808 = {}; -v8808[\\"2021-04-20\\"] = null; -v8795.services = v8808; -const v8809 = []; -v8809.push(\\"2021-04-20\\"); -v8795.apiVersions = v8809; -v8795.serviceIdentifier = \\"chimesdkidentity\\"; -v2.ChimeSDKIdentity = v8795; -var v8810; -var v8811 = v299; -var v8812 = v31; -v8810 = function () { if (v8811 !== v8812) { - return v8811.apply(this, arguments); -} }; -const v8813 = Object.create(v309); -v8813.constructor = v8810; -const v8814 = {}; -const v8815 = []; -var v8816; -var v8817 = v31; -var v8818 = v8813; -v8816 = function EVENTS_BUBBLE(event) { var baseClass = v8817.getPrototypeOf(v8818); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8819 = {}; -v8819.constructor = v8816; -v8816.prototype = v8819; -v8815.push(v8816); -v8814.apiCallAttempt = v8815; -const v8820 = []; -var v8821; -v8821 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8802.getPrototypeOf(v8818); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8822 = {}; -v8822.constructor = v8821; -v8821.prototype = v8822; -v8820.push(v8821); -v8814.apiCall = v8820; -v8813._events = v8814; -v8813.MONITOR_EVENTS_BUBBLE = v8816; -v8813.CALL_EVENTS_BUBBLE = v8821; -v8810.prototype = v8813; -v8810.__super__ = v299; -const v8823 = {}; -v8823[\\"2021-05-15\\"] = null; -v8810.services = v8823; -const v8824 = []; -v8824.push(\\"2021-05-15\\"); -v8810.apiVersions = v8824; -v8810.serviceIdentifier = \\"chimesdkmessaging\\"; -v2.ChimeSDKMessaging = v8810; -var v8825; -var v8826 = v299; -var v8827 = v31; -v8825 = function () { if (v8826 !== v8827) { - return v8826.apply(this, arguments); -} }; -const v8828 = Object.create(v309); -v8828.constructor = v8825; -const v8829 = {}; -const v8830 = []; -var v8831; -var v8832 = v31; -var v8833 = v8828; -v8831 = function EVENTS_BUBBLE(event) { var baseClass = v8832.getPrototypeOf(v8833); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8834 = {}; -v8834.constructor = v8831; -v8831.prototype = v8834; -v8830.push(v8831); -v8829.apiCallAttempt = v8830; -const v8835 = []; -var v8836; -v8836 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8817.getPrototypeOf(v8833); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8837 = {}; -v8837.constructor = v8836; -v8836.prototype = v8837; -v8835.push(v8836); -v8829.apiCall = v8835; -v8828._events = v8829; -v8828.MONITOR_EVENTS_BUBBLE = v8831; -v8828.CALL_EVENTS_BUBBLE = v8836; -v8825.prototype = v8828; -v8825.__super__ = v299; -const v8838 = {}; -v8838[\\"2021-08-04\\"] = null; -v8825.services = v8838; -const v8839 = []; -v8839.push(\\"2021-08-04\\"); -v8825.apiVersions = v8839; -v8825.serviceIdentifier = \\"snowdevicemanagement\\"; -v2.SnowDeviceManagement = v8825; -var v8840; -var v8841 = v299; -var v8842 = v31; -v8840 = function () { if (v8841 !== v8842) { - return v8841.apply(this, arguments); -} }; -const v8843 = Object.create(v309); -v8843.constructor = v8840; -const v8844 = {}; -const v8845 = []; -var v8846; -var v8847 = v31; -var v8848 = v8843; -v8846 = function EVENTS_BUBBLE(event) { var baseClass = v8847.getPrototypeOf(v8848); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8849 = {}; -v8849.constructor = v8846; -v8846.prototype = v8849; -v8845.push(v8846); -v8844.apiCallAttempt = v8845; -const v8850 = []; -var v8851; -v8851 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8832.getPrototypeOf(v8848); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8852 = {}; -v8852.constructor = v8851; -v8851.prototype = v8852; -v8850.push(v8851); -v8844.apiCall = v8850; -v8843._events = v8844; -v8843.MONITOR_EVENTS_BUBBLE = v8846; -v8843.CALL_EVENTS_BUBBLE = v8851; -v8840.prototype = v8843; -v8840.__super__ = v299; -const v8853 = {}; -v8853[\\"2021-01-01\\"] = null; -v8840.services = v8853; -const v8854 = []; -v8854.push(\\"2021-01-01\\"); -v8840.apiVersions = v8854; -v8840.serviceIdentifier = \\"memorydb\\"; -v2.MemoryDB = v8840; -var v8855; -var v8856 = v299; -var v8857 = v31; -v8855 = function () { if (v8856 !== v8857) { - return v8856.apply(this, arguments); -} }; -const v8858 = Object.create(v309); -v8858.constructor = v8855; -const v8859 = {}; -const v8860 = []; -var v8861; -var v8862 = v31; -var v8863 = v8858; -v8861 = function EVENTS_BUBBLE(event) { var baseClass = v8862.getPrototypeOf(v8863); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8864 = {}; -v8864.constructor = v8861; -v8861.prototype = v8864; -v8860.push(v8861); -v8859.apiCallAttempt = v8860; -const v8865 = []; -var v8866; -v8866 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8847.getPrototypeOf(v8863); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8867 = {}; -v8867.constructor = v8866; -v8866.prototype = v8867; -v8865.push(v8866); -v8859.apiCall = v8865; -v8858._events = v8859; -v8858.MONITOR_EVENTS_BUBBLE = v8861; -v8858.CALL_EVENTS_BUBBLE = v8866; -v8855.prototype = v8858; -v8855.__super__ = v299; -const v8868 = {}; -v8868[\\"2021-01-01\\"] = null; -v8855.services = v8868; -const v8869 = []; -v8869.push(\\"2021-01-01\\"); -v8855.apiVersions = v8869; -v8855.serviceIdentifier = \\"opensearch\\"; -v2.OpenSearch = v8855; -var v8870; -var v8871 = v299; -var v8872 = v31; -v8870 = function () { if (v8871 !== v8872) { - return v8871.apply(this, arguments); -} }; -const v8873 = Object.create(v309); -v8873.constructor = v8870; -const v8874 = {}; -const v8875 = []; -var v8876; -var v8877 = v31; -var v8878 = v8873; -v8876 = function EVENTS_BUBBLE(event) { var baseClass = v8877.getPrototypeOf(v8878); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8879 = {}; -v8879.constructor = v8876; -v8876.prototype = v8879; -v8875.push(v8876); -v8874.apiCallAttempt = v8875; -const v8880 = []; -var v8881; -v8881 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8862.getPrototypeOf(v8878); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8882 = {}; -v8882.constructor = v8881; -v8881.prototype = v8882; -v8880.push(v8881); -v8874.apiCall = v8880; -v8873._events = v8874; -v8873.MONITOR_EVENTS_BUBBLE = v8876; -v8873.CALL_EVENTS_BUBBLE = v8881; -v8870.prototype = v8873; -v8870.__super__ = v299; -const v8883 = {}; -v8883[\\"2021-09-14\\"] = null; -v8870.services = v8883; -const v8884 = []; -v8884.push(\\"2021-09-14\\"); -v8870.apiVersions = v8884; -v8870.serviceIdentifier = \\"kafkaconnect\\"; -v2.KafkaConnect = v8870; -var v8885; -var v8886 = v299; -var v8887 = v31; -v8885 = function () { if (v8886 !== v8887) { - return v8886.apply(this, arguments); -} }; -const v8888 = Object.create(v309); -v8888.constructor = v8885; -const v8889 = {}; -const v8890 = []; -var v8891; -var v8892 = v31; -var v8893 = v8888; -v8891 = function EVENTS_BUBBLE(event) { var baseClass = v8892.getPrototypeOf(v8893); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8894 = {}; -v8894.constructor = v8891; -v8891.prototype = v8894; -v8890.push(v8891); -v8889.apiCallAttempt = v8890; -const v8895 = []; -var v8896; -v8896 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8877.getPrototypeOf(v8893); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8897 = {}; -v8897.constructor = v8896; -v8896.prototype = v8897; -v8895.push(v8896); -v8889.apiCall = v8895; -v8888._events = v8889; -v8888.MONITOR_EVENTS_BUBBLE = v8891; -v8888.CALL_EVENTS_BUBBLE = v8896; -v8885.prototype = v8888; -v8885.__super__ = v299; -const v8898 = {}; -v8898[\\"2021-09-27\\"] = null; -v8885.services = v8898; -const v8899 = []; -v8899.push(\\"2021-09-27\\"); -v8885.apiVersions = v8899; -v8885.serviceIdentifier = \\"voiceid\\"; -v2.VoiceID = v8885; -var v8900; -var v8901 = v299; -var v8902 = v31; -v8900 = function () { if (v8901 !== v8902) { - return v8901.apply(this, arguments); -} }; -const v8903 = Object.create(v309); -v8903.constructor = v8900; -const v8904 = {}; -const v8905 = []; -var v8906; -var v8907 = v31; -var v8908 = v8903; -v8906 = function EVENTS_BUBBLE(event) { var baseClass = v8907.getPrototypeOf(v8908); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8909 = {}; -v8909.constructor = v8906; -v8906.prototype = v8909; -v8905.push(v8906); -v8904.apiCallAttempt = v8905; -const v8910 = []; -var v8911; -v8911 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8892.getPrototypeOf(v8908); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8912 = {}; -v8912.constructor = v8911; -v8911.prototype = v8912; -v8910.push(v8911); -v8904.apiCall = v8910; -v8903._events = v8904; -v8903.MONITOR_EVENTS_BUBBLE = v8906; -v8903.CALL_EVENTS_BUBBLE = v8911; -v8900.prototype = v8903; -v8900.__super__ = v299; -const v8913 = {}; -v8913[\\"2020-10-19\\"] = null; -v8900.services = v8913; -const v8914 = []; -v8914.push(\\"2020-10-19\\"); -v8900.apiVersions = v8914; -v8900.serviceIdentifier = \\"wisdom\\"; -v2.Wisdom = v8900; -var v8915; -var v8916 = v299; -var v8917 = v31; -v8915 = function () { if (v8916 !== v8917) { - return v8916.apply(this, arguments); -} }; -const v8918 = Object.create(v309); -v8918.constructor = v8915; -const v8919 = {}; -const v8920 = []; -var v8921; -var v8922 = v31; -var v8923 = v8918; -v8921 = function EVENTS_BUBBLE(event) { var baseClass = v8922.getPrototypeOf(v8923); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8924 = {}; -v8924.constructor = v8921; -v8921.prototype = v8924; -v8920.push(v8921); -v8919.apiCallAttempt = v8920; -const v8925 = []; -var v8926; -v8926 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8907.getPrototypeOf(v8923); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8927 = {}; -v8927.constructor = v8926; -v8926.prototype = v8927; -v8925.push(v8926); -v8919.apiCall = v8925; -v8918._events = v8919; -v8918.MONITOR_EVENTS_BUBBLE = v8921; -v8918.CALL_EVENTS_BUBBLE = v8926; -v8915.prototype = v8918; -v8915.__super__ = v299; -const v8928 = {}; -v8928[\\"2021-02-01\\"] = null; -v8915.services = v8928; -const v8929 = []; -v8929.push(\\"2021-02-01\\"); -v8915.apiVersions = v8929; -v8915.serviceIdentifier = \\"account\\"; -v2.Account = v8915; -var v8930; -var v8931 = v299; -var v8932 = v31; -v8930 = function () { if (v8931 !== v8932) { - return v8931.apply(this, arguments); -} }; -const v8933 = Object.create(v309); -v8933.constructor = v8930; -const v8934 = {}; -const v8935 = []; -var v8936; -var v8937 = v31; -var v8938 = v8933; -v8936 = function EVENTS_BUBBLE(event) { var baseClass = v8937.getPrototypeOf(v8938); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8939 = {}; -v8939.constructor = v8936; -v8936.prototype = v8939; -v8935.push(v8936); -v8934.apiCallAttempt = v8935; -const v8940 = []; -var v8941; -v8941 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8922.getPrototypeOf(v8938); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8942 = {}; -v8942.constructor = v8941; -v8941.prototype = v8942; -v8940.push(v8941); -v8934.apiCall = v8940; -v8933._events = v8934; -v8933.MONITOR_EVENTS_BUBBLE = v8936; -v8933.CALL_EVENTS_BUBBLE = v8941; -v8930.prototype = v8933; -v8930.__super__ = v299; -const v8943 = {}; -v8943[\\"2021-09-30\\"] = null; -v8930.services = v8943; -const v8944 = []; -v8944.push(\\"2021-09-30\\"); -v8930.apiVersions = v8944; -v8930.serviceIdentifier = \\"cloudcontrol\\"; -v2.CloudControl = v8930; -var v8945; -var v8946 = v299; -var v8947 = v31; -v8945 = function () { if (v8946 !== v8947) { - return v8946.apply(this, arguments); -} }; -const v8948 = Object.create(v309); -v8948.constructor = v8945; -const v8949 = {}; -const v8950 = []; -var v8951; -var v8952 = v31; -var v8953 = v8948; -v8951 = function EVENTS_BUBBLE(event) { var baseClass = v8952.getPrototypeOf(v8953); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8954 = {}; -v8954.constructor = v8951; -v8951.prototype = v8954; -v8950.push(v8951); -v8949.apiCallAttempt = v8950; -const v8955 = []; -var v8956; -v8956 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8937.getPrototypeOf(v8953); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8957 = {}; -v8957.constructor = v8956; -v8956.prototype = v8957; -v8955.push(v8956); -v8949.apiCall = v8955; -v8948._events = v8949; -v8948.MONITOR_EVENTS_BUBBLE = v8951; -v8948.CALL_EVENTS_BUBBLE = v8956; -v8945.prototype = v8948; -v8945.__super__ = v299; -const v8958 = {}; -v8958[\\"2020-08-18\\"] = null; -v8945.services = v8958; -const v8959 = []; -v8959.push(\\"2020-08-18\\"); -v8945.apiVersions = v8959; -v8945.serviceIdentifier = \\"grafana\\"; -v2.Grafana = v8945; -var v8960; -var v8961 = v299; -var v8962 = v31; -v8960 = function () { if (v8961 !== v8962) { - return v8961.apply(this, arguments); -} }; -const v8963 = Object.create(v309); -v8963.constructor = v8960; -const v8964 = {}; -const v8965 = []; -var v8966; -var v8967 = v31; -var v8968 = v8963; -v8966 = function EVENTS_BUBBLE(event) { var baseClass = v8967.getPrototypeOf(v8968); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8969 = {}; -v8969.constructor = v8966; -v8966.prototype = v8969; -v8965.push(v8966); -v8964.apiCallAttempt = v8965; -const v8970 = []; -var v8971; -v8971 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8952.getPrototypeOf(v8968); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8972 = {}; -v8972.constructor = v8971; -v8971.prototype = v8972; -v8970.push(v8971); -v8964.apiCall = v8970; -v8963._events = v8964; -v8963.MONITOR_EVENTS_BUBBLE = v8966; -v8963.CALL_EVENTS_BUBBLE = v8971; -v8960.prototype = v8963; -v8960.__super__ = v299; -const v8973 = {}; -v8973[\\"2019-07-24\\"] = null; -v8960.services = v8973; -const v8974 = []; -v8974.push(\\"2019-07-24\\"); -v8960.apiVersions = v8974; -v8960.serviceIdentifier = \\"panorama\\"; -v2.Panorama = v8960; -var v8975; -var v8976 = v299; -var v8977 = v31; -v8975 = function () { if (v8976 !== v8977) { - return v8976.apply(this, arguments); -} }; -const v8978 = Object.create(v309); -v8978.constructor = v8975; -const v8979 = {}; -const v8980 = []; -var v8981; -var v8982 = v31; -var v8983 = v8978; -v8981 = function EVENTS_BUBBLE(event) { var baseClass = v8982.getPrototypeOf(v8983); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8984 = {}; -v8984.constructor = v8981; -v8981.prototype = v8984; -v8980.push(v8981); -v8979.apiCallAttempt = v8980; -const v8985 = []; -var v8986; -v8986 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8967.getPrototypeOf(v8983); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v8987 = {}; -v8987.constructor = v8986; -v8986.prototype = v8987; -v8985.push(v8986); -v8979.apiCall = v8985; -v8978._events = v8979; -v8978.MONITOR_EVENTS_BUBBLE = v8981; -v8978.CALL_EVENTS_BUBBLE = v8986; -v8975.prototype = v8978; -v8975.__super__ = v299; -const v8988 = {}; -v8988[\\"2021-07-15\\"] = null; -v8975.services = v8988; -const v8989 = []; -v8989.push(\\"2021-07-15\\"); -v8975.apiVersions = v8989; -v8975.serviceIdentifier = \\"chimesdkmeetings\\"; -v2.ChimeSDKMeetings = v8975; -var v8990; -var v8991 = v299; -var v8992 = v31; -v8990 = function () { if (v8991 !== v8992) { - return v8991.apply(this, arguments); -} }; -const v8993 = Object.create(v309); -v8993.constructor = v8990; -const v8994 = {}; -const v8995 = []; -var v8996; -var v8997 = v31; -var v8998 = v8993; -v8996 = function EVENTS_BUBBLE(event) { var baseClass = v8997.getPrototypeOf(v8998); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v8999 = {}; -v8999.constructor = v8996; -v8996.prototype = v8999; -v8995.push(v8996); -v8994.apiCallAttempt = v8995; -const v9000 = []; -var v9001; -v9001 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8982.getPrototypeOf(v8998); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9002 = {}; -v9002.constructor = v9001; -v9001.prototype = v9002; -v9000.push(v9001); -v8994.apiCall = v9000; -v8993._events = v8994; -v8993.MONITOR_EVENTS_BUBBLE = v8996; -v8993.CALL_EVENTS_BUBBLE = v9001; -v8990.prototype = v8993; -v8990.__super__ = v299; -const v9003 = {}; -v9003[\\"2020-04-30\\"] = null; -v8990.services = v9003; -const v9004 = []; -v9004.push(\\"2020-04-30\\"); -v8990.apiVersions = v9004; -v8990.serviceIdentifier = \\"resiliencehub\\"; -v2.Resiliencehub = v8990; -var v9005; -var v9006 = v299; -var v9007 = v31; -v9005 = function () { if (v9006 !== v9007) { - return v9006.apply(this, arguments); -} }; -const v9008 = Object.create(v309); -v9008.constructor = v9005; -const v9009 = {}; -const v9010 = []; -var v9011; -var v9012 = v31; -var v9013 = v9008; -v9011 = function EVENTS_BUBBLE(event) { var baseClass = v9012.getPrototypeOf(v9013); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9014 = {}; -v9014.constructor = v9011; -v9011.prototype = v9014; -v9010.push(v9011); -v9009.apiCallAttempt = v9010; -const v9015 = []; -var v9016; -v9016 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v8997.getPrototypeOf(v9013); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9017 = {}; -v9017.constructor = v9016; -v9016.prototype = v9017; -v9015.push(v9016); -v9009.apiCall = v9015; -v9008._events = v9009; -v9008.MONITOR_EVENTS_BUBBLE = v9011; -v9008.CALL_EVENTS_BUBBLE = v9016; -v9005.prototype = v9008; -v9005.__super__ = v299; -const v9018 = {}; -v9018[\\"2020-02-19\\"] = null; -v9005.services = v9018; -const v9019 = []; -v9019.push(\\"2020-02-19\\"); -v9005.apiVersions = v9019; -v9005.serviceIdentifier = \\"migrationhubstrategy\\"; -v2.MigrationHubStrategy = v9005; -var v9020; -var v9021 = v299; -var v9022 = v31; -v9020 = function () { if (v9021 !== v9022) { - return v9021.apply(this, arguments); -} }; -const v9023 = Object.create(v309); -v9023.constructor = v9020; -const v9024 = {}; -const v9025 = []; -var v9026; -var v9027 = v31; -var v9028 = v9023; -v9026 = function EVENTS_BUBBLE(event) { var baseClass = v9027.getPrototypeOf(v9028); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9029 = {}; -v9029.constructor = v9026; -v9026.prototype = v9029; -v9025.push(v9026); -v9024.apiCallAttempt = v9025; -const v9030 = []; -var v9031; -v9031 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9012.getPrototypeOf(v9028); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9032 = {}; -v9032.constructor = v9031; -v9031.prototype = v9032; -v9030.push(v9031); -v9024.apiCall = v9030; -v9023._events = v9024; -v9023.MONITOR_EVENTS_BUBBLE = v9026; -v9023.CALL_EVENTS_BUBBLE = v9031; -v9020.prototype = v9023; -v9020.__super__ = v299; -const v9033 = {}; -v9033[\\"2021-11-11\\"] = null; -v9020.services = v9033; -const v9034 = []; -v9034.push(\\"2021-11-11\\"); -v9020.apiVersions = v9034; -v9020.serviceIdentifier = \\"appconfigdata\\"; -v2.AppConfigData = v9020; -var v9035; -var v9036 = v299; -var v9037 = v31; -v9035 = function () { if (v9036 !== v9037) { - return v9036.apply(this, arguments); -} }; -const v9038 = Object.create(v309); -v9038.constructor = v9035; -const v9039 = {}; -const v9040 = []; -var v9041; -var v9042 = v31; -var v9043 = v9038; -v9041 = function EVENTS_BUBBLE(event) { var baseClass = v9042.getPrototypeOf(v9043); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9044 = {}; -v9044.constructor = v9041; -v9041.prototype = v9044; -v9040.push(v9041); -v9039.apiCallAttempt = v9040; -const v9045 = []; -var v9046; -v9046 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9027.getPrototypeOf(v9043); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9047 = {}; -v9047.constructor = v9046; -v9046.prototype = v9047; -v9045.push(v9046); -v9039.apiCall = v9045; -v9038._events = v9039; -v9038.MONITOR_EVENTS_BUBBLE = v9041; -v9038.CALL_EVENTS_BUBBLE = v9046; -v9035.prototype = v9038; -v9035.__super__ = v299; -const v9048 = {}; -v9048[\\"2020-02-26\\"] = null; -v9035.services = v9048; -const v9049 = []; -v9049.push(\\"2020-02-26\\"); -v9035.apiVersions = v9049; -v9035.serviceIdentifier = \\"drs\\"; -v2.Drs = v9035; -var v9050; -var v9051 = v299; -var v9052 = v31; -v9050 = function () { if (v9051 !== v9052) { - return v9051.apply(this, arguments); -} }; -const v9053 = Object.create(v309); -v9053.constructor = v9050; -const v9054 = {}; -const v9055 = []; -var v9056; -var v9057 = v31; -var v9058 = v9053; -v9056 = function EVENTS_BUBBLE(event) { var baseClass = v9057.getPrototypeOf(v9058); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9059 = {}; -v9059.constructor = v9056; -v9056.prototype = v9059; -v9055.push(v9056); -v9054.apiCallAttempt = v9055; -const v9060 = []; -var v9061; -v9061 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9042.getPrototypeOf(v9058); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9062 = {}; -v9062.constructor = v9061; -v9061.prototype = v9062; -v9060.push(v9061); -v9054.apiCall = v9060; -v9053._events = v9054; -v9053.MONITOR_EVENTS_BUBBLE = v9056; -v9053.CALL_EVENTS_BUBBLE = v9061; -v9050.prototype = v9053; -v9050.__super__ = v299; -const v9063 = {}; -v9063[\\"2021-10-26\\"] = null; -v9050.services = v9063; -const v9064 = []; -v9064.push(\\"2021-10-26\\"); -v9050.apiVersions = v9064; -v9050.serviceIdentifier = \\"migrationhubrefactorspaces\\"; -v2.MigrationHubRefactorSpaces = v9050; -var v9065; -var v9066 = v299; -var v9067 = v31; -v9065 = function () { if (v9066 !== v9067) { - return v9066.apply(this, arguments); -} }; -const v9068 = Object.create(v309); -v9068.constructor = v9065; -const v9069 = {}; -const v9070 = []; -var v9071; -var v9072 = v31; -var v9073 = v9068; -v9071 = function EVENTS_BUBBLE(event) { var baseClass = v9072.getPrototypeOf(v9073); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9074 = {}; -v9074.constructor = v9071; -v9071.prototype = v9074; -v9070.push(v9071); -v9069.apiCallAttempt = v9070; -const v9075 = []; -var v9076; -v9076 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9057.getPrototypeOf(v9073); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9077 = {}; -v9077.constructor = v9076; -v9076.prototype = v9077; -v9075.push(v9076); -v9069.apiCall = v9075; -v9068._events = v9069; -v9068.MONITOR_EVENTS_BUBBLE = v9071; -v9068.CALL_EVENTS_BUBBLE = v9076; -v9065.prototype = v9068; -v9065.__super__ = v299; -const v9078 = {}; -v9078[\\"2021-02-01\\"] = null; -v9065.services = v9078; -const v9079 = []; -v9079.push(\\"2021-02-01\\"); -v9065.apiVersions = v9079; -v9065.serviceIdentifier = \\"evidently\\"; -v2.Evidently = v9065; -var v9080; -var v9081 = v299; -var v9082 = v31; -v9080 = function () { if (v9081 !== v9082) { - return v9081.apply(this, arguments); -} }; -const v9083 = Object.create(v309); -v9083.constructor = v9080; -const v9084 = {}; -const v9085 = []; -var v9086; -var v9087 = v31; -var v9088 = v9083; -v9086 = function EVENTS_BUBBLE(event) { var baseClass = v9087.getPrototypeOf(v9088); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9089 = {}; -v9089.constructor = v9086; -v9086.prototype = v9089; -v9085.push(v9086); -v9084.apiCallAttempt = v9085; -const v9090 = []; -var v9091; -v9091 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9072.getPrototypeOf(v9088); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9092 = {}; -v9092.constructor = v9091; -v9091.prototype = v9092; -v9090.push(v9091); -v9084.apiCall = v9090; -v9083._events = v9084; -v9083.MONITOR_EVENTS_BUBBLE = v9086; -v9083.CALL_EVENTS_BUBBLE = v9091; -v9080.prototype = v9083; -v9080.__super__ = v299; -const v9093 = {}; -v9093[\\"2020-06-08\\"] = null; -v9080.services = v9093; -const v9094 = []; -v9094.push(\\"2020-06-08\\"); -v9080.apiVersions = v9094; -v9080.serviceIdentifier = \\"inspector2\\"; -v2.Inspector2 = v9080; -var v9095; -var v9096 = v299; -var v9097 = v31; -v9095 = function () { if (v9096 !== v9097) { - return v9096.apply(this, arguments); -} }; -const v9098 = Object.create(v309); -v9098.constructor = v9095; -const v9099 = {}; -const v9100 = []; -var v9101; -var v9102 = v31; -var v9103 = v9098; -v9101 = function EVENTS_BUBBLE(event) { var baseClass = v9102.getPrototypeOf(v9103); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9104 = {}; -v9104.constructor = v9101; -v9101.prototype = v9104; -v9100.push(v9101); -v9099.apiCallAttempt = v9100; -const v9105 = []; -var v9106; -v9106 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9087.getPrototypeOf(v9103); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9107 = {}; -v9107.constructor = v9106; -v9106.prototype = v9107; -v9105.push(v9106); -v9099.apiCall = v9105; -v9098._events = v9099; -v9098.MONITOR_EVENTS_BUBBLE = v9101; -v9098.CALL_EVENTS_BUBBLE = v9106; -v9095.prototype = v9098; -v9095.__super__ = v299; -const v9108 = {}; -v9108[\\"2021-06-15\\"] = null; -v9095.services = v9108; -const v9109 = []; -v9109.push(\\"2021-06-15\\"); -v9095.apiVersions = v9109; -v9095.serviceIdentifier = \\"rbin\\"; -v2.Rbin = v9095; -var v9110; -var v9111 = v299; -var v9112 = v31; -v9110 = function () { if (v9111 !== v9112) { - return v9111.apply(this, arguments); -} }; -const v9113 = Object.create(v309); -v9113.constructor = v9110; -const v9114 = {}; -const v9115 = []; -var v9116; -var v9117 = v31; -var v9118 = v9113; -v9116 = function EVENTS_BUBBLE(event) { var baseClass = v9117.getPrototypeOf(v9118); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9119 = {}; -v9119.constructor = v9116; -v9116.prototype = v9119; -v9115.push(v9116); -v9114.apiCallAttempt = v9115; -const v9120 = []; -var v9121; -v9121 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9102.getPrototypeOf(v9118); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9122 = {}; -v9122.constructor = v9121; -v9121.prototype = v9122; -v9120.push(v9121); -v9114.apiCall = v9120; -v9113._events = v9114; -v9113.MONITOR_EVENTS_BUBBLE = v9116; -v9113.CALL_EVENTS_BUBBLE = v9121; -v9110.prototype = v9113; -v9110.__super__ = v299; -const v9123 = {}; -v9123[\\"2018-05-10\\"] = null; -v9110.services = v9123; -const v9124 = []; -v9124.push(\\"2018-05-10\\"); -v9110.apiVersions = v9124; -v9110.serviceIdentifier = \\"rum\\"; -v2.RUM = v9110; -var v9125; -var v9126 = v299; -var v9127 = v31; -v9125 = function () { if (v9126 !== v9127) { - return v9126.apply(this, arguments); -} }; -const v9128 = Object.create(v309); -v9128.constructor = v9125; -const v9129 = {}; -const v9130 = []; -var v9131; -var v9132 = v31; -var v9133 = v9128; -v9131 = function EVENTS_BUBBLE(event) { var baseClass = v9132.getPrototypeOf(v9133); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9134 = {}; -v9134.constructor = v9131; -v9131.prototype = v9134; -v9130.push(v9131); -v9129.apiCallAttempt = v9130; -const v9135 = []; -var v9136; -v9136 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9117.getPrototypeOf(v9133); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9137 = {}; -v9137.constructor = v9136; -v9136.prototype = v9137; -v9135.push(v9136); -v9129.apiCall = v9135; -v9128._events = v9129; -v9128.MONITOR_EVENTS_BUBBLE = v9131; -v9128.CALL_EVENTS_BUBBLE = v9136; -v9125.prototype = v9128; -v9125.__super__ = v299; -const v9138 = {}; -v9138[\\"2021-01-01\\"] = null; -v9125.services = v9138; -const v9139 = []; -v9139.push(\\"2021-01-01\\"); -v9125.apiVersions = v9139; -v9125.serviceIdentifier = \\"backupgateway\\"; -v2.BackupGateway = v9125; -var v9140; -var v9141 = v299; -var v9142 = v31; -v9140 = function () { if (v9141 !== v9142) { - return v9141.apply(this, arguments); -} }; -const v9143 = Object.create(v309); -v9143.constructor = v9140; -const v9144 = {}; -const v9145 = []; -var v9146; -var v9147 = v31; -var v9148 = v9143; -v9146 = function EVENTS_BUBBLE(event) { var baseClass = v9147.getPrototypeOf(v9148); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9149 = {}; -v9149.constructor = v9146; -v9146.prototype = v9149; -v9145.push(v9146); -v9144.apiCallAttempt = v9145; -const v9150 = []; -var v9151; -v9151 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9132.getPrototypeOf(v9148); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9152 = {}; -v9152.constructor = v9151; -v9151.prototype = v9152; -v9150.push(v9151); -v9144.apiCall = v9150; -v9143._events = v9144; -v9143.MONITOR_EVENTS_BUBBLE = v9146; -v9143.CALL_EVENTS_BUBBLE = v9151; -v9140.prototype = v9143; -v9140.__super__ = v299; -const v9153 = {}; -v9153[\\"2021-11-29\\"] = null; -v9140.services = v9153; -const v9154 = []; -v9154.push(\\"2021-11-29\\"); -v9140.apiVersions = v9154; -v9140.serviceIdentifier = \\"iottwinmaker\\"; -v2.IoTTwinMaker = v9140; -var v9155; -var v9156 = v299; -var v9157 = v31; -v9155 = function () { if (v9156 !== v9157) { - return v9156.apply(this, arguments); -} }; -const v9158 = Object.create(v309); -v9158.constructor = v9155; -const v9159 = {}; -const v9160 = []; -var v9161; -var v9162 = v31; -var v9163 = v9158; -v9161 = function EVENTS_BUBBLE(event) { var baseClass = v9162.getPrototypeOf(v9163); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9164 = {}; -v9164.constructor = v9161; -v9161.prototype = v9164; -v9160.push(v9161); -v9159.apiCallAttempt = v9160; -const v9165 = []; -var v9166; -v9166 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9147.getPrototypeOf(v9163); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9167 = {}; -v9167.constructor = v9166; -v9166.prototype = v9167; -v9165.push(v9166); -v9159.apiCall = v9165; -v9158._events = v9159; -v9158.MONITOR_EVENTS_BUBBLE = v9161; -v9158.CALL_EVENTS_BUBBLE = v9166; -v9155.prototype = v9158; -v9155.__super__ = v299; -const v9168 = {}; -v9168[\\"2020-07-08\\"] = null; -v9155.services = v9168; -const v9169 = []; -v9169.push(\\"2020-07-08\\"); -v9155.apiVersions = v9169; -v9155.serviceIdentifier = \\"workspacesweb\\"; -v2.WorkSpacesWeb = v9155; -var v9170; -var v9171 = v299; -var v9172 = v31; -v9170 = function () { if (v9171 !== v9172) { - return v9171.apply(this, arguments); -} }; -const v9173 = Object.create(v309); -v9173.constructor = v9170; -const v9174 = {}; -const v9175 = []; -var v9176; -var v9177 = v31; -var v9178 = v9173; -v9176 = function EVENTS_BUBBLE(event) { var baseClass = v9177.getPrototypeOf(v9178); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9179 = {}; -v9179.constructor = v9176; -v9176.prototype = v9179; -v9175.push(v9176); -v9174.apiCallAttempt = v9175; -const v9180 = []; -var v9181; -v9181 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9162.getPrototypeOf(v9178); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9182 = {}; -v9182.constructor = v9181; -v9181.prototype = v9182; -v9180.push(v9181); -v9174.apiCall = v9180; -v9173._events = v9174; -v9173.MONITOR_EVENTS_BUBBLE = v9176; -v9173.CALL_EVENTS_BUBBLE = v9181; -v9170.prototype = v9173; -v9170.__super__ = v299; -const v9183 = {}; -v9183[\\"2021-08-11\\"] = null; -v9170.services = v9183; -const v9184 = []; -v9184.push(\\"2021-08-11\\"); -v9170.apiVersions = v9184; -v9170.serviceIdentifier = \\"amplifyuibuilder\\"; -v2.AmplifyUIBuilder = v9170; -var v9185; -var v9186 = v299; -var v9187 = v31; -v9185 = function () { if (v9186 !== v9187) { - return v9186.apply(this, arguments); -} }; -const v9188 = Object.create(v309); -v9188.constructor = v9185; -const v9189 = {}; -const v9190 = []; -var v9191; -var v9192 = v31; -var v9193 = v9188; -v9191 = function EVENTS_BUBBLE(event) { var baseClass = v9192.getPrototypeOf(v9193); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9194 = {}; -v9194.constructor = v9191; -v9191.prototype = v9194; -v9190.push(v9191); -v9189.apiCallAttempt = v9190; -const v9195 = []; -var v9196; -v9196 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9177.getPrototypeOf(v9193); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9197 = {}; -v9197.constructor = v9196; -v9196.prototype = v9197; -v9195.push(v9196); -v9189.apiCall = v9195; -v9188._events = v9189; -v9188.MONITOR_EVENTS_BUBBLE = v9191; -v9188.CALL_EVENTS_BUBBLE = v9196; -v9185.prototype = v9188; -v9185.__super__ = v299; -const v9198 = {}; -v9198[\\"2022-02-10\\"] = null; -v9185.services = v9198; -const v9199 = []; -v9199.push(\\"2022-02-10\\"); -v9185.apiVersions = v9199; -v9185.serviceIdentifier = \\"keyspaces\\"; -v2.Keyspaces = v9185; -var v9200; -var v9201 = v299; -var v9202 = v31; -v9200 = function () { if (v9201 !== v9202) { - return v9201.apply(this, arguments); -} }; -const v9203 = Object.create(v309); -v9203.constructor = v9200; -const v9204 = {}; -const v9205 = []; -var v9206; -var v9207 = v31; -var v9208 = v9203; -v9206 = function EVENTS_BUBBLE(event) { var baseClass = v9207.getPrototypeOf(v9208); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9209 = {}; -v9209.constructor = v9206; -v9206.prototype = v9209; -v9205.push(v9206); -v9204.apiCallAttempt = v9205; -const v9210 = []; -var v9211; -v9211 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9192.getPrototypeOf(v9208); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9212 = {}; -v9212.constructor = v9211; -v9211.prototype = v9212; -v9210.push(v9211); -v9204.apiCall = v9210; -v9203._events = v9204; -v9203.MONITOR_EVENTS_BUBBLE = v9206; -v9203.CALL_EVENTS_BUBBLE = v9211; -v9200.prototype = v9203; -v9200.__super__ = v299; -const v9213 = {}; -v9213[\\"2021-07-30\\"] = null; -v9200.services = v9213; -const v9214 = []; -v9214.push(\\"2021-07-30\\"); -v9200.apiVersions = v9214; -v9200.serviceIdentifier = \\"billingconductor\\"; -v2.Billingconductor = v9200; -var v9215; -var v9216 = v299; -var v9217 = v31; -v9215 = function () { if (v9216 !== v9217) { - return v9216.apply(this, arguments); -} }; -const v9218 = Object.create(v309); -v9218.constructor = v9215; -const v9219 = {}; -const v9220 = []; -var v9221; -var v9222 = v31; -var v9223 = v9218; -v9221 = function EVENTS_BUBBLE(event) { var baseClass = v9222.getPrototypeOf(v9223); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9224 = {}; -v9224.constructor = v9221; -v9221.prototype = v9224; -v9220.push(v9221); -v9219.apiCallAttempt = v9220; -const v9225 = []; -var v9226; -v9226 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9207.getPrototypeOf(v9223); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9227 = {}; -v9227.constructor = v9226; -v9226.prototype = v9227; -v9225.push(v9226); -v9219.apiCall = v9225; -v9218._events = v9219; -v9218.MONITOR_EVENTS_BUBBLE = v9221; -v9218.CALL_EVENTS_BUBBLE = v9226; -v9215.prototype = v9218; -v9215.__super__ = v299; -const v9228 = {}; -v9228[\\"2021-08-17\\"] = null; -v9215.services = v9228; -const v9229 = []; -v9229.push(\\"2021-08-17\\"); -v9215.apiVersions = v9229; -v9215.serviceIdentifier = \\"gamesparks\\"; -v2.GameSparks = v9215; -var v9230; -var v9231 = v299; -var v9232 = v31; -v9230 = function () { if (v9231 !== v9232) { - return v9231.apply(this, arguments); -} }; -const v9233 = Object.create(v309); -v9233.constructor = v9230; -const v9234 = {}; -const v9235 = []; -var v9236; -var v9237 = v31; -var v9238 = v9233; -v9236 = function EVENTS_BUBBLE(event) { var baseClass = v9237.getPrototypeOf(v9238); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9239 = {}; -v9239.constructor = v9236; -v9236.prototype = v9239; -v9235.push(v9236); -v9234.apiCallAttempt = v9235; -const v9240 = []; -var v9241; -v9241 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9222.getPrototypeOf(v9238); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9242 = {}; -v9242.constructor = v9241; -v9241.prototype = v9242; -v9240.push(v9241); -v9234.apiCall = v9240; -v9233._events = v9234; -v9233.MONITOR_EVENTS_BUBBLE = v9236; -v9233.CALL_EVENTS_BUBBLE = v9241; -v9230.prototype = v9233; -v9230.__super__ = v299; -const v9243 = {}; -v9243[\\"2022-03-31\\"] = null; -v9230.services = v9243; -const v9244 = []; -v9244.push(\\"2022-03-31\\"); -v9230.apiVersions = v9244; -v9230.serviceIdentifier = \\"pinpointsmsvoicev2\\"; -v2.PinpointSMSVoiceV2 = v9230; -var v9245; -var v9246 = v299; -var v9247 = v31; -v9245 = function () { if (v9246 !== v9247) { - return v9246.apply(this, arguments); -} }; -const v9248 = Object.create(v309); -v9248.constructor = v9245; -const v9249 = {}; -const v9250 = []; -var v9251; -var v9252 = v31; -var v9253 = v9248; -v9251 = function EVENTS_BUBBLE(event) { var baseClass = v9252.getPrototypeOf(v9253); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9254 = {}; -v9254.constructor = v9251; -v9251.prototype = v9254; -v9250.push(v9251); -v9249.apiCallAttempt = v9250; -const v9255 = []; -var v9256; -v9256 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9237.getPrototypeOf(v9253); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9257 = {}; -v9257.constructor = v9256; -v9256.prototype = v9257; -v9255.push(v9256); -v9249.apiCall = v9255; -v9248._events = v9249; -v9248.MONITOR_EVENTS_BUBBLE = v9251; -v9248.CALL_EVENTS_BUBBLE = v9256; -v9245.prototype = v9248; -v9245.__super__ = v299; -const v9258 = {}; -v9258[\\"2020-07-14\\"] = null; -v9245.services = v9258; -const v9259 = []; -v9259.push(\\"2020-07-14\\"); -v9245.apiVersions = v9259; -v9245.serviceIdentifier = \\"ivschat\\"; -v2.Ivschat = v9245; -var v9260; -var v9261 = v299; -var v9262 = v31; -v9260 = function () { if (v9261 !== v9262) { - return v9261.apply(this, arguments); -} }; -const v9263 = Object.create(v309); -v9263.constructor = v9260; -const v9264 = {}; -const v9265 = []; -var v9266; -var v9267 = v31; -var v9268 = v9263; -v9266 = function EVENTS_BUBBLE(event) { var baseClass = v9267.getPrototypeOf(v9268); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9269 = {}; -v9269.constructor = v9266; -v9266.prototype = v9269; -v9265.push(v9266); -v9264.apiCallAttempt = v9265; -const v9270 = []; -var v9271; -v9271 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9252.getPrototypeOf(v9268); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9272 = {}; -v9272.constructor = v9271; -v9271.prototype = v9272; -v9270.push(v9271); -v9264.apiCall = v9270; -v9263._events = v9264; -v9263.MONITOR_EVENTS_BUBBLE = v9266; -v9263.CALL_EVENTS_BUBBLE = v9271; -v9260.prototype = v9263; -v9260.__super__ = v299; -const v9273 = {}; -v9273[\\"2021-07-15\\"] = null; -v9260.services = v9273; -const v9274 = []; -v9274.push(\\"2021-07-15\\"); -v9260.apiVersions = v9274; -v9260.serviceIdentifier = \\"chimesdkmediapipelines\\"; -v2.ChimeSDKMediaPipelines = v9260; -var v9275; -var v9276 = v299; -var v9277 = v31; -v9275 = function () { if (v9276 !== v9277) { - return v9276.apply(this, arguments); -} }; -const v9278 = Object.create(v309); -v9278.constructor = v9275; -const v9279 = {}; -const v9280 = []; -var v9281; -var v9282 = v31; -var v9283 = v9278; -v9281 = function EVENTS_BUBBLE(event) { var baseClass = v9282.getPrototypeOf(v9283); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9284 = {}; -v9284.constructor = v9281; -v9281.prototype = v9284; -v9280.push(v9281); -v9279.apiCallAttempt = v9280; -const v9285 = []; -var v9286; -v9286 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9267.getPrototypeOf(v9283); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9287 = {}; -v9287.constructor = v9286; -v9286.prototype = v9287; -v9285.push(v9286); -v9279.apiCall = v9285; -v9278._events = v9279; -v9278.MONITOR_EVENTS_BUBBLE = v9281; -v9278.CALL_EVENTS_BUBBLE = v9286; -v9275.prototype = v9278; -v9275.__super__ = v299; -const v9288 = {}; -v9288[\\"2021-07-13\\"] = null; -v9275.services = v9288; -const v9289 = []; -v9289.push(\\"2021-07-13\\"); -v9275.apiVersions = v9289; -v9275.serviceIdentifier = \\"emrserverless\\"; -v2.EMRServerless = v9275; -var v9290; -var v9291 = v299; -var v9292 = v31; -v9290 = function () { if (v9291 !== v9292) { - return v9291.apply(this, arguments); -} }; -const v9293 = Object.create(v309); -v9293.constructor = v9290; -const v9294 = {}; -const v9295 = []; -var v9296; -var v9297 = v31; -var v9298 = v9293; -v9296 = function EVENTS_BUBBLE(event) { var baseClass = v9297.getPrototypeOf(v9298); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9299 = {}; -v9299.constructor = v9296; -v9296.prototype = v9299; -v9295.push(v9296); -v9294.apiCallAttempt = v9295; -const v9300 = []; -var v9301; -v9301 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9282.getPrototypeOf(v9298); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9302 = {}; -v9302.constructor = v9301; -v9301.prototype = v9302; -v9300.push(v9301); -v9294.apiCall = v9300; -v9293._events = v9294; -v9293.MONITOR_EVENTS_BUBBLE = v9296; -v9293.CALL_EVENTS_BUBBLE = v9301; -v9290.prototype = v9293; -v9290.__super__ = v299; -const v9303 = {}; -v9303[\\"2021-04-28\\"] = null; -v9290.services = v9303; -const v9304 = []; -v9304.push(\\"2021-04-28\\"); -v9290.apiVersions = v9304; -v9290.serviceIdentifier = \\"m2\\"; -v2.M2 = v9290; -var v9305; -var v9306 = v299; -var v9307 = v31; -v9305 = function () { if (v9306 !== v9307) { - return v9306.apply(this, arguments); -} }; -const v9308 = Object.create(v309); -v9308.constructor = v9305; -const v9309 = {}; -const v9310 = []; -var v9311; -var v9312 = v31; -var v9313 = v9308; -v9311 = function EVENTS_BUBBLE(event) { var baseClass = v9312.getPrototypeOf(v9313); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9314 = {}; -v9314.constructor = v9311; -v9311.prototype = v9314; -v9310.push(v9311); -v9309.apiCallAttempt = v9310; -const v9315 = []; -var v9316; -v9316 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9297.getPrototypeOf(v9313); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9317 = {}; -v9317.constructor = v9316; -v9316.prototype = v9317; -v9315.push(v9316); -v9309.apiCall = v9315; -v9308._events = v9309; -v9308.MONITOR_EVENTS_BUBBLE = v9311; -v9308.CALL_EVENTS_BUBBLE = v9316; -v9305.prototype = v9308; -v9305.__super__ = v299; -const v9318 = {}; -v9318[\\"2021-01-30\\"] = null; -v9305.services = v9318; -const v9319 = []; -v9319.push(\\"2021-01-30\\"); -v9305.apiVersions = v9319; -v9305.serviceIdentifier = \\"connectcampaigns\\"; -v2.ConnectCampaigns = v9305; -var v9320; -var v9321 = v299; -var v9322 = v31; -v9320 = function () { if (v9321 !== v9322) { - return v9321.apply(this, arguments); -} }; -const v9323 = Object.create(v309); -v9323.constructor = v9320; -const v9324 = {}; -const v9325 = []; -var v9326; -var v9327 = v31; -var v9328 = v9323; -v9326 = function EVENTS_BUBBLE(event) { var baseClass = v9327.getPrototypeOf(v9328); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9329 = {}; -v9329.constructor = v9326; -v9326.prototype = v9329; -v9325.push(v9326); -v9324.apiCallAttempt = v9325; -const v9330 = []; -var v9331; -v9331 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9312.getPrototypeOf(v9328); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9332 = {}; -v9332.constructor = v9331; -v9331.prototype = v9332; -v9330.push(v9331); -v9324.apiCall = v9330; -v9323._events = v9324; -v9323.MONITOR_EVENTS_BUBBLE = v9326; -v9323.CALL_EVENTS_BUBBLE = v9331; -v9320.prototype = v9323; -v9320.__super__ = v299; -const v9333 = {}; -v9333[\\"2021-04-21\\"] = null; -v9320.services = v9333; -const v9334 = []; -v9334.push(\\"2021-04-21\\"); -v9320.apiVersions = v9334; -v9320.serviceIdentifier = \\"redshiftserverless\\"; -v2.RedshiftServerless = v9320; -var v9335; -var v9336 = v299; -var v9337 = v31; -v9335 = function () { if (v9336 !== v9337) { - return v9336.apply(this, arguments); -} }; -const v9338 = Object.create(v309); -v9338.constructor = v9335; -const v9339 = {}; -const v9340 = []; -var v9341; -var v9342 = v31; -var v9343 = v9338; -v9341 = function EVENTS_BUBBLE(event) { var baseClass = v9342.getPrototypeOf(v9343); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9344 = {}; -v9344.constructor = v9341; -v9341.prototype = v9344; -v9340.push(v9341); -v9339.apiCallAttempt = v9340; -const v9345 = []; -var v9346; -v9346 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9327.getPrototypeOf(v9343); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9347 = {}; -v9347.constructor = v9346; -v9346.prototype = v9347; -v9345.push(v9346); -v9339.apiCall = v9345; -v9338._events = v9339; -v9338.MONITOR_EVENTS_BUBBLE = v9341; -v9338.CALL_EVENTS_BUBBLE = v9346; -v9335.prototype = v9338; -v9335.__super__ = v299; -const v9348 = {}; -v9348[\\"2018-05-10\\"] = null; -v9335.services = v9348; -const v9349 = []; -v9349.push(\\"2018-05-10\\"); -v9335.apiVersions = v9349; -v9335.serviceIdentifier = \\"rolesanywhere\\"; -v2.RolesAnywhere = v9335; -var v9350; -var v9351 = v299; -var v9352 = v31; -v9350 = function () { if (v9351 !== v9352) { - return v9351.apply(this, arguments); -} }; -const v9353 = Object.create(v309); -v9353.constructor = v9350; -const v9354 = {}; -const v9355 = []; -var v9356; -var v9357 = v31; -var v9358 = v9353; -v9356 = function EVENTS_BUBBLE(event) { var baseClass = v9357.getPrototypeOf(v9358); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9359 = {}; -v9359.constructor = v9356; -v9356.prototype = v9359; -v9355.push(v9356); -v9354.apiCallAttempt = v9355; -const v9360 = []; -var v9361; -v9361 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9342.getPrototypeOf(v9358); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9362 = {}; -v9362.constructor = v9361; -v9361.prototype = v9362; -v9360.push(v9361); -v9354.apiCall = v9360; -v9353._events = v9354; -v9353.MONITOR_EVENTS_BUBBLE = v9356; -v9353.CALL_EVENTS_BUBBLE = v9361; -v9350.prototype = v9353; -v9350.__super__ = v299; -const v9363 = {}; -v9363[\\"2018-05-10\\"] = null; -v9350.services = v9363; -const v9364 = []; -v9364.push(\\"2018-05-10\\"); -v9350.apiVersions = v9364; -v9350.serviceIdentifier = \\"licensemanagerusersubscriptions\\"; -v2.LicenseManagerUserSubscriptions = v9350; -var v9365; -var v9366 = v299; -var v9367 = v31; -v9365 = function () { if (v9366 !== v9367) { - return v9366.apply(this, arguments); -} }; -const v9368 = Object.create(v309); -v9368.constructor = v9365; -const v9369 = {}; -const v9370 = []; -var v9371; -var v9372 = v31; -var v9373 = v9368; -v9371 = function EVENTS_BUBBLE(event) { var baseClass = v9372.getPrototypeOf(v9373); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9374 = {}; -v9374.constructor = v9371; -v9371.prototype = v9374; -v9370.push(v9371); -v9369.apiCallAttempt = v9370; -const v9375 = []; -var v9376; -v9376 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9357.getPrototypeOf(v9373); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9377 = {}; -v9377.constructor = v9376; -v9376.prototype = v9377; -v9375.push(v9376); -v9369.apiCall = v9375; -v9368._events = v9369; -v9368.MONITOR_EVENTS_BUBBLE = v9371; -v9368.CALL_EVENTS_BUBBLE = v9376; -v9365.prototype = v9368; -v9365.__super__ = v299; -const v9378 = {}; -v9378[\\"2018-04-10\\"] = null; -v9365.services = v9378; -const v9379 = []; -v9379.push(\\"2018-04-10\\"); -v9365.apiVersions = v9379; -v9365.serviceIdentifier = \\"backupstorage\\"; -v2.BackupStorage = v9365; -var v9380; -var v9381 = v299; -var v9382 = v31; -v9380 = function () { if (v9381 !== v9382) { - return v9381.apply(this, arguments); -} }; -const v9383 = Object.create(v309); -v9383.constructor = v9380; -const v9384 = {}; -const v9385 = []; -var v9386; -var v9387 = v31; -var v9388 = v9383; -v9386 = function EVENTS_BUBBLE(event) { var baseClass = v9387.getPrototypeOf(v9388); if (baseClass._events) - baseClass.emit(\\"apiCallAttempt\\", [event]); }; -const v9389 = {}; -v9389.constructor = v9386; -v9386.prototype = v9389; -v9385.push(v9386); -v9384.apiCallAttempt = v9385; -const v9390 = []; -var v9391; -v9391 = function CALL_EVENTS_BUBBLE(event) { var baseClass = v9372.getPrototypeOf(v9388); if (baseClass._events) - baseClass.emit(\\"apiCall\\", [event]); }; -const v9392 = {}; -v9392.constructor = v9391; -v9391.prototype = v9392; -v9390.push(v9391); -v9384.apiCall = v9390; -v9383._events = v9384; -v9383.MONITOR_EVENTS_BUBBLE = v9386; -v9383.CALL_EVENTS_BUBBLE = v9391; -v9380.prototype = v9383; -v9380.__super__ = v299; -const v9393 = {}; -v9393[\\"2021-12-03\\"] = null; -v9380.services = v9393; -const v9394 = []; -v9394.push(\\"2021-12-03\\"); -v9380.apiVersions = v9394; -v9380.serviceIdentifier = \\"privatenetworks\\"; -v2.PrivateNetworks = v9380; -var v1 = v2; -v0 = () => { const client = new v1.DynamoDB(); return client.config.endpoint; }; -exports.handler = v0; -" +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDeXZZcTFZLE1BTUE7QUFNekMsTUFNMUIsTUFBeUIsQ0FTQSxJQUlKLEVBSkksQ0FtQkQsRUFuQkMsRUFyQjBDO0FBa0RKLE9BT2xCLE1BQU8sQ0FPQSxNQVBVLENBY0EsU0FyQkMsQ0FsREk7QUFBQTtDRC92WXIxWTtBQUFBIn0" `; exports[`serialize a bound function 1`] = ` -"// -var v0; -var v2 = {}; +"var v0; +const v2 = {}; v2.prop = \\"hello\\"; -var v3 = []; +const v3 = []; var v4; -v4 = function foo() { - return this.prop; -}; -var v5 = {}; +v4 = function foo(){ +return this.prop; +} +; +const v5 = {}; v5.constructor = v4; v4.prototype = v5; -var v6 = v4.bind(v2, v3); +const v6 = v4.bind(v2,v3,); var v1 = v6; v0 = () => { - return v1(); -}; -exports.handler = v0; -" +return v1(); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N5dlowelosY0FxQ0E7QUFNSixPQU9OLElBQUssQ0FLQSxJQVpDLENBTkk7QUFBQTtDRDl4WjF6WjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N3NVp3N1osTUFNQTtBQU1KLE9BT0gsRUFBRSxFQVBDLENBTkk7QUFBQTtDRDk1Wng3WjtBQUFBIn0" `; exports[`serialize a class declaration 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - method() { - v3++; - return v3; - } +v2 = class Foo{ +method(){ +v3++; +return v3; +} + }; var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method(); - foo.method(); - return v3; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method(); +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ283RTIvRSxNQU03RCxHQU42RDtBQXVCekMsTUFQcUMsRUFnQkE7QUFRekIsRUFBRSxFQUFDLENBUnNCO0FBbUJOLE9BT0QsRUFQQyxDQW5CTTtBQUFBO0FBaENJO0FBQUEsQyxDRHA3RTMvRTtBQUFBO0tDa2lGNG5GLE1BTUE7QUFNdkQsTUFNYixHQUFZLENBTUEsSUFJRixFQUpFLEVBbEJ3RDtBQWtDOUMsR0FBTyxDQUlBLE1BSkUsRUFBQyxDQWxDb0M7QUFvRDVCLEdBQU8sQ0FJQSxNQUpFLEVBQUMsQ0FwRGtCO0FBc0VKLE9BT0QsRUFQQyxDQXRFSTtBQUFBO0NEeGlGNW5GO0FBQUEifQ" `; exports[`serialize a class declaration with constructor 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - constructor() { - v3 += 1; - } - method() { - v3++; - return v3; - } +v2 = class Foo{ +constructor(){ +v3+=1; +} + +method(){ +v3++; +return v3; +} + }; var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method(); - foo.method(); - return v3; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method(); +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3d2RncyRixNQU10RyxHQU5zRztBQWdCNUQsYUFjQTtBQVFaLEVBQUssRUFLQSxDQUxDLENBUk07QUFBQTtBQTlCNEQ7QUFnRXpDLE1BUHFDLEVBZ0JBO0FBUXpCLEVBQUUsRUFBQyxDQVJzQjtBQW1CTixPQU9ELEVBUEMsQ0FuQk07QUFBQTtBQXpFSTtBQUFBLEMsQ0R4dkZ4MkY7QUFBQTtLQys0RnkrRixNQU1BO0FBTXZELE1BTWIsR0FBWSxDQU1BLElBSUYsRUFKRSxFQWxCd0Q7QUFrQzlDLEdBQU8sQ0FJQSxNQUpFLEVBQUMsQ0FsQ29DO0FBb0Q1QixHQUFPLENBSUEsTUFKRSxFQUFDLENBcERrQjtBQXNFSixPQU9ELEVBUEMsQ0F0RUk7QUFBQTtDRHI1RnorRjtBQUFBIn0" `; exports[`serialize a class hierarchy 1`] = ` -"// -var v0; +"var v0; var v2; var v4; var v5 = 0; -v4 = class Foo { - method() { - return v5 += 1; - } +v4 = class Foo{ +method(){ +return (v5+=1); +} + }; var v3 = v4; -v2 = class Bar extends v3 { - method() { - return super.method() + 1; - } +v2 = class Bar extends v3{ +method(){ +return super.method()+1; +} + }; var v1 = v2; v0 = () => { - const bar = new v1(); - return [bar.method(), v5]; -}; -exports.handler = v0; -" +const bar=new v1() +return [bar.method(),v5,]; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDdzVOMjlOLE1BTXpELEdBTnlEO0FBdUJyQyxNQVBpQyxFQWdCQTtBQVFOLE9BT0QsQ0FDTixFQUFLLEVBS0EsQ0FOQyxDQVBDLENBUk07QUFBQTtBQWhDSTtBQUFBLEMsQ0R4NU4zOU47QUFBQTtLQzg5TnVqTyxNQU0vRSxHQU4rRSxTQWtCbkUsRUFsQm1FO0FBbUMvQyxNQVAyQyxFQWdCQTtBQVFOLE9BT2QsS0FBTyxDQU1BLE1BTkUsRUFBSSxDQWlCQSxDQXhCQyxDQVJNO0FBQUE7QUE1Q0k7QUFBQSxDLENEOTlOdmpPO0FBQUE7S0M4bE9vcU8sTUFNQTtBQU1uQyxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQm9DO0FBa0NKLE9BT0QsQ0FDYixHQUFPLENBSUEsTUFKRSxFQURJLENBZUQsRUFmQyxFQVBDLENBbENJO0FBQUE7Q0RwbU9wcU87QUFBQSJ9" `; exports[`serialize a class mix-in 1`] = ` -"// -var v0; +"var v0; var v2; var v4; var v5 = 0; v4 = () => { - return class Foo { - method() { - return v5 += 1; - } - }; +return class Foo{ +method(){ +return (v5+=1); +} + }; +} +; var v3 = v4; -v2 = class Bar extends v3() { - method() { - return super.method() + 1; - } +v2 = class Bar extends v3(){ +method(){ +return super.method()+1; +} + }; var v1 = v2; v0 = () => { - const bar = new v1(); - return [bar.method(), v5]; -}; -exports.handler = v0; -" +const bar=new v1() +return [bar.method(),v5,]; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDNnhPazNPLE1BVUE7QUFBQSxhQU1qRSxHQU5pRTtBQXlCM0MsTUFQcUMsRUFnQkE7QUFVUixPQU9ELENBQ04sRUFBSyxFQUtBLENBTkMsQ0FQQyxDQVZRO0FBQUE7QUFsQ007QUFBQTtBQUFBO0NEdnlPbDNPO0FBQUE7S0NzM09tOU8sTUFNbkYsR0FObUYsU0FrQnJFLEVBQUUsRUFsQm1FO0FBdUMvQyxNQVAyQyxFQWdCQTtBQVFOLE9BT2QsS0FBTyxDQU1BLE1BTkUsRUFBSSxDQWlCQSxDQXhCQyxDQVJNO0FBQUE7QUFoREk7QUFBQSxDLENEdDNPbjlPO0FBQUE7S0MwL09na1AsTUFNQTtBQU1uQyxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQm9DO0FBa0NKLE9BT0QsQ0FDYixHQUFPLENBSUEsTUFKRSxFQURJLENBZUQsRUFmQyxFQVBDLENBbENJO0FBQUE7Q0RoZ1Boa1A7QUFBQSJ9" `; exports[`serialize a monkey-patched class getter 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - get method() { - return v3 += 1; - } +v2 = class Foo{ +get method(){ +return (v3+=1); +} + }; -Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { - return v3 += 2; -} }); +const v4 = function get(){ +return (v3+=2); +} + +Object.defineProperty(v2.prototype,\\"method\\",{get : v4,},); var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method; - foo.method; - return v3; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method; +foo.method; +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzIzSms4SixNQU03RCxHQU42RDtBQWdCSixJQVdqQyxNQVhpQyxFQW9CQTtBQVFOLE9BT0QsQ0FDTixFQUFLLEVBS0EsQ0FOQyxDQVBDLENBUk07QUFBQTtBQXBDSTtBQUFBLEMsQ0QzM0psOEo7QUMwL0oraEssb0JBQWpDLEdBQWlDLEVBTUE7QUFRTixPQU9ELENBQ04sRUFBSyxFQUtBLENBTkMsQ0FQQyxDQVJNO0FBQUE7QURoZ0svaEs7QUFBQTtBQUFBO0tDNmtLbXFLLE1BTUE7QUFNbkQsTUFNYixHQUFZLENBTUEsSUFJRixFQUpFLEVBbEJvRDtBQWtDMUMsR0FBTyxDQUlBLE1BSkMsQ0FsQ2tDO0FBa0QxQixHQUFPLENBSUEsTUFKQyxDQWxEa0I7QUFrRUosT0FPRCxFQVBDLENBbEVJO0FBQUE7Q0RubEtucUs7QUFBQSJ9" `; exports[`serialize a monkey-patched class getter and setter 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - set method(val) { - v3 += val; - } - get method() { - return v3; - } +v2 = class Foo{ +set method(val){ +v3+=val; +} + +get method(){ +return v3; +} + }; -Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { - return v3 + 1; -}, set: function set(val) { - v3 += val + 1; -} }); +const v4 = function get(){ +return v3+1; +} + +const v5 = function set(val,){ +v3+=val+1; +} + +Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : v5,},); var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method=1; +foo.method=1; +return foo.method; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ295TCs1TCxNQU1qSCxHQU5pSDtBQWdCcEQsSUFXckMsTUFYcUMsQ0FrQnpCLEdBbEJ5QixDQStCQTtBQVFkLEVBQU8sRUFLQSxHQUxDLENBUk07QUFBQTtBQS9Db0Q7QUEyRUosSUFXMUIsTUFYMEIsRUFvQkE7QUFRTixPQU9ELEVBUEMsQ0FSTTtBQUFBO0FBL0ZJO0FBQUEsQyxDRHB5TC81TDtBQ3lnTTJpTSxvQkFBOUIsR0FBOEIsRUFNQTtBQVFOLE9BT0wsRUFBSSxDQUlBLENBWEMsQ0FSTTtBQUFBO0FEL2dNM2lNO0FDdTlMb2dNLG9CQUF6QyxHQUF5QyxDQUk3QixHQUo2QixFQWlCQTtBQVFsQixFQUFXLEVBS0osR0FBSSxDQU1BLENBWEMsQ0FSTTtBQUFBO0FEeCtMcGdNO0FBQUE7QUFBQTtLQ3lsTWdzTSxNQU1BO0FBTXBFLE1BTWIsR0FBWSxDQU1BLElBSUYsRUFKRSxFQWxCcUU7QUFrQzNELEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQWxDK0M7QUFzRHZDLEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQXREMkI7QUEwRUosT0FPUixHQUFPLENBSUEsTUFYQyxDQTFFSTtBQUFBO0NEL2xNaHNNO0FBQUEifQ" `; exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - set method(val) { - v3 += val; - } - get method() { - return v3; - } +v2 = class Foo{ +set method(val){ +v3+=val; +} + +get method(){ +return v3; +} + }; -Object.defineProperty(v2.prototype, \\"method\\", { get: function get() { - return v3 + 1; -}, set: Object.getOwnPropertyDescriptor(v2.prototype, \\"method\\").set }); +const v4 = function get(){ +return v3+1; +} + +Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : Object.getOwnPropertyDescriptor(v2.prototype,\\"method\\",).set,},); var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method = 1; - foo.method = 1; - return foo.method; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method=1; +foo.method=1; +return foo.method; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzQzTXUvTSxNQU1qSCxHQU5pSDtBQWdCcEQsSUFXckMsTUFYcUMsQ0FrQnpCLEdBbEJ5QixDQStCQTtBQVFkLEVBQU8sRUFLQSxHQUxDLENBUk07QUFBQTtBQS9Db0Q7QUEyRUosSUFXMUIsTUFYMEIsRUFvQkE7QUFRTixPQU9ELEVBUEMsQ0FSTTtBQUFBO0FBL0ZJO0FBQUEsQyxDRDUzTXYvTTtBQ3duTjBwTixvQkFBOUIsR0FBOEIsRUFNQTtBQVFOLE9BT0wsRUFBSSxDQUlBLENBWEMsQ0FSTTtBQUFBO0FEOW5OMXBOO0FBQUE7QUFBQTtLQ3dzTit5TixNQU1BO0FBTXBFLE1BTWIsR0FBWSxDQU1BLElBSUYsRUFKRSxFQWxCcUU7QUFrQzNELEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQWxDK0M7QUFzRHZDLEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQXREMkI7QUEwRUosT0FPUixHQUFPLENBSUEsTUFYQyxDQTFFSTtBQUFBO0NEOXNOL3lOO0FBQUEifQ" `; exports[`serialize a monkey-patched class method 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - method() { - v3 += 1; - } +v2 = class Foo{ +method(){ +v3+=1; +} + }; var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; +v4 = function (){ +v3+=2; +} +; +const v5 = {}; v5.constructor = v4; v4.prototype = v5; v2.prototype.method = v4; var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method(); - foo.method(); - return v3; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method(); +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3FnSStqSSxNQU1oRCxHQU5nRDtBQXVCNUIsTUFQd0IsRUFnQkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7QUFoQ0k7QUFBQSxDLENEcmdJL2pJO0FBQUE7S0N5bEl1bkksV0FZQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRHJtSXZuSTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0MrcEl5dkksTUFNQTtBQU12RCxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQndEO0FBa0M5QyxHQUFPLENBSUEsTUFKRSxFQUFDLENBbENvQztBQW9ENUIsR0FBTyxDQUlBLE1BSkUsRUFBQyxDQXBEa0I7QUFzRUosT0FPRCxFQVBDLENBdEVJO0FBQUE7Q0RycUl6dkk7QUFBQSJ9" `; exports[`serialize a monkey-patched class method that has been re-set 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - method() { - v3 += 1; - } +v2 = class Foo{ +method(){ +v3+=1; +} + }; var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; +v4 = function (){ +v3+=2; +} +; +const v5 = {}; v5.constructor = v4; v4.prototype = v5; v2.prototype.method = v4; var v1 = v2; -var v6 = function method() { - v3 += 1; -}; +const v7 = function method(){ +v3+=1; +} + +var v6 = v7; v0 = () => { - const foo = new v1(); - foo.method(); - v1.prototype.method = v6; - foo.method(); - return v3; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method(); +v1.prototype.method=v6; +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ200STY3SSxNQU1oRCxHQU5nRDtBQXVCNUIsTUFQd0IsRUFnQkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7QUFoQ0k7QUFBQSxDLENEbjRJNzdJO0FBQUE7S0MrL0k2aEosV0FZQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRDNnSjdoSjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUNtNUl5N0ksb0JBT3hCLE1BUHdCLEVBZ0JBO0FBUVosRUFBSyxFQUtBLENBTEMsQ0FSTTtBQUFBO0FEbjZJejdJO0FBQUE7S0NpakpnckosTUFNQTtBQU01RixNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQjZGO0FBa0NuRixHQUFPLENBSUEsTUFKRSxFQUFDLENBbEN5RTtBQXFEaEUsRUFBVSxDQUlBLFNBSk8sQ0FjQSxNQWRTLENBdUJBLEVBdkJDLENBckRxQztBQXlGNUIsR0FBTyxDQUlBLE1BSkUsRUFBQyxDQXpGa0I7QUEyR0osT0FPRCxFQVBDLENBM0dJO0FBQUE7Q0R2akpocko7QUFBQSJ9" `; exports[`serialize a monkey-patched class setter 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - set method(val) { - v3 += val; - } +v2 = class Foo{ +set method(val){ +v3+=val; +} + }; -Object.defineProperty(v2.prototype, \\"method\\", { set: function set(val) { - v3 += val + 1; -} }); +const v4 = function set(val,){ +v3+=val+1; +} + +Object.defineProperty(v2.prototype,\\"method\\",{set : v4,},); var v1 = v2; v0 = () => { - const foo = new v1(); - foo.method = 1; - foo.method = 1; - return v3; -}; -exports.handler = v0; -" +const foo=new v1() +foo.method=1; +foo.method=1; +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2cwSzI0SyxNQU1qRSxHQU5pRTtBQWdCSixJQVdyQyxNQVhxQyxDQWtCekIsR0FsQnlCLENBK0JBO0FBUWQsRUFBTyxFQUtBLEdBTEMsQ0FSTTtBQUFBO0FBL0NJO0FBQUEsQyxDRGgwSzM0SztBQ204S2cvSyxvQkFBekMsR0FBeUMsQ0FJN0IsR0FKNkIsRUFpQkE7QUFRbEIsRUFBVyxFQUtKLEdBQUksQ0FNQSxDQVhDLENBUk07QUFBQTtBRHA5S2gvSztBQUFBO0FBQUE7S0M4aEw0bkwsTUFNQTtBQU0zRCxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQjREO0FBa0NsRCxHQUFPLENBSUEsTUFKSSxDQWFBLENBYkMsQ0FsQ3NDO0FBc0Q5QixHQUFPLENBSUEsTUFKSSxDQWFBLENBYkMsQ0F0RGtCO0FBMEVKLE9BT0QsRUFQQyxDQTFFSTtBQUFBO0NEcGlMNW5MO0FBQUEifQ" `; exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; -}; - -// -var v0; +"var v0; var v2; var v3 = 0; -var _a; -v2 = (_a = class { -}, __publicField(_a, \\"method\\", () => { - v3 += 1; -}), _a); -var v4; -v4 = function() { - v3 += 2; +v2 = class Foo{ +static method = () => { +v3+=1; +} + }; -var v5 = {}; +var v4; +v4 = function (){ +v3+=2; +} +; +const v5 = {}; v5.constructor = v4; v4.prototype = v5; v2.method = v4; var v1 = v2; v0 = () => { - v1.method(); - v1.method(); - return v3; -}; -exports.handler = v0; -" +v1.method(); +v1.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzg3R3NnSCxNQU05RCxHQU44RDtBQWdCSixPQWMvQixNQWQrQixHQXVCRCxNQU1BO0FBUVosRUFBSyxFQUtBLENBTEMsQ0FSTTtBQUFBO0FBN0NLO0FBQUEsQyxDRDk3R3RnSDtBQUFBO0tDc2hIb2pILFdBWUE7QUFNVixFQUFLLEVBS0EsQ0FMQyxDQU5JO0FBQUE7Q0RsaUhwakg7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0tDNGxIMHBILE1BTUE7QUFNOUMsRUFBTyxDQUlBLE1BSkUsRUFBQyxDQU5vQztBQXdCNUIsRUFBTyxDQUlBLE1BSkUsRUFBQyxDQXhCa0I7QUEwQ0osT0FPRCxFQVBDLENBMUNJO0FBQUE7Q0RsbUgxcEg7QUFBQSJ9" `; exports[`serialize a monkey-patched static class method 1`] = ` -"// -var v0; +"var v0; var v2; var v3 = 0; -v2 = class Foo { - method() { - v3 += 1; - } +v2 = class Foo{ +method(){ +v3+=1; +} + }; var v4; -v4 = function() { - v3 += 2; -}; -var v5 = {}; +v4 = function (){ +v3+=2; +} +; +const v5 = {}; v5.constructor = v4; v4.prototype = v5; v2.method = v4; var v1 = v2; v0 = () => { - v1.method(); - v1.method(); - return v3; -}; -exports.handler = v0; -" +v1.method(); +v1.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3FtR3NxRyxNQU12RCxHQU51RDtBQThCNUIsTUFkd0IsRUF1QkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7QUF2Q0k7QUFBQSxDLENEcm1HdHFHO0FBQUE7S0NzckdvdEcsV0FZQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRGxzR3B0RztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0M0dkcwekcsTUFNQTtBQU05QyxFQUFPLENBSUEsTUFKRSxFQUFDLENBTm9DO0FBd0I1QixFQUFPLENBSUEsTUFKRSxFQUFDLENBeEJrQjtBQTBDSixPQU9ELEVBUEMsQ0ExQ0k7QUFBQTtDRGx3RzF6RztBQUFBIn0" `; exports[`serialize a monkey-patched static class property 1`] = ` -"var __defProp = Object.defineProperty; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== \\"symbol\\" ? key + \\"\\" : key, value); - return value; -}; - -// -var v0; +"var v0; var v2; -var _a; -v2 = (_a = class { -}, __publicField(_a, \\"prop\\", 1), _a); +v2 = class Foo{ +static prop = 1 +}; v2.prop = 2; var v1 = v2; v0 = () => { - return v1.prop; -}; -exports.handler = v0; -" +return v1.prop; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0Myd0h1ekgsTUFNbEMsR0FOa0M7QUFnQkosT0FjTCxJQWRLLEdBcUJELENBckNLO0FBQUEsQyxDRDN3SHZ6SDtBQUFBO0FBQUE7S0MrMkhnNUgsTUFNQTtBQU1KLE9BT04sRUFBSyxDQUlBLElBWEMsQ0FOSTtBQUFBO0NEcjNIaDVIO0FBQUEifQ" `; exports[`serialize a proxy 1`] = ` -"// -var v0; -var v2 = {}; +"var v0; +const v2 = {}; v2.value = \\"hello\\"; -var v3 = {}; +const v3 = {}; var v4; -v4 = (self, name) => { - return \`\${self[name]} world\`; -}; +v4 = (self,name,) => { +return \`\${self[name]} world\`; +} +; v3.get = v4; -var v5 = new Proxy(v2, v3); +const v5 = new Proxy(v2,v3,); var v1 = v5; v0 = () => { - return v1.value; -}; -exports.handler = v0; -" +return v1.value; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0M2bGFrcmEsQ0FDL0UsSUFEK0UsQ0FPekUsSUFQeUUsTUFnQkE7QUFVUixPQU9ELENBR0QsRUFBbEMsSUFBMkIsQ0FLdEIsSUFMc0IsQ0FBTyxDQWdDQSxNQW5DQyxDQVBDLENBVlE7QUFBQTtDRDdtYWxyYTtBQUFBO0FBQUE7QUFBQTtLQ3F1YXl3YSxNQU1BO0FBTUosT0FPUCxFQUFNLENBTUEsS0FiQyxDQU5JO0FBQUE7Q0QzdWF6d2E7QUFBQSJ9" `; exports[`serialize an imported module 1`] = ` -"// -var v0; -v0 = function isNode(a) { - return typeof (a == null ? void 0 : a.kind) === \\"number\\"; -}; -var v1 = {}; +"var v0; +v0 = function isNode(a,){ +return typeof a?.kind===\\"number\\"; +} +; +const v1 = {}; v1.constructor = v0; v0.prototype = v1; -exports.handler = v0; -" +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwic3JjL2d1YXJkcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtLQ3crZ0Vpa2hFLGdCQWdCbEUsQ0FoQmtFLEVBK0NBO0FBSUYsT0FPZCxPQU9OLENBQU0sRUFHQSxJQVZhLEdBbUJBLFFBMUJDLENBSkU7QUFBQTtDRHZoaEVqa2hFO0FBQUE7QUFBQTtBQUFBO0FBQUEifQ" +`; + +exports[`thrown errors map back to source 1`] = ` +"var v0; +const v2 = Error; +var v1 = v2; +v0 = () => { +throw new v1(\\"oops\\",); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzA1YW04YSxNQU1BO0FBTUosTUFNRCxJQUlSLEVBSlEsQ0FVRCxNQVZDLEVBTkMsQ0FOSTtBQUFBO0NEaDZhbjhhO0FBQUEifQ" `; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 29efcb03..b4eb2cac 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -10,6 +10,7 @@ import { isNode } from "../src/guards"; import { serializeClosure, SerializeClosureProps, + serializeCodeWithSourceMap, } from "../src/serialize-closure"; // set to false to inspect generated js files in .test/ @@ -50,8 +51,8 @@ async function expectClosure( f: F, options?: SerializeClosureProps ): Promise { - const closure = serializeClosure(f, options); - expect(closure).toMatchSnapshot(); + const closure = serializeCodeWithSourceMap(serializeClosure(f, options)); + // expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); // eslint-disable-next-line @typescript-eslint/no-require-imports @@ -605,7 +606,7 @@ test.skip("instantiating the AWS SDK without esbuild", async () => { return client.config.endpoint; }, { - useESBuild: false, + requireModules: false, } ); expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); @@ -629,7 +630,7 @@ test.skip("instantiating the AWS SDK v3 without esbuild", async () => { return client.config.serviceId; }, { - useESBuild: false, + requireModules: false, } ); @@ -670,3 +671,20 @@ test("serialize a proxy", async () => { expect(closure()).toEqual("hello world"); }); + +test("thrown errors map back to source", async () => { + const closure = await expectClosure(() => { + throw new Error("oops"); + }); + + let failed = false; + try { + closure(); + } catch (err) { + failed = true; + console.log((err as Error).stack); + } + if (!failed) { + fail("expected a thrown erro"); + } +}); diff --git a/yarn.lock b/yarn.lock index 79055f81..28864eac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,10 +1040,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@functionless/ast-reflection@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.2.2.tgz#976ec73af75028cb6216d70fa5266db368b0590a" - integrity sha512-YtvaEnorKparTOOIXmEbUXEfN4vOGl9jyXY7tvCDAgDpGMdJI2xAs108nHjNa6gabL9Xvojm6I1SuPC+EAsBvg== +"@functionless/ast-reflection@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.2.3.tgz#aac5039305bb73041fa5e4c4b8266e96106a30d3" + integrity sha512-lL4JkdCsTw2lzH05SpLnrkEEm+Gtx7kdIdCnT87/HiXzSHPpG8yrdpDP32YYHN2I5M81MZEd754mdJk7jDZYLg== "@functionless/nodejs-closure-serializer@^0.1.2": version "0.1.2" @@ -1868,12 +1868,12 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc" integrity sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A== -"@types/responselike@*": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-3.0.0.tgz#5ecc1fc88552e5ac03de648a7796f9e125d002dc" - integrity sha512-zfgGLWx5IQOTJgQPD4UfGEhapTKUPC1ra/QCG02y3GUJWrhX05bBf/EfTh3aFj2DKi7cLo+cipXLNclD27tQXQ== +"@types/responselike@*", "@types/responselike@1.0.0", "@types/responselike@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.0.tgz#251f4fe7d154d2bad125abe1b429b23afd262e29" + integrity sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA== dependencies: - responselike "*" + "@types/node" "*" "@types/stack-utils@^2.0.0": version "2.0.1" @@ -4093,7 +4093,7 @@ for-each@^0.3.3: dependencies: is-callable "^1.1.3" -form-data-encoder@^2.1.0: +form-data-encoder@^2.0.1: version "2.1.2" resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-2.1.2.tgz#5996b7c236e8c418d08316055a2235226c5e4061" integrity sha512-FCaIOVTRA9E0siY6FeXid7D5yrCqpsErplUkE2a1BEiKj1BE9z6FbKB4ntDTwC4NVLie9p+4E9nX4mWwEOT05A== @@ -4415,23 +4415,24 @@ globby@^11.0.4, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -got@^12.1.0: - version "12.4.1" - resolved "https://registry.yarnpkg.com/got/-/got-12.4.1.tgz#8598311b42591dfd2ed3ca4cdb9a591e2769a0bd" - integrity sha512-Sz1ojLt4zGNkcftIyJKnulZT/yEDvifhUjccHA8QzOuTgPs/+njXYNMFE3jR4/2OODQSSbH8SdnoLCkbh41ieA== +got@12.3.1, got@^12.1.0: + version "12.3.1" + resolved "https://registry.yarnpkg.com/got/-/got-12.3.1.tgz#79d6ebc0cb8358c424165698ddb828be56e74684" + integrity sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw== dependencies: "@sindresorhus/is" "^5.2.0" "@szmarczak/http-timer" "^5.0.1" "@types/cacheable-request" "^6.0.2" + "@types/responselike" "^1.0.0" cacheable-lookup "^6.0.4" cacheable-request "^7.0.2" decompress-response "^6.0.0" - form-data-encoder "^2.1.0" + form-data-encoder "^2.0.1" get-stream "^6.0.1" http2-wrapper "^2.1.10" lowercase-keys "^3.0.0" p-cancelable "^3.0.0" - responselike "^3.0.0" + responselike "^2.0.0" graceful-fs@4.2.10, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.6, graceful-fs@^4.2.9: version "4.2.10" @@ -7095,13 +7096,6 @@ resolve@^1.1.6, resolve@^1.10.0, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22 path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -responselike@*, responselike@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/responselike/-/responselike-3.0.0.tgz#20decb6c298aff0dbee1c355ca95461d42823626" - integrity sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg== - dependencies: - lowercase-keys "^3.0.0" - responselike@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.1.tgz#9a0bc8fdc252f3fb1cca68b016591059ba1422bc" @@ -7353,7 +7347,7 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.7.3: +source-map@^0.7.3, source-map@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== From 4a0ea007bd5aa7c4b00c8ea7be9e8a87d22b151e Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 11 Sep 2022 18:18:08 -0700 Subject: [PATCH 078/107] chore: add more tests --- test/serialize-closure.test.ts | 35 +++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index b4eb2cac..ece35832 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -14,7 +14,7 @@ import { } from "../src/serialize-closure"; // set to false to inspect generated js files in .test/ -const cleanup = true; +const cleanup = false; const tmpDir = path.join(__dirname, ".test"); beforeAll(async () => { @@ -688,3 +688,36 @@ test("thrown errors map back to source", async () => { fail("expected a thrown erro"); } }); + +test("serialize a class value", async () => { + class Foo { + constructor(readonly value: string) {} + public method() { + return `hello ${this.value}`; + } + } + const foo = new Foo("world"); + + const closure = await expectClosure(() => foo.method()); + + expect(closure()).toEqual("hello world"); +}); + +test("serialize a class method calling super", async () => { + class Foo { + constructor(readonly value: string) {} + public method() { + return `hello ${this.value}`; + } + } + class Bar extends Foo { + public method() { + return `${super.method()}!`; + } + } + const foo = new Bar("world"); + + const closure = await expectClosure(() => foo.method()); + + expect(closure()).toEqual("hello world!"); +}); From cb49555786ded58d6fb5448e2dd8c7072c819eec Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 11 Sep 2022 19:27:03 -0700 Subject: [PATCH 079/107] feat: support class inheritance with super --- src/appsync.ts | 9 ++++++--- src/asl/synth.ts | 8 +++++++- src/expression.ts | 8 ++------ src/function.ts | 31 ++++++++++++++++++------------- src/integration.ts | 3 ++- src/serialize-closure.ts | 10 ++++++++++ src/statement.ts | 4 ++-- src/vtl.ts | 5 ++++- 8 files changed, 51 insertions(+), 27 deletions(-) diff --git a/src/appsync.ts b/src/appsync.ts index 09e0d31f..64256bcd 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -538,7 +538,8 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { emptySpan(), new StringLiteralExpr(emptySpan(), "[L") ), - ] + ], + false ), "||", new CallExpr( @@ -554,7 +555,8 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { emptySpan(), new StringLiteralExpr(emptySpan(), "ArrayList") ), - ] + ], + false ) ), new BinaryExpr( @@ -576,7 +578,8 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { new Identifier(emptySpan(), "containsKey"), false ), - [new Argument(updatedNode.left.span, updatedNode.left)] + [new Argument(updatedNode.left.span, updatedNode.left)], + false ) ); } diff --git a/src/asl/synth.ts b/src/asl/synth.ts index 46f34769..0038af20 100644 --- a/src/asl/synth.ts +++ b/src/asl/synth.ts @@ -623,6 +623,10 @@ export class ASL { this.evalDecl(stmt.initializer, { jsonPath: `${tempArrayPath}[0]`, })! + : isVariableDeclList(stmt.initializer) + ? this.evalDecl(stmt.initializer.decls[0]!, { + jsonPath: `${tempArrayPath}[0]`, + })! : this.evalAssignment(stmt.initializer, { jsonPath: `${tempArrayPath}[0]`, })!; @@ -4703,7 +4707,9 @@ function toStateName(node?: FunctionlessNode): string { return `for(${ isIdentifier(node.initializer) ? toStateName(node.initializer) - : toStateName(node.initializer.name) + : isVariableDecl(node.initializer) + ? toStateName(node.initializer.name) + : toStateName(node.initializer.decls[0]?.name) } in ${toStateName(node.expr)})`; } else if (isForOfStmt(node)) { return `for(${toStateName(node.initializer)} of ${toStateName(node.expr)})`; diff --git a/src/expression.ts b/src/expression.ts index 245ca49e..ad499cc5 100644 --- a/src/expression.ts +++ b/src/expression.ts @@ -56,6 +56,7 @@ export type Expr = | SpreadAssignExpr | SpreadElementExpr | StringLiteralExpr + | SuperKeyword | TaggedTemplateExpr | TemplateExpr | ThisExpr @@ -925,12 +926,7 @@ export class ThisExpr extends BaseExpr { } } -export class SuperKeyword extends BaseNode { - // `super` is not an expression - a reference to it does not yield a value - // it only supports the following interactions - // 1. call in a constructor - `super(..)` - // 2. call a method on it - `super.method(..)`. - readonly nodeKind = "Node"; +export class SuperKeyword extends BaseExpr { constructor( /** * Range of text in the source file where this Node resides. diff --git a/src/function.ts b/src/function.ts index 9f758566..b1bdbac8 100644 --- a/src/function.ts +++ b/src/function.ts @@ -58,7 +58,10 @@ import { } from "./integration"; import { ReflectionSymbols, validateFunctionLike } from "./reflect"; import { isSecret } from "./secret"; -import { serializeClosure } from "./serialize-closure"; +import { + serializeClosure, + serializeCodeWithSourceMap, +} from "./serialize-closure"; import { isStepFunction } from "./step-function"; import { isTable } from "./table"; import { AnyAsyncFunction, AnyFunction } from "./util"; @@ -938,18 +941,20 @@ export async function serialize( const preWarms = integrationPrewarms; const result = serializerImpl === SerializerImpl.EXPERIMENTAL_SWC - ? serializeClosure( - integrationPrewarms.length > 0 - ? () => { - preWarms.forEach((i) => i?.(preWarmContext)); - return f; - } - : f, - { - shouldCaptureProp, - serialize: serializeHook, - isFactoryFunction: integrationPrewarms.length > 0, - } + ? serializeCodeWithSourceMap( + serializeClosure( + integrationPrewarms.length > 0 + ? () => { + preWarms.forEach((i) => i?.(preWarmContext)); + return f; + } + : f, + { + shouldCaptureProp, + serialize: serializeHook, + isFactoryFunction: integrationPrewarms.length > 0, + } + ) ) : ( await serializeFunction( diff --git a/src/integration.ts b/src/integration.ts index a6b23fa4..9f16be9c 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -308,7 +308,8 @@ export function findDeepIntegrations( new CallExpr( node.span, new ReferenceExpr(node.expr.span, "", () => integration, 0, 0), - node.args.map((arg) => arg.clone()) + node.args.map((arg) => arg.clone()), + false ) ) ) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 788b823a..f03a5c6a 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -438,6 +438,16 @@ export function serializeClosure( return serialize(Object.prototype); } + if ( + Object.hasOwn(value, "constructor") && + typeof value.constructor === "function" && + value.constructor.prototype === value + ) { + // this is the prototype value of a Function/class + const clazz = serialize(value.constructor); + return singleton(value, () => propAccessExpr(clazz, "prototype")); + } + const prototype = Object.getPrototypeOf(value); // serialize the prototype first diff --git a/src/statement.ts b/src/statement.ts index c9e99e6d..88e4990c 100644 --- a/src/statement.ts +++ b/src/statement.ts @@ -175,7 +175,7 @@ export class ForOfStmt extends BaseStmt { * Range of text in the source file where this Node resides. */ span: Span, - readonly initializer: VariableDeclList | Identifier, + readonly initializer: VariableDeclList | VariableDecl | Identifier, readonly expr: Expr, readonly body: Stmt, /** @@ -203,7 +203,7 @@ export class ForInStmt extends BaseStmt { * Range of text in the source file where this Node resides. */ span: Span, - readonly initializer: VariableDecl | Identifier, + readonly initializer: VariableDeclList | VariableDecl | Identifier, readonly expr: Expr, readonly body: BlockStmt ) { diff --git a/src/vtl.ts b/src/vtl.ts index 3d0563d2..b0fc595b 100644 --- a/src/vtl.ts +++ b/src/vtl.ts @@ -88,6 +88,7 @@ import { isUnaryExpr, isUndefinedLiteralExpr, isVariableDecl, + isVariableDeclList, isVariableStmt, isVoidExpr, isWhileStmt, @@ -599,7 +600,9 @@ export abstract class VTL { ); } this.foreach( - node.initializer, + isVariableDeclList(node.initializer) + ? node.initializer.decls[0]! + : node.initializer, `${this.eval(node.expr)}${isForInStmt(node) ? ".keySet()" : ""}`, node.body ); From 6535b5a4bfd99f24729feb873e420973d7cc7dee Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 12 Sep 2022 15:30:59 -0700 Subject: [PATCH 080/107] chore: working on broad spectrum tests --- .vscode/settings.json | 3 + src/serialize-closure.ts | 37 ++++++----- test/serialize-closure.test.ts | 110 +++++++++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 19 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index f79e5125..8603516f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -41,5 +41,8 @@ "eslint.format.enable": false, "typescript.tsdk": "node_modules/typescript/lib", "jest.jestCommandLine": "node_modules/.bin/jest", + "jest.autoRun": { + "onStartup": [] + }, "cSpell.words": ["localstack", "stepfunctions", "typesafe"] } diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 84b108ca..946f95ce 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -11,6 +11,7 @@ import { FunctionLike, GetAccessorDecl, MethodDecl, + ParameterDecl, SetAccessorDecl, VariableDeclKind, } from "./declaration"; @@ -872,10 +873,7 @@ export function serializeClosure( ...(node.isAsterisk ? ["*"] : []), ...(node.name ? [toSourceNode(node.name, illegalNames)] : []), "(", - ...node.parameters.flatMap((param) => [ - toSourceNode(param, illegalNames), - ",", - ]), + ...parametersToSourceNode(node.parameters, illegalNames), ")", toSourceNode(node.body, illegalNames), ]) @@ -918,10 +916,7 @@ export function serializeClosure( return createSourceNode(node, [ ...(node.isAsync ? ["async"] : []), "(", - ...node.parameters.flatMap((param) => [ - toSourceNode(param, illegalNames), - ",", - ]), + ...parametersToSourceNode(node.parameters, illegalNames), ") => ", toSourceNode(node.body, illegalNames), ]); @@ -932,10 +927,7 @@ export function serializeClosure( ...(node.isAsterisk ? ["*"] : []), ...(node.name ? [node.name] : []), "(", - ...node.parameters.flatMap((param) => [ - toSourceNode(param, illegalNames), - ",", - ]), + ...parametersToSourceNode(node.parameters, illegalNames), ")", toSourceNode(node.body, illegalNames), ]); @@ -1126,9 +1118,9 @@ export function serializeClosure( } else if (isConstructorDecl(node)) { return createSourceNode(node, [ "constructor(", - ...node.parameters.flatMap((param) => [ + ...node.parameters.flatMap((param, i) => [ toSourceNode(param, illegalNames), - ",", + ...(i < node.parameters.length ? [","] : []), ]), ")", toSourceNode(node.body, illegalNames), @@ -1147,10 +1139,7 @@ export function serializeClosure( toSourceNode(node.name, illegalNames), ...(node.isAsterisk ? ["*"] : []), "(", - ...node.parameters.flatMap((param) => [ - toSourceNode(param, illegalNames), - ",", - ]), + ...parametersToSourceNode(node.parameters, illegalNames), ")", toSourceNode(node.body, illegalNames), ]); @@ -1396,7 +1385,7 @@ export function serializeClosure( toSourceNode(node.expr, illegalNames), ]); } else if (isDebuggerStmt(node)) { - return createSourceNode(node, "debugger;"); + return createSourceNode(node, ""); } else if (isEmptyStmt(node)) { return createSourceNode(node, ";"); } else if (isReturnStmt(node)) { @@ -1421,4 +1410,14 @@ export function serializeClosure( return assertNever(node); } } + + function parametersToSourceNode( + parameters: ParameterDecl[], + illegalNames: Set + ): (string | SourceNode)[] { + return parameters.flatMap((param, i) => [ + toSourceNode(param, illegalNames), + ...(i < parameters.length - 1 ? [","] : []), + ]); + } } diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index ece35832..81d7ed3e 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -721,3 +721,113 @@ test("serialize a class method calling super", async () => { expect(closure()).toEqual("hello world!"); }); + +test("broad spectrum syntax test", async () => { + const closure = await expectClosure(() => { + const arrowExpr = (a: string, ...b: string[]) => [a, ...b]; + function funcDecl(a: string, ...b: string[]) { + return [a, ...b]; + } + const funcExpr = function funcExpr(a: string, ...b: string[]) { + return [a, ...b]; + }; + const anonFuncExpr = function (a: string, ...b: string[]) { + return [a, ...b]; + }; + + let getterSetterVal: string; + const obj = { + prop: "prop", + getProp() { + return this.prop + " 1"; + }, + get getterSetter(): string { + return getterSetterVal; + }, + set getterSetter(val: string) { + getterSetterVal = val; + }, + }; + + // destructuring + const { + a, + b: c, + d: [e], + f = "f", + } = { + a: "a", + b: "b", + d: ["e"], + }; + + obj.getterSetter = "getterSetter"; + + class Foo { + static VAL = "VAL"; + static { + Foo.VAL = "VAL 1"; + this.VAL = `${this.VAL} 2`; + } + readonly val: string; + constructor(readonly prop: string, val: string) { + this.val = val; + } + public method() { + return `${this.prop} ${this.val} ${Foo.VAL}`; + } + } + + const foo = new Foo("foo prop", "foo val"); + + return [ + ...arrowExpr("a", "b", "c"), + ...funcDecl("d", "e", "f"), + ...funcExpr("g", "h", "i"), + ...anonFuncExpr("j", "k", "l"), + obj.prop, + obj.getProp(), + obj.getterSetter, + a, + c, + e, + f, + (() => { + return "foo"; + })(), + (function () { + return "bar"; + })(), + (function baz() { + return "baz"; + })(), + foo.method(), + ]; + }); + + expect(closure()).toEqual([ + "a", + "b", + "c", + "d", + "e", + "f", + "g", + "h", + "i", + "j", + "k", + "l", + "prop", + "prop 1", + "getterSetter", + "a", + "b", + "e", + "f", + "foo", + "bar", + "baz", + "foo prop foo val VAL 1 2", + ]); +}); From deee162b069438cdce389af41e44c3c827600e48 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 12 Sep 2022 17:36:09 -0700 Subject: [PATCH 081/107] chore: add comprehensive test of all syntax --- src/aws-sdk/sdk.generated.ts | 74 ++++++--- src/serialize-closure.ts | 8 +- test/serialize-closure.test.ts | 269 ++++++++++++++++++++++++++++++++- 3 files changed, 321 insertions(+), 30 deletions(-) diff --git a/src/aws-sdk/sdk.generated.ts b/src/aws-sdk/sdk.generated.ts index ddb58d2d..40d33360 100644 --- a/src/aws-sdk/sdk.generated.ts +++ b/src/aws-sdk/sdk.generated.ts @@ -12482,6 +12482,13 @@ export interface CloudTrail { input: AWS.CloudTrail.DescribeTrailsRequest, options: SdkCallOptions ): Promise; + /** + * Returns the specified CloudTrail service-linked channel. Amazon Web Services services create service-linked channels to view CloudTrail events. + */ + getChannel( + input: AWS.CloudTrail.GetChannelRequest, + options: SdkCallOptions + ): Promise; /** * Returns information about an event data store specified as either an ARN or the ID portion of the ARN. */ @@ -12524,6 +12531,13 @@ export interface CloudTrail { input: AWS.CloudTrail.GetTrailStatusRequest, options: SdkCallOptions ): Promise; + /** + * Returns all CloudTrail channels. + */ + listChannels( + input: AWS.CloudTrail.ListChannelsRequest, + options: SdkCallOptions + ): Promise; /** * Returns information about all event data stores in the account, in the current region. */ @@ -12616,7 +12630,7 @@ export interface CloudTrail { options: SdkCallOptions ): Promise; /** - * Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 90 and 2555. By default, TerminationProtection is enabled. AdvancedEventSelectors includes or excludes management and data events in your event data store; for more information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors. + * Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 90 and 2557. By default, TerminationProtection is enabled. AdvancedEventSelectors includes or excludes management and data events in your event data store; for more information about AdvancedEventSelectors, see PutEventSelectorsRequest$AdvancedEventSelectors. */ updateEventDataStore( input: AWS.CloudTrail.UpdateEventDataStoreRequest, @@ -24960,7 +24974,7 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it. After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again. Linking your instance to a VPC is sometimes referred to as attaching your instance. + * We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC's security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that's in the running state. An instance is automatically unlinked from a VPC when it's stopped - you can link it to the VPC again when you restart it. After you've linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again. Linking your instance to a VPC is sometimes referred to as attaching your instance. */ attachClassicLinkVpc( input: AWS.EC2.AttachClassicLinkVpcRequest, @@ -25163,7 +25177,7 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and default subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself. If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region. If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see "I really want a default VPC for my existing EC2 account. Is that possible?" in the Default VPCs FAQ. We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. + * Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and default subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself. If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region. If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see "I really want a default VPC for my existing EC2 account. Is that possible?" in the Default VPCs FAQ. We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. */ createDefaultVpc( input: AWS.EC2.CreateDefaultVpcRequest, @@ -26185,7 +26199,7 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances. We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. + * Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances. We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. */ describeClassicLinkInstances( input: AWS.EC2.DescribeClassicLinkInstancesRequest, @@ -26318,7 +26332,7 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API. + * Describes one or more flow logs. To view the published flow log records, you must view the log destination. For example, the CloudWatch Logs log group, the Amazon S3 bucket, or the Kinesis Data Firehose delivery stream. */ describeFlowLogs( input: AWS.EC2.DescribeFlowLogsRequest, @@ -26976,14 +26990,14 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * Describes the ClassicLink status of one or more VPCs. We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. + * Describes the ClassicLink status of one or more VPCs. We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. */ describeVpcClassicLink( input: AWS.EC2.DescribeVpcClassicLinkRequest, options: SdkCallOptions ): Promise; /** - * We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. + * We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. */ describeVpcClassicLinkDnsSupport( input: AWS.EC2.DescribeVpcClassicLinkDnsSupportRequest, @@ -27060,7 +27074,7 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped. + * We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped. */ detachClassicLinkVpc( input: AWS.EC2.DetachClassicLinkVpcRequest, @@ -27151,14 +27165,14 @@ export interface EC2 { options: SdkCallOptions ): Promise<{}>; /** - * Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it. We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. + * Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it. We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. */ disableVpcClassicLink( input: AWS.EC2.DisableVpcClassicLinkRequest, options: SdkCallOptions ): Promise; /** - * Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the request. We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. + * Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it's linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the request. We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. */ disableVpcClassicLinkDnsSupport( input: AWS.EC2.DisableVpcClassicLinkDnsSupportRequest, @@ -27312,14 +27326,14 @@ export interface EC2 { options: SdkCallOptions ): Promise<{}>; /** - * We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. + * We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. */ enableVpcClassicLink( input: AWS.EC2.EnableVpcClassicLinkRequest, options: SdkCallOptions ): Promise; /** - * We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the request. + * We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it's linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the request. */ enableVpcClassicLinkDnsSupport( input: AWS.EC2.EnableVpcClassicLinkDnsSupportRequest, @@ -28012,7 +28026,7 @@ export interface EC2 { options: SdkCallOptions ): Promise; /** - * We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following: Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC. Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC. Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC. If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command. + * We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide. Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following: Enable/disable communication over the peering connection between an EC2-Classic instance that's linked to your VPC (using ClassicLink) and instances in the peer VPC. Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that's linked to the peer VPC. Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC. If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command. */ modifyVpcPeeringConnectionOptions( input: AWS.EC2.ModifyVpcPeeringConnectionOptionsRequest, @@ -40300,7 +40314,7 @@ export interface IdentityStore { options: SdkCallOptions ): Promise; /** - * Retrieves membership metadata and attributes from MembershipId in a group. + * Retrieves membership metadata and attributes from MembershipId in an identity store. */ describeGroupMembership( input: AWS.IdentityStore.DescribeGroupMembershipRequest, @@ -40321,7 +40335,7 @@ export interface IdentityStore { options: SdkCallOptions ): Promise; /** - * Retrieves the MembershipId in a group. + * Retrieves the MembershipId in an identity store. */ getGroupMembershipId( input: AWS.IdentityStore.GetGroupMembershipIdRequest, @@ -40335,7 +40349,7 @@ export interface IdentityStore { options: SdkCallOptions ): Promise; /** - * Returns if a member exists in specified groups. + * Checks the user's membership in all requested groups and returns if the member exists in all queried groups. */ isMemberInGroups( input: AWS.IdentityStore.IsMemberInGroupsRequest, @@ -40356,14 +40370,14 @@ export interface IdentityStore { options: SdkCallOptions ): Promise; /** - * Filtering for a group by the group DisplayName attribute is deprecated. Instead, use the GetGroupId API action. Lists all groups in the identity store. Returns a paginated list of complete Group objects. + * Lists the attribute name and value of the group that you specified in the search. We only support DisplayName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including GroupId and group DisplayName in the response. */ listGroups( input: AWS.IdentityStore.ListGroupsRequest, options: SdkCallOptions ): Promise; /** - * Filtering for a user by the UserName attribute is deprecated. Instead, use the GetUserId API action. Lists all users in the identity store. Returns a paginated list of complete User objects. + * Lists the attribute name and value of the user that you specified in the search. We only support UserName as a valid filter attribute path currently, and filter is required. This API returns minimum attributes, including UserId and UserName in the response. */ listUsers( input: AWS.IdentityStore.ListUsersRequest, @@ -44027,7 +44041,7 @@ export interface IoTSiteWise { options: SdkCallOptions ): Promise; /** - * This API operation is in preview release for IoT SiteWise and is subject to change. We recommend that you use this operation only with test data, and not in production environments. Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information, see Create a bulk import job (CLI) in the Amazon Simple Storage Service User Guide. You must enable IoT SiteWise to export data to Amazon S3 before you create a bulk import job. For more information about how to configure storage settings, see PutStorageConfiguration. + * Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information, see Create a bulk import job (CLI) in the Amazon Simple Storage Service User Guide. You must enable IoT SiteWise to export data to Amazon S3 before you create a bulk import job. For more information about how to configure storage settings, see PutStorageConfiguration. */ createBulkImportJob( input: AWS.IoTSiteWise.CreateBulkImportJobRequest, @@ -44146,7 +44160,7 @@ export interface IoTSiteWise { options: SdkCallOptions ): Promise; /** - * This API operation is in preview release for IoT SiteWise and is subject to change. We recommend that you use this operation only with test data, and not in production environments. Retrieves information about a bulk import job request. For more information, see Describe a bulk import job (CLI) in the Amazon Simple Storage Service User Guide. + * Retrieves information about a bulk import job request. For more information, see Describe a bulk import job (CLI) in the Amazon Simple Storage Service User Guide. */ describeBulkImportJob( input: AWS.IoTSiteWise.DescribeBulkImportJobRequest, @@ -44293,7 +44307,7 @@ export interface IoTSiteWise { options: SdkCallOptions ): Promise; /** - * This API operation is in preview release for IoT SiteWise and is subject to change. We recommend that you use this operation only with test data, and not in production environments. Retrieves a paginated list of bulk import job requests. For more information, see List bulk import jobs (CLI) in the Amazon Simple Storage Service User Guide. + * Retrieves a paginated list of bulk import job requests. For more information, see List bulk import jobs (CLI) in the IoT SiteWise User Guide. */ listBulkImportJobs( input: AWS.IoTSiteWise.ListBulkImportJobsRequest, @@ -65149,7 +65163,7 @@ export interface Redshift { options: SdkCallOptions ): Promise; /** - * Modifies whether a cluster can use AQUA (Advanced Query Accelerator). + * This operation is retired. Calling this operation does not change AQUA configuration. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator). */ modifyAquaConfiguration( input: AWS.Redshift.ModifyAquaInputMessage, @@ -70227,7 +70241,7 @@ export interface SageMaker { options: SdkCallOptions ): Promise; /** - * Starts a model training job. After training completes, SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify. If you choose to host your model using SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a machine learning service other than SageMaker, provided that you know how to use them for inference. In the request body, you provide the following: AlgorithmSpecification - Identifies the training algorithm to use. HyperParameters - Specify these algorithm-specific parameters to enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by SageMaker, see Algorithms. InputDataConfig - Describes the training dataset and the Amazon S3, EFS, or FSx location where it is stored. OutputDataConfig - Identifies the Amazon S3 bucket where you want SageMaker to save the results of model training. ResourceConfig - Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance. EnableManagedSpotTraining - Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see Managed Spot Training. RoleArn - The Amazon Resource Name (ARN) that SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that SageMaker can successfully complete model training. StoppingCondition - To help cap training costs, use MaxRuntimeInSeconds to set a time limit for training. Use MaxWaitTimeInSeconds to specify how long a managed spot training job has to complete. Environment - The environment variables to set in the Docker container. RetryStrategy - The number of times to retry the job when the job fails due to an InternalServerError. For more information about SageMaker, see How It Works. + * Starts a model training job. After training completes, SageMaker saves the resulting model artifacts to an Amazon S3 location that you specify. If you choose to host your model using SageMaker hosting services, you can use the resulting model artifacts as part of the model. You can also use the artifacts in a machine learning service other than SageMaker, provided that you know how to use them for inference. In the request body, you provide the following: AlgorithmSpecification - Identifies the training algorithm to use. HyperParameters - Specify these algorithm-specific parameters to enable the estimation of model parameters during training. Hyperparameters can be tuned to optimize this learning process. For a list of hyperparameters for each training algorithm provided by SageMaker, see Algorithms. You must not include any security-sensitive information, such as account access IDs, secrets, and tokens, in the dictionary for configuring hyperparameters. SageMaker rejects the training job request and returns an exception error for detected credentials, if such user input is found. InputDataConfig - Describes the training dataset and the Amazon S3, EFS, or FSx location where it is stored. OutputDataConfig - Identifies the Amazon S3 bucket where you want SageMaker to save the results of model training. ResourceConfig - Identifies the resources, ML compute instances, and ML storage volumes to deploy for model training. In distributed training, you specify more than one instance. EnableManagedSpotTraining - Optimize the cost of training machine learning models by up to 80% by using Amazon EC2 Spot instances. For more information, see Managed Spot Training. RoleArn - The Amazon Resource Name (ARN) that SageMaker assumes to perform tasks on your behalf during model training. You must grant this role the necessary permissions so that SageMaker can successfully complete model training. StoppingCondition - To help cap training costs, use MaxRuntimeInSeconds to set a time limit for training. Use MaxWaitTimeInSeconds to specify how long a managed spot training job has to complete. Environment - The environment variables to set in the Docker container. RetryStrategy - The number of times to retry the job when the job fails due to an InternalServerError. For more information about SageMaker, see How It Works. */ createTrainingJob( input: AWS.SageMaker.CreateTrainingJobRequest, @@ -75921,6 +75935,13 @@ export interface SNS { input: AWS.SNS.DeleteTopicInput, options: SdkCallOptions ): Promise<{}>; + /** + * Retrieves the specified inline DataProtectionPolicy document that is stored in the specified Amazon SNS topic. + */ + getDataProtectionPolicy( + input: AWS.SNS.GetDataProtectionPolicyInput, + options: SdkCallOptions + ): Promise; /** * Retrieves the endpoint attributes for a device on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. For more information, see Using Amazon SNS Mobile Push Notifications. */ @@ -76047,6 +76068,13 @@ export interface SNS { input: AWS.SNS.PublishBatchInput, options: SdkCallOptions ): Promise; + /** + * Adds or updates an inline policy document that is stored in the specified Amazon SNS topic. + */ + putDataProtectionPolicy( + input: AWS.SNS.PutDataProtectionPolicyInput, + options: SdkCallOptions + ): Promise<{}>; /** * Removes a statement from a topic's access control policy. */ diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 946f95ce..fc0e799f 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -870,8 +870,8 @@ export function serializeClosure( `const ${methodName} = `, ...(node.isAsync ? ["async"] : []), "function ", - ...(node.isAsterisk ? ["*"] : []), ...(node.name ? [toSourceNode(node.name, illegalNames)] : []), + ...(node.isAsterisk ? ["*"] : []), "(", ...parametersToSourceNode(node.parameters, illegalNames), ")", @@ -1136,8 +1136,8 @@ export function serializeClosure( } else if (isMethodDecl(node)) { return createSourceNode(node, [ ...(node.isAsync ? [" async "] : []), - toSourceNode(node.name, illegalNames), ...(node.isAsterisk ? ["*"] : []), + toSourceNode(node.name, illegalNames), "(", ...parametersToSourceNode(node.parameters, illegalNames), ")", @@ -1316,7 +1316,7 @@ export function serializeClosure( return createSourceNode(node, [ `catch`, ...(node.variableDecl - ? [toSourceNode(node.variableDecl, illegalNames)] + ? ["(", toSourceNode(node.variableDecl, illegalNames), ")"] : []), toSourceNode(node.block, illegalNames), ]); @@ -1385,7 +1385,7 @@ export function serializeClosure( toSourceNode(node.expr, illegalNames), ]); } else if (isDebuggerStmt(node)) { - return createSourceNode(node, ""); + return createSourceNode(node, "debugger;"); } else if (isEmptyStmt(node)) { return createSourceNode(node, ";"); } else if (isReturnStmt(node)) { diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 81d7ed3e..6fa20555 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -14,7 +14,7 @@ import { } from "../src/serialize-closure"; // set to false to inspect generated js files in .test/ -const cleanup = false; +const cleanup = true; const tmpDir = path.join(__dirname, ".test"); beforeAll(async () => { @@ -722,9 +722,25 @@ test("serialize a class method calling super", async () => { expect(closure()).toEqual("hello world!"); }); +test("serialize a this reference in an object literal", async () => { + const obj = { + prop: "prop", + get() { + return this.prop; + }, + }; + + const closure = await expectClosure(() => obj.get()); + + expect(closure()).toEqual("prop"); +}); + test("broad spectrum syntax test", async () => { - const closure = await expectClosure(() => { + const closure = await expectClosure(async () => { const arrowExpr = (a: string, ...b: string[]) => [a, ...b]; + const arrowBlockExpr = (a: string, ...b: string[]) => { + return [a, ...b]; + }; function funcDecl(a: string, ...b: string[]) { return [a, ...b]; } @@ -776,12 +792,176 @@ test("broad spectrum syntax test", async () => { public method() { return `${this.prop} ${this.val} ${Foo.VAL}`; } + + public async asyncMethod() { + const result = await new Promise((resolve) => + resolve("asyncResult") + ); + return result; + } + + public *generatorMethod(): any { + yield "yielded item"; + yield* generatorFuncDecl(); + yield* generatorFuncExpr(); + yield* anonGeneratorFuncExpr(); + } + } + + function* generatorFuncDecl() { + yield "yielded in function decl"; + } + + const generatorFuncExpr = function* generatorFuncExpr() { + yield "yielded in function expr"; + }; + + const anonGeneratorFuncExpr = function* () { + yield "yielded in anonymous function expr"; + }; + + class Bar extends Foo { + constructor() { + super("bar prop", "bar val"); + } + + public method() { + return `bar ${super.method()}`; + } } const foo = new Foo("foo prop", "foo val"); + const bar = new Bar(); + const generator = foo.generatorMethod(); + + function ifTest(condition: 0 | 1 | 2) { + if (condition === 0) { + return "if"; + } else if (condition === 1) { + return "else if"; + } else { + return "else"; + } + } + + const whileStmts = []; + while (whileStmts.length === 0) { + whileStmts.push("while block"); + } + + while (whileStmts.length === 1) whileStmts.push("while stmt"); + + const doWhileStmts = []; + do { + doWhileStmts.push("do while block"); + } while (doWhileStmts.length === 0); + + do doWhileStmts.push("do while stmt"); + while (doWhileStmts.length === 1); + + const whileTrue = []; + while (true) { + whileTrue.push(`while true ${whileTrue.length}`); + if (whileTrue.length === 1) { + continue; + } + break; + } + + const tryCatchErr = []; + try { + tryCatchErr.push("try"); + throw new Error("catch"); + } catch (err: any) { + tryCatchErr.push(err.message); + } finally { + tryCatchErr.push("finally"); + } + + const tryCatch = []; + try { + tryCatch.push("try 2"); + throw new Error(""); + } catch { + tryCatch.push("catch 2"); + } finally { + tryCatch.push("finally 2"); + } + + const tryNoFinally = []; + try { + tryNoFinally.push("try 3"); + throw new Error(""); + } catch { + tryNoFinally.push("catch 3"); + } + + const tryNoCatch: string[] = []; + try { + (() => { + try { + tryNoCatch.push("try 4"); + throw new Error(""); + } finally { + tryNoCatch.push("finally 4"); + } + })(); + } catch {} + + const deleteObj: any = { + notDeleted: "value", + prop: "prop", + "spaces prop": "spaces prop", + [Symbol.for("prop")]: "symbol prop", + }; + delete deleteObj.prop; + delete deleteObj["spaces prop"]; + delete deleteObj[Symbol.for("prop")]; + + const regex = /a.*/g; + + let unicode; + { + var HECOMḚṮH = 42; + const _ = "___"; + const $ = "$$"; + const ƒ = { + π: Math.PI, + ø: [], + Ø: NaN, + e: 2.7182818284590452353602874713527, + root2: 2.7182818284590452353602874713527, + α: 2.5029, + δ: 4.6692, + ζ: 1.2020569, + φ: 1.61803398874, + γ: 1.30357, + K: 2.685452001, + oo: 9999999999e999 * 9999999999e9999, + A: 1.2824271291, + C10: 0.12345678910111213141516171819202122232425252728293031323334353637, + c: 299792458, + }; + unicode = { ƒ, out: `${HECOMḚṮH}${_}${$}` }; + } + + var homecometh = { H̹̙̦̮͉̩̗̗ͧ̇̏̊̾Eͨ͆͒̆ͮ̃͏̷̮̣̫̤̣Cͯ̂͐͏̨̛͔̦̟͈̻O̜͎͍͙͚̬̝̣̽ͮ͐͗̀ͤ̍̀͢M̴̡̲̭͍͇̼̟̯̦̉̒͠Ḛ̛̙̞̪̗ͥͤͩ̾͑̔͐ͅṮ̴̷̷̗̼͍̿̿̓̽͐H̙̙̔̄͜: 42 }; + + const parens = (2 + 3) * 2; + + function tag(strings: TemplateStringsArray, ...args: number[]) { + // hi is tag function + return `tag ${strings.map((str, i) => `${str} ${args[i]}`).join("|")}`; + } + + const noSubstitutionTemplateLiteral = `hello world`; + + // eslint-disable-next-line no-debugger + debugger; return [ ...arrowExpr("a", "b", "c"), + ...arrowBlockExpr("A", "B", "C"), ...funcDecl("d", "e", "f"), ...funcExpr("g", "h", "i"), ...anonFuncExpr("j", "k", "l"), @@ -802,13 +982,41 @@ test("broad spectrum syntax test", async () => { return "baz"; })(), foo.method(), + bar.method(), + await foo.asyncMethod(), + generator.next().value, + generator.next().value, + generator.next().value, + generator.next().value, + ifTest(0), + ifTest(1), + ifTest(2), + ...whileStmts, + ...doWhileStmts, + ...whileTrue, + ...tryCatchErr, + ...tryCatch, + ...tryNoFinally, + ...tryNoCatch, + deleteObj, + regex.test("abc"), + unicode, + homecometh, + parens, + tag`${1} + ${2} + ${3}`, + noSubstitutionTemplateLiteral, + typeof "hello world", + void 0, ]; }); - expect(closure()).toEqual([ + expect(await closure()).toEqual([ "a", "b", "c", + "A", + "B", + "C", "d", "e", "f", @@ -829,5 +1037,60 @@ test("broad spectrum syntax test", async () => { "bar", "baz", "foo prop foo val VAL 1 2", + "bar bar prop bar val VAL 1 2", + "asyncResult", + "yielded item", + "yielded in function decl", + "yielded in function expr", + "yielded in anonymous function expr", + "if", + "else if", + "else", + "while block", + "while stmt", + "do while block", + "do while stmt", + "while true 0", + "while true 1", + "try", + "catch", + "finally", + "try 2", + "catch 2", + "finally 2", + "try 3", + "catch 3", + "try 4", + "finally 4", + { + notDeleted: "value", + }, + true, + { + out: "42___$$", + ƒ: { + A: 1.2824271291, + C10: 0.12345678910111213, + K: 2.685452001, + c: 299792458, + e: 2.718281828459045, + oo: Infinity, + root2: 2.718281828459045, + Ø: NaN, + ø: [], + α: 2.5029, + γ: 1.30357, + δ: 4.6692, + ζ: 1.2020569, + π: 3.141592653589793, + φ: 1.61803398874, + }, + }, + { H̹̙̦̮͉̩̗̗ͧ̇̏̊̾Eͨ͆͒̆ͮ̃͏̷̮̣̫̤̣Cͯ̂͐͏̨̛͔̦̟͈̻O̜͎͍͙͚̬̝̣̽ͮ͐͗̀ͤ̍̀͢M̴̡̲̭͍͇̼̟̯̦̉̒͠Ḛ̛̙̞̪̗ͥͤͩ̾͑̔͐ͅṮ̴̷̷̗̼͍̿̿̓̽͐H̙̙̔̄͜: 42 }, + 10, + "tag 1| + 2| + 3| undefined", + "hello world", + "string", + void 0, ]); }); From 78b7510306c1984919b6465c78b0079d98a9f991 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 13 Sep 2022 01:18:26 -0700 Subject: [PATCH 082/107] fix: feedback and pluck tokens --- .projen/deps.json | 2 +- .projenrc.ts | 2 +- package.json | 2 +- src/function.ts | 9 +- src/serialize-closure.ts | 295 ++++--- src/serialize-util.ts | 2 +- .../serialize-closure.test.ts.snap | 783 ------------------ test/serialize-closure.test.ts | 84 ++ yarn.lock | 8 +- 9 files changed, 270 insertions(+), 917 deletions(-) delete mode 100644 test/__snapshots__/serialize-closure.test.ts.snap diff --git a/.projen/deps.json b/.projen/deps.json index d8ab725a..a250d841 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -227,7 +227,7 @@ }, { "name": "@functionless/ast-reflection", - "version": "^0.2.3", + "version": "^0.3.1", "type": "runtime" }, { diff --git a/.projenrc.ts b/.projenrc.ts index 3caf2d7e..c1a27f9a 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -85,7 +85,7 @@ const project = new CustomTypescriptProject({ "fs-extra", "minimatch", "@functionless/nodejs-closure-serializer", - "@functionless/ast-reflection@^0.2.3", + "@functionless/ast-reflection@^0.3.1", "@swc/cli", "@swc/core@1.2.245", "@swc/register", diff --git a/package.json b/package.json index c4cfd6e5..7282cd5a 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "@aws-cdk/aws-appsync-alpha": "*" }, "dependencies": { - "@functionless/ast-reflection": "^0.2.3", + "@functionless/ast-reflection": "^0.3.1", "@functionless/nodejs-closure-serializer": "^0.1.2", "@swc/cli": "^0.1.57", "@swc/core": "1.2.245", diff --git a/src/function.ts b/src/function.ts index 3ce05ce1..06f66b58 100644 --- a/src/function.ts +++ b/src/function.ts @@ -716,7 +716,7 @@ export class Function< try { await callbackLambdaCode.generate( nativeIntegrationsPrewarm, - props?.serializer ?? SerializerImpl.STABLE_DEBUGGER + props?.serializer ?? SerializerImpl.EXPERIMENTAL_SWC ); } catch (e) { if (e instanceof SynthError) { @@ -853,11 +853,7 @@ export class CallbackLambdaCode extends aws_lambda.Code { serializerImpl, this.props ); - const bundled = - serializerImpl === SerializerImpl.STABLE_DEBUGGER - ? (await bundle(serialized)).contents - : // the SWC implementation runs es-build automatically - serialized; + const bundled = (await bundle(serialized)).contents; const asset = aws_lambda.Code.fromAsset("", { assetHashType: AssetHashType.OUTPUT, @@ -1203,7 +1199,6 @@ export async function serialize( isSecret(integ)) ) { const { resource, ...rest } = integ; - return rest; } return integ; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index fc0e799f..155e2552 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -1,8 +1,8 @@ import fs from "fs"; import path from "path"; import util from "util"; +import { Token } from "aws-cdk-lib"; import { CodeWithSourceMap, SourceNode } from "source-map"; -import ts from "typescript"; import { assertNever } from "./assert"; import { @@ -127,20 +127,12 @@ import { createSourceNode, createSourceNodeWithoutSpan, } from "./serialize-util"; -import { AnyClass, AnyFunction } from "./util"; +import { AnyClass, AnyFunction, evalToConstant } from "./util"; import { forEachChild } from "./visit"; export interface SerializeClosureProps { /** - * Whether to use require statements when a value is detected to be imported from another module. - * - * @default true - */ - requireModules?: boolean; - - /** - * A function to prevent serialization of certain objects captured during the serialization. Primarily used to - * prevent potential cycles. + * A function to prevent serialization of certain values captured during the serialization. */ serialize?: (o: any) => boolean | any; /** @@ -177,6 +169,9 @@ export function serializeCodeWithSourceMap(code: CodeWithSourceMap) { return `${code.code}\n//# sourceMappingURL=data:application/json;base64,${map}`; } +// cache a map of directory -> module id +const moduleIdCache = new Map(); + /** * Serialize a closure to a bundle that can be remotely executed. * @param func @@ -194,14 +189,18 @@ export function serializeClosure( module: NodeModule; } + // walk the entire require.cache and store a map of value + // -> the module that exported it + // -> the name of the exported value + // -> the path of the module const requireCache = new Map( - Object.entries(require.cache).flatMap(([path, module]) => { + Object.entries(require.cache).flatMap(([_path, module]) => { try { return [ [ module?.exports as any, { - path: module?.path, + path: module?.id, exportName: undefined, exportValue: module?.exports, module, @@ -210,19 +209,15 @@ export function serializeClosure( ...(Object.entries( Object.getOwnPropertyDescriptors(module?.exports ?? {}) ).map(([exportName, exportValue]) => { - try { - return [ - exportValue.value, - { - path, - exportName, - exportValue: exportValue.value, - module: module, - }, - ]; - } catch (err) { - throw err; - } + return [ + exportValue.value, + { + path: module?.id, + exportName, + exportValue: exportValue.value, + module: module, + }, + ]; }) as [any, RequiredModule][]), ]; } catch (err) { @@ -231,14 +226,17 @@ export function serializeClosure( }) ); - let i = 0; - const uniqueName = (illegalNames?: Set) => { - let name; - do { - name = `v${i++}`; - } while (illegalNames?.has(name)); - return name; - }; + const uniqueName = (() => { + let i = 0; + + return (illegalNames?: Set) => { + let name; + do { + name = `v${i++}`; + } while (illegalNames?.has(name)); + return name; + }; + })(); const statements: (SourceNode | string)[] = []; @@ -301,28 +299,32 @@ export function serializeClosure( ); } - function getModuleId(jsFile: string): string { - return findModuleName(path.dirname(jsFile)); - function findModuleName(dir: string): string { - if (path.resolve(dir) === path.resolve(process.cwd())) { - // reached the root workspace, import the absolute file path of the jsFile - return jsFile; - } - const pkgJsonPath = path.join(dir, "package.json"); - if (fs.existsSync(pkgJsonPath)) { - const pkgJson = JSON.parse( - fs.readFileSync(pkgJsonPath).toString("utf-8") - ); - if (typeof pkgJson.name === "string") { - return pkgJson.name; - } - } - return findModuleName(path.join(dir, "..")); + function serialize(value: any): string { + let serializedVal = valueIds.get(value); + if (serializedVal === undefined) { + serializedVal = serializeHook(value); + valueIds.set(value, serializedVal); } + return serializedVal; } - function serialize(value: any): string { - return valueIds.get(value) ?? serializeValue(value); + function serializeHook(value: any) { + if (options?.serialize) { + const result = options.serialize(value); + if (result === false) { + // do not serialize - emit `undefined`. + return undefinedExpr(); + } else if (result === true) { + // `true` means serialize the original value + return serializeValue(value); + } else { + // otherwise, serialize the modified value + return serializeValue(result); + } + } else { + // there is no serialize hook, so just serialize the original value + return serializeValue(value); + } } function serializeValue(value: any): string { @@ -357,16 +359,6 @@ export function serializeClosure( } }); } else if (typeof value === "string") { - if (options?.serialize) { - const result = options.serialize(value); - if (result === false) { - return undefinedExpr(); - } else if (result === true) { - return stringExpr(value); - } else { - return serialize(result); - } - } return stringExpr(value); } else if (value instanceof RegExp) { return singleton(value, () => regExpr(value)); @@ -411,34 +403,12 @@ export function serializeClosure( return emitVarDecl("const", uniqueName(), Globals.get(value)!()); } - if (options?.serialize) { - const result = options.serialize(value); - if (!result) { - // do not serialize - return emitVarDecl("const", uniqueName(), undefinedExpr()); - } else if (value === true || typeof result === "object") { - value = result; - } else { - return serialize(result); - } - } - const mod = requireCache.get(value); - if (mod && options?.requireModules !== false) { + if (mod) { return serializeModule(value, mod); } - if ( - Object.hasOwn(value, "__defineGetter__") && - value !== Object.prototype - ) { - // heuristic to detect an Object that looks like the Object.prototype but isn't - // we replace it with the actual Object.prototype since we don't know what to do - // with its native functions. - return serialize(Object.prototype); - } - if ( Object.hasOwn(value, "constructor") && typeof value.constructor === "function" && @@ -476,16 +446,6 @@ export function serializeClosure( return obj; } else if (typeof value === "function") { - if (options?.serialize) { - const result = options.serialize(value); - if (result === false) { - // do not serialize - return undefinedExpr(); - } else if (result !== true) { - value = result; - } - } - if (Globals.has(value)) { return singleton(value, () => emitVarDecl("const", uniqueName(), Globals.get(value)!()) @@ -496,50 +456,89 @@ export function serializeClosure( // if this is a reference to an exported value from a module // and we're using esbuild, then emit a require - if (exportedValue && options?.requireModules !== false) { + if (exportedValue) { return serializeModule(value, exportedValue); } // if this is a bound closure, try and reconstruct it from its components - if (value.name.startsWith("bound ")) { - const boundFunction = serializeBoundFunction(value); - if (boundFunction) { - return boundFunction; - } + const boundFunction = serializeBoundFunction(value); + if (boundFunction) { + return boundFunction; } const ast = reflect(value); if (ast === undefined) { - if (exportedValue) { - return serializeModule(value, exportedValue); - } else { - return serializeUnknownFunction(value); - } + // this function does not have its AST available, so apply some heuristics + // to serialize it or fail + return serializeUnknownFunction(value); } else if (isFunctionLike(ast)) { return serializeFunction(value, ast); } else if (isClassDecl(ast) || isClassExpr(ast)) { return serializeClass(value, ast); } else if (isMethodDecl(ast)) { + /** + * This is a reference to a method - pull it out as an individual function + * + * This occurs in two cases: + * 1. a reference to a method on an object + * ```ts + * class Foo { + * method() { } + * } + * + * const method = Foo.prototype.method; + * + * serialize(() => { + * // serialize method as a function + * method(); + * }) + * ``` + * 2. a reference to a method on an object + * + * ```ts + * const o = { + * prop: "value"; + * method() { + * return this.prop; + * } + * } + * ``` + */ return serializeMethodAsFunction(ast); } else if (isErr(ast)) { throw ast.error; } - throw new Error("not implemented"); + console.error("cannot serialize node:", ast); + throw new Error(`cannot serialize node: ${ast.nodeKind}`); } - // eslint-disable-next-line no-debugger - throw new Error("not implemented"); + console.error("cannot serialize value:", value); + throw new Error(`cannot serialize value: ${value}`); } + /** + * Require a module and import the exported value. + * + * ```ts + * const mod = require("module-id"). + * ``` + * + * CAVEAT: only importing values exported by the module's index. + * + * ```ts + * // will map to require("aws-sdk").DynamoDB; + * const DynamoDB = require("aws-sdk/clients/dynamodb"); + * ``` + */ function serializeModule(value: unknown, mod: RequiredModule) { const exports = mod.module?.exports; if (exports === undefined) { throw new Error(`undefined exports`); } - const requireMod = singleton(exports, () => - emitRequire(getModuleId(mod.path)) - ); + const requireMod = singleton(exports, () => { + return emitRequire(getModuleId(mod.path)); + }); return singleton(value, () => emitVarDecl( "const", @@ -549,6 +548,42 @@ export function serializeClosure( ); } + /** + * Find the module-id of a jsFile by recursively walking back until + * finding the `package.json`. + * + * If the `package.json` isn't found, then the direct path of the file is returned. + */ + function getModuleId(jsFile: string): string { + return findModuleName(path.dirname(jsFile)) ?? jsFile; + + function findModuleName(dir: string): string | null { + let moduleId = moduleIdCache.get(dir); + if (moduleId !== undefined) { + return moduleId; + } + moduleIdCache.set(dir, (moduleId = _findModuleName(dir))); + return moduleId; + } + + function _findModuleName(dir: string): string | null { + if (path.resolve(dir) === path.resolve(process.cwd())) { + // reached the root workspace - could not resolve the module ID + return null; + } + const pkgJsonPath = path.join(dir, "package.json"); + if (fs.existsSync(pkgJsonPath)) { + const pkgJson = JSON.parse( + fs.readFileSync(pkgJsonPath).toString("utf-8") + ); + if (typeof pkgJson.name === "string") { + return pkgJson.name; + } + } + return findModuleName(path.join(dir, "..")); + } + } + function serializeFunction(value: AnyFunction, ast: FunctionLike) { // declare an empty var for this function const func = singleton(value, () => emitVarDecl("var", uniqueName())); @@ -620,13 +655,8 @@ export function serializeClosure( return idExpr("require"); } else if (value.name === "Object") { return serialize(Object); - } else if ( - value.toString() === `function ${value.name}() { [native code] }` - ) { - // eslint-disable-next-line no-debugger } - // eslint-disable-next-line no-debugger throw new Error( `cannot serialize closures that were not compiled with Functionless unless they are exported by a module: ${func}` ); @@ -856,7 +886,7 @@ export function serializeClosure( } /** - * Serialize a {@link MethodDecl} as a {@link ts.FunctionExpression} so that it can be individually referenced. + * Serialize a {@link MethodDecl} as a Function so that it can be individually referenced. */ function serializeMethodAsFunction(node: MethodDecl): string { // find all names used as identifiers in the AST @@ -882,6 +912,19 @@ export function serializeClosure( return methodName; } + /** + * Serialize a {@link FunctionlessNode} to a {@link SourceNode} representing the JavaScript. + * + * The {@link SourceNode} contains strings and other nested {@link SourceNode}s. Together, + * they form an entire JS file. Whenever a {@link FunctionlessNode} is mapped to a {@link SourceNode}, + * the {@link FunctionlessNode.span} and {@link FunctionlessNode.getFileName} are included + * in the {@link SourceNode} so that a source map can be generated mapping the serialized + * JS back to the source code that created it. + * + * @param node + * @param illegalNames names used within the {@link node} that should not be used + * as free variable names. + */ function toSourceNode( node: FunctionlessNode, illegalNames: Set @@ -957,12 +1000,26 @@ export function serializeClosure( } else if (isPrivateIdentifier(node)) { return createSourceNode(node, [node.name]); } else if (isPropAccessExpr(node)) { + const val = evalToConstant(node); + if (val?.constant) { + if (Token.isUnresolved(val.constant)) { + // if this is a reference to a Token, pluck it + return createSourceNode(node, [serialize(val.constant)]); + } + } return createSourceNode(node, [ toSourceNode(node.expr, illegalNames), ...(node.isOptional ? ["?."] : ["."]), toSourceNode(node.name, illegalNames), ]); } else if (isElementAccessExpr(node)) { + const val = evalToConstant(node); + if (val?.constant) { + if (Token.isUnresolved(val.constant)) { + // if this is a reference to a Token, pluck it + return createSourceNode(node, [serialize(val.constant)]); + } + } return createSourceNode(node, [ toSourceNode(node.expr, illegalNames), ...(node.isOptional ? ["?."] : []), diff --git a/src/serialize-util.ts b/src/serialize-util.ts index 36629bee..78e0c9a9 100644 --- a/src/serialize-util.ts +++ b/src/serialize-util.ts @@ -107,7 +107,7 @@ export function callExpr< return createSourceNodeWithoutSpan( expr, "(", - ...args.flatMap((arg) => [arg, ","]), + ...args.flatMap((arg, i) => (i < args.length - 1 ? [arg, ","] : [arg])), ")" ) as E | A extends string ? string : SourceNodeOrString; } diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap deleted file mode 100644 index 63275424..00000000 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ /dev/null @@ -1,783 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`all observers of a free variable share the same reference 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = function up(){ -v3+=2; -} -; -const v4 = {}; -v4.constructor = v2; -v2.prototype = v4; -var v1 = v2; -var v6; -v6 = function down(){ -v3-=1; -} -; -const v7 = {}; -v7.constructor = v6; -v6.prototype = v7; -var v5 = v6; -v0 = () => { -v1(); -v5(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzBrRDBtRCxhQWNBO0FBTVYsRUFBSyxFQUtBLENBTEMsQ0FOSTtBQUFBO0NEeGxEMW1EO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtLQzZtRCtvRCxlQWdCQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRDduRC9vRDtBQUFBO0FBQUE7QUFBQTtBQUFBO0tDc3JEc3VELE1BTUE7QUFNakMsRUFBRSxFQUFDLENBTjhCO0FBZ0JyQixFQUFFLEVBQUMsQ0FoQmtCO0FBNEJKLE9BT0QsRUFQQyxDQTVCSTtBQUFBO0NENXJEdHVEO0FBQUEifQ" -`; - -exports[`all observers of a free variable share the same reference even when two instances 1`] = ` -"var v0; -const v2 = []; -var v3; -var v5; -var v6 = 0; -v5 = function up(){ -v6+=2; -} -; -const v7 = {}; -v7.constructor = v5; -v5.prototype = v7; -var v4 = v5; -var v9; -v9 = function down(){ -v6-=1; -} -; -const v10 = {}; -v10.constructor = v9; -v9.prototype = v10; -var v8 = v9; -v3 = () => { -v4(); -v8(); -return v6; -} -; -var v11; -var v13; -var v14 = 0; -v13 = function up(){ -v14+=2; -} -; -const v15 = {}; -v15.constructor = v13; -v13.prototype = v15; -var v12 = v13; -var v17; -v17 = function down(){ -v14-=1; -} -; -const v18 = {}; -v18.constructor = v17; -v17.prototype = v18; -var v16 = v17; -v11 = () => { -v12(); -v16(); -return v14; -} -; -v2.push(v3,v11,); -var v1 = v2; -v0 = () => { -return v1.map((closure,) => { -return closure(); -} -,); -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0NnN0RvOUQsYUFjQTtBQVFaLEVBQUssRUFLQSxDQUxDLENBUk07QUFBQTtDRDk3RHA5RDtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N5OUQrL0QsZUFnQkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7Q0R6K0QvL0Q7QUFBQTtBQUFBO0FBQUE7QUFBQTtLQzJnRW1rRSxNQU1BO0FBUXZDLEVBQUUsRUFBQyxDQVJvQztBQW9CekIsRUFBRSxFQUFDLENBcEJzQjtBQWtDTixPQU9ELEVBUEMsQ0FsQ007QUFBQTtDRGpoRW5rRTtBQUFBO0FBQUE7QUFBQTtNQ2c3RG85RCxhQWNBO0FBUVosR0FBSyxFQUtBLENBTEMsQ0FSTTtBQUFBO0NEOTdEcDlEO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtNQ3k5RCsvRCxlQWdCQTtBQVFaLEdBQUssRUFLQSxDQUxDLENBUk07QUFBQTtDRHorRC8vRDtBQUFBO0FBQUE7QUFBQTtBQUFBO01DMmdFbWtFLE1BTUE7QUFRdkMsR0FBRSxFQUFDLENBUm9DO0FBb0J6QixHQUFFLEVBQUMsQ0FwQnNCO0FBa0NOLE9BT0QsR0FQQyxDQWxDTTtBQUFBO0NEamhFbmtFO0FBQUE7QUFBQTtLQ2luRThxRSxNQU1BO0FBTUosT0FPN0IsRUFBSSxDQVNBLEdBVHdCLENBYUQsQ0FDZCxPQURjLE1BYUE7QUFBQSxPQUFGLE9BQUU7QUFBQTtBQTFCQyxFQVBDLENBTkk7QUFBQTtDRHZuRTlxRTtBQUFBIn0" -`; - -exports[`avoid collision with a locally scoped array binding 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -const [v1,]=[2,] -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NtaFNzcVMsTUFNQTtBQTBDbkYsSUFJUCxJQUFNLENBT0EsRUFyRG9GO0FBaUcxQixNQU1QLENBQ0QsRUFEQyxFQUFNLENBT0EsQ0FDRCxDQURDLEVBOUcyQjtBQXVISixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBdkhJO0FBQUE7Q0R6aFN0cVM7QUFBQSJ9" -`; - -exports[`avoid collision with a locally scoped array binding with nested object binding 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -const [{v1,},]=[{v1:2,},] -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0MwMlN5Z1QsTUFNQTtBQTBDL0YsSUFJUCxJQUFNLENBT0EsRUFyRGdHO0FBaUcxQixNQU1mLENBQ0QsQ0FFRixFQUZFLEVBREMsRUFBYyxDQVdBLENBQ0QsQ0FFTCxFQUFHLENBSUEsQ0FORSxFQURDLEVBbEgyQjtBQW1JSixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBbklJO0FBQUE7Q0RoM1N6Z1Q7QUFBQSJ9" -`; - -exports[`avoid collision with a locally scoped class 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -class v1{ -foo = 2 -} -return new v1().foo+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N1L1RrcVUsTUFNQTtBQTBDM0csSUFJUCxJQUFNLENBT0EsRUFyRDRHO0FBaUdwQyxNQU12QixFQU51QjtBQWlCWCxHQUFLLEdBTUQsQ0F2Qk87QUFBQSxDQWpHb0M7QUFxSUosT0FPWixJQUlGLEVBSkUsRUFBSSxDQVNBLEdBVE8sQ0FlQSxJQXRCQyxDQXJJSTtBQUFBO0NENy9UbHFVO0FBQUEifQ" -`; - -exports[`avoid collision with a locally scoped function 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -function v1(){ -return 2; -} - -return v1()+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M2cVRzMVQsTUFNQTtBQTBDekcsSUFJUCxJQUFNLENBT0EsRUFyRDBHO0FBaUc1QixhQWNBO0FBUU4sT0FPRCxDQVBDLENBUk07QUFBQTtBQS9HNEI7QUEySUosT0FPVixFQUFFLEVBQU8sQ0FPQSxJQWRDLENBM0lJO0FBQUE7Q0RuclR0MVQ7QUFBQSJ9" -`; - -exports[`avoid collision with a locally scoped object binding variable 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -const {v1,}={v1:2,} -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N1MlFrZ1IsTUFNQTtBQTBDM0YsSUFJUCxJQUFNLENBT0EsRUFyRDRGO0FBaUcxQixNQU1iLENBRUYsRUFGRSxFQUFZLENBU0EsQ0FFTCxFQUFHLENBSUEsQ0FORSxFQWhIMkI7QUErSEosT0FPUixFQUFPLENBS0EsSUFaQyxDQS9ISTtBQUFBO0NENzJRbGdSO0FBQUEifQ" -`; - -exports[`avoid collision with a locally scoped object binding variable with renamed property 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -const {v2:v1,}={v2:2,} -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0Myc1IwMlIsTUFNQTtBQTBDL0YsSUFJUCxJQUFNLENBT0EsRUFyRGdHO0FBaUcxQixNQU1iLENBRU4sRUFBSSxDQUlBLEVBTkUsRUFBWSxDQWFBLENBRUwsRUFBRyxDQUlBLENBTkUsRUFwSDJCO0FBbUlKLE9BT1IsRUFBTyxDQUtBLElBWkMsQ0FuSUk7QUFBQTtDRGp0UjEyUjtBQUFBIn0" -`; - -exports[`avoid collision with a locally scoped variable 1`] = ` -"var v0; -var v2 = 1; -v0 = () => { -let free=v2 -const v1=2 -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NxaVFvclEsTUFNQTtBQTBDL0UsSUFJUCxJQUFNLENBT0EsRUFyRGdGO0FBaUcxQixNQU1MLEVBQUksQ0FLQSxDQTVHMkI7QUFtSEosT0FPUixFQUFPLENBS0EsSUFaQyxDQW5ISTtBQUFBO0NEM2lRcHJRO0FBQUEifQ" -`; - -exports[`avoid collision with a parameter array binding 1`] = ` -"var v0; -var v2 = 1; -v0 = ([v1,],) => { -let free=v2 -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NxcFc2dlcsQ0FDeEYsQ0FDWCxFQURXLEVBRHdGLE1Bb0JBO0FBMEMxQixJQUlQLElBQU0sQ0FPQSxFQXJEMkI7QUE4REosT0FPUixFQUFPLENBS0EsSUFaQyxDQTlESTtBQUFBO0NEenFXN3ZXO0FBQUEifQ" -`; - -exports[`avoid collision with a parameter declaration 1`] = ` -"var v0; -var v2 = 1; -v0 = (v1,) => { -let free=v2 -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NvMFV3NlUsQ0FDeEYsRUFEd0YsTUFnQkE7QUEwQzFCLElBSVAsSUFBTSxDQU9BLEVBckQyQjtBQThESixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBOURJO0FBQUE7Q0RwMVV4NlU7QUFBQSJ9" -`; - -exports[`avoid collision with a parameter object binding 1`] = ` -"var v0; -var v2 = 1; -v0 = ({v1,},) => { -let free=v2 -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M4a1Y4clYsQ0FDeEYsQ0FFbEIsRUFGa0IsRUFEd0YsTUE0QkE7QUEwQzFCLElBSVAsSUFBTSxDQU9BLEVBckQyQjtBQThESixPQU9SLEVBQU8sQ0FLQSxJQVpDLENBOURJO0FBQUE7Q0QxbVY5clY7QUFBQSJ9" -`; - -exports[`avoid collision with a parameter object binding renamed 1`] = ` -"var v0; -var v2 = 1; -v0 = ({v2:v1,},) => { -let free=v2 -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NvM1Z3K1YsQ0FDeEYsQ0FFdEIsRUFBSSxDQUlBLEVBTmtCLEVBRHdGLE1BZ0NBO0FBMEMxQixJQUlQLElBQU0sQ0FPQSxFQXJEMkI7QUE4REosT0FPUixFQUFPLENBS0EsSUFaQyxDQTlESTtBQUFBO0NEcDVWeCtWO0FBQUEifQ" -`; - -exports[`avoid collision with a parameter with object binding nested in array binding 1`] = ` -"var v0; -var v2 = 1; -v0 = ([{v1,},],) => { -let free=v2 -return v1+free; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NrOFdzalgsQ0FDeEYsQ0FDbkIsQ0FFRixFQUZFLEVBRG1CLEVBRHdGLE1BZ0NBO0FBMEMxQixJQUlQLElBQU0sQ0FPQSxFQXJEMkI7QUE4REosT0FPUixFQUFPLENBS0EsSUFaQyxDQTlESTtBQUFBO0NEbCtXdGpYO0FBQUEifQ" -`; - -exports[`avoid name collision with a closure's lexical scope 1`] = ` -"var v0; -var v2; -var v4; -var v5 = 0; -v4 = class v1{ -foo(){ -return (v5+=1); -} - -}; -var v3 = v4; -v2 = class v2 extends v3{ -}; -var v1 = v2; -v0 = () => { -const v3=new v1() -return v3.foo(); -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDdXNQdXdQLE1BTXZELEVBTnVEO0FBc0J0QyxHQVBrQyxFQWFBO0FBUU4sT0FPRCxDQUNOLEVBQUssRUFNQSxDQVBDLENBUEMsQ0FSTTtBQUFBO0FBNUJJO0FBQUEsQyxDRHZzUHZ3UDtBQUFBO0tDeXdQZ3lQLE1BTWQsRUFOYyxTQWlCSCxFQWpCRztBQUFBLEMsQ0R6d1BoeVA7QUFBQTtLQ3UwUGk0UCxNQU1BO0FBTXpCLE1BTVosRUFBVyxDQUtBLElBSUYsRUFKRSxFQWpCMEI7QUErQkosT0FPUCxFQUFJLENBR0EsR0FIRSxFQVBDLENBL0JJO0FBQUE7Q0Q3MFBqNFA7QUFBQSJ9" -`; - -exports[`instantiating the AWS SDK 1`] = ` -"var v0; -const v2 = require(\\"aws-sdk\\",); -var v1 = v2; -v0 = () => { -const client=new v1.DynamoDB() -return client.config.endpoint; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQytyWHN4WCxNQU1BO0FBTXhDLE1BTXRCLE1BQXFCLENBU0EsSUFJWCxFQUFTLENBSUEsUUFSRSxFQXJCeUM7QUE4Q0osT0FPakIsTUFBTyxDQU9BLE1BUFMsQ0FjQSxRQXJCQyxDQTlDSTtBQUFBO0NEcnNYdHhYO0FBQUEifQ" -`; - -exports[`instantiating the AWS SDK v3 1`] = ` -"var v0; -const v2 = require(\\"@aws-sdk/client-dynamodb\\",); -const v3 = v2.DynamoDBClient; -var v1 = v3; -v0 = () => { -const client=new v1({},) -return client.config.serviceId; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDeXZZcTFZLE1BTUE7QUFNekMsTUFNMUIsTUFBeUIsQ0FTQSxJQUlKLEVBSkksQ0FtQkQsRUFuQkMsRUFyQjBDO0FBa0RKLE9BT2xCLE1BQU8sQ0FPQSxNQVBVLENBY0EsU0FyQkMsQ0FsREk7QUFBQTtDRC92WXIxWTtBQUFBIn0" -`; - -exports[`serialize a bound function 1`] = ` -"var v0; -const v2 = {}; -v2.prop = \\"hello\\"; -const v3 = []; -var v4; -v4 = function foo(){ -return this.prop; -} -; -const v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -const v6 = v4.bind(v2,v3,); -var v1 = v6; -v0 = () => { -return v1(); -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N5dlowelosY0FxQ0E7QUFNSixPQU9OLElBQUssQ0FLQSxJQVpDLENBTkk7QUFBQTtDRDl4WjF6WjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N3NVp3N1osTUFNQTtBQU1KLE9BT0gsRUFBRSxFQVBDLENBTkk7QUFBQTtDRDk1Wng3WjtBQUFBIn0" -`; - -exports[`serialize a class declaration 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -method(){ -v3++; -return v3; -} - -}; -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method(); -foo.method(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ283RTIvRSxNQU03RCxHQU42RDtBQXVCekMsTUFQcUMsRUFnQkE7QUFRekIsRUFBRSxFQUFDLENBUnNCO0FBbUJOLE9BT0QsRUFQQyxDQW5CTTtBQUFBO0FBaENJO0FBQUEsQyxDRHA3RTMvRTtBQUFBO0tDa2lGNG5GLE1BTUE7QUFNdkQsTUFNYixHQUFZLENBTUEsSUFJRixFQUpFLEVBbEJ3RDtBQWtDOUMsR0FBTyxDQUlBLE1BSkUsRUFBQyxDQWxDb0M7QUFvRDVCLEdBQU8sQ0FJQSxNQUpFLEVBQUMsQ0FwRGtCO0FBc0VKLE9BT0QsRUFQQyxDQXRFSTtBQUFBO0NEeGlGNW5GO0FBQUEifQ" -`; - -exports[`serialize a class declaration with constructor 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -constructor(){ -v3+=1; -} - -method(){ -v3++; -return v3; -} - -}; -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method(); -foo.method(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3d2RncyRixNQU10RyxHQU5zRztBQWdCNUQsYUFjQTtBQVFaLEVBQUssRUFLQSxDQUxDLENBUk07QUFBQTtBQTlCNEQ7QUFnRXpDLE1BUHFDLEVBZ0JBO0FBUXpCLEVBQUUsRUFBQyxDQVJzQjtBQW1CTixPQU9ELEVBUEMsQ0FuQk07QUFBQTtBQXpFSTtBQUFBLEMsQ0R4dkZ4MkY7QUFBQTtLQys0RnkrRixNQU1BO0FBTXZELE1BTWIsR0FBWSxDQU1BLElBSUYsRUFKRSxFQWxCd0Q7QUFrQzlDLEdBQU8sQ0FJQSxNQUpFLEVBQUMsQ0FsQ29DO0FBb0Q1QixHQUFPLENBSUEsTUFKRSxFQUFDLENBcERrQjtBQXNFSixPQU9ELEVBUEMsQ0F0RUk7QUFBQTtDRHI1RnorRjtBQUFBIn0" -`; - -exports[`serialize a class hierarchy 1`] = ` -"var v0; -var v2; -var v4; -var v5 = 0; -v4 = class Foo{ -method(){ -return (v5+=1); -} - -}; -var v3 = v4; -v2 = class Bar extends v3{ -method(){ -return super.method()+1; -} - -}; -var v1 = v2; -v0 = () => { -const bar=new v1() -return [bar.method(),v5,]; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDdzVOMjlOLE1BTXpELEdBTnlEO0FBdUJyQyxNQVBpQyxFQWdCQTtBQVFOLE9BT0QsQ0FDTixFQUFLLEVBS0EsQ0FOQyxDQVBDLENBUk07QUFBQTtBQWhDSTtBQUFBLEMsQ0R4NU4zOU47QUFBQTtLQzg5TnVqTyxNQU0vRSxHQU4rRSxTQWtCbkUsRUFsQm1FO0FBbUMvQyxNQVAyQyxFQWdCQTtBQVFOLE9BT2QsS0FBTyxDQU1BLE1BTkUsRUFBSSxDQWlCQSxDQXhCQyxDQVJNO0FBQUE7QUE1Q0k7QUFBQSxDLENEOTlOdmpPO0FBQUE7S0M4bE9vcU8sTUFNQTtBQU1uQyxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQm9DO0FBa0NKLE9BT0QsQ0FDYixHQUFPLENBSUEsTUFKRSxFQURJLENBZUQsRUFmQyxFQVBDLENBbENJO0FBQUE7Q0RwbU9wcU87QUFBQSJ9" -`; - -exports[`serialize a class mix-in 1`] = ` -"var v0; -var v2; -var v4; -var v5 = 0; -v4 = () => { -return class Foo{ -method(){ -return (v5+=1); -} - -}; -} -; -var v3 = v4; -v2 = class Bar extends v3(){ -method(){ -return super.method()+1; -} - -}; -var v1 = v2; -v0 = () => { -const bar=new v1() -return [bar.method(),v5,]; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDNnhPazNPLE1BVUE7QUFBQSxhQU1qRSxHQU5pRTtBQXlCM0MsTUFQcUMsRUFnQkE7QUFVUixPQU9ELENBQ04sRUFBSyxFQUtBLENBTkMsQ0FQQyxDQVZRO0FBQUE7QUFsQ007QUFBQTtBQUFBO0NEdnlPbDNPO0FBQUE7S0NzM09tOU8sTUFNbkYsR0FObUYsU0FrQnJFLEVBQUUsRUFsQm1FO0FBdUMvQyxNQVAyQyxFQWdCQTtBQVFOLE9BT2QsS0FBTyxDQU1BLE1BTkUsRUFBSSxDQWlCQSxDQXhCQyxDQVJNO0FBQUE7QUFoREk7QUFBQSxDLENEdDNPbjlPO0FBQUE7S0MwL09na1AsTUFNQTtBQU1uQyxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQm9DO0FBa0NKLE9BT0QsQ0FDYixHQUFPLENBSUEsTUFKRSxFQURJLENBZUQsRUFmQyxFQVBDLENBbENJO0FBQUE7Q0RoZ1Boa1A7QUFBQSJ9" -`; - -exports[`serialize a monkey-patched class getter 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -get method(){ -return (v3+=1); -} - -}; -const v4 = function get(){ -return (v3+=2); -} - -Object.defineProperty(v2.prototype,\\"method\\",{get : v4,},); -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method; -foo.method; -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzIzSms4SixNQU03RCxHQU42RDtBQWdCSixJQVdqQyxNQVhpQyxFQW9CQTtBQVFOLE9BT0QsQ0FDTixFQUFLLEVBS0EsQ0FOQyxDQVBDLENBUk07QUFBQTtBQXBDSTtBQUFBLEMsQ0QzM0psOEo7QUMwL0oraEssb0JBQWpDLEdBQWlDLEVBTUE7QUFRTixPQU9ELENBQ04sRUFBSyxFQUtBLENBTkMsQ0FQQyxDQVJNO0FBQUE7QURoZ0svaEs7QUFBQTtBQUFBO0tDNmtLbXFLLE1BTUE7QUFNbkQsTUFNYixHQUFZLENBTUEsSUFJRixFQUpFLEVBbEJvRDtBQWtDMUMsR0FBTyxDQUlBLE1BSkMsQ0FsQ2tDO0FBa0QxQixHQUFPLENBSUEsTUFKQyxDQWxEa0I7QUFrRUosT0FPRCxFQVBDLENBbEVJO0FBQUE7Q0RubEtucUs7QUFBQSJ9" -`; - -exports[`serialize a monkey-patched class getter and setter 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -set method(val){ -v3+=val; -} - -get method(){ -return v3; -} - -}; -const v4 = function get(){ -return v3+1; -} - -const v5 = function set(val,){ -v3+=val+1; -} - -Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : v5,},); -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method=1; -foo.method=1; -return foo.method; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ295TCs1TCxNQU1qSCxHQU5pSDtBQWdCcEQsSUFXckMsTUFYcUMsQ0FrQnpCLEdBbEJ5QixDQStCQTtBQVFkLEVBQU8sRUFLQSxHQUxDLENBUk07QUFBQTtBQS9Db0Q7QUEyRUosSUFXMUIsTUFYMEIsRUFvQkE7QUFRTixPQU9ELEVBUEMsQ0FSTTtBQUFBO0FBL0ZJO0FBQUEsQyxDRHB5TC81TDtBQ3lnTTJpTSxvQkFBOUIsR0FBOEIsRUFNQTtBQVFOLE9BT0wsRUFBSSxDQUlBLENBWEMsQ0FSTTtBQUFBO0FEL2dNM2lNO0FDdTlMb2dNLG9CQUF6QyxHQUF5QyxDQUk3QixHQUo2QixFQWlCQTtBQVFsQixFQUFXLEVBS0osR0FBSSxDQU1BLENBWEMsQ0FSTTtBQUFBO0FEeCtMcGdNO0FBQUE7QUFBQTtLQ3lsTWdzTSxNQU1BO0FBTXBFLE1BTWIsR0FBWSxDQU1BLElBSUYsRUFKRSxFQWxCcUU7QUFrQzNELEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQWxDK0M7QUFzRHZDLEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQXREMkI7QUEwRUosT0FPUixHQUFPLENBSUEsTUFYQyxDQTFFSTtBQUFBO0NEL2xNaHNNO0FBQUEifQ" -`; - -exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -set method(val){ -v3+=val; -} - -get method(){ -return v3; -} - -}; -const v4 = function get(){ -return v3+1; -} - -Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : Object.getOwnPropertyDescriptor(v2.prototype,\\"method\\",).set,},); -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method=1; -foo.method=1; -return foo.method; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzQzTXUvTSxNQU1qSCxHQU5pSDtBQWdCcEQsSUFXckMsTUFYcUMsQ0FrQnpCLEdBbEJ5QixDQStCQTtBQVFkLEVBQU8sRUFLQSxHQUxDLENBUk07QUFBQTtBQS9Db0Q7QUEyRUosSUFXMUIsTUFYMEIsRUFvQkE7QUFRTixPQU9ELEVBUEMsQ0FSTTtBQUFBO0FBL0ZJO0FBQUEsQyxDRDUzTXYvTTtBQ3duTjBwTixvQkFBOUIsR0FBOEIsRUFNQTtBQVFOLE9BT0wsRUFBSSxDQUlBLENBWEMsQ0FSTTtBQUFBO0FEOW5OMXBOO0FBQUE7QUFBQTtLQ3dzTit5TixNQU1BO0FBTXBFLE1BTWIsR0FBWSxDQU1BLElBSUYsRUFKRSxFQWxCcUU7QUFrQzNELEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQWxDK0M7QUFzRHZDLEdBQU8sQ0FJQSxNQUpJLENBYUEsQ0FiQyxDQXREMkI7QUEwRUosT0FPUixHQUFPLENBSUEsTUFYQyxDQTFFSTtBQUFBO0NEOXNOL3lOO0FBQUEifQ" -`; - -exports[`serialize a monkey-patched class method 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -method(){ -v3+=1; -} - -}; -var v4; -v4 = function (){ -v3+=2; -} -; -const v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.prototype.method = v4; -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method(); -foo.method(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3FnSStqSSxNQU1oRCxHQU5nRDtBQXVCNUIsTUFQd0IsRUFnQkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7QUFoQ0k7QUFBQSxDLENEcmdJL2pJO0FBQUE7S0N5bEl1bkksV0FZQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRHJtSXZuSTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0MrcEl5dkksTUFNQTtBQU12RCxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQndEO0FBa0M5QyxHQUFPLENBSUEsTUFKRSxFQUFDLENBbENvQztBQW9ENUIsR0FBTyxDQUlBLE1BSkUsRUFBQyxDQXBEa0I7QUFzRUosT0FPRCxFQVBDLENBdEVJO0FBQUE7Q0RycUl6dkk7QUFBQSJ9" -`; - -exports[`serialize a monkey-patched class method that has been re-set 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -method(){ -v3+=1; -} - -}; -var v4; -v4 = function (){ -v3+=2; -} -; -const v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.prototype.method = v4; -var v1 = v2; -const v7 = function method(){ -v3+=1; -} - -var v6 = v7; -v0 = () => { -const foo=new v1() -foo.method(); -v1.prototype.method=v6; -foo.method(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ200STY3SSxNQU1oRCxHQU5nRDtBQXVCNUIsTUFQd0IsRUFnQkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7QUFoQ0k7QUFBQSxDLENEbjRJNzdJO0FBQUE7S0MrL0k2aEosV0FZQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRDNnSjdoSjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUNtNUl5N0ksb0JBT3hCLE1BUHdCLEVBZ0JBO0FBUVosRUFBSyxFQUtBLENBTEMsQ0FSTTtBQUFBO0FEbjZJejdJO0FBQUE7S0NpakpnckosTUFNQTtBQU01RixNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQjZGO0FBa0NuRixHQUFPLENBSUEsTUFKRSxFQUFDLENBbEN5RTtBQXFEaEUsRUFBVSxDQUlBLFNBSk8sQ0FjQSxNQWRTLENBdUJBLEVBdkJDLENBckRxQztBQXlGNUIsR0FBTyxDQUlBLE1BSkUsRUFBQyxDQXpGa0I7QUEyR0osT0FPRCxFQVBDLENBM0dJO0FBQUE7Q0R2akpocko7QUFBQSJ9" -`; - -exports[`serialize a monkey-patched class setter 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -set method(val){ -v3+=val; -} - -}; -const v4 = function set(val,){ -v3+=val+1; -} - -Object.defineProperty(v2.prototype,\\"method\\",{set : v4,},); -var v1 = v2; -v0 = () => { -const foo=new v1() -foo.method=1; -foo.method=1; -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2cwSzI0SyxNQU1qRSxHQU5pRTtBQWdCSixJQVdyQyxNQVhxQyxDQWtCekIsR0FsQnlCLENBK0JBO0FBUWQsRUFBTyxFQUtBLEdBTEMsQ0FSTTtBQUFBO0FBL0NJO0FBQUEsQyxDRGgwSzM0SztBQ204S2cvSyxvQkFBekMsR0FBeUMsQ0FJN0IsR0FKNkIsRUFpQkE7QUFRbEIsRUFBVyxFQUtKLEdBQUksQ0FNQSxDQVhDLENBUk07QUFBQTtBRHA5S2gvSztBQUFBO0FBQUE7S0M4aEw0bkwsTUFNQTtBQU0zRCxNQU1iLEdBQVksQ0FNQSxJQUlGLEVBSkUsRUFsQjREO0FBa0NsRCxHQUFPLENBSUEsTUFKSSxDQWFBLENBYkMsQ0FsQ3NDO0FBc0Q5QixHQUFPLENBSUEsTUFKSSxDQWFBLENBYkMsQ0F0RGtCO0FBMEVKLE9BT0QsRUFQQyxDQTFFSTtBQUFBO0NEcGlMNW5MO0FBQUEifQ" -`; - -exports[`serialize a monkey-patched static class arrow function 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -static method = () => { -v3+=1; -} - -}; -var v4; -v4 = function (){ -v3+=2; -} -; -const v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.method = v4; -var v1 = v2; -v0 = () => { -v1.method(); -v1.method(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzg3R3NnSCxNQU05RCxHQU44RDtBQWdCSixPQWMvQixNQWQrQixHQXVCRCxNQU1BO0FBUVosRUFBSyxFQUtBLENBTEMsQ0FSTTtBQUFBO0FBN0NLO0FBQUEsQyxDRDk3R3RnSDtBQUFBO0tDc2hIb2pILFdBWUE7QUFNVixFQUFLLEVBS0EsQ0FMQyxDQU5JO0FBQUE7Q0RsaUhwakg7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0tDNGxIMHBILE1BTUE7QUFNOUMsRUFBTyxDQUlBLE1BSkUsRUFBQyxDQU5vQztBQXdCNUIsRUFBTyxDQUlBLE1BSkUsRUFBQyxDQXhCa0I7QUEwQ0osT0FPRCxFQVBDLENBMUNJO0FBQUE7Q0RsbUgxcEg7QUFBQSJ9" -`; - -exports[`serialize a monkey-patched static class method 1`] = ` -"var v0; -var v2; -var v3 = 0; -v2 = class Foo{ -method(){ -v3+=1; -} - -}; -var v4; -v4 = function (){ -v3+=2; -} -; -const v5 = {}; -v5.constructor = v4; -v4.prototype = v5; -v2.method = v4; -var v1 = v2; -v0 = () => { -v1.method(); -v1.method(); -return v3; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3FtR3NxRyxNQU12RCxHQU51RDtBQThCNUIsTUFkd0IsRUF1QkE7QUFRWixFQUFLLEVBS0EsQ0FMQyxDQVJNO0FBQUE7QUF2Q0k7QUFBQSxDLENEcm1HdHFHO0FBQUE7S0NzckdvdEcsV0FZQTtBQU1WLEVBQUssRUFLQSxDQUxDLENBTkk7QUFBQTtDRGxzR3B0RztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0M0dkcwekcsTUFNQTtBQU05QyxFQUFPLENBSUEsTUFKRSxFQUFDLENBTm9DO0FBd0I1QixFQUFPLENBSUEsTUFKRSxFQUFDLENBeEJrQjtBQTBDSixPQU9ELEVBUEMsQ0ExQ0k7QUFBQTtDRGx3RzF6RztBQUFBIn0" -`; - -exports[`serialize a monkey-patched static class property 1`] = ` -"var v0; -var v2; -v2 = class Foo{ -static prop = 1 -}; -v2.prop = 2; -var v1 = v2; -v0 = () => { -return v1.prop; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0Myd0h1ekgsTUFNbEMsR0FOa0M7QUFnQkosT0FjTCxJQWRLLEdBcUJELENBckNLO0FBQUEsQyxDRDN3SHZ6SDtBQUFBO0FBQUE7S0MrMkhnNUgsTUFNQTtBQU1KLE9BT04sRUFBSyxDQUlBLElBWEMsQ0FOSTtBQUFBO0NEcjNIaDVIO0FBQUEifQ" -`; - -exports[`serialize a proxy 1`] = ` -"var v0; -const v2 = {}; -v2.value = \\"hello\\"; -const v3 = {}; -var v4; -v4 = (self,name,) => { -return \`\${self[name]} world\`; -} -; -v3.get = v4; -const v5 = new Proxy(v2,v3,); -var v1 = v5; -v0 = () => { -return v1.value; -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0M2bGFrcmEsQ0FDL0UsSUFEK0UsQ0FPekUsSUFQeUUsTUFnQkE7QUFVUixPQU9ELENBR0QsRUFBbEMsSUFBMkIsQ0FLdEIsSUFMc0IsQ0FBTyxDQWdDQSxNQW5DQyxDQVBDLENBVlE7QUFBQTtDRDdtYWxyYTtBQUFBO0FBQUE7QUFBQTtLQ3F1YXl3YSxNQU1BO0FBTUosT0FPUCxFQUFNLENBTUEsS0FiQyxDQU5JO0FBQUE7Q0QzdWF6d2E7QUFBQSJ9" -`; - -exports[`serialize an imported module 1`] = ` -"var v0; -v0 = function isNode(a,){ -return typeof a?.kind===\\"number\\"; -} -; -const v1 = {}; -v1.constructor = v0; -v0.prototype = v1; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwic3JjL2d1YXJkcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtLQ3crZ0Vpa2hFLGdCQWdCbEUsQ0FoQmtFLEVBK0NBO0FBSUYsT0FPZCxPQU9OLENBQU0sRUFHQSxJQVZhLEdBbUJBLFFBMUJDLENBSkU7QUFBQTtDRHZoaEVqa2hFO0FBQUE7QUFBQTtBQUFBO0FBQUEifQ" -`; - -exports[`thrown errors map back to source 1`] = ` -"var v0; -const v2 = Error; -var v1 = v2; -v0 = () => { -throw new v1(\\"oops\\",); -} -; -exports.handler = v0 - -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzA1YW04YSxNQU1BO0FBTUosTUFNRCxJQUlSLEVBSlEsQ0FVRCxNQVZDLEVBTkMsQ0FOSTtBQUFBO0NEaDZhbjhhO0FBQUEifQ" -`; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 6fa20555..47917dcf 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-require-imports */ import "jest"; import fs from "fs"; import path from "path"; @@ -589,6 +590,83 @@ test("avoid collision with a parameter with object binding nested in array bindi expect(closure([{ v1: 2 }])).toEqual(3); }); +test("avoid collision with a variable declaration in for-of", async () => { + const one = 1; + const closure = await expectClosure(() => { + let _v: number = 0; + for (const v1 of [2]) { + _v = v1; + } + // capture the v0 free variable + let free = one; + return _v + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a variable declaration object binding in for-of", async () => { + const one = 1; + const closure = await expectClosure(() => { + let _v: number = 0; + for (const { v1 } of [{ v1: 2 }]) { + _v = v1; + } + // capture the v0 free variable + let free = one; + return _v + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a variable declaration object binding in for-of", async () => { + const one = 1; + const closure = await expectClosure(() => { + let _v: number = 0; + for (const { v1 } of [{ v1: 2 }]) { + _v = v1; + } + // capture the v0 free variable + let free = one; + return _v + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a variable declaration array binding in for-of", async () => { + const one = 1; + const closure = await expectClosure(() => { + let _v: number = 0; + for (const [v1] of [[2]]) { + _v = v1!; + } + // capture the v0 free variable + let free = one; + return _v + free; + }); + + expect(closure()).toEqual(3); +}); + +test("avoid collision with a catch variable", async () => { + const one = 1; + const closure = await expectClosure(() => { + let _v: number = 0; + try { + throw 2; + } catch (v1) { + _v = v1 as number; + } + // capture the v0 free variable + let free = one; + return _v + free; + }); + + expect(closure()).toEqual(3); +}); + test("instantiating the AWS SDK", async () => { const closure = await expectClosure(() => { const client = new AWS.DynamoDB(); @@ -606,6 +684,7 @@ test.skip("instantiating the AWS SDK without esbuild", async () => { return client.config.endpoint; }, { + // @ts-ignore requireModules: false, } ); @@ -630,6 +709,7 @@ test.skip("instantiating the AWS SDK v3 without esbuild", async () => { return client.config.serviceId; }, { + // @ts-ignore requireModules: false, } ); @@ -1094,3 +1174,7 @@ test("broad spectrum syntax test", async () => { void 0, ]); }); + +test("should serialize the value pointed to by a PropAccessExpr", async () => { + // +}); diff --git a/yarn.lock b/yarn.lock index 46c0399d..10c18811 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1040,10 +1040,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@functionless/ast-reflection@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.2.3.tgz#aac5039305bb73041fa5e4c4b8266e96106a30d3" - integrity sha512-lL4JkdCsTw2lzH05SpLnrkEEm+Gtx7kdIdCnT87/HiXzSHPpG8yrdpDP32YYHN2I5M81MZEd754mdJk7jDZYLg== +"@functionless/ast-reflection@^0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.3.1.tgz#5823249bbe3c9a57eb7b3471cff222577652cb38" + integrity sha512-to/pjwiN2KzZKY/ypTf4njFQ/dbFw+d9nfbpbjzBDwetFd+2b7KRjuI2c/FkiXlTrKTKNNYP9nyypocRk8q1bg== "@functionless/nodejs-closure-serializer@^0.1.2": version "0.1.2" From 10156f1f7e6557a03d6b8e474a16ad7335abfefa Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 13 Sep 2022 01:46:48 -0700 Subject: [PATCH 083/107] fix: various syntax bugs --- src/serialize-closure.ts | 38 ++++++++++++---------------------- src/serialize-util.ts | 13 +++++++----- test/serialize-closure.test.ts | 16 ++++++++++---- 3 files changed, 33 insertions(+), 34 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 155e2552..8284177d 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -903,7 +903,7 @@ export function serializeClosure( ...(node.name ? [toSourceNode(node.name, illegalNames)] : []), ...(node.isAsterisk ? ["*"] : []), "(", - ...parametersToSourceNode(node.parameters, illegalNames), + ...commaSeparatedListSourceNode(node.parameters, illegalNames), ")", toSourceNode(node.body, illegalNames), ]) @@ -959,7 +959,7 @@ export function serializeClosure( return createSourceNode(node, [ ...(node.isAsync ? ["async"] : []), "(", - ...parametersToSourceNode(node.parameters, illegalNames), + ...commaSeparatedListSourceNode(node.parameters, illegalNames), ") => ", toSourceNode(node.body, illegalNames), ]); @@ -970,7 +970,7 @@ export function serializeClosure( ...(node.isAsterisk ? ["*"] : []), ...(node.name ? [node.name] : []), "(", - ...parametersToSourceNode(node.parameters, illegalNames), + ...commaSeparatedListSourceNode(node.parameters, illegalNames), ")", toSourceNode(node.body, illegalNames), ]); @@ -1032,10 +1032,7 @@ export function serializeClosure( toSourceNode(node.expr, illegalNames), ...(node.isOptional ? ["?."] : []), "(", - ...node.args.flatMap((arg) => [ - toSourceNode(arg.expr, illegalNames), - ",", - ]), + ...commaSeparatedListSourceNode(node.args, illegalNames), ")", ]); } else if (isNewExpr(node)) { @@ -1077,10 +1074,7 @@ export function serializeClosure( } else if (isObjectLiteralExpr(node)) { return createSourceNode(node, [ "{", - ...node.properties.flatMap((prop) => [ - toSourceNode(prop, illegalNames), - ",", - ]), + ...commaSeparatedListSourceNode(node.properties, illegalNames), "}", ]); } else if (isPropAssignExpr(node)) { @@ -1138,19 +1132,13 @@ export function serializeClosure( } else if (isObjectBinding(node)) { return createSourceNode(node, [ "{", - ...node.bindings.flatMap((binding) => [ - toSourceNode(binding, illegalNames), - ",", - ]), + ...commaSeparatedListSourceNode(node.bindings, illegalNames), "}", ]); } else if (isArrayBinding(node)) { return createSourceNode(node, [ "[", - ...node.bindings.flatMap((binding) => [ - toSourceNode(binding, illegalNames), - ",", - ]), + ...commaSeparatedListSourceNode(node.bindings, illegalNames), "]", ]); } else if (isClassDecl(node) || isClassExpr(node)) { @@ -1196,7 +1184,7 @@ export function serializeClosure( ...(node.isAsterisk ? ["*"] : []), toSourceNode(node.name, illegalNames), "(", - ...parametersToSourceNode(node.parameters, illegalNames), + ...commaSeparatedListSourceNode(node.parameters, illegalNames), ")", toSourceNode(node.body, illegalNames), ]); @@ -1468,13 +1456,13 @@ export function serializeClosure( } } - function parametersToSourceNode( - parameters: ParameterDecl[], + function commaSeparatedListSourceNode( + nodes: FunctionlessNode[], illegalNames: Set ): (string | SourceNode)[] { - return parameters.flatMap((param, i) => [ - toSourceNode(param, illegalNames), - ...(i < parameters.length - 1 ? [","] : []), + return nodes.flatMap((node, i) => [ + toSourceNode(node, illegalNames), + ...(i < nodes.length - 1 ? [","] : []), ]); } } diff --git a/src/serialize-util.ts b/src/serialize-util.ts index 78e0c9a9..6b41674e 100644 --- a/src/serialize-util.ts +++ b/src/serialize-util.ts @@ -50,8 +50,6 @@ export function objectExpr(obj: Record) { ); } -const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; - export type SourceNodeOrString = string | SourceNode; export function createSourceNodeWithoutSpan( @@ -78,6 +76,8 @@ export function createSourceNode( ); } +const propNameRegex = /^[_a-zA-Z][_a-zA-Z0-9]*$/g; + export function propAccessExpr( expr: S, name: string @@ -87,9 +87,12 @@ export function propAccessExpr( ? string : SourceNodeOrString; } else { - return createSourceNodeWithoutSpan(expr, "[", name, "]") as S extends string - ? string - : SourceNodeOrString; + return createSourceNodeWithoutSpan( + expr, + "[", + stringExpr(name), + "]" + ) as S extends string ? string : SourceNodeOrString; } } diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 47917dcf..f24d9437 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -1036,6 +1036,9 @@ test("broad spectrum syntax test", async () => { const noSubstitutionTemplateLiteral = `hello world`; + const { head, ...rest } = { head: "head", rest1: "rest1", rest2: "rest2" }; + const [head2, ...rest2] = ["head array", "rest array1", "rest array2"]; + // eslint-disable-next-line no-debugger debugger; @@ -1087,6 +1090,9 @@ test("broad spectrum syntax test", async () => { noSubstitutionTemplateLiteral, typeof "hello world", void 0, + rest, + head2, + rest2, ]; }); @@ -1172,9 +1178,11 @@ test("broad spectrum syntax test", async () => { "hello world", "string", void 0, + { + rest1: "rest1", + rest2: "rest2", + }, + "head array", + ["rest array1", "rest array2"], ]); }); - -test("should serialize the value pointed to by a PropAccessExpr", async () => { - // -}); From 86638ab573dcbee219c4cb43763e656ec198c9d6 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 13 Sep 2022 14:58:24 -0700 Subject: [PATCH 084/107] fix: avoid serializing module._cache and always in-memory serialize functionless --- src/function.ts | 29 ++++++++++++++++++++++- src/index.ts | 1 + src/serialize-closure.ts | 14 ++++++++---- src/serialize-globals.ts | 3 +++ test-app/hook.js | 3 ++- test-app/yarn.lock | 13 ++++++----- test/serialize-closure.test.ts | 42 +++++++++++++++++++++++++++++++++- 7 files changed, 91 insertions(+), 14 deletions(-) diff --git a/src/function.ts b/src/function.ts index 06f66b58..88e12659 100644 --- a/src/function.ts +++ b/src/function.ts @@ -539,6 +539,18 @@ export interface FunctionProps aws_lambda.FunctionProps, "code" | "handler" | "runtime" | "onSuccess" | "onFailure" > { + /** + * Whether to generate source maps for serialized closures and + * to set --enableSourceMaps on NODE_OPTIONS environment variable. + * + * Only supported when using {@link SerializerImpl.EXPERIMENTAL_SWC}. + * + * @default true + */ + sourceMaps?: boolean; + /** + * Which {@link SerializerImpl} to use when serializing closures. + */ serializer?: SerializerImpl; /** * Method which allows runtime computation of AWS client configuration. @@ -682,6 +694,17 @@ export class Function< onFailure ), environment: { + ...(props?.environment ?? {}), + ...(props?.sourceMaps !== false + ? { + // merge --enableSourceMaps + NODE_OPTIONS: `--enable-source-maps${ + props?.environment?.NODE_OPTIONS + ? ` ${props.environment.NODE_OPTIONS}` + : "" + }`, + } + : {}), functionless_infer: Lazy.string({ produce: () => { // retrieve and bind all found native integrations. Will fail if the integration does not support native integration. @@ -1224,7 +1247,10 @@ export async function serialize( /** * Bundles a serialized function with esbuild. */ -export async function bundle(text: string): Promise { +export async function bundle( + text: string, + sourceMap?: boolean +): Promise { const bundle = await esbuild.build({ stdin: { contents: text, @@ -1236,6 +1262,7 @@ export async function bundle(text: string): Promise { platform: "node", target: "node14", external: ["aws-sdk", "aws-cdk-lib", "esbuild"], + sourcemap: sourceMap === false ? undefined : "inline", }); // a bundled output will be one file diff --git a/src/index.ts b/src/index.ts index 4b2a6d25..f4acbbdf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ export * from "./event-bridge"; export * from "./event-source"; export * from "./expression"; export * from "./function"; +export * from "./function-prewarm"; export * from "./guards"; export * from "./iterable"; export * from "./node-kind"; diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 8284177d..69e5b6bd 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -11,7 +11,6 @@ import { FunctionLike, GetAccessorDecl, MethodDecl, - ParameterDecl, SetAccessorDecl, VariableDeclKind, } from "./declaration"; @@ -194,13 +193,13 @@ export function serializeClosure( // -> the name of the exported value // -> the path of the module const requireCache = new Map( - Object.entries(require.cache).flatMap(([_path, module]) => { + Object.entries(require.cache).flatMap(([path, module]) => { try { return [ [ module?.exports as any, { - path: module?.id, + path, exportName: undefined, exportValue: module?.exports, module, @@ -212,7 +211,7 @@ export function serializeClosure( return [ exportValue.value, { - path: module?.id, + path, exportName, exportValue: exportValue.value, module: module, @@ -537,7 +536,8 @@ export function serializeClosure( throw new Error(`undefined exports`); } const requireMod = singleton(exports, () => { - return emitRequire(getModuleId(mod.path)); + const moduleId = getModuleId(mod.path); + return emitRequire(moduleId); }); return singleton(value, () => emitVarDecl( @@ -577,6 +577,10 @@ export function serializeClosure( fs.readFileSync(pkgJsonPath).toString("utf-8") ); if (typeof pkgJson.name === "string") { + if (pkgJson.name === "functionless") { + // always in-memory serialize functionless + return null; + } return pkgJson.name; } } diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts index 3c64ee5b..4692d458 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-globals.ts @@ -46,6 +46,9 @@ function registerOwnProperties(value: any, expr: string, isModule: boolean) { if (value === process && propName === "env") { // never serialize environment variables continue; + } else if (value === module && propName === "_cache") { + // never serialize the module cache + continue; } const propDesc = Object.getOwnPropertyDescriptor(value, propName); if (propDesc?.get && isModule) { diff --git a/test-app/hook.js b/test-app/hook.js index a4883120..347d034b 100644 --- a/test-app/hook.js +++ b/test-app/hook.js @@ -2,8 +2,9 @@ const register = require("@swc/register/lib/node").default; const path = require("path"); const src = path.join(__dirname, "src"); -const functionlessLib = path.resolve(__dirname, "..", "lib"); +const functionlessLib = path.dirname(require.resolve("functionless")); register({ + sourceMaps: true, ignore: [ (file) => { if (file.startsWith(src) || file.startsWith(functionlessLib)) { diff --git a/test-app/yarn.lock b/test-app/yarn.lock index 87f084ac..4571da4f 100644 --- a/test-app/yarn.lock +++ b/test-app/yarn.lock @@ -1179,10 +1179,10 @@ ts-node "^9" tslib "^2" -"@functionless/ast-reflection@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.2.2.tgz#976ec73af75028cb6216d70fa5266db368b0590a" - integrity sha512-YtvaEnorKparTOOIXmEbUXEfN4vOGl9jyXY7tvCDAgDpGMdJI2xAs108nHjNa6gabL9Xvojm6I1SuPC+EAsBvg== +"@functionless/ast-reflection@^0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@functionless/ast-reflection/-/ast-reflection-0.3.1.tgz#5823249bbe3c9a57eb7b3471cff222577652cb38" + integrity sha512-to/pjwiN2KzZKY/ypTf4njFQ/dbFw+d9nfbpbjzBDwetFd+2b7KRjuI2c/FkiXlTrKTKNNYP9nyypocRk8q1bg== "@functionless/language-service@^0.0.3": version "0.0.3" @@ -2800,7 +2800,7 @@ function.prototype.name@^1.1.5: "functionless@file:..": version "0.0.0" dependencies: - "@functionless/ast-reflection" "^0.2.2" + "@functionless/ast-reflection" "^0.3.1" "@functionless/nodejs-closure-serializer" "^0.1.2" "@swc/cli" "^0.1.57" "@swc/core" "1.2.245" @@ -2808,6 +2808,7 @@ function.prototype.name@^1.1.5: "@types/aws-lambda" "^8.10.102" fs-extra "^10.1.0" minimatch "^5.1.0" + source-map "^0.7.4" functions-have-names@^1.2.2: version "1.2.3" @@ -4214,7 +4215,7 @@ source-map@^0.6.0: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@^0.7.3: +source-map@^0.7.3, source-map@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index f24d9437..3cfb3659 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -3,10 +3,12 @@ import "jest"; import fs from "fs"; import path from "path"; import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; +import { App, aws_dynamodb, Stack } from "aws-cdk-lib"; import AWS from "aws-sdk"; import { v4 } from "uuid"; -import { AnyFunction } from "../src"; +import { $AWS, AnyFunction, Table, Function } from "../src"; +import { NativePreWarmContext } from "../src/function-prewarm"; import { isNode } from "../src/guards"; import { serializeClosure, @@ -1186,3 +1188,41 @@ test("broad spectrum syntax test", async () => { ["rest array1", "rest array2"], ]); }); + +test("should serialize NativePreWarmContext", async () => { + const preWarm = new NativePreWarmContext(); + + const closure = await expectClosure(() => { + return preWarm.getOrInit({ + key: "key", + init: () => "value", + }); + }); + + expect(closure()).toEqual("value"); +}); + +test("should serialize Function", async () => { + const app = new App({ + autoSynth: false, + }); + const stack = new Stack(app, "stack"); + + const table = new Table(stack, "Table", { + partitionKey: { + name: "id", + type: aws_dynamodb.AttributeType.STRING, + }, + }); + + new Function(stack, "foo", async () => { + await $AWS.DynamoDB.GetItem({ + Table: table, + Key: { + id: { + S: "id", + }, + }, + }); + }); +}); From e1dbf176c237f0e30fdac7c0862a30b70dca2818 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 11:29:18 -0700 Subject: [PATCH 085/107] fix: tests --- src/function.ts | 3 +- src/serialize-closure.ts | 23 +++++-- src/serialize-globals.ts | 91 +++++++++++++++++++++++++- test-app/src/order-processing-queue.ts | 42 +++++++++++- test/secret.localstack.test.ts | 1 + test/serialize-closure.test.ts | 20 ++++++ 6 files changed, 170 insertions(+), 10 deletions(-) diff --git a/src/function.ts b/src/function.ts index a65597d5..8e436552 100644 --- a/src/function.ts +++ b/src/function.ts @@ -885,7 +885,8 @@ export class CallbackLambdaCode extends aws_lambda.Code { serializerImpl, this.props ); - const bundled = (await bundle(serialized, sourceMaps)).contents; + const bundledPackage = await bundle(serialized, sourceMaps); + const bundled = bundledPackage.contents; const asset = aws_lambda.Code.fromAsset("", { assetHashType: AssetHashType.OUTPUT, diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 69e5b6bd..16572225 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -260,7 +260,7 @@ export function serializeClosure( const referenceInstanceIDs = new Map(); const handler = serialize(func); - emit(`exports.handler = ${handler}`); + emit(`exports.handler = ${handler}${options?.isFactoryFunction ? "()" : ""}`); // looks like TS does not expose the source-map functionality // TODO: figure out how to generate a source map since we have all the information ... @@ -902,7 +902,7 @@ export function serializeClosure( emit( createSourceNode(node, [ `const ${methodName} = `, - ...(node.isAsync ? ["async"] : []), + ...(node.isAsync ? ["async "] : []), "function ", ...(node.name ? [toSourceNode(node.name, illegalNames)] : []), ...(node.isAsterisk ? ["*"] : []), @@ -934,6 +934,9 @@ export function serializeClosure( illegalNames: Set ): SourceNode { if (isReferenceExpr(node)) { + if (isRequire(node.ref())) { + return createSourceNode(node, "require"); + } // get the set of ReferenceExpr instances for thisId let thisId = node.referenceId !== undefined @@ -961,7 +964,7 @@ export function serializeClosure( return createSourceNode(node, varId); } else if (isArrowFunctionExpr(node)) { return createSourceNode(node, [ - ...(node.isAsync ? ["async"] : []), + ...(node.isAsync ? ["async "] : []), "(", ...commaSeparatedListSourceNode(node.parameters, illegalNames), ") => ", @@ -969,7 +972,7 @@ export function serializeClosure( ]); } else if (isFunctionDecl(node) || isFunctionExpr(node)) { return createSourceNode(node, [ - ...(node.isAsync ? ["async"] : []), + ...(node.isAsync ? ["async "] : []), "function ", ...(node.isAsterisk ? ["*"] : []), ...(node.name ? [node.name] : []), @@ -1470,3 +1473,15 @@ export function serializeClosure( ]); } } + +/** + * Heuristic for detecting whether a value is the require function. + * + * Detects both the intrinsic require and jest's patched require. + */ +function isRequire(a: any): boolean { + return ( + a === require || + (typeof a === "function" && a.name === "bound requireModuleOrMock") + ); +} diff --git a/src/serialize-globals.ts b/src/serialize-globals.ts index 4692d458..68414d53 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-globals.ts @@ -11,12 +11,90 @@ for (const valueName of globals) { } } +const ignore = [ + "_http_agent", + "_http_client", + "_http_common", + "_http_incoming", + "_http_outgoing", + "_http_server", + "_stream_duplex", + "_stream_passthrough", + "_stream_readable", + "_stream_transform", + "_stream_wrap", + "_stream_writable", + "_tls_common", + "_tls_wrap", + // "assert", + // "assert/strict", + // "async_hooks", + // "buffer", + // "child_process", + // "cluster", + // "console", + // "constants", + // "crypto", + // "dgram", + // "diagnostics_channel", + // "dns", + // "dns/promises", + // "domain", + // "events", + // "fs", + // "fs/promises", + // "http", + // "http2", + // "https", + // "inspector", + // "module", + // "net", + // "os", + // "path", + // "path/posix", + // "path/win32", + // "perf_hooks", + // "process", + // "punycode", + // "querystring", + // "readline", + // "repl", + // "stream", + // "stream/consumers", + // "stream/promises", + // "stream/web", + // "string_decoder", + "sys", + // "timers", + // "timers/promises", + // "tls", + // "trace_events", + // "tty", + // "url", + // "util", + // "util/types", + // "v8", + // "vm", + // "worker_threads", + // "zlib", +]; + for (const moduleName of module.builtinModules) { + if (ignore.includes(moduleName) || moduleName.startsWith("_")) { + continue; + } // eslint-disable-next-line @typescript-eslint/no-require-imports const module = require(moduleName); const requireModule = callExpr(idExpr("require"), [stringExpr(moduleName)]); registerValue(module, requireModule); - registerOwnProperties(module, requireModule, true); + registerOwnProperties( + module, + requireModule, + true, + // skip crypto.DEFAULT_ENCODING to avoid complaints about deprecated APIs + // TODO: is this a good tenet? Only support non-deprecated APIs? + moduleName === "crypto" ? ["DEFAULT_ENCODING"] : [] + ); } function registerValue(value: any, expr: string) { @@ -34,7 +112,12 @@ function registerValue(value: any, expr: string) { } } -function registerOwnProperties(value: any, expr: string, isModule: boolean) { +function registerOwnProperties( + value: any, + expr: string, + isModule: boolean, + skip: string[] = [] +) { if ( value && (typeof value === "object" || typeof value === "function") && @@ -43,7 +126,9 @@ function registerOwnProperties(value: any, expr: string, isModule: boolean) { // go through each of its properties for (const propName of Object.getOwnPropertyNames(value)) { - if (value === process && propName === "env") { + if (skip.includes(propName)) { + continue; + } else if (value === process && propName === "env") { // never serialize environment variables continue; } else if (value === module && propName === "_cache") { diff --git a/test-app/src/order-processing-queue.ts b/test-app/src/order-processing-queue.ts index 94f4a3a1..0c271b65 100644 --- a/test-app/src/order-processing-queue.ts +++ b/test-app/src/order-processing-queue.ts @@ -1,5 +1,18 @@ -import { App, aws_logs, aws_stepfunctions, Stack } from "aws-cdk-lib"; -import { Queue, Function, EventBus, Event, StepFunction } from "functionless"; +import { + App, + aws_logs, + aws_stepfunctions, + SecretValue, + Stack, +} from "aws-cdk-lib"; +import { + Queue, + Function, + EventBus, + Event, + StepFunction, + JsonSecret, +} from "functionless"; const app = new App(); const stack = new Stack(app, "queue"); @@ -166,3 +179,28 @@ new StepFunction( }); } ); + +export interface UserPass { + username: string; + password: string; +} + +const secret = new JsonSecret(stack, "JsonSecret", { + secretStringValue: SecretValue.unsafePlainText( + JSON.stringify({ + username: "sam", + password: "sam", + }) + ), +}); + +new Function(stack, "SecretFunc", async (input: "get" | UserPass) => { + if (input === "get") { + return (await secret.getSecretValue()).SecretValue; + } else { + const response = await secret.putSecretValue({ + SecretValue: input, + }); + return response; + } +}); diff --git a/test/secret.localstack.test.ts b/test/secret.localstack.test.ts index 4d47a9a1..55ec3620 100644 --- a/test/secret.localstack.test.ts +++ b/test/secret.localstack.test.ts @@ -5,6 +5,7 @@ import { Function, FunctionProps, JsonSecret, + SerializerImpl, TextSecret, } from "../src"; import { runtimeTestExecutionContext, runtimeTestSuite } from "./runtime"; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 3cfb3659..21c6b8ff 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -823,6 +823,12 @@ test("broad spectrum syntax test", async () => { const arrowBlockExpr = (a: string, ...b: string[]) => { return [a, ...b]; }; + const asyncArrowExpr = async () => { + return "asyncArrowExpr"; + }; + async function asyncFuncDecl() { + return "asyncFuncDecl"; + } function funcDecl(a: string, ...b: string[]) { return [a, ...b]; } @@ -832,6 +838,12 @@ test("broad spectrum syntax test", async () => { const anonFuncExpr = function (a: string, ...b: string[]) { return [a, ...b]; }; + const asyncFuncExpr = async function asyncFuncExpr() { + return "asyncFuncExpr"; + }; + const anonAsyncFuncExpr = async function () { + return "anonAsyncFuncExpr"; + }; let getterSetterVal: string; const obj = { @@ -1050,6 +1062,10 @@ test("broad spectrum syntax test", async () => { ...funcDecl("d", "e", "f"), ...funcExpr("g", "h", "i"), ...anonFuncExpr("j", "k", "l"), + await asyncArrowExpr(), + await asyncFuncDecl(), + await asyncFuncExpr(), + await anonAsyncFuncExpr(), obj.prop, obj.getProp(), obj.getterSetter, @@ -1114,6 +1130,10 @@ test("broad spectrum syntax test", async () => { "j", "k", "l", + "asyncArrowExpr", + "asyncFuncDecl", + "asyncFuncExpr", + "anonAsyncFuncExpr", "prop", "prop 1", "getterSetter", From 162cf17fb2522f929b8bc609f26932a4d045ab7f Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 20:38:51 -0700 Subject: [PATCH 086/107] fix: tests --- src/serialize-closure.ts | 10 ++++- test/queue.localstack.test.ts | 3 ++ test/serialize-closure.test.ts | 71 +++++++++++++++++++++++++++++++--- 3 files changed, 77 insertions(+), 7 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 16572225..43472b59 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -259,8 +259,14 @@ export function serializeClosure( // map ReferenceExpr (syntactically) to the Closure Instance ID const referenceInstanceIDs = new Map(); + const funcAst = reflect(func)!; const handler = serialize(func); - emit(`exports.handler = ${handler}${options?.isFactoryFunction ? "()" : ""}`); + emit( + createSourceNode( + funcAst, + `exports.handler = ${handler}${options?.isFactoryFunction ? "()" : ""}` + ) + ); // looks like TS does not expose the source-map functionality // TODO: figure out how to generate a source map since we have all the information ... @@ -1241,7 +1247,9 @@ export function serializeClosure( } else if (isBinaryExpr(node)) { return createSourceNode(node, [ toSourceNode(node.left, illegalNames), + " ", node.op, + " ", toSourceNode(node.right, illegalNames), ]); } else if (isConditionExpr(node)) { diff --git a/test/queue.localstack.test.ts b/test/queue.localstack.test.ts index 52cb3eb9..4f2a8308 100644 --- a/test/queue.localstack.test.ts +++ b/test/queue.localstack.test.ts @@ -116,6 +116,9 @@ runtimeTestSuite<{ const test = _testQ(_test) as TestQueueResource; + // eslint-disable-next-line no-only-tests/no-only-tests + test.only = _testQ(_test.only); + test.skip = (name, _func, _t) => _test.skip( name, diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 21c6b8ff..5ac01480 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -673,10 +673,10 @@ test("instantiating the AWS SDK", async () => { const closure = await expectClosure(() => { const client = new AWS.DynamoDB(); - return client.config.endpoint; + return client; }); - expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); + expect(closure()).toBeInstanceOf(AWS.DynamoDB); }); test.skip("instantiating the AWS SDK without esbuild", async () => { @@ -690,17 +690,17 @@ test.skip("instantiating the AWS SDK without esbuild", async () => { requireModules: false, } ); - expect(closure()).toEqual("dynamodb.undefined.amazonaws.com"); + expect(closure()).toBeInstanceOf(AWS.DynamoDB); }); test("instantiating the AWS SDK v3", async () => { const closure = await expectClosure(() => { const client = new DynamoDBClient({}); - return client.config.serviceId; + return client; }); - expect(closure()).toEqual("DynamoDB"); + expect(closure()).toBeInstanceOf(DynamoDBClient); }); test.skip("instantiating the AWS SDK v3 without esbuild", async () => { @@ -767,7 +767,7 @@ test("thrown errors map back to source", async () => { console.log((err as Error).stack); } if (!failed) { - fail("expected a thrown erro"); + fail("expected a thrown error"); } }); @@ -1053,6 +1053,41 @@ test("broad spectrum syntax test", async () => { const { head, ...rest } = { head: "head", rest1: "rest1", rest2: "rest2" }; const [head2, ...rest2] = ["head array", "rest array1", "rest array2"]; + const binary = true && false; + const fooInstanceOf = foo instanceof Foo; + const condition = binary ? "condition true" : "condition false"; + + let switchDefault; + switch (0 as number) { + case 1: + switchDefault = "switchCase"; + break; + default: + switchDefault = "switchDefault"; + } + + let switchCase; + switch (0 as number) { + case 0: + switchCase = "switchCase"; + break; + default: + switchDefault = "switchDefault"; + } + + let num = 0; + const str = "hello"; + const typeOf = typeof str; + + const array = [1, 2]; + const object = { key: "value" }; + const key = "key"; + const element = object[key]; + const unary = !str; + const postfix = num++; + const prefix = ++num; + const binaryOp = (num += 1); + // eslint-disable-next-line no-debugger debugger; @@ -1111,6 +1146,18 @@ test("broad spectrum syntax test", async () => { rest, head2, rest2, + binary, + fooInstanceOf, + condition, + switchDefault, + switchCase, + typeOf, + array, + element, + unary, + postfix, + prefix, + binaryOp, ]; }); @@ -1206,6 +1253,18 @@ test("broad spectrum syntax test", async () => { }, "head array", ["rest array1", "rest array2"], + false, + true, + "condition false", + "switchDefault", + "switchCase", + "string", + [1, 2], + "value", + false, + 0, + 2, + 3, ]); }); From 8bf4dd313d8f38b95f1d6928b4c9f8035f1e4900 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 20:43:24 -0700 Subject: [PATCH 087/107] fix: properly base64 encoded --- src/serialize-closure.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/serialize-closure.ts b/src/serialize-closure.ts index 43472b59..24e1f812 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure.ts @@ -162,9 +162,7 @@ export interface SerializeClosureProps { * @returns a a JavaScript string with the source map as a base64-encoded comment at the end of the file. */ export function serializeCodeWithSourceMap(code: CodeWithSourceMap) { - const map = Buffer.from(JSON.stringify(code.map.toJSON())).toString( - "base64url" - ); + const map = Buffer.from(JSON.stringify(code.map.toJSON())).toString("base64"); return `${code.code}\n//# sourceMappingURL=data:application/json;base64,${map}`; } From 377ba1195a9981402dea99d6643071eb92e1d278 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 20:52:17 -0700 Subject: [PATCH 088/107] chore: remove redundant checks for isSuperKeyword --- src/api.ts | 15 ++------ src/appsync.ts | 3 +- src/asl/synth.ts | 47 ++----------------------- src/event-bridge/event-pattern/synth.ts | 7 ---- src/event-bridge/utils.ts | 13 ------- src/util.ts | 3 +- 6 files changed, 6 insertions(+), 82 deletions(-) diff --git a/src/api.ts b/src/api.ts index 635a77a6..e7dfb655 100644 --- a/src/api.ts +++ b/src/api.ts @@ -38,7 +38,6 @@ import { isParenthesizedExpr, isSpreadAssignExpr, isFunctionLike, - isSuperKeyword, } from "./guards"; import { IntegrationImpl, tryFindIntegration } from "./integration"; import { validateFunctionLike } from "./reflect"; @@ -661,12 +660,7 @@ export class APIGatewayVTL extends VTL { isIdentifier(node.name) && node.name.name === "data" ) { - if (isSuperKeyword(node.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "API Gateway does not support `super`." - ); - } else if (isInputBody(node.expr)) { + if (isInputBody(node.expr)) { // $input.data maps to `$input.path('$')` // this returns a VTL object representing the root payload data return `$input.path('$')`; @@ -851,12 +845,7 @@ export class APIGatewayVTL extends VTL { // this is a reference to an intermediate value, cannot be expressed as JSON Path return undefined; } else if (isPropAccessExpr(expr)) { - if (isSuperKeyword(expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "API Gateway does not support `super`." - ); - } else if ( + if ( isIdentifier(expr.name) && expr.name.name === "data" && isInputBody(expr.expr) diff --git a/src/appsync.ts b/src/appsync.ts index 64256bcd..a25fe42c 100644 --- a/src/appsync.ts +++ b/src/appsync.ts @@ -42,7 +42,6 @@ import { isThisExpr, isVariableDecl, isFunctionLike, - isSuperKeyword, } from "./guards"; import { findDeepIntegrations, @@ -687,7 +686,7 @@ function synthesizeFunctions(api: appsync.GraphqlApi, decl: FunctionLike) { if (isCallExpr(expr)) { template.call(expr); return returnValName; - } else if (isPropAccessExpr(expr) && !isSuperKeyword(expr.expr)) { + } else if (isPropAccessExpr(expr)) { return `${getResult(expr.expr)}.${expr.name.name}`; } else if (isElementAccessExpr(expr)) { return `${getResult(expr.expr)}[${getResult(expr.element)}]`; diff --git a/src/asl/synth.ts b/src/asl/synth.ts index 84ad0fee..491c6416 100644 --- a/src/asl/synth.ts +++ b/src/asl/synth.ts @@ -15,7 +15,6 @@ import { NullLiteralExpr, CallExpr, PropAccessExpr, - SuperKeyword, FunctionExpr, ArrowFunctionExpr, ElementAccessExpr, @@ -1663,15 +1662,9 @@ export class ASL { * @returns the {@link ASLGraph.Output} generated by an expression or an {@link ASLGraph.OutputSubState} with additional states and outputs. */ private eval( - expr: Expr | SuperKeyword, + expr: Expr, allowUndefined: boolean = false ): ASLGraph.NodeResults { - if (isSuperKeyword(expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } // first check to see if the expression can be turned into a constant. const constant = evalToConstant(expr); if (constant !== undefined) { @@ -1943,12 +1936,6 @@ export class ASL { } return { jsonPath: `$.${this.getIdentifierName(expr)}` }; } else if (isPropAccessExpr(expr)) { - if (isSuperKeyword(expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } if (isIdentifier(expr.name)) { return this.evalContext(expr.expr, ({ evalExpr }) => { const output = evalExpr( @@ -2986,12 +2973,6 @@ export class ASL { return this.evalContext( expr, ({ evalExpr, evalExprToJsonPathOrLiteral, addState }) => { - if (isSuperKeyword(expr.expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } const separatorArg = expr.args[0]?.expr; const valueOutput = evalExpr(expr.expr.expr); const separatorOutput = separatorArg @@ -3159,12 +3140,6 @@ export class ASL { `the 'predicate' argument of filter must be a function or arrow expression, found: ${predicate?.kindName}` ); } - if (isSuperKeyword(expr.expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } return this.evalExprToJsonPath(expr.expr.expr, (leftOutput) => { if ( @@ -3291,12 +3266,6 @@ export class ASL { } } } else if (isPropAccessExpr(expr)) { - if (isSuperKeyword(expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } const value = toFilterCondition(expr.expr); return value ? `${value}.${expr.name.name}` : undefined; } else if (isElementAccessExpr(expr)) { @@ -3424,12 +3393,6 @@ export class ASL { ); } - if (isSuperKeyword(expr.expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } return this.evalExprToJsonPath(expr.expr.expr, (listOutput) => { // we assume that an array literal or a call would return a variable. if ( @@ -3507,12 +3470,6 @@ export class ASL { `the 'callback' argument of forEach must be a function or arrow expression, found: ${callbackfn?.kindName}` ); } - if (isSuperKeyword(expr.expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Step Functions does not support super." - ); - } return this.evalExprToJsonPath(expr.expr.expr, (listOutput) => { // we assume that an array literal or a call would return a variable. if ( @@ -4786,7 +4743,7 @@ function toStateName(node?: FunctionlessNode): string { } else if (isBooleanLiteralExpr(node)) { return `${node.value}`; } else if (isCallExpr(node) || isNewExpr(node)) { - if (isSuperKeyword(node.expr) || isImportKeyword(node.expr)) { + if (isImportKeyword(node.expr)) { throw new Error(`calling ${node.expr.kindName} is unsupported in ASL`); } return `${isNewExpr(node) ? "new " : ""}${toStateName( diff --git a/src/event-bridge/event-pattern/synth.ts b/src/event-bridge/event-pattern/synth.ts index 31ee1941..3075a742 100644 --- a/src/event-bridge/event-pattern/synth.ts +++ b/src/event-bridge/event-pattern/synth.ts @@ -26,7 +26,6 @@ import { isNullLiteralExpr, isParenthesizedExpr, isPropAccessExpr, - isSuperKeyword, isUnaryExpr, isUndefinedLiteralExpr, } from "../../guards"; @@ -640,12 +639,6 @@ export const synthesizePatternDocument = ( const getEventReference = ( expression: Expr | SuperKeyword ): ReferencePath | undefined => { - if (isSuperKeyword(expression)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Event Bridge does not support super." - ); - } return getReferencePath(expression); }; diff --git a/src/event-bridge/utils.ts b/src/event-bridge/utils.ts index 1188c09e..fd87ca53 100644 --- a/src/event-bridge/utils.ts +++ b/src/event-bridge/utils.ts @@ -36,7 +36,6 @@ import { isSetAccessorDecl, isSpreadElementExpr, isStringLiteralExpr, - isSuperKeyword, isTemplateExpr, isTemplateMiddle, isUnaryExpr, @@ -66,12 +65,6 @@ export const getReferencePath = ( return { reference: [], identity: expression.name }; } else if (isPropAccessExpr(expression) || isElementAccessExpr(expression)) { const key = getPropertyAccessKey(expression); - if (isSuperKeyword(expression.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Event Bridge does not support super." - ); - } const parent = getReferencePath(expression.expr); if (parent) { return { @@ -169,12 +162,6 @@ export const flattenExpression = (expr: Expr, scope: EventScope): Expr => { } return expr; } else if (isPropAccessExpr(expr) || isElementAccessExpr(expr)) { - if (isSuperKeyword(expr.expr)) { - throw new SynthError( - ErrorCodes.Unsupported_Feature, - "Event Bridge does not support super." - ); - } const key = getPropertyAccessKeyFlatten(expr, scope); const parent = flattenExpression(expr.expr, scope); if (isObjectLiteralExpr(parent)) { diff --git a/src/util.ts b/src/util.ts index 53910d45..2c0917ba 100644 --- a/src/util.ts +++ b/src/util.ts @@ -21,7 +21,6 @@ import { isSpreadAssignExpr, isSpreadElementExpr, isStringLiteralExpr, - isSuperKeyword, isTemplateExpr, isUnaryExpr, isUndefinedLiteralExpr, @@ -285,7 +284,7 @@ export const evalToConstant = (expr: Expr): Constant | undefined => { if (typeof number === "number") { return { constant: -number }; } - } else if (isPropAccessExpr(expr) && !isSuperKeyword(expr.expr)) { + } else if (isPropAccessExpr(expr)) { const obj = evalToConstant(expr.expr)?.constant as any; if (obj && isIdentifier(expr.name) && expr.name.name in obj) { return { constant: obj[expr.name.name] }; From 8fb289f7178f7ad1d4901c5a66258b4be3df4aae Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 20:54:57 -0700 Subject: [PATCH 089/107] chore: enable snapshot tests for serialize-closure --- .../serialize-closure.test.ts.snap | 1253 +++++++++++++++++ test/serialize-closure.test.ts | 2 +- 2 files changed, 1254 insertions(+), 1 deletion(-) create mode 100644 test/__snapshots__/serialize-closure.test.ts.snap diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap new file mode 100644 index 00000000..f09e152e --- /dev/null +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -0,0 +1,1253 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`all observers of a free variable share the same reference 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = function up(){ +v3 += 2; +} +; +v2.prototype = v2.prototype; +var v1 = v2; +var v5; +v5 = function down(){ +v3 -= 1; +} +; +v5.prototype = v5.prototype; +var v4 = v5; +v0 = () => { +v1(); +v4(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ21FRSxhQUFjO0FBQ1osTUFBSyxDQUFMLENBRFk7QUFBQTtDRG5FaEI7QUFBQTtBQUFBO0FBQUE7S0N1RUUsZUFBZ0I7QUFDZCxNQUFLLENBQUwsQ0FEYztBQUFBO0NEdkVsQjtBQUFBO0FBQUE7S0MyRXNDLE1BQU07QUFDeEMsS0FEd0M7QUFFeEMsS0FGd0M7QUFHeEMsT0FBTyxFQUFQLENBSHdDO0FBQUE7Q0QzRTVDO0FDMkVzQyxvQkQzRXRDIn0=" +`; + +exports[`all observers of a free variable share the same reference even when two instances 1`] = ` +"var v0; +const v2 = []; +var v3; +var v5; +var v6 = 0; +v5 = function up(){ +v6 += 2; +} +; +v5.prototype = v5.prototype; +var v4 = v5; +var v8; +v8 = function down(){ +v6 -= 1; +} +; +v8.prototype = v8.prototype; +var v7 = v8; +v3 = () => { +v4(); +v7(); +return v6; +} +; +var v9; +var v11; +var v12 = 0; +v11 = function up(){ +v12 += 2; +} +; +v11.prototype = v11.prototype; +var v10 = v11; +var v14; +v14 = function down(){ +v12 -= 1; +} +; +v14.prototype = v14.prototype; +var v13 = v14; +v9 = () => { +v10(); +v13(); +return v12; +} +; +v2.push(v3,v9); +var v1 = v2; +v0 = () => { +return v1.map((closure) => { +return closure(); +} +); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N3RkksYUFBYztBQUNaLE1BQUssQ0FBTCxDQURZO0FBQUE7Q0R4RmxCO0FBQUE7QUFBQTtBQUFBO0tDNEZJLGVBQWdCO0FBQ2QsTUFBSyxDQUFMLENBRGM7QUFBQTtDRDVGcEI7QUFBQTtBQUFBO0tDZ0dXLE1BQU07QUFDWCxLQURXO0FBRVgsS0FGVztBQUdYLE9BQU8sRUFBUCxDQUhXO0FBQUE7Q0RoR2pCO0FBQUE7QUFBQTtBQUFBO01Dd0ZJLGFBQWM7QUFDWixPQUFLLENBQUwsQ0FEWTtBQUFBO0NEeEZsQjtBQUFBO0FBQUE7QUFBQTtNQzRGSSxlQUFnQjtBQUNkLE9BQUssQ0FBTCxDQURjO0FBQUE7Q0Q1RnBCO0FBQUE7QUFBQTtLQ2dHVyxNQUFNO0FBQ1gsTUFEVztBQUVYLE1BRlc7QUFHWCxPQUFPLEdBQVAsQ0FIVztBQUFBO0NEaEdqQjtBQUFBO0FBQUE7S0N1R3NDLE1BQU07QUFDeEMsT0FBTyxHQUFTLEdBQVQsQ0FBYSxDQUFDLE9BQUQsS0FBYTtBQUFBO0FBQUE7QUFBMUIsQ0FBUCxDQUR3QztBQUFBO0NEdkc1QztBQ3VHc0Msb0JEdkd0QyJ9" +`; + +exports[`avoid collision with a catch variable 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let _v=0 +try { +throw 2; +} +catch(v1){ +_v = v1; +} + +let free=v2 +return _v + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NncEJzQyxNQUFNO0FBQ3hDLElBQUksR0FBYSxDQUR1QjtBQUV4QyxJQUFJO0FBQ0YsTUFBTSxDQUFOLENBREU7QUFBQTtBQUVGLE1BQU8sRUFBUCxDQUFXO0FBQ1gsS0FBSyxFQUFMLENBRFc7QUFBQTtBQUoyQjtBQVF4QyxJQUFJLEtBQU8sRUFSNkI7QUFTeEMsT0FBTyxLQUFLLElBQVosQ0FUd0M7QUFBQTtDRGhwQjVDO0FDZ3BCc0Msb0JEaHBCdEMifQ==" +`; + +exports[`avoid collision with a locally scoped array binding 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const [v1]=[2,] +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NxZXNDLE1BQU07QUFFeEMsSUFBSSxLQUFPLEVBRjZCO0FBSXhDLE1BQU0sQ0FBQyxFQUFELEVBQU8sQ0FBQyxDQUFELEVBSjJCO0FBS3hDLE9BQU8sS0FBSyxJQUFaLENBTHdDO0FBQUE7Q0RyZTVDO0FDcWVzQyxvQkRyZXRDIn0=" +`; + +exports[`avoid collision with a locally scoped array binding with nested object binding 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const [{v1}]=[{v1:2},] +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NrZnNDLE1BQU07QUFFeEMsSUFBSSxLQUFPLEVBRjZCO0FBSXhDLE1BQU0sQ0FBQyxDQUFFLEVBQUYsQ0FBRCxFQUFXLENBQUMsQ0FBRSxHQUFJLENBQU4sQ0FBRCxFQUp1QjtBQUt4QyxPQUFPLEtBQUssSUFBWixDQUx3QztBQUFBO0NEbGY1QztBQ2tmc0Msb0JEbGZ0QyJ9" +`; + +exports[`avoid collision with a locally scoped class 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +class v1{ +foo = 2 +} +return new v1().foo + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M4Z0JzQyxNQUFNO0FBRXhDLElBQUksS0FBTyxFQUY2QjtBQUl4QyxNQUFNLEVBQU47QUFDRSxNQUFNLENBRFI7QUFBQSxDQUp3QztBQU94QyxPQUFPLElBQUksRUFBSixHQUFTLEdBQVQsR0FBZSxJQUF0QixDQVB3QztBQUFBO0NEOWdCNUM7QUM4Z0JzQyxvQkQ5Z0J0QyJ9" +`; + +exports[`avoid collision with a locally scoped function 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +function v1(){ +return 2; +} + +return v1() + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0MrZnNDLE1BQU07QUFFeEMsSUFBSSxLQUFPLEVBRjZCO0FBSXhDLGFBQWM7QUFDWixPQUFPLENBQVAsQ0FEWTtBQUFBO0FBSjBCO0FBT3hDLE9BQU8sT0FBTyxJQUFkLENBUHdDO0FBQUE7Q0QvZjVDO0FDK2ZzQyxvQkQvZnRDIn0=" +`; + +exports[`avoid collision with a locally scoped object binding variable 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const {v1}={v1:2} +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0MyY3NDLE1BQU07QUFFeEMsSUFBSSxLQUFPLEVBRjZCO0FBSXhDLE1BQU0sQ0FBRSxFQUFGLEVBQVMsQ0FBRSxHQUFJLENBQU4sQ0FKeUI7QUFLeEMsT0FBTyxLQUFLLElBQVosQ0FMd0M7QUFBQTtDRDNjNUM7QUMyY3NDLG9CRDNjdEMifQ==" +`; + +exports[`avoid collision with a locally scoped object binding variable with renamed property 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const {v2:v1}={v2:2} +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N3ZHNDLE1BQU07QUFFeEMsSUFBSSxLQUFPLEVBRjZCO0FBSXhDLE1BQU0sQ0FBRSxHQUFJLEVBQU4sRUFBYSxDQUFFLEdBQUksQ0FBTixDQUpxQjtBQUt4QyxPQUFPLEtBQUssSUFBWixDQUx3QztBQUFBO0NEeGQ1QztBQ3dkc0Msb0JEeGR0QyJ9" +`; + +exports[`avoid collision with a locally scoped variable 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let free=v2 +const v1=2 +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M4YnNDLE1BQU07QUFFeEMsSUFBSSxLQUFPLEVBRjZCO0FBSXhDLE1BQU0sR0FBSyxDQUo2QjtBQUt4QyxPQUFPLEtBQUssSUFBWixDQUx3QztBQUFBO0NEOWI1QztBQzhic0Msb0JEOWJ0QyJ9" +`; + +exports[`avoid collision with a parameter array binding 1`] = ` +"var v0; +var v2 = 1; +v0 = ([v1]) => { +let free=v2 +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M4akJzQyxDQUFDLENBQUMsRUFBRCxDQUFELEtBQW9CO0FBRXRELElBQUksS0FBTyxFQUYyQztBQUd0RCxPQUFPLEtBQUssSUFBWixDQUhzRDtBQUFBO0NEOWpCMUQ7QUM4akJzQyxvQkQ5akJ0QyJ9" +`; + +exports[`avoid collision with a parameter declaration 1`] = ` +"var v0; +var v2 = 1; +v0 = (v1) => { +let free=v2 +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0M2aEJzQyxDQUFDLEVBQUQsS0FBZ0I7QUFFbEQsSUFBSSxLQUFPLEVBRnVDO0FBR2xELE9BQU8sS0FBSyxJQUFaLENBSGtEO0FBQUE7Q0Q3aEJ0RDtBQzZoQnNDLG9CRDdoQnRDIn0=" +`; + +exports[`avoid collision with a parameter object binding 1`] = ` +"var v0; +var v2 = 1; +v0 = ({v1}) => { +let free=v2 +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N3aUJzQyxDQUFDLENBQUUsRUFBRixDQUFELEtBQTRCO0FBRTlELElBQUksS0FBTyxFQUZtRDtBQUc5RCxPQUFPLEtBQUssSUFBWixDQUg4RDtBQUFBO0NEeGlCbEU7QUN3aUJzQyxvQkR4aUJ0QyJ9" +`; + +exports[`avoid collision with a parameter object binding renamed 1`] = ` +"var v0; +var v2 = 1; +v0 = ({v2:v1}) => { +let free=v2 +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NtakJzQyxDQUFDLENBQUUsR0FBSSxFQUFOLENBQUQsS0FBZ0M7QUFFbEUsSUFBSSxLQUFPLEVBRnVEO0FBR2xFLE9BQU8sS0FBSyxJQUFaLENBSGtFO0FBQUE7Q0RuakJ0RTtBQ21qQnNDLG9CRG5qQnRDIn0=" +`; + +exports[`avoid collision with a parameter with object binding nested in array binding 1`] = ` +"var v0; +var v2 = 1; +v0 = ([{v1}]) => { +let free=v2 +return v1 + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0N5a0JzQyxDQUFDLENBQUMsQ0FBRSxFQUFGLENBQUQsQ0FBRCxLQUFnQztBQUVsRSxJQUFJLEtBQU8sRUFGdUQ7QUFHbEUsT0FBTyxLQUFLLElBQVosQ0FIa0U7QUFBQTtDRHprQnRFO0FDeWtCc0Msb0JEemtCdEMifQ==" +`; + +exports[`avoid collision with a variable declaration array binding in for-of 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let _v=0 +for(const [v1] of [[2,],]){ +_v = v1; +} + +let free=v2 +return _v + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0Npb0JzQyxNQUFNO0FBQ3hDLElBQUksR0FBYSxDQUR1QjtBQUV4QyxJQUFLLE1BQU0sQ0FBQyxFQUFELENBQVgsSUFBbUIsQ0FBQyxDQUFDLENBQUQsRUFBRCxFQUFuQixDQUEwQjtBQUN4QixLQUFLLEVBQUwsQ0FEd0I7QUFBQTtBQUZjO0FBTXhDLElBQUksS0FBTyxFQU42QjtBQU94QyxPQUFPLEtBQUssSUFBWixDQVB3QztBQUFBO0NEam9CNUM7QUNpb0JzQyxvQkRqb0J0QyJ9" +`; + +exports[`avoid collision with a variable declaration in for-of 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let _v=0 +for(const v1 of [2,]){ +_v = v1; +} + +let free=v2 +return _v + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NvbEJzQyxNQUFNO0FBQ3hDLElBQUksR0FBYSxDQUR1QjtBQUV4QyxJQUFLLE1BQU0sRUFBWCxJQUFpQixDQUFDLENBQUQsRUFBakIsQ0FBc0I7QUFDcEIsS0FBSyxFQUFMLENBRG9CO0FBQUE7QUFGa0I7QUFNeEMsSUFBSSxLQUFPLEVBTjZCO0FBT3hDLE9BQU8sS0FBSyxJQUFaLENBUHdDO0FBQUE7Q0RwbEI1QztBQ29sQnNDLG9CRHBsQnRDIn0=" +`; + +exports[`avoid collision with a variable declaration object binding in for-of 1`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let _v=0 +for(const {v1} of [{v1:2},]){ +_v = v1; +} + +let free=v2 +return _v + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NtbUJzQyxNQUFNO0FBQ3hDLElBQUksR0FBYSxDQUR1QjtBQUV4QyxJQUFLLE1BQU0sQ0FBRSxFQUFGLENBQVgsSUFBcUIsQ0FBQyxDQUFFLEdBQUksQ0FBTixDQUFELEVBQXJCLENBQWtDO0FBQ2hDLEtBQUssRUFBTCxDQURnQztBQUFBO0FBRk07QUFNeEMsSUFBSSxLQUFPLEVBTjZCO0FBT3hDLE9BQU8sS0FBSyxJQUFaLENBUHdDO0FBQUE7Q0RubUI1QztBQ21tQnNDLG9CRG5tQnRDIn0=" +`; + +exports[`avoid collision with a variable declaration object binding in for-of 2`] = ` +"var v0; +var v2 = 1; +v0 = () => { +let _v=0 +for(const {v1} of [{v1:2},]){ +_v = v1; +} + +let free=v2 +return _v + free; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0NrbkJzQyxNQUFNO0FBQ3hDLElBQUksR0FBYSxDQUR1QjtBQUV4QyxJQUFLLE1BQU0sQ0FBRSxFQUFGLENBQVgsSUFBcUIsQ0FBQyxDQUFFLEdBQUksQ0FBTixDQUFELEVBQXJCLENBQWtDO0FBQ2hDLEtBQUssRUFBTCxDQURnQztBQUFBO0FBRk07QUFNeEMsSUFBSSxLQUFPLEVBTjZCO0FBT3hDLE9BQU8sS0FBSyxJQUFaLENBUHdDO0FBQUE7Q0RsbkI1QztBQ2tuQnNDLG9CRGxuQnRDIn0=" +`; + +exports[`avoid name collision with a closure's lexical scope 1`] = ` +"var v0; +var v2; +var v4; +var v5 = 0; +v4 = class v1{ +foo(){ +return (v5 += 1); +} + +}; +var v3 = v4; +v2 = class v2 extends v3{ +}; +var v1 = v2; +v0 = () => { +const v3=new v1() +return v3.foo(); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDNmFFLE1BQU0sRUFBTjtBQUNTLEdBQVAsRUFBYTtBQUNYLE9BQU8sQ0FBQyxNQUFNLENBQVAsQ0FBUCxDQURXO0FBQUE7QUFEZjtBQUFBLEMsQ0Q3YUY7QUFBQTtLQ2tiRSxNQUFNLEVBQU4sU0FBaUIsRUFBakI7QUFBQSxDLENEbGJGO0FBQUE7S0NvYnNDLE1BQU07QUFDeEMsTUFBTSxHQUFLLElBQUksRUFBSixFQUQ2QjtBQUV4QyxPQUFPLEdBQUcsR0FBSCxFQUFQLENBRndDO0FBQUE7Q0RwYjVDO0FDb2JzQyxvQkRwYnRDIn0=" +`; + +exports[`broad spectrum syntax test 1`] = ` +"var v0; +const v2 = Promise; +var v1 = v2; +const v4 = Error; +var v3 = v4; +const v6 = Symbol; +var v5 = v6; +const v8 = Math; +var v7 = v8; +var v9 = NaN; +v0 = async () => { +const arrowExpr=(a,...b) => { +return [a,...b,]; +} + +const arrowBlockExpr=(a,...b) => { +return [a,...b,]; +} + +const asyncArrowExpr=async () => { +return \\"asyncArrowExpr\\"; +} + +async function asyncFuncDecl(){ +return \\"asyncFuncDecl\\"; +} + +function funcDecl(a,...b){ +return [a,...b,]; +} + +const funcExpr=function funcExpr(a,...b){ +return [a,...b,]; +} + +const anonFuncExpr=function (a,...b){ +return [a,...b,]; +} + +const asyncFuncExpr=async function asyncFuncExpr(){ +return \\"asyncFuncExpr\\"; +} + +const anonAsyncFuncExpr=async function (){ +return \\"anonAsyncFuncExpr\\"; +} + +let getterSetterVal +const obj={prop:\\"prop\\",getProp(){ +return this.prop + \\" 1\\"; +} +,get getterSetter(){ +return getterSetterVal; +} +,set getterSetter(val){ +getterSetterVal = val; +} +} +const {a,b:c,d:[e],f=\\"f\\"}={a:\\"a\\",b:\\"b\\",d:[\\"e\\",]} +obj.getterSetter = \\"getterSetter\\"; +class Foo{ +static VAL = \\"VAL\\" +static { +Foo.VAL = \\"VAL 1\\"; +this.VAL = \`\${this.VAL} 2\`; +} + +constructor(prop,val,){ +this.prop = prop; +this.val = val; +} + +method(){ +return \`\${this.prop} \${this.val} \${Foo.VAL}\`; +} + + async asyncMethod(){ +const result=await new v1((resolve) => { +return resolve(\\"asyncResult\\"); +} +,) +return result; +} + +*generatorMethod(){ +yield \\"yielded item\\"; +yield* generatorFuncDecl(); +yield* generatorFuncExpr(); +yield* anonGeneratorFuncExpr(); +} + +} +function *generatorFuncDecl(){ +yield \\"yielded in function decl\\"; +} + +const generatorFuncExpr=function *generatorFuncExpr(){ +yield \\"yielded in function expr\\"; +} + +const anonGeneratorFuncExpr=function *(){ +yield \\"yielded in anonymous function expr\\"; +} + +class Bar extends Foo{ +constructor(){ +super(\\"bar prop\\",\\"bar val\\"); +} + +method(){ +return \`bar \${super.method()}\`; +} + +} +const foo=new Foo(\\"foo prop\\",\\"foo val\\",) +const bar=new Bar() +const generator=foo.generatorMethod() +function ifTest(condition){ +if (condition === 0){ +return \\"if\\"; +} +else if (condition === 1){ +return \\"else if\\"; +} +else { +return \\"else\\"; +} + +} + +const whileStmts=[] +while (whileStmts.length === 0){ +whileStmts.push(\\"while block\\"); +} + +while (whileStmts.length === 1){ +whileStmts.push(\\"while stmt\\"); +} + +const doWhileStmts=[] +do{ +doWhileStmts.push(\\"do while block\\"); +} +while (doWhileStmts.length === 0); +do{ +doWhileStmts.push(\\"do while stmt\\"); +} +while (doWhileStmts.length === 1); +const whileTrue=[] +while (true){ +whileTrue.push(\`while true \${whileTrue.length}\`); +if (whileTrue.length === 1){ +continue; +} + +break; +} + +const tryCatchErr=[] +try { +tryCatchErr.push(\\"try\\"); +throw new v3(\\"catch\\",); +} +catch(err){ +tryCatchErr.push(err.message); +} +finally { +tryCatchErr.push(\\"finally\\"); +} + +const tryCatch=[] +try { +tryCatch.push(\\"try 2\\"); +throw new v3(\\"\\",); +} +catch{ +tryCatch.push(\\"catch 2\\"); +} +finally { +tryCatch.push(\\"finally 2\\"); +} + +const tryNoFinally=[] +try { +tryNoFinally.push(\\"try 3\\"); +throw new v3(\\"\\",); +} +catch{ +tryNoFinally.push(\\"catch 3\\"); +} + +const tryNoCatch=[] +try { +(() => { +try { +tryNoCatch.push(\\"try 4\\"); +throw new v3(\\"\\",); +} +finally { +tryNoCatch.push(\\"finally 4\\"); +} + +} +)(); +} +catch{ +} + +const deleteObj={notDeleted:\\"value\\",prop:\\"prop\\",\\"spaces prop\\":\\"spaces prop\\",[v5.for(\\"prop\\")]:\\"symbol prop\\"} +delete deleteObj.prop;; +delete deleteObj[\\"spaces prop\\"];; +delete deleteObj[v5.for(\\"prop\\")];; +const regex=/a.*/g +let unicode +{ +var HECOMḚṮH=42 +const _=\\"___\\" +const $=\\"$$\\" +const ƒ={π:v7.PI,ø:[],Ø:v9,e:2.718281828459045,root2:2.718281828459045,α:2.5029,δ:4.6692,ζ:1.2020569,φ:1.61803398874,γ:1.30357,K:2.685452001,oo:Infinity * Infinity,A:1.2824271291,C10:0.12345678910111213,c:299792458} +unicode = {ƒ:ƒ,out:\`\${HECOMḚṮH}\${_}\${$}\`}; +} + +var homecometh={H̹̙̦̮͉̩̗̗ͧ̇̏̊̾Eͨ͆͒̆ͮ̃͏̷̮̣̫̤̣Cͯ̂͐͏̨̛͔̦̟͈̻O̜͎͍͙͚̬̝̣̽ͮ͐͗̀ͤ̍̀͢M̴̡̲̭͍͇̼̟̯̦̉̒͠Ḛ̛̙̞̪̗ͥͤͩ̾͑̔͐ͅṮ̴̷̷̗̼͍̿̿̓̽͐H̙̙̔̄͜:42} +const parens=(2 + 3) * 2 +function tag(strings,...args){ +return \`tag \${strings.map((str,i) => { +return \`\${str} \${args[i]}\`; +} +).join(\\"|\\")}\`; +} + +const noSubstitutionTemplateLiteral=\`hello world\` +const {head,...rest}={head:\\"head\\",rest1:\\"rest1\\",rest2:\\"rest2\\"} +const [head2,...rest2]=[\\"head array\\",\\"rest array1\\",\\"rest array2\\",] +const binary=true && false +const fooInstanceOf=foo instanceof Foo +const condition=binary ? \\"condition true\\" : \\"condition false\\" +let switchDefault +switch (0) { +case 1:switchDefault = \\"switchCase\\"; +break; + +default: +switchDefault = \\"switchDefault\\"; + +} +let switchCase +switch (0) { +case 0:switchCase = \\"switchCase\\"; +break; + +default: +switchDefault = \\"switchDefault\\"; + +} +let num=0 +const str=\\"hello\\" +const typeOf=typeof str +const array=[1,2,] +const object={key:\\"value\\"} +const key=\\"key\\" +const element=object[key] +const unary=!str +const postfix=num++ +const prefix=++num +const binaryOp=(num += 1) +debugger; +return [...arrowExpr(\\"a\\",\\"b\\",\\"c\\"),...arrowBlockExpr(\\"A\\",\\"B\\",\\"C\\"),...funcDecl(\\"d\\",\\"e\\",\\"f\\"),...funcExpr(\\"g\\",\\"h\\",\\"i\\"),...anonFuncExpr(\\"j\\",\\"k\\",\\"l\\"),await asyncArrowExpr(),await asyncFuncDecl(),await asyncFuncExpr(),await anonAsyncFuncExpr(),obj.prop,obj.getProp(),obj.getterSetter,a,c,e,f,(() => { +return \\"foo\\"; +} +)(),(function (){ +return \\"bar\\"; +} +)(),(function baz(){ +return \\"baz\\"; +} +)(),foo.method(),bar.method(),await foo.asyncMethod(),generator.next().value,generator.next().value,generator.next().value,generator.next().value,ifTest(0),ifTest(1),ifTest(2),...whileStmts,...doWhileStmts,...whileTrue,...tryCatchErr,...tryCatch,...tryNoFinally,...tryNoCatch,deleteObj,regex.test(\\"abc\\"),unicode,homecometh,parens,tag\`\${1} + \${2} + \${3}\`,noSubstitutionTemplateLiteral,typeof \\"hello world\\",void 0,rest,head2,rest2,binary,fooInstanceOf,condition,switchDefault,switchCase,typeOf,array,element,unary,postfix,prefix,binaryOp,]; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0tDb3pCc0MsWUFBWTtBQUM5QyxNQUFNLFVBQVksQ0FBQyxDQUFELENBQVksR0FBRyxDQUFmLEtBQStCO0FBQUEsUUFBQyxDQUFELENBQUksR0FBRyxDQUFQO0FBQUE7QUFESDtBQUU5QyxNQUFNLGVBQWlCLENBQUMsQ0FBRCxDQUFZLEdBQUcsQ0FBZixLQUErQjtBQUNwRCxPQUFPLENBQUMsQ0FBRCxDQUFJLEdBQUcsQ0FBUCxFQUFQLENBRG9EO0FBQUE7QUFGUjtBQUs5QyxNQUFNLGVBQWlCLFlBQVk7QUFDakMsT0FBTyxnQkFBUCxDQURpQztBQUFBO0FBTFc7QUFROUMsOEJBQStCO0FBQzdCLE9BQU8sZUFBUCxDQUQ2QjtBQUFBO0FBUmU7QUFXOUMsa0JBQWtCLENBQWxCLENBQTZCLEdBQUcsQ0FBaEMsQ0FBNkM7QUFDM0MsT0FBTyxDQUFDLENBQUQsQ0FBSSxHQUFHLENBQVAsRUFBUCxDQUQyQztBQUFBO0FBWEM7QUFjOUMsTUFBTSxTQUFXLGtCQUFrQixDQUFsQixDQUE2QixHQUFHLENBQWhDLENBQTZDO0FBQzVELE9BQU8sQ0FBQyxDQUFELENBQUksR0FBRyxDQUFQLEVBQVAsQ0FENEQ7QUFBQTtBQWRoQjtBQWlCOUMsTUFBTSxhQUFlLFVBQVUsQ0FBVixDQUFxQixHQUFHLENBQXhCLENBQXFDO0FBQ3hELE9BQU8sQ0FBQyxDQUFELENBQUksR0FBRyxDQUFQLEVBQVAsQ0FEd0Q7QUFBQTtBQWpCWjtBQW9COUMsTUFBTSxjQUFnQiw4QkFBK0I7QUFDbkQsT0FBTyxlQUFQLENBRG1EO0FBQUE7QUFwQlA7QUF1QjlDLE1BQU0sa0JBQW9CLGlCQUFrQjtBQUMxQyxPQUFPLG1CQUFQLENBRDBDO0FBQUE7QUF2QkU7QUEyQjlDLElBQUksZUEzQjBDO0FBNEI5QyxNQUFNLElBQU0sQ0FDVixLQUFNLE1BREksQ0FFVixTQUFVO0FBQ1IsT0FBTyxLQUFLLElBQUwsR0FBWSxJQUFuQixDQURRO0FBQUE7QUFGQSxDQUtWLElBQUksWUFBSixFQUEyQjtBQUN6QixPQUFPLGVBQVAsQ0FEeUI7QUFBQTtBQUxqQixDQVFWLElBQUksWUFBSixDQUFpQixHQUFqQixDQUE4QjtBQUM1QixrQkFBa0IsR0FBbEIsQ0FENEI7QUFBQTtBQVJwQixDQTVCa0M7QUEwQzlDLE1BQU0sQ0FDSixDQURJLENBRUosRUFBRyxDQUZDLENBR0osRUFBRyxDQUFDLENBQUQsQ0FIQyxDQUlKLEVBQUksR0FKQSxFQUtGLENBQ0YsRUFBRyxHQURELENBRUYsRUFBRyxHQUZELENBR0YsRUFBRyxDQUFDLEdBQUQsRUFIRCxDQS9DMEM7QUFxRDlDLElBQUksWUFBSixHQUFtQixjQUFuQixDQXJEOEM7QUF1RDlDLE1BQU0sR0FBTjtBQUNFLE9BQU8sR0FBUCxHQUFhLEtBRGY7QUFFRSxPQUFPO0FBQ0wsSUFBSSxHQUFKLEdBQVUsT0FBVixDQURLO0FBRUwsS0FBSyxHQUFMLEdBQVcsQ0FBRyxPQUFLLEdBQUwsQ0FBUyxFQUFaLENBQVgsQ0FGSztBQUFBO0FBRlQ7QUFPRSxZQUFxQixJQUFyQixDQUFtQyxHQUFuQyxFQUFnRDtBQWwzQnRELFNBazNCMkIsT0FsM0IzQixDQWszQnNEO0FBQzlDLEtBQUssR0FBTCxHQUFXLEdBQVgsQ0FEOEM7QUFBQTtBQVBsRDtBQVVTLE1BQVAsRUFBZ0I7QUFDZCxPQUFPLENBQUcsT0FBSyxJQUFMLENBQVUsQ0FBRyxPQUFLLEdBQUwsQ0FBUyxDQUFHLE1BQUksR0FBSixDQUE1QixDQUFQLENBRGM7QUFBQTtBQVZsQjtBQWNFLE9BQWEsV0FBYixFQUEyQjtBQUN6QixNQUFNLE9BQVMsTUFBTSxJQUFJLEVBQUosQ0FBb0IsQ0FBQyxPQUFELEtBQ3ZDO0FBQUEsZUFBUSxhQUFSO0FBQUE7QUFEbUIsRUFESTtBQUl6QixPQUFPLE1BQVAsQ0FKeUI7QUFBQTtBQWQ3QjtBQXFCRSxDQUFRLGVBQVIsRUFBK0I7QUFDN0IsTUFBTSxjQUFOLENBRDZCO0FBRTdCLE9BQU8sbUJBQVAsQ0FGNkI7QUFHN0IsT0FBTyxtQkFBUCxDQUg2QjtBQUk3QixPQUFPLHVCQUFQLENBSjZCO0FBQUE7QUFyQmpDO0FBQUEsQ0F2RDhDO0FBb0Y5Qyw2QkFBOEI7QUFDNUIsTUFBTSwwQkFBTixDQUQ0QjtBQUFBO0FBcEZnQjtBQXdGOUMsTUFBTSxrQkFBb0IsNkJBQThCO0FBQ3RELE1BQU0sMEJBQU4sQ0FEc0Q7QUFBQTtBQXhGVjtBQTRGOUMsTUFBTSxzQkFBd0IsWUFBYTtBQUN6QyxNQUFNLG9DQUFOLENBRHlDO0FBQUE7QUE1Rkc7QUFnRzlDLE1BQU0sR0FBTixTQUFrQixHQUFsQjtBQUNFLGFBQWM7QUFDWixNQUFNLFVBQU4sQ0FBa0IsU0FBbEIsRUFEWTtBQUFBO0FBRGhCO0FBS1MsTUFBUCxFQUFnQjtBQUNkLE9BQU8sS0FBTyxRQUFNLE1BQU4sR0FBUCxDQUFQLENBRGM7QUFBQTtBQUxsQjtBQUFBLENBaEc4QztBQTBHOUMsTUFBTSxJQUFNLElBQUksR0FBSixDQUFRLFVBQVIsQ0FBb0IsU0FBcEIsRUExR2tDO0FBMkc5QyxNQUFNLElBQU0sSUFBSSxHQUFKLEVBM0drQztBQTRHOUMsTUFBTSxVQUFZLElBQUksZUFBSixFQTVHNEI7QUE4RzlDLGdCQUFnQixTQUFoQixDQUFzQztBQUNwQyxJQUFJLGNBQWMsQ0FBbEIsQ0FBcUI7QUFDbkIsT0FBTyxJQUFQLENBRG1CO0FBQUE7QUFBckIsS0FFTyxJQUFJLGNBQWMsQ0FBbEIsQ0FBcUI7QUFDMUIsT0FBTyxTQUFQLENBRDBCO0FBQUE7QUFBckIsS0FFQTtBQUNMLE9BQU8sTUFBUCxDQURLO0FBQUE7QUFMNkI7QUFBQTtBQTlHUTtBQXdIOUMsTUFBTSxXQUFhLEVBeEgyQjtBQXlIOUMsT0FBTyxXQUFXLE1BQVgsS0FBc0IsQ0FBN0IsQ0FBZ0M7QUFDOUIsV0FBVyxJQUFYLENBQWdCLGFBQWhCLEVBRDhCO0FBQUE7QUF6SGM7QUE2SDlDLE9BQU8sV0FBVyxNQUFYLEtBQXNCLENBQTdCLENBQWdDO0FBQUEsV0FBVyxJQUFYLENBQWdCLFlBQWhCO0FBQUE7QUE3SGM7QUErSDlDLE1BQU0sYUFBZSxFQS9IeUI7QUFnSTlDLEVBQUc7QUFDRCxhQUFhLElBQWIsQ0FBa0IsZ0JBQWxCLEVBREM7QUFBQTtBQUFILE9BRVMsYUFBYSxNQUFiLEtBQXdCLENBRmpDLEVBaEk4QztBQW9JOUMsRUFBRztBQUFBLGFBQWEsSUFBYixDQUFrQixlQUFsQjtBQUFBO0FBQUgsT0FDTyxhQUFhLE1BQWIsS0FBd0IsQ0FEL0IsRUFwSThDO0FBdUk5QyxNQUFNLFVBQVksRUF2STRCO0FBd0k5QyxPQUFPLElBQVAsQ0FBYTtBQUNYLFVBQVUsSUFBVixDQUFlLFlBQWMsWUFBVSxNQUFWLENBQWQsQ0FBZixFQURXO0FBRVgsSUFBSSxVQUFVLE1BQVYsS0FBcUIsQ0FBekIsQ0FBNEI7QUFDMUIsU0FEMEI7QUFBQTtBQUZqQjtBQUtYLE1BTFc7QUFBQTtBQXhJaUM7QUFnSjlDLE1BQU0sWUFBYyxFQWhKMEI7QUFpSjlDLElBQUk7QUFDRixZQUFZLElBQVosQ0FBaUIsS0FBakIsRUFERTtBQUVGLE1BQU0sSUFBSSxFQUFKLENBQVUsT0FBVixFQUFOLENBRkU7QUFBQTtBQUdGLE1BQU8sR0FBUCxDQUFpQjtBQUNqQixZQUFZLElBQVosQ0FBaUIsSUFBSSxPQUFyQixFQURpQjtBQUFBO0FBSG5CLFFBS1U7QUFDUixZQUFZLElBQVosQ0FBaUIsU0FBakIsRUFEUTtBQUFBO0FBdEpvQztBQTBKOUMsTUFBTSxTQUFXLEVBMUo2QjtBQTJKOUMsSUFBSTtBQUNGLFNBQVMsSUFBVCxDQUFjLE9BQWQsRUFERTtBQUVGLE1BQU0sSUFBSSxFQUFKLENBQVUsRUFBVixFQUFOLENBRkU7QUFBQTtBQUdGLEtBQU07QUFDTixTQUFTLElBQVQsQ0FBYyxTQUFkLEVBRE07QUFBQTtBQUhSLFFBS1U7QUFDUixTQUFTLElBQVQsQ0FBYyxXQUFkLEVBRFE7QUFBQTtBQWhLb0M7QUFvSzlDLE1BQU0sYUFBZSxFQXBLeUI7QUFxSzlDLElBQUk7QUFDRixhQUFhLElBQWIsQ0FBa0IsT0FBbEIsRUFERTtBQUVGLE1BQU0sSUFBSSxFQUFKLENBQVUsRUFBVixFQUFOLENBRkU7QUFBQTtBQUdGLEtBQU07QUFDTixhQUFhLElBQWIsQ0FBa0IsU0FBbEIsRUFETTtBQUFBO0FBeEtzQztBQTRLOUMsTUFBTSxXQUF1QixFQTVLaUI7QUE2SzlDLElBQUk7QUFDRixDQUFDLE1BQU07QUFDTCxJQUFJO0FBQ0YsV0FBVyxJQUFYLENBQWdCLE9BQWhCLEVBREU7QUFFRixNQUFNLElBQUksRUFBSixDQUFVLEVBQVYsRUFBTixDQUZFO0FBQUE7QUFBSixRQUdVO0FBQ1IsV0FBVyxJQUFYLENBQWdCLFdBQWhCLEVBRFE7QUFBQTtBQUpMO0FBQUE7QUFBUCxJQURFO0FBQUE7QUFTRixLQUFNO0FBQUE7QUF0THNDO0FBd0w5QyxNQUFNLFVBQWlCLENBQ3JCLFdBQVksT0FEUyxDQUVyQixLQUFNLE1BRmUsQ0FHckIsY0FBZSxhQUhNLENBSXJCLENBQUMsR0FBTyxHQUFQLENBQVcsTUFBWCxDQUFELEVBQXNCLGFBSkQsQ0F4THVCO0FBOEw5QyxPQUFPLFVBQVUsSUFBakIsRUE5TDhDO0FBK0w5QyxPQUFPLFVBQVUsYUFBVixDQUFQLEVBL0w4QztBQWdNOUMsT0FBTyxVQUFVLEdBQU8sR0FBUCxDQUFXLE1BQVgsQ0FBVixDQUFQLEVBaE04QztBQWtNOUMsTUFBTSxNQUFRLE1BbE1nQztBQW9NOUMsSUFBSSxPQXBNMEM7QUFxTTlDO0FBQ0UsSUFBSSxTQUFXLEVBRGpCO0FBRUUsTUFBTSxFQUFJLEtBRlo7QUFHRSxNQUFNLEVBQUksSUFIWjtBQUlFLE1BQU0sRUFBSSxDQUNSLEVBQUcsR0FBSyxFQURBLENBRVIsRUFBRyxFQUZLLENBR1IsRUFBRyxFQUhLLENBSVIsRUFBRyxpQkFKSyxDQUtSLE1BQU8saUJBTEMsQ0FNUixFQUFHLE1BTkssQ0FPUixFQUFHLE1BUEssQ0FRUixFQUFHLFNBUkssQ0FTUixFQUFHLGFBVEssQ0FVUixFQUFHLE9BVkssQ0FXUixFQUFHLFdBWEssQ0FZUixHQUFJLFdBQWlCLFFBWmIsQ0FhUixFQUFHLFlBYkssQ0FjUixJQUFLLG1CQWRHLENBZVIsRUFBRyxTQWZLLENBSlo7QUFxQkUsVUFBVSxDQUFFLEdBQUYsQ0FBSyxJQUFLLENBQUcsV0FBVyxJQUFJLElBQWxCLENBQVYsQ0FBVixDQXJCRjtBQUFBO0FBck04QztBQTZOOUMsSUFBSSxXQUFhLENBQUUseUdBQVUsRUFBWixDQTdONkI7QUErTjlDLE1BQU0sT0FBUyxDQUFDLElBQUksQ0FBTCxJQUFVLENBL05xQjtBQWlPOUMsYUFBYSxPQUFiLENBQTRDLEdBQUcsSUFBL0MsQ0FBK0Q7QUFFN0QsT0FBTyxLQUFPLFVBQVEsR0FBUixDQUFZLENBQUMsR0FBRCxDQUFNLENBQU4sS0FBWTtBQUFBLFFBQUcsTUFBSSxDQUFHLE9BQUssQ0FBTCxFQUFWO0FBQUE7QUFBeEIsRUFBNkMsSUFBN0MsQ0FBa0QsR0FBbEQsRUFBUCxDQUFQLENBRjZEO0FBQUE7QUFqT2pCO0FBc085QyxNQUFNLDhCQUFnQyxhQXRPUTtBQXdPOUMsTUFBTSxDQUFFLElBQUYsQ0FBUSxHQUFHLElBQVgsRUFBb0IsQ0FBRSxLQUFNLE1BQVIsQ0FBZ0IsTUFBTyxPQUF2QixDQUFnQyxNQUFPLE9BQXZDLENBeE9vQjtBQXlPOUMsTUFBTSxDQUFDLEtBQUQsQ0FBUSxHQUFHLEtBQVgsRUFBb0IsQ0FBQyxZQUFELENBQWUsYUFBZixDQUE4QixhQUE5QixFQXpPb0I7QUEyTzlDLE1BQU0sT0FBUyxRQUFRLEtBM091QjtBQTRPOUMsTUFBTSxjQUFnQixlQUFlLEdBNU9TO0FBNk85QyxNQUFNLFVBQVksU0FBUyxnQkFBVCxHQUE0QixpQkE3T0E7QUErTzlDLElBQUksYUEvTzBDO0FBZ1A5QyxRQUFRLENBQVI7QUFDRSxLQUFLLENBQUwsQ0FDRSxnQkFBZ0IsWUFBaEIsQ0FERjtBQUVFLE1BRkY7QUFERjtBQUlFO0FBQ0UsZ0JBQWdCLGVBQWhCLENBREY7QUFKRjtBQUFBLENBaFA4QztBQXdQOUMsSUFBSSxVQXhQMEM7QUF5UDlDLFFBQVEsQ0FBUjtBQUNFLEtBQUssQ0FBTCxDQUNFLGFBQWEsWUFBYixDQURGO0FBRUUsTUFGRjtBQURGO0FBSUU7QUFDRSxnQkFBZ0IsZUFBaEIsQ0FERjtBQUpGO0FBQUEsQ0F6UDhDO0FBaVE5QyxJQUFJLElBQU0sQ0FqUW9DO0FBa1E5QyxNQUFNLElBQU0sT0FsUWtDO0FBbVE5QyxNQUFNLE9BQVMsT0FBTyxHQW5Rd0I7QUFxUTlDLE1BQU0sTUFBUSxDQUFDLENBQUQsQ0FBSSxDQUFKLEVBclFnQztBQXNROUMsTUFBTSxPQUFTLENBQUUsSUFBSyxPQUFQLENBdFErQjtBQXVROUMsTUFBTSxJQUFNLEtBdlFrQztBQXdROUMsTUFBTSxRQUFVLE9BQU8sR0FBUCxDQXhROEI7QUF5UTlDLE1BQU0sTUFBUSxDQUFDLEdBelErQjtBQTBROUMsTUFBTSxRQUFVLEtBMVE4QjtBQTJROUMsTUFBTSxPQUFTLEVBQUUsR0EzUTZCO0FBNFE5QyxNQUFNLFNBQVcsQ0FBQyxPQUFPLENBQVIsQ0E1UTZCO0FBK1E5QyxTQS9ROEM7QUFpUjlDLE9BQU8sQ0FDTCxHQUFHLFVBQVUsR0FBVixDQUFlLEdBQWYsQ0FBb0IsR0FBcEIsQ0FERSxDQUVMLEdBQUcsZUFBZSxHQUFmLENBQW9CLEdBQXBCLENBQXlCLEdBQXpCLENBRkUsQ0FHTCxHQUFHLFNBQVMsR0FBVCxDQUFjLEdBQWQsQ0FBbUIsR0FBbkIsQ0FIRSxDQUlMLEdBQUcsU0FBUyxHQUFULENBQWMsR0FBZCxDQUFtQixHQUFuQixDQUpFLENBS0wsR0FBRyxhQUFhLEdBQWIsQ0FBa0IsR0FBbEIsQ0FBdUIsR0FBdkIsQ0FMRSxDQU1MLE1BQU0sZ0JBTkQsQ0FPTCxNQUFNLGVBUEQsQ0FRTCxNQUFNLGVBUkQsQ0FTTCxNQUFNLG1CQVRELENBVUwsSUFBSSxJQVZDLENBV0wsSUFBSSxPQUFKLEVBWEssQ0FZTCxJQUFJLFlBWkMsQ0FhTCxDQWJLLENBY0wsQ0FkSyxDQWVMLENBZkssQ0FnQkwsQ0FoQkssQ0FpQkwsQ0FBQyxNQUFNO0FBQ0wsT0FBTyxLQUFQLENBREs7QUFBQTtBQUFQLEdBakJLLENBb0JMLENBQUMsV0FBWTtBQUNYLE9BQU8sS0FBUCxDQURXO0FBQUE7QUFBYixHQXBCSyxDQXVCTCxDQUFDLGNBQWU7QUFDZCxPQUFPLEtBQVAsQ0FEYztBQUFBO0FBQWhCLEdBdkJLLENBMEJMLElBQUksTUFBSixFQTFCSyxDQTJCTCxJQUFJLE1BQUosRUEzQkssQ0E0QkwsTUFBTSxJQUFJLFdBQUosRUE1QkQsQ0E2QkwsVUFBVSxJQUFWLEdBQWlCLEtBN0JaLENBOEJMLFVBQVUsSUFBVixHQUFpQixLQTlCWixDQStCTCxVQUFVLElBQVYsR0FBaUIsS0EvQlosQ0FnQ0wsVUFBVSxJQUFWLEdBQWlCLEtBaENaLENBaUNMLE9BQU8sQ0FBUCxDQWpDSyxDQWtDTCxPQUFPLENBQVAsQ0FsQ0ssQ0FtQ0wsT0FBTyxDQUFQLENBbkNLLENBb0NMLEdBQUcsVUFwQ0UsQ0FxQ0wsR0FBRyxZQXJDRSxDQXNDTCxHQUFHLFNBdENFLENBdUNMLEdBQUcsV0F2Q0UsQ0F3Q0wsR0FBRyxRQXhDRSxDQXlDTCxHQUFHLFlBekNFLENBMENMLEdBQUcsVUExQ0UsQ0EyQ0wsU0EzQ0ssQ0E0Q0wsTUFBTSxJQUFOLENBQVcsS0FBWCxDQTVDSyxDQTZDTCxPQTdDSyxDQThDTCxVQTlDSyxDQStDTCxNQS9DSyxDQWdETCxHQUFHLENBQUcsSUFBRSxHQUFLLElBQUUsR0FBSyxJQUFqQixDQWhERSxDQWlETCw2QkFqREssQ0FrREwsT0FBTyxhQWxERixDQW1ETCxLQUFLLENBbkRBLENBb0RMLElBcERLLENBcURMLEtBckRLLENBc0RMLEtBdERLLENBdURMLE1BdkRLLENBd0RMLGFBeERLLENBeURMLFNBekRLLENBMERMLGFBMURLLENBMkRMLFVBM0RLLENBNERMLE1BNURLLENBNkRMLEtBN0RLLENBOERMLE9BOURLLENBK0RMLEtBL0RLLENBZ0VMLE9BaEVLLENBaUVMLE1BakVLLENBa0VMLFFBbEVLLEVBQVAsQ0FqUjhDO0FBQUE7Q0RwekJsRDtBQ296QnNDLG9CRHB6QnRDIn0=" +`; + +exports[`instantiating the AWS SDK 1`] = ` +"var v0; +const v2 = require(\\"aws-sdk\\"); +var v1 = v2; +v0 = () => { +const client=new v1.DynamoDB() +return client; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2dxQnNDLE1BQU07QUFDeEMsTUFBTSxPQUFTLElBQUksR0FBSSxRQUFSLEVBRHlCO0FBR3hDLE9BQU8sTUFBUCxDQUh3QztBQUFBO0NEaHFCNUM7QUNncUJzQyxvQkRocUJ0QyJ9" +`; + +exports[`instantiating the AWS SDK v3 1`] = ` +"var v0; +const v2 = require(\\"@aws-sdk/client-dynamodb\\"); +const v3 = v2.DynamoDBClient; +var v1 = v3; +v0 = () => { +const client=new v1({},) +return client; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDd3JCc0MsTUFBTTtBQUN4QyxNQUFNLE9BQVMsSUFBSSxFQUFKLENBQW1CLEVBQW5CLEVBRHlCO0FBR3hDLE9BQU8sTUFBUCxDQUh3QztBQUFBO0NEeHJCNUM7QUN3ckJzQyxvQkR4ckJ0QyJ9" +`; + +exports[`serialize a bound function 1`] = ` +"var v0; +const v2 = {}; +v2.prop = \\"hello\\"; +const v3 = []; +var v4; +v4 = function foo(){ +return this.prop; +} +; +v4.prototype = v4.prototype; +const v5 = v4.bind(v2,v3); +var v1 = v5; +v0 = () => { +return v1(); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0NrdEJlLGNBQXFDO0FBQ2hELE9BQU8sS0FBSyxJQUFaLENBRGdEO0FBQUE7Q0RsdEJwRDtBQUFBO0FBQUE7QUFBQTtLQzB0QnNDLE1BQU07QUFDeEMsT0FBTyxJQUFQLENBRHdDO0FBQUE7Q0QxdEI1QztBQzB0QnNDLG9CRDF0QnRDIn0=" +`; + +exports[`serialize a class declaration 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +method(){ +v3++; +return v3; +} + +}; +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method(); +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3NIRSxNQUFNLEdBQU47QUFDUyxNQUFQLEVBQWdCO0FBQ2QsS0FEYztBQUVkLE9BQU8sRUFBUCxDQUZjO0FBQUE7QUFEbEI7QUFBQSxDLENEdEhGO0FBQUE7S0M2SHNDLE1BQU07QUFDeEMsTUFBTSxJQUFNLElBQUksRUFBSixFQUQ0QjtBQUd4QyxJQUFJLE1BQUosR0FId0M7QUFJeEMsSUFBSSxNQUFKLEdBSndDO0FBS3hDLE9BQU8sRUFBUCxDQUx3QztBQUFBO0NEN0g1QztBQzZIc0Msb0JEN0h0QyJ9" +`; + +exports[`serialize a class declaration with constructor 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +constructor(){ +v3 += 1; +} + +method(){ +v3++; +return v3; +} + +}; +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method(); +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzBJRSxNQUFNLEdBQU47QUFDRSxhQUFjO0FBQ1osTUFBSyxDQUFMLENBRFk7QUFBQTtBQURoQjtBQUtTLE1BQVAsRUFBZ0I7QUFDZCxLQURjO0FBRWQsT0FBTyxFQUFQLENBRmM7QUFBQTtBQUxsQjtBQUFBLEMsQ0QxSUY7QUFBQTtLQ3FKc0MsTUFBTTtBQUN4QyxNQUFNLElBQU0sSUFBSSxFQUFKLEVBRDRCO0FBR3hDLElBQUksTUFBSixHQUh3QztBQUl4QyxJQUFJLE1BQUosR0FKd0M7QUFLeEMsT0FBTyxFQUFQLENBTHdDO0FBQUE7Q0RySjVDO0FDcUpzQyxvQkRySnRDIn0=" +`; + +exports[`serialize a class hierarchy 1`] = ` +"var v0; +var v2; +var v4; +var v5 = 0; +v4 = class Foo{ +method(){ +return (v5 += 1); +} + +}; +var v3 = v4; +v2 = class Bar extends v3{ +method(){ +return super.method() + 1; +} + +}; +var v1 = v2; +v0 = () => { +const bar=new v1() +return [bar.method(),v5,]; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDOFhFLE1BQU0sR0FBTjtBQUNTLE1BQVAsRUFBZ0I7QUFDZCxPQUFPLENBQUMsTUFBSyxDQUFOLENBQVAsQ0FEYztBQUFBO0FBRGxCO0FBQUEsQyxDRDlYRjtBQUFBO0tDb1lFLE1BQU0sR0FBTixTQUFrQixFQUFsQjtBQUNTLE1BQVAsRUFBZ0I7QUFDZCxPQUFPLE1BQU0sTUFBTixLQUFpQixDQUF4QixDQURjO0FBQUE7QUFEbEI7QUFBQSxDLENEcFlGO0FBQUE7S0MwWXNDLE1BQU07QUFDeEMsTUFBTSxJQUFNLElBQUksRUFBSixFQUQ0QjtBQUd4QyxPQUFPLENBQUMsSUFBSSxNQUFKLEVBQUQsQ0FBZSxFQUFmLEVBQVAsQ0FId0M7QUFBQTtDRDFZNUM7QUMwWXNDLG9CRDFZdEMifQ==" +`; + +exports[`serialize a class method calling super 1`] = ` +"var v0; +var v2; +var v4; +v4 = class Foo{ +constructor(value,){ +this.value = value; +} + +method(){ +return \`hello \${this.value}\`; +} + +}; +var v3 = v4; +v2 = class Bar extends v3{ +method(){ +return \`\${super.method()}!\`; +} + +}; +const v5 = Object.create(v2.prototype); +v5.value = \\"world\\"; +var v1 = v5; +v0 = () => { +return v1.method(); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ294QkUsTUFBTSxHQUFOO0FBQ0UsWUFBcUIsS0FBckIsRUFBb0M7QUFyeEJ4QyxVQXF4QnlCLFFBcnhCekIsQ0FxeEJ3QztBQUFBO0FBRHRDO0FBRVMsTUFBUCxFQUFnQjtBQUNkLE9BQU8sT0FBUyxPQUFLLEtBQUwsQ0FBVCxDQUFQLENBRGM7QUFBQTtBQUZsQjtBQUFBLEMsQ0RweEJGO0FBQUE7S0MweEJFLE1BQU0sR0FBTixTQUFrQixFQUFsQjtBQUNTLE1BQVAsRUFBZ0I7QUFDZCxPQUFPLENBQUcsUUFBTSxNQUFOLEdBQWUsQ0FBbEIsQ0FBUCxDQURjO0FBQUE7QUFEbEI7QUFBQSxDLENEMXhCRjtBQUFBO0FBQUE7QUFBQTtLQ2l5QnNDLE1BQU07QUFBQSxVQUFJLE1BQUo7QUFBQTtDRGp5QjVDO0FDaXlCc0Msb0JEanlCdEMifQ==" +`; + +exports[`serialize a class mix-in 1`] = ` +"var v0; +var v2; +var v4; +var v5 = 0; +v4 = () => { +return class Foo{ +method(){ +return (v5 += 1); +} + +}; +} +; +var v3 = v4; +v2 = class Bar extends v3(){ +method(){ +return super.method() + 1; +} + +}; +var v1 = v2; +v0 = () => { +const bar=new v1() +return [bar.method(),v5,]; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0tDcVpnQixNQUNaO0FBQUEsYUFBTSxHQUFOO0FBQ1MsTUFBUCxFQUFnQjtBQUNkLE9BQU8sQ0FBQyxNQUFLLENBQU4sQ0FBUCxDQURjO0FBQUE7QUFEbEI7QUFBQTtBQUFBO0NEdFpKO0FBQUE7S0M0WkUsTUFBTSxHQUFOLFNBQWtCLElBQWxCO0FBQ1MsTUFBUCxFQUFnQjtBQUNkLE9BQU8sTUFBTSxNQUFOLEtBQWlCLENBQXhCLENBRGM7QUFBQTtBQURsQjtBQUFBLEMsQ0Q1WkY7QUFBQTtLQ2thc0MsTUFBTTtBQUN4QyxNQUFNLElBQU0sSUFBSSxFQUFKLEVBRDRCO0FBR3hDLE9BQU8sQ0FBQyxJQUFJLE1BQUosRUFBRCxDQUFlLEVBQWYsRUFBUCxDQUh3QztBQUFBO0NEbGE1QztBQ2thc0Msb0JEbGF0QyJ9" +`; + +exports[`serialize a class value 1`] = ` +"var v0; +var v2; +v2 = class Foo{ +constructor(value,){ +this.value = value; +} + +method(){ +return \`hello \${this.value}\`; +} + +}; +const v3 = Object.create(v2.prototype); +v3.value = \\"world\\"; +var v1 = v3; +v0 = () => { +return v1.method(); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0Nzd0JFLE1BQU0sR0FBTjtBQUNFLFlBQXFCLEtBQXJCLEVBQW9DO0FBdndCeEMsVUF1d0J5QixRQXZ3QnpCLENBdXdCd0M7QUFBQTtBQUR0QztBQUVTLE1BQVAsRUFBZ0I7QUFDZCxPQUFPLE9BQVMsT0FBSyxLQUFMLENBQVQsQ0FBUCxDQURjO0FBQUE7QUFGbEI7QUFBQSxDLENEdHdCRjtBQUFBO0FBQUE7QUFBQTtLQzh3QnNDLE1BQU07QUFBQSxVQUFJLE1BQUo7QUFBQTtDRDl3QjVDO0FDOHdCc0Msb0JEOXdCdEMifQ==" +`; + +exports[`serialize a monkey-patched class getter 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +get method(){ +return (v3 += 1); +} + +}; +const v4 = function get(){ +return (v3 += 2); +} + +Object.defineProperty(v2.prototype,\\"method\\",{get : v4,}); +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method; +foo.method; +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2dSRSxNQUFNLEdBQU47QUFDRSxJQUFXLE1BQVgsRUFBb0I7QUFDbEIsT0FBTyxDQUFDLE1BQUssQ0FBTixDQUFQLENBRGtCO0FBQUE7QUFEdEI7QUFBQSxDLENEaFJGO0FDdVJJLHlCQUFNO0FBQ0osT0FBTyxDQUFDLE1BQUssQ0FBTixDQUFQLENBREk7QUFBQTtBRHZSVjtBQUFBO0FBQUE7S0M0UnNDLE1BQU07QUFDeEMsTUFBTSxJQUFNLElBQUksRUFBSixFQUQ0QjtBQUd4QyxJQUFJLE1BQUosQ0FId0M7QUFJeEMsSUFBSSxNQUFKLENBSndDO0FBS3hDLE9BQU8sRUFBUCxDQUx3QztBQUFBO0NENVI1QztBQzRSc0Msb0JENVJ0QyJ9" +`; + +exports[`serialize a monkey-patched class getter and setter 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +set method(val){ +v3 += val; +} + +get method(){ +return v3; +} + +}; +const v4 = function get(){ +return v3 + 1; +} + +const v5 = function set(val){ +v3 += val + 1; +} + +Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : v5,}); +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method = 1; +foo.method = 1; +return foo.method; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2tVRSxNQUFNLEdBQU47QUFDRSxJQUFXLE1BQVgsQ0FBa0IsR0FBbEIsQ0FBK0I7QUFDN0IsTUFBSyxHQUFMLENBRDZCO0FBQUE7QUFEakM7QUFJRSxJQUFXLE1BQVgsRUFBb0I7QUFDbEIsT0FBTyxFQUFQLENBRGtCO0FBQUE7QUFKdEI7QUFBQSxDLENEbFVGO0FDK1VJLHlCQUFNO0FBQ0osT0FBTyxLQUFJLENBQVgsQ0FESTtBQUFBO0FEL1VWO0FDNFVJLHdCQUFJLEdBQUosQ0FBaUI7QUFDZixNQUFLLE1BQU0sQ0FBWCxDQURlO0FBQUE7QUQ1VXJCO0FBQUE7QUFBQTtLQ29Wc0MsTUFBTTtBQUN4QyxNQUFNLElBQU0sSUFBSSxFQUFKLEVBRDRCO0FBR3hDLElBQUksTUFBSixHQUFhLENBQWIsQ0FId0M7QUFJeEMsSUFBSSxNQUFKLEdBQWEsQ0FBYixDQUp3QztBQUt4QyxPQUFPLElBQUksTUFBWCxDQUx3QztBQUFBO0NEcFY1QztBQ29Wc0Msb0JEcFZ0QyJ9" +`; + +exports[`serialize a monkey-patched class getter while setter remains unchanged 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +set method(val){ +v3 += val; +} + +get method(){ +return v3; +} + +}; +const v4 = function get(){ +return v3 + 1; +} + +Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : Object.getOwnPropertyDescriptor(v2.prototype,\\"method\\").set,}); +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method = 1; +foo.method = 1; +return foo.method; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2lXRSxNQUFNLEdBQU47QUFDRSxJQUFXLE1BQVgsQ0FBa0IsR0FBbEIsQ0FBK0I7QUFDN0IsTUFBSyxHQUFMLENBRDZCO0FBQUE7QUFEakM7QUFJRSxJQUFXLE1BQVgsRUFBb0I7QUFDbEIsT0FBTyxFQUFQLENBRGtCO0FBQUE7QUFKdEI7QUFBQSxDLENEaldGO0FDNFdJLHlCQUFNO0FBQ0osT0FBTyxLQUFJLENBQVgsQ0FESTtBQUFBO0FENVdWO0FBQUE7QUFBQTtLQ2lYc0MsTUFBTTtBQUN4QyxNQUFNLElBQU0sSUFBSSxFQUFKLEVBRDRCO0FBR3hDLElBQUksTUFBSixHQUFhLENBQWIsQ0FId0M7QUFJeEMsSUFBSSxNQUFKLEdBQWEsQ0FBYixDQUp3QztBQUt4QyxPQUFPLElBQUksTUFBWCxDQUx3QztBQUFBO0NEalg1QztBQ2lYc0Msb0JEalh0QyJ9" +`; + +exports[`serialize a monkey-patched class method 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +method(){ +v3 += 1; +} + +}; +var v4; +v4 = function (){ +v3 += 2; +} +; +v4.prototype = v4.prototype; +v2.prototype.method = v4; +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method(); +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQzBORSxNQUFNLEdBQU47QUFDUyxNQUFQLEVBQWdCO0FBQ2QsTUFBSyxDQUFMLENBRGM7QUFBQTtBQURsQjtBQUFBLEMsQ0QxTkY7QUFBQTtLQ2dPeUIsV0FBWTtBQUNqQyxNQUFLLENBQUwsQ0FEaUM7QUFBQTtDRGhPckM7QUFBQTtBQUFBO0FBQUE7S0NvT3NDLE1BQU07QUFDeEMsTUFBTSxJQUFNLElBQUksRUFBSixFQUQ0QjtBQUd4QyxJQUFJLE1BQUosR0FId0M7QUFJeEMsSUFBSSxNQUFKLEdBSndDO0FBS3hDLE9BQU8sRUFBUCxDQUx3QztBQUFBO0NEcE81QztBQ29Pc0Msb0JEcE90QyJ9" +`; + +exports[`serialize a monkey-patched class method that has been re-set 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +method(){ +v3 += 1; +} + +}; +var v4; +v4 = function (){ +v3 += 2; +} +; +v4.prototype = v4.prototype; +v2.prototype.method = v4; +var v1 = v2; +const v6 = function method(){ +v3 += 1; +} + +var v5 = v6; +v0 = () => { +const foo=new v1() +foo.method(); +v1.prototype.method = v5; +foo.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2lQRSxNQUFNLEdBQU47QUFDUyxNQUFQLEVBQWdCO0FBQ2QsTUFBSyxDQUFMLENBRGM7QUFBQTtBQURsQjtBQUFBLEMsQ0RqUEY7QUFBQTtLQ3lQeUIsV0FBWTtBQUNqQyxNQUFLLENBQUwsQ0FEaUM7QUFBQTtDRHpQckM7QUFBQTtBQUFBO0FBQUE7QUNrUEksb0JBQU8sTUFBUCxFQUFnQjtBQUNkLE1BQUssQ0FBTCxDQURjO0FBQUE7QURsUHBCO0FBQUE7S0M2UGtCLE1BQU07QUFDcEIsTUFBTSxJQUFNLElBQUksRUFBSixFQURRO0FBR3BCLElBQUksTUFBSixHQUhvQjtBQUtwQixHQUFJLFNBQUosQ0FBYyxNQUFkLEdBQXVCLEVBQXZCLENBTG9CO0FBT3BCLElBQUksTUFBSixHQVBvQjtBQVFwQixPQUFPLEVBQVAsQ0FSb0I7QUFBQTtDRDdQeEI7QUM2UGtCLG9CRDdQbEIifQ==" +`; + +exports[`serialize a monkey-patched class setter 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +set method(val){ +v3 += val; +} + +}; +const v4 = function set(val){ +v3 += val + 1; +} + +Object.defineProperty(v2.prototype,\\"method\\",{set : v4,}); +var v1 = v2; +v0 = () => { +const foo=new v1() +foo.method = 1; +foo.method = 1; +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3lTRSxNQUFNLEdBQU47QUFDRSxJQUFXLE1BQVgsQ0FBa0IsR0FBbEIsQ0FBK0I7QUFDN0IsTUFBSyxHQUFMLENBRDZCO0FBQUE7QUFEakM7QUFBQSxDLENEelNGO0FDZ1RJLHdCQUFJLEdBQUosQ0FBaUI7QUFDZixNQUFLLE1BQU0sQ0FBWCxDQURlO0FBQUE7QURoVHJCO0FBQUE7QUFBQTtLQ3FUc0MsTUFBTTtBQUN4QyxNQUFNLElBQU0sSUFBSSxFQUFKLEVBRDRCO0FBR3hDLElBQUksTUFBSixHQUFhLENBQWIsQ0FId0M7QUFJeEMsSUFBSSxNQUFKLEdBQWEsQ0FBYixDQUp3QztBQUt4QyxPQUFPLEVBQVAsQ0FMd0M7QUFBQTtDRHJUNUM7QUNxVHNDLG9CRHJUdEMifQ==" +`; + +exports[`serialize a monkey-patched static class arrow function 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +static method = () => { +v3 += 1; +} + +}; +var v4; +v4 = function (){ +v3 += 2; +} +; +v4.prototype = v4.prototype; +v2.method = v4; +var v1 = v2; +v0 = () => { +v1.method(); +v1.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3VMRSxNQUFNLEdBQU47QUFDRSxPQUFjLE1BQWQsR0FBdUIsTUFBTTtBQUMzQixNQUFLLENBQUwsQ0FEMkI7QUFBQTtBQUQvQjtBQUFBLEMsQ0R2TEY7QUFBQTtLQzZMZSxXQUFZO0FBQ3ZCLE1BQUssQ0FBTCxDQUR1QjtBQUFBO0NEN0wzQjtBQUFBO0FBQUE7QUFBQTtLQ2lNc0MsTUFBTTtBQUN4QyxHQUFJLE1BQUosR0FEd0M7QUFFeEMsR0FBSSxNQUFKLEdBRndDO0FBR3hDLE9BQU8sRUFBUCxDQUh3QztBQUFBO0NEak01QztBQ2lNc0Msb0JEak10QyJ9" +`; + +exports[`serialize a monkey-patched static class method 1`] = ` +"var v0; +var v2; +var v3 = 0; +v2 = class Foo{ +method(){ +v3 += 1; +} + +}; +var v4; +v4 = function (){ +v3 += 2; +} +; +v4.prototype = v4.prototype; +v2.method = v4; +var v1 = v2; +v0 = () => { +v1.method(); +v1.method(); +return v3; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ2tLRSxNQUFNLEdBQU47QUFDZ0IsTUFBZCxFQUF1QjtBQUNyQixNQUFLLENBQUwsQ0FEcUI7QUFBQTtBQUR6QjtBQUFBLEMsQ0RsS0Y7QUFBQTtLQ3dLZSxXQUFZO0FBQ3ZCLE1BQUssQ0FBTCxDQUR1QjtBQUFBO0NEeEszQjtBQUFBO0FBQUE7QUFBQTtLQzRLc0MsTUFBTTtBQUN4QyxHQUFJLE1BQUosR0FEd0M7QUFFeEMsR0FBSSxNQUFKLEdBRndDO0FBR3hDLE9BQU8sRUFBUCxDQUh3QztBQUFBO0NENUs1QztBQzRLc0Msb0JENUt0QyJ9" +`; + +exports[`serialize a monkey-patched static class property 1`] = ` +"var v0; +var v2; +v2 = class Foo{ +static prop = 1 +}; +v2.prop = 2; +var v1 = v2; +v0 = () => { +return v1.prop; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7S0MyTUUsTUFBTSxHQUFOO0FBQ0UsT0FBYyxJQUFkLEdBQXFCLENBRHZCO0FBQUEsQyxDRDNNRjtBQUFBO0FBQUE7S0NpTnNDLE1BQU07QUFDeEMsT0FBTyxHQUFJLElBQVgsQ0FEd0M7QUFBQTtDRGpONUM7QUNpTnNDLG9CRGpOdEMifQ==" +`; + +exports[`serialize a proxy 1`] = ` +"var v0; +const v2 = {}; +v2.value = \\"hello\\"; +const v3 = {}; +var v4; +v4 = (self,name) => { +return \`\${self[name]} world\`; +} +; +v3.get = v4; +const v5 = new Proxy(v2,v3,); +var v1 = v5; +v0 = () => { +return v1.value; +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0N1dUJXLENBQUMsSUFBRCxDQUFPLElBQVAsS0FBZ0I7QUFDbkIsT0FBTyxDQUFHLE9BQUssSUFBTCxFQUFnQyxNQUFuQyxDQUFQLENBRG1CO0FBQUE7Q0R2dUIzQjtBQUFBO0FBQUE7QUFBQTtLQzZ1QnNDLE1BQU07QUFDeEMsT0FBTyxHQUFNLEtBQWIsQ0FEd0M7QUFBQTtDRDd1QjVDO0FDNnVCc0Msb0JEN3VCdEMifQ==" +`; + +exports[`serialize a this reference in an object literal 1`] = ` +"var v0; +const v2 = {}; +v2.prop = \\"prop\\"; +const v3 = function get(){ +return this.prop; +} + +v2.get = v3; +var v1 = v2; +v0 = () => { +return v1.get(); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQ3l5QkkseUJBQU07QUFDSixPQUFPLEtBQUssSUFBWixDQURJO0FBQUE7QUR6eUJWO0FBQUE7QUFBQTtLQzh5QnNDLE1BQU07QUFBQSxVQUFJLEdBQUo7QUFBQTtDRDl5QjVDO0FDOHlCc0Msb0JEOXlCdEMifQ==" +`; + +exports[`serialize an imported module 1`] = ` +"var v0; +v0 = function isNode(a){ +return typeof a?.kind === \\"number\\"; +} +; +v0.prototype = v0.prototype; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwic3JjL2d1YXJkcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtLQ01PLGdCQUFnQixDQUFoQixDQUErQztBQUNwRCxPQUFPLE9BQU8sR0FBRyxJQUFWLEtBQW1CLFFBQTFCLENBRG9EO0FBQUE7Q0ROdEQ7QUFBQTtBQ01PLG9CRE5QIn0=" +`; + +exports[`should serialize NativePreWarmContext 1`] = ` +"var v0; +var v2; +v2 = class NativePreWarmContext{ +constructor(props,){ +this.props = props; +this.cache = {}; +} + +get(key){ +return this.cache[key]; +} + +getOrInit(client){ +if (!this.cache[client.key]){ +this.cache[client.key] = client.init(client.key,this.props); +} + +return this.cache[client.key]; +} + +}; +const v3 = Object.create(v2.prototype); +v3.props = undefined; +const v4 = {}; +v3.cache = v4; +var v1 = v3; +v0 = () => { +return v1.getOrInit({key:\\"key\\",init:() => { +return \\"value\\"; +} +}); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwic3JjL2Z1bmN0aW9uLXByZXdhcm0udHMiLCJ0ZXN0L3NlcmlhbGl6ZS1jbG9zdXJlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtLQ2tITyxNQUFNLG9CQUFOO0FBR0wsWUFBb0IsS0FBcEIsRUFBMEM7QUFySDVDLFVBcUhzQixRQXJIdEIsQ0FxSDRDO0FBQ3hDLEtBQUssS0FBTCxHQUFhLEVBQWIsQ0FEd0M7QUFBQTtBQUhyQztBQU9FLEdBQVAsQ0FBYyxHQUFkLENBQXVEO0FBQ3JELE9BQU8sS0FBSyxLQUFMLENBQVcsR0FBWCxDQUFQLENBRHFEO0FBQUE7QUFQbEQ7QUFXRSxTQUFQLENBQW9CLE1BQXBCLENBQWlFO0FBQy9ELElBQUksQ0FBQyxLQUFLLEtBQUwsQ0FBVyxPQUFPLEdBQWxCLENBQUwsQ0FBNkI7QUFDM0IsS0FBSyxLQUFMLENBQVcsT0FBTyxHQUFsQixJQUF5QixPQUFPLElBQVAsQ0FBWSxPQUFPLEdBQW5CLENBQXdCLEtBQUssS0FBN0IsQ0FBekIsQ0FEMkI7QUFBQTtBQURrQztBQUkvRCxPQUFPLEtBQUssS0FBTCxDQUFXLE9BQU8sR0FBbEIsQ0FBUCxDQUorRDtBQUFBO0FBWDVEO0FBQUEsQyxDRGxIUDtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7S0V5dkNzQyxNQUFNO0FBQ3hDLE9BQU8sR0FBUSxTQUFSLENBQWtCLENBQ3ZCLElBQUssS0FEa0IsQ0FFdkIsS0FBTSxNQUFNO0FBQUE7QUFBQTtBQUZXLENBQWxCLENBQVAsQ0FEd0M7QUFBQTtDRnp2QzVDO0FFeXZDc0Msb0JGenZDdEMifQ==" +`; + +exports[`thrown errors map back to source 1`] = ` +"var v0; +const v2 = Error; +var v1 = v2; +v0 = () => { +throw new v1(\\"oops\\",); +} +; +exports.handler = v0 + +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwidGVzdC9zZXJpYWxpemUtY2xvc3VyZS50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtLQ3F2QnNDLE1BQU07QUFDeEMsTUFBTSxJQUFJLEVBQUosQ0FBVSxNQUFWLEVBQU4sQ0FEd0M7QUFBQTtDRHJ2QjVDO0FDcXZCc0Msb0JEcnZCdEMifQ==" +`; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index 5ac01480..e97f5601 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -55,7 +55,7 @@ async function expectClosure( options?: SerializeClosureProps ): Promise { const closure = serializeCodeWithSourceMap(serializeClosure(f, options)); - // expect(closure).toMatchSnapshot(); + expect(closure).toMatchSnapshot(); const jsFile = path.join(tmpDir, `${v4()}.js`); await fs.promises.writeFile(jsFile, closure); // eslint-disable-next-line @typescript-eslint/no-require-imports From 4bee033bd6e4d62cd01f0d3fe19743f7f0e10782 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 20:58:13 -0700 Subject: [PATCH 090/107] chore: move serialize-* into serialize-closure folder --- src/function.ts | 2 +- src/index.ts | 1 + .../globals.json} | 0 .../globals.ts} | 4 ++-- .../serialize.ts} | 20 +++++++++---------- .../util.ts} | 2 +- test/serialize-closure.test.ts | 2 +- 7 files changed, 16 insertions(+), 15 deletions(-) rename src/{serialize-globals.json => serialize-closure/globals.json} (100%) rename src/{serialize-globals.ts => serialize-closure/globals.ts} (98%) rename src/{serialize-closure.ts => serialize-closure/serialize.ts} (99%) rename src/{serialize-util.ts => serialize-closure/util.ts} (98%) diff --git a/src/function.ts b/src/function.ts index 8e436552..cd615c1c 100644 --- a/src/function.ts +++ b/src/function.ts @@ -62,7 +62,7 @@ import { isSecret } from "./secret"; import { serializeClosure, serializeCodeWithSourceMap, -} from "./serialize-closure"; +} from "./serialize-closure/serialize"; import { isStepFunction } from "./step-function"; import { isTable } from "./table"; import { AnyAsyncFunction, AnyFunction } from "./util"; diff --git a/src/index.ts b/src/index.ts index f4acbbdf..baabc70a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,7 @@ export * from "./reflect"; export * from "./s-expression"; export * from "./secret"; export * from "./serializer"; +export * from "./serialize-closure/serialize"; export * from "./statement"; export * from "./step-function"; export * from "./table"; diff --git a/src/serialize-globals.json b/src/serialize-closure/globals.json similarity index 100% rename from src/serialize-globals.json rename to src/serialize-closure/globals.json diff --git a/src/serialize-globals.ts b/src/serialize-closure/globals.ts similarity index 98% rename from src/serialize-globals.ts rename to src/serialize-closure/globals.ts index 68414d53..32ec6f3d 100644 --- a/src/serialize-globals.ts +++ b/src/serialize-closure/globals.ts @@ -1,7 +1,7 @@ // sourced from the lib.*.d.ts files import module from "module"; -import globals from "./serialize-globals.json"; -import { callExpr, idExpr, propAccessExpr, stringExpr } from "./serialize-util"; +import globals from "./globals.json"; +import { callExpr, idExpr, propAccessExpr, stringExpr } from "./util"; export const Globals = new Map string>(); diff --git a/src/serialize-closure.ts b/src/serialize-closure/serialize.ts similarity index 99% rename from src/serialize-closure.ts rename to src/serialize-closure/serialize.ts index 24e1f812..7c9fc7b0 100644 --- a/src/serialize-closure.ts +++ b/src/serialize-closure/serialize.ts @@ -4,7 +4,7 @@ import util from "util"; import { Token } from "aws-cdk-lib"; import { CodeWithSourceMap, SourceNode } from "source-map"; -import { assertNever } from "./assert"; +import { assertNever } from "../assert"; import { BindingName, ClassDecl, @@ -13,8 +13,8 @@ import { MethodDecl, SetAccessorDecl, VariableDeclKind, -} from "./declaration"; -import { ClassExpr } from "./expression"; +} from "../declaration"; +import { ClassExpr } from "../expression"; import { isArgument, isArrayBinding, @@ -99,10 +99,12 @@ import { isWhileStmt, isWithStmt, isYieldExpr, -} from "./guards"; -import { FunctionlessNode } from "./node"; -import { reflect, reverseProxy, unbind } from "./reflect"; -import { Globals } from "./serialize-globals"; +} from "../guards"; +import { FunctionlessNode } from "../node"; +import { reflect, reverseProxy, unbind } from "../reflect"; +import { AnyClass, AnyFunction, evalToConstant } from "../util"; +import { forEachChild } from "../visit"; +import { Globals } from "./globals"; import { exprStmt, assignExpr, @@ -125,9 +127,7 @@ import { SourceNodeOrString, createSourceNode, createSourceNodeWithoutSpan, -} from "./serialize-util"; -import { AnyClass, AnyFunction, evalToConstant } from "./util"; -import { forEachChild } from "./visit"; +} from "./util"; export interface SerializeClosureProps { /** diff --git a/src/serialize-util.ts b/src/serialize-closure/util.ts similarity index 98% rename from src/serialize-util.ts rename to src/serialize-closure/util.ts index 6b41674e..1cefe91f 100644 --- a/src/serialize-util.ts +++ b/src/serialize-closure/util.ts @@ -1,6 +1,6 @@ import path from "path"; import { SourceNode } from "source-map"; -import { FunctionlessNode } from "./node"; +import { FunctionlessNode } from "../node"; export function undefinedExpr() { return "undefined"; diff --git a/test/serialize-closure.test.ts b/test/serialize-closure.test.ts index e97f5601..b68fd5b0 100644 --- a/test/serialize-closure.test.ts +++ b/test/serialize-closure.test.ts @@ -14,7 +14,7 @@ import { serializeClosure, SerializeClosureProps, serializeCodeWithSourceMap, -} from "../src/serialize-closure"; +} from "../src/serialize-closure/serialize"; // set to false to inspect generated js files in .test/ const cleanup = true; From 9bc01e63bab102099c77d54504b249f4fd513a1c Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 13:45:07 -0500 Subject: [PATCH 091/107] try running tests without serialzie --- .projenrc.ts | 3 +-- package.json | 7 ++++--- test/secret.localstack.test.ts | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.projenrc.ts b/.projenrc.ts index debd4c8e..442f433a 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -145,8 +145,7 @@ const project = new CustomTypescriptProject({ transform: { "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, - // TODO: delete me, just to shorten the test cycle - testMatch: ["**/secret.localstack.test.ts"], + testPathIgnorePatterns: ["/node_modules/", ".*serialize.*"], }, }, scripts: { diff --git a/package.json b/package.json index b277ebdd..e119f122 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,10 @@ {} ] }, + "testPathIgnorePatterns": [ + "/node_modules/", + ".*serialize.*" + ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)" @@ -128,9 +132,6 @@ "text" ], "coverageDirectory": "coverage", - "testPathIgnorePatterns": [ - "/node_modules/" - ], "watchPathIgnorePatterns": [ "/node_modules/" ], diff --git a/test/secret.localstack.test.ts b/test/secret.localstack.test.ts index 55ec3620..4d47a9a1 100644 --- a/test/secret.localstack.test.ts +++ b/test/secret.localstack.test.ts @@ -5,7 +5,6 @@ import { Function, FunctionProps, JsonSecret, - SerializerImpl, TextSecret, } from "../src"; import { runtimeTestExecutionContext, runtimeTestSuite } from "./runtime"; From 633f980fd03c5fa296e508929e9c9d539f513ff7 Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 14:18:04 -0500 Subject: [PATCH 092/107] run tests without serialize closure --- .projenrc.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.projenrc.ts b/.projenrc.ts index 442f433a..734298c9 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -145,7 +145,7 @@ const project = new CustomTypescriptProject({ transform: { "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, - testPathIgnorePatterns: ["/node_modules/", ".*serialize.*"], + testPathIgnorePatterns: ["/node_modules/", ".*serialize-closure.*"], }, }, scripts: { diff --git a/package.json b/package.json index e119f122..972771f9 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ }, "testPathIgnorePatterns": [ "/node_modules/", - ".*serialize.*" + ".*serialize-closure.*" ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", From 25a03892dd098b590446177c510ef16c0f72fc8f Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 14:33:47 -0500 Subject: [PATCH 093/107] all together now... --- .projenrc.ts | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.projenrc.ts b/.projenrc.ts index 734298c9..bd8544ef 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -145,7 +145,7 @@ const project = new CustomTypescriptProject({ transform: { "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, - testPathIgnorePatterns: ["/node_modules/", ".*serialize-closure.*"], + testPathIgnorePatterns: ["/node_modules/"], }, }, scripts: { diff --git a/package.json b/package.json index 972771f9..0028a8aa 100644 --- a/package.json +++ b/package.json @@ -116,8 +116,7 @@ ] }, "testPathIgnorePatterns": [ - "/node_modules/", - ".*serialize-closure.*" + "/node_modules/" ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", From 9c971270210b54e68b84158523dc2e77411cbdfe Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 15:03:50 -0500 Subject: [PATCH 094/107] more memory --- .projen/tasks.json | 4 ++-- .projenrc.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 83c22685..b046eb37 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -85,7 +85,7 @@ "name": "compile", "description": "Only compile", "env": { - "NODE_OPTIONS": "--max-old-space-size=4096", + "NODE_OPTIONS": "--max-old-space-size=6144", "TEST_DEPLOY_TARGET": "AWS" }, "steps": [ @@ -191,7 +191,7 @@ "description": "Run tests", "env": { "TEST_DEPLOY_TARGET": "AWS", - "NODE_OPTIONS": "--max-old-space-size=4096" + "NODE_OPTIONS": "--max-old-space-size=6144" }, "steps": [ { diff --git a/.projenrc.ts b/.projenrc.ts index bd8544ef..2719b152 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -246,7 +246,7 @@ closeWorkflow?.addJob("cleanUp", cleanJob); project.compileTask.prependExec( "yarn link && cd ./test-app && yarn link functionless" ); -project.compileTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); +project.compileTask.env("NODE_OPTIONS", "--max-old-space-size=6144"); project.compileTask.env("TEST_DEPLOY_TARGET", "AWS"); project.compileTask.prependExec("ts-node ./scripts/sdk-gen.ts"); @@ -263,7 +263,7 @@ project.testTask.prependExec( // project.testTask.env("AWS_ACCESS_KEY_ID", "test"); // project.testTask.env("AWS_SECRET_ACCESS_KEY", "test"); project.testTask.env("TEST_DEPLOY_TARGET", "AWS"); -project.testTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); +project.testTask.env("NODE_OPTIONS", "--max-old-space-size=6144"); const testFast = project.addTask("test:fast"); testFast.exec(`jest --testPathIgnorePatterns localstack --coverage false`); From af85097dd87740db20c5be1da56fa4d5877c4d83 Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 15:16:23 -0500 Subject: [PATCH 095/107] jest no cache --- .projen/tasks.json | 2 +- .projenrc.ts | 2 +- package.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index b046eb37..2bf488e1 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -198,7 +198,7 @@ "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, { - "exec": "jest --passWithNoTests --all --updateSnapshot" + "exec": "jest --passWithNoTests --all --no-cache --updateSnapshot" }, { "spawn": "eslint" diff --git a/.projenrc.ts b/.projenrc.ts index 2719b152..70783e83 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -145,8 +145,8 @@ const project = new CustomTypescriptProject({ transform: { "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, - testPathIgnorePatterns: ["/node_modules/"], }, + extraCliOptions: ["--no-cache"], }, scripts: { localstack: "./scripts/localstack", diff --git a/package.json b/package.json index 0028a8aa..b277ebdd 100644 --- a/package.json +++ b/package.json @@ -115,9 +115,6 @@ {} ] }, - "testPathIgnorePatterns": [ - "/node_modules/" - ], "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", "/(test|src)/**/*(*.)@(spec|test).ts?(x)" @@ -131,6 +128,9 @@ "text" ], "coverageDirectory": "coverage", + "testPathIgnorePatterns": [ + "/node_modules/" + ], "watchPathIgnorePatterns": [ "/node_modules/" ], From 4cef4f95fdade4cf19137dbbbc8c5daaaf5e9e3a Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 15:23:08 -0500 Subject: [PATCH 096/107] do not hotswap on CI --- test/runtime.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/runtime.ts b/test/runtime.ts index 607642a5..bbb66ddf 100644 --- a/test/runtime.ts +++ b/test/runtime.ts @@ -336,7 +336,9 @@ export function runtimeTestSuite< Key: k, Value: v, })), - hotswap: true, + // hotswap uses the current user's role and not the bootstrapped role. + // the CI user does not have all of the right permissions. + hotswap: !process.env.CI, }) ); From af79de547fcc1df1d0feb024e46063f77b5ace7b Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 15:54:08 -0500 Subject: [PATCH 097/107] force exit --- .projen/tasks.json | 2 +- .projenrc.ts | 2 +- package.json | 4 ---- yarn.lock | 4 ++-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 2bf488e1..7dff93be 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -198,7 +198,7 @@ "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, { - "exec": "jest --passWithNoTests --all --no-cache --updateSnapshot" + "exec": "jest --passWithNoTests --all --no-cache --force-exit --updateSnapshot" }, { "spawn": "eslint" diff --git a/.projenrc.ts b/.projenrc.ts index 70783e83..6ce0faf5 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -146,7 +146,7 @@ const project = new CustomTypescriptProject({ "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, }, - extraCliOptions: ["--no-cache"], + extraCliOptions: ["--no-cache", "--force-exit"], }, scripts: { localstack: "./scripts/localstack", diff --git a/package.json b/package.json index b277ebdd..5c7d8943 100644 --- a/package.json +++ b/package.json @@ -145,10 +145,6 @@ ] }, "types": "lib/index.d.ts", - "resolutions": { - "@types/responselike": "1.0.0", - "got": "12.3.1" - }, "lint-staged": { "*.{tsx,jsx,ts,js,json,md,css}": [ "eslint --fix" diff --git a/yarn.lock b/yarn.lock index 10c18811..82f38345 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1868,7 +1868,7 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc" integrity sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A== -"@types/responselike@*", "@types/responselike@1.0.0", "@types/responselike@^1.0.0": +"@types/responselike@*", "@types/responselike@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.0.tgz#251f4fe7d154d2bad125abe1b429b23afd262e29" integrity sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA== @@ -4415,7 +4415,7 @@ globby@^11.0.4, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -got@12.3.1, got@^12.1.0: +got@^12.1.0: version "12.3.1" resolved "https://registry.yarnpkg.com/got/-/got-12.3.1.tgz#79d6ebc0cb8358c424165698ddb828be56e74684" integrity sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw== From 0f453dd8b4b9fbc7e4e7ce9dae6765d66ef96060 Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 16:16:52 -0500 Subject: [PATCH 098/107] trying more things --- .projen/tasks.json | 6 +++--- .projenrc.ts | 6 +++--- package.json | 4 ++++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 7dff93be..0677fbdb 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -85,7 +85,7 @@ "name": "compile", "description": "Only compile", "env": { - "NODE_OPTIONS": "--max-old-space-size=6144", + "NODE_OPTIONS": "--max-old-space-size=4096", "TEST_DEPLOY_TARGET": "AWS" }, "steps": [ @@ -191,14 +191,14 @@ "description": "Run tests", "env": { "TEST_DEPLOY_TARGET": "AWS", - "NODE_OPTIONS": "--max-old-space-size=6144" + "NODE_OPTIONS": "--max-old-space-size=4096" }, "steps": [ { "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, { - "exec": "jest --passWithNoTests --all --no-cache --force-exit --updateSnapshot" + "exec": "jest --passWithNoTests --all --no-cache --forceExit --updateSnapshot" }, { "spawn": "eslint" diff --git a/.projenrc.ts b/.projenrc.ts index 6ce0faf5..fadc6a2c 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -146,7 +146,7 @@ const project = new CustomTypescriptProject({ "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, }, - extraCliOptions: ["--no-cache", "--force-exit"], + extraCliOptions: ["--no-cache", "--forceExit"], }, scripts: { localstack: "./scripts/localstack", @@ -246,7 +246,7 @@ closeWorkflow?.addJob("cleanUp", cleanJob); project.compileTask.prependExec( "yarn link && cd ./test-app && yarn link functionless" ); -project.compileTask.env("NODE_OPTIONS", "--max-old-space-size=6144"); +project.compileTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); project.compileTask.env("TEST_DEPLOY_TARGET", "AWS"); project.compileTask.prependExec("ts-node ./scripts/sdk-gen.ts"); @@ -263,7 +263,7 @@ project.testTask.prependExec( // project.testTask.env("AWS_ACCESS_KEY_ID", "test"); // project.testTask.env("AWS_SECRET_ACCESS_KEY", "test"); project.testTask.env("TEST_DEPLOY_TARGET", "AWS"); -project.testTask.env("NODE_OPTIONS", "--max-old-space-size=6144"); +project.testTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); const testFast = project.addTask("test:fast"); testFast.exec(`jest --testPathIgnorePatterns localstack --coverage false`); diff --git a/package.json b/package.json index 5c7d8943..b277ebdd 100644 --- a/package.json +++ b/package.json @@ -145,6 +145,10 @@ ] }, "types": "lib/index.d.ts", + "resolutions": { + "@types/responselike": "1.0.0", + "got": "12.3.1" + }, "lint-staged": { "*.{tsx,jsx,ts,js,json,md,css}": [ "eslint --fix" From 1c2828a3a9c7c3b7f178e7610e4d00f0384bf36a Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 17:05:44 -0500 Subject: [PATCH 099/107] split test runs --- .projen/tasks.json | 5 ++++- .projenrc.ts | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 0677fbdb..c44d0cbb 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -198,7 +198,10 @@ "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, { - "exec": "jest --passWithNoTests --all --no-cache --forceExit --updateSnapshot" + "exec": "jest --passWithNoTests --all --updateSnapshot --testPathPattern '(localstack|runtime)'" + }, + { + "exec": "jest --passWithNoTests --all --testPathIgnorePatterns (runtime|localstack) --updateSnapshot" }, { "spawn": "eslint" diff --git a/.projenrc.ts b/.projenrc.ts index fadc6a2c..ea909e0f 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -146,7 +146,7 @@ const project = new CustomTypescriptProject({ "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, }, - extraCliOptions: ["--no-cache", "--forceExit"], + extraCliOptions: ["--testPathIgnorePatterns (runtime|localstack)"], }, scripts: { localstack: "./scripts/localstack", @@ -251,6 +251,10 @@ project.compileTask.env("TEST_DEPLOY_TARGET", "AWS"); project.compileTask.prependExec("ts-node ./scripts/sdk-gen.ts"); +project.testTask.prependExec( + "jest --passWithNoTests --all --updateSnapshot --testPathPattern '(localstack|runtime)'" +); + project.testTask.prependExec( "cd ./test-app && yarn && yarn build && yarn synth --quiet" ); From baba2db82074d62c7b5e946ca483a7fc358d03ef Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 17:30:29 -0500 Subject: [PATCH 100/107] switch test order --- .projen/tasks.json | 4 ++-- .projenrc.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index c44d0cbb..9ac4353a 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -198,7 +198,7 @@ "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, { - "exec": "jest --passWithNoTests --all --updateSnapshot --testPathPattern '(localstack|runtime)'" + "exec": "jest --passWithNoTests --all --updateSnapshot --testPathIgnorePatterns '(localstack|runtime)'" }, { "exec": "jest --passWithNoTests --all --testPathIgnorePatterns (runtime|localstack) --updateSnapshot" @@ -212,7 +212,7 @@ "name": "test:fast", "steps": [ { - "exec": "jest --testPathIgnorePatterns localstack --coverage false" + "exec": "jest --testPathPattern '(localstack|runtime)' --coverage false" } ] }, diff --git a/.projenrc.ts b/.projenrc.ts index ea909e0f..ccfe4e61 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -252,7 +252,7 @@ project.compileTask.env("TEST_DEPLOY_TARGET", "AWS"); project.compileTask.prependExec("ts-node ./scripts/sdk-gen.ts"); project.testTask.prependExec( - "jest --passWithNoTests --all --updateSnapshot --testPathPattern '(localstack|runtime)'" + "jest --passWithNoTests --all --updateSnapshot --testPathIgnorePatterns '(localstack|runtime)'" ); project.testTask.prependExec( @@ -270,7 +270,7 @@ project.testTask.env("TEST_DEPLOY_TARGET", "AWS"); project.testTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); const testFast = project.addTask("test:fast"); -testFast.exec(`jest --testPathIgnorePatterns localstack --coverage false`); +testFast.exec(`jest --testPathPattern '(localstack|runtime)' --coverage false`); project.addPackageIgnore("/test-app"); From 72ca8400de6e7dae682df989037f669419703979 Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 19:25:49 -0500 Subject: [PATCH 101/107] woops --- .projen/tasks.json | 2 +- .projenrc.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 9ac4353a..37e9229e 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -201,7 +201,7 @@ "exec": "jest --passWithNoTests --all --updateSnapshot --testPathIgnorePatterns '(localstack|runtime)'" }, { - "exec": "jest --passWithNoTests --all --testPathIgnorePatterns (runtime|localstack) --updateSnapshot" + "exec": "jest --passWithNoTests --all --testPathIgnorePatterns '(runtime|localstack)' --updateSnapshot" }, { "spawn": "eslint" diff --git a/.projenrc.ts b/.projenrc.ts index ccfe4e61..1975a324 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -146,7 +146,7 @@ const project = new CustomTypescriptProject({ "^.+\\.(t|j)sx?$": ["./jest.js", {}], }, }, - extraCliOptions: ["--testPathIgnorePatterns (runtime|localstack)"], + extraCliOptions: ["--testPathIgnorePatterns '(runtime|localstack)'"], }, scripts: { localstack: "./scripts/localstack", @@ -270,7 +270,7 @@ project.testTask.env("TEST_DEPLOY_TARGET", "AWS"); project.testTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); const testFast = project.addTask("test:fast"); -testFast.exec(`jest --testPathPattern '(localstack|runtime)' --coverage false`); +testFast.exec("jest --testPathPattern '(localstack|runtime)' --coverage false"); project.addPackageIgnore("/test-app"); From dbb2c8a0bb770ba8516484b4bf1e94fdfad18da9 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 16 Sep 2022 00:38:49 +0000 Subject: [PATCH 102/107] chore: self mutation Signed-off-by: github-actions --- yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn.lock b/yarn.lock index 82f38345..10c18811 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1868,7 +1868,7 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.0.tgz#ea03e9f0376a4446f44797ca19d9c46c36e352dc" integrity sha512-RI1L7N4JnW5gQw2spvL7Sllfuf1SaHdrZpCHiBlCXjIlufi1SMNnbu2teze3/QE67Fg2tBlH7W+mi4hVNk4p0A== -"@types/responselike@*", "@types/responselike@^1.0.0": +"@types/responselike@*", "@types/responselike@1.0.0", "@types/responselike@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.0.tgz#251f4fe7d154d2bad125abe1b429b23afd262e29" integrity sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA== @@ -4415,7 +4415,7 @@ globby@^11.0.4, globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -got@^12.1.0: +got@12.3.1, got@^12.1.0: version "12.3.1" resolved "https://registry.yarnpkg.com/got/-/got-12.3.1.tgz#79d6ebc0cb8358c424165698ddb828be56e74684" integrity sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw== From 8b464ff49c30d968fef70c3e14e4f0c60a99318c Mon Sep 17 00:00:00 2001 From: Sam Sussman Date: Thu, 15 Sep 2022 19:52:08 -0500 Subject: [PATCH 103/107] woops again --- .projen/tasks.json | 4 ++-- .projenrc.ts | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 37e9229e..fa911ea8 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -198,7 +198,7 @@ "exec": "cd ./test-app && yarn && yarn build && yarn synth --quiet" }, { - "exec": "jest --passWithNoTests --all --updateSnapshot --testPathIgnorePatterns '(localstack|runtime)'" + "exec": "jest --passWithNoTests --all --updateSnapshot --testPathPattern '(localstack|runtime)'" }, { "exec": "jest --passWithNoTests --all --testPathIgnorePatterns '(runtime|localstack)' --updateSnapshot" @@ -212,7 +212,7 @@ "name": "test:fast", "steps": [ { - "exec": "jest --testPathPattern '(localstack|runtime)' --coverage false" + "exec": "jest --testPathIgnorePatterns '(localstack|runtime)' --coverage false" } ] }, diff --git a/.projenrc.ts b/.projenrc.ts index 1975a324..d230a757 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -252,7 +252,7 @@ project.compileTask.env("TEST_DEPLOY_TARGET", "AWS"); project.compileTask.prependExec("ts-node ./scripts/sdk-gen.ts"); project.testTask.prependExec( - "jest --passWithNoTests --all --updateSnapshot --testPathIgnorePatterns '(localstack|runtime)'" + "jest --passWithNoTests --all --updateSnapshot --testPathPattern '(localstack|runtime)'" ); project.testTask.prependExec( @@ -270,7 +270,9 @@ project.testTask.env("TEST_DEPLOY_TARGET", "AWS"); project.testTask.env("NODE_OPTIONS", "--max-old-space-size=4096"); const testFast = project.addTask("test:fast"); -testFast.exec("jest --testPathPattern '(localstack|runtime)' --coverage false"); +testFast.exec( + "jest --testPathIgnorePatterns '(localstack|runtime)' --coverage false" +); project.addPackageIgnore("/test-app"); From 44c031aa0d066a7e176bd5f5e2daf6c7c4baaa38 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 16 Sep 2022 18:48:28 +0000 Subject: [PATCH 104/107] chore: self mutation Signed-off-by: github-actions --- .../serialize-closure.test.ts.snap | 146 +++++++++--------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/test/__snapshots__/serialize-closure.test.ts.snap b/test/__snapshots__/serialize-closure.test.ts.snap index f09e152e..814c0aba 100644 --- a/test/__snapshots__/serialize-closure.test.ts.snap +++ b/test/__snapshots__/serialize-closure.test.ts.snap @@ -396,11 +396,11 @@ return [a,...b,]; } const asyncArrowExpr=async () => { -return \\"asyncArrowExpr\\"; +return "asyncArrowExpr"; } async function asyncFuncDecl(){ -return \\"asyncFuncDecl\\"; +return "asyncFuncDecl"; } function funcDecl(a,...b){ @@ -416,16 +416,16 @@ return [a,...b,]; } const asyncFuncExpr=async function asyncFuncExpr(){ -return \\"asyncFuncExpr\\"; +return "asyncFuncExpr"; } const anonAsyncFuncExpr=async function (){ -return \\"anonAsyncFuncExpr\\"; +return "anonAsyncFuncExpr"; } let getterSetterVal -const obj={prop:\\"prop\\",getProp(){ -return this.prop + \\" 1\\"; +const obj={prop:"prop",getProp(){ +return this.prop + " 1"; } ,get getterSetter(){ return getterSetterVal; @@ -434,12 +434,12 @@ return getterSetterVal; getterSetterVal = val; } } -const {a,b:c,d:[e],f=\\"f\\"}={a:\\"a\\",b:\\"b\\",d:[\\"e\\",]} -obj.getterSetter = \\"getterSetter\\"; +const {a,b:c,d:[e],f="f"}={a:"a",b:"b",d:["e",]} +obj.getterSetter = "getterSetter"; class Foo{ -static VAL = \\"VAL\\" +static VAL = "VAL" static { -Foo.VAL = \\"VAL 1\\"; +Foo.VAL = "VAL 1"; this.VAL = \`\${this.VAL} 2\`; } @@ -454,14 +454,14 @@ return \`\${this.prop} \${this.val} \${Foo.VAL}\`; async asyncMethod(){ const result=await new v1((resolve) => { -return resolve(\\"asyncResult\\"); +return resolve("asyncResult"); } ,) return result; } *generatorMethod(){ -yield \\"yielded item\\"; +yield "yielded item"; yield* generatorFuncDecl(); yield* generatorFuncExpr(); yield* anonGeneratorFuncExpr(); @@ -469,20 +469,20 @@ yield* anonGeneratorFuncExpr(); } function *generatorFuncDecl(){ -yield \\"yielded in function decl\\"; +yield "yielded in function decl"; } const generatorFuncExpr=function *generatorFuncExpr(){ -yield \\"yielded in function expr\\"; +yield "yielded in function expr"; } const anonGeneratorFuncExpr=function *(){ -yield \\"yielded in anonymous function expr\\"; +yield "yielded in anonymous function expr"; } class Bar extends Foo{ constructor(){ -super(\\"bar prop\\",\\"bar val\\"); +super("bar prop","bar val"); } method(){ @@ -490,38 +490,38 @@ return \`bar \${super.method()}\`; } } -const foo=new Foo(\\"foo prop\\",\\"foo val\\",) +const foo=new Foo("foo prop","foo val",) const bar=new Bar() const generator=foo.generatorMethod() function ifTest(condition){ if (condition === 0){ -return \\"if\\"; +return "if"; } else if (condition === 1){ -return \\"else if\\"; +return "else if"; } else { -return \\"else\\"; +return "else"; } } const whileStmts=[] while (whileStmts.length === 0){ -whileStmts.push(\\"while block\\"); +whileStmts.push("while block"); } while (whileStmts.length === 1){ -whileStmts.push(\\"while stmt\\"); +whileStmts.push("while stmt"); } const doWhileStmts=[] do{ -doWhileStmts.push(\\"do while block\\"); +doWhileStmts.push("do while block"); } while (doWhileStmts.length === 0); do{ -doWhileStmts.push(\\"do while stmt\\"); +doWhileStmts.push("do while stmt"); } while (doWhileStmts.length === 1); const whileTrue=[] @@ -536,46 +536,46 @@ break; const tryCatchErr=[] try { -tryCatchErr.push(\\"try\\"); -throw new v3(\\"catch\\",); +tryCatchErr.push("try"); +throw new v3("catch",); } catch(err){ tryCatchErr.push(err.message); } finally { -tryCatchErr.push(\\"finally\\"); +tryCatchErr.push("finally"); } const tryCatch=[] try { -tryCatch.push(\\"try 2\\"); -throw new v3(\\"\\",); +tryCatch.push("try 2"); +throw new v3("",); } catch{ -tryCatch.push(\\"catch 2\\"); +tryCatch.push("catch 2"); } finally { -tryCatch.push(\\"finally 2\\"); +tryCatch.push("finally 2"); } const tryNoFinally=[] try { -tryNoFinally.push(\\"try 3\\"); -throw new v3(\\"\\",); +tryNoFinally.push("try 3"); +throw new v3("",); } catch{ -tryNoFinally.push(\\"catch 3\\"); +tryNoFinally.push("catch 3"); } const tryNoCatch=[] try { (() => { try { -tryNoCatch.push(\\"try 4\\"); -throw new v3(\\"\\",); +tryNoCatch.push("try 4"); +throw new v3("",); } finally { -tryNoCatch.push(\\"finally 4\\"); +tryNoCatch.push("finally 4"); } } @@ -584,16 +584,16 @@ tryNoCatch.push(\\"finally 4\\"); catch{ } -const deleteObj={notDeleted:\\"value\\",prop:\\"prop\\",\\"spaces prop\\":\\"spaces prop\\",[v5.for(\\"prop\\")]:\\"symbol prop\\"} +const deleteObj={notDeleted:"value",prop:"prop","spaces prop":"spaces prop",[v5.for("prop")]:"symbol prop"} delete deleteObj.prop;; -delete deleteObj[\\"spaces prop\\"];; -delete deleteObj[v5.for(\\"prop\\")];; +delete deleteObj["spaces prop"];; +delete deleteObj[v5.for("prop")];; const regex=/a.*/g let unicode { var HECOMḚṮH=42 -const _=\\"___\\" -const $=\\"$$\\" +const _="___" +const $="$$" const ƒ={π:v7.PI,ø:[],Ø:v9,e:2.718281828459045,root2:2.718281828459045,α:2.5029,δ:4.6692,ζ:1.2020569,φ:1.61803398874,γ:1.30357,K:2.685452001,oo:Infinity * Infinity,A:1.2824271291,C10:0.12345678910111213,c:299792458} unicode = {ƒ:ƒ,out:\`\${HECOMḚṮH}\${_}\${$}\`}; } @@ -604,55 +604,55 @@ function tag(strings,...args){ return \`tag \${strings.map((str,i) => { return \`\${str} \${args[i]}\`; } -).join(\\"|\\")}\`; +).join("|")}\`; } const noSubstitutionTemplateLiteral=\`hello world\` -const {head,...rest}={head:\\"head\\",rest1:\\"rest1\\",rest2:\\"rest2\\"} -const [head2,...rest2]=[\\"head array\\",\\"rest array1\\",\\"rest array2\\",] +const {head,...rest}={head:"head",rest1:"rest1",rest2:"rest2"} +const [head2,...rest2]=["head array","rest array1","rest array2",] const binary=true && false const fooInstanceOf=foo instanceof Foo -const condition=binary ? \\"condition true\\" : \\"condition false\\" +const condition=binary ? "condition true" : "condition false" let switchDefault switch (0) { -case 1:switchDefault = \\"switchCase\\"; +case 1:switchDefault = "switchCase"; break; default: -switchDefault = \\"switchDefault\\"; +switchDefault = "switchDefault"; } let switchCase switch (0) { -case 0:switchCase = \\"switchCase\\"; +case 0:switchCase = "switchCase"; break; default: -switchDefault = \\"switchDefault\\"; +switchDefault = "switchDefault"; } let num=0 -const str=\\"hello\\" +const str="hello" const typeOf=typeof str const array=[1,2,] -const object={key:\\"value\\"} -const key=\\"key\\" +const object={key:"value"} +const key="key" const element=object[key] const unary=!str const postfix=num++ const prefix=++num const binaryOp=(num += 1) debugger; -return [...arrowExpr(\\"a\\",\\"b\\",\\"c\\"),...arrowBlockExpr(\\"A\\",\\"B\\",\\"C\\"),...funcDecl(\\"d\\",\\"e\\",\\"f\\"),...funcExpr(\\"g\\",\\"h\\",\\"i\\"),...anonFuncExpr(\\"j\\",\\"k\\",\\"l\\"),await asyncArrowExpr(),await asyncFuncDecl(),await asyncFuncExpr(),await anonAsyncFuncExpr(),obj.prop,obj.getProp(),obj.getterSetter,a,c,e,f,(() => { -return \\"foo\\"; +return [...arrowExpr("a","b","c"),...arrowBlockExpr("A","B","C"),...funcDecl("d","e","f"),...funcExpr("g","h","i"),...anonFuncExpr("j","k","l"),await asyncArrowExpr(),await asyncFuncDecl(),await asyncFuncExpr(),await anonAsyncFuncExpr(),obj.prop,obj.getProp(),obj.getterSetter,a,c,e,f,(() => { +return "foo"; } )(),(function (){ -return \\"bar\\"; +return "bar"; } )(),(function baz(){ -return \\"baz\\"; +return "baz"; } -)(),foo.method(),bar.method(),await foo.asyncMethod(),generator.next().value,generator.next().value,generator.next().value,generator.next().value,ifTest(0),ifTest(1),ifTest(2),...whileStmts,...doWhileStmts,...whileTrue,...tryCatchErr,...tryCatch,...tryNoFinally,...tryNoCatch,deleteObj,regex.test(\\"abc\\"),unicode,homecometh,parens,tag\`\${1} + \${2} + \${3}\`,noSubstitutionTemplateLiteral,typeof \\"hello world\\",void 0,rest,head2,rest2,binary,fooInstanceOf,condition,switchDefault,switchCase,typeOf,array,element,unary,postfix,prefix,binaryOp,]; +)(),foo.method(),bar.method(),await foo.asyncMethod(),generator.next().value,generator.next().value,generator.next().value,generator.next().value,ifTest(0),ifTest(1),ifTest(2),...whileStmts,...doWhileStmts,...whileTrue,...tryCatchErr,...tryCatch,...tryNoFinally,...tryNoCatch,deleteObj,regex.test("abc"),unicode,homecometh,parens,tag\`\${1} + \${2} + \${3}\`,noSubstitutionTemplateLiteral,typeof "hello world",void 0,rest,head2,rest2,binary,fooInstanceOf,condition,switchDefault,switchCase,typeOf,array,element,unary,postfix,prefix,binaryOp,]; } ; exports.handler = v0 @@ -662,7 +662,7 @@ exports.handler = v0 exports[`instantiating the AWS SDK 1`] = ` "var v0; -const v2 = require(\\"aws-sdk\\"); +const v2 = require("aws-sdk"); var v1 = v2; v0 = () => { const client=new v1.DynamoDB() @@ -676,7 +676,7 @@ exports.handler = v0 exports[`instantiating the AWS SDK v3 1`] = ` "var v0; -const v2 = require(\\"@aws-sdk/client-dynamodb\\"); +const v2 = require("@aws-sdk/client-dynamodb"); const v3 = v2.DynamoDBClient; var v1 = v3; v0 = () => { @@ -692,7 +692,7 @@ exports.handler = v0 exports[`serialize a bound function 1`] = ` "var v0; const v2 = {}; -v2.prop = \\"hello\\"; +v2.prop = "hello"; const v3 = []; var v4; v4 = function foo(){ @@ -814,7 +814,7 @@ return \`\${super.method()}!\`; }; const v5 = Object.create(v2.prototype); -v5.value = \\"world\\"; +v5.value = "world"; var v1 = v5; v0 = () => { return v1.method(); @@ -871,7 +871,7 @@ return \`hello \${this.value}\`; }; const v3 = Object.create(v2.prototype); -v3.value = \\"world\\"; +v3.value = "world"; var v1 = v3; v0 = () => { return v1.method(); @@ -896,7 +896,7 @@ const v4 = function get(){ return (v3 += 2); } -Object.defineProperty(v2.prototype,\\"method\\",{get : v4,}); +Object.defineProperty(v2.prototype,"method",{get : v4,}); var v1 = v2; v0 = () => { const foo=new v1() @@ -932,7 +932,7 @@ const v5 = function set(val){ v3 += val + 1; } -Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : v5,}); +Object.defineProperty(v2.prototype,"method",{get : v4,set : v5,}); var v1 = v2; v0 = () => { const foo=new v1() @@ -964,7 +964,7 @@ const v4 = function get(){ return v3 + 1; } -Object.defineProperty(v2.prototype,\\"method\\",{get : v4,set : Object.getOwnPropertyDescriptor(v2.prototype,\\"method\\").set,}); +Object.defineProperty(v2.prototype,"method",{get : v4,set : Object.getOwnPropertyDescriptor(v2.prototype,"method").set,}); var v1 = v2; v0 = () => { const foo=new v1() @@ -1058,7 +1058,7 @@ const v4 = function set(val){ v3 += val + 1; } -Object.defineProperty(v2.prototype,\\"method\\",{set : v4,}); +Object.defineProperty(v2.prototype,"method",{set : v4,}); var v1 = v2; v0 = () => { const foo=new v1() @@ -1150,7 +1150,7 @@ exports.handler = v0 exports[`serialize a proxy 1`] = ` "var v0; const v2 = {}; -v2.value = \\"hello\\"; +v2.value = "hello"; const v3 = {}; var v4; v4 = (self,name) => { @@ -1172,7 +1172,7 @@ exports.handler = v0 exports[`serialize a this reference in an object literal 1`] = ` "var v0; const v2 = {}; -v2.prop = \\"prop\\"; +v2.prop = "prop"; const v3 = function get(){ return this.prop; } @@ -1191,7 +1191,7 @@ exports.handler = v0 exports[`serialize an imported module 1`] = ` "var v0; v0 = function isNode(a){ -return typeof a?.kind === \\"number\\"; +return typeof a?.kind === "number"; } ; v0.prototype = v0.prototype; @@ -1228,8 +1228,8 @@ const v4 = {}; v3.cache = v4; var v1 = v3; v0 = () => { -return v1.getOrInit({key:\\"key\\",init:() => { -return \\"value\\"; +return v1.getOrInit({key:"key",init:() => { +return "value"; } }); } @@ -1244,7 +1244,7 @@ exports[`thrown errors map back to source 1`] = ` const v2 = Error; var v1 = v2; v0 = () => { -throw new v1(\\"oops\\",); +throw new v1("oops",); } ; exports.handler = v0 From ed235791adfe274e64523a0e957bf1bd525a6c68 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 14 Sep 2022 21:06:48 -0700 Subject: [PATCH 105/107] chore: rename SerializerImpl enums to V1 and V2 --- src/function.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/function.ts b/src/function.ts index cd615c1c..30897fbc 100644 --- a/src/function.ts +++ b/src/function.ts @@ -519,7 +519,7 @@ export enum SerializerImpl { * * @see https://github.com/functionless/nodejs-closure-serializer */ - STABLE_DEBUGGER, + V1, /** * A new experimental serializer that makes use of Functionless's SWC AST * reflection library that decorates syntax for use at runtime. @@ -529,7 +529,8 @@ export enum SerializerImpl { * * @see https://www.npmjs.com/package/@functionless/ast-reflection */ - EXPERIMENTAL_SWC, + V2, + Default = V1, } const PromisesSymbol = Symbol.for("functionless.Function.promises"); @@ -543,13 +544,15 @@ export interface FunctionProps * Whether to generate source maps for serialized closures and * to set --enableSourceMaps on NODE_OPTIONS environment variable. * - * Only supported when using {@link SerializerImpl.EXPERIMENTAL_SWC}. + * Only supported when using {@link SerializerImpl.V2}. * * @default true */ sourceMaps?: boolean; /** * Which {@link SerializerImpl} to use when serializing closures. + * + * @default {@link SerializerImpl.V1} */ serializer?: SerializerImpl; /** @@ -736,13 +739,12 @@ export class Function< // Start serializing process, add the callback to the promises so we can later ensure completion Function.promises.push( (async () => { - const serializerImpl = - props?.serializer ?? SerializerImpl.EXPERIMENTAL_SWC; + const serializerImpl = props?.serializer ?? SerializerImpl.Default; const sourceMaps = props?.sourceMaps ?? // if using SWC serializer, enable source maps by default // otherwise disable by default - (serializerImpl === SerializerImpl.EXPERIMENTAL_SWC ? true : false); + (serializerImpl === SerializerImpl.V2 ? true : false); try { await callbackLambdaCode.generate( nativeIntegrationsPrewarm, @@ -977,7 +979,7 @@ interface TokenContext { export async function serialize( func: AnyAsyncFunction, integrationPrewarms: NativeIntegration["preWarm"][], - serializerImpl: SerializerImpl = SerializerImpl.STABLE_DEBUGGER, + serializerImpl: SerializerImpl = SerializerImpl.V1, props?: PrewarmProps ): Promise<[string, TokenContext[]]> { let tokens: string[] = []; @@ -987,7 +989,7 @@ export async function serialize( const preWarms = integrationPrewarms; const result = - serializerImpl === SerializerImpl.EXPERIMENTAL_SWC + serializerImpl === SerializerImpl.V2 ? serializeCodeWithSourceMap( serializeClosure( integrationPrewarms.length > 0 From 3d5b13ff78ab692700ef1a5fed7e5b1064783a42 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 16 Sep 2022 12:10:20 -0700 Subject: [PATCH 106/107] fix: use default serializer in function.ts/serialize --- src/function.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function.ts b/src/function.ts index 30897fbc..e97fb8e3 100644 --- a/src/function.ts +++ b/src/function.ts @@ -979,7 +979,7 @@ interface TokenContext { export async function serialize( func: AnyAsyncFunction, integrationPrewarms: NativeIntegration["preWarm"][], - serializerImpl: SerializerImpl = SerializerImpl.V1, + serializerImpl: SerializerImpl = SerializerImpl.Default, props?: PrewarmProps ): Promise<[string, TokenContext[]]> { let tokens: string[] = []; From 1a98a9645f1e6a25c4b4b6532ec4622e5b4758c6 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 16 Sep 2022 12:10:29 -0700 Subject: [PATCH 107/107] chore: fix settings.json --- .vscode/settings.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8603516f..795aee42 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -39,10 +39,7 @@ "editor.insertSpaces": true, "editor.formatOnSave": true, "eslint.format.enable": false, - "typescript.tsdk": "node_modules/typescript/lib", "jest.jestCommandLine": "node_modules/.bin/jest", - "jest.autoRun": { - "onStartup": [] - }, + "jest.autoRun": "off", "cSpell.words": ["localstack", "stepfunctions", "typesafe"] }