@hashgraphonline/standards-sdk 0.0.92 → 0.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/hcs-10/registrations.d.ts.map +1 -1
- package/dist/es/hcs-10/types.d.ts +1 -6
- package/dist/es/hcs-10/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es100.js +16 -13
- package/dist/es/standards-sdk.es100.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +4 -31
- package/dist/es/standards-sdk.es101.js.map +1 -1
- package/dist/es/standards-sdk.es102.js +39 -15
- package/dist/es/standards-sdk.es102.js.map +1 -1
- package/dist/es/standards-sdk.es103.js +40 -4
- package/dist/es/standards-sdk.es103.js.map +1 -1
- package/dist/es/standards-sdk.es104.js +37 -4
- package/dist/es/standards-sdk.es104.js.map +1 -1
- package/dist/es/standards-sdk.es105.js +77 -15
- package/dist/es/standards-sdk.es105.js.map +1 -1
- package/dist/es/standards-sdk.es106.js +7135 -4
- package/dist/es/standards-sdk.es106.js.map +1 -1
- package/dist/es/standards-sdk.es107.js +3 -39
- package/dist/es/standards-sdk.es107.js.map +1 -1
- package/dist/es/standards-sdk.es108.js +2 -40
- package/dist/es/standards-sdk.es108.js.map +1 -1
- package/dist/es/standards-sdk.es109.js +2 -37
- package/dist/es/standards-sdk.es109.js.map +1 -1
- package/dist/es/standards-sdk.es110.js +31 -75
- package/dist/es/standards-sdk.es110.js.map +1 -1
- package/dist/es/standards-sdk.es111.js +33 -3
- package/dist/es/standards-sdk.es111.js.map +1 -1
- package/dist/es/standards-sdk.es112.js +9 -2
- package/dist/es/standards-sdk.es112.js.map +1 -1
- package/dist/es/standards-sdk.es113.js +34 -2
- package/dist/es/standards-sdk.es113.js.map +1 -1
- package/dist/es/standards-sdk.es114.js +416 -31
- package/dist/es/standards-sdk.es114.js.map +1 -1
- package/dist/es/standards-sdk.es115.js +2 -33
- package/dist/es/standards-sdk.es115.js.map +1 -1
- package/dist/es/standards-sdk.es116.js +120 -9
- package/dist/es/standards-sdk.es116.js.map +1 -1
- package/dist/es/standards-sdk.es117.js +4 -34
- package/dist/es/standards-sdk.es117.js.map +1 -1
- package/dist/es/standards-sdk.es13.js +2 -2
- package/dist/es/standards-sdk.es15.js +1 -1
- package/dist/es/standards-sdk.es18.js +1 -1
- package/dist/es/standards-sdk.es19.js +2 -2
- package/dist/es/standards-sdk.es22.js +1041 -5
- package/dist/es/standards-sdk.es22.js.map +1 -1
- package/dist/es/standards-sdk.es24.js +36 -7190
- package/dist/es/standards-sdk.es24.js.map +1 -1
- package/dist/es/standards-sdk.es25.js +46 -1039
- package/dist/es/standards-sdk.es25.js.map +1 -1
- package/dist/es/standards-sdk.es26.js +7190 -36
- package/dist/es/standards-sdk.es26.js.map +1 -1
- package/dist/es/standards-sdk.es27.js +3 -48
- package/dist/es/standards-sdk.es27.js.map +1 -1
- package/dist/es/standards-sdk.es28.js +2 -3
- package/dist/es/standards-sdk.es28.js.map +1 -1
- package/dist/es/standards-sdk.es29.js +4167 -2
- package/dist/es/standards-sdk.es29.js.map +1 -1
- package/dist/es/standards-sdk.es30.js +5 -4167
- package/dist/es/standards-sdk.es30.js.map +1 -1
- package/dist/es/standards-sdk.es31.js +2 -419
- package/dist/es/standards-sdk.es31.js.map +1 -1
- package/dist/es/standards-sdk.es32.js +364 -2
- package/dist/es/standards-sdk.es32.js.map +1 -1
- package/dist/es/standards-sdk.es33.js +5 -119
- package/dist/es/standards-sdk.es33.js.map +1 -1
- package/dist/es/standards-sdk.es34.js +178 -3
- package/dist/es/standards-sdk.es34.js.map +1 -1
- package/dist/es/standards-sdk.es35.js +80 -7135
- package/dist/es/standards-sdk.es35.js.map +1 -1
- package/dist/es/standards-sdk.es36.js +114 -2
- package/dist/es/standards-sdk.es36.js.map +1 -1
- package/dist/es/standards-sdk.es37.js +52 -3
- package/dist/es/standards-sdk.es37.js.map +1 -1
- package/dist/es/standards-sdk.es38.js +10 -84
- package/dist/es/standards-sdk.es38.js.map +1 -1
- package/dist/es/standards-sdk.es39.js +96 -22
- package/dist/es/standards-sdk.es39.js.map +1 -1
- package/dist/es/standards-sdk.es4.js +1 -1
- package/dist/es/standards-sdk.es40.js +3 -147
- package/dist/es/standards-sdk.es40.js.map +1 -1
- package/dist/es/standards-sdk.es41.js +2 -91
- package/dist/es/standards-sdk.es41.js.map +1 -1
- package/dist/es/standards-sdk.es42.js +97 -348
- package/dist/es/standards-sdk.es42.js.map +1 -1
- package/dist/es/standards-sdk.es43.js +73 -5
- package/dist/es/standards-sdk.es43.js.map +1 -1
- package/dist/es/standards-sdk.es44.js +5 -178
- package/dist/es/standards-sdk.es44.js.map +1 -1
- package/dist/es/standards-sdk.es45.js +4 -80
- package/dist/es/standards-sdk.es45.js.map +1 -1
- package/dist/es/standards-sdk.es46.js +207 -100
- package/dist/es/standards-sdk.es46.js.map +1 -1
- package/dist/es/standards-sdk.es47.js +54 -48
- package/dist/es/standards-sdk.es47.js.map +1 -1
- package/dist/es/standards-sdk.es48.js +68 -9
- package/dist/es/standards-sdk.es48.js.map +1 -1
- package/dist/es/standards-sdk.es49.js +76 -89
- package/dist/es/standards-sdk.es49.js.map +1 -1
- package/dist/es/standards-sdk.es5.js +2 -2
- package/dist/es/standards-sdk.es50.js +22 -3
- package/dist/es/standards-sdk.es50.js.map +1 -1
- package/dist/es/standards-sdk.es51.js +148 -2
- package/dist/es/standards-sdk.es51.js.map +1 -1
- package/dist/es/standards-sdk.es52.js +80 -102
- package/dist/es/standards-sdk.es52.js.map +1 -1
- package/dist/es/standards-sdk.es53.js +190 -69
- package/dist/es/standards-sdk.es53.js.map +1 -1
- package/dist/es/standards-sdk.es54.js +437 -5
- package/dist/es/standards-sdk.es54.js.map +1 -1
- package/dist/es/standards-sdk.es55.js +24 -4
- package/dist/es/standards-sdk.es55.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +122 -204
- package/dist/es/standards-sdk.es56.js.map +1 -1
- package/dist/es/standards-sdk.es57.js +17 -57
- package/dist/es/standards-sdk.es57.js.map +1 -1
- package/dist/es/standards-sdk.es58.js +29 -69
- package/dist/es/standards-sdk.es58.js.map +1 -1
- package/dist/es/standards-sdk.es59.js +25 -191
- package/dist/es/standards-sdk.es59.js.map +1 -1
- package/dist/es/standards-sdk.es60.js +15 -432
- package/dist/es/standards-sdk.es60.js.map +1 -1
- package/dist/es/standards-sdk.es61.js +34 -15
- package/dist/es/standards-sdk.es61.js.map +1 -1
- package/dist/es/standards-sdk.es62.js +10 -131
- package/dist/es/standards-sdk.es62.js.map +1 -1
- package/dist/es/standards-sdk.es63.js +53 -10
- package/dist/es/standards-sdk.es63.js.map +1 -1
- package/dist/es/standards-sdk.es64.js +1281 -21
- package/dist/es/standards-sdk.es64.js.map +1 -1
- package/dist/es/standards-sdk.es65.js +28 -25
- package/dist/es/standards-sdk.es65.js.map +1 -1
- package/dist/es/standards-sdk.es66.js +5 -20
- package/dist/es/standards-sdk.es66.js.map +1 -1
- package/dist/es/standards-sdk.es67.js +151 -36
- package/dist/es/standards-sdk.es67.js.map +1 -1
- package/dist/es/standards-sdk.es68.js +788 -13
- package/dist/es/standards-sdk.es68.js.map +1 -1
- package/dist/es/standards-sdk.es69.js +136 -54
- package/dist/es/standards-sdk.es69.js.map +1 -1
- package/dist/es/standards-sdk.es7.js +2 -2
- package/dist/es/standards-sdk.es70.js +174 -1289
- package/dist/es/standards-sdk.es70.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +3 -32
- package/dist/es/standards-sdk.es71.js.map +1 -1
- package/dist/es/standards-sdk.es72.js +163 -5
- package/dist/es/standards-sdk.es72.js.map +1 -1
- package/dist/es/standards-sdk.es73.js +27 -154
- package/dist/es/standards-sdk.es73.js.map +1 -1
- package/dist/es/standards-sdk.es74.js +45 -775
- package/dist/es/standards-sdk.es74.js.map +1 -1
- package/dist/es/standards-sdk.es75.js +47 -98
- package/dist/es/standards-sdk.es75.js.map +1 -1
- package/dist/es/standards-sdk.es76.js +10 -2
- package/dist/es/standards-sdk.es76.js.map +1 -1
- package/dist/es/standards-sdk.es77.js +64 -15
- package/dist/es/standards-sdk.es77.js.map +1 -1
- package/dist/es/standards-sdk.es78.js +6 -409
- package/dist/es/standards-sdk.es78.js.map +1 -1
- package/dist/es/standards-sdk.es79.js +12 -171
- package/dist/es/standards-sdk.es79.js.map +1 -1
- package/dist/es/standards-sdk.es8.js +2 -2
- package/dist/es/standards-sdk.es80.js +7 -143
- package/dist/es/standards-sdk.es80.js.map +1 -1
- package/dist/es/standards-sdk.es81.js +44 -2281
- package/dist/es/standards-sdk.es81.js.map +1 -1
- package/dist/es/standards-sdk.es82.js +2 -164
- package/dist/es/standards-sdk.es82.js.map +1 -1
- package/dist/es/standards-sdk.es83.js +135 -31
- package/dist/es/standards-sdk.es83.js.map +1 -1
- package/dist/es/standards-sdk.es84.js +164 -55
- package/dist/es/standards-sdk.es84.js.map +1 -1
- package/dist/es/standards-sdk.es85.js +98 -47
- package/dist/es/standards-sdk.es85.js.map +1 -1
- package/dist/es/standards-sdk.es86.js +2 -10
- package/dist/es/standards-sdk.es86.js.map +1 -1
- package/dist/es/standards-sdk.es87.js +15 -64
- package/dist/es/standards-sdk.es87.js.map +1 -1
- package/dist/es/standards-sdk.es88.js +409 -6
- package/dist/es/standards-sdk.es88.js.map +1 -1
- package/dist/es/standards-sdk.es89.js +20 -14
- package/dist/es/standards-sdk.es89.js.map +1 -1
- package/dist/es/standards-sdk.es9.js +4 -2
- package/dist/es/standards-sdk.es9.js.map +1 -1
- package/dist/es/standards-sdk.es90.js +27 -7
- package/dist/es/standards-sdk.es90.js.map +1 -1
- package/dist/es/standards-sdk.es91.js +26 -45
- package/dist/es/standards-sdk.es91.js.map +1 -1
- package/dist/es/standards-sdk.es92.js +38 -2
- package/dist/es/standards-sdk.es92.js.map +1 -1
- package/dist/es/standards-sdk.es93.js +12 -135
- package/dist/es/standards-sdk.es93.js.map +1 -1
- package/dist/es/standards-sdk.es94.js +13 -172
- package/dist/es/standards-sdk.es94.js.map +1 -1
- package/dist/es/standards-sdk.es95.js +31 -20
- package/dist/es/standards-sdk.es95.js.map +1 -1
- package/dist/es/standards-sdk.es96.js +14 -26
- package/dist/es/standards-sdk.es96.js.map +1 -1
- package/dist/es/standards-sdk.es97.js +3 -25
- package/dist/es/standards-sdk.es97.js.map +1 -1
- package/dist/es/standards-sdk.es98.js +3 -37
- package/dist/es/standards-sdk.es98.js.map +1 -1
- package/dist/es/standards-sdk.es99.js +2281 -12
- package/dist/es/standards-sdk.es99.js.map +1 -1
- package/dist/umd/hcs-10/registrations.d.ts.map +1 -1
- package/dist/umd/hcs-10/types.d.ts +1 -6
- package/dist/umd/hcs-10/types.d.ts.map +1 -1
- package/dist/umd/standards-sdk.umd.js +1 -1
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es40.js","sources":["../../node_modules/ethers/lib.esm/utils/errors.js"],"sourcesContent":["/**\n * All errors in ethers include properties to ensure they are both\n * human-readable (i.e. ``.message``) and machine-readable (i.e. ``.code``).\n *\n * The [[isError]] function can be used to check the error ``code`` and\n * provide a type guard for the properties present on that error interface.\n *\n * @_section: api/utils/errors:Errors [about-errors]\n */\nimport { version } from \"../_version.js\";\nimport { defineProperties } from \"./properties.js\";\nfunction stringify(value) {\n if (value == null) {\n return \"null\";\n }\n if (Array.isArray(value)) {\n return \"[ \" + (value.map(stringify)).join(\", \") + \" ]\";\n }\n if (value instanceof Uint8Array) {\n const HEX = \"0123456789abcdef\";\n let result = \"0x\";\n for (let i = 0; i < value.length; i++) {\n result += HEX[value[i] >> 4];\n result += HEX[value[i] & 0xf];\n }\n return result;\n }\n if (typeof (value) === \"object\" && typeof (value.toJSON) === \"function\") {\n return stringify(value.toJSON());\n }\n switch (typeof (value)) {\n case \"boolean\":\n case \"symbol\":\n return value.toString();\n case \"bigint\":\n return BigInt(value).toString();\n case \"number\":\n return (value).toString();\n case \"string\":\n return JSON.stringify(value);\n case \"object\": {\n const keys = Object.keys(value);\n keys.sort();\n return \"{ \" + keys.map((k) => `${stringify(k)}: ${stringify(value[k])}`).join(\", \") + \" }\";\n }\n }\n return `[ COULD NOT SERIALIZE ]`;\n}\n/**\n * Returns true if the %%error%% matches an error thrown by ethers\n * that matches the error %%code%%.\n *\n * In TypeScript environments, this can be used to check that %%error%%\n * matches an EthersError type, which means the expected properties will\n * be set.\n *\n * @See [ErrorCodes](api:ErrorCode)\n * @example\n * try {\n * // code....\n * } catch (e) {\n * if (isError(e, \"CALL_EXCEPTION\")) {\n * // The Type Guard has validated this object\n * console.log(e.data);\n * }\n * }\n */\nexport function isError(error, code) {\n return (error && error.code === code);\n}\n/**\n * Returns true if %%error%% is a [[CallExceptionError].\n */\nexport function isCallException(error) {\n return isError(error, \"CALL_EXCEPTION\");\n}\n/**\n * Returns a new Error configured to the format ethers emits errors, with\n * the %%message%%, [[api:ErrorCode]] %%code%% and additional properties\n * for the corresponding EthersError.\n *\n * Each error in ethers includes the version of ethers, a\n * machine-readable [[ErrorCode]], and depending on %%code%%, additional\n * required properties. The error message will also include the %%message%%,\n * ethers version, %%code%% and all additional properties, serialized.\n */\nexport function makeError(message, code, info) {\n let shortMessage = message;\n {\n const details = [];\n if (info) {\n if (\"message\" in info || \"code\" in info || \"name\" in info) {\n throw new Error(`value will overwrite populated values: ${stringify(info)}`);\n }\n for (const key in info) {\n if (key === \"shortMessage\") {\n continue;\n }\n const value = (info[key]);\n // try {\n details.push(key + \"=\" + stringify(value));\n // } catch (error: any) {\n // console.log(\"MMM\", error.message);\n // details.push(key + \"=[could not serialize object]\");\n // }\n }\n }\n details.push(`code=${code}`);\n details.push(`version=${version}`);\n if (details.length) {\n message += \" (\" + details.join(\", \") + \")\";\n }\n }\n let error;\n switch (code) {\n case \"INVALID_ARGUMENT\":\n error = new TypeError(message);\n break;\n case \"NUMERIC_FAULT\":\n case \"BUFFER_OVERRUN\":\n error = new RangeError(message);\n break;\n default:\n error = new Error(message);\n }\n defineProperties(error, { code });\n if (info) {\n Object.assign(error, info);\n }\n if (error.shortMessage == null) {\n defineProperties(error, { shortMessage });\n }\n return error;\n}\n/**\n * Throws an EthersError with %%message%%, %%code%% and additional error\n * %%info%% when %%check%% is falsish..\n *\n * @see [[api:makeError]]\n */\nexport function assert(check, message, code, info) {\n if (!check) {\n throw makeError(message, code, info);\n }\n}\n/**\n * A simple helper to simply ensuring provided arguments match expected\n * constraints, throwing if not.\n *\n * In TypeScript environments, the %%check%% has been asserted true, so\n * any further code does not need additional compile-time checks.\n */\nexport function assertArgument(check, message, name, value) {\n assert(check, message, \"INVALID_ARGUMENT\", { argument: name, value: value });\n}\nexport function assertArgumentCount(count, expectedCount, message) {\n if (message == null) {\n message = \"\";\n }\n if (message) {\n message = \": \" + message;\n }\n assert(count >= expectedCount, \"missing argument\" + message, \"MISSING_ARGUMENT\", {\n count: count,\n expectedCount: expectedCount\n });\n assert(count <= expectedCount, \"too many arguments\" + message, \"UNEXPECTED_ARGUMENT\", {\n count: count,\n expectedCount: expectedCount\n });\n}\nconst _normalizeForms = [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].reduce((accum, form) => {\n try {\n // General test for normalize\n /* c8 ignore start */\n if (\"test\".normalize(form) !== \"test\") {\n throw new Error(\"bad\");\n }\n ;\n /* c8 ignore stop */\n if (form === \"NFD\") {\n const check = String.fromCharCode(0xe9).normalize(\"NFD\");\n const expected = String.fromCharCode(0x65, 0x0301);\n /* c8 ignore start */\n if (check !== expected) {\n throw new Error(\"broken\");\n }\n /* c8 ignore stop */\n }\n accum.push(form);\n }\n catch (error) { }\n return accum;\n}, []);\n/**\n * Throws if the normalization %%form%% is not supported.\n */\nexport function assertNormalize(form) {\n assert(_normalizeForms.indexOf(form) >= 0, \"platform missing String.prototype.normalize\", \"UNSUPPORTED_OPERATION\", {\n operation: \"String.prototype.normalize\", info: { form }\n });\n}\n/**\n * Many classes use file-scoped values to guard the constructor,\n * making it effectively private. This facilitates that pattern\n * by ensuring the %%givenGaurd%% matches the file-scoped %%guard%%,\n * throwing if not, indicating the %%className%% if provided.\n */\nexport function assertPrivate(givenGuard, guard, className) {\n if (className == null) {\n className = \"\";\n }\n if (givenGuard !== guard) {\n let method = className, operation = \"new\";\n if (className) {\n method += \".\";\n operation += \" \" + className;\n }\n assert(false, `private constructor; use ${method}from* methods`, \"UNSUPPORTED_OPERATION\", {\n operation\n });\n }\n}\n//# sourceMappingURL=errors.js.map"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"standards-sdk.es40.js","sources":["../../node_modules/axios/lib/cancel/isCancel.js"],"sourcesContent":["'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n"],"names":[],"mappings":"AAEe,SAAS,SAAS,OAAO;AACtC,SAAO,CAAC,EAAE,SAAS,MAAM;AAC3B;","x_google_ignoreList":[0]}
|
|
@@ -1,94 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function _getBytes(value, name, copy) {
|
|
3
|
-
if (value instanceof Uint8Array) {
|
|
4
|
-
if (copy) {
|
|
5
|
-
return new Uint8Array(value);
|
|
6
|
-
}
|
|
7
|
-
return value;
|
|
8
|
-
}
|
|
9
|
-
if (typeof value === "string" && value.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {
|
|
10
|
-
const result = new Uint8Array((value.length - 2) / 2);
|
|
11
|
-
let offset = 2;
|
|
12
|
-
for (let i = 0; i < result.length; i++) {
|
|
13
|
-
result[i] = parseInt(value.substring(offset, offset + 2), 16);
|
|
14
|
-
offset += 2;
|
|
15
|
-
}
|
|
16
|
-
return result;
|
|
17
|
-
}
|
|
18
|
-
assertArgument(false, "invalid BytesLike value", name || "value", value);
|
|
19
|
-
}
|
|
20
|
-
function getBytes(value, name) {
|
|
21
|
-
return _getBytes(value, name, false);
|
|
22
|
-
}
|
|
23
|
-
function getBytesCopy(value, name) {
|
|
24
|
-
return _getBytes(value, name, true);
|
|
25
|
-
}
|
|
26
|
-
function isHexString(value, length) {
|
|
27
|
-
if (typeof value !== "string" || !value.match(/^0x[0-9A-Fa-f]*$/)) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
if (typeof length === "number" && value.length !== 2 + 2 * length) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
if (length === true && value.length % 2 !== 0) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
const HexCharacters = "0123456789abcdef";
|
|
39
|
-
function hexlify(data) {
|
|
40
|
-
const bytes = getBytes(data);
|
|
41
|
-
let result = "0x";
|
|
42
|
-
for (let i = 0; i < bytes.length; i++) {
|
|
43
|
-
const v = bytes[i];
|
|
44
|
-
result += HexCharacters[(v & 240) >> 4] + HexCharacters[v & 15];
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
function concat(datas) {
|
|
49
|
-
return "0x" + datas.map((d) => hexlify(d).substring(2)).join("");
|
|
50
|
-
}
|
|
51
|
-
function dataSlice(data, start, end) {
|
|
52
|
-
const bytes = getBytes(data);
|
|
53
|
-
if (end != null && end > bytes.length) {
|
|
54
|
-
assert(false, "cannot slice beyond data bounds", "BUFFER_OVERRUN", {
|
|
55
|
-
buffer: bytes,
|
|
56
|
-
length: bytes.length,
|
|
57
|
-
offset: end
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return hexlify(bytes.slice(start == null ? 0 : start, end == null ? bytes.length : end));
|
|
61
|
-
}
|
|
62
|
-
function zeroPad(data, length, left) {
|
|
63
|
-
const bytes = getBytes(data);
|
|
64
|
-
assert(length >= bytes.length, "padding exceeds data length", "BUFFER_OVERRUN", {
|
|
65
|
-
buffer: new Uint8Array(bytes),
|
|
66
|
-
length,
|
|
67
|
-
offset: length + 1
|
|
68
|
-
});
|
|
69
|
-
const result = new Uint8Array(length);
|
|
70
|
-
result.fill(0);
|
|
71
|
-
if (left) {
|
|
72
|
-
result.set(bytes, length - bytes.length);
|
|
73
|
-
} else {
|
|
74
|
-
result.set(bytes, 0);
|
|
75
|
-
}
|
|
76
|
-
return hexlify(result);
|
|
77
|
-
}
|
|
78
|
-
function zeroPadValue(data, length) {
|
|
79
|
-
return zeroPad(data, length, true);
|
|
80
|
-
}
|
|
81
|
-
function zeroPadBytes(data, length) {
|
|
82
|
-
return zeroPad(data, length, false);
|
|
83
|
-
}
|
|
1
|
+
const VERSION = "1.8.4";
|
|
84
2
|
export {
|
|
85
|
-
|
|
86
|
-
dataSlice,
|
|
87
|
-
getBytes,
|
|
88
|
-
getBytesCopy,
|
|
89
|
-
hexlify,
|
|
90
|
-
isHexString,
|
|
91
|
-
zeroPadBytes,
|
|
92
|
-
zeroPadValue
|
|
3
|
+
VERSION
|
|
93
4
|
};
|
|
94
5
|
//# sourceMappingURL=standards-sdk.es41.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es41.js","sources":["../../node_modules/
|
|
1
|
+
{"version":3,"file":"standards-sdk.es41.js","sources":["../../node_modules/axios/lib/env/data.js"],"sourcesContent":["export const VERSION = \"1.8.4\";"],"names":[],"mappings":"AAAY,MAAC,UAAU;","x_google_ignoreList":[0]}
|
|
@@ -1,367 +1,116 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
7
|
-
const str = toString.call(thing);
|
|
8
|
-
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
9
|
-
})(/* @__PURE__ */ Object.create(null));
|
|
10
|
-
const kindOfTest = (type) => {
|
|
11
|
-
type = type.toLowerCase();
|
|
12
|
-
return (thing) => kindOf(thing) === type;
|
|
13
|
-
};
|
|
14
|
-
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
15
|
-
const { isArray } = Array;
|
|
16
|
-
const isUndefined = typeOfTest("undefined");
|
|
17
|
-
function isBuffer(val) {
|
|
18
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
1
|
+
import Buffer from "./standards-sdk.es23.js";
|
|
2
|
+
import utils from "./standards-sdk.es32.js";
|
|
3
|
+
import AxiosError from "./standards-sdk.es43.js";
|
|
4
|
+
function isVisitable(thing) {
|
|
5
|
+
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
19
6
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
let result;
|
|
23
|
-
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
24
|
-
result = ArrayBuffer.isView(val);
|
|
25
|
-
} else {
|
|
26
|
-
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
27
|
-
}
|
|
28
|
-
return result;
|
|
7
|
+
function removeBrackets(key) {
|
|
8
|
+
return utils.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
29
9
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
47
|
-
const isFormData = (thing) => {
|
|
48
|
-
let kind;
|
|
49
|
-
return thing && (typeof FormData === "function" && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
|
|
50
|
-
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
51
|
-
};
|
|
52
|
-
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
53
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
54
|
-
const trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
55
|
-
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
56
|
-
if (obj === null || typeof obj === "undefined") {
|
|
57
|
-
return;
|
|
10
|
+
function renderKey(path, key, dots) {
|
|
11
|
+
if (!path) return key;
|
|
12
|
+
return path.concat(key).map(function each(token, i) {
|
|
13
|
+
token = removeBrackets(token);
|
|
14
|
+
return !dots && i ? "[" + token + "]" : token;
|
|
15
|
+
}).join(dots ? "." : "");
|
|
16
|
+
}
|
|
17
|
+
function isFlatArray(arr) {
|
|
18
|
+
return utils.isArray(arr) && !arr.some(isVisitable);
|
|
19
|
+
}
|
|
20
|
+
const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
|
|
21
|
+
return /^is[A-Z]/.test(prop);
|
|
22
|
+
});
|
|
23
|
+
function toFormData(obj, formData, options) {
|
|
24
|
+
if (!utils.isObject(obj)) {
|
|
25
|
+
throw new TypeError("target must be an object");
|
|
58
26
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
27
|
+
formData = formData || new FormData();
|
|
28
|
+
options = utils.toFlatObject(options, {
|
|
29
|
+
metaTokens: true,
|
|
30
|
+
dots: false,
|
|
31
|
+
indexes: false
|
|
32
|
+
}, false, function defined(option, source) {
|
|
33
|
+
return !utils.isUndefined(source[option]);
|
|
34
|
+
});
|
|
35
|
+
const metaTokens = options.metaTokens;
|
|
36
|
+
const visitor = options.visitor || defaultVisitor;
|
|
37
|
+
const dots = options.dots;
|
|
38
|
+
const indexes = options.indexes;
|
|
39
|
+
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
40
|
+
const useBlob = _Blob && utils.isSpecCompliantForm(formData);
|
|
41
|
+
if (!utils.isFunction(visitor)) {
|
|
42
|
+
throw new TypeError("visitor must be a function");
|
|
63
43
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
44
|
+
function convertValue(value) {
|
|
45
|
+
if (value === null) return "";
|
|
46
|
+
if (utils.isDate(value)) {
|
|
47
|
+
return value.toISOString();
|
|
67
48
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const len = keys.length;
|
|
71
|
-
let key;
|
|
72
|
-
for (i = 0; i < len; i++) {
|
|
73
|
-
key = keys[i];
|
|
74
|
-
fn.call(null, obj[key], key, obj);
|
|
49
|
+
if (!useBlob && utils.isBlob(value)) {
|
|
50
|
+
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
75
51
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
function findKey(obj, key) {
|
|
79
|
-
key = key.toLowerCase();
|
|
80
|
-
const keys = Object.keys(obj);
|
|
81
|
-
let i = keys.length;
|
|
82
|
-
let _key;
|
|
83
|
-
while (i-- > 0) {
|
|
84
|
-
_key = keys[i];
|
|
85
|
-
if (key === _key.toLowerCase()) {
|
|
86
|
-
return _key;
|
|
52
|
+
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
|
|
53
|
+
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
87
54
|
}
|
|
55
|
+
return value;
|
|
88
56
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
result[targetKey] = val.slice();
|
|
107
|
-
} else {
|
|
108
|
-
result[targetKey] = val;
|
|
57
|
+
function defaultVisitor(value, key, path) {
|
|
58
|
+
let arr = value;
|
|
59
|
+
if (value && !path && typeof value === "object") {
|
|
60
|
+
if (utils.endsWith(key, "{}")) {
|
|
61
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
62
|
+
value = JSON.stringify(value);
|
|
63
|
+
} else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, "[]")) && (arr = utils.toArray(value))) {
|
|
64
|
+
key = removeBrackets(key);
|
|
65
|
+
arr.forEach(function each(el, index) {
|
|
66
|
+
!(utils.isUndefined(el) || el === null) && formData.append(
|
|
67
|
+
// eslint-disable-next-line no-nested-ternary
|
|
68
|
+
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
|
|
69
|
+
convertValue(el)
|
|
70
|
+
);
|
|
71
|
+
});
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
109
74
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
arguments[i] && forEach(arguments[i], assignValue);
|
|
113
|
-
}
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
117
|
-
forEach(b, (val, key) => {
|
|
118
|
-
if (thisArg && isFunction(val)) {
|
|
119
|
-
a[key] = bind(val, thisArg);
|
|
120
|
-
} else {
|
|
121
|
-
a[key] = val;
|
|
75
|
+
if (isVisitable(value)) {
|
|
76
|
+
return true;
|
|
122
77
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
};
|
|
126
|
-
const stripBOM = (content) => {
|
|
127
|
-
if (content.charCodeAt(0) === 65279) {
|
|
128
|
-
content = content.slice(1);
|
|
78
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
79
|
+
return false;
|
|
129
80
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
Object.defineProperty(constructor, "super", {
|
|
136
|
-
value: superConstructor.prototype
|
|
81
|
+
const stack = [];
|
|
82
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
83
|
+
defaultVisitor,
|
|
84
|
+
convertValue,
|
|
85
|
+
isVisitable
|
|
137
86
|
});
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
let i;
|
|
143
|
-
let prop;
|
|
144
|
-
const merged = {};
|
|
145
|
-
destObj = destObj || {};
|
|
146
|
-
if (sourceObj == null) return destObj;
|
|
147
|
-
do {
|
|
148
|
-
props = Object.getOwnPropertyNames(sourceObj);
|
|
149
|
-
i = props.length;
|
|
150
|
-
while (i-- > 0) {
|
|
151
|
-
prop = props[i];
|
|
152
|
-
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
153
|
-
destObj[prop] = sourceObj[prop];
|
|
154
|
-
merged[prop] = true;
|
|
155
|
-
}
|
|
87
|
+
function build(value, path) {
|
|
88
|
+
if (utils.isUndefined(value)) return;
|
|
89
|
+
if (stack.indexOf(value) !== -1) {
|
|
90
|
+
throw Error("Circular reference detected in " + path.join("."));
|
|
156
91
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
if (!thing) return null;
|
|
172
|
-
if (isArray(thing)) return thing;
|
|
173
|
-
let i = thing.length;
|
|
174
|
-
if (!isNumber(i)) return null;
|
|
175
|
-
const arr = new Array(i);
|
|
176
|
-
while (i-- > 0) {
|
|
177
|
-
arr[i] = thing[i];
|
|
178
|
-
}
|
|
179
|
-
return arr;
|
|
180
|
-
};
|
|
181
|
-
const isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
182
|
-
return (thing) => {
|
|
183
|
-
return TypedArray && thing instanceof TypedArray;
|
|
184
|
-
};
|
|
185
|
-
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
186
|
-
const forEachEntry = (obj, fn) => {
|
|
187
|
-
const generator = obj && obj[Symbol.iterator];
|
|
188
|
-
const iterator = generator.call(obj);
|
|
189
|
-
let result;
|
|
190
|
-
while ((result = iterator.next()) && !result.done) {
|
|
191
|
-
const pair = result.value;
|
|
192
|
-
fn.call(obj, pair[0], pair[1]);
|
|
92
|
+
stack.push(value);
|
|
93
|
+
utils.forEach(value, function each(el, key) {
|
|
94
|
+
const result = !(utils.isUndefined(el) || el === null) && visitor.call(
|
|
95
|
+
formData,
|
|
96
|
+
el,
|
|
97
|
+
utils.isString(key) ? key.trim() : key,
|
|
98
|
+
path,
|
|
99
|
+
exposedHelpers
|
|
100
|
+
);
|
|
101
|
+
if (result === true) {
|
|
102
|
+
build(el, path ? path.concat(key) : [key]);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
stack.pop();
|
|
193
106
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
let matches;
|
|
197
|
-
const arr = [];
|
|
198
|
-
while ((matches = regExp.exec(str)) !== null) {
|
|
199
|
-
arr.push(matches);
|
|
107
|
+
if (!utils.isObject(obj)) {
|
|
108
|
+
throw new TypeError("data must be an object");
|
|
200
109
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
204
|
-
const toCamelCase = (str) => {
|
|
205
|
-
return str.toLowerCase().replace(
|
|
206
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
207
|
-
function replacer(m, p1, p2) {
|
|
208
|
-
return p1.toUpperCase() + p2;
|
|
209
|
-
}
|
|
210
|
-
);
|
|
211
|
-
};
|
|
212
|
-
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
213
|
-
const isRegExp = kindOfTest("RegExp");
|
|
214
|
-
const reduceDescriptors = (obj, reducer) => {
|
|
215
|
-
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
216
|
-
const reducedDescriptors = {};
|
|
217
|
-
forEach(descriptors, (descriptor, name) => {
|
|
218
|
-
let ret;
|
|
219
|
-
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
220
|
-
reducedDescriptors[name] = ret || descriptor;
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
Object.defineProperties(obj, reducedDescriptors);
|
|
224
|
-
};
|
|
225
|
-
const freezeMethods = (obj) => {
|
|
226
|
-
reduceDescriptors(obj, (descriptor, name) => {
|
|
227
|
-
if (isFunction(obj) && ["arguments", "caller", "callee"].indexOf(name) !== -1) {
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
const value = obj[name];
|
|
231
|
-
if (!isFunction(value)) return;
|
|
232
|
-
descriptor.enumerable = false;
|
|
233
|
-
if ("writable" in descriptor) {
|
|
234
|
-
descriptor.writable = false;
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
if (!descriptor.set) {
|
|
238
|
-
descriptor.set = () => {
|
|
239
|
-
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
const toObjectSet = (arrayOrString, delimiter) => {
|
|
245
|
-
const obj = {};
|
|
246
|
-
const define = (arr) => {
|
|
247
|
-
arr.forEach((value) => {
|
|
248
|
-
obj[value] = true;
|
|
249
|
-
});
|
|
250
|
-
};
|
|
251
|
-
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
252
|
-
return obj;
|
|
253
|
-
};
|
|
254
|
-
const noop = () => {
|
|
255
|
-
};
|
|
256
|
-
const toFiniteNumber = (value, defaultValue) => {
|
|
257
|
-
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
258
|
-
};
|
|
259
|
-
function isSpecCompliantForm(thing) {
|
|
260
|
-
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
110
|
+
build(obj);
|
|
111
|
+
return formData;
|
|
261
112
|
}
|
|
262
|
-
const toJSONObject = (obj) => {
|
|
263
|
-
const stack = new Array(10);
|
|
264
|
-
const visit = (source, i) => {
|
|
265
|
-
if (isObject(source)) {
|
|
266
|
-
if (stack.indexOf(source) >= 0) {
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
if (!("toJSON" in source)) {
|
|
270
|
-
stack[i] = source;
|
|
271
|
-
const target = isArray(source) ? [] : {};
|
|
272
|
-
forEach(source, (value, key) => {
|
|
273
|
-
const reducedValue = visit(value, i + 1);
|
|
274
|
-
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
275
|
-
});
|
|
276
|
-
stack[i] = void 0;
|
|
277
|
-
return target;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
return source;
|
|
281
|
-
};
|
|
282
|
-
return visit(obj, 0);
|
|
283
|
-
};
|
|
284
|
-
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
285
|
-
const isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
286
|
-
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
287
|
-
if (setImmediateSupported) {
|
|
288
|
-
return setImmediate;
|
|
289
|
-
}
|
|
290
|
-
return postMessageSupported ? ((token, callbacks) => {
|
|
291
|
-
_global.addEventListener("message", ({ source, data }) => {
|
|
292
|
-
if (source === _global && data === token) {
|
|
293
|
-
callbacks.length && callbacks.shift()();
|
|
294
|
-
}
|
|
295
|
-
}, false);
|
|
296
|
-
return (cb) => {
|
|
297
|
-
callbacks.push(cb);
|
|
298
|
-
_global.postMessage(token, "*");
|
|
299
|
-
};
|
|
300
|
-
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
301
|
-
})(
|
|
302
|
-
typeof setImmediate === "function",
|
|
303
|
-
isFunction(_global.postMessage)
|
|
304
|
-
);
|
|
305
|
-
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process$1 !== "undefined" && process$1.nextTick || _setImmediate;
|
|
306
|
-
const utils = {
|
|
307
|
-
isArray,
|
|
308
|
-
isArrayBuffer,
|
|
309
|
-
isBuffer,
|
|
310
|
-
isFormData,
|
|
311
|
-
isArrayBufferView,
|
|
312
|
-
isString,
|
|
313
|
-
isNumber,
|
|
314
|
-
isBoolean,
|
|
315
|
-
isObject,
|
|
316
|
-
isPlainObject,
|
|
317
|
-
isReadableStream,
|
|
318
|
-
isRequest,
|
|
319
|
-
isResponse,
|
|
320
|
-
isHeaders,
|
|
321
|
-
isUndefined,
|
|
322
|
-
isDate,
|
|
323
|
-
isFile,
|
|
324
|
-
isBlob,
|
|
325
|
-
isRegExp,
|
|
326
|
-
isFunction,
|
|
327
|
-
isStream,
|
|
328
|
-
isURLSearchParams,
|
|
329
|
-
isTypedArray,
|
|
330
|
-
isFileList,
|
|
331
|
-
forEach,
|
|
332
|
-
merge,
|
|
333
|
-
extend,
|
|
334
|
-
trim,
|
|
335
|
-
stripBOM,
|
|
336
|
-
inherits,
|
|
337
|
-
toFlatObject,
|
|
338
|
-
kindOf,
|
|
339
|
-
kindOfTest,
|
|
340
|
-
endsWith,
|
|
341
|
-
toArray,
|
|
342
|
-
forEachEntry,
|
|
343
|
-
matchAll,
|
|
344
|
-
isHTMLForm,
|
|
345
|
-
hasOwnProperty,
|
|
346
|
-
hasOwnProp: hasOwnProperty,
|
|
347
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
348
|
-
reduceDescriptors,
|
|
349
|
-
freezeMethods,
|
|
350
|
-
toObjectSet,
|
|
351
|
-
toCamelCase,
|
|
352
|
-
noop,
|
|
353
|
-
toFiniteNumber,
|
|
354
|
-
findKey,
|
|
355
|
-
global: _global,
|
|
356
|
-
isContextDefined,
|
|
357
|
-
isSpecCompliantForm,
|
|
358
|
-
toJSONObject,
|
|
359
|
-
isAsyncFn,
|
|
360
|
-
isThenable,
|
|
361
|
-
setImmediate: _setImmediate,
|
|
362
|
-
asap
|
|
363
|
-
};
|
|
364
113
|
export {
|
|
365
|
-
|
|
114
|
+
toFormData as default
|
|
366
115
|
};
|
|
367
116
|
//# sourceMappingURL=standards-sdk.es42.js.map
|