@hashgraphonline/standards-sdk 0.0.94 → 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.
Files changed (270) hide show
  1. package/dist/es/hcs-10/base-client.d.ts +14 -3
  2. package/dist/es/hcs-10/base-client.d.ts.map +1 -1
  3. package/dist/es/hcs-10/connections-manager.d.ts +51 -0
  4. package/dist/es/hcs-10/connections-manager.d.ts.map +1 -1
  5. package/dist/es/hcs-10/sdk.d.ts +38 -1
  6. package/dist/es/hcs-10/sdk.d.ts.map +1 -1
  7. package/dist/es/hcs-10/types.d.ts +9 -0
  8. package/dist/es/hcs-10/types.d.ts.map +1 -1
  9. package/dist/es/inscribe/inscriber.d.ts +2 -0
  10. package/dist/es/inscribe/inscriber.d.ts.map +1 -1
  11. package/dist/es/services/mirror-node.d.ts +17 -1
  12. package/dist/es/services/mirror-node.d.ts.map +1 -1
  13. package/dist/es/services/types.d.ts +24 -0
  14. package/dist/es/services/types.d.ts.map +1 -1
  15. package/dist/es/standards-sdk.es.js +8 -5
  16. package/dist/es/standards-sdk.es.js.map +1 -1
  17. package/dist/es/standards-sdk.es10.js +66 -0
  18. package/dist/es/standards-sdk.es10.js.map +1 -1
  19. package/dist/es/standards-sdk.es100.js +21 -30
  20. package/dist/es/standards-sdk.es100.js.map +1 -1
  21. package/dist/es/standards-sdk.es101.js +792 -5
  22. package/dist/es/standards-sdk.es101.js.map +1 -1
  23. package/dist/es/standards-sdk.es102.js +160 -145
  24. package/dist/es/standards-sdk.es102.js.map +1 -1
  25. package/dist/es/standards-sdk.es103.js +141 -21
  26. package/dist/es/standards-sdk.es103.js.map +1 -1
  27. package/dist/es/standards-sdk.es104.js +12 -792
  28. package/dist/es/standards-sdk.es104.js.map +1 -1
  29. package/dist/es/standards-sdk.es105.js +13 -2282
  30. package/dist/es/standards-sdk.es105.js.map +1 -1
  31. package/dist/es/standards-sdk.es106.js +30 -172
  32. package/dist/es/standards-sdk.es106.js.map +1 -1
  33. package/dist/es/standards-sdk.es107.js +14 -142
  34. package/dist/es/standards-sdk.es107.js.map +1 -1
  35. package/dist/es/standards-sdk.es108.js +4 -3
  36. package/dist/es/standards-sdk.es108.js.map +1 -1
  37. package/dist/es/standards-sdk.es109.js +4 -2
  38. package/dist/es/standards-sdk.es109.js.map +1 -1
  39. package/dist/es/standards-sdk.es110.js +16 -2
  40. package/dist/es/standards-sdk.es110.js.map +1 -1
  41. package/dist/es/standards-sdk.es111.js +4 -33
  42. package/dist/es/standards-sdk.es111.js.map +1 -1
  43. package/dist/es/standards-sdk.es112.js +39 -33
  44. package/dist/es/standards-sdk.es112.js.map +1 -1
  45. package/dist/es/standards-sdk.es113.js +40 -9
  46. package/dist/es/standards-sdk.es113.js.map +1 -1
  47. package/dist/es/standards-sdk.es114.js +36 -33
  48. package/dist/es/standards-sdk.es114.js.map +1 -1
  49. package/dist/es/standards-sdk.es115.js +74 -17
  50. package/dist/es/standards-sdk.es115.js.map +1 -1
  51. package/dist/es/standards-sdk.es116.js +19 -25
  52. package/dist/es/standards-sdk.es116.js.map +1 -1
  53. package/dist/es/standards-sdk.es117.js +24 -23
  54. package/dist/es/standards-sdk.es117.js.map +1 -1
  55. package/dist/es/standards-sdk.es118.js +23 -35
  56. package/dist/es/standards-sdk.es118.js.map +1 -1
  57. package/dist/es/standards-sdk.es119.js +41 -0
  58. package/dist/es/standards-sdk.es119.js.map +1 -0
  59. package/dist/es/standards-sdk.es120.js +6 -0
  60. package/dist/es/standards-sdk.es120.js.map +1 -0
  61. package/dist/es/standards-sdk.es121.js +5 -0
  62. package/dist/es/standards-sdk.es121.js.map +1 -0
  63. package/dist/es/standards-sdk.es122.js +5 -0
  64. package/dist/es/standards-sdk.es122.js.map +1 -0
  65. package/dist/es/standards-sdk.es123.js +37 -0
  66. package/dist/es/standards-sdk.es123.js.map +1 -0
  67. package/dist/es/standards-sdk.es124.js +36 -0
  68. package/dist/es/standards-sdk.es124.js.map +1 -0
  69. package/dist/es/standards-sdk.es125.js +12 -0
  70. package/dist/es/standards-sdk.es125.js.map +1 -0
  71. package/dist/es/standards-sdk.es126.js +37 -0
  72. package/dist/es/standards-sdk.es126.js.map +1 -0
  73. package/dist/es/standards-sdk.es13.js +5 -5
  74. package/dist/es/standards-sdk.es15.js +1 -1
  75. package/dist/es/standards-sdk.es16.js +1 -1
  76. package/dist/es/standards-sdk.es18.js +2 -2
  77. package/dist/es/standards-sdk.es19.js +393 -386
  78. package/dist/es/standards-sdk.es19.js.map +1 -1
  79. package/dist/es/standards-sdk.es20.js +386 -315
  80. package/dist/es/standards-sdk.es20.js.map +1 -1
  81. package/dist/es/standards-sdk.es21.js +357 -128
  82. package/dist/es/standards-sdk.es21.js.map +1 -1
  83. package/dist/es/standards-sdk.es22.js +155 -7
  84. package/dist/es/standards-sdk.es22.js.map +1 -1
  85. package/dist/es/standards-sdk.es23.js +7 -5
  86. package/dist/es/standards-sdk.es23.js.map +1 -1
  87. package/dist/es/standards-sdk.es24.js +1769 -36
  88. package/dist/es/standards-sdk.es24.js.map +1 -1
  89. package/dist/es/standards-sdk.es25.js +7163 -21
  90. package/dist/es/standards-sdk.es25.js.map +1 -1
  91. package/dist/es/standards-sdk.es26.js +3 -1767
  92. package/dist/es/standards-sdk.es26.js.map +1 -1
  93. package/dist/es/standards-sdk.es27.js +8 -7189
  94. package/dist/es/standards-sdk.es27.js.map +1 -1
  95. package/dist/es/standards-sdk.es28.js +2 -1041
  96. package/dist/es/standards-sdk.es28.js.map +1 -1
  97. package/dist/es/standards-sdk.es29.js +1041 -3
  98. package/dist/es/standards-sdk.es29.js.map +1 -1
  99. package/dist/es/standards-sdk.es30.js +5 -2
  100. package/dist/es/standards-sdk.es30.js.map +1 -1
  101. package/dist/es/standards-sdk.es31.js +36 -4167
  102. package/dist/es/standards-sdk.es31.js.map +1 -1
  103. package/dist/es/standards-sdk.es32.js +46 -417
  104. package/dist/es/standards-sdk.es32.js.map +1 -1
  105. package/dist/es/standards-sdk.es33.js +10 -2
  106. package/dist/es/standards-sdk.es33.js.map +1 -1
  107. package/dist/es/standards-sdk.es34.js +4159 -112
  108. package/dist/es/standards-sdk.es34.js.map +1 -1
  109. package/dist/es/standards-sdk.es35.js +100 -3
  110. package/dist/es/standards-sdk.es35.js.map +1 -1
  111. package/dist/es/standards-sdk.es36.js +2 -364
  112. package/dist/es/standards-sdk.es36.js.map +1 -1
  113. package/dist/es/standards-sdk.es37.js +15 -5
  114. package/dist/es/standards-sdk.es37.js.map +1 -1
  115. package/dist/es/standards-sdk.es38.js +397 -167
  116. package/dist/es/standards-sdk.es38.js.map +1 -1
  117. package/dist/es/standards-sdk.es39.js +2282 -81
  118. package/dist/es/standards-sdk.es39.js.map +1 -1
  119. package/dist/es/standards-sdk.es4.js +1 -1
  120. package/dist/es/standards-sdk.es40.js +154 -104
  121. package/dist/es/standards-sdk.es40.js.map +1 -1
  122. package/dist/es/standards-sdk.es41.js +7123 -39
  123. package/dist/es/standards-sdk.es41.js.map +1 -1
  124. package/dist/es/standards-sdk.es42.js +9 -9
  125. package/dist/es/standards-sdk.es42.js.map +1 -1
  126. package/dist/es/standards-sdk.es43.js +8 -94
  127. package/dist/es/standards-sdk.es43.js.map +1 -1
  128. package/dist/es/standards-sdk.es44.js +17 -3
  129. package/dist/es/standards-sdk.es44.js.map +1 -1
  130. package/dist/es/standards-sdk.es45.js +6 -2
  131. package/dist/es/standards-sdk.es45.js.map +1 -1
  132. package/dist/es/standards-sdk.es46.js +8 -112
  133. package/dist/es/standards-sdk.es46.js.map +1 -1
  134. package/dist/es/standards-sdk.es47.js +3 -74
  135. package/dist/es/standards-sdk.es47.js.map +1 -1
  136. package/dist/es/standards-sdk.es48.js +417 -4
  137. package/dist/es/standards-sdk.es48.js.map +1 -1
  138. package/dist/es/standards-sdk.es49.js +2 -5
  139. package/dist/es/standards-sdk.es49.js.map +1 -1
  140. package/dist/es/standards-sdk.es5.js +32 -9
  141. package/dist/es/standards-sdk.es5.js.map +1 -1
  142. package/dist/es/standards-sdk.es50.js +109 -210
  143. package/dist/es/standards-sdk.es50.js.map +1 -1
  144. package/dist/es/standards-sdk.es51.js +4 -58
  145. package/dist/es/standards-sdk.es51.js.map +1 -1
  146. package/dist/es/standards-sdk.es52.js +364 -69
  147. package/dist/es/standards-sdk.es52.js.map +1 -1
  148. package/dist/es/standards-sdk.es53.js +4 -7134
  149. package/dist/es/standards-sdk.es53.js.map +1 -1
  150. package/dist/es/standards-sdk.es54.js +179 -3
  151. package/dist/es/standards-sdk.es54.js.map +1 -1
  152. package/dist/es/standards-sdk.es55.js +70 -153
  153. package/dist/es/standards-sdk.es55.js.map +1 -1
  154. package/dist/es/standards-sdk.es56.js +111 -29
  155. package/dist/es/standards-sdk.es56.js.map +1 -1
  156. package/dist/es/standards-sdk.es57.js +45 -56
  157. package/dist/es/standards-sdk.es57.js.map +1 -1
  158. package/dist/es/standards-sdk.es58.js +9 -49
  159. package/dist/es/standards-sdk.es58.js.map +1 -1
  160. package/dist/es/standards-sdk.es59.js +96 -9
  161. package/dist/es/standards-sdk.es59.js.map +1 -1
  162. package/dist/es/standards-sdk.es60.js +3 -64
  163. package/dist/es/standards-sdk.es60.js.map +1 -1
  164. package/dist/es/standards-sdk.es61.js +2 -6
  165. package/dist/es/standards-sdk.es61.js.map +1 -1
  166. package/dist/es/standards-sdk.es62.js +109 -11
  167. package/dist/es/standards-sdk.es62.js.map +1 -1
  168. package/dist/es/standards-sdk.es63.js +73 -6
  169. package/dist/es/standards-sdk.es63.js.map +1 -1
  170. package/dist/es/standards-sdk.es64.js +6 -45
  171. package/dist/es/standards-sdk.es64.js.map +1 -1
  172. package/dist/es/standards-sdk.es65.js +5 -2
  173. package/dist/es/standards-sdk.es65.js.map +1 -1
  174. package/dist/es/standards-sdk.es66.js +207 -122
  175. package/dist/es/standards-sdk.es66.js.map +1 -1
  176. package/dist/es/standards-sdk.es67.js +49 -163
  177. package/dist/es/standards-sdk.es67.js.map +1 -1
  178. package/dist/es/standards-sdk.es68.js +69 -2
  179. package/dist/es/standards-sdk.es68.js.map +1 -1
  180. package/dist/es/standards-sdk.es69.js +2 -101
  181. package/dist/es/standards-sdk.es69.js.map +1 -1
  182. package/dist/es/standards-sdk.es7.js +106 -5
  183. package/dist/es/standards-sdk.es7.js.map +1 -1
  184. package/dist/es/standards-sdk.es70.js +32 -2
  185. package/dist/es/standards-sdk.es70.js.map +1 -1
  186. package/dist/es/standards-sdk.es71.js +62 -15
  187. package/dist/es/standards-sdk.es71.js.map +1 -1
  188. package/dist/es/standards-sdk.es72.js +45 -404
  189. package/dist/es/standards-sdk.es72.js.map +1 -1
  190. package/dist/es/standards-sdk.es73.js +10 -13
  191. package/dist/es/standards-sdk.es73.js.map +1 -1
  192. package/dist/es/standards-sdk.es74.js +65 -13
  193. package/dist/es/standards-sdk.es74.js.map +1 -1
  194. package/dist/es/standards-sdk.es75.js +5 -31
  195. package/dist/es/standards-sdk.es75.js.map +1 -1
  196. package/dist/es/standards-sdk.es76.js +14 -14
  197. package/dist/es/standards-sdk.es76.js.map +1 -1
  198. package/dist/es/standards-sdk.es77.js +7 -4
  199. package/dist/es/standards-sdk.es77.js.map +1 -1
  200. package/dist/es/standards-sdk.es78.js +45 -4
  201. package/dist/es/standards-sdk.es78.js.map +1 -1
  202. package/dist/es/standards-sdk.es79.js +2 -16
  203. package/dist/es/standards-sdk.es79.js.map +1 -1
  204. package/dist/es/standards-sdk.es8.js +4 -4
  205. package/dist/es/standards-sdk.es80.js +136 -5
  206. package/dist/es/standards-sdk.es80.js.map +1 -1
  207. package/dist/es/standards-sdk.es81.js +170 -37
  208. package/dist/es/standards-sdk.es81.js.map +1 -1
  209. package/dist/es/standards-sdk.es82.js +190 -35
  210. package/dist/es/standards-sdk.es82.js.map +1 -1
  211. package/dist/es/standards-sdk.es83.js +433 -32
  212. package/dist/es/standards-sdk.es83.js.map +1 -1
  213. package/dist/es/standards-sdk.es84.js +21 -74
  214. package/dist/es/standards-sdk.es84.js.map +1 -1
  215. package/dist/es/standards-sdk.es85.js +125 -181
  216. package/dist/es/standards-sdk.es85.js.map +1 -1
  217. package/dist/es/standards-sdk.es86.js +13 -433
  218. package/dist/es/standards-sdk.es86.js.map +1 -1
  219. package/dist/es/standards-sdk.es87.js +22 -18
  220. package/dist/es/standards-sdk.es87.js.map +1 -1
  221. package/dist/es/standards-sdk.es88.js +17 -127
  222. package/dist/es/standards-sdk.es88.js.map +1 -1
  223. package/dist/es/standards-sdk.es89.js +13 -10
  224. package/dist/es/standards-sdk.es89.js.map +1 -1
  225. package/dist/es/standards-sdk.es9.js +1 -1
  226. package/dist/es/standards-sdk.es90.js +37 -22
  227. package/dist/es/standards-sdk.es90.js.map +1 -1
  228. package/dist/es/standards-sdk.es91.js +10 -21
  229. package/dist/es/standards-sdk.es91.js.map +1 -1
  230. package/dist/es/standards-sdk.es92.js +54 -14
  231. package/dist/es/standards-sdk.es92.js.map +1 -1
  232. package/dist/es/standards-sdk.es93.js +1284 -39
  233. package/dist/es/standards-sdk.es93.js.map +1 -1
  234. package/dist/es/standards-sdk.es94.js +143 -13
  235. package/dist/es/standards-sdk.es94.js.map +1 -1
  236. package/dist/es/standards-sdk.es95.js +86 -56
  237. package/dist/es/standards-sdk.es95.js.map +1 -1
  238. package/dist/es/standards-sdk.es96.js +79 -1284
  239. package/dist/es/standards-sdk.es96.js.map +1 -1
  240. package/dist/es/standards-sdk.es97.js +25 -141
  241. package/dist/es/standards-sdk.es97.js.map +1 -1
  242. package/dist/es/standards-sdk.es98.js +5 -90
  243. package/dist/es/standards-sdk.es98.js.map +1 -1
  244. package/dist/es/standards-sdk.es99.js +144 -69
  245. package/dist/es/standards-sdk.es99.js.map +1 -1
  246. package/dist/es/utils/index.d.ts +1 -0
  247. package/dist/es/utils/index.d.ts.map +1 -1
  248. package/dist/es/utils/transaction-parser.d.ts +103 -0
  249. package/dist/es/utils/transaction-parser.d.ts.map +1 -0
  250. package/dist/umd/hcs-10/base-client.d.ts +14 -3
  251. package/dist/umd/hcs-10/base-client.d.ts.map +1 -1
  252. package/dist/umd/hcs-10/connections-manager.d.ts +51 -0
  253. package/dist/umd/hcs-10/connections-manager.d.ts.map +1 -1
  254. package/dist/umd/hcs-10/sdk.d.ts +38 -1
  255. package/dist/umd/hcs-10/sdk.d.ts.map +1 -1
  256. package/dist/umd/hcs-10/types.d.ts +9 -0
  257. package/dist/umd/hcs-10/types.d.ts.map +1 -1
  258. package/dist/umd/inscribe/inscriber.d.ts +2 -0
  259. package/dist/umd/inscribe/inscriber.d.ts.map +1 -1
  260. package/dist/umd/services/mirror-node.d.ts +17 -1
  261. package/dist/umd/services/mirror-node.d.ts.map +1 -1
  262. package/dist/umd/services/types.d.ts +24 -0
  263. package/dist/umd/services/types.d.ts.map +1 -1
  264. package/dist/umd/standards-sdk.umd.js +8 -8
  265. package/dist/umd/standards-sdk.umd.js.map +1 -1
  266. package/dist/umd/utils/index.d.ts +1 -0
  267. package/dist/umd/utils/index.d.ts.map +1 -1
  268. package/dist/umd/utils/transaction-parser.d.ts +103 -0
  269. package/dist/umd/utils/transaction-parser.d.ts.map +1 -0
  270. package/package.json +6 -2
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es105.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"standards-sdk.es105.js","sources":["../../node_modules/axios/lib/platform/common/utils.js"],"sourcesContent":["const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n"],"names":[],"mappings":"AAAK,MAAC,gBAAgB,OAAO,WAAW,eAAe,OAAO,aAAa;AAEtE,MAAC,aAAa,OAAO,cAAc,YAAY,aAAa;AAmB5D,MAAC,wBAAwB,kBAC3B,CAAC,cAAc,CAAC,eAAe,gBAAgB,IAAI,EAAE,QAAQ,WAAW,OAAO,IAAI;AAWjF,MAAC,kCAAkC,MAAM;AAC5C,SACE,OAAO,sBAAsB;AAAA,EAE7B,gBAAgB,qBAChB,OAAO,KAAK,kBAAkB;AAElC,GAAC;AAEI,MAAC,SAAS,iBAAiB,OAAO,SAAS,QAAQ;","x_google_ignoreList":[0]}
@@ -1,177 +1,35 @@
1
- import { number, exists, bytes, output } from "./standards-sdk.es116.js";
2
- import { rotlSH, rotlSL, rotlBH, rotlBL, split } from "./standards-sdk.es117.js";
3
- import { wrapConstructor, Hash, u32, toBytes } from "./standards-sdk.es118.js";
4
- const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []];
5
- const _0n = /* @__PURE__ */ BigInt(0);
6
- const _1n = /* @__PURE__ */ BigInt(1);
7
- const _2n = /* @__PURE__ */ BigInt(2);
8
- const _7n = /* @__PURE__ */ BigInt(7);
9
- const _256n = /* @__PURE__ */ BigInt(256);
10
- const _0x71n = /* @__PURE__ */ BigInt(113);
11
- for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
12
- [x, y] = [y, (2 * x + 3 * y) % 5];
13
- SHA3_PI.push(2 * (5 * y + x));
14
- SHA3_ROTL.push((round + 1) * (round + 2) / 2 % 64);
15
- let t = _0n;
16
- for (let j = 0; j < 7; j++) {
17
- R = (R << _1n ^ (R >> _7n) * _0x71n) % _256n;
18
- if (R & _2n)
19
- t ^= _1n << (_1n << /* @__PURE__ */ BigInt(j)) - _1n;
20
- }
21
- _SHA3_IOTA.push(t);
1
+ import toFormData from "./standards-sdk.es62.js";
2
+ function encode(str) {
3
+ const charMap = {
4
+ "!": "%21",
5
+ "'": "%27",
6
+ "(": "%28",
7
+ ")": "%29",
8
+ "~": "%7E",
9
+ "%20": "+",
10
+ "%00": "\0"
11
+ };
12
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
13
+ return charMap[match];
14
+ });
22
15
  }
23
- const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
24
- const rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
25
- const rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
26
- function keccakP(s, rounds = 24) {
27
- const B = new Uint32Array(5 * 2);
28
- for (let round = 24 - rounds; round < 24; round++) {
29
- for (let x = 0; x < 10; x++)
30
- B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];
31
- for (let x = 0; x < 10; x += 2) {
32
- const idx1 = (x + 8) % 10;
33
- const idx0 = (x + 2) % 10;
34
- const B0 = B[idx0];
35
- const B1 = B[idx0 + 1];
36
- const Th = rotlH(B0, B1, 1) ^ B[idx1];
37
- const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];
38
- for (let y = 0; y < 50; y += 10) {
39
- s[x + y] ^= Th;
40
- s[x + y + 1] ^= Tl;
41
- }
42
- }
43
- let curH = s[2];
44
- let curL = s[3];
45
- for (let t = 0; t < 24; t++) {
46
- const shift = SHA3_ROTL[t];
47
- const Th = rotlH(curH, curL, shift);
48
- const Tl = rotlL(curH, curL, shift);
49
- const PI = SHA3_PI[t];
50
- curH = s[PI];
51
- curL = s[PI + 1];
52
- s[PI] = Th;
53
- s[PI + 1] = Tl;
54
- }
55
- for (let y = 0; y < 50; y += 10) {
56
- for (let x = 0; x < 10; x++)
57
- B[x] = s[y + x];
58
- for (let x = 0; x < 10; x++)
59
- s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];
60
- }
61
- s[0] ^= SHA3_IOTA_H[round];
62
- s[1] ^= SHA3_IOTA_L[round];
63
- }
64
- B.fill(0);
16
+ function AxiosURLSearchParams(params, options) {
17
+ this._pairs = [];
18
+ params && toFormData(params, this, options);
65
19
  }
66
- class Keccak extends Hash {
67
- // NOTE: we accept arguments in bytes instead of bits here.
68
- constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
69
- super();
70
- this.blockLen = blockLen;
71
- this.suffix = suffix;
72
- this.outputLen = outputLen;
73
- this.enableXOF = enableXOF;
74
- this.rounds = rounds;
75
- this.pos = 0;
76
- this.posOut = 0;
77
- this.finished = false;
78
- this.destroyed = false;
79
- number(outputLen);
80
- if (0 >= this.blockLen || this.blockLen >= 200)
81
- throw new Error("Sha3 supports only keccak-f1600 function");
82
- this.state = new Uint8Array(200);
83
- this.state32 = u32(this.state);
84
- }
85
- keccak() {
86
- keccakP(this.state32, this.rounds);
87
- this.posOut = 0;
88
- this.pos = 0;
89
- }
90
- update(data) {
91
- exists(this);
92
- const { blockLen, state } = this;
93
- data = toBytes(data);
94
- const len = data.length;
95
- for (let pos = 0; pos < len; ) {
96
- const take = Math.min(blockLen - this.pos, len - pos);
97
- for (let i = 0; i < take; i++)
98
- state[this.pos++] ^= data[pos++];
99
- if (this.pos === blockLen)
100
- this.keccak();
101
- }
102
- return this;
103
- }
104
- finish() {
105
- if (this.finished)
106
- return;
107
- this.finished = true;
108
- const { state, suffix, pos, blockLen } = this;
109
- state[pos] ^= suffix;
110
- if ((suffix & 128) !== 0 && pos === blockLen - 1)
111
- this.keccak();
112
- state[blockLen - 1] ^= 128;
113
- this.keccak();
114
- }
115
- writeInto(out) {
116
- exists(this, false);
117
- bytes(out);
118
- this.finish();
119
- const bufferOut = this.state;
120
- const { blockLen } = this;
121
- for (let pos = 0, len = out.length; pos < len; ) {
122
- if (this.posOut >= blockLen)
123
- this.keccak();
124
- const take = Math.min(blockLen - this.posOut, len - pos);
125
- out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
126
- this.posOut += take;
127
- pos += take;
128
- }
129
- return out;
130
- }
131
- xofInto(out) {
132
- if (!this.enableXOF)
133
- throw new Error("XOF is not possible for this instance");
134
- return this.writeInto(out);
135
- }
136
- xof(bytes2) {
137
- number(bytes2);
138
- return this.xofInto(new Uint8Array(bytes2));
139
- }
140
- digestInto(out) {
141
- output(out, this);
142
- if (this.finished)
143
- throw new Error("digest() was already called");
144
- this.writeInto(out);
145
- this.destroy();
146
- return out;
147
- }
148
- digest() {
149
- return this.digestInto(new Uint8Array(this.outputLen));
150
- }
151
- destroy() {
152
- this.destroyed = true;
153
- this.state.fill(0);
154
- }
155
- _cloneInto(to) {
156
- const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
157
- to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
158
- to.state32.set(this.state32);
159
- to.pos = this.pos;
160
- to.posOut = this.posOut;
161
- to.finished = this.finished;
162
- to.rounds = rounds;
163
- to.suffix = suffix;
164
- to.outputLen = outputLen;
165
- to.enableXOF = enableXOF;
166
- to.destroyed = this.destroyed;
167
- return to;
168
- }
169
- }
170
- const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
171
- const keccak_256 = /* @__PURE__ */ gen(1, 136, 256 / 8);
20
+ const prototype = AxiosURLSearchParams.prototype;
21
+ prototype.append = function append(name, value) {
22
+ this._pairs.push([name, value]);
23
+ };
24
+ prototype.toString = function toString(encoder) {
25
+ const _encode = encoder ? function(value) {
26
+ return encoder.call(this, value, encode);
27
+ } : encode;
28
+ return this._pairs.map(function each(pair) {
29
+ return _encode(pair[0]) + "=" + _encode(pair[1]);
30
+ }, "").join("&");
31
+ };
172
32
  export {
173
- Keccak,
174
- keccakP,
175
- keccak_256
33
+ AxiosURLSearchParams as default
176
34
  };
177
35
  //# sourceMappingURL=standards-sdk.es106.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es106.js","sources":["../../node_modules/@noble/hashes/esm/sha3.js"],"sourcesContent":["import { bytes, exists, number, output } from './_assert.js';\nimport { rotlBH, rotlBL, rotlSH, rotlSL, split } from './_u64.js';\nimport { Hash, u32, toBytes, wrapConstructor, wrapXOFConstructorWithOpts, } from './utils.js';\n// SHA3 (keccak) is based on a new design: basically, the internal state is bigger than output size.\n// It's called a sponge function.\n// Various per round constants calculations\nconst [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []];\nconst _0n = /* @__PURE__ */ BigInt(0);\nconst _1n = /* @__PURE__ */ BigInt(1);\nconst _2n = /* @__PURE__ */ BigInt(2);\nconst _7n = /* @__PURE__ */ BigInt(7);\nconst _256n = /* @__PURE__ */ BigInt(256);\nconst _0x71n = /* @__PURE__ */ BigInt(0x71);\nfor (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {\n // Pi\n [x, y] = [y, (2 * x + 3 * y) % 5];\n SHA3_PI.push(2 * (5 * y + x));\n // Rotational\n SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64);\n // Iota\n let t = _0n;\n for (let j = 0; j < 7; j++) {\n R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n;\n if (R & _2n)\n t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n);\n }\n _SHA3_IOTA.push(t);\n}\nconst [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);\n// Left rotation (without 0, 32, 64)\nconst rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s));\nconst rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s));\n// Same as keccakf1600, but allows to skip some rounds\nexport function keccakP(s, rounds = 24) {\n const B = new Uint32Array(5 * 2);\n // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js)\n for (let round = 24 - rounds; round < 24; round++) {\n // Theta θ\n for (let x = 0; x < 10; x++)\n B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];\n for (let x = 0; x < 10; x += 2) {\n const idx1 = (x + 8) % 10;\n const idx0 = (x + 2) % 10;\n const B0 = B[idx0];\n const B1 = B[idx0 + 1];\n const Th = rotlH(B0, B1, 1) ^ B[idx1];\n const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];\n for (let y = 0; y < 50; y += 10) {\n s[x + y] ^= Th;\n s[x + y + 1] ^= Tl;\n }\n }\n // Rho (ρ) and Pi (π)\n let curH = s[2];\n let curL = s[3];\n for (let t = 0; t < 24; t++) {\n const shift = SHA3_ROTL[t];\n const Th = rotlH(curH, curL, shift);\n const Tl = rotlL(curH, curL, shift);\n const PI = SHA3_PI[t];\n curH = s[PI];\n curL = s[PI + 1];\n s[PI] = Th;\n s[PI + 1] = Tl;\n }\n // Chi (χ)\n for (let y = 0; y < 50; y += 10) {\n for (let x = 0; x < 10; x++)\n B[x] = s[y + x];\n for (let x = 0; x < 10; x++)\n s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];\n }\n // Iota (ι)\n s[0] ^= SHA3_IOTA_H[round];\n s[1] ^= SHA3_IOTA_L[round];\n }\n B.fill(0);\n}\nexport class Keccak extends Hash {\n // NOTE: we accept arguments in bytes instead of bits here.\n constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {\n super();\n this.blockLen = blockLen;\n this.suffix = suffix;\n this.outputLen = outputLen;\n this.enableXOF = enableXOF;\n this.rounds = rounds;\n this.pos = 0;\n this.posOut = 0;\n this.finished = false;\n this.destroyed = false;\n // Can be passed from user as dkLen\n number(outputLen);\n // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes\n if (0 >= this.blockLen || this.blockLen >= 200)\n throw new Error('Sha3 supports only keccak-f1600 function');\n this.state = new Uint8Array(200);\n this.state32 = u32(this.state);\n }\n keccak() {\n keccakP(this.state32, this.rounds);\n this.posOut = 0;\n this.pos = 0;\n }\n update(data) {\n exists(this);\n const { blockLen, state } = this;\n data = toBytes(data);\n const len = data.length;\n for (let pos = 0; pos < len;) {\n const take = Math.min(blockLen - this.pos, len - pos);\n for (let i = 0; i < take; i++)\n state[this.pos++] ^= data[pos++];\n if (this.pos === blockLen)\n this.keccak();\n }\n return this;\n }\n finish() {\n if (this.finished)\n return;\n this.finished = true;\n const { state, suffix, pos, blockLen } = this;\n // Do the padding\n state[pos] ^= suffix;\n if ((suffix & 0x80) !== 0 && pos === blockLen - 1)\n this.keccak();\n state[blockLen - 1] ^= 0x80;\n this.keccak();\n }\n writeInto(out) {\n exists(this, false);\n bytes(out);\n this.finish();\n const bufferOut = this.state;\n const { blockLen } = this;\n for (let pos = 0, len = out.length; pos < len;) {\n if (this.posOut >= blockLen)\n this.keccak();\n const take = Math.min(blockLen - this.posOut, len - pos);\n out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);\n this.posOut += take;\n pos += take;\n }\n return out;\n }\n xofInto(out) {\n // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF\n if (!this.enableXOF)\n throw new Error('XOF is not possible for this instance');\n return this.writeInto(out);\n }\n xof(bytes) {\n number(bytes);\n return this.xofInto(new Uint8Array(bytes));\n }\n digestInto(out) {\n output(out, this);\n if (this.finished)\n throw new Error('digest() was already called');\n this.writeInto(out);\n this.destroy();\n return out;\n }\n digest() {\n return this.digestInto(new Uint8Array(this.outputLen));\n }\n destroy() {\n this.destroyed = true;\n this.state.fill(0);\n }\n _cloneInto(to) {\n const { blockLen, suffix, outputLen, rounds, enableXOF } = this;\n to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds));\n to.state32.set(this.state32);\n to.pos = this.pos;\n to.posOut = this.posOut;\n to.finished = this.finished;\n to.rounds = rounds;\n // Suffix can change in cSHAKE\n to.suffix = suffix;\n to.outputLen = outputLen;\n to.enableXOF = enableXOF;\n to.destroyed = this.destroyed;\n return to;\n }\n}\nconst gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));\nexport const sha3_224 = /* @__PURE__ */ gen(0x06, 144, 224 / 8);\n/**\n * SHA3-256 hash function\n * @param message - that would be hashed\n */\nexport const sha3_256 = /* @__PURE__ */ gen(0x06, 136, 256 / 8);\nexport const sha3_384 = /* @__PURE__ */ gen(0x06, 104, 384 / 8);\nexport const sha3_512 = /* @__PURE__ */ gen(0x06, 72, 512 / 8);\nexport const keccak_224 = /* @__PURE__ */ gen(0x01, 144, 224 / 8);\n/**\n * keccak-256 hash function. Different from SHA3-256.\n * @param message - that would be hashed\n */\nexport const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8);\nexport const keccak_384 = /* @__PURE__ */ gen(0x01, 104, 384 / 8);\nexport const keccak_512 = /* @__PURE__ */ gen(0x01, 72, 512 / 8);\nconst genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true));\nexport const shake128 = /* @__PURE__ */ genShake(0x1f, 168, 128 / 8);\nexport const shake256 = /* @__PURE__ */ genShake(0x1f, 136, 256 / 8);\n//# sourceMappingURL=sha3.js.map"],"names":["bytes"],"mappings":";;;AAMA,MAAM,CAAC,SAAS,WAAW,UAAU,IAAI,CAAC,CAAE,GAAE,CAAE,GAAE,EAAE;AACpD,MAAM,MAAsB,uBAAO,CAAC;AACpC,MAAM,MAAsB,uBAAO,CAAC;AACpC,MAAM,MAAsB,uBAAO,CAAC;AACpC,MAAM,MAAsB,uBAAO,CAAC;AACpC,MAAM,QAAwB,uBAAO,GAAG;AACxC,MAAM,SAAyB,uBAAO,GAAI;AAC1C,SAAS,QAAQ,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,QAAQ,IAAI,SAAS;AAE5D,GAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,IAAI,KAAK,CAAC;AAChC,UAAQ,KAAK,KAAK,IAAI,IAAI,EAAE;AAE5B,YAAU,MAAQ,QAAQ,MAAM,QAAQ,KAAM,IAAK,EAAE;AAErD,MAAI,IAAI;AACR,WAAS,IAAI,GAAG,IAAI,GAAG,KAAK;AACxB,SAAM,KAAK,OAAS,KAAK,OAAO,UAAW;AAC3C,QAAI,IAAI;AACJ,WAAK,QAAS,OAAuB,uBAAO,CAAC,KAAK;AAAA,EAC9D;AACI,aAAW,KAAK,CAAC;AACrB;AACA,MAAM,CAAC,aAAa,WAAW,IAAoB,sBAAM,YAAY,IAAI;AAEzE,MAAM,QAAQ,CAAC,GAAG,GAAG,MAAO,IAAI,KAAK,OAAO,GAAG,GAAG,CAAC,IAAI,OAAO,GAAG,GAAG,CAAC;AACrE,MAAM,QAAQ,CAAC,GAAG,GAAG,MAAO,IAAI,KAAK,OAAO,GAAG,GAAG,CAAC,IAAI,OAAO,GAAG,GAAG,CAAC;AAE9D,SAAS,QAAQ,GAAG,SAAS,IAAI;AACpC,QAAM,IAAI,IAAI,Y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UAAU,QAAQ,WAAW,WAAW,MAAM;AACrE,OAAG,QAAQ,IAAI,KAAK,OAAO;AAC3B,OAAG,MAAM,KAAK;AACd,OAAG,SAAS,KAAK;AACjB,OAAG,WAAW,KAAK;AACnB,OAAG,SAAS;AAEZ,OAAG,SAAS;AACZ,OAAG,YAAY;AACf,OAAG,YAAY;AACf,OAAG,YAAY,KAAK;AACpB,WAAO;AAAA,EACf;AACA;AACA,MAAM,MAAM,CAAC,QAAQ,UAAU,cAAc,gBAAgB,MAAM,IAAI,OAAO,UAAU,QAAQ,SAAS,CAAC;AAc9F,MAAC,aAA6B,oBAAI,GAAM,KAAK,MAAM,CAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es106.js","sources":["../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js"],"sourcesContent":["'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n"],"names":[],"mappings":";AAYA,SAAS,OAAO,KAAK;AACnB,QAAM,UAAU;AAAA,IACd,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,OAAO;AAAA,EACR;AACD,SAAO,mBAAmB,GAAG,EAAE,QAAQ,oBAAoB,SAAS,SAAS,OAAO;AAClF,WAAO,QAAQ,KAAK;AAAA,EACxB,CAAG;AACH;AAUA,SAAS,qBAAqB,QAAQ,SAAS;AAC7C,OAAK,SAAS,CAAE;AAEhB,YAAU,WAAW,QAAQ,MAAM,OAAO;AAC5C;AAEA,MAAM,YAAY,qBAAqB;AAEvC,UAAU,SAAS,SAAS,OAAO,MAAM,OAAO;AAC9C,OAAK,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAChC;AAEA,UAAU,WAAW,SAAS,SAAS,SAAS;AAC9C,QAAM,UAAU,UAAU,SAAS,OAAO;AACxC,WAAO,QAAQ,KAAK,MAAM,OAAO,MAAM;AAAA,EAC3C,IAAM;AAEJ,SAAO,KAAK,OAAO,IAAI,SAAS,KAAK,MAAM;AACzC,WAAO,QAAQ,KAAK,CAAC,CAAC,IAAI,MAAM,QAAQ,KAAK,CAAC,CAAC;AAAA,EACnD,GAAK,EAAE,EAAE,KAAK,GAAG;AACjB;","x_google_ignoreList":[0]}
@@ -1,146 +1,18 @@
1
- import { getBytes } from "./standards-sdk.es98.js";
2
- import { assertArgument } from "./standards-sdk.es97.js";
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
+ import utils from "./standards-sdk.es52.js";
2
+ import defaults from "./standards-sdk.es56.js";
3
+ import AxiosHeaders from "./standards-sdk.es66.js";
4
+ function transformData(fns, response) {
5
+ const config = this || defaults;
6
+ const context = response || config;
7
+ const headers = AxiosHeaders.from(context.headers);
8
+ let data = context.data;
9
+ utils.forEach(fns, function transform(fn) {
10
+ data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
11
+ });
12
+ headers.normalize();
13
+ return data;
140
14
  }
141
15
  export {
142
- Utf8ErrorFuncs,
143
- toUtf8Bytes,
144
- toUtf8String
16
+ transformData as default
145
17
  };
146
18
  //# sourceMappingURL=standards-sdk.es107.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es107.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,QA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O,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.es107.js","sources":["../../node_modules/axios/lib/core/transformData.js"],"sourcesContent":["'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n"],"names":[],"mappings":";;;AAce,SAAS,cAAc,KAAK,UAAU;AACnD,QAAM,SAAS,QAAQ;AACvB,QAAM,UAAU,YAAY;AAC5B,QAAM,UAAU,aAAa,KAAK,QAAQ,OAAO;AACjD,MAAI,OAAO,QAAQ;AAEnB,QAAM,QAAQ,KAAK,SAAS,UAAU,IAAI;AACxC,WAAO,GAAG,KAAK,QAAQ,MAAM,QAAQ,UAAS,GAAI,WAAW,SAAS,SAAS,MAAS;AAAA,EAC5F,CAAG;AAED,UAAQ,UAAW;AAEnB,SAAO;AACT;","x_google_ignoreList":[0]}
@@ -1,6 +1,7 @@
1
- import AxiosURLSearchParams from "./standards-sdk.es75.js";
2
- const URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
1
+ function isAbsoluteURL(url) {
2
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
3
+ }
3
4
  export {
4
- URLSearchParams$1 as default
5
+ isAbsoluteURL as default
5
6
  };
6
7
  //# sourceMappingURL=standards-sdk.es108.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es108.js","sources":["../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js"],"sourcesContent":["'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n"],"names":[],"mappings":";AAGA,MAAA,oBAAe,OAAO,oBAAoB,cAAc,kBAAkB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es108.js","sources":["../../node_modules/axios/lib/helpers/isAbsoluteURL.js"],"sourcesContent":["'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n"],"names":[],"mappings":"AASe,SAAS,cAAc,KAAK;AAIzC,SAAO,8BAA8B,KAAK,GAAG;AAC/C;","x_google_ignoreList":[0]}
@@ -1,5 +1,7 @@
1
- const FormData$1 = typeof FormData !== "undefined" ? FormData : null;
1
+ function combineURLs(baseURL, relativeURL) {
2
+ return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
3
+ }
2
4
  export {
3
- FormData$1 as default
5
+ combineURLs as default
4
6
  };
5
7
  //# sourceMappingURL=standards-sdk.es109.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es109.js","sources":["../../node_modules/axios/lib/platform/browser/classes/FormData.js"],"sourcesContent":["'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n"],"names":[],"mappings":"AAEA,MAAA,aAAe,OAAO,aAAa,cAAc,WAAW;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es109.js","sources":["../../node_modules/axios/lib/helpers/combineURLs.js"],"sourcesContent":["'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n"],"names":[],"mappings":"AAUe,SAAS,YAAY,SAAS,aAAa;AACxD,SAAO,cACH,QAAQ,QAAQ,UAAU,EAAE,IAAI,MAAM,YAAY,QAAQ,QAAQ,EAAE,IACpE;AACN;","x_google_ignoreList":[0]}
@@ -1,5 +1,19 @@
1
- const Blob$1 = typeof Blob !== "undefined" ? Blob : null;
1
+ import AxiosError from "./standards-sdk.es63.js";
2
+ function settle(resolve, reject, response) {
3
+ const validateStatus = response.config.validateStatus;
4
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
5
+ resolve(response);
6
+ } else {
7
+ reject(new AxiosError(
8
+ "Request failed with status code " + response.status,
9
+ [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
10
+ response.config,
11
+ response.request,
12
+ response
13
+ ));
14
+ }
15
+ }
2
16
  export {
3
- Blob$1 as default
17
+ settle as default
4
18
  };
5
19
  //# sourceMappingURL=standards-sdk.es110.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es110.js","sources":["../../node_modules/axios/lib/platform/browser/classes/Blob.js"],"sourcesContent":["'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n"],"names":[],"mappings":"AAEA,MAAA,SAAe,OAAO,SAAS,cAAc,OAAO;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es110.js","sources":["../../node_modules/axios/lib/core/settle.js"],"sourcesContent":["'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n"],"names":[],"mappings":";AAae,SAAS,OAAO,SAAS,QAAQ,UAAU;AACxD,QAAM,iBAAiB,SAAS,OAAO;AACvC,MAAI,CAAC,SAAS,UAAU,CAAC,kBAAkB,eAAe,SAAS,MAAM,GAAG;AAC1E,YAAQ,QAAQ;AAAA,EACpB,OAAS;AACL,WAAO,IAAI;AAAA,MACT,qCAAqC,SAAS;AAAA,MAC9C,CAAC,WAAW,iBAAiB,WAAW,gBAAgB,EAAE,KAAK,MAAM,SAAS,SAAS,GAAG,IAAI,CAAC;AAAA,MAC/F,SAAS;AAAA,MACT,SAAS;AAAA,MACT;AAAA,IACN,CAAK;AAAA,EACL;AACA;","x_google_ignoreList":[0]}
@@ -1,37 +1,8 @@
1
- function speedometer(samplesCount, min) {
2
- samplesCount = samplesCount || 10;
3
- const bytes = new Array(samplesCount);
4
- const timestamps = new Array(samplesCount);
5
- let head = 0;
6
- let tail = 0;
7
- let firstSampleTS;
8
- min = min !== void 0 ? min : 1e3;
9
- return function push(chunkLength) {
10
- const now = Date.now();
11
- const startedAt = timestamps[tail];
12
- if (!firstSampleTS) {
13
- firstSampleTS = now;
14
- }
15
- bytes[head] = chunkLength;
16
- timestamps[head] = now;
17
- let i = tail;
18
- let bytesCount = 0;
19
- while (i !== head) {
20
- bytesCount += bytes[i++];
21
- i = i % samplesCount;
22
- }
23
- head = (head + 1) % samplesCount;
24
- if (head === tail) {
25
- tail = (tail + 1) % samplesCount;
26
- }
27
- if (now - firstSampleTS < min) {
28
- return;
29
- }
30
- const passed = startedAt && now - startedAt;
31
- return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
32
- };
1
+ function parseProtocol(url) {
2
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
3
+ return match && match[1] || "";
33
4
  }
34
5
  export {
35
- speedometer as default
6
+ parseProtocol as default
36
7
  };
37
8
  //# sourceMappingURL=standards-sdk.es111.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es111.js","sources":["../../node_modules/axios/lib/helpers/speedometer.js"],"sourcesContent":["'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n"],"names":[],"mappings":"AAQA,SAAS,YAAY,cAAc,KAAK;AACtC,iBAAe,gBAAgB;AAC/B,QAAM,QAAQ,IAAI,MAAM,YAAY;AACpC,QAAM,aAAa,IAAI,MAAM,YAAY;AACzC,MAAI,OAAO;AACX,MAAI,OAAO;AACX,MAAI;AAEJ,QAAM,QAAQ,SAAY,MAAM;AAEhC,SAAO,SAAS,KAAK,aAAa;AAChC,UAAM,MAAM,KAAK,IAAK;AAEtB,UAAM,YAAY,WAAW,IAAI;AAEjC,QAAI,CAAC,eAAe;AAClB,sBAAgB;AAAA,IACtB;AAEI,UAAM,IAAI,IAAI;AACd,eAAW,IAAI,IAAI;AAEnB,QAAI,IAAI;AACR,QAAI,aAAa;AAEjB,WAAO,MAAM,MAAM;AACjB,oBAAc,MAAM,GAAG;AACvB,UAAI,IAAI;AAAA,IACd;AAEI,YAAQ,OAAO,KAAK;AAEpB,QAAI,SAAS,MAAM;AACjB,cAAQ,OAAO,KAAK;AAAA,IAC1B;AAEI,QAAI,MAAM,gBAAgB,KAAK;AAC7B;AAAA,IACN;AAEI,UAAM,SAAS,aAAa,MAAM;AAElC,WAAO,SAAS,KAAK,MAAM,aAAa,MAAO,MAAM,IAAI;AAAA,EAC1D;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es111.js","sources":["../../node_modules/axios/lib/helpers/parseProtocol.js"],"sourcesContent":["'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n"],"names":[],"mappings":"AAEe,SAAS,cAAc,KAAK;AACzC,QAAM,QAAQ,4BAA4B,KAAK,GAAG;AAClD,SAAO,SAAS,MAAM,CAAC,KAAK;AAC9B;","x_google_ignoreList":[0]}