@hashgraphonline/standards-sdk 0.0.74 → 0.0.76

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.
Files changed (201) hide show
  1. package/dist/es/standards-sdk.es100.js +31 -3
  2. package/dist/es/standards-sdk.es100.js.map +1 -1
  3. package/dist/es/standards-sdk.es101.js +14 -3
  4. package/dist/es/standards-sdk.es101.js.map +1 -1
  5. package/dist/es/standards-sdk.es102.js +3 -15
  6. package/dist/es/standards-sdk.es102.js.map +1 -1
  7. package/dist/es/standards-sdk.es103.js +3 -4
  8. package/dist/es/standards-sdk.es103.js.map +1 -1
  9. package/dist/es/standards-sdk.es104.js +16 -39
  10. package/dist/es/standards-sdk.es104.js.map +1 -1
  11. package/dist/es/standards-sdk.es105.js +5 -40
  12. package/dist/es/standards-sdk.es105.js.map +1 -1
  13. package/dist/es/standards-sdk.es106.js +37 -35
  14. package/dist/es/standards-sdk.es106.js.map +1 -1
  15. package/dist/es/standards-sdk.es107.js +34 -72
  16. package/dist/es/standards-sdk.es107.js.map +1 -1
  17. package/dist/es/standards-sdk.es108.js +37 -4
  18. package/dist/es/standards-sdk.es108.js.map +1 -1
  19. package/dist/es/standards-sdk.es109.js +78 -3
  20. package/dist/es/standards-sdk.es109.js.map +1 -1
  21. package/dist/es/standards-sdk.es110.js +3 -2
  22. package/dist/es/standards-sdk.es110.js.map +1 -1
  23. package/dist/es/standards-sdk.es111.js +2 -2
  24. package/dist/es/standards-sdk.es111.js.map +1 -1
  25. package/dist/es/standards-sdk.es112.js +2 -34
  26. package/dist/es/standards-sdk.es112.js.map +1 -1
  27. package/dist/es/standards-sdk.es113.js +30 -29
  28. package/dist/es/standards-sdk.es113.js.map +1 -1
  29. package/dist/es/standards-sdk.es114.js +33 -9
  30. package/dist/es/standards-sdk.es114.js.map +1 -1
  31. package/dist/es/standards-sdk.es115.js +9 -34
  32. package/dist/es/standards-sdk.es115.js.map +1 -1
  33. package/dist/es/standards-sdk.es116.js +37 -0
  34. package/dist/es/standards-sdk.es116.js.map +1 -0
  35. package/dist/es/standards-sdk.es12.js +3 -3
  36. package/dist/es/standards-sdk.es14.js +1 -1
  37. package/dist/es/standards-sdk.es17.js +2 -2
  38. package/dist/es/standards-sdk.es18.js +1 -1
  39. package/dist/es/standards-sdk.es21.js +1692 -966
  40. package/dist/es/standards-sdk.es21.js.map +1 -1
  41. package/dist/es/standards-sdk.es22.js +3 -1767
  42. package/dist/es/standards-sdk.es22.js.map +1 -1
  43. package/dist/es/standards-sdk.es23.js +4167 -3
  44. package/dist/es/standards-sdk.es23.js.map +1 -1
  45. package/dist/es/standards-sdk.es24.js +961 -4087
  46. package/dist/es/standards-sdk.es24.js.map +1 -1
  47. package/dist/es/standards-sdk.es25.js +4 -6626
  48. package/dist/es/standards-sdk.es25.js.map +1 -1
  49. package/dist/es/standards-sdk.es27.js +17 -17
  50. package/dist/es/standards-sdk.es28.js +7190 -2
  51. package/dist/es/standards-sdk.es28.js.map +1 -1
  52. package/dist/es/standards-sdk.es29.js +2 -5
  53. package/dist/es/standards-sdk.es29.js.map +1 -1
  54. package/dist/es/standards-sdk.es30.js +419 -3
  55. package/dist/es/standards-sdk.es30.js.map +1 -1
  56. package/dist/es/standards-sdk.es31.js +1 -163
  57. package/dist/es/standards-sdk.es31.js.map +1 -1
  58. package/dist/es/standards-sdk.es32.js +120 -2
  59. package/dist/es/standards-sdk.es32.js.map +1 -1
  60. package/dist/es/standards-sdk.es33.js +2 -195
  61. package/dist/es/standards-sdk.es33.js.map +1 -1
  62. package/dist/es/standards-sdk.es34.js +3 -437
  63. package/dist/es/standards-sdk.es34.js.map +1 -1
  64. package/dist/es/standards-sdk.es35.js +99 -23
  65. package/dist/es/standards-sdk.es35.js.map +1 -1
  66. package/dist/es/standards-sdk.es36.js +2 -139
  67. package/dist/es/standards-sdk.es36.js.map +1 -1
  68. package/dist/es/standards-sdk.es37.js +15 -17
  69. package/dist/es/standards-sdk.es37.js.map +1 -1
  70. package/dist/es/standards-sdk.es38.js +405 -25
  71. package/dist/es/standards-sdk.es38.js.map +1 -1
  72. package/dist/es/standards-sdk.es39.js +80 -25
  73. package/dist/es/standards-sdk.es39.js.map +1 -1
  74. package/dist/es/standards-sdk.es4.js +1 -1
  75. package/dist/es/standards-sdk.es40.js +22 -20
  76. package/dist/es/standards-sdk.es40.js.map +1 -1
  77. package/dist/es/standards-sdk.es41.js +142 -38
  78. package/dist/es/standards-sdk.es41.js.map +1 -1
  79. package/dist/es/standards-sdk.es42.js +86 -13
  80. package/dist/es/standards-sdk.es42.js.map +1 -1
  81. package/dist/es/standards-sdk.es43.js +168 -55
  82. package/dist/es/standards-sdk.es43.js.map +1 -1
  83. package/dist/es/standards-sdk.es44.js +5 -1288
  84. package/dist/es/standards-sdk.es44.js.map +1 -1
  85. package/dist/es/standards-sdk.es45.js +127 -132
  86. package/dist/es/standards-sdk.es45.js.map +1 -1
  87. package/dist/es/standards-sdk.es46.js +185 -81
  88. package/dist/es/standards-sdk.es46.js.map +1 -1
  89. package/dist/es/standards-sdk.es47.js +429 -75
  90. package/dist/es/standards-sdk.es47.js.map +1 -1
  91. package/dist/es/standards-sdk.es48.js +21 -28
  92. package/dist/es/standards-sdk.es48.js.map +1 -1
  93. package/dist/es/standards-sdk.es49.js +138 -5
  94. package/dist/es/standards-sdk.es49.js.map +1 -1
  95. package/dist/es/standards-sdk.es5.js +1 -1
  96. package/dist/es/standards-sdk.es50.js +13 -154
  97. package/dist/es/standards-sdk.es50.js.map +1 -1
  98. package/dist/es/standards-sdk.es51.js +27 -21
  99. package/dist/es/standards-sdk.es51.js.map +1 -1
  100. package/dist/es/standards-sdk.es52.js +20 -784
  101. package/dist/es/standards-sdk.es52.js.map +1 -1
  102. package/dist/es/standards-sdk.es53.js +17 -170
  103. package/dist/es/standards-sdk.es53.js.map +1 -1
  104. package/dist/es/standards-sdk.es54.js +35 -134
  105. package/dist/es/standards-sdk.es54.js.map +1 -1
  106. package/dist/es/standards-sdk.es55.js +13 -359
  107. package/dist/es/standards-sdk.es55.js.map +1 -1
  108. package/dist/es/standards-sdk.es56.js +60 -5
  109. package/dist/es/standards-sdk.es56.js.map +1 -1
  110. package/dist/es/standards-sdk.es57.js +1270 -160
  111. package/dist/es/standards-sdk.es57.js.map +1 -1
  112. package/dist/es/standards-sdk.es58.js +27 -76
  113. package/dist/es/standards-sdk.es58.js.map +1 -1
  114. package/dist/es/standards-sdk.es59.js +149 -104
  115. package/dist/es/standards-sdk.es59.js.map +1 -1
  116. package/dist/es/standards-sdk.es60.js +786 -45
  117. package/dist/es/standards-sdk.es60.js.map +1 -1
  118. package/dist/es/standards-sdk.es61.js +2282 -10
  119. package/dist/es/standards-sdk.es61.js.map +1 -1
  120. package/dist/es/standards-sdk.es62.js +152 -85
  121. package/dist/es/standards-sdk.es62.js.map +1 -1
  122. package/dist/es/standards-sdk.es63.js +26 -3
  123. package/dist/es/standards-sdk.es63.js.map +1 -1
  124. package/dist/es/standards-sdk.es64.js +26 -2
  125. package/dist/es/standards-sdk.es64.js.map +1 -1
  126. package/dist/es/standards-sdk.es65.js +34 -109
  127. package/dist/es/standards-sdk.es65.js.map +1 -1
  128. package/dist/es/standards-sdk.es66.js +18 -71
  129. package/dist/es/standards-sdk.es66.js.map +1 -1
  130. package/dist/es/standards-sdk.es67.js +362 -4
  131. package/dist/es/standards-sdk.es67.js.map +1 -1
  132. package/dist/es/standards-sdk.es68.js +5 -4
  133. package/dist/es/standards-sdk.es68.js.map +1 -1
  134. package/dist/es/standards-sdk.es69.js +158 -200
  135. package/dist/es/standards-sdk.es69.js.map +1 -1
  136. package/dist/es/standards-sdk.es7.js +3 -3
  137. package/dist/es/standards-sdk.es70.js +77 -54
  138. package/dist/es/standards-sdk.es70.js.map +1 -1
  139. package/dist/es/standards-sdk.es71.js +112 -67
  140. package/dist/es/standards-sdk.es71.js.map +1 -1
  141. package/dist/es/standards-sdk.es72.js +48 -97
  142. package/dist/es/standards-sdk.es72.js.map +1 -1
  143. package/dist/es/standards-sdk.es73.js +10 -2
  144. package/dist/es/standards-sdk.es73.js.map +1 -1
  145. package/dist/es/standards-sdk.es74.js +96 -15
  146. package/dist/es/standards-sdk.es74.js.map +1 -1
  147. package/dist/es/standards-sdk.es75.js +3 -408
  148. package/dist/es/standards-sdk.es75.js.map +1 -1
  149. package/dist/es/standards-sdk.es76.js +2 -21
  150. package/dist/es/standards-sdk.es76.js.map +1 -1
  151. package/dist/es/standards-sdk.es77.js +108 -22
  152. package/dist/es/standards-sdk.es77.js.map +1 -1
  153. package/dist/es/standards-sdk.es78.js +72 -24
  154. package/dist/es/standards-sdk.es78.js.map +1 -1
  155. package/dist/es/standards-sdk.es79.js +5 -37
  156. package/dist/es/standards-sdk.es79.js.map +1 -1
  157. package/dist/es/standards-sdk.es8.js +3 -3
  158. package/dist/es/standards-sdk.es80.js +4 -418
  159. package/dist/es/standards-sdk.es80.js.map +1 -1
  160. package/dist/es/standards-sdk.es81.js +221 -2
  161. package/dist/es/standards-sdk.es81.js.map +1 -1
  162. package/dist/es/standards-sdk.es82.js +50 -112
  163. package/dist/es/standards-sdk.es82.js.map +1 -1
  164. package/dist/es/standards-sdk.es83.js +68 -2281
  165. package/dist/es/standards-sdk.es83.js.map +1 -1
  166. package/dist/es/standards-sdk.es84.js +3 -32
  167. package/dist/es/standards-sdk.es84.js.map +1 -1
  168. package/dist/es/standards-sdk.es85.js +7132 -59
  169. package/dist/es/standards-sdk.es85.js.map +1 -1
  170. package/dist/es/standards-sdk.es86.js +27 -45
  171. package/dist/es/standards-sdk.es86.js.map +1 -1
  172. package/dist/es/standards-sdk.es87.js +62 -9
  173. package/dist/es/standards-sdk.es87.js.map +1 -1
  174. package/dist/es/standards-sdk.es88.js +45 -60
  175. package/dist/es/standards-sdk.es88.js.map +1 -1
  176. package/dist/es/standards-sdk.es89.js +10 -6
  177. package/dist/es/standards-sdk.es89.js.map +1 -1
  178. package/dist/es/standards-sdk.es9.js +1 -1
  179. package/dist/es/standards-sdk.es90.js +62 -12
  180. package/dist/es/standards-sdk.es90.js.map +1 -1
  181. package/dist/es/standards-sdk.es91.js +5 -6
  182. package/dist/es/standards-sdk.es91.js.map +1 -1
  183. package/dist/es/standards-sdk.es92.js +13 -43
  184. package/dist/es/standards-sdk.es92.js.map +1 -1
  185. package/dist/es/standards-sdk.es93.js +7 -2
  186. package/dist/es/standards-sdk.es93.js.map +1 -1
  187. package/dist/es/standards-sdk.es94.js +39 -130
  188. package/dist/es/standards-sdk.es94.js.map +1 -1
  189. package/dist/es/standards-sdk.es95.js +2 -172
  190. package/dist/es/standards-sdk.es95.js.map +1 -1
  191. package/dist/es/standards-sdk.es96.js +135 -12
  192. package/dist/es/standards-sdk.es96.js.map +1 -1
  193. package/dist/es/standards-sdk.es97.js +172 -13
  194. package/dist/es/standards-sdk.es97.js.map +1 -1
  195. package/dist/es/standards-sdk.es98.js +12 -31
  196. package/dist/es/standards-sdk.es98.js.map +1 -1
  197. package/dist/es/standards-sdk.es99.js +13 -15
  198. package/dist/es/standards-sdk.es99.js.map +1 -1
  199. package/dist/umd/standards-sdk.umd.js +37 -12
  200. package/dist/umd/standards-sdk.umd.js.map +1 -1
  201. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es61.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,QAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,100 +1,167 @@
1
- import CanceledError from "./standards-sdk.es61.js";
2
- class CancelToken {
3
- constructor(executor) {
4
- if (typeof executor !== "function") {
5
- throw new TypeError("executor must be a function.");
1
+ function getDefaultExportFromCjs(x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3
+ }
4
+ var browser = { exports: {} };
5
+ var process = browser.exports = {};
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;
6
20
  }
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
- });
21
+ } catch (e) {
22
+ cachedSetTimeout = defaultSetTimout;
38
23
  }
39
- /**
40
- * Throws a `CanceledError` if cancellation has been requested.
41
- */
42
- throwIfRequested() {
43
- if (this.reason) {
44
- throw this.reason;
24
+ try {
25
+ if (typeof clearTimeout === "function") {
26
+ cachedClearTimeout = clearTimeout;
27
+ } else {
28
+ cachedClearTimeout = defaultClearTimeout;
45
29
  }
30
+ } catch (e) {
31
+ cachedClearTimeout = defaultClearTimeout;
46
32
  }
47
- /**
48
- * Subscribe to the cancel signal
49
- */
50
- subscribe(listener) {
51
- if (this.reason) {
52
- listener(this.reason);
53
- return;
54
- }
55
- if (this._listeners) {
56
- this._listeners.push(listener);
57
- } else {
58
- this._listeners = [listener];
33
+ })();
34
+ function runTimeout(fun) {
35
+ if (cachedSetTimeout === setTimeout) {
36
+ return setTimeout(fun, 0);
37
+ }
38
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
39
+ cachedSetTimeout = setTimeout;
40
+ return setTimeout(fun, 0);
41
+ }
42
+ try {
43
+ return cachedSetTimeout(fun, 0);
44
+ } catch (e) {
45
+ try {
46
+ return cachedSetTimeout.call(null, fun, 0);
47
+ } catch (e2) {
48
+ return cachedSetTimeout.call(this, fun, 0);
59
49
  }
60
50
  }
61
- /**
62
- * Unsubscribe from the cancel signal
63
- */
64
- unsubscribe(listener) {
65
- if (!this._listeners) {
66
- return;
51
+ }
52
+ function runClearTimeout(marker) {
53
+ if (cachedClearTimeout === clearTimeout) {
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);
67
67
  }
68
- const index = this._listeners.indexOf(listener);
69
- if (index !== -1) {
70
- this._listeners.splice(index, 1);
68
+ }
69
+ }
70
+ var queue = [];
71
+ var draining = false;
72
+ var currentQueue;
73
+ var queueIndex = -1;
74
+ function cleanUpNextTick() {
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
+ }
71
102
  }
103
+ queueIndex = -1;
104
+ len = queue.length;
72
105
  }
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;
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];
115
+ }
81
116
  }
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
- };
117
+ queue.push(new Item(fun, args));
118
+ if (queue.length === 1 && !draining) {
119
+ runTimeout(drainQueue);
95
120
  }
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() {
96
136
  }
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);
97
163
  export {
98
- CancelToken as default
164
+ process$1 as default,
165
+ process$1 as process
99
166
  };
100
167
  //# sourceMappingURL=standards-sdk.es62.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es62.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,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AW,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
+ {"version":3,"file":"standards-sdk.es62.js","sources":["../../node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js"],"sourcesContent":["function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar browser = {exports: {}};\n\n// shim for using process in browser\nvar process = browser.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ());\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] };\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\nvar browserExports = browser.exports;\nconst process$1 = /*@__PURE__*/getDefaultExportFromCjs(browserExports);\n\nexport { process$1 as default, process$1 as process };\n//# sourceMappingURL=index.js.map\n"],"names":["e"],"mappings":"AAAA,SAAS,wBAAyB,GAAG;AACpC,SAAO,KAAK,EAAE,cAAc,OAAO,UAAU,eAAe,KAAK,GAAG,SAAS,IAAI,EAAE,SAAS,IAAI;AACjG;AAEA,IAAI,UAAU,EAAC,SAAS,GAAE;AAG1B,IAAI,UAAU,QAAQ,UAAU,CAAE;AAOlC,IAAI;AACJ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,QAAQ,UAAU;AAClB,QAAQ,MAAM,CAAE;AAChB,QAAQ,OAAO,CAAE;AACjB,QAAQ,UAAU;AAClB,QAAQ,WAAW,CAAE;AAErB,SAAS,OAAO;AAAA;AAEhB,QAAQ,KAAK;AACb,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,MAAM;AACd,QAAQ,iBAAiB;AACzB,QAAQ,qBAAqB;AAC7B,QAAQ,OAAO;AACf,QAAQ,kBAAkB;AAC1B,QAAQ,sBAAsB;AAE9B,QAAQ,YAAY,SAAU,MAAM;AAAE,SAAO,CAAA;AAAI;AAEjD,QAAQ,UAAU,SAAU,MAAM;AAC9B,QAAM,IAAI,MAAM,kCAAkC;AACtD;AAEA,QAAQ,MAAM,WAAY;AAAE,SAAO;AAAK;AACxC,QAAQ,QAAQ,SAAU,KAAK;AAC3B,QAAM,IAAI,MAAM,gCAAgC;AACpD;AACA,QAAQ,QAAQ,WAAW;AAAE,SAAO;AAAI;AAExC,IAAI,iBAAiB,QAAQ;AACxB,MAAC,YAAyB,wCAAwB,cAAc;","x_google_ignoreList":[0]}
@@ -1,7 +1,30 @@
1
- function isCancel(value) {
2
- return !!(value && value.__CANCEL__);
1
+ function number(n) {
2
+ if (!Number.isSafeInteger(n) || n < 0)
3
+ throw new Error(`Wrong positive integer: ${n}`);
4
+ }
5
+ function bytes(b, ...lengths) {
6
+ if (!(b instanceof Uint8Array))
7
+ throw new Error("Expected Uint8Array");
8
+ if (lengths.length > 0 && !lengths.includes(b.length))
9
+ throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`);
10
+ }
11
+ function exists(instance, checkFinished = true) {
12
+ if (instance.destroyed)
13
+ throw new Error("Hash instance has been destroyed");
14
+ if (checkFinished && instance.finished)
15
+ throw new Error("Hash#digest() has already been called");
16
+ }
17
+ function output(out, instance) {
18
+ bytes(out);
19
+ const min = instance.outputLen;
20
+ if (out.length < min) {
21
+ throw new Error(`digestInto() expects output buffer of length at least ${min}`);
22
+ }
3
23
  }
4
24
  export {
5
- isCancel as default
25
+ bytes,
26
+ exists,
27
+ number,
28
+ output
6
29
  };
7
30
  //# sourceMappingURL=standards-sdk.es63.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es63.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
+ {"version":3,"file":"standards-sdk.es63.js","sources":["../../node_modules/@noble/hashes/esm/_assert.js"],"sourcesContent":["function number(n) {\n if (!Number.isSafeInteger(n) || n < 0)\n throw new Error(`Wrong positive integer: ${n}`);\n}\nfunction bool(b) {\n if (typeof b !== 'boolean')\n throw new Error(`Expected boolean, not ${b}`);\n}\nfunction bytes(b, ...lengths) {\n if (!(b instanceof Uint8Array))\n throw new Error('Expected Uint8Array');\n if (lengths.length > 0 && !lengths.includes(b.length))\n throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`);\n}\nfunction hash(hash) {\n if (typeof hash !== 'function' || typeof hash.create !== 'function')\n throw new Error('Hash should be wrapped by utils.wrapConstructor');\n number(hash.outputLen);\n number(hash.blockLen);\n}\nfunction exists(instance, checkFinished = true) {\n if (instance.destroyed)\n throw new Error('Hash instance has been destroyed');\n if (checkFinished && instance.finished)\n throw new Error('Hash#digest() has already been called');\n}\nfunction output(out, instance) {\n bytes(out);\n const min = instance.outputLen;\n if (out.length < min) {\n throw new Error(`digestInto() expects output buffer of length at least ${min}`);\n }\n}\nexport { number, bool, bytes, hash, exists, output };\nconst assert = { number, bool, bytes, hash, exists, output };\nexport default assert;\n//# sourceMappingURL=_assert.js.map"],"names":[],"mappings":"AAAA,SAAS,OAAO,GAAG;AACf,MAAI,CAAC,OAAO,cAAc,CAAC,KAAK,IAAI;AAChC,UAAM,IAAI,MAAM,2BAA2B,CAAC,EAAE;AACtD;AAKA,SAAS,MAAM,MAAM,SAAS;AAC1B,MAAI,EAAE,aAAa;AACf,UAAM,IAAI,MAAM,qBAAqB;AACzC,MAAI,QAAQ,SAAS,KAAK,CAAC,QAAQ,SAAS,EAAE,MAAM;AAChD,UAAM,IAAI,MAAM,iCAAiC,OAAO,mBAAmB,EAAE,MAAM,EAAE;AAC7F;AAOA,SAAS,OAAO,UAAU,gBAAgB,MAAM;AAC5C,MAAI,SAAS;AACT,UAAM,IAAI,MAAM,kCAAkC;AACtD,MAAI,iBAAiB,SAAS;AAC1B,UAAM,IAAI,MAAM,uCAAuC;AAC/D;AACA,SAAS,OAAO,KAAK,UAAU;AAC3B,QAAM,GAAG;AACT,QAAM,MAAM,SAAS;AACrB,MAAI,IAAI,SAAS,KAAK;AAClB,UAAM,IAAI,MAAM,yDAAyD,GAAG,EAAE;AAAA,EACtF;AACA;","x_google_ignoreList":[0]}
@@ -1,5 +1,29 @@
1
- const VERSION = "1.8.4";
1
+ const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
2
+ const _32n = /* @__PURE__ */ BigInt(32);
3
+ function fromBig(n, le = false) {
4
+ if (le)
5
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
6
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
7
+ }
8
+ function split(lst, le = false) {
9
+ let Ah = new Uint32Array(lst.length);
10
+ let Al = new Uint32Array(lst.length);
11
+ for (let i = 0; i < lst.length; i++) {
12
+ const { h, l } = fromBig(lst[i], le);
13
+ [Ah[i], Al[i]] = [h, l];
14
+ }
15
+ return [Ah, Al];
16
+ }
17
+ const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
18
+ const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
19
+ const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
20
+ const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
2
21
  export {
3
- VERSION
22
+ fromBig,
23
+ rotlBH,
24
+ rotlBL,
25
+ rotlSH,
26
+ rotlSL,
27
+ split
4
28
  };
5
29
  //# sourceMappingURL=standards-sdk.es64.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es64.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
+ {"version":3,"file":"standards-sdk.es64.js","sources":["../../node_modules/@noble/hashes/esm/_u64.js"],"sourcesContent":["const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);\nconst _32n = /* @__PURE__ */ BigInt(32);\n// We are not using BigUint64Array, because they are extremely slow as per 2022\nfunction fromBig(n, le = false) {\n if (le)\n return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\nfunction split(lst, le = false) {\n let Ah = new Uint32Array(lst.length);\n let Al = new Uint32Array(lst.length);\n for (let i = 0; i < lst.length; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\nconst toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// for Shift in [0, 32)\nconst shrSH = (h, _l, s) => h >>> s;\nconst shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in [1, 32)\nconst rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s));\nconst rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32));\nconst rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s));\n// Right rotate for shift===32 (just swaps l&h)\nconst rotr32H = (_h, l) => l;\nconst rotr32L = (h, _l) => h;\n// Left rotate for Shift in [1, 32)\nconst rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));\nconst rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));\n// Left rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));\nconst rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));\n// JS uses 32-bit signed integers for bitwise operations which means we cannot\n// simple take carry out of low bit sum by shift, we need to use division.\nfunction add(Ah, Al, Bh, Bl) {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\nconst add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\nconst add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\nconst add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\nconst add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\nconst add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\nconst add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n// prettier-ignore\nexport { fromBig, split, toBig, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, rotlSH, rotlSL, rotlBH, rotlBL, add, add3L, add3H, add4L, add4H, add5H, add5L, };\n// prettier-ignore\nconst u64 = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\nexport default u64;\n//# sourceMappingURL=_u64.js.map"],"names":[],"mappings":"AAAA,MAAM,aAA6B,uBAAO,KAAK,KAAK,CAAC;AACrD,MAAM,OAAuB,uBAAO,EAAE;AAEtC,SAAS,QAAQ,GAAG,KAAK,OAAO;AAC5B,MAAI;AACA,WAAO,EAAE,GAAG,OAAO,IAAI,UAAU,GAAG,GAAG,OAAQ,KAAK,OAAQ,UAAU,EAAG;AAC7E,SAAO,EAAE,GAAG,OAAQ,KAAK,OAAQ,UAAU,IAAI,GAAG,GAAG,OAAO,IAAI,UAAU,IAAI,EAAG;AACrF;AACA,SAAS,MAAM,KAAK,KAAK,OAAO;AAC5B,MAAI,KAAK,IAAI,YAAY,IAAI,MAAM;AACnC,MAAI,KAAK,IAAI,YAAY,IAAI,MAAM;AACnC,WAAS,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;AACjC,UAAM,EAAE,GAAG,EAAG,IAAG,QAAQ,IAAI,CAAC,GAAG,EAAE;AACnC,KAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAAA,EAC9B;AACI,SAAO,CAAC,IAAI,EAAE;AAClB;AAeK,MAAC,SAAS,CAAC,GAAG,GAAG,MAAO,KAAK,IAAM,MAAO,KAAK;AAC/C,MAAC,SAAS,CAAC,GAAG,GAAG,MAAO,KAAK,IAAM,MAAO,KAAK;AAE/C,MAAC,SAAS,CAAC,GAAG,GAAG,MAAO,KAAM,IAAI,KAAQ,MAAO,KAAK;AACtD,MAAC,SAAS,CAAC,GAAG,GAAG,MAAO,KAAM,IAAI,KAAQ,MAAO,KAAK;","x_google_ignoreList":[0]}
@@ -1,116 +1,41 @@
1
- import Buffer from "./standards-sdk.es22.js";
2
- import utils from "./standards-sdk.es55.js";
3
- import AxiosError from "./standards-sdk.es66.js";
4
- function isVisitable(thing) {
5
- return utils.isPlainObject(thing) || utils.isArray(thing);
1
+ /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
2
+ const u8a = (a) => a instanceof Uint8Array;
3
+ const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
4
+ const isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
5
+ if (!isLE)
6
+ throw new Error("Non little-endian hardware is not supported");
7
+ function utf8ToBytes(str) {
8
+ if (typeof str !== "string")
9
+ throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
10
+ return new Uint8Array(new TextEncoder().encode(str));
6
11
  }
7
- function removeBrackets(key) {
8
- return utils.endsWith(key, "[]") ? key.slice(0, -2) : key;
12
+ function toBytes(data) {
13
+ if (typeof data === "string")
14
+ data = utf8ToBytes(data);
15
+ if (!u8a(data))
16
+ throw new Error(`expected Uint8Array, got ${typeof data}`);
17
+ return data;
9
18
  }
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");
26
- }
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");
43
- }
44
- function convertValue(value) {
45
- if (value === null) return "";
46
- if (utils.isDate(value)) {
47
- return value.toISOString();
48
- }
49
- if (!useBlob && utils.isBlob(value)) {
50
- throw new AxiosError("Blob is not supported. Use a Buffer instead.");
51
- }
52
- if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
53
- return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
54
- }
55
- return value;
19
+ class Hash {
20
+ // Safe version that clones internal state
21
+ clone() {
22
+ return this._cloneInto();
56
23
  }
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
- }
74
- }
75
- if (isVisitable(value)) {
76
- return true;
77
- }
78
- formData.append(renderKey(path, key, dots), convertValue(value));
79
- return false;
80
- }
81
- const stack = [];
82
- const exposedHelpers = Object.assign(predicates, {
83
- defaultVisitor,
84
- convertValue,
85
- isVisitable
86
- });
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("."));
91
- }
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();
106
- }
107
- if (!utils.isObject(obj)) {
108
- throw new TypeError("data must be an object");
109
- }
110
- build(obj);
111
- return formData;
24
+ }
25
+ function wrapConstructor(hashCons) {
26
+ const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
27
+ const tmp = hashCons();
28
+ hashC.outputLen = tmp.outputLen;
29
+ hashC.blockLen = tmp.blockLen;
30
+ hashC.create = () => hashCons();
31
+ return hashC;
112
32
  }
113
33
  export {
114
- toFormData as default
34
+ Hash,
35
+ isLE,
36
+ toBytes,
37
+ u32,
38
+ utf8ToBytes,
39
+ wrapConstructor
115
40
  };
116
41
  //# sourceMappingURL=standards-sdk.es65.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es65.js","sources":["../../node_modules/axios/lib/helpers/toFormData.js"],"sourcesContent":["'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n"],"names":[],"mappings":";;;AAcA,SAAS,YAAY,OAAO;AAC1B,SAAO,MAAM,cAAc,KAAK,KAAK,MAAM,QAAQ,KAAK;AAC1D;AASA,SAAS,eAAe,KAAK;AAC3B,SAAO,MAAM,SAAS,KAAK,IAAI,IAAI,IAAI,MAAM,GAAG,EAAE,IAAI;AACxD;AAWA,SAA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AED,WAAS,MAAM,OAAO,MAAM;AAC1B,QAAI,MAAM,YAAY,KAAK,EAAG;AAE9B,QAAI,MAAM,QAAQ,KAAK,MAAM,IAAI;AAC/B,YAAM,MAAM,oCAAoC,KAAK,KAAK,GAAG,CAAC;AAAA,IACpE;AAEI,UAAM,KAAK,KAAK;AAEhB,UAAM,QAAQ,OAAO,SAAS,KAAK,IAAI,KAAK;AAC1C,YAAM,SAAS,EAAE,MAAM,YAAY,EAAE,KAAK,OAAO,SAAS,QAAQ;AAAA,QAChE;AAAA,QAAU;AAAA,QAAI,MAAM,SAAS,GAAG,IAAI,IAAI,KAAI,IAAK;AAAA,QAAK;AAAA,QAAM;AAAA,MAC7D;AAED,UAAI,WAAW,MAAM;AACnB,cAAM,IAAI,OAAO,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC;AAAA,MACjD;AAAA,IACA,CAAK;AAED,UAAM,IAAK;AAAA,EACf;AAEE,MAAI,CAAC,MAAM,SAAS,GAAG,GAAG;AACxB,UAAM,IAAI,UAAU,wBAAwB;AAAA,EAChD;AAEE,QAAM,GAAG;AAET,SAAO;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es65.js","sources":["../../node_modules/@noble/hashes/esm/utils.js"],"sourcesContent":["/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.\n// node.js versions earlier than v19 don't declare it in global scope.\n// For node.js, package.json#exports field mapping rewrites import\n// from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated, we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\nconst u8a = (a) => a instanceof Uint8Array;\n// Cast array to different type\nexport const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\nexport const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n// Cast array to view\nexport const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n// The rotate right (circular right shift) operation for uint32\nexport const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift);\n// big-endian hardware is rare. Just in case someone still decides to run hashes:\n// early-throw an error because we don't support BE yet.\nexport const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44;\nif (!isLE)\n throw new Error('Non little-endian hardware is not supported');\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));\n/**\n * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'\n */\nexport function bytesToHex(bytes) {\n if (!u8a(bytes))\n throw new Error('Uint8Array expected');\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n/**\n * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n */\nexport function hexToBytes(hex) {\n if (typeof hex !== 'string')\n throw new Error('hex string expected, got ' + typeof hex);\n const len = hex.length;\n if (len % 2)\n throw new Error('padded hex string expected, got unpadded hex of length ' + len);\n const array = new Uint8Array(len / 2);\n for (let i = 0; i < array.length; i++) {\n const j = i * 2;\n const hexByte = hex.slice(j, j + 2);\n const byte = Number.parseInt(hexByte, 16);\n if (Number.isNaN(byte) || byte < 0)\n throw new Error('Invalid byte sequence');\n array[i] = byte;\n }\n return array;\n}\n// There is no setImmediate in browser and setTimeout is slow.\n// call of async fn will return Promise, which will be fullfiled only on\n// next scheduler queue processing step and this is exactly what we need.\nexport const nextTick = async () => { };\n// Returns control to thread each 'tick' ms to avoid blocking\nexport async function asyncLoop(iters, tick, cb) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick)\n continue;\n await nextTick();\n ts += diff;\n }\n}\n/**\n * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])\n */\nexport function utf8ToBytes(str) {\n if (typeof str !== 'string')\n throw new Error(`utf8ToBytes expected string, got ${typeof str}`);\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n/**\n * Normalizes (non-hex) string or Uint8Array to Uint8Array.\n * Warning: when Uint8Array is passed, it would NOT get copied.\n * Keep in mind for future mutable operations.\n */\nexport function toBytes(data) {\n if (typeof data === 'string')\n data = utf8ToBytes(data);\n if (!u8a(data))\n throw new Error(`expected Uint8Array, got ${typeof data}`);\n return data;\n}\n/**\n * Copies several Uint8Arrays into one.\n */\nexport function concatBytes(...arrays) {\n const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0));\n let pad = 0; // walk through each item, ensure they have proper type\n arrays.forEach((a) => {\n if (!u8a(a))\n throw new Error('Uint8Array expected');\n r.set(a, pad);\n pad += a.length;\n });\n return r;\n}\n// For runtime check if class implements interface\nexport class Hash {\n // Safe version that clones internal state\n clone() {\n return this._cloneInto();\n }\n}\nconst toStr = {}.toString;\nexport function checkOpts(defaults, opts) {\n if (opts !== undefined && toStr.call(opts) !== '[object Object]')\n throw new Error('Options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged;\n}\nexport function wrapConstructor(hashCons) {\n const hashC = (msg) => hashCons().update(toBytes(msg)).digest();\n const tmp = hashCons();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashCons();\n return hashC;\n}\nexport function wrapConstructorWithOpts(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\nexport function wrapXOFConstructorWithOpts(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\n/**\n * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS.\n */\nexport function randomBytes(bytesLength = 32) {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n//# sourceMappingURL=utils.js.map"],"names":[],"mappings":"AAAA;AAQA,MAAM,MAAM,CAAC,MAAM,aAAa;AAGpB,MAAC,MAAM,CAAC,QAAQ,IAAI,YAAY,IAAI,QAAQ,IAAI,YAAY,KAAK,MAAM,IAAI,aAAa,CAAC,CAAC;AAO1F,MAAC,OAAO,IAAI,WAAW,IAAI,YAAY,CAAC,SAAU,CAAC,EAAE,MAAM,EAAE,CAAC,MAAM;AAChF,IAAI,CAAC;AACD,QAAM,IAAI,MAAM,6CAA6C;AAuD1D,SAAS,YAAY,KAAK;AAC7B,MAAI,OAAO,QAAQ;AACf,UAAM,IAAI,MAAM,oCAAoC,OAAO,GAAG,EAAE;AACpE,SAAO,IAAI,WAAW,IAAI,YAAa,EAAC,OAAO,GAAG,CAAC;AACvD;AAMO,SAAS,QAAQ,MAAM;AAC1B,MAAI,OAAO,SAAS;AAChB,WAAO,YAAY,IAAI;AAC3B,MAAI,CAAC,IAAI,IAAI;AACT,UAAM,IAAI,MAAM,4BAA4B,OAAO,IAAI,EAAE;AAC7D,SAAO;AACX;AAgBO,MAAM,KAAK;AAAA;AAAA,EAEd,QAAQ;AACJ,WAAO,KAAK,WAAY;AAAA,EAChC;AACA;AAQO,SAAS,gBAAgB,UAAU;AACtC,QAAM,QAAQ,CAAC,QAAQ,SAAU,EAAC,OAAO,QAAQ,GAAG,CAAC,EAAE,OAAQ;AAC/D,QAAM,MAAM,SAAU;AACtB,QAAM,YAAY,IAAI;AACtB,QAAM,WAAW,IAAI;AACrB,QAAM,SAAS,MAAM,SAAU;AAC/B,SAAO;AACX;","x_google_ignoreList":[0]}