@hashgraphonline/standards-sdk 0.0.95 → 0.0.96
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/base-client.d.ts +14 -3
- package/dist/es/hcs-10/base-client.d.ts.map +1 -1
- package/dist/es/hcs-10/connections-manager.d.ts +51 -0
- package/dist/es/hcs-10/connections-manager.d.ts.map +1 -1
- package/dist/es/hcs-10/sdk.d.ts +38 -1
- package/dist/es/hcs-10/sdk.d.ts.map +1 -1
- package/dist/es/hcs-10/types.d.ts +9 -0
- package/dist/es/hcs-10/types.d.ts.map +1 -1
- package/dist/es/services/mirror-node.d.ts +17 -1
- package/dist/es/services/mirror-node.d.ts.map +1 -1
- package/dist/es/services/types.d.ts +24 -0
- package/dist/es/services/types.d.ts.map +1 -1
- package/dist/es/standards-sdk.es.js +6 -4
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/es/standards-sdk.es10.js +66 -0
- package/dist/es/standards-sdk.es10.js.map +1 -1
- package/dist/es/standards-sdk.es100.js +22 -12
- package/dist/es/standards-sdk.es100.js.map +1 -1
- package/dist/es/standards-sdk.es101.js +793 -13
- package/dist/es/standards-sdk.es101.js.map +1 -1
- package/dist/es/standards-sdk.es102.js +172 -30
- package/dist/es/standards-sdk.es102.js.map +1 -1
- package/dist/es/standards-sdk.es103.js +142 -14
- package/dist/es/standards-sdk.es103.js.map +1 -1
- package/dist/es/standards-sdk.es104.js +13 -4
- package/dist/es/standards-sdk.es104.js.map +1 -1
- package/dist/es/standards-sdk.es105.js +13 -4
- package/dist/es/standards-sdk.es105.js.map +1 -1
- package/dist/es/standards-sdk.es106.js +31 -15
- package/dist/es/standards-sdk.es106.js.map +1 -1
- package/dist/es/standards-sdk.es107.js +14 -4
- package/dist/es/standards-sdk.es107.js.map +1 -1
- package/dist/es/standards-sdk.es108.js +4 -39
- package/dist/es/standards-sdk.es108.js.map +1 -1
- package/dist/es/standards-sdk.es109.js +4 -40
- package/dist/es/standards-sdk.es109.js.map +1 -1
- package/dist/es/standards-sdk.es110.js +15 -36
- package/dist/es/standards-sdk.es110.js.map +1 -1
- package/dist/es/standards-sdk.es111.js +5 -78
- package/dist/es/standards-sdk.es111.js.map +1 -1
- package/dist/es/standards-sdk.es112.js +39 -3
- package/dist/es/standards-sdk.es112.js.map +1 -1
- package/dist/es/standards-sdk.es113.js +40 -2
- package/dist/es/standards-sdk.es113.js.map +1 -1
- package/dist/es/standards-sdk.es114.js +37 -2
- package/dist/es/standards-sdk.es114.js.map +1 -1
- package/dist/es/standards-sdk.es115.js +75 -31
- package/dist/es/standards-sdk.es115.js.map +1 -1
- package/dist/es/standards-sdk.es116.js +20 -32
- package/dist/es/standards-sdk.es116.js.map +1 -1
- package/dist/es/standards-sdk.es117.js +27 -9
- package/dist/es/standards-sdk.es117.js.map +1 -1
- package/dist/es/standards-sdk.es118.js +25 -33
- package/dist/es/standards-sdk.es118.js.map +1 -1
- package/dist/es/standards-sdk.es119.js +41 -0
- package/dist/es/standards-sdk.es119.js.map +1 -0
- package/dist/es/standards-sdk.es120.js +6 -0
- package/dist/es/standards-sdk.es120.js.map +1 -0
- package/dist/es/standards-sdk.es121.js +5 -0
- package/dist/es/standards-sdk.es121.js.map +1 -0
- package/dist/es/standards-sdk.es122.js +5 -0
- package/dist/es/standards-sdk.es122.js.map +1 -0
- package/dist/es/standards-sdk.es123.js +37 -0
- package/dist/es/standards-sdk.es123.js.map +1 -0
- package/dist/es/standards-sdk.es124.js +36 -0
- package/dist/es/standards-sdk.es124.js.map +1 -0
- package/dist/es/standards-sdk.es125.js +12 -0
- package/dist/es/standards-sdk.es125.js.map +1 -0
- package/dist/es/standards-sdk.es126.js +37 -0
- package/dist/es/standards-sdk.es126.js.map +1 -0
- package/dist/es/standards-sdk.es13.js +3 -3
- package/dist/es/standards-sdk.es15.js +1 -1
- package/dist/es/standards-sdk.es16.js +1 -1
- package/dist/es/standards-sdk.es18.js +2 -2
- package/dist/es/standards-sdk.es19.js +393 -387
- package/dist/es/standards-sdk.es19.js.map +1 -1
- package/dist/es/standards-sdk.es20.js +385 -314
- package/dist/es/standards-sdk.es20.js.map +1 -1
- package/dist/es/standards-sdk.es21.js +357 -128
- package/dist/es/standards-sdk.es21.js.map +1 -1
- package/dist/es/standards-sdk.es22.js +155 -7
- package/dist/es/standards-sdk.es22.js.map +1 -1
- package/dist/es/standards-sdk.es23.js +7 -1041
- package/dist/es/standards-sdk.es23.js.map +1 -1
- package/dist/es/standards-sdk.es24.js +2 -0
- package/dist/es/standards-sdk.es24.js.map +1 -1
- package/dist/es/standards-sdk.es25.js +1 -1
- package/dist/es/standards-sdk.es26.js +1 -1
- package/dist/es/standards-sdk.es27.js +9 -2
- package/dist/es/standards-sdk.es27.js.map +1 -1
- package/dist/es/standards-sdk.es28.js +2 -4167
- package/dist/es/standards-sdk.es28.js.map +1 -1
- package/dist/es/standards-sdk.es29.js +1041 -36
- package/dist/es/standards-sdk.es29.js.map +1 -1
- package/dist/es/standards-sdk.es30.js +5 -48
- package/dist/es/standards-sdk.es30.js.map +1 -1
- package/dist/es/standards-sdk.es31.js +36 -5
- package/dist/es/standards-sdk.es31.js.map +1 -1
- package/dist/es/standards-sdk.es32.js +48 -2
- package/dist/es/standards-sdk.es32.js.map +1 -1
- package/dist/es/standards-sdk.es33.js +9 -100
- package/dist/es/standards-sdk.es33.js.map +1 -1
- package/dist/es/standards-sdk.es34.js +4167 -2
- package/dist/es/standards-sdk.es34.js.map +1 -1
- package/dist/es/standards-sdk.es35.js +96 -11
- package/dist/es/standards-sdk.es35.js.map +1 -1
- package/dist/es/standards-sdk.es36.js +2 -409
- package/dist/es/standards-sdk.es36.js.map +1 -1
- package/dist/es/standards-sdk.es37.js +15 -194
- package/dist/es/standards-sdk.es37.js.map +1 -1
- package/dist/es/standards-sdk.es38.js +389 -418
- package/dist/es/standards-sdk.es38.js.map +1 -1
- package/dist/es/standards-sdk.es39.js +2282 -25
- 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 +150 -125
- package/dist/es/standards-sdk.es40.js.map +1 -1
- package/dist/es/standards-sdk.es41.js +7130 -12
- package/dist/es/standards-sdk.es41.js.map +1 -1
- package/dist/es/standards-sdk.es42.js +9 -28
- package/dist/es/standards-sdk.es42.js.map +1 -1
- package/dist/es/standards-sdk.es43.js +8 -26
- package/dist/es/standards-sdk.es43.js.map +1 -1
- package/dist/es/standards-sdk.es44.js +15 -18
- package/dist/es/standards-sdk.es44.js.map +1 -1
- package/dist/es/standards-sdk.es45.js +4 -42
- package/dist/es/standards-sdk.es45.js.map +1 -1
- package/dist/es/standards-sdk.es46.js +8 -17
- package/dist/es/standards-sdk.es46.js.map +1 -1
- package/dist/es/standards-sdk.es47.js +3 -61
- package/dist/es/standards-sdk.es47.js.map +1 -1
- package/dist/es/standards-sdk.es48.js +384 -1254
- package/dist/es/standards-sdk.es48.js.map +1 -1
- package/dist/es/standards-sdk.es49.js +2 -148
- package/dist/es/standards-sdk.es49.js.map +1 -1
- package/dist/es/standards-sdk.es5.js +31 -8
- package/dist/es/standards-sdk.es5.js.map +1 -1
- package/dist/es/standards-sdk.es50.js +115 -86
- package/dist/es/standards-sdk.es50.js.map +1 -1
- package/dist/es/standards-sdk.es51.js +3 -83
- package/dist/es/standards-sdk.es51.js.map +1 -1
- package/dist/es/standards-sdk.es52.js +360 -28
- package/dist/es/standards-sdk.es52.js.map +1 -1
- package/dist/es/standards-sdk.es53.js +5 -5
- package/dist/es/standards-sdk.es53.js.map +1 -1
- package/dist/es/standards-sdk.es54.js +167 -147
- package/dist/es/standards-sdk.es54.js.map +1 -1
- package/dist/es/standards-sdk.es55.js +80 -22
- package/dist/es/standards-sdk.es55.js.map +1 -1
- package/dist/es/standards-sdk.es56.js +102 -781
- package/dist/es/standards-sdk.es56.js.map +1 -1
- package/dist/es/standards-sdk.es57.js +44 -166
- package/dist/es/standards-sdk.es57.js.map +1 -1
- package/dist/es/standards-sdk.es58.js +10 -2282
- package/dist/es/standards-sdk.es58.js.map +1 -1
- package/dist/es/standards-sdk.es59.js +85 -152
- package/dist/es/standards-sdk.es59.js.map +1 -1
- package/dist/es/standards-sdk.es60.js +3 -142
- package/dist/es/standards-sdk.es60.js.map +1 -1
- package/dist/es/standards-sdk.es61.js +2 -7136
- package/dist/es/standards-sdk.es61.js.map +1 -1
- package/dist/es/standards-sdk.es62.js +108 -16
- package/dist/es/standards-sdk.es62.js.map +1 -1
- package/dist/es/standards-sdk.es63.js +72 -25
- package/dist/es/standards-sdk.es63.js.map +1 -1
- package/dist/es/standards-sdk.es64.js +5 -25
- package/dist/es/standards-sdk.es64.js.map +1 -1
- package/dist/es/standards-sdk.es65.js +4 -37
- package/dist/es/standards-sdk.es65.js.map +1 -1
- package/dist/es/standards-sdk.es66.js +187 -385
- package/dist/es/standards-sdk.es66.js.map +1 -1
- package/dist/es/standards-sdk.es67.js +58 -2
- package/dist/es/standards-sdk.es67.js.map +1 -1
- package/dist/es/standards-sdk.es68.js +69 -120
- package/dist/es/standards-sdk.es68.js.map +1 -1
- package/dist/es/standards-sdk.es69.js +2 -3
- package/dist/es/standards-sdk.es69.js.map +1 -1
- package/dist/es/standards-sdk.es7.js +103 -2
- package/dist/es/standards-sdk.es7.js.map +1 -1
- package/dist/es/standards-sdk.es70.js +31 -3
- package/dist/es/standards-sdk.es70.js.map +1 -1
- package/dist/es/standards-sdk.es71.js +54 -355
- package/dist/es/standards-sdk.es71.js.map +1 -1
- package/dist/es/standards-sdk.es72.js +49 -5
- package/dist/es/standards-sdk.es72.js.map +1 -1
- package/dist/es/standards-sdk.es73.js +9 -178
- package/dist/es/standards-sdk.es73.js.map +1 -1
- package/dist/es/standards-sdk.es74.js +57 -73
- package/dist/es/standards-sdk.es74.js.map +1 -1
- package/dist/es/standards-sdk.es75.js +5 -113
- package/dist/es/standards-sdk.es75.js.map +1 -1
- package/dist/es/standards-sdk.es76.js +12 -49
- package/dist/es/standards-sdk.es76.js.map +1 -1
- package/dist/es/standards-sdk.es77.js +7 -10
- package/dist/es/standards-sdk.es77.js.map +1 -1
- package/dist/es/standards-sdk.es78.js +41 -93
- package/dist/es/standards-sdk.es78.js.map +1 -1
- package/dist/es/standards-sdk.es79.js +2 -4
- package/dist/es/standards-sdk.es79.js.map +1 -1
- package/dist/es/standards-sdk.es8.js +1 -1
- package/dist/es/standards-sdk.es80.js +136 -2
- package/dist/es/standards-sdk.es80.js.map +1 -1
- package/dist/es/standards-sdk.es81.js +162 -103
- package/dist/es/standards-sdk.es81.js.map +1 -1
- package/dist/es/standards-sdk.es82.js +190 -69
- package/dist/es/standards-sdk.es82.js.map +1 -1
- package/dist/es/standards-sdk.es83.js +437 -5
- package/dist/es/standards-sdk.es83.js.map +1 -1
- package/dist/es/standards-sdk.es84.js +24 -4
- package/dist/es/standards-sdk.es84.js.map +1 -1
- package/dist/es/standards-sdk.es85.js +122 -204
- package/dist/es/standards-sdk.es85.js.map +1 -1
- package/dist/es/standards-sdk.es86.js +17 -57
- package/dist/es/standards-sdk.es86.js.map +1 -1
- package/dist/es/standards-sdk.es87.js +29 -69
- package/dist/es/standards-sdk.es87.js.map +1 -1
- package/dist/es/standards-sdk.es88.js +24 -27
- package/dist/es/standards-sdk.es88.js.map +1 -1
- package/dist/es/standards-sdk.es89.js +15 -57
- package/dist/es/standards-sdk.es89.js.map +1 -1
- package/dist/es/standards-sdk.es9.js +1 -1
- package/dist/es/standards-sdk.es90.js +39 -45
- package/dist/es/standards-sdk.es90.js.map +1 -1
- package/dist/es/standards-sdk.es91.js +17 -9
- package/dist/es/standards-sdk.es91.js.map +1 -1
- package/dist/es/standards-sdk.es92.js +57 -61
- package/dist/es/standards-sdk.es92.js.map +1 -1
- package/dist/es/standards-sdk.es93.js +1288 -5
- package/dist/es/standards-sdk.es93.js.map +1 -1
- package/dist/es/standards-sdk.es94.js +145 -12
- package/dist/es/standards-sdk.es94.js.map +1 -1
- package/dist/es/standards-sdk.es95.js +91 -7
- package/dist/es/standards-sdk.es95.js.map +1 -1
- package/dist/es/standards-sdk.es96.js +82 -43
- package/dist/es/standards-sdk.es96.js.map +1 -1
- package/dist/es/standards-sdk.es97.js +32 -2
- package/dist/es/standards-sdk.es97.js.map +1 -1
- package/dist/es/standards-sdk.es98.js +6 -136
- package/dist/es/standards-sdk.es98.js.map +1 -1
- package/dist/es/standards-sdk.es99.js +148 -161
- package/dist/es/standards-sdk.es99.js.map +1 -1
- package/dist/es/utils/index.d.ts +1 -0
- package/dist/es/utils/index.d.ts.map +1 -1
- package/dist/es/utils/transaction-parser.d.ts +103 -0
- package/dist/es/utils/transaction-parser.d.ts.map +1 -0
- package/dist/umd/hcs-10/base-client.d.ts +14 -3
- package/dist/umd/hcs-10/base-client.d.ts.map +1 -1
- package/dist/umd/hcs-10/connections-manager.d.ts +51 -0
- package/dist/umd/hcs-10/connections-manager.d.ts.map +1 -1
- package/dist/umd/hcs-10/sdk.d.ts +38 -1
- package/dist/umd/hcs-10/sdk.d.ts.map +1 -1
- package/dist/umd/hcs-10/types.d.ts +9 -0
- package/dist/umd/hcs-10/types.d.ts.map +1 -1
- package/dist/umd/services/mirror-node.d.ts +17 -1
- package/dist/umd/services/mirror-node.d.ts.map +1 -1
- package/dist/umd/services/types.d.ts +24 -0
- package/dist/umd/services/types.d.ts.map +1 -1
- package/dist/umd/standards-sdk.umd.js +8 -8
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/dist/umd/utils/index.d.ts +1 -0
- package/dist/umd/utils/index.d.ts.map +1 -1
- package/dist/umd/utils/transaction-parser.d.ts +103 -0
- package/dist/umd/utils/transaction-parser.d.ts.map +1 -0
- package/package.json +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es58.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"standards-sdk.es58.js","sources":["../../node_modules/axios/lib/cancel/CanceledError.js"],"sourcesContent":["'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n"],"names":[],"mappings":";;AAcA,SAAS,cAAc,SAAS,QAAQ,SAAS;AAE/C,aAAW,KAAK,MAAM,WAAW,OAAO,aAAa,SAAS,WAAW,cAAc,QAAQ,OAAO;AACtG,OAAK,OAAO;AACd;AAEA,MAAM,SAAS,eAAe,YAAY;AAAA,EACxC,YAAY;AACd,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,167 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var cachedSetTimeout;
|
|
7
|
-
var cachedClearTimeout;
|
|
8
|
-
function defaultSetTimout() {
|
|
9
|
-
throw new Error("setTimeout has not been defined");
|
|
10
|
-
}
|
|
11
|
-
function defaultClearTimeout() {
|
|
12
|
-
throw new Error("clearTimeout has not been defined");
|
|
13
|
-
}
|
|
14
|
-
(function() {
|
|
15
|
-
try {
|
|
16
|
-
if (typeof setTimeout === "function") {
|
|
17
|
-
cachedSetTimeout = setTimeout;
|
|
18
|
-
} else {
|
|
19
|
-
cachedSetTimeout = defaultSetTimout;
|
|
1
|
+
import CanceledError from "./standards-sdk.es58.js";
|
|
2
|
+
class CancelToken {
|
|
3
|
+
constructor(executor) {
|
|
4
|
+
if (typeof executor !== "function") {
|
|
5
|
+
throw new TypeError("executor must be a function.");
|
|
20
6
|
}
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
let resolvePromise;
|
|
8
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
9
|
+
resolvePromise = resolve;
|
|
10
|
+
});
|
|
11
|
+
const token = this;
|
|
12
|
+
this.promise.then((cancel) => {
|
|
13
|
+
if (!token._listeners) return;
|
|
14
|
+
let i = token._listeners.length;
|
|
15
|
+
while (i-- > 0) {
|
|
16
|
+
token._listeners[i](cancel);
|
|
17
|
+
}
|
|
18
|
+
token._listeners = null;
|
|
19
|
+
});
|
|
20
|
+
this.promise.then = (onfulfilled) => {
|
|
21
|
+
let _resolve;
|
|
22
|
+
const promise = new Promise((resolve) => {
|
|
23
|
+
token.subscribe(resolve);
|
|
24
|
+
_resolve = resolve;
|
|
25
|
+
}).then(onfulfilled);
|
|
26
|
+
promise.cancel = function reject() {
|
|
27
|
+
token.unsubscribe(_resolve);
|
|
28
|
+
};
|
|
29
|
+
return promise;
|
|
30
|
+
};
|
|
31
|
+
executor(function cancel(message, config, request) {
|
|
32
|
+
if (token.reason) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
token.reason = new CanceledError(message, config, request);
|
|
36
|
+
resolvePromise(token.reason);
|
|
37
|
+
});
|
|
23
38
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
41
|
+
*/
|
|
42
|
+
throwIfRequested() {
|
|
43
|
+
if (this.reason) {
|
|
44
|
+
throw this.reason;
|
|
29
45
|
}
|
|
30
|
-
} catch (e) {
|
|
31
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
32
|
-
}
|
|
33
|
-
})();
|
|
34
|
-
function runTimeout(fun) {
|
|
35
|
-
if (cachedSetTimeout === setTimeout) {
|
|
36
|
-
return setTimeout(fun, 0);
|
|
37
46
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
try {
|
|
46
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
47
|
-
} catch (e2) {
|
|
48
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
47
|
+
/**
|
|
48
|
+
* Subscribe to the cancel signal
|
|
49
|
+
*/
|
|
50
|
+
subscribe(listener) {
|
|
51
|
+
if (this.reason) {
|
|
52
|
+
listener(this.reason);
|
|
53
|
+
return;
|
|
49
54
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return clearTimeout(marker);
|
|
55
|
-
}
|
|
56
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
57
|
-
cachedClearTimeout = clearTimeout;
|
|
58
|
-
return clearTimeout(marker);
|
|
59
|
-
}
|
|
60
|
-
try {
|
|
61
|
-
return cachedClearTimeout(marker);
|
|
62
|
-
} catch (e) {
|
|
63
|
-
try {
|
|
64
|
-
return cachedClearTimeout.call(null, marker);
|
|
65
|
-
} catch (e2) {
|
|
66
|
-
return cachedClearTimeout.call(this, marker);
|
|
55
|
+
if (this._listeners) {
|
|
56
|
+
this._listeners.push(listener);
|
|
57
|
+
} else {
|
|
58
|
+
this._listeners = [listener];
|
|
67
59
|
}
|
|
68
60
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if (!draining || !currentQueue) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
draining = false;
|
|
79
|
-
if (currentQueue.length) {
|
|
80
|
-
queue = currentQueue.concat(queue);
|
|
81
|
-
} else {
|
|
82
|
-
queueIndex = -1;
|
|
83
|
-
}
|
|
84
|
-
if (queue.length) {
|
|
85
|
-
drainQueue();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function drainQueue() {
|
|
89
|
-
if (draining) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
93
|
-
draining = true;
|
|
94
|
-
var len = queue.length;
|
|
95
|
-
while (len) {
|
|
96
|
-
currentQueue = queue;
|
|
97
|
-
queue = [];
|
|
98
|
-
while (++queueIndex < len) {
|
|
99
|
-
if (currentQueue) {
|
|
100
|
-
currentQueue[queueIndex].run();
|
|
101
|
-
}
|
|
61
|
+
/**
|
|
62
|
+
* Unsubscribe from the cancel signal
|
|
63
|
+
*/
|
|
64
|
+
unsubscribe(listener) {
|
|
65
|
+
if (!this._listeners) {
|
|
66
|
+
return;
|
|
102
67
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
currentQueue = null;
|
|
107
|
-
draining = false;
|
|
108
|
-
runClearTimeout(timeout);
|
|
109
|
-
}
|
|
110
|
-
process.nextTick = function(fun) {
|
|
111
|
-
var args = new Array(arguments.length - 1);
|
|
112
|
-
if (arguments.length > 1) {
|
|
113
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
114
|
-
args[i - 1] = arguments[i];
|
|
68
|
+
const index = this._listeners.indexOf(listener);
|
|
69
|
+
if (index !== -1) {
|
|
70
|
+
this._listeners.splice(index, 1);
|
|
115
71
|
}
|
|
116
72
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
73
|
+
toAbortSignal() {
|
|
74
|
+
const controller = new AbortController();
|
|
75
|
+
const abort = (err) => {
|
|
76
|
+
controller.abort(err);
|
|
77
|
+
};
|
|
78
|
+
this.subscribe(abort);
|
|
79
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
80
|
+
return controller.signal;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
84
|
+
* cancels the `CancelToken`.
|
|
85
|
+
*/
|
|
86
|
+
static source() {
|
|
87
|
+
let cancel;
|
|
88
|
+
const token = new CancelToken(function executor(c) {
|
|
89
|
+
cancel = c;
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
token,
|
|
93
|
+
cancel
|
|
94
|
+
};
|
|
120
95
|
}
|
|
121
|
-
};
|
|
122
|
-
function Item(fun, array) {
|
|
123
|
-
this.fun = fun;
|
|
124
|
-
this.array = array;
|
|
125
|
-
}
|
|
126
|
-
Item.prototype.run = function() {
|
|
127
|
-
this.fun.apply(null, this.array);
|
|
128
|
-
};
|
|
129
|
-
process.title = "browser";
|
|
130
|
-
process.browser = true;
|
|
131
|
-
process.env = {};
|
|
132
|
-
process.argv = [];
|
|
133
|
-
process.version = "";
|
|
134
|
-
process.versions = {};
|
|
135
|
-
function noop() {
|
|
136
96
|
}
|
|
137
|
-
process.on = noop;
|
|
138
|
-
process.addListener = noop;
|
|
139
|
-
process.once = noop;
|
|
140
|
-
process.off = noop;
|
|
141
|
-
process.removeListener = noop;
|
|
142
|
-
process.removeAllListeners = noop;
|
|
143
|
-
process.emit = noop;
|
|
144
|
-
process.prependListener = noop;
|
|
145
|
-
process.prependOnceListener = noop;
|
|
146
|
-
process.listeners = function(name) {
|
|
147
|
-
return [];
|
|
148
|
-
};
|
|
149
|
-
process.binding = function(name) {
|
|
150
|
-
throw new Error("process.binding is not supported");
|
|
151
|
-
};
|
|
152
|
-
process.cwd = function() {
|
|
153
|
-
return "/";
|
|
154
|
-
};
|
|
155
|
-
process.chdir = function(dir) {
|
|
156
|
-
throw new Error("process.chdir is not supported");
|
|
157
|
-
};
|
|
158
|
-
process.umask = function() {
|
|
159
|
-
return 0;
|
|
160
|
-
};
|
|
161
|
-
var browserExports = browser.exports;
|
|
162
|
-
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
163
97
|
export {
|
|
164
|
-
|
|
165
|
-
process$1 as process
|
|
98
|
+
CancelToken as default
|
|
166
99
|
};
|
|
167
100
|
//# sourceMappingURL=standards-sdk.es59.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es59.js","sources":["../../node_modules/
|
|
1
|
+
{"version":3,"file":"standards-sdk.es59.js","sources":["../../node_modules/axios/lib/cancel/CancelToken.js"],"sourcesContent":["'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n"],"names":[],"mappings":";AAWA,MAAM,YAAY;AAAA,EAChB,YAAY,UAAU;AACpB,QAAI,OAAO,aAAa,YAAY;AAClC,YAAM,IAAI,UAAU,8BAA8B;AAAA,IACxD;AAEI,QAAI;AAEJ,SAAK,UAAU,IAAI,QAAQ,SAAS,gBAAgB,SAAS;AAC3D,uBAAiB;AAAA,IACvB,CAAK;AAED,UAAM,QAAQ;AAGd,SAAK,QAAQ,KAAK,YAAU;AAC1B,UAAI,CAAC,MAAM,WAAY;AAEvB,UAAI,IAAI,MAAM,WAAW;AAEzB,aAAO,MAAM,GAAG;AACd,cAAM,WAAW,CAAC,EAAE,MAAM;AAAA,MAClC;AACM,YAAM,aAAa;AAAA,IACzB,CAAK;AAGD,SAAK,QAAQ,OAAO,iBAAe;AACjC,UAAI;AAEJ,YAAM,UAAU,IAAI,QAAQ,aAAW;AACrC,cAAM,UAAU,OAAO;AACvB,mBAAW;AAAA,MACnB,CAAO,EAAE,KAAK,WAAW;AAEnB,cAAQ,SAAS,SAAS,SAAS;AACjC,cAAM,YAAY,QAAQ;AAAA,MAC3B;AAED,aAAO;AAAA,IACR;AAED,aAAS,SAAS,OAAO,SAAS,QAAQ,SAAS;AACjD,UAAI,MAAM,QAAQ;AAEhB;AAAA,MACR;AAEM,YAAM,SAAS,IAAI,cAAc,SAAS,QAAQ,OAAO;AACzD,qBAAe,MAAM,MAAM;AAAA,IACjC,CAAK;AAAA,EACL;AAAA;AAAA;AAAA;AAAA,EAKE,mBAAmB;AACjB,QAAI,KAAK,QAAQ;AACf,YAAM,KAAK;AAAA,IACjB;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAME,UAAU,UAAU;AAClB,QAAI,KAAK,QAAQ;AACf,eAAS,KAAK,MAAM;AACpB;AAAA,IACN;AAEI,QAAI,KAAK,YAAY;AACnB,WAAK,WAAW,KAAK,QAAQ;AAAA,IACnC,OAAW;AACL,WAAK,aAAa,CAAC,QAAQ;AAAA,IACjC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAME,YAAY,UAAU;AACpB,QAAI,CAAC,KAAK,YAAY;AACpB;AAAA,IACN;AACI,UAAM,QAAQ,KAAK,WAAW,QAAQ,QAAQ;AAC9C,QAAI,UAAU,IAAI;AAChB,WAAK,WAAW,OAAO,OAAO,CAAC;AAAA,IACrC;AAAA,EACA;AAAA,EAEE,gBAAgB;AACd,UAAM,aAAa,IAAI,gBAAiB;AAExC,UAAM,QAAQ,CAAC,QAAQ;AACrB,iBAAW,MAAM,GAAG;AAAA,IACrB;AAED,SAAK,UAAU,KAAK;AAEpB,eAAW,OAAO,cAAc,MAAM,KAAK,YAAY,KAAK;AAE5D,WAAO,WAAW;AAAA,EACtB;AAAA;AAAA;AAAA;AAAA;AAAA,EAME,OAAO,SAAS;AACd,QAAI;AACJ,UAAM,QAAQ,IAAI,YAAY,SAAS,SAAS,GAAG;AACjD,eAAS;AAAA,IACf,CAAK;AACD,WAAO;AAAA,MACL;AAAA,MACA;AAAA,IACD;AAAA,EACL;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,146 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function errorFunc(reason, offset, bytes, output, badCodepoint) {
|
|
4
|
-
assertArgument(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes);
|
|
5
|
-
}
|
|
6
|
-
function ignoreFunc(reason, offset, bytes, output, badCodepoint) {
|
|
7
|
-
if (reason === "BAD_PREFIX" || reason === "UNEXPECTED_CONTINUE") {
|
|
8
|
-
let i = 0;
|
|
9
|
-
for (let o = offset + 1; o < bytes.length; o++) {
|
|
10
|
-
if (bytes[o] >> 6 !== 2) {
|
|
11
|
-
break;
|
|
12
|
-
}
|
|
13
|
-
i++;
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
if (reason === "OVERRUN") {
|
|
18
|
-
return bytes.length - offset - 1;
|
|
19
|
-
}
|
|
20
|
-
return 0;
|
|
21
|
-
}
|
|
22
|
-
function replaceFunc(reason, offset, bytes, output, badCodepoint) {
|
|
23
|
-
if (reason === "OVERLONG") {
|
|
24
|
-
assertArgument(typeof badCodepoint === "number", "invalid bad code point for replacement", "badCodepoint", badCodepoint);
|
|
25
|
-
output.push(badCodepoint);
|
|
26
|
-
return 0;
|
|
27
|
-
}
|
|
28
|
-
output.push(65533);
|
|
29
|
-
return ignoreFunc(reason, offset, bytes);
|
|
30
|
-
}
|
|
31
|
-
const Utf8ErrorFuncs = Object.freeze({
|
|
32
|
-
error: errorFunc,
|
|
33
|
-
ignore: ignoreFunc,
|
|
34
|
-
replace: replaceFunc
|
|
35
|
-
});
|
|
36
|
-
function getUtf8CodePoints(_bytes, onError) {
|
|
37
|
-
if (onError == null) {
|
|
38
|
-
onError = Utf8ErrorFuncs.error;
|
|
39
|
-
}
|
|
40
|
-
const bytes = getBytes(_bytes, "bytes");
|
|
41
|
-
const result = [];
|
|
42
|
-
let i = 0;
|
|
43
|
-
while (i < bytes.length) {
|
|
44
|
-
const c = bytes[i++];
|
|
45
|
-
if (c >> 7 === 0) {
|
|
46
|
-
result.push(c);
|
|
47
|
-
continue;
|
|
48
|
-
}
|
|
49
|
-
let extraLength = null;
|
|
50
|
-
let overlongMask = null;
|
|
51
|
-
if ((c & 224) === 192) {
|
|
52
|
-
extraLength = 1;
|
|
53
|
-
overlongMask = 127;
|
|
54
|
-
} else if ((c & 240) === 224) {
|
|
55
|
-
extraLength = 2;
|
|
56
|
-
overlongMask = 2047;
|
|
57
|
-
} else if ((c & 248) === 240) {
|
|
58
|
-
extraLength = 3;
|
|
59
|
-
overlongMask = 65535;
|
|
60
|
-
} else {
|
|
61
|
-
if ((c & 192) === 128) {
|
|
62
|
-
i += onError("UNEXPECTED_CONTINUE", i - 1, bytes, result);
|
|
63
|
-
} else {
|
|
64
|
-
i += onError("BAD_PREFIX", i - 1, bytes, result);
|
|
65
|
-
}
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
if (i - 1 + extraLength >= bytes.length) {
|
|
69
|
-
i += onError("OVERRUN", i - 1, bytes, result);
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
let res = c & (1 << 8 - extraLength - 1) - 1;
|
|
73
|
-
for (let j = 0; j < extraLength; j++) {
|
|
74
|
-
let nextChar = bytes[i];
|
|
75
|
-
if ((nextChar & 192) != 128) {
|
|
76
|
-
i += onError("MISSING_CONTINUE", i, bytes, result);
|
|
77
|
-
res = null;
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
res = res << 6 | nextChar & 63;
|
|
81
|
-
i++;
|
|
82
|
-
}
|
|
83
|
-
if (res === null) {
|
|
84
|
-
continue;
|
|
85
|
-
}
|
|
86
|
-
if (res > 1114111) {
|
|
87
|
-
i += onError("OUT_OF_RANGE", i - 1 - extraLength, bytes, result, res);
|
|
88
|
-
continue;
|
|
89
|
-
}
|
|
90
|
-
if (res >= 55296 && res <= 57343) {
|
|
91
|
-
i += onError("UTF16_SURROGATE", i - 1 - extraLength, bytes, result, res);
|
|
92
|
-
continue;
|
|
93
|
-
}
|
|
94
|
-
if (res <= overlongMask) {
|
|
95
|
-
i += onError("OVERLONG", i - 1 - extraLength, bytes, result, res);
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
result.push(res);
|
|
99
|
-
}
|
|
100
|
-
return result;
|
|
101
|
-
}
|
|
102
|
-
function toUtf8Bytes(str, form) {
|
|
103
|
-
assertArgument(typeof str === "string", "invalid string value", "str", str);
|
|
104
|
-
let result = [];
|
|
105
|
-
for (let i = 0; i < str.length; i++) {
|
|
106
|
-
const c = str.charCodeAt(i);
|
|
107
|
-
if (c < 128) {
|
|
108
|
-
result.push(c);
|
|
109
|
-
} else if (c < 2048) {
|
|
110
|
-
result.push(c >> 6 | 192);
|
|
111
|
-
result.push(c & 63 | 128);
|
|
112
|
-
} else if ((c & 64512) == 55296) {
|
|
113
|
-
i++;
|
|
114
|
-
const c2 = str.charCodeAt(i);
|
|
115
|
-
assertArgument(i < str.length && (c2 & 64512) === 56320, "invalid surrogate pair", "str", str);
|
|
116
|
-
const pair = 65536 + ((c & 1023) << 10) + (c2 & 1023);
|
|
117
|
-
result.push(pair >> 18 | 240);
|
|
118
|
-
result.push(pair >> 12 & 63 | 128);
|
|
119
|
-
result.push(pair >> 6 & 63 | 128);
|
|
120
|
-
result.push(pair & 63 | 128);
|
|
121
|
-
} else {
|
|
122
|
-
result.push(c >> 12 | 224);
|
|
123
|
-
result.push(c >> 6 & 63 | 128);
|
|
124
|
-
result.push(c & 63 | 128);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return new Uint8Array(result);
|
|
128
|
-
}
|
|
129
|
-
function _toUtf8String(codePoints) {
|
|
130
|
-
return codePoints.map((codePoint) => {
|
|
131
|
-
if (codePoint <= 65535) {
|
|
132
|
-
return String.fromCharCode(codePoint);
|
|
133
|
-
}
|
|
134
|
-
codePoint -= 65536;
|
|
135
|
-
return String.fromCharCode((codePoint >> 10 & 1023) + 55296, (codePoint & 1023) + 56320);
|
|
136
|
-
}).join("");
|
|
137
|
-
}
|
|
138
|
-
function toUtf8String(bytes, onError) {
|
|
139
|
-
return _toUtf8String(getUtf8CodePoints(bytes, onError));
|
|
1
|
+
function isCancel(value) {
|
|
2
|
+
return !!(value && value.__CANCEL__);
|
|
140
3
|
}
|
|
141
4
|
export {
|
|
142
|
-
|
|
143
|
-
toUtf8Bytes,
|
|
144
|
-
toUtf8String
|
|
5
|
+
isCancel as default
|
|
145
6
|
};
|
|
146
7
|
//# sourceMappingURL=standards-sdk.es60.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es60.js","sources":["../../node_modules/ethers/lib.esm/utils/utf8.js"],"sourcesContent":["/**\n * Using strings in Ethereum (or any security-basd system) requires\n * additional care. These utilities attempt to mitigate some of the\n * safety issues as well as provide the ability to recover and analyse\n * strings.\n *\n * @_subsection api/utils:Strings and UTF-8 [about-strings]\n */\nimport { getBytes } from \"./data.js\";\nimport { assertArgument, assertNormalize } from \"./errors.js\";\nfunction errorFunc(reason, offset, bytes, output, badCodepoint) {\n assertArgument(false, `invalid codepoint at offset ${offset}; ${reason}`, \"bytes\", bytes);\n}\nfunction ignoreFunc(reason, offset, bytes, output, badCodepoint) {\n // If there is an invalid prefix (including stray continuation), skip any additional continuation bytes\n if (reason === \"BAD_PREFIX\" || reason === \"UNEXPECTED_CONTINUE\") {\n let i = 0;\n for (let o = offset + 1; o < bytes.length; o++) {\n if (bytes[o] >> 6 !== 0x02) {\n break;\n }\n i++;\n }\n return i;\n }\n // This byte runs us past the end of the string, so just jump to the end\n // (but the first byte was read already read and therefore skipped)\n if (reason === \"OVERRUN\") {\n return bytes.length - offset - 1;\n }\n // Nothing to skip\n return 0;\n}\nfunction replaceFunc(reason, offset, bytes, output, badCodepoint) {\n // Overlong representations are otherwise \"valid\" code points; just non-deistingtished\n if (reason === \"OVERLONG\") {\n assertArgument(typeof (badCodepoint) === \"number\", \"invalid bad code point for replacement\", \"badCodepoint\", badCodepoint);\n output.push(badCodepoint);\n return 0;\n }\n // Put the replacement character into the output\n output.push(0xfffd);\n // Otherwise, process as if ignoring errors\n return ignoreFunc(reason, offset, bytes, output, badCodepoint);\n}\n/**\n * A handful of popular, built-in UTF-8 error handling strategies.\n *\n * **``\"error\"``** - throws on ANY illegal UTF-8 sequence or\n * non-canonical (overlong) codepoints (this is the default)\n *\n * **``\"ignore\"``** - silently drops any illegal UTF-8 sequence\n * and accepts non-canonical (overlong) codepoints\n *\n * **``\"replace\"``** - replace any illegal UTF-8 sequence with the\n * UTF-8 replacement character (i.e. ``\"\\\\ufffd\"``) and accepts\n * non-canonical (overlong) codepoints\n *\n * @returns: Record<\"error\" | \"ignore\" | \"replace\", Utf8ErrorFunc>\n */\nexport const Utf8ErrorFuncs = Object.freeze({\n error: errorFunc,\n ignore: ignoreFunc,\n replace: replaceFunc\n});\n// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499\nfunction getUtf8CodePoints(_bytes, onError) {\n if (onError == null) {\n onError = Utf8ErrorFuncs.error;\n }\n const bytes = getBytes(_bytes, \"bytes\");\n const result = [];\n let i = 0;\n // Invalid bytes are ignored\n while (i < bytes.length) {\n const c = bytes[i++];\n // 0xxx xxxx\n if (c >> 7 === 0) {\n result.push(c);\n continue;\n }\n // Multibyte; how many bytes left for this character?\n let extraLength = null;\n let overlongMask = null;\n // 110x xxxx 10xx xxxx\n if ((c & 0xe0) === 0xc0) {\n extraLength = 1;\n overlongMask = 0x7f;\n // 1110 xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf0) === 0xe0) {\n extraLength = 2;\n overlongMask = 0x7ff;\n // 1111 0xxx 10xx xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf8) === 0xf0) {\n extraLength = 3;\n overlongMask = 0xffff;\n }\n else {\n if ((c & 0xc0) === 0x80) {\n i += onError(\"UNEXPECTED_CONTINUE\", i - 1, bytes, result);\n }\n else {\n i += onError(\"BAD_PREFIX\", i - 1, bytes, result);\n }\n continue;\n }\n // Do we have enough bytes in our data?\n if (i - 1 + extraLength >= bytes.length) {\n i += onError(\"OVERRUN\", i - 1, bytes, result);\n continue;\n }\n // Remove the length prefix from the char\n let res = c & ((1 << (8 - extraLength - 1)) - 1);\n for (let j = 0; j < extraLength; j++) {\n let nextChar = bytes[i];\n // Invalid continuation byte\n if ((nextChar & 0xc0) != 0x80) {\n i += onError(\"MISSING_CONTINUE\", i, bytes, result);\n res = null;\n break;\n }\n ;\n res = (res << 6) | (nextChar & 0x3f);\n i++;\n }\n // See above loop for invalid continuation byte\n if (res === null) {\n continue;\n }\n // Maximum code point\n if (res > 0x10ffff) {\n i += onError(\"OUT_OF_RANGE\", i - 1 - extraLength, bytes, result, res);\n continue;\n }\n // Reserved for UTF-16 surrogate halves\n if (res >= 0xd800 && res <= 0xdfff) {\n i += onError(\"UTF16_SURROGATE\", i - 1 - extraLength, bytes, result, res);\n continue;\n }\n // Check for overlong sequences (more bytes than needed)\n if (res <= overlongMask) {\n i += onError(\"OVERLONG\", i - 1 - extraLength, bytes, result, res);\n continue;\n }\n result.push(res);\n }\n return result;\n}\n// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array\n/**\n * Returns the UTF-8 byte representation of %%str%%.\n *\n * If %%form%% is specified, the string is normalized.\n */\nexport function toUtf8Bytes(str, form) {\n assertArgument(typeof (str) === \"string\", \"invalid string value\", \"str\", str);\n if (form != null) {\n assertNormalize(form);\n str = str.normalize(form);\n }\n let result = [];\n for (let i = 0; i < str.length; i++) {\n const c = str.charCodeAt(i);\n if (c < 0x80) {\n result.push(c);\n }\n else if (c < 0x800) {\n result.push((c >> 6) | 0xc0);\n result.push((c & 0x3f) | 0x80);\n }\n else if ((c & 0xfc00) == 0xd800) {\n i++;\n const c2 = str.charCodeAt(i);\n assertArgument(i < str.length && ((c2 & 0xfc00) === 0xdc00), \"invalid surrogate pair\", \"str\", str);\n // Surrogate Pair\n const pair = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff);\n result.push((pair >> 18) | 0xf0);\n result.push(((pair >> 12) & 0x3f) | 0x80);\n result.push(((pair >> 6) & 0x3f) | 0x80);\n result.push((pair & 0x3f) | 0x80);\n }\n else {\n result.push((c >> 12) | 0xe0);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n }\n return new Uint8Array(result);\n}\n;\n//export \nfunction _toUtf8String(codePoints) {\n return codePoints.map((codePoint) => {\n if (codePoint <= 0xffff) {\n return String.fromCharCode(codePoint);\n }\n codePoint -= 0x10000;\n return String.fromCharCode((((codePoint >> 10) & 0x3ff) + 0xd800), ((codePoint & 0x3ff) + 0xdc00));\n }).join(\"\");\n}\n/**\n * Returns the string represented by the UTF-8 data %%bytes%%.\n *\n * When %%onError%% function is specified, it is called on UTF-8\n * errors allowing recovery using the [[Utf8ErrorFunc]] API.\n * (default: [error](Utf8ErrorFuncs))\n */\nexport function toUtf8String(bytes, onError) {\n return _toUtf8String(getUtf8CodePoints(bytes, onError));\n}\n/**\n * Returns the UTF-8 code-points for %%str%%.\n *\n * If %%form%% is specified, the string is normalized.\n */\nexport function toUtf8CodePoints(str, form) {\n return getUtf8CodePoints(toUtf8Bytes(str, form));\n}\n//# sourceMappingURL=utf8.js.map"],"names":[],"mappings":";;AAUA,SAAS,UAAU,QAAQ,QAAQ,OAAO,QAAQ,cAAc;AAC5D,iBAAe,OAAO,+BAA+B,MAAM,KAAK,MAAM,IAAI,SAAS,KAAK;AAC5F;AACA,SAAS,WAAW,QAAQ,QAAQ,OAAO,QAAQ,cAAc;AAE7D,MAAI,WAAW,gBAAgB,WAAW,uBAAuB;AAC7D,QAAI,IAAI;AACR,aAAS,IAAI,SAAS,GAAG,IAAI,MAAM,QAAQ,KAAK;AAC5C,UAAI,MAAM,CAAC,KAAK,MAAM,GAAM;AACxB;AAAA,MAChB;AACY;AAAA,IACZ;AACQ,WAAO;AAAA,EACf;AAGI,MAAI,WAAW,WAAW;AACtB,WAAO,MAAM,SAAS,SAAS;AAAA,EACvC;AAEI,SAAO;AACX;AACA,SAAS,YAAY,QAAQ,QAAQ,OAAO,QAAQ,cAAc;AAE9D,MAAI,WAAW,YAAY;AACvB,mBAAe,OAAQ,iBAAkB,UAAU,0CAA0C,gBAAgB,YAAY;AACzH,WAAO,KAAK,YAAY;AACxB,WAAO;AAAA,EACf;AAEI,SAAO,KAAK,KAAM;AAElB,SAAO,WAAW,QAAQ,QAAQ,KAA2B;AACjE;AAgBY,MAAC,iBAAiB,OAAO,OAAO;AAAA,EACxC,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AACb,CAAC;AAED,SAAS,kBAAkB,QAAQ,SAAS;AACxC,MAAI,WAAW,MAAM;AACjB,cAAU,eAAe;AAAA,EACjC;AACI,QAAM,QAAQ,SAAS,QAAQ,OAAO;AACtC,QAAM,SAAS,CAAE;AACjB,MAAI,IAAI;AAER,SAAO,IAAI,MAAM,QAAQ;AACrB,UAAM,IAAI,MAAM,GAAG;AAEnB,QAAI,KAAK,MAAM,GAAG;AACd,aAAO,KAAK,CAAC;AACb;AAAA,IACZ;AAEQ,QAAI,cAAc;AAClB,QAAI,eAAe;AAEnB,SAAK,IAAI,SAAU,KAAM;AACrB,oBAAc;AACd,qBAAe;AAAA,IAE3B,YACkB,IAAI,SAAU,KAAM;AAC1B,oBAAc;AACd,qBAAe;AAAA,IAE3B,YACkB,IAAI,SAAU,KAAM;AAC1B,oBAAc;AACd,qBAAe;AAAA,IAC3B,OACa;AACD,WAAK,IAAI,SAAU,KAAM;AACrB,aAAK,QAAQ,uBAAuB,IAAI,GAAG,OAAO,MAAM;AAAA,MACxE,OACiB;AACD,aAAK,QAAQ,cAAc,IAAI,GAAG,OAAO,MAAM;AAAA,MAC/D;AACY;AAAA,IACZ;AAEQ,QAAI,IAAI,IAAI,eAAe,MAAM,QAAQ;AACrC,WAAK,QAAQ,WAAW,IAAI,GAAG,OAAO,MAAM;AAC5C;AAAA,IACZ;AAEQ,QAAI,MAAM,KAAM,KAAM,IAAI,cAAc,KAAM;AAC9C,aAAS,IAAI,GAAG,IAAI,aAAa,KAAK;AAClC,UAAI,WAAW,MAAM,CAAC;AAEtB,WAAK,WAAW,QAAS,KAAM;AAC3B,aAAK,QAAQ,oBAAoB,GAAG,OAAO,MAAM;AACjD,cAAM;AACN;AAAA,MAChB;AAEY,YAAO,OAAO,IAAM,WAAW;AAC/B;AAAA,IACZ;AAEQ,QAAI,QAAQ,MAAM;AACd;AAAA,IACZ;AAEQ,QAAI,MAAM,SAAU;AAChB,WAAK,QAAQ,gBAAgB,IAAI,IAAI,aAAa,OAAO,QAAQ,GAAG;AACpE;AAAA,IACZ;AAEQ,QAAI,OAAO,SAAU,OAAO,OAAQ;AAChC,WAAK,QAAQ,mBAAmB,IAAI,IAAI,aAAa,OAAO,QAAQ,GAAG;AACvE;AAAA,IACZ;AAEQ,QAAI,OAAO,cAAc;AACrB,WAAK,QAAQ,YAAY,IAAI,IAAI,aAAa,OAAO,QAAQ,GAAG;AAChE;AAAA,IACZ;AACQ,WAAO,KAAK,GAAG;AAAA,EACvB;AACI,SAAO;AACX;AAOO,SAAS,YAAY,KAAK,MAAM;AACnC,iBAAe,OAAQ,QAAS,UAAU,wBAAwB,OAAO,GAAG;AAK5E,MAAI,SAAS,CAAE;AACf,WAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;AACjC,UAAM,IAAI,IAAI,WAAW,CAAC;AAC1B,QAAI,IAAI,KAAM;AACV,aAAO,KAAK,CAAC;AAAA,IACzB,WACiB,IAAI,MAAO;AAChB,aAAO,KAAM,KAAK,IAAK,GAAI;AAC3B,aAAO,KAAM,IAAI,KAAQ,GAAI;AAAA,IACzC,YACkB,IAAI,UAAW,OAAQ;AAC7B;AACA,YAAM,KAAK,IAAI,WAAW,CAAC;AAC3B,qBAAe,IAAI,IAAI,WAAY,KAAK,WAAY,OAAS,0BAA0B,OAAO,GAAG;AAEjG,YAAM,OAAO,UAAY,IAAI,SAAW,OAAO,KAAK;AACpD,aAAO,KAAM,QAAQ,KAAM,GAAI;AAC/B,aAAO,KAAO,QAAQ,KAAM,KAAQ,GAAI;AACxC,aAAO,KAAO,QAAQ,IAAK,KAAQ,GAAI;AACvC,aAAO,KAAM,OAAO,KAAQ,GAAI;AAAA,IAC5C,OACa;AACD,aAAO,KAAM,KAAK,KAAM,GAAI;AAC5B,aAAO,KAAO,KAAK,IAAK,KAAQ,GAAI;AACpC,aAAO,KAAM,IAAI,KAAQ,GAAI;AAAA,IACzC;AAAA,EACA;AACI,SAAO,IAAI,WAAW,MAAM;AAChC;AAGA,SAAS,cAAc,YAAY;AAC/B,SAAO,WAAW,IAAI,CAAC,cAAc;AACjC,QAAI,aAAa,OAAQ;AACrB,aAAO,OAAO,aAAa,SAAS;AAAA,IAChD;AACQ,iBAAa;AACb,WAAO,OAAO,cAAgB,aAAa,KAAM,QAAS,QAAW,YAAY,QAAS,KAAQ;AAAA,EAC1G,CAAK,EAAE,KAAK,EAAE;AACd;AAQO,SAAS,aAAa,OAAO,SAAS;AACzC,SAAO,cAAc,kBAAkB,OAAO,OAAO,CAAC;AAC1D;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"standards-sdk.es60.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]}
|