mqtt5-wasm 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mqtt5_wasm.d.ts CHANGED
@@ -644,23 +644,24 @@ export interface InitOutput {
644
644
  readonly willmessage_topic: (a: number, b: number) => void;
645
645
  readonly willmessage_willDelayInterval: (a: number) => number;
646
646
  readonly createCodecRegistry: () => number;
647
- readonly gzipcodec_withMinSize: (a: number, b: number) => number;
648
- readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
649
647
  readonly gzipcodec_new: () => number;
650
648
  readonly createGzipCodec: (a: number, b: number) => number;
651
649
  readonly __wbg_gzipcodec_free: (a: number, b: number) => void;
652
650
  readonly gzipcodec_withLevel: (a: number, b: number) => number;
653
- readonly __wasm_bindgen_func_elem_2552: (a: number, b: number) => void;
654
- readonly __wasm_bindgen_func_elem_2709: (a: number, b: number) => void;
655
- readonly __wasm_bindgen_func_elem_139: (a: number, b: number) => void;
656
- readonly __wasm_bindgen_func_elem_4189: (a: number, b: number, c: number, d: number) => void;
657
- readonly __wasm_bindgen_func_elem_2725: (a: number, b: number, c: number) => void;
658
- readonly __wasm_bindgen_func_elem_1018: (a: number, b: number, c: number) => void;
659
- readonly __wasm_bindgen_func_elem_2572: (a: number, b: number) => void;
651
+ readonly gzipcodec_withMaxDecompressedSize: (a: number, b: number) => number;
652
+ readonly gzipcodec_withMinSize: (a: number, b: number) => number;
653
+ readonly __wasm_bindgen_func_elem_4192: (a: number, b: number, c: number, d: number) => void;
654
+ readonly __wasm_bindgen_func_elem_4202: (a: number, b: number, c: number, d: number) => void;
655
+ readonly __wasm_bindgen_func_elem_1072: (a: number, b: number, c: number) => void;
656
+ readonly __wasm_bindgen_func_elem_1072_2: (a: number, b: number, c: number) => void;
657
+ readonly __wasm_bindgen_func_elem_1072_3: (a: number, b: number, c: number) => void;
658
+ readonly __wasm_bindgen_func_elem_1072_4: (a: number, b: number, c: number) => void;
659
+ readonly __wasm_bindgen_func_elem_2637: (a: number, b: number) => void;
660
660
  readonly __wbindgen_export: (a: number, b: number) => number;
661
661
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
662
662
  readonly __wbindgen_export3: (a: number) => void;
663
663
  readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
664
+ readonly __wbindgen_export5: (a: number, b: number) => void;
664
665
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
665
666
  }
666
667
 
package/mqtt5_wasm.js CHANGED
@@ -26,7 +26,7 @@ export class BridgeConfig {
26
26
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
27
27
  const len0 = WASM_VECTOR_LEN;
28
28
  const ret = wasm.bridgeconfig_new(ptr0, len0);
29
- this.__wbg_ptr = ret >>> 0;
29
+ this.__wbg_ptr = ret;
30
30
  BridgeConfigFinalization.register(this, this.__wbg_ptr, this);
31
31
  return this;
32
32
  }
@@ -116,7 +116,6 @@ export const BridgeDirection = Object.freeze({
116
116
 
117
117
  export class Broker {
118
118
  static __wrap(ptr) {
119
- ptr = ptr >>> 0;
120
119
  const obj = Object.create(Broker.prototype);
121
120
  obj.__wbg_ptr = ptr;
122
121
  BrokerFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -415,7 +414,7 @@ export class Broker {
415
414
  if (r2) {
416
415
  throw takeObject(r1);
417
416
  }
418
- this.__wbg_ptr = r0 >>> 0;
417
+ this.__wbg_ptr = r0;
419
418
  BrokerFinalization.register(this, this.__wbg_ptr, this);
420
419
  return this;
421
420
  } finally {
@@ -637,7 +636,7 @@ export class BrokerConfig {
637
636
  }
638
637
  constructor() {
639
638
  const ret = wasm.brokerconfig_new();
640
- this.__wbg_ptr = ret >>> 0;
639
+ this.__wbg_ptr = ret;
641
640
  BrokerConfigFinalization.register(this, this.__wbg_ptr, this);
642
641
  return this;
643
642
  }
@@ -701,7 +700,7 @@ export class BrokerConfig {
701
700
  * @param {number | null} [value]
702
701
  */
703
702
  set serverKeepAliveSecs(value) {
704
- wasm.brokerconfig_set_serverKeepAliveSecs(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
703
+ wasm.brokerconfig_set_serverKeepAliveSecs(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
705
704
  }
706
705
  /**
707
706
  * @param {number} value
@@ -738,7 +737,6 @@ if (Symbol.dispose) BrokerConfig.prototype[Symbol.dispose] = BrokerConfig.protot
738
737
 
739
738
  export class CodecRegistry {
740
739
  static __wrap(ptr) {
741
- ptr = ptr >>> 0;
742
740
  const obj = Object.create(CodecRegistry.prototype);
743
741
  obj.__wbg_ptr = ptr;
744
742
  CodecRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -785,7 +783,7 @@ export class CodecRegistry {
785
783
  }
786
784
  constructor() {
787
785
  const ret = wasm.codecregistry_new();
788
- this.__wbg_ptr = ret >>> 0;
786
+ this.__wbg_ptr = ret;
789
787
  CodecRegistryFinalization.register(this, this.__wbg_ptr, this);
790
788
  return this;
791
789
  }
@@ -924,11 +922,11 @@ export class ConnectOptions {
924
922
  */
925
923
  get maximumPacketSize() {
926
924
  const ret = wasm.connectoptions_maximumPacketSize(this.__wbg_ptr);
927
- return ret === 0x100000001 ? undefined : ret;
925
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
928
926
  }
929
927
  constructor() {
930
928
  const ret = wasm.connectoptions_new();
931
- this.__wbg_ptr = ret >>> 0;
929
+ this.__wbg_ptr = ret;
932
930
  ConnectOptionsFinalization.register(this, this.__wbg_ptr, this);
933
931
  return this;
934
932
  }
@@ -965,7 +963,7 @@ export class ConnectOptions {
965
963
  */
966
964
  get sessionExpiryInterval() {
967
965
  const ret = wasm.connectoptions_sessionExpiryInterval(this.__wbg_ptr);
968
- return ret === 0x100000001 ? undefined : ret;
966
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
969
967
  }
970
968
  /**
971
969
  * @param {CodecRegistry} registry
@@ -1015,7 +1013,7 @@ export class ConnectOptions {
1015
1013
  * @param {number | null} [value]
1016
1014
  */
1017
1015
  set maximumPacketSize(value) {
1018
- wasm.connectoptions_set_maximumPacketSize(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
1016
+ wasm.connectoptions_set_maximumPacketSize(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
1019
1017
  }
1020
1018
  /**
1021
1019
  * @param {Uint8Array} value
@@ -1053,7 +1051,7 @@ export class ConnectOptions {
1053
1051
  * @param {number | null} [value]
1054
1052
  */
1055
1053
  set sessionExpiryInterval(value) {
1056
- wasm.connectoptions_set_sessionExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
1054
+ wasm.connectoptions_set_sessionExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
1057
1055
  }
1058
1056
  /**
1059
1057
  * @param {number | null} [value]
@@ -1100,7 +1098,6 @@ if (Symbol.dispose) ConnectOptions.prototype[Symbol.dispose] = ConnectOptions.pr
1100
1098
 
1101
1099
  export class DeflateCodec {
1102
1100
  static __wrap(ptr) {
1103
- ptr = ptr >>> 0;
1104
1101
  const obj = Object.create(DeflateCodec.prototype);
1105
1102
  obj.__wbg_ptr = ptr;
1106
1103
  DeflateCodecFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -1118,7 +1115,7 @@ export class DeflateCodec {
1118
1115
  }
1119
1116
  constructor() {
1120
1117
  const ret = wasm.deflatecodec_new();
1121
- this.__wbg_ptr = ret >>> 0;
1118
+ this.__wbg_ptr = ret;
1122
1119
  DeflateCodecFinalization.register(this, this.__wbg_ptr, this);
1123
1120
  return this;
1124
1121
  }
@@ -1154,7 +1151,6 @@ if (Symbol.dispose) DeflateCodec.prototype[Symbol.dispose] = DeflateCodec.protot
1154
1151
 
1155
1152
  export class GzipCodec {
1156
1153
  static __wrap(ptr) {
1157
- ptr = ptr >>> 0;
1158
1154
  const obj = Object.create(GzipCodec.prototype);
1159
1155
  obj.__wbg_ptr = ptr;
1160
1156
  GzipCodecFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -1171,8 +1167,8 @@ export class GzipCodec {
1171
1167
  wasm.__wbg_gzipcodec_free(ptr, 0);
1172
1168
  }
1173
1169
  constructor() {
1174
- const ret = wasm.deflatecodec_new();
1175
- this.__wbg_ptr = ret >>> 0;
1170
+ const ret = wasm.gzipcodec_new();
1171
+ this.__wbg_ptr = ret;
1176
1172
  GzipCodecFinalization.register(this, this.__wbg_ptr, this);
1177
1173
  return this;
1178
1174
  }
@@ -1182,7 +1178,7 @@ export class GzipCodec {
1182
1178
  */
1183
1179
  withLevel(level) {
1184
1180
  const ptr = this.__destroy_into_raw();
1185
- const ret = wasm.deflatecodec_withLevel(ptr, level);
1181
+ const ret = wasm.gzipcodec_withLevel(ptr, level);
1186
1182
  return GzipCodec.__wrap(ret);
1187
1183
  }
1188
1184
  /**
@@ -1191,7 +1187,7 @@ export class GzipCodec {
1191
1187
  */
1192
1188
  withMaxDecompressedSize(size) {
1193
1189
  const ptr = this.__destroy_into_raw();
1194
- const ret = wasm.deflatecodec_withMaxDecompressedSize(ptr, size);
1190
+ const ret = wasm.gzipcodec_withMaxDecompressedSize(ptr, size);
1195
1191
  return GzipCodec.__wrap(ret);
1196
1192
  }
1197
1193
  /**
@@ -1200,7 +1196,7 @@ export class GzipCodec {
1200
1196
  */
1201
1197
  withMinSize(size) {
1202
1198
  const ptr = this.__destroy_into_raw();
1203
- const ret = wasm.deflatecodec_withMinSize(ptr, size);
1199
+ const ret = wasm.gzipcodec_withMinSize(ptr, size);
1204
1200
  return GzipCodec.__wrap(ret);
1205
1201
  }
1206
1202
  }
@@ -1208,7 +1204,6 @@ if (Symbol.dispose) GzipCodec.prototype[Symbol.dispose] = GzipCodec.prototype.fr
1208
1204
 
1209
1205
  export class MessageProperties {
1210
1206
  static __wrap(ptr) {
1211
- ptr = ptr >>> 0;
1212
1207
  const obj = Object.create(MessageProperties.prototype);
1213
1208
  obj.__wbg_ptr = ptr;
1214
1209
  MessagePropertiesFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -1274,7 +1269,7 @@ export class MessageProperties {
1274
1269
  */
1275
1270
  get messageExpiryInterval() {
1276
1271
  const ret = wasm.messageproperties_messageExpiryInterval(this.__wbg_ptr);
1277
- return ret === 0x100000001 ? undefined : ret;
1272
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
1278
1273
  }
1279
1274
  /**
1280
1275
  * @returns {boolean | undefined}
@@ -1438,7 +1433,7 @@ export class MqttClient {
1438
1433
  const ptr0 = passStringToWasm0(clientId, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1439
1434
  const len0 = WASM_VECTOR_LEN;
1440
1435
  const ret = wasm.mqttclient_new(ptr0, len0);
1441
- this.__wbg_ptr = ret >>> 0;
1436
+ this.__wbg_ptr = ret;
1442
1437
  MqttClientFinalization.register(this, this.__wbg_ptr, this);
1443
1438
  return this;
1444
1439
  }
@@ -1679,11 +1674,11 @@ export class PublishOptions {
1679
1674
  */
1680
1675
  get messageExpiryInterval() {
1681
1676
  const ret = wasm.publishoptions_messageExpiryInterval(this.__wbg_ptr);
1682
- return ret === 0x100000001 ? undefined : ret;
1677
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
1683
1678
  }
1684
1679
  constructor() {
1685
1680
  const ret = wasm.publishoptions_new();
1686
- this.__wbg_ptr = ret >>> 0;
1681
+ this.__wbg_ptr = ret;
1687
1682
  PublishOptionsFinalization.register(this, this.__wbg_ptr, this);
1688
1683
  return this;
1689
1684
  }
@@ -1747,7 +1742,7 @@ export class PublishOptions {
1747
1742
  * @param {number | null} [value]
1748
1743
  */
1749
1744
  set messageExpiryInterval(value) {
1750
- wasm.publishoptions_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
1745
+ wasm.publishoptions_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
1751
1746
  }
1752
1747
  /**
1753
1748
  * @param {boolean | null} [value]
@@ -1793,7 +1788,6 @@ if (Symbol.dispose) PublishOptions.prototype[Symbol.dispose] = PublishOptions.pr
1793
1788
 
1794
1789
  export class ReconnectOptions {
1795
1790
  static __wrap(ptr) {
1796
- ptr = ptr >>> 0;
1797
1791
  const obj = Object.create(ReconnectOptions.prototype);
1798
1792
  obj.__wbg_ptr = ptr;
1799
1793
  ReconnectOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -1842,7 +1836,7 @@ export class ReconnectOptions {
1842
1836
  */
1843
1837
  get maxAttempts() {
1844
1838
  const ret = wasm.reconnectoptions_maxAttempts(this.__wbg_ptr);
1845
- return ret === 0x100000001 ? undefined : ret;
1839
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
1846
1840
  }
1847
1841
  /**
1848
1842
  * @returns {number}
@@ -1853,7 +1847,7 @@ export class ReconnectOptions {
1853
1847
  }
1854
1848
  constructor() {
1855
1849
  const ret = wasm.reconnectoptions_new();
1856
- this.__wbg_ptr = ret >>> 0;
1850
+ this.__wbg_ptr = ret;
1857
1851
  ReconnectOptionsFinalization.register(this, this.__wbg_ptr, this);
1858
1852
  return this;
1859
1853
  }
@@ -1879,7 +1873,7 @@ export class ReconnectOptions {
1879
1873
  * @param {number | null} [value]
1880
1874
  */
1881
1875
  set maxAttempts(value) {
1882
- wasm.reconnectoptions_set_maxAttempts(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
1876
+ wasm.reconnectoptions_set_maxAttempts(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
1883
1877
  }
1884
1878
  /**
1885
1879
  * @param {number} value
@@ -1903,7 +1897,7 @@ export class SubscribeOptions {
1903
1897
  }
1904
1898
  constructor() {
1905
1899
  const ret = wasm.subscribeoptions_new();
1906
- this.__wbg_ptr = ret >>> 0;
1900
+ this.__wbg_ptr = ret;
1907
1901
  SubscribeOptionsFinalization.register(this, this.__wbg_ptr, this);
1908
1902
  return this;
1909
1903
  }
@@ -1963,14 +1957,14 @@ export class SubscribeOptions {
1963
1957
  * @param {number | null} [value]
1964
1958
  */
1965
1959
  set subscriptionIdentifier(value) {
1966
- wasm.subscribeoptions_set_subscriptionIdentifier(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
1960
+ wasm.subscribeoptions_set_subscriptionIdentifier(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
1967
1961
  }
1968
1962
  /**
1969
1963
  * @returns {number | undefined}
1970
1964
  */
1971
1965
  get subscriptionIdentifier() {
1972
1966
  const ret = wasm.subscribeoptions_subscriptionIdentifier(this.__wbg_ptr);
1973
- return ret === 0x100000001 ? undefined : ret;
1967
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
1974
1968
  }
1975
1969
  }
1976
1970
  if (Symbol.dispose) SubscribeOptions.prototype[Symbol.dispose] = SubscribeOptions.prototype.free;
@@ -1994,7 +1988,7 @@ export class TopicMapping {
1994
1988
  const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1995
1989
  const len0 = WASM_VECTOR_LEN;
1996
1990
  const ret = wasm.topicmapping_new(ptr0, len0, direction);
1997
- this.__wbg_ptr = ret >>> 0;
1991
+ this.__wbg_ptr = ret;
1998
1992
  TopicMappingFinalization.register(this, this.__wbg_ptr, this);
1999
1993
  return this;
2000
1994
  }
@@ -2058,7 +2052,7 @@ export class WillMessage {
2058
2052
  */
2059
2053
  get messageExpiryInterval() {
2060
2054
  const ret = wasm.willmessage_messageExpiryInterval(this.__wbg_ptr);
2061
- return ret === 0x100000001 ? undefined : ret;
2055
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
2062
2056
  }
2063
2057
  /**
2064
2058
  * @param {string} topic
@@ -2070,7 +2064,7 @@ export class WillMessage {
2070
2064
  const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_export);
2071
2065
  const len1 = WASM_VECTOR_LEN;
2072
2066
  const ret = wasm.willmessage_new(ptr0, len0, ptr1, len1);
2073
- this.__wbg_ptr = ret >>> 0;
2067
+ this.__wbg_ptr = ret;
2074
2068
  WillMessageFinalization.register(this, this.__wbg_ptr, this);
2075
2069
  return this;
2076
2070
  }
@@ -2119,7 +2113,7 @@ export class WillMessage {
2119
2113
  * @param {number | null} [value]
2120
2114
  */
2121
2115
  set messageExpiryInterval(value) {
2122
- wasm.willmessage_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
2116
+ wasm.willmessage_set_messageExpiryInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
2123
2117
  }
2124
2118
  /**
2125
2119
  * @param {number} value
@@ -2153,7 +2147,7 @@ export class WillMessage {
2153
2147
  * @param {number | null} [value]
2154
2148
  */
2155
2149
  set willDelayInterval(value) {
2156
- wasm.willmessage_set_willDelayInterval(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
2150
+ wasm.willmessage_set_willDelayInterval(this.__wbg_ptr, isLikeNone(value) ? Number.MAX_SAFE_INTEGER : (value) >>> 0);
2157
2151
  }
2158
2152
  /**
2159
2153
  * @returns {string}
@@ -2179,7 +2173,7 @@ export class WillMessage {
2179
2173
  */
2180
2174
  get willDelayInterval() {
2181
2175
  const ret = wasm.willmessage_willDelayInterval(this.__wbg_ptr);
2182
- return ret === 0x100000001 ? undefined : ret;
2176
+ return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
2183
2177
  }
2184
2178
  }
2185
2179
  if (Symbol.dispose) WillMessage.prototype[Symbol.dispose] = WillMessage.prototype.free;
@@ -2188,7 +2182,7 @@ if (Symbol.dispose) WillMessage.prototype[Symbol.dispose] = WillMessage.prototyp
2188
2182
  * @returns {CodecRegistry}
2189
2183
  */
2190
2184
  export function createCodecRegistry() {
2191
- const ret = wasm.codecregistry_new();
2185
+ const ret = wasm.createCodecRegistry();
2192
2186
  return CodecRegistry.__wrap(ret);
2193
2187
  }
2194
2188
 
@@ -2198,7 +2192,7 @@ export function createCodecRegistry() {
2198
2192
  * @returns {DeflateCodec}
2199
2193
  */
2200
2194
  export function createDeflateCodec(level, minSize) {
2201
- const ret = wasm.createDeflateCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? 0x100000001 : (minSize) >>> 0);
2195
+ const ret = wasm.createDeflateCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? Number.MAX_SAFE_INTEGER : (minSize) >>> 0);
2202
2196
  return DeflateCodec.__wrap(ret);
2203
2197
  }
2204
2198
 
@@ -2208,84 +2202,86 @@ export function createDeflateCodec(level, minSize) {
2208
2202
  * @returns {GzipCodec}
2209
2203
  */
2210
2204
  export function createGzipCodec(level, minSize) {
2211
- const ret = wasm.createDeflateCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? 0x100000001 : (minSize) >>> 0);
2205
+ const ret = wasm.createGzipCodec(isLikeNone(level) ? 0xFFFFFF : level, isLikeNone(minSize) ? Number.MAX_SAFE_INTEGER : (minSize) >>> 0);
2212
2206
  return GzipCodec.__wrap(ret);
2213
2207
  }
2214
-
2215
2208
  function __wbg_get_imports() {
2216
2209
  const import0 = {
2217
2210
  __proto__: null,
2218
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
2211
+ __wbg___wbindgen_debug_string_8a447059637473e2: function(arg0, arg1) {
2219
2212
  const ret = debugString(getObject(arg1));
2220
2213
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2221
2214
  const len1 = WASM_VECTOR_LEN;
2222
2215
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2223
2216
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2224
2217
  },
2225
- __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
2218
+ __wbg___wbindgen_is_function_acc5528be2b923f2: function(arg0) {
2226
2219
  const ret = typeof(getObject(arg0)) === 'function';
2227
2220
  return ret;
2228
2221
  },
2229
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
2222
+ __wbg___wbindgen_is_undefined_721f8decd50c87a3: function(arg0) {
2230
2223
  const ret = getObject(arg0) === undefined;
2231
2224
  return ret;
2232
2225
  },
2233
- __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
2226
+ __wbg___wbindgen_number_get_1cc01dd708740256: function(arg0, arg1) {
2234
2227
  const obj = getObject(arg1);
2235
2228
  const ret = typeof(obj) === 'number' ? obj : undefined;
2236
2229
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2237
2230
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2238
2231
  },
2239
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
2232
+ __wbg___wbindgen_throw_ea4887a5f8f9a9db: function(arg0, arg1) {
2240
2233
  throw new Error(getStringFromWasm0(arg0, arg1));
2241
2234
  },
2242
- __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
2235
+ __wbg__wbg_cb_unref_33c39e13d73b25f6: function(arg0) {
2243
2236
  getObject(arg0)._wbg_cb_unref();
2244
2237
  },
2245
- __wbg_addEventListener_3acb0aad4483804c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2246
- getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2247
- }, arguments); },
2248
- __wbg_addEventListener_c917b5aafbcf493f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2238
+ __wbg_addEventListener_9f744a06d0879451: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2249
2239
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
2250
2240
  }, arguments); },
2251
- __wbg_buffer_26d0910f3a5bc899: function(arg0) {
2241
+ __wbg_addEventListener_ea90bc131475777e: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2242
+ getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2243
+ }, arguments); },
2244
+ __wbg_buffer_9e4d98d0766fb908: function(arg0) {
2252
2245
  const ret = getObject(arg0).buffer;
2253
2246
  return addHeapObject(ret);
2254
2247
  },
2255
- __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
2256
- const ret = getObject(arg0).call(getObject(arg1));
2248
+ __wbg_call_0e855b388e315e17: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2249
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
2257
2250
  return addHeapObject(ret);
2258
2251
  }, arguments); },
2259
- __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
2252
+ __wbg_call_5575218572ead796: function() { return handleError(function (arg0, arg1, arg2) {
2260
2253
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
2261
2254
  return addHeapObject(ret);
2262
2255
  }, arguments); },
2263
- __wbg_call_812d25f1510c13c8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2264
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
2256
+ __wbg_call_8e98ed2f3c86c4b5: function() { return handleError(function (arg0, arg1) {
2257
+ const ret = getObject(arg0).call(getObject(arg1));
2265
2258
  return addHeapObject(ret);
2266
2259
  }, arguments); },
2267
- __wbg_call_e8c868596c950cf6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2260
+ __wbg_call_dd0f909cbc9405d0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2268
2261
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
2269
2262
  return addHeapObject(ret);
2270
2263
  }, arguments); },
2271
- __wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
2264
+ __wbg_clearTimeout_3629d6209dfcc46e: function(arg0) {
2272
2265
  const ret = clearTimeout(takeObject(arg0));
2273
2266
  return addHeapObject(ret);
2274
2267
  },
2275
- __wbg_close_1d08eaf57ed325c0: function() { return handleError(function (arg0) {
2268
+ __wbg_close_26aa343c0d729303: function() { return handleError(function (arg0) {
2276
2269
  getObject(arg0).close();
2277
2270
  }, arguments); },
2278
- __wbg_close_36e3b6eed1f8c59d: function(arg0) {
2271
+ __wbg_close_38d22e2ee9732188: function(arg0) {
2279
2272
  getObject(arg0).close();
2280
2273
  },
2281
- __wbg_close_fad2f0ee451926ed: function(arg0) {
2274
+ __wbg_close_bb32784c2f019863: function(arg0) {
2282
2275
  getObject(arg0).close();
2283
2276
  },
2284
- __wbg_data_5330da50312d0bc1: function(arg0) {
2277
+ __wbg_data_4a7f1308dbd33a21: function(arg0) {
2285
2278
  const ret = getObject(arg0).data;
2286
2279
  return addHeapObject(ret);
2287
2280
  },
2288
- __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
2281
+ __wbg_error_933f449d72fef598: function(arg0) {
2282
+ console.error(getObject(arg0));
2283
+ },
2284
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
2289
2285
  let deferred0_0;
2290
2286
  let deferred0_1;
2291
2287
  try {
@@ -2296,21 +2292,18 @@ function __wbg_get_imports() {
2296
2292
  wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
2297
2293
  }
2298
2294
  },
2299
- __wbg_error_9a7fe3f932034cde: function(arg0) {
2300
- console.error(getObject(arg0));
2301
- },
2302
- __wbg_from_bddd64e7d5ff6941: function(arg0) {
2295
+ __wbg_from_50138b2ca136f50c: function(arg0) {
2303
2296
  const ret = Array.from(getObject(arg0));
2304
2297
  return addHeapObject(ret);
2305
2298
  },
2306
- __wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
2299
+ __wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
2307
2300
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
2308
2301
  }, arguments); },
2309
- __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
2302
+ __wbg_get_197a3fe98f169e38: function(arg0, arg1) {
2310
2303
  const ret = getObject(arg0)[arg1 >>> 0];
2311
2304
  return addHeapObject(ret);
2312
2305
  },
2313
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
2306
+ __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da: function(arg0) {
2314
2307
  let result;
2315
2308
  try {
2316
2309
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -2320,7 +2313,7 @@ function __wbg_get_imports() {
2320
2313
  const ret = result;
2321
2314
  return ret;
2322
2315
  },
2323
- __wbg_instanceof_Window_ed49b2db8df90359: function(arg0) {
2316
+ __wbg_instanceof_Window_0d356b88a2f77c42: function(arg0) {
2324
2317
  let result;
2325
2318
  try {
2326
2319
  result = getObject(arg0) instanceof Window;
@@ -2330,53 +2323,57 @@ function __wbg_get_imports() {
2330
2323
  const ret = result;
2331
2324
  return ret;
2332
2325
  },
2333
- __wbg_length_32ed9a279acd054c: function(arg0) {
2326
+ __wbg_length_589238bdcf171f0e: function(arg0) {
2334
2327
  const ret = getObject(arg0).length;
2335
2328
  return ret;
2336
2329
  },
2337
- __wbg_length_35a7bace40f36eac: function(arg0) {
2330
+ __wbg_length_c6054974c0a6cdb9: function(arg0) {
2338
2331
  const ret = getObject(arg0).length;
2339
2332
  return ret;
2340
2333
  },
2341
- __wbg_log_6b5ca2e6124b2808: function(arg0) {
2334
+ __wbg_log_6b5af08dd293697f: function(arg0) {
2342
2335
  console.log(getObject(arg0));
2343
2336
  },
2344
2337
  __wbg_messageproperties_new: function(arg0) {
2345
2338
  const ret = MessageProperties.__wrap(arg0);
2346
2339
  return addHeapObject(ret);
2347
2340
  },
2348
- __wbg_navigator_43be698ba96fc088: function(arg0) {
2341
+ __wbg_navigator_935098efd1dc7fe5: function(arg0) {
2349
2342
  const ret = getObject(arg0).navigator;
2350
2343
  return addHeapObject(ret);
2351
2344
  },
2352
- __wbg_new_361308b2356cecd0: function() {
2345
+ __wbg_new_227d7c05414eb861: function() {
2346
+ const ret = new Error();
2347
+ return addHeapObject(ret);
2348
+ },
2349
+ __wbg_new_2e117a478906f062: function() {
2353
2350
  const ret = new Object();
2354
2351
  return addHeapObject(ret);
2355
2352
  },
2356
- __wbg_new_3eb36ae241fe6f44: function() {
2353
+ __wbg_new_36e147a8ced3c6e0: function() {
2357
2354
  const ret = new Array();
2358
2355
  return addHeapObject(ret);
2359
2356
  },
2360
- __wbg_new_6f0524fbfa300c47: function() { return handleError(function () {
2357
+ __wbg_new_81880fb5002cb255: function(arg0) {
2358
+ const ret = new Uint8Array(getObject(arg0));
2359
+ return addHeapObject(ret);
2360
+ },
2361
+ __wbg_new_98e81f23cc202cc4: function() { return handleError(function () {
2361
2362
  const ret = new MessageChannel();
2362
2363
  return addHeapObject(ret);
2363
2364
  }, arguments); },
2364
- __wbg_new_8a6f238a6ece86ea: function() {
2365
- const ret = new Error();
2366
- return addHeapObject(ret);
2367
- },
2368
- __wbg_new_afb8dbb951819ab7: function() { return handleError(function (arg0, arg1) {
2365
+ __wbg_new_bf06861b1423f19e: function() { return handleError(function (arg0, arg1) {
2369
2366
  const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
2370
2367
  return addHeapObject(ret);
2371
2368
  }, arguments); },
2372
- __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
2369
+ __wbg_new_f85beb941dc6d8aa: function(arg0, arg1) {
2373
2370
  try {
2374
2371
  var state0 = {a: arg0, b: arg1};
2375
2372
  var cb0 = (arg0, arg1) => {
2376
2373
  const a = state0.a;
2377
2374
  state0.a = 0;
2378
2375
  try {
2379
- return __wasm_bindgen_func_elem_4189(a, state0.b, arg0, arg1);
2376
+ return __wasm_bindgen_func_elem_4202(a, state0.b, arg0, arg1);
2380
2377
  } finally {
2381
2378
  state0.a = a;
2382
2379
  }
@@ -2384,192 +2381,211 @@ function __wbg_get_imports() {
2384
2381
  const ret = new Promise(cb0);
2385
2382
  return addHeapObject(ret);
2386
2383
  } finally {
2387
- state0.a = state0.b = 0;
2384
+ state0.a = 0;
2388
2385
  }
2389
2386
  },
2390
- __wbg_new_dd2b680c8bf6ae29: function(arg0) {
2391
- const ret = new Uint8Array(getObject(arg0));
2392
- return addHeapObject(ret);
2393
- },
2394
- __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
2387
+ __wbg_new_from_slice_543b875b27789a8f: function(arg0, arg1) {
2395
2388
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2396
2389
  return addHeapObject(ret);
2397
2390
  },
2398
- __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
2391
+ __wbg_new_no_args_2d7333de60de5ac7: function(arg0, arg1) {
2399
2392
  const ret = new Function(getStringFromWasm0(arg0, arg1));
2400
2393
  return addHeapObject(ret);
2401
2394
  },
2402
- __wbg_new_with_str_8406051fb31dddaa: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2395
+ __wbg_new_typed_00a409eb4ec4f2d9: function(arg0, arg1) {
2396
+ try {
2397
+ var state0 = {a: arg0, b: arg1};
2398
+ var cb0 = (arg0, arg1) => {
2399
+ const a = state0.a;
2400
+ state0.a = 0;
2401
+ try {
2402
+ return __wasm_bindgen_func_elem_4202(a, state0.b, arg0, arg1);
2403
+ } finally {
2404
+ state0.a = a;
2405
+ }
2406
+ };
2407
+ const ret = new Promise(cb0);
2408
+ return addHeapObject(ret);
2409
+ } finally {
2410
+ state0.a = 0;
2411
+ }
2412
+ },
2413
+ __wbg_new_with_str_df5b9855ce14dac6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2403
2414
  const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
2404
2415
  return addHeapObject(ret);
2405
2416
  }, arguments); },
2406
- __wbg_now_2c95c9de01293173: function(arg0) {
2407
- const ret = getObject(arg0).now();
2417
+ __wbg_now_d2e0afbad4edbe82: function() {
2418
+ const ret = Date.now();
2408
2419
  return ret;
2409
2420
  },
2410
- __wbg_now_a3af9a2f4bbaa4d1: function() {
2411
- const ret = Date.now();
2421
+ __wbg_now_e7c6795a7f81e10f: function(arg0) {
2422
+ const ret = getObject(arg0).now();
2412
2423
  return ret;
2413
2424
  },
2414
- __wbg_onLine_a52496f5c9a569ec: function(arg0) {
2425
+ __wbg_onLine_b14b12d045df88e2: function(arg0) {
2415
2426
  const ret = getObject(arg0).onLine;
2416
2427
  return ret;
2417
2428
  },
2418
- __wbg_performance_7a3ffd0b17f663ad: function(arg0) {
2429
+ __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
2419
2430
  const ret = getObject(arg0).performance;
2420
2431
  return addHeapObject(ret);
2421
2432
  },
2422
- __wbg_port1_6251ddc5cf5c9287: function(arg0) {
2433
+ __wbg_port1_aaca04ed552c16ef: function(arg0) {
2423
2434
  const ret = getObject(arg0).port1;
2424
2435
  return addHeapObject(ret);
2425
2436
  },
2426
- __wbg_port2_b2a294b0ede1e13c: function(arg0) {
2437
+ __wbg_port2_baea902d7925a544: function(arg0) {
2427
2438
  const ret = getObject(arg0).port2;
2428
2439
  return addHeapObject(ret);
2429
2440
  },
2430
- __wbg_postMessage_46eeeef39934b448: function() { return handleError(function (arg0, arg1) {
2441
+ __wbg_postMessage_5b1dc9f8de88488a: function() { return handleError(function (arg0, arg1) {
2431
2442
  getObject(arg0).postMessage(getObject(arg1));
2432
2443
  }, arguments); },
2433
- __wbg_postMessage_6962a8f13ab51b6a: function() { return handleError(function (arg0, arg1) {
2444
+ __wbg_postMessage_83e0053b2cd5b05e: function() { return handleError(function (arg0, arg1) {
2434
2445
  getObject(arg0).postMessage(getObject(arg1));
2435
2446
  }, arguments); },
2436
- __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
2447
+ __wbg_prototypesetcall_d721637c7ca66eb8: function(arg0, arg1, arg2) {
2437
2448
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
2438
2449
  },
2439
- __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
2450
+ __wbg_push_f724b5db8acf89d2: function(arg0, arg1) {
2440
2451
  const ret = getObject(arg0).push(getObject(arg1));
2441
2452
  return ret;
2442
2453
  },
2443
- __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
2454
+ __wbg_queueMicrotask_1c9b3800e321a967: function(arg0) {
2444
2455
  const ret = getObject(arg0).queueMicrotask;
2445
2456
  return addHeapObject(ret);
2446
2457
  },
2447
- __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
2458
+ __wbg_queueMicrotask_311744e534a929a3: function(arg0) {
2448
2459
  queueMicrotask(getObject(arg0));
2449
2460
  },
2450
- __wbg_random_912284dbf636f269: function() {
2461
+ __wbg_random_3182549db57fb083: function() {
2451
2462
  const ret = Math.random();
2452
2463
  return ret;
2453
2464
  },
2454
- __wbg_removeEventListener_e63328781a5b9af9: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2465
+ __wbg_removeEventListener_c6782a9c30557d31: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2455
2466
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
2456
2467
  }, arguments); },
2457
- __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
2468
+ __wbg_resolve_d82363d90af6928a: function(arg0) {
2458
2469
  const ret = Promise.resolve(getObject(arg0));
2459
2470
  return addHeapObject(ret);
2460
2471
  },
2461
- __wbg_send_542f95dea2df7994: function() { return handleError(function (arg0, arg1, arg2) {
2472
+ __wbg_send_982c819b9a1b34a5: function() { return handleError(function (arg0, arg1, arg2) {
2462
2473
  getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
2463
2474
  }, arguments); },
2464
- __wbg_setTimeout_b0ff8bfffa18bd8e: function(arg0, arg1) {
2465
- const ret = setTimeout(getObject(arg0), arg1);
2466
- return ret;
2467
- },
2468
- __wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
2475
+ __wbg_setTimeout_56bcdccbad22fd44: function() { return handleError(function (arg0, arg1) {
2469
2476
  const ret = setTimeout(getObject(arg0), arg1);
2470
2477
  return addHeapObject(ret);
2471
2478
  }, arguments); },
2472
- __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
2479
+ __wbg_setTimeout_a64c21ff609c4c4a: function(arg0, arg1) {
2480
+ const ret = setTimeout(getObject(arg0), arg1);
2481
+ return ret;
2482
+ },
2483
+ __wbg_set_4564f7dc44fcb0c9: function() { return handleError(function (arg0, arg1, arg2) {
2473
2484
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
2474
2485
  return ret;
2475
2486
  }, arguments); },
2476
- __wbg_set_binaryType_5bbf62e9f705dc1a: function(arg0, arg1) {
2487
+ __wbg_set_binaryType_148427b11a8e6551: function(arg0, arg1) {
2477
2488
  getObject(arg0).binaryType = __wbindgen_enum_BinaryType[arg1];
2478
2489
  },
2479
- __wbg_set_once_56ba1b87a9884c15: function(arg0, arg1) {
2490
+ __wbg_set_once_0ff9e026e78fe912: function(arg0, arg1) {
2480
2491
  getObject(arg0).once = arg1 !== 0;
2481
2492
  },
2482
- __wbg_set_onclose_d382f3e2c2b850eb: function(arg0, arg1) {
2493
+ __wbg_set_onclose_8134952b2a9ec104: function(arg0, arg1) {
2483
2494
  getObject(arg0).onclose = getObject(arg1);
2484
2495
  },
2485
- __wbg_set_onerror_377f18bf4569bf85: function(arg0, arg1) {
2496
+ __wbg_set_onerror_3f68563f77d362f1: function(arg0, arg1) {
2486
2497
  getObject(arg0).onerror = getObject(arg1);
2487
2498
  },
2488
- __wbg_set_onmessage_0e1ffb1c0d91d2ad: function(arg0, arg1) {
2499
+ __wbg_set_onmessage_397a79f643011142: function(arg0, arg1) {
2489
2500
  getObject(arg0).onmessage = getObject(arg1);
2490
2501
  },
2491
- __wbg_set_onmessage_2114aa5f4f53051e: function(arg0, arg1) {
2502
+ __wbg_set_onmessage_8700520361fa9f48: function(arg0, arg1) {
2492
2503
  getObject(arg0).onmessage = getObject(arg1);
2493
2504
  },
2494
- __wbg_set_onmessage_41e84d56e3597e90: function(arg0, arg1) {
2505
+ __wbg_set_onmessage_a8bb5e3dd796cf0d: function(arg0, arg1) {
2495
2506
  getObject(arg0).onmessage = getObject(arg1);
2496
2507
  },
2497
- __wbg_set_onopen_b7b52d519d6c0f11: function(arg0, arg1) {
2508
+ __wbg_set_onopen_ca8d311fe5282041: function(arg0, arg1) {
2498
2509
  getObject(arg0).onopen = getObject(arg1);
2499
2510
  },
2500
- __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
2511
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
2501
2512
  const ret = getObject(arg1).stack;
2502
2513
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2503
2514
  const len1 = WASM_VECTOR_LEN;
2504
2515
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2505
2516
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2506
2517
  },
2507
- __wbg_start_ffb4b426b1e661bd: function(arg0) {
2518
+ __wbg_start_8ca2b69cfb7618b6: function(arg0) {
2508
2519
  getObject(arg0).start();
2509
2520
  },
2510
- __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
2511
- const ret = typeof global === 'undefined' ? null : global;
2521
+ __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938: function() {
2522
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2512
2523
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2513
2524
  },
2514
- __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
2515
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2525
+ __wbg_static_accessor_GLOBAL_ce44e66a4935da8c: function() {
2526
+ const ret = typeof global === 'undefined' ? null : global;
2516
2527
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2517
2528
  },
2518
- __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
2529
+ __wbg_static_accessor_SELF_44f6e0cb5e67cdad: function() {
2519
2530
  const ret = typeof self === 'undefined' ? null : self;
2520
2531
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2521
2532
  },
2522
- __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
2533
+ __wbg_static_accessor_WINDOW_168f178805d978fe: function() {
2523
2534
  const ret = typeof window === 'undefined' ? null : window;
2524
2535
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
2525
2536
  },
2526
- __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
2537
+ __wbg_then_05edfc8a4fea5106: function(arg0, arg1, arg2) {
2527
2538
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
2528
2539
  return addHeapObject(ret);
2529
2540
  },
2530
- __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
2541
+ __wbg_then_591b6b3a75ee817a: function(arg0, arg1) {
2531
2542
  const ret = getObject(arg0).then(getObject(arg1));
2532
2543
  return addHeapObject(ret);
2533
2544
  },
2534
- __wbg_warn_f7ae1b2e66ccb930: function(arg0) {
2545
+ __wbg_warn_cd671287bc02594a: function(arg0) {
2535
2546
  console.warn(getObject(arg0));
2536
2547
  },
2537
2548
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
2538
- // Cast intrinsic for `Closure(Closure { dtor_idx: 394, function: Function { arguments: [], shim_idx: 395, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2539
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2552, __wasm_bindgen_func_elem_2572);
2549
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 591, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2550
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4192);
2540
2551
  return addHeapObject(ret);
2541
2552
  },
2542
2553
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
2543
- // Cast intrinsic for `Closure(Closure { dtor_idx: 413, function: Function { arguments: [Externref], shim_idx: 414, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2544
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2709, __wasm_bindgen_func_elem_2725);
2554
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2555
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072);
2545
2556
  return addHeapObject(ret);
2546
2557
  },
2547
2558
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2548
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2549
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_1018);
2559
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2560
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072_2);
2550
2561
  return addHeapObject(ret);
2551
2562
  },
2552
2563
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2553
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2554
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_1018);
2564
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2565
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072_3);
2555
2566
  return addHeapObject(ret);
2556
2567
  },
2557
2568
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
2558
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2559
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_139, __wasm_bindgen_func_elem_1018);
2569
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2570
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1072_4);
2560
2571
  return addHeapObject(ret);
2561
2572
  },
2562
- __wbindgen_cast_0000000000000006: function(arg0) {
2573
+ __wbindgen_cast_0000000000000006: function(arg0, arg1) {
2574
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 424, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2575
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2637);
2576
+ return addHeapObject(ret);
2577
+ },
2578
+ __wbindgen_cast_0000000000000007: function(arg0) {
2563
2579
  // Cast intrinsic for `F64 -> Externref`.
2564
2580
  const ret = arg0;
2565
2581
  return addHeapObject(ret);
2566
2582
  },
2567
- __wbindgen_cast_0000000000000007: function(arg0, arg1) {
2583
+ __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2568
2584
  // Cast intrinsic for `Ref(String) -> Externref`.
2569
2585
  const ret = getStringFromWasm0(arg0, arg1);
2570
2586
  return addHeapObject(ret);
2571
2587
  },
2572
- __wbindgen_cast_0000000000000008: function(arg0, arg1) {
2588
+ __wbindgen_cast_0000000000000009: function(arg0, arg1) {
2573
2589
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2574
2590
  wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
2575
2591
  // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
@@ -2590,66 +2606,88 @@ function __wbg_get_imports() {
2590
2606
  };
2591
2607
  }
2592
2608
 
2593
- function __wasm_bindgen_func_elem_2572(arg0, arg1) {
2594
- wasm.__wasm_bindgen_func_elem_2572(arg0, arg1);
2609
+ function __wasm_bindgen_func_elem_2637(arg0, arg1) {
2610
+ wasm.__wasm_bindgen_func_elem_2637(arg0, arg1);
2611
+ }
2612
+
2613
+ function __wasm_bindgen_func_elem_1072(arg0, arg1, arg2) {
2614
+ wasm.__wasm_bindgen_func_elem_1072(arg0, arg1, addHeapObject(arg2));
2595
2615
  }
2596
2616
 
2597
- function __wasm_bindgen_func_elem_2725(arg0, arg1, arg2) {
2598
- wasm.__wasm_bindgen_func_elem_2725(arg0, arg1, addHeapObject(arg2));
2617
+ function __wasm_bindgen_func_elem_1072_2(arg0, arg1, arg2) {
2618
+ wasm.__wasm_bindgen_func_elem_1072_2(arg0, arg1, addHeapObject(arg2));
2599
2619
  }
2600
2620
 
2601
- function __wasm_bindgen_func_elem_1018(arg0, arg1, arg2) {
2602
- wasm.__wasm_bindgen_func_elem_1018(arg0, arg1, addHeapObject(arg2));
2621
+ function __wasm_bindgen_func_elem_1072_3(arg0, arg1, arg2) {
2622
+ wasm.__wasm_bindgen_func_elem_1072_3(arg0, arg1, addHeapObject(arg2));
2603
2623
  }
2604
2624
 
2605
- function __wasm_bindgen_func_elem_4189(arg0, arg1, arg2, arg3) {
2606
- wasm.__wasm_bindgen_func_elem_4189(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2625
+ function __wasm_bindgen_func_elem_1072_4(arg0, arg1, arg2) {
2626
+ wasm.__wasm_bindgen_func_elem_1072_4(arg0, arg1, addHeapObject(arg2));
2627
+ }
2628
+
2629
+ function __wasm_bindgen_func_elem_4192(arg0, arg1, arg2) {
2630
+ try {
2631
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2632
+ wasm.__wasm_bindgen_func_elem_4192(retptr, arg0, arg1, addHeapObject(arg2));
2633
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2634
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2635
+ if (r1) {
2636
+ throw takeObject(r0);
2637
+ }
2638
+ } finally {
2639
+ wasm.__wbindgen_add_to_stack_pointer(16);
2640
+ }
2641
+ }
2642
+
2643
+ function __wasm_bindgen_func_elem_4202(arg0, arg1, arg2, arg3) {
2644
+ wasm.__wasm_bindgen_func_elem_4202(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
2607
2645
  }
2608
2646
 
2609
2647
 
2610
2648
  const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
2611
2649
  const BridgeConfigFinalization = (typeof FinalizationRegistry === 'undefined')
2612
2650
  ? { register: () => {}, unregister: () => {} }
2613
- : new FinalizationRegistry(ptr => wasm.__wbg_bridgeconfig_free(ptr >>> 0, 1));
2651
+ : new FinalizationRegistry(ptr => wasm.__wbg_bridgeconfig_free(ptr, 1));
2614
2652
  const BrokerFinalization = (typeof FinalizationRegistry === 'undefined')
2615
2653
  ? { register: () => {}, unregister: () => {} }
2616
- : new FinalizationRegistry(ptr => wasm.__wbg_broker_free(ptr >>> 0, 1));
2654
+ : new FinalizationRegistry(ptr => wasm.__wbg_broker_free(ptr, 1));
2617
2655
  const BrokerConfigFinalization = (typeof FinalizationRegistry === 'undefined')
2618
2656
  ? { register: () => {}, unregister: () => {} }
2619
- : new FinalizationRegistry(ptr => wasm.__wbg_brokerconfig_free(ptr >>> 0, 1));
2657
+ : new FinalizationRegistry(ptr => wasm.__wbg_brokerconfig_free(ptr, 1));
2620
2658
  const CodecRegistryFinalization = (typeof FinalizationRegistry === 'undefined')
2621
2659
  ? { register: () => {}, unregister: () => {} }
2622
- : new FinalizationRegistry(ptr => wasm.__wbg_codecregistry_free(ptr >>> 0, 1));
2660
+ : new FinalizationRegistry(ptr => wasm.__wbg_codecregistry_free(ptr, 1));
2623
2661
  const ConnectOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
2624
2662
  ? { register: () => {}, unregister: () => {} }
2625
- : new FinalizationRegistry(ptr => wasm.__wbg_connectoptions_free(ptr >>> 0, 1));
2663
+ : new FinalizationRegistry(ptr => wasm.__wbg_connectoptions_free(ptr, 1));
2626
2664
  const DeflateCodecFinalization = (typeof FinalizationRegistry === 'undefined')
2627
2665
  ? { register: () => {}, unregister: () => {} }
2628
- : new FinalizationRegistry(ptr => wasm.__wbg_deflatecodec_free(ptr >>> 0, 1));
2666
+ : new FinalizationRegistry(ptr => wasm.__wbg_deflatecodec_free(ptr, 1));
2629
2667
  const GzipCodecFinalization = (typeof FinalizationRegistry === 'undefined')
2630
2668
  ? { register: () => {}, unregister: () => {} }
2631
- : new FinalizationRegistry(ptr => wasm.__wbg_gzipcodec_free(ptr >>> 0, 1));
2669
+ : new FinalizationRegistry(ptr => wasm.__wbg_gzipcodec_free(ptr, 1));
2632
2670
  const MessagePropertiesFinalization = (typeof FinalizationRegistry === 'undefined')
2633
2671
  ? { register: () => {}, unregister: () => {} }
2634
- : new FinalizationRegistry(ptr => wasm.__wbg_messageproperties_free(ptr >>> 0, 1));
2672
+ : new FinalizationRegistry(ptr => wasm.__wbg_messageproperties_free(ptr, 1));
2635
2673
  const MqttClientFinalization = (typeof FinalizationRegistry === 'undefined')
2636
2674
  ? { register: () => {}, unregister: () => {} }
2637
- : new FinalizationRegistry(ptr => wasm.__wbg_mqttclient_free(ptr >>> 0, 1));
2675
+ : new FinalizationRegistry(ptr => wasm.__wbg_mqttclient_free(ptr, 1));
2638
2676
  const PublishOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
2639
2677
  ? { register: () => {}, unregister: () => {} }
2640
- : new FinalizationRegistry(ptr => wasm.__wbg_publishoptions_free(ptr >>> 0, 1));
2678
+ : new FinalizationRegistry(ptr => wasm.__wbg_publishoptions_free(ptr, 1));
2641
2679
  const ReconnectOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
2642
2680
  ? { register: () => {}, unregister: () => {} }
2643
- : new FinalizationRegistry(ptr => wasm.__wbg_reconnectoptions_free(ptr >>> 0, 1));
2681
+ : new FinalizationRegistry(ptr => wasm.__wbg_reconnectoptions_free(ptr, 1));
2644
2682
  const SubscribeOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
2645
2683
  ? { register: () => {}, unregister: () => {} }
2646
- : new FinalizationRegistry(ptr => wasm.__wbg_subscribeoptions_free(ptr >>> 0, 1));
2684
+ : new FinalizationRegistry(ptr => wasm.__wbg_subscribeoptions_free(ptr, 1));
2647
2685
  const TopicMappingFinalization = (typeof FinalizationRegistry === 'undefined')
2648
2686
  ? { register: () => {}, unregister: () => {} }
2649
- : new FinalizationRegistry(ptr => wasm.__wbg_topicmapping_free(ptr >>> 0, 1));
2687
+ : new FinalizationRegistry(ptr => wasm.__wbg_topicmapping_free(ptr, 1));
2650
2688
  const WillMessageFinalization = (typeof FinalizationRegistry === 'undefined')
2651
2689
  ? { register: () => {}, unregister: () => {} }
2652
- : new FinalizationRegistry(ptr => wasm.__wbg_willmessage_free(ptr >>> 0, 1));
2690
+ : new FinalizationRegistry(ptr => wasm.__wbg_willmessage_free(ptr, 1));
2653
2691
 
2654
2692
  function addHeapObject(obj) {
2655
2693
  if (heap_next === heap.length) heap.push(heap.length + 1);
@@ -2668,7 +2706,7 @@ function _assertClass(instance, klass) {
2668
2706
 
2669
2707
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
2670
2708
  ? { register: () => {}, unregister: () => {} }
2671
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
2709
+ : new FinalizationRegistry(state => wasm.__wbindgen_export5(state.a, state.b));
2672
2710
 
2673
2711
  function debugString(val) {
2674
2712
  // primitive types
@@ -2736,7 +2774,7 @@ function debugString(val) {
2736
2774
  }
2737
2775
 
2738
2776
  function dropObject(idx) {
2739
- if (idx < 132) return;
2777
+ if (idx < 1028) return;
2740
2778
  heap[idx] = heap_next;
2741
2779
  heap_next = idx;
2742
2780
  }
@@ -2770,8 +2808,7 @@ function getDataViewMemory0() {
2770
2808
  }
2771
2809
 
2772
2810
  function getStringFromWasm0(ptr, len) {
2773
- ptr = ptr >>> 0;
2774
- return decodeText(ptr, len);
2811
+ return decodeText(ptr >>> 0, len);
2775
2812
  }
2776
2813
 
2777
2814
  let cachedUint32ArrayMemory0 = null;
@@ -2800,7 +2837,7 @@ function handleError(f, args) {
2800
2837
  }
2801
2838
  }
2802
2839
 
2803
- let heap = new Array(128).fill(undefined);
2840
+ let heap = new Array(1024).fill(undefined);
2804
2841
  heap.push(undefined, null, true, false);
2805
2842
 
2806
2843
  let heap_next = heap.length;
@@ -2809,8 +2846,8 @@ function isLikeNone(x) {
2809
2846
  return x === undefined || x === null;
2810
2847
  }
2811
2848
 
2812
- function makeMutClosure(arg0, arg1, dtor, f) {
2813
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
2849
+ function makeMutClosure(arg0, arg1, f) {
2850
+ const state = { a: arg0, b: arg1, cnt: 1 };
2814
2851
  const real = (...args) => {
2815
2852
 
2816
2853
  // First up with a closure we increment the internal reference
@@ -2828,7 +2865,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
2828
2865
  };
2829
2866
  real._wbg_cb_unref = () => {
2830
2867
  if (--state.cnt === 0) {
2831
- state.dtor(state.a, state.b);
2868
+ wasm.__wbindgen_export5(state.a, state.b);
2832
2869
  state.a = 0;
2833
2870
  CLOSURE_DTORS.unregister(state);
2834
2871
  }
@@ -2916,8 +2953,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
2916
2953
 
2917
2954
  let WASM_VECTOR_LEN = 0;
2918
2955
 
2919
- let wasmModule, wasm;
2956
+ let wasmModule, wasmInstance, wasm;
2920
2957
  function __wbg_finalize_init(instance, module) {
2958
+ wasmInstance = instance;
2921
2959
  wasm = instance.exports;
2922
2960
  wasmModule = module;
2923
2961
  cachedDataViewMemory0 = null;
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mqtt5-wasm",
3
3
  "type": "module",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "description": "MQTT v5.0 WebAssembly client and broker for browser environments",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {