@ampless/mcp-server 1.0.0-alpha.11 → 1.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/dist/{chunk-IW52OUIR.js → chunk-6HZB2ZCT.js} +13 -13
- package/dist/{chunk-6OXXSXKN.js → chunk-7JQMGUAU.js} +9 -9
- package/dist/{chunk-3NCQATCK.js → chunk-ERHOBKHD.js} +7 -501
- package/dist/{chunk-YHHXORQ4.js → chunk-ETWWJEHN.js} +17 -17
- package/dist/{chunk-A4YPJIDF.js → chunk-FLMNALC3.js} +3 -3
- package/dist/{chunk-QBXY5RRO.js → chunk-FM7TW5TD.js} +1 -2
- package/dist/chunk-LD7M476A.js +502 -0
- package/dist/{chunk-ISXSZYT4.js → chunk-OBZN5IWW.js} +32 -32
- package/dist/{chunk-UMEQ5ALV.js → chunk-Q4OVSLY4.js} +2 -2
- package/dist/{chunk-5PA6IP7O.js → chunk-SPCUAJQT.js} +1 -1
- package/dist/{chunk-CVNCRUML.js → chunk-USNYVOYF.js} +114 -47
- package/dist/chunk-YR5GD2D7.js +165 -0
- package/dist/{dist-es-J4X5E4TX.js → dist-es-2B6UPU6D.js} +22 -22
- package/dist/{dist-es-PRQWND46.js → dist-es-4QBVIVDD.js} +3 -3
- package/dist/{dist-es-3P7CNKGV.js → dist-es-DAQMEDLM.js} +8 -8
- package/dist/{dist-es-OI6XP2CN.js → dist-es-DWVRWSTC.js} +6 -6
- package/dist/{dist-es-OKPWYZO7.js → dist-es-H7Y5BZEG.js} +16 -16
- package/dist/{dist-es-T6J3WJJK.js → dist-es-QZOTLLWC.js} +1 -1
- package/dist/{dist-es-OO5RVJZO.js → dist-es-S3US4EVE.js} +6 -6
- package/dist/{event-streams-WFL2DK34.js → event-streams-IEZDQ3X3.js} +2 -1
- package/dist/event-streams-R54SMYED.js +891 -0
- package/dist/index.js +119 -116
- package/dist/{loadSso-C2Y2WOQK.js → loadSso-B4NUZPX5.js} +21 -20
- package/dist/{signin-IY5CLTYR.js → signin-BEDHRSJ2.js} +23 -22
- package/dist/{sso-oidc-KZTDOR7Y.js → sso-oidc-UXLRODTA.js} +23 -22
- package/dist/{sts-2UABQZ6D.js → sts-3BBU2O3O.js} +29 -28
- package/package.json +6 -6
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
collectBodyString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q4OVSLY4.js";
|
|
5
5
|
import {
|
|
6
6
|
ProtocolLib,
|
|
7
7
|
SerdeContextConfig,
|
|
8
8
|
UnionSerde
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-USNYVOYF.js";
|
|
10
10
|
import {
|
|
11
11
|
HttpBindingProtocol,
|
|
12
12
|
HttpInterceptingShapeDeserializer,
|
|
13
13
|
HttpInterceptingShapeSerializer,
|
|
14
14
|
NormalizedSchema,
|
|
15
15
|
determineTimestampFormat
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FM7TW5TD.js";
|
|
17
17
|
import {
|
|
18
18
|
LazyJsonString,
|
|
19
19
|
NumericValue,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
toBase64
|
|
27
27
|
} from "./chunk-IKXKDSVH.js";
|
|
28
28
|
|
|
29
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
29
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
|
|
30
30
|
function jsonReviver(key, value, context) {
|
|
31
31
|
if (context?.source) {
|
|
32
32
|
const numericString = context.source;
|
|
@@ -44,7 +44,7 @@ function jsonReviver(key, value, context) {
|
|
|
44
44
|
return value;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
47
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
|
|
48
48
|
var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
49
49
|
if (encoded.length) {
|
|
50
50
|
try {
|
|
@@ -61,7 +61,7 @@ var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, conte
|
|
|
61
61
|
return {};
|
|
62
62
|
});
|
|
63
63
|
var findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
64
|
-
var sanitizeErrorCode = (rawValue
|
|
64
|
+
var sanitizeErrorCode = (rawValue) => {
|
|
65
65
|
let cleanValue = rawValue;
|
|
66
66
|
if (typeof cleanValue === "number") {
|
|
67
67
|
cleanValue = cleanValue.toString();
|
|
@@ -72,40 +72,40 @@ var sanitizeErrorCode = (rawValue, removeNamespace = true) => {
|
|
|
72
72
|
if (cleanValue.indexOf(":") >= 0) {
|
|
73
73
|
cleanValue = cleanValue.split(":")[0];
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
75
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
76
76
|
cleanValue = cleanValue.split("#")[1];
|
|
77
77
|
}
|
|
78
78
|
return cleanValue;
|
|
79
79
|
};
|
|
80
80
|
var loadRestJsonErrorCode = (output, data) => {
|
|
81
|
-
return loadErrorCode(output, data,
|
|
81
|
+
return loadErrorCode(output, data, ["header", "code", "type"]);
|
|
82
82
|
};
|
|
83
|
-
var loadErrorCode = ({ headers }, data,
|
|
83
|
+
var loadErrorCode = ({ headers }, data, order) => {
|
|
84
84
|
while (order.length > 0) {
|
|
85
85
|
const location = order.shift();
|
|
86
86
|
switch (location) {
|
|
87
87
|
case "header":
|
|
88
88
|
const headerKey = findKey(headers ?? {}, "x-amzn-errortype");
|
|
89
89
|
if (headerKey !== void 0) {
|
|
90
|
-
return sanitizeErrorCode(headers[headerKey]
|
|
90
|
+
return sanitizeErrorCode(headers[headerKey]);
|
|
91
91
|
}
|
|
92
92
|
break;
|
|
93
93
|
case "code":
|
|
94
94
|
const codeKey = findKey(data ?? {}, "code");
|
|
95
95
|
if (codeKey && data[codeKey] !== void 0) {
|
|
96
|
-
return sanitizeErrorCode(data[codeKey]
|
|
96
|
+
return sanitizeErrorCode(data[codeKey]);
|
|
97
97
|
}
|
|
98
98
|
break;
|
|
99
99
|
case "type":
|
|
100
100
|
if (data?.__type !== void 0) {
|
|
101
|
-
return sanitizeErrorCode(data.__type
|
|
101
|
+
return sanitizeErrorCode(data.__type);
|
|
102
102
|
}
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
108
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
|
|
109
109
|
var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
110
110
|
settings;
|
|
111
111
|
constructor(settings) {
|
|
@@ -247,7 +247,7 @@ var JsonShapeDeserializer = class extends SerdeContextConfig {
|
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
250
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js
|
|
251
251
|
var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
|
|
252
252
|
var JsonReplacer = class {
|
|
253
253
|
values = /* @__PURE__ */ new Map();
|
|
@@ -294,7 +294,7 @@ var JsonReplacer = class {
|
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
297
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js
|
|
298
298
|
var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
299
299
|
settings;
|
|
300
300
|
buffer;
|
|
@@ -468,7 +468,7 @@ var JsonShapeSerializer = class extends SerdeContextConfig {
|
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
471
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js
|
|
472
472
|
var JsonCodec = class extends SerdeContextConfig {
|
|
473
473
|
settings;
|
|
474
474
|
constructor(settings) {
|
|
@@ -487,7 +487,7 @@ var JsonCodec = class extends SerdeContextConfig {
|
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
|
|
490
|
-
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.
|
|
490
|
+
// ../../node_modules/.pnpm/@aws-sdk+core@3.974.13/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js
|
|
491
491
|
var AwsRestJsonProtocol = class extends HttpBindingProtocol {
|
|
492
492
|
serializer;
|
|
493
493
|
deserializer;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
setCredentialFeature
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OBZN5IWW.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FM7TW5TD.js";
|
|
8
8
|
|
|
9
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.
|
|
9
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-env@3.972.39/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
10
10
|
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
11
11
|
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
12
12
|
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
@@ -2175,7 +2175,7 @@ var HttpProtocol = class extends SerdeContext {
|
|
|
2175
2175
|
});
|
|
2176
2176
|
}
|
|
2177
2177
|
async loadEventStreamCapability() {
|
|
2178
|
-
const { EventStreamSerde } = await import("./event-streams-
|
|
2178
|
+
const { EventStreamSerde } = await import("./event-streams-IEZDQ3X3.js");
|
|
2179
2179
|
return new EventStreamSerde({
|
|
2180
2180
|
marshaller: this.getEventStreamMarshaller(),
|
|
2181
2181
|
serializer: this.serializer,
|
|
@@ -3541,7 +3541,6 @@ export {
|
|
|
3541
3541
|
getHttpHandlerExtensionConfiguration,
|
|
3542
3542
|
resolveHttpHandlerRuntimeConfig,
|
|
3543
3543
|
getContentLengthPlugin,
|
|
3544
|
-
escapeUri,
|
|
3545
3544
|
buildQueryString,
|
|
3546
3545
|
parseUrl,
|
|
3547
3546
|
NormalizedSchema,
|
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
4
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) {
|
|
6
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
7
|
+
resolve(value);
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
11
|
+
function fulfilled(value) {
|
|
12
|
+
try {
|
|
13
|
+
step(generator.next(value));
|
|
14
|
+
} catch (e) {
|
|
15
|
+
reject(e);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function rejected(value) {
|
|
19
|
+
try {
|
|
20
|
+
step(generator["throw"](value));
|
|
21
|
+
} catch (e) {
|
|
22
|
+
reject(e);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function step(result) {
|
|
26
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
27
|
+
}
|
|
28
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function __generator(thisArg, body) {
|
|
32
|
+
var _ = { label: 0, sent: function() {
|
|
33
|
+
if (t[0] & 1) throw t[1];
|
|
34
|
+
return t[1];
|
|
35
|
+
}, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
36
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
37
|
+
return this;
|
|
38
|
+
}), g;
|
|
39
|
+
function verb(n) {
|
|
40
|
+
return function(v) {
|
|
41
|
+
return step([n, v]);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function step(op) {
|
|
45
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
46
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
47
|
+
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;
|
|
48
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
49
|
+
switch (op[0]) {
|
|
50
|
+
case 0:
|
|
51
|
+
case 1:
|
|
52
|
+
t = op;
|
|
53
|
+
break;
|
|
54
|
+
case 4:
|
|
55
|
+
_.label++;
|
|
56
|
+
return { value: op[1], done: false };
|
|
57
|
+
case 5:
|
|
58
|
+
_.label++;
|
|
59
|
+
y = op[1];
|
|
60
|
+
op = [0];
|
|
61
|
+
continue;
|
|
62
|
+
case 7:
|
|
63
|
+
op = _.ops.pop();
|
|
64
|
+
_.trys.pop();
|
|
65
|
+
continue;
|
|
66
|
+
default:
|
|
67
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
68
|
+
_ = 0;
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
72
|
+
_.label = op[1];
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
76
|
+
_.label = t[1];
|
|
77
|
+
t = op;
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
if (t && _.label < t[2]) {
|
|
81
|
+
_.label = t[2];
|
|
82
|
+
_.ops.push(op);
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
if (t[2]) _.ops.pop();
|
|
86
|
+
_.trys.pop();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
op = body.call(thisArg, _);
|
|
90
|
+
} catch (e) {
|
|
91
|
+
op = [6, e];
|
|
92
|
+
y = 0;
|
|
93
|
+
} finally {
|
|
94
|
+
f = t = 0;
|
|
95
|
+
}
|
|
96
|
+
if (op[0] & 5) throw op[1];
|
|
97
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function __values(o) {
|
|
101
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
102
|
+
if (m) return m.call(o);
|
|
103
|
+
if (o && typeof o.length === "number") return {
|
|
104
|
+
next: function() {
|
|
105
|
+
if (o && i >= o.length) o = void 0;
|
|
106
|
+
return { value: o && o[i++], done: !o };
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// ../../node_modules/.pnpm/@smithy+util-buffer-from@2.2.0/node_modules/@smithy/util-buffer-from/dist-es/index.js
|
|
113
|
+
import { Buffer as Buffer2 } from "buffer";
|
|
114
|
+
var fromString = (input, encoding) => {
|
|
115
|
+
if (typeof input !== "string") {
|
|
116
|
+
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
117
|
+
}
|
|
118
|
+
return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
// ../../node_modules/.pnpm/@smithy+util-utf8@2.3.0/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
|
|
122
|
+
var fromUtf8 = (input) => {
|
|
123
|
+
const buf = fromString(input, "utf8");
|
|
124
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// ../../node_modules/.pnpm/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/convertToBuffer.js
|
|
128
|
+
var fromUtf82 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
|
|
129
|
+
return Buffer.from(input, "utf8");
|
|
130
|
+
} : fromUtf8;
|
|
131
|
+
function convertToBuffer(data) {
|
|
132
|
+
if (data instanceof Uint8Array)
|
|
133
|
+
return data;
|
|
134
|
+
if (typeof data === "string") {
|
|
135
|
+
return fromUtf82(data);
|
|
136
|
+
}
|
|
137
|
+
if (ArrayBuffer.isView(data)) {
|
|
138
|
+
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
139
|
+
}
|
|
140
|
+
return new Uint8Array(data);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// ../../node_modules/.pnpm/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/isEmptyData.js
|
|
144
|
+
function isEmptyData(data) {
|
|
145
|
+
if (typeof data === "string") {
|
|
146
|
+
return data.length === 0;
|
|
147
|
+
}
|
|
148
|
+
return data.byteLength === 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// ../../node_modules/.pnpm/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/numToUint8.js
|
|
152
|
+
function numToUint8(num) {
|
|
153
|
+
return new Uint8Array([
|
|
154
|
+
(num & 4278190080) >> 24,
|
|
155
|
+
(num & 16711680) >> 16,
|
|
156
|
+
(num & 65280) >> 8,
|
|
157
|
+
num & 255
|
|
158
|
+
]);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ../../node_modules/.pnpm/@aws-crypto+util@5.2.0/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js
|
|
162
|
+
function uint32ArrayFrom(a_lookUpTable2) {
|
|
163
|
+
if (!Uint32Array.from) {
|
|
164
|
+
var return_array = new Uint32Array(a_lookUpTable2.length);
|
|
165
|
+
var a_index = 0;
|
|
166
|
+
while (a_index < a_lookUpTable2.length) {
|
|
167
|
+
return_array[a_index] = a_lookUpTable2[a_index];
|
|
168
|
+
a_index += 1;
|
|
169
|
+
}
|
|
170
|
+
return return_array;
|
|
171
|
+
}
|
|
172
|
+
return Uint32Array.from(a_lookUpTable2);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// ../../node_modules/.pnpm/@aws-crypto+crc32@5.2.0/node_modules/@aws-crypto/crc32/build/module/aws_crc32.js
|
|
176
|
+
var AwsCrc32 = (
|
|
177
|
+
/** @class */
|
|
178
|
+
(function() {
|
|
179
|
+
function AwsCrc322() {
|
|
180
|
+
this.crc32 = new Crc32();
|
|
181
|
+
}
|
|
182
|
+
AwsCrc322.prototype.update = function(toHash) {
|
|
183
|
+
if (isEmptyData(toHash))
|
|
184
|
+
return;
|
|
185
|
+
this.crc32.update(convertToBuffer(toHash));
|
|
186
|
+
};
|
|
187
|
+
AwsCrc322.prototype.digest = function() {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function() {
|
|
189
|
+
return __generator(this, function(_a) {
|
|
190
|
+
return [2, numToUint8(this.crc32.digest())];
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
AwsCrc322.prototype.reset = function() {
|
|
195
|
+
this.crc32 = new Crc32();
|
|
196
|
+
};
|
|
197
|
+
return AwsCrc322;
|
|
198
|
+
})()
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
// ../../node_modules/.pnpm/@aws-crypto+crc32@5.2.0/node_modules/@aws-crypto/crc32/build/module/index.js
|
|
202
|
+
var Crc32 = (
|
|
203
|
+
/** @class */
|
|
204
|
+
(function() {
|
|
205
|
+
function Crc322() {
|
|
206
|
+
this.checksum = 4294967295;
|
|
207
|
+
}
|
|
208
|
+
Crc322.prototype.update = function(data) {
|
|
209
|
+
var e_1, _a;
|
|
210
|
+
try {
|
|
211
|
+
for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
|
|
212
|
+
var byte = data_1_1.value;
|
|
213
|
+
this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255];
|
|
214
|
+
}
|
|
215
|
+
} catch (e_1_1) {
|
|
216
|
+
e_1 = { error: e_1_1 };
|
|
217
|
+
} finally {
|
|
218
|
+
try {
|
|
219
|
+
if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
|
|
220
|
+
} finally {
|
|
221
|
+
if (e_1) throw e_1.error;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return this;
|
|
225
|
+
};
|
|
226
|
+
Crc322.prototype.digest = function() {
|
|
227
|
+
return (this.checksum ^ 4294967295) >>> 0;
|
|
228
|
+
};
|
|
229
|
+
return Crc322;
|
|
230
|
+
})()
|
|
231
|
+
);
|
|
232
|
+
var a_lookUpTable = [
|
|
233
|
+
0,
|
|
234
|
+
1996959894,
|
|
235
|
+
3993919788,
|
|
236
|
+
2567524794,
|
|
237
|
+
124634137,
|
|
238
|
+
1886057615,
|
|
239
|
+
3915621685,
|
|
240
|
+
2657392035,
|
|
241
|
+
249268274,
|
|
242
|
+
2044508324,
|
|
243
|
+
3772115230,
|
|
244
|
+
2547177864,
|
|
245
|
+
162941995,
|
|
246
|
+
2125561021,
|
|
247
|
+
3887607047,
|
|
248
|
+
2428444049,
|
|
249
|
+
498536548,
|
|
250
|
+
1789927666,
|
|
251
|
+
4089016648,
|
|
252
|
+
2227061214,
|
|
253
|
+
450548861,
|
|
254
|
+
1843258603,
|
|
255
|
+
4107580753,
|
|
256
|
+
2211677639,
|
|
257
|
+
325883990,
|
|
258
|
+
1684777152,
|
|
259
|
+
4251122042,
|
|
260
|
+
2321926636,
|
|
261
|
+
335633487,
|
|
262
|
+
1661365465,
|
|
263
|
+
4195302755,
|
|
264
|
+
2366115317,
|
|
265
|
+
997073096,
|
|
266
|
+
1281953886,
|
|
267
|
+
3579855332,
|
|
268
|
+
2724688242,
|
|
269
|
+
1006888145,
|
|
270
|
+
1258607687,
|
|
271
|
+
3524101629,
|
|
272
|
+
2768942443,
|
|
273
|
+
901097722,
|
|
274
|
+
1119000684,
|
|
275
|
+
3686517206,
|
|
276
|
+
2898065728,
|
|
277
|
+
853044451,
|
|
278
|
+
1172266101,
|
|
279
|
+
3705015759,
|
|
280
|
+
2882616665,
|
|
281
|
+
651767980,
|
|
282
|
+
1373503546,
|
|
283
|
+
3369554304,
|
|
284
|
+
3218104598,
|
|
285
|
+
565507253,
|
|
286
|
+
1454621731,
|
|
287
|
+
3485111705,
|
|
288
|
+
3099436303,
|
|
289
|
+
671266974,
|
|
290
|
+
1594198024,
|
|
291
|
+
3322730930,
|
|
292
|
+
2970347812,
|
|
293
|
+
795835527,
|
|
294
|
+
1483230225,
|
|
295
|
+
3244367275,
|
|
296
|
+
3060149565,
|
|
297
|
+
1994146192,
|
|
298
|
+
31158534,
|
|
299
|
+
2563907772,
|
|
300
|
+
4023717930,
|
|
301
|
+
1907459465,
|
|
302
|
+
112637215,
|
|
303
|
+
2680153253,
|
|
304
|
+
3904427059,
|
|
305
|
+
2013776290,
|
|
306
|
+
251722036,
|
|
307
|
+
2517215374,
|
|
308
|
+
3775830040,
|
|
309
|
+
2137656763,
|
|
310
|
+
141376813,
|
|
311
|
+
2439277719,
|
|
312
|
+
3865271297,
|
|
313
|
+
1802195444,
|
|
314
|
+
476864866,
|
|
315
|
+
2238001368,
|
|
316
|
+
4066508878,
|
|
317
|
+
1812370925,
|
|
318
|
+
453092731,
|
|
319
|
+
2181625025,
|
|
320
|
+
4111451223,
|
|
321
|
+
1706088902,
|
|
322
|
+
314042704,
|
|
323
|
+
2344532202,
|
|
324
|
+
4240017532,
|
|
325
|
+
1658658271,
|
|
326
|
+
366619977,
|
|
327
|
+
2362670323,
|
|
328
|
+
4224994405,
|
|
329
|
+
1303535960,
|
|
330
|
+
984961486,
|
|
331
|
+
2747007092,
|
|
332
|
+
3569037538,
|
|
333
|
+
1256170817,
|
|
334
|
+
1037604311,
|
|
335
|
+
2765210733,
|
|
336
|
+
3554079995,
|
|
337
|
+
1131014506,
|
|
338
|
+
879679996,
|
|
339
|
+
2909243462,
|
|
340
|
+
3663771856,
|
|
341
|
+
1141124467,
|
|
342
|
+
855842277,
|
|
343
|
+
2852801631,
|
|
344
|
+
3708648649,
|
|
345
|
+
1342533948,
|
|
346
|
+
654459306,
|
|
347
|
+
3188396048,
|
|
348
|
+
3373015174,
|
|
349
|
+
1466479909,
|
|
350
|
+
544179635,
|
|
351
|
+
3110523913,
|
|
352
|
+
3462522015,
|
|
353
|
+
1591671054,
|
|
354
|
+
702138776,
|
|
355
|
+
2966460450,
|
|
356
|
+
3352799412,
|
|
357
|
+
1504918807,
|
|
358
|
+
783551873,
|
|
359
|
+
3082640443,
|
|
360
|
+
3233442989,
|
|
361
|
+
3988292384,
|
|
362
|
+
2596254646,
|
|
363
|
+
62317068,
|
|
364
|
+
1957810842,
|
|
365
|
+
3939845945,
|
|
366
|
+
2647816111,
|
|
367
|
+
81470997,
|
|
368
|
+
1943803523,
|
|
369
|
+
3814918930,
|
|
370
|
+
2489596804,
|
|
371
|
+
225274430,
|
|
372
|
+
2053790376,
|
|
373
|
+
3826175755,
|
|
374
|
+
2466906013,
|
|
375
|
+
167816743,
|
|
376
|
+
2097651377,
|
|
377
|
+
4027552580,
|
|
378
|
+
2265490386,
|
|
379
|
+
503444072,
|
|
380
|
+
1762050814,
|
|
381
|
+
4150417245,
|
|
382
|
+
2154129355,
|
|
383
|
+
426522225,
|
|
384
|
+
1852507879,
|
|
385
|
+
4275313526,
|
|
386
|
+
2312317920,
|
|
387
|
+
282753626,
|
|
388
|
+
1742555852,
|
|
389
|
+
4189708143,
|
|
390
|
+
2394877945,
|
|
391
|
+
397917763,
|
|
392
|
+
1622183637,
|
|
393
|
+
3604390888,
|
|
394
|
+
2714866558,
|
|
395
|
+
953729732,
|
|
396
|
+
1340076626,
|
|
397
|
+
3518719985,
|
|
398
|
+
2797360999,
|
|
399
|
+
1068828381,
|
|
400
|
+
1219638859,
|
|
401
|
+
3624741850,
|
|
402
|
+
2936675148,
|
|
403
|
+
906185462,
|
|
404
|
+
1090812512,
|
|
405
|
+
3747672003,
|
|
406
|
+
2825379669,
|
|
407
|
+
829329135,
|
|
408
|
+
1181335161,
|
|
409
|
+
3412177804,
|
|
410
|
+
3160834842,
|
|
411
|
+
628085408,
|
|
412
|
+
1382605366,
|
|
413
|
+
3423369109,
|
|
414
|
+
3138078467,
|
|
415
|
+
570562233,
|
|
416
|
+
1426400815,
|
|
417
|
+
3317316542,
|
|
418
|
+
2998733608,
|
|
419
|
+
733239954,
|
|
420
|
+
1555261956,
|
|
421
|
+
3268935591,
|
|
422
|
+
3050360625,
|
|
423
|
+
752459403,
|
|
424
|
+
1541320221,
|
|
425
|
+
2607071920,
|
|
426
|
+
3965973030,
|
|
427
|
+
1969922972,
|
|
428
|
+
40735498,
|
|
429
|
+
2617837225,
|
|
430
|
+
3943577151,
|
|
431
|
+
1913087877,
|
|
432
|
+
83908371,
|
|
433
|
+
2512341634,
|
|
434
|
+
3803740692,
|
|
435
|
+
2075208622,
|
|
436
|
+
213261112,
|
|
437
|
+
2463272603,
|
|
438
|
+
3855990285,
|
|
439
|
+
2094854071,
|
|
440
|
+
198958881,
|
|
441
|
+
2262029012,
|
|
442
|
+
4057260610,
|
|
443
|
+
1759359992,
|
|
444
|
+
534414190,
|
|
445
|
+
2176718541,
|
|
446
|
+
4139329115,
|
|
447
|
+
1873836001,
|
|
448
|
+
414664567,
|
|
449
|
+
2282248934,
|
|
450
|
+
4279200368,
|
|
451
|
+
1711684554,
|
|
452
|
+
285281116,
|
|
453
|
+
2405801727,
|
|
454
|
+
4167216745,
|
|
455
|
+
1634467795,
|
|
456
|
+
376229701,
|
|
457
|
+
2685067896,
|
|
458
|
+
3608007406,
|
|
459
|
+
1308918612,
|
|
460
|
+
956543938,
|
|
461
|
+
2808555105,
|
|
462
|
+
3495958263,
|
|
463
|
+
1231636301,
|
|
464
|
+
1047427035,
|
|
465
|
+
2932959818,
|
|
466
|
+
3654703836,
|
|
467
|
+
1088359270,
|
|
468
|
+
936918e3,
|
|
469
|
+
2847714899,
|
|
470
|
+
3736837829,
|
|
471
|
+
1202900863,
|
|
472
|
+
817233897,
|
|
473
|
+
3183342108,
|
|
474
|
+
3401237130,
|
|
475
|
+
1404277552,
|
|
476
|
+
615818150,
|
|
477
|
+
3134207493,
|
|
478
|
+
3453421203,
|
|
479
|
+
1423857449,
|
|
480
|
+
601450431,
|
|
481
|
+
3009837614,
|
|
482
|
+
3294710456,
|
|
483
|
+
1567103746,
|
|
484
|
+
711928724,
|
|
485
|
+
3020668471,
|
|
486
|
+
3272380065,
|
|
487
|
+
1510334235,
|
|
488
|
+
755167117
|
|
489
|
+
];
|
|
490
|
+
var lookupTable = uint32ArrayFrom(a_lookUpTable);
|
|
491
|
+
|
|
492
|
+
export {
|
|
493
|
+
__awaiter,
|
|
494
|
+
__generator,
|
|
495
|
+
__values,
|
|
496
|
+
convertToBuffer,
|
|
497
|
+
isEmptyData,
|
|
498
|
+
numToUint8,
|
|
499
|
+
uint32ArrayFrom,
|
|
500
|
+
AwsCrc32,
|
|
501
|
+
Crc32
|
|
502
|
+
};
|