@hashgraphonline/standards-sdk 0.0.66 → 0.0.68

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 (183) hide show
  1. package/dist/es/hcs-10/base-client.d.ts +20 -5
  2. package/dist/es/hcs-10/base-client.d.ts.map +1 -1
  3. package/dist/es/hcs-10/sdk.d.ts +12 -2
  4. package/dist/es/hcs-10/sdk.d.ts.map +1 -1
  5. package/dist/es/standards-sdk.es101.js +16 -2282
  6. package/dist/es/standards-sdk.es101.js.map +1 -1
  7. package/dist/es/standards-sdk.es102.js +4 -15
  8. package/dist/es/standards-sdk.es102.js.map +1 -1
  9. package/dist/es/standards-sdk.es103.js +39 -5
  10. package/dist/es/standards-sdk.es103.js.map +1 -1
  11. package/dist/es/standards-sdk.es104.js +39 -38
  12. package/dist/es/standards-sdk.es104.js.map +1 -1
  13. package/dist/es/standards-sdk.es105.js +34 -37
  14. package/dist/es/standards-sdk.es105.js.map +1 -1
  15. package/dist/es/standards-sdk.es106.js +75 -34
  16. package/dist/es/standards-sdk.es106.js.map +1 -1
  17. package/dist/es/standards-sdk.es107.js +2281 -77
  18. package/dist/es/standards-sdk.es107.js.map +1 -1
  19. package/dist/es/standards-sdk.es113.js +1 -1
  20. package/dist/es/standards-sdk.es114.js +2 -2
  21. package/dist/es/standards-sdk.es12.js +2 -2
  22. package/dist/es/standards-sdk.es14.js +1 -1
  23. package/dist/es/standards-sdk.es17.js +1 -1
  24. package/dist/es/standards-sdk.es18.js +2 -2
  25. package/dist/es/standards-sdk.es21.js +3 -36
  26. package/dist/es/standards-sdk.es21.js.map +1 -1
  27. package/dist/es/standards-sdk.es22.js +4167 -48
  28. package/dist/es/standards-sdk.es22.js.map +1 -1
  29. package/dist/es/standards-sdk.es23.js +4 -6626
  30. package/dist/es/standards-sdk.es23.js.map +1 -1
  31. package/dist/es/standards-sdk.es24.js +36 -3
  32. package/dist/es/standards-sdk.es24.js.map +1 -1
  33. package/dist/es/standards-sdk.es25.js +48 -2
  34. package/dist/es/standards-sdk.es25.js.map +1 -1
  35. package/dist/es/standards-sdk.es26.js +6525 -939
  36. package/dist/es/standards-sdk.es26.js.map +1 -1
  37. package/dist/es/standards-sdk.es27.js +2 -5
  38. package/dist/es/standards-sdk.es27.js.map +1 -1
  39. package/dist/es/standards-sdk.es28.js +961 -4087
  40. package/dist/es/standards-sdk.es28.js.map +1 -1
  41. package/dist/es/standards-sdk.es32.js +4 -2
  42. package/dist/es/standards-sdk.es32.js.map +1 -1
  43. package/dist/es/standards-sdk.es33.js +2 -84
  44. package/dist/es/standards-sdk.es33.js.map +1 -1
  45. package/dist/es/standards-sdk.es34.js +3 -23
  46. package/dist/es/standards-sdk.es34.js.map +1 -1
  47. package/dist/es/standards-sdk.es35.js +143 -127
  48. package/dist/es/standards-sdk.es35.js.map +1 -1
  49. package/dist/es/standards-sdk.es36.js +350 -77
  50. package/dist/es/standards-sdk.es36.js.map +1 -1
  51. package/dist/es/standards-sdk.es37.js +4 -193
  52. package/dist/es/standards-sdk.es37.js.map +1 -1
  53. package/dist/es/standards-sdk.es38.js +158 -417
  54. package/dist/es/standards-sdk.es38.js.map +1 -1
  55. package/dist/es/standards-sdk.es39.js +75 -19
  56. package/dist/es/standards-sdk.es39.js.map +1 -1
  57. package/dist/es/standards-sdk.es4.js +1 -1
  58. package/dist/es/standards-sdk.es40.js +103 -128
  59. package/dist/es/standards-sdk.es40.js.map +1 -1
  60. package/dist/es/standards-sdk.es41.js +48 -14
  61. package/dist/es/standards-sdk.es41.js.map +1 -1
  62. package/dist/es/standards-sdk.es42.js +9 -28
  63. package/dist/es/standards-sdk.es42.js.map +1 -1
  64. package/dist/es/standards-sdk.es43.js +91 -23
  65. package/dist/es/standards-sdk.es43.js.map +1 -1
  66. package/dist/es/standards-sdk.es44.js +3 -20
  67. package/dist/es/standards-sdk.es44.js.map +1 -1
  68. package/dist/es/standards-sdk.es45.js +2 -44
  69. package/dist/es/standards-sdk.es45.js.map +1 -1
  70. package/dist/es/standards-sdk.es46.js +108 -13
  71. package/dist/es/standards-sdk.es46.js.map +1 -1
  72. package/dist/es/standards-sdk.es47.js +71 -58
  73. package/dist/es/standards-sdk.es47.js.map +1 -1
  74. package/dist/es/standards-sdk.es48.js +4 -1287
  75. package/dist/es/standards-sdk.es48.js.map +1 -1
  76. package/dist/es/standards-sdk.es49.js +4 -31
  77. package/dist/es/standards-sdk.es49.js.map +1 -1
  78. package/dist/es/standards-sdk.es5.js +67 -18
  79. package/dist/es/standards-sdk.es5.js.map +1 -1
  80. package/dist/es/standards-sdk.es50.js +220 -5
  81. package/dist/es/standards-sdk.es50.js.map +1 -1
  82. package/dist/es/standards-sdk.es51.js +53 -154
  83. package/dist/es/standards-sdk.es51.js.map +1 -1
  84. package/dist/es/standards-sdk.es52.js +68 -792
  85. package/dist/es/standards-sdk.es52.js.map +1 -1
  86. package/dist/es/standards-sdk.es53.js +21 -172
  87. package/dist/es/standards-sdk.es53.js.map +1 -1
  88. package/dist/es/standards-sdk.es54.js +162 -131
  89. package/dist/es/standards-sdk.es54.js.map +1 -1
  90. package/dist/es/standards-sdk.es55.js +90 -3
  91. package/dist/es/standards-sdk.es55.js.map +1 -1
  92. package/dist/es/standards-sdk.es56.js +5 -363
  93. package/dist/es/standards-sdk.es56.js.map +1 -1
  94. package/dist/es/standards-sdk.es57.js +142 -5
  95. package/dist/es/standards-sdk.es57.js.map +1 -1
  96. package/dist/es/standards-sdk.es58.js +185 -169
  97. package/dist/es/standards-sdk.es58.js.map +1 -1
  98. package/dist/es/standards-sdk.es59.js +437 -80
  99. package/dist/es/standards-sdk.es59.js.map +1 -1
  100. package/dist/es/standards-sdk.es60.js +21 -110
  101. package/dist/es/standards-sdk.es60.js.map +1 -1
  102. package/dist/es/standards-sdk.es61.js +130 -43
  103. package/dist/es/standards-sdk.es61.js.map +1 -1
  104. package/dist/es/standards-sdk.es62.js +17 -9
  105. package/dist/es/standards-sdk.es62.js.map +1 -1
  106. package/dist/es/standards-sdk.es63.js +22 -90
  107. package/dist/es/standards-sdk.es63.js.map +1 -1
  108. package/dist/es/standards-sdk.es64.js +28 -3
  109. package/dist/es/standards-sdk.es64.js.map +1 -1
  110. package/dist/es/standards-sdk.es65.js +21 -2
  111. package/dist/es/standards-sdk.es65.js.map +1 -1
  112. package/dist/es/standards-sdk.es66.js +36 -105
  113. package/dist/es/standards-sdk.es66.js.map +1 -1
  114. package/dist/es/standards-sdk.es67.js +15 -71
  115. package/dist/es/standards-sdk.es67.js.map +1 -1
  116. package/dist/es/standards-sdk.es68.js +60 -5
  117. package/dist/es/standards-sdk.es68.js.map +1 -1
  118. package/dist/es/standards-sdk.es69.js +1288 -4
  119. package/dist/es/standards-sdk.es69.js.map +1 -1
  120. package/dist/es/standards-sdk.es7.js +52 -7
  121. package/dist/es/standards-sdk.es7.js.map +1 -1
  122. package/dist/es/standards-sdk.es70.js +131 -204
  123. package/dist/es/standards-sdk.es70.js.map +1 -1
  124. package/dist/es/standards-sdk.es71.js +81 -55
  125. package/dist/es/standards-sdk.es71.js.map +1 -1
  126. package/dist/es/standards-sdk.es72.js +32 -69
  127. package/dist/es/standards-sdk.es72.js.map +1 -1
  128. package/dist/es/standards-sdk.es73.js +154 -16
  129. package/dist/es/standards-sdk.es73.js.map +1 -1
  130. package/dist/es/standards-sdk.es74.js +790 -24
  131. package/dist/es/standards-sdk.es74.js.map +1 -1
  132. package/dist/es/standards-sdk.es75.js +29 -23
  133. package/dist/es/standards-sdk.es75.js.map +1 -1
  134. package/dist/es/standards-sdk.es76.js +61 -36
  135. package/dist/es/standards-sdk.es76.js.map +1 -1
  136. package/dist/es/standards-sdk.es77.js +50 -3
  137. package/dist/es/standards-sdk.es77.js.map +1 -1
  138. package/dist/es/standards-sdk.es78.js +8 -162
  139. package/dist/es/standards-sdk.es78.js.map +1 -1
  140. package/dist/es/standards-sdk.es79.js +60 -27
  141. package/dist/es/standards-sdk.es79.js.map +1 -1
  142. package/dist/es/standards-sdk.es8.js +3 -3
  143. package/dist/es/standards-sdk.es8.js.map +1 -1
  144. package/dist/es/standards-sdk.es80.js +6 -63
  145. package/dist/es/standards-sdk.es80.js.map +1 -1
  146. package/dist/es/standards-sdk.es81.js +12 -47
  147. package/dist/es/standards-sdk.es81.js.map +1 -1
  148. package/dist/es/standards-sdk.es82.js +7 -10
  149. package/dist/es/standards-sdk.es82.js.map +1 -1
  150. package/dist/es/standards-sdk.es83.js +41 -61
  151. package/dist/es/standards-sdk.es83.js.map +1 -1
  152. package/dist/es/standards-sdk.es84.js +2 -6
  153. package/dist/es/standards-sdk.es84.js.map +1 -1
  154. package/dist/es/standards-sdk.es85.js +134 -13
  155. package/dist/es/standards-sdk.es85.js.map +1 -1
  156. package/dist/es/standards-sdk.es86.js +171 -6
  157. package/dist/es/standards-sdk.es86.js.map +1 -1
  158. package/dist/es/standards-sdk.es87.js +27 -45
  159. package/dist/es/standards-sdk.es87.js.map +1 -1
  160. package/dist/es/standards-sdk.es88.js +26 -2
  161. package/dist/es/standards-sdk.es88.js.map +1 -1
  162. package/dist/es/standards-sdk.es89.js +38 -136
  163. package/dist/es/standards-sdk.es89.js.map +1 -1
  164. package/dist/es/standards-sdk.es9.js +1 -1
  165. package/dist/es/standards-sdk.es90.js +93 -164
  166. package/dist/es/standards-sdk.es90.js.map +1 -1
  167. package/dist/es/standards-sdk.es91.js +2 -101
  168. package/dist/es/standards-sdk.es91.js.map +1 -1
  169. package/dist/es/standards-sdk.es92.js +16 -2
  170. package/dist/es/standards-sdk.es92.js.map +1 -1
  171. package/dist/es/standards-sdk.es93.js +408 -15
  172. package/dist/es/standards-sdk.es93.js.map +1 -1
  173. package/dist/es/standards-sdk.es94.js +17 -405
  174. package/dist/es/standards-sdk.es94.js.map +1 -1
  175. package/dist/es/standards-sdk.es97.js +1 -1
  176. package/dist/es/standards-sdk.es98.js +3 -3
  177. package/dist/umd/hcs-10/base-client.d.ts +20 -5
  178. package/dist/umd/hcs-10/base-client.d.ts.map +1 -1
  179. package/dist/umd/hcs-10/sdk.d.ts +12 -2
  180. package/dist/umd/hcs-10/sdk.d.ts.map +1 -1
  181. package/dist/umd/standards-sdk.umd.js +1 -1
  182. package/dist/umd/standards-sdk.umd.js.map +1 -1
  183. package/package.json +9 -3
@@ -1,5 +1,7 @@
1
- const version = "6.13.5";
1
+ function getDefaultExportFromCjs(x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3
+ }
2
4
  export {
3
- version
5
+ getDefaultExportFromCjs
4
6
  };
5
7
  //# sourceMappingURL=standards-sdk.es32.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es32.js","sources":["../../node_modules/ethers/lib.esm/_version.js"],"sourcesContent":["/* Do NOT modify this file; see /src.ts/_admin/update-version.ts */\n/**\n * The current version of Ethers.\n */\nexport const version = \"6.13.5\";\n//# sourceMappingURL=_version.js.map"],"names":[],"mappings":"AAIY,MAAC,UAAU;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es32.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,87 +1,5 @@
1
- import { keccak256 } from "./standards-sdk.es34.js";
2
- import { assertArgument } from "./standards-sdk.es35.js";
3
- import { getBytes } from "./standards-sdk.es36.js";
4
- const BN_0 = BigInt(0);
5
- const BN_36 = BigInt(36);
6
- function getChecksumAddress(address) {
7
- address = address.toLowerCase();
8
- const chars = address.substring(2).split("");
9
- const expanded = new Uint8Array(40);
10
- for (let i = 0; i < 40; i++) {
11
- expanded[i] = chars[i].charCodeAt(0);
12
- }
13
- const hashed = getBytes(keccak256(expanded));
14
- for (let i = 0; i < 40; i += 2) {
15
- if (hashed[i >> 1] >> 4 >= 8) {
16
- chars[i] = chars[i].toUpperCase();
17
- }
18
- if ((hashed[i >> 1] & 15) >= 8) {
19
- chars[i + 1] = chars[i + 1].toUpperCase();
20
- }
21
- }
22
- return "0x" + chars.join("");
23
- }
24
- const ibanLookup = {};
25
- for (let i = 0; i < 10; i++) {
26
- ibanLookup[String(i)] = String(i);
27
- }
28
- for (let i = 0; i < 26; i++) {
29
- ibanLookup[String.fromCharCode(65 + i)] = String(10 + i);
30
- }
31
- const safeDigits = 15;
32
- function ibanChecksum(address) {
33
- address = address.toUpperCase();
34
- address = address.substring(4) + address.substring(0, 2) + "00";
35
- let expanded = address.split("").map((c) => {
36
- return ibanLookup[c];
37
- }).join("");
38
- while (expanded.length >= safeDigits) {
39
- let block = expanded.substring(0, safeDigits);
40
- expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);
41
- }
42
- let checksum = String(98 - parseInt(expanded, 10) % 97);
43
- while (checksum.length < 2) {
44
- checksum = "0" + checksum;
45
- }
46
- return checksum;
47
- }
48
- const Base36 = function() {
49
- const result = {};
50
- for (let i = 0; i < 36; i++) {
51
- const key = "0123456789abcdefghijklmnopqrstuvwxyz"[i];
52
- result[key] = BigInt(i);
53
- }
54
- return result;
55
- }();
56
- function fromBase36(value) {
57
- value = value.toLowerCase();
58
- let result = BN_0;
59
- for (let i = 0; i < value.length; i++) {
60
- result = result * BN_36 + Base36[value[i]];
61
- }
62
- return result;
63
- }
64
- function getAddress(address) {
65
- assertArgument(typeof address === "string", "invalid address", "address", address);
66
- if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {
67
- if (!address.startsWith("0x")) {
68
- address = "0x" + address;
69
- }
70
- const result = getChecksumAddress(address);
71
- assertArgument(!address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || result === address, "bad address checksum", "address", address);
72
- return result;
73
- }
74
- if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
75
- assertArgument(address.substring(2, 4) === ibanChecksum(address), "bad icap checksum", "address", address);
76
- let result = fromBase36(address.substring(4)).toString(16);
77
- while (result.length < 40) {
78
- result = "0" + result;
79
- }
80
- return getChecksumAddress("0x" + result);
81
- }
82
- assertArgument(false, "invalid address", "address", address);
83
- }
1
+ const version = "6.13.5";
84
2
  export {
85
- getAddress
3
+ version
86
4
  };
87
5
  //# sourceMappingURL=standards-sdk.es33.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es33.js","sources":["../../node_modules/ethers/lib.esm/address/address.js"],"sourcesContent":["import { keccak256 } from \"../crypto/index.js\";\nimport { getBytes, assertArgument } from \"../utils/index.js\";\nconst BN_0 = BigInt(0);\nconst BN_36 = BigInt(36);\nfunction getChecksumAddress(address) {\n // if (!isHexString(address, 20)) {\n // logger.throwArgumentError(\"invalid address\", \"address\", address);\n // }\n address = address.toLowerCase();\n const chars = address.substring(2).split(\"\");\n const expanded = new Uint8Array(40);\n for (let i = 0; i < 40; i++) {\n expanded[i] = chars[i].charCodeAt(0);\n }\n const hashed = getBytes(keccak256(expanded));\n for (let i = 0; i < 40; i += 2) {\n if ((hashed[i >> 1] >> 4) >= 8) {\n chars[i] = chars[i].toUpperCase();\n }\n if ((hashed[i >> 1] & 0x0f) >= 8) {\n chars[i + 1] = chars[i + 1].toUpperCase();\n }\n }\n return \"0x\" + chars.join(\"\");\n}\n// See: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n// Create lookup table\nconst ibanLookup = {};\nfor (let i = 0; i < 10; i++) {\n ibanLookup[String(i)] = String(i);\n}\nfor (let i = 0; i < 26; i++) {\n ibanLookup[String.fromCharCode(65 + i)] = String(10 + i);\n}\n// How many decimal digits can we process? (for 64-bit float, this is 15)\n// i.e. Math.floor(Math.log10(Number.MAX_SAFE_INTEGER));\nconst safeDigits = 15;\nfunction ibanChecksum(address) {\n address = address.toUpperCase();\n address = address.substring(4) + address.substring(0, 2) + \"00\";\n let expanded = address.split(\"\").map((c) => { return ibanLookup[c]; }).join(\"\");\n // Javascript can handle integers safely up to 15 (decimal) digits\n while (expanded.length >= safeDigits) {\n let block = expanded.substring(0, safeDigits);\n expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);\n }\n let checksum = String(98 - (parseInt(expanded, 10) % 97));\n while (checksum.length < 2) {\n checksum = \"0\" + checksum;\n }\n return checksum;\n}\n;\nconst Base36 = (function () {\n ;\n const result = {};\n for (let i = 0; i < 36; i++) {\n const key = \"0123456789abcdefghijklmnopqrstuvwxyz\"[i];\n result[key] = BigInt(i);\n }\n return result;\n})();\nfunction fromBase36(value) {\n value = value.toLowerCase();\n let result = BN_0;\n for (let i = 0; i < value.length; i++) {\n result = result * BN_36 + Base36[value[i]];\n }\n return result;\n}\n/**\n * Returns a normalized and checksumed address for %%address%%.\n * This accepts non-checksum addresses, checksum addresses and\n * [[getIcapAddress]] formats.\n *\n * The checksum in Ethereum uses the capitalization (upper-case\n * vs lower-case) of the characters within an address to encode\n * its checksum, which offers, on average, a checksum of 15-bits.\n *\n * If %%address%% contains both upper-case and lower-case, it is\n * assumed to already be a checksum address and its checksum is\n * validated, and if the address fails its expected checksum an\n * error is thrown.\n *\n * If you wish the checksum of %%address%% to be ignore, it should\n * be converted to lower-case (i.e. ``.toLowercase()``) before\n * being passed in. This should be a very rare situation though,\n * that you wish to bypass the safegaurds in place to protect\n * against an address that has been incorrectly copied from another\n * source.\n *\n * @example:\n * // Adds the checksum (via upper-casing specific letters)\n * getAddress(\"0x8ba1f109551bd432803012645ac136ddd64dba72\")\n * //_result:\n *\n * // Converts ICAP address and adds checksum\n * getAddress(\"XE65GB6LDNXYOFTX0NSV3FUWKOWIXAMJK36\");\n * //_result:\n *\n * // Throws an error if an address contains mixed case,\n * // but the checksum fails\n * getAddress(\"0x8Ba1f109551bD432803012645Ac136ddd64DBA72\")\n * //_error:\n */\nexport function getAddress(address) {\n assertArgument(typeof (address) === \"string\", \"invalid address\", \"address\", address);\n if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {\n // Missing the 0x prefix\n if (!address.startsWith(\"0x\")) {\n address = \"0x\" + address;\n }\n const result = getChecksumAddress(address);\n // It is a checksummed address with a bad checksum\n assertArgument(!address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || result === address, \"bad address checksum\", \"address\", address);\n return result;\n }\n // Maybe ICAP? (we only support direct mode)\n if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {\n // It is an ICAP address with a bad checksum\n assertArgument(address.substring(2, 4) === ibanChecksum(address), \"bad icap checksum\", \"address\", address);\n let result = fromBase36(address.substring(4)).toString(16);\n while (result.length < 40) {\n result = \"0\" + result;\n }\n return getChecksumAddress(\"0x\" + result);\n }\n assertArgument(false, \"invalid address\", \"address\", address);\n}\n/**\n * The [ICAP Address format](link-icap) format is an early checksum\n * format which attempts to be compatible with the banking\n * industry [IBAN format](link-wiki-iban) for bank accounts.\n *\n * It is no longer common or a recommended format.\n *\n * @example:\n * getIcapAddress(\"0x8ba1f109551bd432803012645ac136ddd64dba72\");\n * //_result:\n *\n * getIcapAddress(\"XE65GB6LDNXYOFTX0NSV3FUWKOWIXAMJK36\");\n * //_result:\n *\n * // Throws an error if the ICAP checksum is wrong\n * getIcapAddress(\"XE65GB6LDNXYOFTX0NSV3FUWKOWIXAMJK37\");\n * //_error:\n */\nexport function getIcapAddress(address) {\n //let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();\n let base36 = BigInt(getAddress(address)).toString(36).toUpperCase();\n while (base36.length < 30) {\n base36 = \"0\" + base36;\n }\n return \"XE\" + ibanChecksum(\"XE00\" + base36) + base36;\n}\n//# sourceMappingURL=address.js.map"],"names":[],"mappings":";;;AAEA,MAAM,OAAO,OAAO,CAAC;AACrB,MAAM,QAAQ,OAAO,EAAE;AACvB,SAAS,mBAAmB,SAAS;AAIjC,YAAU,QAAQ,YAAa;AAC/B,QAAM,QAAQ,QAAQ,UAAU,CAAC,EAAE,MAAM,EAAE;AAC3C,QAAM,WAAW,IAAI,WAAW,EAAE;AAClC,WAAS,IAAI,GAAG,IAAI,IAAI,KAAK;AACzB,aAAS,CAAC,IAAI,MAAM,CAAC,EAAE,WAAW,CAAC;AAAA,EAC3C;AACI,QAAM,SAAS,SAAS,UAAU,QAAQ,CAAC;AAC3C,WAAS,IAAI,GAAG,IAAI,IAAI,KAAK,GAAG;AAC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,EAC9B;AACI,SAAO;AACX,EAAI;AACJ,SAAS,WAAW,OAAO;AACvB,UAAQ,MAAM,YAAa;AAC3B,MAAI,SAAS;AACb,WAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACnC,aAAS,SAAS,QAAQ,OAAO,MAAM,CAAC,CAAC;AAAA,EACjD;AACI,SAAO;AACX;AAoCO,SAAS,WAAW,SAAS;AAChC,iBAAe,OAAQ,YAAa,UAAU,mBAAmB,WAAW,OAAO;AACnF,MAAI,QAAQ,MAAM,wBAAwB,GAAG;AAEzC,QAAI,CAAC,QAAQ,WAAW,IAAI,GAAG;AAC3B,gBAAU,OAAO;AAAA,IAC7B;AACQ,UAAM,SAAS,mBAAmB,OAAO;AAEzC,mBAAe,CAAC,QAAQ,MAAM,+BAA+B,KAAK,WAAW,SAAS,wBAAwB,WAAW,OAAO;AAChI,WAAO;AAAA,EACf;AAEI,MAAI,QAAQ,MAAM,gCAAgC,GAAG;AAEjD,mBAAe,QAAQ,UAAU,GAAG,CAAC,MAAM,aAAa,OAAO,GAAG,qBAAqB,WAAW,OAAO;AACzG,QAAI,SAAS,WAAW,QAAQ,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE;AACzD,WAAO,OAAO,SAAS,IAAI;AACvB,eAAS,MAAM;AAAA,IAC3B;AACQ,WAAO,mBAAmB,OAAO,MAAM;AAAA,EAC/C;AACI,iBAAe,OAAO,mBAAmB,WAAW,OAAO;AAC/D;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es33.js","sources":["../../node_modules/ethers/lib.esm/_version.js"],"sourcesContent":["/* Do NOT modify this file; see /src.ts/_admin/update-version.ts */\n/**\n * The current version of Ethers.\n */\nexport const version = \"6.13.5\";\n//# sourceMappingURL=_version.js.map"],"names":[],"mappings":"AAIY,MAAC,UAAU;","x_google_ignoreList":[0]}
@@ -1,26 +1,6 @@
1
- import { keccak_256 } from "./standards-sdk.es53.js";
2
- import { getBytes, hexlify } from "./standards-sdk.es36.js";
3
- let locked = false;
4
- const _keccak256 = function(data) {
5
- return keccak_256(data);
6
- };
7
- let __keccak256 = _keccak256;
8
- function keccak256(_data) {
9
- const data = getBytes(_data, "data");
10
- return hexlify(__keccak256(data));
11
- }
12
- keccak256._ = _keccak256;
13
- keccak256.lock = function() {
14
- locked = true;
15
- };
16
- keccak256.register = function(func) {
17
- if (locked) {
18
- throw new TypeError("keccak256 is locked");
19
- }
20
- __keccak256 = func;
21
- };
22
- Object.freeze(keccak256);
1
+ const global = globalThis || void 0 || self;
23
2
  export {
24
- keccak256
3
+ global as default,
4
+ global
25
5
  };
26
6
  //# sourceMappingURL=standards-sdk.es34.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es34.js","sources":["../../node_modules/ethers/lib.esm/crypto/keccak.js"],"sourcesContent":["/**\n * Cryptographic hashing functions\n *\n * @_subsection: api/crypto:Hash Functions [about-crypto-hashing]\n */\nimport { keccak_256 } from \"@noble/hashes/sha3\";\nimport { getBytes, hexlify } from \"../utils/index.js\";\nlet locked = false;\nconst _keccak256 = function (data) {\n return keccak_256(data);\n};\nlet __keccak256 = _keccak256;\n/**\n * Compute the cryptographic KECCAK256 hash of %%data%%.\n *\n * The %%data%% **must** be a data representation, to compute the\n * hash of UTF-8 data use the [[id]] function.\n *\n * @returns DataHexstring\n * @example:\n * keccak256(\"0x\")\n * //_result:\n *\n * keccak256(\"0x1337\")\n * //_result:\n *\n * keccak256(new Uint8Array([ 0x13, 0x37 ]))\n * //_result:\n *\n * // Strings are assumed to be DataHexString, otherwise it will\n * // throw. To hash UTF-8 data, see the note above.\n * keccak256(\"Hello World\")\n * //_error:\n */\nexport function keccak256(_data) {\n const data = getBytes(_data, \"data\");\n return hexlify(__keccak256(data));\n}\nkeccak256._ = _keccak256;\nkeccak256.lock = function () { locked = true; };\nkeccak256.register = function (func) {\n if (locked) {\n throw new TypeError(\"keccak256 is locked\");\n }\n __keccak256 = func;\n};\nObject.freeze(keccak256);\n//# sourceMappingURL=keccak.js.map"],"names":[],"mappings":";;AAOA,IAAI,SAAS;AACb,MAAM,aAAa,SAAU,MAAM;AAC/B,SAAO,WAAW,IAAI;AAC1B;AACA,IAAI,cAAc;AAuBX,SAAS,UAAU,OAAO;AAC7B,QAAM,OAAO,SAAS,OAAO,MAAM;AACnC,SAAO,QAAQ,YAAY,IAAI,CAAC;AACpC;AACA,UAAU,IAAI;AACd,UAAU,OAAO,WAAY;AAAE,WAAS;AAAO;AAC/C,UAAU,WAAW,SAAU,MAAM;AACjC,MAAI,QAAQ;AACR,UAAM,IAAI,UAAU,qBAAqB;AAAA,EACjD;AACI,gBAAc;AAClB;AACA,OAAO,OAAO,SAAS;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es34.js","sources":["../../node_modules/vite-plugin-node-polyfills/shims/global/dist/index.js"],"sourcesContent":["const global = globalThis || void 0 || self;\n\nexport { global as default, global };\n//# sourceMappingURL=index.js.map\n"],"names":[],"mappings":"AAAK,MAAC,SAAS,cAAc,UAAU;","x_google_ignoreList":[0]}
@@ -1,151 +1,167 @@
1
- import { version } from "./standards-sdk.es32.js";
2
- import { defineProperties } from "./standards-sdk.es49.js";
3
- function stringify(value) {
4
- if (value == null) {
5
- return "null";
6
- }
7
- if (Array.isArray(value)) {
8
- return "[ " + value.map(stringify).join(", ") + " ]";
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;
20
+ }
21
+ } catch (e) {
22
+ cachedSetTimeout = defaultSetTimout;
9
23
  }
10
- if (value instanceof Uint8Array) {
11
- const HEX = "0123456789abcdef";
12
- let result = "0x";
13
- for (let i = 0; i < value.length; i++) {
14
- result += HEX[value[i] >> 4];
15
- result += HEX[value[i] & 15];
24
+ try {
25
+ if (typeof clearTimeout === "function") {
26
+ cachedClearTimeout = clearTimeout;
27
+ } else {
28
+ cachedClearTimeout = defaultClearTimeout;
16
29
  }
17
- return result;
30
+ } catch (e) {
31
+ cachedClearTimeout = defaultClearTimeout;
18
32
  }
19
- if (typeof value === "object" && typeof value.toJSON === "function") {
20
- return stringify(value.toJSON());
33
+ })();
34
+ function runTimeout(fun) {
35
+ if (cachedSetTimeout === setTimeout) {
36
+ return setTimeout(fun, 0);
21
37
  }
22
- switch (typeof value) {
23
- case "boolean":
24
- case "symbol":
25
- return value.toString();
26
- case "bigint":
27
- return BigInt(value).toString();
28
- case "number":
29
- return value.toString();
30
- case "string":
31
- return JSON.stringify(value);
32
- case "object": {
33
- const keys = Object.keys(value);
34
- keys.sort();
35
- return "{ " + keys.map((k) => `${stringify(k)}: ${stringify(value[k])}`).join(", ") + " }";
36
- }
38
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
39
+ cachedSetTimeout = setTimeout;
40
+ return setTimeout(fun, 0);
37
41
  }
38
- return `[ COULD NOT SERIALIZE ]`;
39
- }
40
- function isError(error, code) {
41
- return error && error.code === code;
42
- }
43
- function makeError(message, code, info) {
44
- let shortMessage = message;
45
- {
46
- const details = [];
47
- if (info) {
48
- if ("message" in info || "code" in info || "name" in info) {
49
- throw new Error(`value will overwrite populated values: ${stringify(info)}`);
50
- }
51
- for (const key in info) {
52
- if (key === "shortMessage") {
53
- continue;
54
- }
55
- const value = info[key];
56
- details.push(key + "=" + stringify(value));
57
- }
58
- }
59
- details.push(`code=${code}`);
60
- details.push(`version=${version}`);
61
- if (details.length) {
62
- message += " (" + details.join(", ") + ")";
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);
63
49
  }
64
50
  }
65
- let error;
66
- switch (code) {
67
- case "INVALID_ARGUMENT":
68
- error = new TypeError(message);
69
- break;
70
- case "NUMERIC_FAULT":
71
- case "BUFFER_OVERRUN":
72
- error = new RangeError(message);
73
- break;
74
- default:
75
- error = new Error(message);
51
+ }
52
+ function runClearTimeout(marker) {
53
+ if (cachedClearTimeout === clearTimeout) {
54
+ return clearTimeout(marker);
76
55
  }
77
- defineProperties(error, { code });
78
- if (info) {
79
- Object.assign(error, info);
56
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
57
+ cachedClearTimeout = clearTimeout;
58
+ return clearTimeout(marker);
80
59
  }
81
- if (error.shortMessage == null) {
82
- defineProperties(error, { shortMessage });
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
+ }
83
68
  }
84
- return error;
85
69
  }
86
- function assert(check, message, code, info) {
87
- if (!check) {
88
- throw makeError(message, code, info);
70
+ var queue = [];
71
+ var draining = false;
72
+ var currentQueue;
73
+ var queueIndex = -1;
74
+ function cleanUpNextTick() {
75
+ if (!draining || !currentQueue) {
76
+ return;
89
77
  }
90
- }
91
- function assertArgument(check, message, name, value) {
92
- assert(check, message, "INVALID_ARGUMENT", { argument: name, value });
93
- }
94
- function assertArgumentCount(count, expectedCount, message) {
95
- if (message == null) {
96
- message = "";
78
+ draining = false;
79
+ if (currentQueue.length) {
80
+ queue = currentQueue.concat(queue);
81
+ } else {
82
+ queueIndex = -1;
97
83
  }
98
- if (message) {
99
- message = ": " + message;
84
+ if (queue.length) {
85
+ drainQueue();
100
86
  }
101
- assert(count >= expectedCount, "missing argument" + message, "MISSING_ARGUMENT", {
102
- count,
103
- expectedCount
104
- });
105
- assert(count <= expectedCount, "too many arguments" + message, "UNEXPECTED_ARGUMENT", {
106
- count,
107
- expectedCount
108
- });
109
87
  }
110
- ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => {
111
- try {
112
- if ("test".normalize(form) !== "test") {
113
- throw new Error("bad");
114
- }
115
- ;
116
- if (form === "NFD") {
117
- const check = String.fromCharCode(233).normalize("NFD");
118
- const expected = String.fromCharCode(101, 769);
119
- if (check !== expected) {
120
- throw new Error("broken");
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();
121
101
  }
122
102
  }
123
- accum.push(form);
124
- } catch (error) {
125
- }
126
- return accum;
127
- }, []);
128
- function assertPrivate(givenGuard, guard, className) {
129
- if (className == null) {
130
- className = "";
103
+ queueIndex = -1;
104
+ len = queue.length;
131
105
  }
132
- if (givenGuard !== guard) {
133
- let method = className, operation = "new";
134
- if (className) {
135
- method += ".";
136
- operation += " " + className;
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];
137
115
  }
138
- assert(false, `private constructor; use ${method}from* methods`, "UNSUPPORTED_OPERATION", {
139
- operation
140
- });
141
116
  }
117
+ queue.push(new Item(fun, args));
118
+ if (queue.length === 1 && !draining) {
119
+ runTimeout(drainQueue);
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() {
142
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);
143
163
  export {
144
- assert,
145
- assertArgument,
146
- assertArgumentCount,
147
- assertPrivate,
148
- isError,
149
- makeError
164
+ process$1 as default,
165
+ process$1 as process
150
166
  };
151
167
  //# sourceMappingURL=standards-sdk.es35.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es35.js","sources":["../../node_modules/ethers/lib.esm/utils/errors.js"],"sourcesContent":["/**\n * All errors in ethers include properties to ensure they are both\n * human-readable (i.e. ``.message``) and machine-readable (i.e. ``.code``).\n *\n * The [[isError]] function can be used to check the error ``code`` and\n * provide a type guard for the properties present on that error interface.\n *\n * @_section: api/utils/errors:Errors [about-errors]\n */\nimport { version } from \"../_version.js\";\nimport { defineProperties } from \"./properties.js\";\nfunction stringify(value) {\n if (value == null) {\n return \"null\";\n }\n if (Array.isArray(value)) {\n return \"[ \" + (value.map(stringify)).join(\", \") + \" ]\";\n }\n if (value instanceof Uint8Array) {\n const HEX = \"0123456789abcdef\";\n let result = \"0x\";\n for (let i = 0; i < value.length; i++) {\n result += HEX[value[i] >> 4];\n result += HEX[value[i] & 0xf];\n }\n return result;\n }\n if (typeof (value) === \"object\" && typeof (value.toJSON) === \"function\") {\n return stringify(value.toJSON());\n }\n switch (typeof (value)) {\n case \"boolean\":\n case \"symbol\":\n return value.toString();\n case \"bigint\":\n return BigInt(value).toString();\n case \"number\":\n return (value).toString();\n case \"string\":\n return JSON.stringify(value);\n case \"object\": {\n const keys = Object.keys(value);\n keys.sort();\n return \"{ \" + keys.map((k) => `${stringify(k)}: ${stringify(value[k])}`).join(\", \") + \" }\";\n }\n }\n return `[ COULD NOT SERIALIZE ]`;\n}\n/**\n * Returns true if the %%error%% matches an error thrown by ethers\n * that matches the error %%code%%.\n *\n * In TypeScript environments, this can be used to check that %%error%%\n * matches an EthersError type, which means the expected properties will\n * be set.\n *\n * @See [ErrorCodes](api:ErrorCode)\n * @example\n * try {\n * // code....\n * } catch (e) {\n * if (isError(e, \"CALL_EXCEPTION\")) {\n * // The Type Guard has validated this object\n * console.log(e.data);\n * }\n * }\n */\nexport function isError(error, code) {\n return (error && error.code === code);\n}\n/**\n * Returns true if %%error%% is a [[CallExceptionError].\n */\nexport function isCallException(error) {\n return isError(error, \"CALL_EXCEPTION\");\n}\n/**\n * Returns a new Error configured to the format ethers emits errors, with\n * the %%message%%, [[api:ErrorCode]] %%code%% and additional properties\n * for the corresponding EthersError.\n *\n * Each error in ethers includes the version of ethers, a\n * machine-readable [[ErrorCode]], and depending on %%code%%, additional\n * required properties. The error message will also include the %%message%%,\n * ethers version, %%code%% and all additional properties, serialized.\n */\nexport function makeError(message, code, info) {\n let shortMessage = message;\n {\n const details = [];\n if (info) {\n if (\"message\" in info || \"code\" in info || \"name\" in info) {\n throw new Error(`value will overwrite populated values: ${stringify(info)}`);\n }\n for (const key in info) {\n if (key === \"shortMessage\") {\n continue;\n }\n const value = (info[key]);\n // try {\n details.push(key + \"=\" + stringify(value));\n // } catch (error: any) {\n // console.log(\"MMM\", error.message);\n // details.push(key + \"=[could not serialize object]\");\n // }\n }\n }\n details.push(`code=${code}`);\n details.push(`version=${version}`);\n if (details.length) {\n message += \" (\" + details.join(\", \") + \")\";\n }\n }\n let error;\n switch (code) {\n case \"INVALID_ARGUMENT\":\n error = new TypeError(message);\n break;\n case \"NUMERIC_FAULT\":\n case \"BUFFER_OVERRUN\":\n error = new RangeError(message);\n break;\n default:\n error = new Error(message);\n }\n defineProperties(error, { code });\n if (info) {\n Object.assign(error, info);\n }\n if (error.shortMessage == null) {\n defineProperties(error, { shortMessage });\n }\n return error;\n}\n/**\n * Throws an EthersError with %%message%%, %%code%% and additional error\n * %%info%% when %%check%% is falsish..\n *\n * @see [[api:makeError]]\n */\nexport function assert(check, message, code, info) {\n if (!check) {\n throw makeError(message, code, info);\n }\n}\n/**\n * A simple helper to simply ensuring provided arguments match expected\n * constraints, throwing if not.\n *\n * In TypeScript environments, the %%check%% has been asserted true, so\n * any further code does not need additional compile-time checks.\n */\nexport function assertArgument(check, message, name, value) {\n assert(check, message, \"INVALID_ARGUMENT\", { argument: name, value: value });\n}\nexport function assertArgumentCount(count, expectedCount, message) {\n if (message == null) {\n message = \"\";\n }\n if (message) {\n message = \": \" + message;\n }\n assert(count >= expectedCount, \"missing argument\" + message, \"MISSING_ARGUMENT\", {\n count: count,\n expectedCount: expectedCount\n });\n assert(count <= expectedCount, \"too many arguments\" + message, \"UNEXPECTED_ARGUMENT\", {\n count: count,\n expectedCount: expectedCount\n });\n}\nconst _normalizeForms = [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].reduce((accum, form) => {\n try {\n // General test for normalize\n /* c8 ignore start */\n if (\"test\".normalize(form) !== \"test\") {\n throw new Error(\"bad\");\n }\n ;\n /* c8 ignore stop */\n if (form === \"NFD\") {\n const check = String.fromCharCode(0xe9).normalize(\"NFD\");\n const expected = String.fromCharCode(0x65, 0x0301);\n /* c8 ignore start */\n if (check !== expected) {\n throw new Error(\"broken\");\n }\n /* c8 ignore stop */\n }\n accum.push(form);\n }\n catch (error) { }\n return accum;\n}, []);\n/**\n * Throws if the normalization %%form%% is not supported.\n */\nexport function assertNormalize(form) {\n assert(_normalizeForms.indexOf(form) >= 0, \"platform missing String.prototype.normalize\", \"UNSUPPORTED_OPERATION\", {\n operation: \"String.prototype.normalize\", info: { form }\n });\n}\n/**\n * Many classes use file-scoped values to guard the constructor,\n * making it effectively private. This facilitates that pattern\n * by ensuring the %%givenGaurd%% matches the file-scoped %%guard%%,\n * throwing if not, indicating the %%className%% if provided.\n */\nexport function assertPrivate(givenGuard, guard, className) {\n if (className == null) {\n className = \"\";\n }\n if (givenGuard !== guard) {\n let method = className, operation = \"new\";\n if (className) {\n method += \".\";\n operation += \" \" + className;\n }\n assert(false, `private constructor; use ${method}from* methods`, \"UNSUPPORTED_OPERATION\", {\n operation\n });\n }\n}\n//# sourceMappingURL=errors.js.map"],"names":[],"mappings":";;AAWA,SAAS,UAAU,OAAO;AACtB,MAAI,SAAS,MAAM;AACf,WAAO;AAAA,EACf;AACI,MAAI,MAAM,QAAQ,KAAK,GAAG;AACtB,WAAO,OAAQ,MAAM,IAAI,SAAS,EAAG,KAAK,IAAI,IAAI;AAAA,EAC1D;AACI,MAAI,iBAAiB,YAAY;AAC7B,UAAM,MAAM;AACZ,QAAI,SAAS;AACb,aAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AACnC,gBAAU,IAAI,MAAM,CAAC,KAAK,CAAC;AAC3B,gBAAU,IAAI,MAAM,CAAC,IAAI,EAAG;AAAA,IACxC;AACQ,WAAO;AAAA,EACf;AACI,MAAI,OAAQ,UAAW,YAAY,OAAQ,MAAM,WAAY,YAAY;AACrE,WAAO,UAAU,MAAM,QAAQ;AAAA,EACvC;AACI,UAAQ,OAAQ,OAAM;AAAA,IAClB,KAAK;AAAA,IACL,KAAK;AACD,aAAO,MAAM,SAAU;AAAA,IAC3B,KAAK;AACD,aAAO,OAAO,KAAK,EAAE,SAAU;AAAA,IACnC,KAAK;AACD,aAAQ,MAAO,SAAU;AAAA,IAC7B,KAAK;AACD,aAAO,KAAK,UAAU,KAAK;AAAA,IAC/B,KAAK,UAAU;AACX,YAAM,OAA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AA4B,MAAM,iBAAiB,yBAAyB;AAAA,MACtF;AAAA,IACZ,CAAS;AAAA,EACT;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es35.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,IAAI;AAEJ,SAAS,mBAAmB;AACxB,QAAM,IAAI,MAAM,iCAAiC;AACrD;AACA,SAAS,sBAAuB;AAC5B,QAAM,IAAI,MAAM,mCAAmC;AACvD;AAAA,CACC,WAAY;AACT,MAAI;AACA,QAAI,OAAO,eAAe,YAAY;AAClC,yBAAmB;AAAA,IAC/B,OAAe;AACH,yBAAmB;AAAA,IAC/B;AAAA,EACK,SAAQ,GAAG;AACR,uBAAmB;AAAA,EAC3B;AACI,MAAI;AACA,QAAI,OAAO,iBAAiB,YAAY;AACpC,2BAAqB;AAAA,IACjC,OAAe;AACH,2BAAqB;AAAA,IACjC;AAAA,EACK,SAAQ,GAAG;AACR,yBAAqB;AAAA,EAC7B;AAC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