@lynx-js/web-core-wasm-canary 0.0.0 → 0.0.1-canary-20260116-ce265e8f

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 (204) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/{LICENSE → LICENSE.txt} +1 -1
  3. package/Notice.txt +1 -0
  4. package/README.md +1 -0
  5. package/binary/client/client.d.ts +263 -0
  6. package/binary/client/client.js +1339 -0
  7. package/binary/client/client_bg.wasm +0 -0
  8. package/binary/client/client_bg.wasm.d.ts +70 -0
  9. package/binary/client/client_debug.d.ts +263 -0
  10. package/binary/client/client_debug.js +1339 -0
  11. package/binary/client/client_debug_bg.wasm +0 -0
  12. package/binary/client/client_debug_bg.wasm.d.ts +70 -0
  13. package/binary/encode/encode.d.ts +157 -0
  14. package/binary/encode/encode.js +17 -0
  15. package/binary/encode/encode_bg.js +749 -0
  16. package/binary/encode/encode_bg.wasm +0 -0
  17. package/binary/encode/encode_bg.wasm.d.ts +50 -0
  18. package/binary/encode/encode_debug.d.ts +157 -0
  19. package/binary/encode/encode_debug.js +17 -0
  20. package/binary/encode/encode_debug_bg.js +822 -0
  21. package/binary/encode/encode_debug_bg.wasm +0 -0
  22. package/binary/encode/encode_debug_bg.wasm.d.ts +50 -0
  23. package/binary/encode/package.json +4 -0
  24. package/css/in_shadow.css +10 -0
  25. package/css/index.css +119 -0
  26. package/dist/client/LynxCrossThreadContext.d.ts +22 -0
  27. package/dist/client/LynxCrossThreadContext.js +44 -0
  28. package/dist/client/background/background-apis/createBackgroundLynx.d.ts +24 -0
  29. package/dist/client/background/background-apis/createBackgroundLynx.js +38 -0
  30. package/dist/client/background/background-apis/createChunkLoading.d.ts +7 -0
  31. package/dist/client/background/background-apis/createChunkLoading.js +66 -0
  32. package/dist/client/background/background-apis/createElement.d.ts +5 -0
  33. package/dist/client/background/background-apis/createElement.js +18 -0
  34. package/dist/client/background/background-apis/createNapiLoader.d.ts +5 -0
  35. package/dist/client/background/background-apis/createNapiLoader.js +23 -0
  36. package/dist/client/background/background-apis/createNativeApp.d.ts +4 -0
  37. package/dist/client/background/background-apis/createNativeApp.js +98 -0
  38. package/dist/client/background/background-apis/createNativeModules.d.ts +3 -0
  39. package/dist/client/background/background-apis/createNativeModules.js +33 -0
  40. package/dist/client/background/background-apis/createPerformanceApis.d.ts +3 -0
  41. package/dist/client/background/background-apis/createPerformanceApis.js +47 -0
  42. package/dist/client/background/background-apis/createTimingSystem.d.ts +8 -0
  43. package/dist/client/background/background-apis/createTimingSystem.js +86 -0
  44. package/dist/client/background/background-apis/crossThreadHandlers/createGetCustomSection.d.ts +3 -0
  45. package/dist/client/background/background-apis/crossThreadHandlers/createGetCustomSection.js +14 -0
  46. package/dist/client/background/background-apis/crossThreadHandlers/createGetPathInfo.d.ts +3 -0
  47. package/dist/client/background/background-apis/crossThreadHandlers/createGetPathInfo.js +23 -0
  48. package/dist/client/background/background-apis/crossThreadHandlers/createInvokeUIMethod.d.ts +3 -0
  49. package/dist/client/background/background-apis/crossThreadHandlers/createInvokeUIMethod.js +24 -0
  50. package/dist/client/background/background-apis/crossThreadHandlers/createJSObjectDestructionObserver.d.ts +2 -0
  51. package/dist/client/background/background-apis/crossThreadHandlers/createJSObjectDestructionObserver.js +12 -0
  52. package/dist/client/background/background-apis/crossThreadHandlers/registerDisposeHandler.d.ts +3 -0
  53. package/dist/client/background/background-apis/crossThreadHandlers/registerDisposeHandler.js +9 -0
  54. package/dist/client/background/background-apis/crossThreadHandlers/registerPublicComponentEventHandler.d.ts +3 -0
  55. package/dist/client/background/background-apis/crossThreadHandlers/registerPublicComponentEventHandler.js +8 -0
  56. package/dist/client/background/background-apis/crossThreadHandlers/registerPublishEventHandler.d.ts +3 -0
  57. package/dist/client/background/background-apis/crossThreadHandlers/registerPublishEventHandler.js +8 -0
  58. package/dist/client/background/background-apis/crossThreadHandlers/registerSendGlobalEvent.d.ts +3 -0
  59. package/dist/client/background/background-apis/crossThreadHandlers/registerSendGlobalEvent.js +10 -0
  60. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateDataHandler.d.ts +3 -0
  61. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateDataHandler.js +5 -0
  62. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateGlobalPropsHandler.d.ts +3 -0
  63. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateGlobalPropsHandler.js +5 -0
  64. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateI18nResource.d.ts +3 -0
  65. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateI18nResource.js +9 -0
  66. package/dist/client/background/background-apis/startBackgroundThread.d.ts +2 -0
  67. package/dist/client/background/background-apis/startBackgroundThread.js +42 -0
  68. package/dist/client/background/index.d.ts +1 -0
  69. package/dist/client/background/index.js +15 -0
  70. package/dist/client/decodeWorker/cssLoader.d.ts +12 -0
  71. package/dist/client/decodeWorker/cssLoader.js +96 -0
  72. package/dist/client/decodeWorker/decode.worker.d.ts +1 -0
  73. package/dist/client/decodeWorker/decode.worker.js +338 -0
  74. package/dist/client/decodeWorker/types.d.ts +32 -0
  75. package/dist/client/decodeWorker/types.js +2 -0
  76. package/dist/client/endpoints.d.ts +53 -0
  77. package/dist/client/endpoints.js +37 -0
  78. package/dist/client/index.d.ts +3 -0
  79. package/dist/client/index.js +3 -0
  80. package/dist/client/mainthread/Background.d.ts +30 -0
  81. package/dist/client/mainthread/Background.js +207 -0
  82. package/dist/client/mainthread/ExposureServices.d.ts +11 -0
  83. package/dist/client/mainthread/ExposureServices.js +211 -0
  84. package/dist/client/mainthread/I18n.d.ts +9 -0
  85. package/dist/client/mainthread/I18n.js +44 -0
  86. package/dist/client/mainthread/LynxView.d.ts +170 -0
  87. package/dist/client/mainthread/LynxView.js +367 -0
  88. package/dist/client/mainthread/LynxViewInstance.d.ts +56 -0
  89. package/dist/client/mainthread/LynxViewInstance.js +196 -0
  90. package/dist/client/mainthread/StyleManager.d.ts +15 -0
  91. package/dist/client/mainthread/StyleManager.js +72 -0
  92. package/dist/client/mainthread/TemplateManager.d.ts +11 -0
  93. package/dist/client/mainthread/TemplateManager.js +257 -0
  94. package/dist/client/mainthread/createIFrameRealm.d.ts +6 -0
  95. package/dist/client/mainthread/createIFrameRealm.js +68 -0
  96. package/dist/client/mainthread/createMainThreadGlobalAPIs.d.ts +3 -0
  97. package/dist/client/mainthread/createMainThreadGlobalAPIs.js +82 -0
  98. package/dist/client/mainthread/crossThreadHandlers/queryNodes.d.ts +3 -0
  99. package/dist/client/mainthread/crossThreadHandlers/queryNodes.js +74 -0
  100. package/dist/client/mainthread/crossThreadHandlers/registerGetPathInfoHandler.d.ts +3 -0
  101. package/dist/client/mainthread/crossThreadHandlers/registerGetPathInfoHandler.js +51 -0
  102. package/dist/client/mainthread/crossThreadHandlers/registerInvokeUIMethodHandler.d.ts +3 -0
  103. package/dist/client/mainthread/crossThreadHandlers/registerInvokeUIMethodHandler.js +49 -0
  104. package/dist/client/mainthread/crossThreadHandlers/registerNapiModulesCallHandler.d.ts +3 -0
  105. package/dist/client/mainthread/crossThreadHandlers/registerNapiModulesCallHandler.js +8 -0
  106. package/dist/client/mainthread/crossThreadHandlers/registerNativeModulesCallHandler.d.ts +3 -0
  107. package/dist/client/mainthread/crossThreadHandlers/registerNativeModulesCallHandler.js +7 -0
  108. package/dist/client/mainthread/crossThreadHandlers/registerSelectComponentHandler.d.ts +3 -0
  109. package/dist/client/mainthread/crossThreadHandlers/registerSelectComponentHandler.js +20 -0
  110. package/dist/client/mainthread/crossThreadHandlers/registerSetNativePropsHandler.d.ts +3 -0
  111. package/dist/client/mainthread/crossThreadHandlers/registerSetNativePropsHandler.js +28 -0
  112. package/dist/client/mainthread/crossThreadHandlers/registerTriggerComponentEventHandler.d.ts +3 -0
  113. package/dist/client/mainthread/crossThreadHandlers/registerTriggerComponentEventHandler.js +12 -0
  114. package/dist/client/mainthread/crossThreadHandlers/registerTriggerElementMethodEndpointHandler.d.ts +3 -0
  115. package/dist/client/mainthread/crossThreadHandlers/registerTriggerElementMethodEndpointHandler.js +29 -0
  116. package/dist/client/mainthread/elementAPIs/WASMJSBinding.d.ts +38 -0
  117. package/dist/client/mainthread/elementAPIs/WASMJSBinding.js +122 -0
  118. package/dist/client/mainthread/elementAPIs/createCrossThreadEvent.d.ts +2 -0
  119. package/dist/client/mainthread/elementAPIs/createCrossThreadEvent.js +77 -0
  120. package/dist/client/mainthread/elementAPIs/createElementAPI.d.ts +3 -0
  121. package/dist/client/mainthread/elementAPIs/createElementAPI.js +346 -0
  122. package/dist/client/mainthread/elementAPIs/index.d.ts +2 -0
  123. package/dist/client/mainthread/elementAPIs/index.js +3 -0
  124. package/dist/client/mainthread/elementAPIs/pureElementPAPIs.d.ts +26 -0
  125. package/dist/client/mainthread/elementAPIs/pureElementPAPIs.js +85 -0
  126. package/dist/client/mainthread/utils/convertLengthToPx.d.ts +1 -0
  127. package/dist/client/mainthread/utils/convertLengthToPx.js +25 -0
  128. package/dist/client/wasm.d.ts +11 -0
  129. package/dist/client/wasm.js +52 -0
  130. package/dist/client/webElementsDynamicLoader.d.ts +8 -0
  131. package/dist/client/webElementsDynamicLoader.js +80 -0
  132. package/dist/client_prod/static/css/async/web-core-main-chunk.css +1 -0
  133. package/dist/client_prod/static/css/client.css +1 -0
  134. package/dist/client_prod/static/js/async/lynx-core-chunk.js +3 -0
  135. package/dist/client_prod/static/js/async/web-core-main-chunk.js +303 -0
  136. package/dist/client_prod/static/js/async/web-core-template-loader-thread.js +8 -0
  137. package/dist/client_prod/static/js/async/web-core-worker-chunk.js +1 -0
  138. package/dist/client_prod/static/js/async/web-elements-audio.js +1 -0
  139. package/dist/client_prod/static/js/async/web-elements-foldview.js +1 -0
  140. package/dist/client_prod/static/js/async/web-elements-input.js +1 -0
  141. package/dist/client_prod/static/js/async/web-elements-list.js +1 -0
  142. package/dist/client_prod/static/js/async/web-elements-overlay.js +1 -0
  143. package/dist/client_prod/static/js/async/web-elements-refrshview.js +1 -0
  144. package/dist/client_prod/static/js/async/web-elements-swiper.js +1 -0
  145. package/dist/client_prod/static/js/async/web-elements-textarea.js +1 -0
  146. package/dist/client_prod/static/js/async/web-elements-viewpager.js +1 -0
  147. package/dist/client_prod/static/js/client.js +2 -0
  148. package/dist/client_prod/static/wasm/7ff75609.module.wasm +0 -0
  149. package/dist/constants.d.ts +58 -0
  150. package/dist/constants.js +114 -0
  151. package/dist/encode/encodeCSS.d.ts +3 -0
  152. package/dist/encode/encodeCSS.js +99 -0
  153. package/dist/encode/encodeElementTemplate.d.ts +2 -0
  154. package/dist/encode/encodeElementTemplate.js +52 -0
  155. package/dist/encode/index.d.ts +1 -0
  156. package/dist/encode/index.js +7 -0
  157. package/dist/encode/webEncoder.d.ts +21 -0
  158. package/dist/encode/webEncoder.js +125 -0
  159. package/dist/types/BTSChunk.d.ts +3 -0
  160. package/dist/types/BTSChunk.js +5 -0
  161. package/dist/types/Cloneable.d.ts +2 -0
  162. package/dist/types/Cloneable.js +2 -0
  163. package/dist/types/DecodedTemplate.d.ts +10 -0
  164. package/dist/types/DecodedTemplate.js +7 -0
  165. package/dist/types/Element.d.ts +35 -0
  166. package/dist/types/Element.js +5 -0
  167. package/dist/types/ElementTemplateData.d.ts +15 -0
  168. package/dist/types/ElementTemplateData.js +7 -0
  169. package/dist/types/EventType.d.ts +56 -0
  170. package/dist/types/EventType.js +5 -0
  171. package/dist/types/I18nTypes.d.ts +21 -0
  172. package/dist/types/I18nTypes.js +2 -0
  173. package/dist/types/IElementPAPI.d.ts +184 -0
  174. package/dist/types/IElementPAPI.js +2 -0
  175. package/dist/types/IMtsBinding.d.ts +11 -0
  176. package/dist/types/IMtsBinding.js +7 -0
  177. package/dist/types/JSRealm.d.ts +5 -0
  178. package/dist/types/JSRealm.js +7 -0
  179. package/dist/types/LynxContextEventTarget.d.ts +12 -0
  180. package/dist/types/LynxContextEventTarget.js +5 -0
  181. package/dist/types/MainThreadLynx.d.ts +15 -0
  182. package/dist/types/MainThreadLynx.js +2 -0
  183. package/dist/types/NapiModules.d.ts +9 -0
  184. package/dist/types/NapiModules.js +5 -0
  185. package/dist/types/NativeApp.d.ts +120 -0
  186. package/dist/types/NativeApp.js +5 -0
  187. package/dist/types/NativeModules.d.ts +2 -0
  188. package/dist/types/NativeModules.js +5 -0
  189. package/dist/types/PageConfig.d.ts +9 -0
  190. package/dist/types/PageConfig.js +2 -0
  191. package/dist/types/ProcessDataCallback.d.ts +1 -0
  192. package/dist/types/ProcessDataCallback.js +2 -0
  193. package/dist/types/TimingAPIs.d.ts +32 -0
  194. package/dist/types/TimingAPIs.js +5 -0
  195. package/dist/types/UpdateDataOptions.d.ts +8 -0
  196. package/dist/types/UpdateDataOptions.js +6 -0
  197. package/dist/types/WorkerStartMessage.d.ts +14 -0
  198. package/dist/types/WorkerStartMessage.js +5 -0
  199. package/dist/types/index.d.ts +20 -0
  200. package/dist/types/index.js +7 -0
  201. package/eslint.config.js +34 -0
  202. package/package.json +87 -4
  203. package/index.js +0 -1
  204. package/selfIdentity.plist +0 -0
@@ -0,0 +1,822 @@
1
+ let wasm;
2
+ let wasmModule;
3
+ export function __wbg_set_wasm(exports, module) {
4
+ wasm = exports;
5
+ wasmModule = module;
6
+ }
7
+
8
+
9
+ let cachedUint8ArrayMemory0 = null;
10
+
11
+ function getUint8ArrayMemory0() {
12
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
13
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
14
+ }
15
+ return cachedUint8ArrayMemory0;
16
+ }
17
+
18
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
19
+
20
+ cachedTextDecoder.decode();
21
+
22
+ function decodeText(ptr, len) {
23
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
+ }
25
+
26
+ function getStringFromWasm0(ptr, len) {
27
+ ptr = ptr >>> 0;
28
+ return decodeText(ptr, len);
29
+ }
30
+
31
+ function debugString(val) {
32
+ // primitive types
33
+ const type = typeof val;
34
+ if (type == 'number' || type == 'boolean' || val == null) {
35
+ return `${val}`;
36
+ }
37
+ if (type == 'string') {
38
+ return `"${val}"`;
39
+ }
40
+ if (type == 'symbol') {
41
+ const description = val.description;
42
+ if (description == null) {
43
+ return 'Symbol';
44
+ } else {
45
+ return `Symbol(${description})`;
46
+ }
47
+ }
48
+ if (type == 'function') {
49
+ const name = val.name;
50
+ if (typeof name == 'string' && name.length > 0) {
51
+ return `Function(${name})`;
52
+ } else {
53
+ return 'Function';
54
+ }
55
+ }
56
+ // objects
57
+ if (Array.isArray(val)) {
58
+ const length = val.length;
59
+ let debug = '[';
60
+ if (length > 0) {
61
+ debug += debugString(val[0]);
62
+ }
63
+ for(let i = 1; i < length; i++) {
64
+ debug += ', ' + debugString(val[i]);
65
+ }
66
+ debug += ']';
67
+ return debug;
68
+ }
69
+ // Test for built-in
70
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
71
+ let className;
72
+ if (builtInMatches && builtInMatches.length > 1) {
73
+ className = builtInMatches[1];
74
+ } else {
75
+ // Failed to match the standard '[object ClassName]'
76
+ return toString.call(val);
77
+ }
78
+ if (className == 'Object') {
79
+ // we're a user defined class or Object
80
+ // JSON.stringify avoids problems with cycles, and is generally much
81
+ // easier than looping through ownProperties of `val`.
82
+ try {
83
+ return 'Object(' + JSON.stringify(val) + ')';
84
+ } catch (_) {
85
+ return 'Object';
86
+ }
87
+ }
88
+ // errors
89
+ if (val instanceof Error) {
90
+ return `${val.name}: ${val.message}\n${val.stack}`;
91
+ }
92
+ // TODO we could test for more things here, like `Set`s and `Map`s.
93
+ return className;
94
+ }
95
+
96
+ let WASM_VECTOR_LEN = 0;
97
+
98
+ const cachedTextEncoder = new TextEncoder();
99
+
100
+ if (!('encodeInto' in cachedTextEncoder)) {
101
+ cachedTextEncoder.encodeInto = function (arg, view) {
102
+ const buf = cachedTextEncoder.encode(arg);
103
+ view.set(buf);
104
+ return {
105
+ read: arg.length,
106
+ written: buf.length
107
+ };
108
+ }
109
+ }
110
+
111
+ function passStringToWasm0(arg, malloc, realloc) {
112
+
113
+ if (realloc === undefined) {
114
+ const buf = cachedTextEncoder.encode(arg);
115
+ const ptr = malloc(buf.length, 1) >>> 0;
116
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
117
+ WASM_VECTOR_LEN = buf.length;
118
+ return ptr;
119
+ }
120
+
121
+ let len = arg.length;
122
+ let ptr = malloc(len, 1) >>> 0;
123
+
124
+ const mem = getUint8ArrayMemory0();
125
+
126
+ let offset = 0;
127
+
128
+ for (; offset < len; offset++) {
129
+ const code = arg.charCodeAt(offset);
130
+ if (code > 0x7F) break;
131
+ mem[ptr + offset] = code;
132
+ }
133
+
134
+ if (offset !== len) {
135
+ if (offset !== 0) {
136
+ arg = arg.slice(offset);
137
+ }
138
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
139
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
140
+ const ret = cachedTextEncoder.encodeInto(arg, view);
141
+
142
+ offset += ret.written;
143
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
144
+ }
145
+
146
+ WASM_VECTOR_LEN = offset;
147
+ return ptr;
148
+ }
149
+
150
+ let cachedDataViewMemory0 = null;
151
+
152
+ function getDataViewMemory0() {
153
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
154
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
155
+ }
156
+ return cachedDataViewMemory0;
157
+ }
158
+
159
+ function isLikeNone(x) {
160
+ return x === undefined || x === null;
161
+ }
162
+
163
+ function getArrayU8FromWasm0(ptr, len) {
164
+ ptr = ptr >>> 0;
165
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
166
+ }
167
+
168
+ function takeFromExternrefTable0(idx) {
169
+ const value = wasm.__wbindgen_externrefs.get(idx);
170
+ wasm.__externref_table_dealloc(idx);
171
+ return value;
172
+ }
173
+
174
+ function addToExternrefTable0(obj) {
175
+ const idx = wasm.__externref_table_alloc();
176
+ wasm.__wbindgen_externrefs.set(idx, obj);
177
+ return idx;
178
+ }
179
+
180
+ function passArrayJsValueToWasm0(array, malloc) {
181
+ const ptr = malloc(array.length * 4, 4) >>> 0;
182
+ for (let i = 0; i < array.length; i++) {
183
+ const add = addToExternrefTable0(array[i]);
184
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
185
+ }
186
+ WASM_VECTOR_LEN = array.length;
187
+ return ptr;
188
+ }
189
+
190
+ function _assertClass(instance, klass) {
191
+ if (!(instance instanceof klass)) {
192
+ throw new Error(`expected instance of ${klass.name}`);
193
+ }
194
+ }
195
+ /**
196
+ * @enum {1 | 3 | 5 | 6 | 7 | 8 | 10 | 11 | 12}
197
+ */
198
+ export const LEOAsmOpcode = Object.freeze({
199
+ SetAttribute: 1, "1": "SetAttribute",
200
+ RemoveChild: 3, "3": "RemoveChild",
201
+ AppendChild: 5, "5": "AppendChild",
202
+ CreateElement: 6, "6": "CreateElement",
203
+ SetAttributeSlot: 7, "7": "SetAttributeSlot",
204
+ AppendElementSlot: 8, "8": "AppendElementSlot",
205
+ SetDataset: 10, "10": "SetDataset",
206
+ AddEvent: 11, "11": "AddEvent",
207
+ AppendToRoot: 12, "12": "AppendToRoot",
208
+ });
209
+
210
+ const DecodedStyleDataFinalization = (typeof FinalizationRegistry === 'undefined')
211
+ ? { register: () => {}, unregister: () => {} }
212
+ : new FinalizationRegistry(ptr => wasm.__wbg_decodedstyledata_free(ptr >>> 0, 1));
213
+
214
+ export class DecodedStyleData {
215
+
216
+ __destroy_into_raw() {
217
+ const ptr = this.__wbg_ptr;
218
+ this.__wbg_ptr = 0;
219
+ DecodedStyleDataFinalization.unregister(this);
220
+ return ptr;
221
+ }
222
+
223
+ free() {
224
+ const ptr = this.__destroy_into_raw();
225
+ wasm.__wbg_decodedstyledata_free(ptr, 0);
226
+ }
227
+ /**
228
+ * @param {Uint8Array} buffer
229
+ */
230
+ constructor(buffer) {
231
+ const ret = wasm.decodedstyledata_new(buffer);
232
+ if (ret[2]) {
233
+ throw takeFromExternrefTable0(ret[1]);
234
+ }
235
+ this.__wbg_ptr = ret[0] >>> 0;
236
+ DecodedStyleDataFinalization.register(this, this.__wbg_ptr, this);
237
+ return this;
238
+ }
239
+ /**
240
+ * @returns {string}
241
+ */
242
+ get style_content() {
243
+ let deferred1_0;
244
+ let deferred1_1;
245
+ try {
246
+ const ret = wasm.decodedstyledata_style_content(this.__wbg_ptr);
247
+ deferred1_0 = ret[0];
248
+ deferred1_1 = ret[1];
249
+ return getStringFromWasm0(ret[0], ret[1]);
250
+ } finally {
251
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
252
+ }
253
+ }
254
+ /**
255
+ * @returns {string}
256
+ */
257
+ get font_face_content() {
258
+ let deferred1_0;
259
+ let deferred1_1;
260
+ try {
261
+ const ret = wasm.decodedstyledata_font_face_content(this.__wbg_ptr);
262
+ deferred1_0 = ret[0];
263
+ deferred1_1 = ret[1];
264
+ return getStringFromWasm0(ret[0], ret[1]);
265
+ } finally {
266
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
267
+ }
268
+ }
269
+ /**
270
+ * @param {number} css_id
271
+ * @param {string[]} class_name
272
+ * @returns {string}
273
+ */
274
+ query_css_og_declarations_by_css_id(css_id, class_name) {
275
+ let deferred2_0;
276
+ let deferred2_1;
277
+ try {
278
+ const ptr0 = passArrayJsValueToWasm0(class_name, wasm.__wbindgen_malloc);
279
+ const len0 = WASM_VECTOR_LEN;
280
+ const ret = wasm.decodedstyledata_query_css_og_declarations_by_css_id(this.__wbg_ptr, css_id, ptr0, len0);
281
+ deferred2_0 = ret[0];
282
+ deferred2_1 = ret[1];
283
+ return getStringFromWasm0(ret[0], ret[1]);
284
+ } finally {
285
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
286
+ }
287
+ }
288
+ /**
289
+ * @param {Uint8Array} buffer
290
+ * @param {string | null | undefined} entry_name
291
+ * @param {boolean} config_enable_css_selector
292
+ * @returns {Uint8Array}
293
+ */
294
+ static decode_into(buffer, entry_name, config_enable_css_selector) {
295
+ var ptr0 = isLikeNone(entry_name) ? 0 : passStringToWasm0(entry_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ var len0 = WASM_VECTOR_LEN;
297
+ const ret = wasm.decodedstyledata_decode_into(buffer, ptr0, len0, config_enable_css_selector);
298
+ if (ret[2]) {
299
+ throw takeFromExternrefTable0(ret[1]);
300
+ }
301
+ return takeFromExternrefTable0(ret[0]);
302
+ }
303
+ /**
304
+ * @param {RawStyleInfo} raw_style_info
305
+ * @param {boolean} config_enable_css_selector
306
+ * @param {string | null} [entry_name]
307
+ * @returns {Uint8Array}
308
+ */
309
+ static encode_from_raw_style_info(raw_style_info, config_enable_css_selector, entry_name) {
310
+ _assertClass(raw_style_info, RawStyleInfo);
311
+ var ptr0 = raw_style_info.__destroy_into_raw();
312
+ var ptr1 = isLikeNone(entry_name) ? 0 : passStringToWasm0(entry_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
313
+ var len1 = WASM_VECTOR_LEN;
314
+ const ret = wasm.decodedstyledata_encode_from_raw_style_info(ptr0, config_enable_css_selector, ptr1, len1);
315
+ if (ret[2]) {
316
+ throw takeFromExternrefTable0(ret[1]);
317
+ }
318
+ return takeFromExternrefTable0(ret[0]);
319
+ }
320
+ }
321
+ if (Symbol.dispose) DecodedStyleData.prototype[Symbol.dispose] = DecodedStyleData.prototype.free;
322
+
323
+ const ElementTemplateSectionFinalization = (typeof FinalizationRegistry === 'undefined')
324
+ ? { register: () => {}, unregister: () => {} }
325
+ : new FinalizationRegistry(ptr => wasm.__wbg_elementtemplatesection_free(ptr >>> 0, 1));
326
+
327
+ export class ElementTemplateSection {
328
+
329
+ static __wrap(ptr) {
330
+ ptr = ptr >>> 0;
331
+ const obj = Object.create(ElementTemplateSection.prototype);
332
+ obj.__wbg_ptr = ptr;
333
+ ElementTemplateSectionFinalization.register(obj, obj.__wbg_ptr, obj);
334
+ return obj;
335
+ }
336
+
337
+ __destroy_into_raw() {
338
+ const ptr = this.__wbg_ptr;
339
+ this.__wbg_ptr = 0;
340
+ ElementTemplateSectionFinalization.unregister(this);
341
+ return ptr;
342
+ }
343
+
344
+ free() {
345
+ const ptr = this.__destroy_into_raw();
346
+ wasm.__wbg_elementtemplatesection_free(ptr, 0);
347
+ }
348
+ constructor() {
349
+ const ret = wasm.elementtemplatesection_new();
350
+ this.__wbg_ptr = ret >>> 0;
351
+ ElementTemplateSectionFinalization.register(this, this.__wbg_ptr, this);
352
+ return this;
353
+ }
354
+ /**
355
+ * @param {Uint8Array} buffer
356
+ * @returns {ElementTemplateSection}
357
+ */
358
+ static from_encoded(buffer) {
359
+ const ret = wasm.elementtemplatesection_from_encoded(buffer);
360
+ if (ret[2]) {
361
+ throw takeFromExternrefTable0(ret[1]);
362
+ }
363
+ return ElementTemplateSection.__wrap(ret[0]);
364
+ }
365
+ /**
366
+ * @param {string} id
367
+ * @param {RawElementTemplate} raw_element_template
368
+ */
369
+ add_element_template(id, raw_element_template) {
370
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
371
+ const len0 = WASM_VECTOR_LEN;
372
+ _assertClass(raw_element_template, RawElementTemplate);
373
+ var ptr1 = raw_element_template.__destroy_into_raw();
374
+ wasm.elementtemplatesection_add_element_template(this.__wbg_ptr, ptr0, len0, ptr1);
375
+ }
376
+ /**
377
+ * @returns {Uint8Array}
378
+ */
379
+ encode() {
380
+ const ret = wasm.elementtemplatesection_encode(this.__wbg_ptr);
381
+ return ret;
382
+ }
383
+ }
384
+ if (Symbol.dispose) ElementTemplateSection.prototype[Symbol.dispose] = ElementTemplateSection.prototype.free;
385
+
386
+ const OperationFinalization = (typeof FinalizationRegistry === 'undefined')
387
+ ? { register: () => {}, unregister: () => {} }
388
+ : new FinalizationRegistry(ptr => wasm.__wbg_operation_free(ptr >>> 0, 1));
389
+
390
+ export class Operation {
391
+
392
+ __destroy_into_raw() {
393
+ const ptr = this.__wbg_ptr;
394
+ this.__wbg_ptr = 0;
395
+ OperationFinalization.unregister(this);
396
+ return ptr;
397
+ }
398
+
399
+ free() {
400
+ const ptr = this.__destroy_into_raw();
401
+ wasm.__wbg_operation_free(ptr, 0);
402
+ }
403
+ }
404
+ if (Symbol.dispose) Operation.prototype[Symbol.dispose] = Operation.prototype.free;
405
+
406
+ const RawElementTemplateFinalization = (typeof FinalizationRegistry === 'undefined')
407
+ ? { register: () => {}, unregister: () => {} }
408
+ : new FinalizationRegistry(ptr => wasm.__wbg_rawelementtemplate_free(ptr >>> 0, 1));
409
+
410
+ export class RawElementTemplate {
411
+
412
+ __destroy_into_raw() {
413
+ const ptr = this.__wbg_ptr;
414
+ this.__wbg_ptr = 0;
415
+ RawElementTemplateFinalization.unregister(this);
416
+ return ptr;
417
+ }
418
+
419
+ free() {
420
+ const ptr = this.__destroy_into_raw();
421
+ wasm.__wbg_rawelementtemplate_free(ptr, 0);
422
+ }
423
+ constructor() {
424
+ const ret = wasm.rawelementtemplate_new();
425
+ this.__wbg_ptr = ret >>> 0;
426
+ RawElementTemplateFinalization.register(this, this.__wbg_ptr, this);
427
+ return this;
428
+ }
429
+ /**
430
+ * @param {number} element_id
431
+ */
432
+ append_to_root(element_id) {
433
+ wasm.rawelementtemplate_append_to_root(this.__wbg_ptr, element_id);
434
+ }
435
+ /**
436
+ * @param {string} tag_names
437
+ * @param {number} element_id
438
+ */
439
+ create_element(tag_names, element_id) {
440
+ const ptr0 = passStringToWasm0(tag_names, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
441
+ const len0 = WASM_VECTOR_LEN;
442
+ wasm.rawelementtemplate_create_element(this.__wbg_ptr, ptr0, len0, element_id);
443
+ }
444
+ /**
445
+ * @param {number} element_id
446
+ * @param {string} attr_name
447
+ * @param {string} attr_value
448
+ */
449
+ set_attribute(element_id, attr_name, attr_value) {
450
+ const ptr0 = passStringToWasm0(attr_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
451
+ const len0 = WASM_VECTOR_LEN;
452
+ const ptr1 = passStringToWasm0(attr_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
453
+ const len1 = WASM_VECTOR_LEN;
454
+ wasm.rawelementtemplate_set_attribute(this.__wbg_ptr, element_id, ptr0, len0, ptr1, len1);
455
+ }
456
+ /**
457
+ * @param {number} element_id
458
+ * @param {string} data_name
459
+ * @param {string} data_value
460
+ */
461
+ set_dataset(element_id, data_name, data_value) {
462
+ const ptr0 = passStringToWasm0(data_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
463
+ const len0 = WASM_VECTOR_LEN;
464
+ const ptr1 = passStringToWasm0(data_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
465
+ const len1 = WASM_VECTOR_LEN;
466
+ wasm.rawelementtemplate_set_dataset(this.__wbg_ptr, element_id, ptr0, len0, ptr1, len1);
467
+ }
468
+ /**
469
+ * @param {number} parent_element_id
470
+ * @param {number} child_element_id
471
+ */
472
+ append_child(parent_element_id, child_element_id) {
473
+ wasm.rawelementtemplate_append_child(this.__wbg_ptr, parent_element_id, child_element_id);
474
+ }
475
+ /**
476
+ * @param {number} element_id
477
+ * @param {string} event_type
478
+ * @param {string} event_name
479
+ * @param {string} event_value
480
+ */
481
+ set_cross_thread_event(element_id, event_type, event_name, event_value) {
482
+ const ptr0 = passStringToWasm0(event_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
483
+ const len0 = WASM_VECTOR_LEN;
484
+ const ptr1 = passStringToWasm0(event_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
485
+ const len1 = WASM_VECTOR_LEN;
486
+ const ptr2 = passStringToWasm0(event_value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
487
+ const len2 = WASM_VECTOR_LEN;
488
+ wasm.rawelementtemplate_set_cross_thread_event(this.__wbg_ptr, element_id, ptr0, len0, ptr1, len1, ptr2, len2);
489
+ }
490
+ /**
491
+ * @param {number} element_id
492
+ * @param {number} attribute_slot_id
493
+ * @param {string} attr_name
494
+ */
495
+ set_attribute_slot(element_id, attribute_slot_id, attr_name) {
496
+ const ptr0 = passStringToWasm0(attr_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
497
+ const len0 = WASM_VECTOR_LEN;
498
+ wasm.rawelementtemplate_set_attribute_slot(this.__wbg_ptr, element_id, attribute_slot_id, ptr0, len0);
499
+ }
500
+ /**
501
+ * @param {number} parent_element_id
502
+ * @param {number} child_element_slot_id
503
+ */
504
+ append_element_slot(parent_element_id, child_element_slot_id) {
505
+ wasm.rawelementtemplate_append_element_slot(this.__wbg_ptr, parent_element_id, child_element_slot_id);
506
+ }
507
+ }
508
+ if (Symbol.dispose) RawElementTemplate.prototype[Symbol.dispose] = RawElementTemplate.prototype.free;
509
+
510
+ const RawStyleInfoFinalization = (typeof FinalizationRegistry === 'undefined')
511
+ ? { register: () => {}, unregister: () => {} }
512
+ : new FinalizationRegistry(ptr => wasm.__wbg_rawstyleinfo_free(ptr >>> 0, 1));
513
+ /**
514
+ *
515
+ * * key: cssId
516
+ * * value: StyleSheet
517
+ *
518
+ */
519
+ export class RawStyleInfo {
520
+
521
+ __destroy_into_raw() {
522
+ const ptr = this.__wbg_ptr;
523
+ this.__wbg_ptr = 0;
524
+ RawStyleInfoFinalization.unregister(this);
525
+ return ptr;
526
+ }
527
+
528
+ free() {
529
+ const ptr = this.__destroy_into_raw();
530
+ wasm.__wbg_rawstyleinfo_free(ptr, 0);
531
+ }
532
+ constructor() {
533
+ const ret = wasm.rawstyleinfo_new();
534
+ this.__wbg_ptr = ret >>> 0;
535
+ RawStyleInfoFinalization.register(this, this.__wbg_ptr, this);
536
+ return this;
537
+ }
538
+ /**
539
+ *
540
+ * * Appends an import to the stylesheet identified by `css_id`.
541
+ * * If the stylesheet does not exist, it is created.
542
+ * * @param css_id - The ID of the CSS file.
543
+ * * @param import_css_id - The ID of the imported CSS file.
544
+ *
545
+ * @param {number} css_id
546
+ * @param {number} import_css_id
547
+ */
548
+ append_import(css_id, import_css_id) {
549
+ wasm.rawstyleinfo_append_import(this.__wbg_ptr, css_id, import_css_id);
550
+ }
551
+ /**
552
+ *
553
+ * * Pushes a rule to the stylesheet identified by `css_id`.
554
+ * * If the stylesheet does not exist, it is created.
555
+ * * @param css_id - The ID of the CSS file.
556
+ * * @param rule - The rule to append.
557
+ *
558
+ * @param {number} css_id
559
+ * @param {Rule} rule
560
+ */
561
+ push_rule(css_id, rule) {
562
+ _assertClass(rule, Rule);
563
+ var ptr0 = rule.__destroy_into_raw();
564
+ wasm.rawstyleinfo_push_rule(this.__wbg_ptr, css_id, ptr0);
565
+ }
566
+ /**
567
+ *
568
+ * * Encodes the RawStyleInfo into a Uint8Array using bincode serialization.
569
+ * * @returns A Uint8Array containing the serialized RawStyleInfo.
570
+ *
571
+ * @returns {Uint8Array}
572
+ */
573
+ encode() {
574
+ const ret = wasm.rawstyleinfo_encode(this.__wbg_ptr);
575
+ if (ret[2]) {
576
+ throw takeFromExternrefTable0(ret[1]);
577
+ }
578
+ return takeFromExternrefTable0(ret[0]);
579
+ }
580
+ }
581
+ if (Symbol.dispose) RawStyleInfo.prototype[Symbol.dispose] = RawStyleInfo.prototype.free;
582
+
583
+ const RuleFinalization = (typeof FinalizationRegistry === 'undefined')
584
+ ? { register: () => {}, unregister: () => {} }
585
+ : new FinalizationRegistry(ptr => wasm.__wbg_rule_free(ptr >>> 0, 1));
586
+
587
+ export class Rule {
588
+
589
+ __destroy_into_raw() {
590
+ const ptr = this.__wbg_ptr;
591
+ this.__wbg_ptr = 0;
592
+ RuleFinalization.unregister(this);
593
+ return ptr;
594
+ }
595
+
596
+ free() {
597
+ const ptr = this.__destroy_into_raw();
598
+ wasm.__wbg_rule_free(ptr, 0);
599
+ }
600
+ /**
601
+ *
602
+ * * Creates a new Rule with the specified type.
603
+ * * @param rule_type - The type of the rule (e.g., "StyleRule", "FontFaceRule", "KeyframesRule").
604
+ *
605
+ * @param {string} rule_type
606
+ */
607
+ constructor(rule_type) {
608
+ const ptr0 = passStringToWasm0(rule_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
609
+ const len0 = WASM_VECTOR_LEN;
610
+ const ret = wasm.rule_new(ptr0, len0);
611
+ if (ret[2]) {
612
+ throw takeFromExternrefTable0(ret[1]);
613
+ }
614
+ this.__wbg_ptr = ret[0] >>> 0;
615
+ RuleFinalization.register(this, this.__wbg_ptr, this);
616
+ return this;
617
+ }
618
+ /**
619
+ *
620
+ * * Sets the prelude for the rule.
621
+ * * @param prelude - The prelude to set (SelectorList or KeyFramesPrelude).
622
+ *
623
+ * @param {RulePrelude} prelude
624
+ */
625
+ set_prelude(prelude) {
626
+ _assertClass(prelude, RulePrelude);
627
+ var ptr0 = prelude.__destroy_into_raw();
628
+ wasm.rule_set_prelude(this.__wbg_ptr, ptr0);
629
+ }
630
+ /**
631
+ *
632
+ * * Pushes a declaration to the rule's declaration block.
633
+ * * @param property_name - The property name.
634
+ * * @param value - The property value.
635
+ *
636
+ * @param {string} property_name
637
+ * @param {string} value
638
+ */
639
+ push_declaration(property_name, value) {
640
+ const ptr0 = passStringToWasm0(property_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
641
+ const len0 = WASM_VECTOR_LEN;
642
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
643
+ const len1 = WASM_VECTOR_LEN;
644
+ wasm.rule_push_declaration(this.__wbg_ptr, ptr0, len0, ptr1, len1);
645
+ }
646
+ /**
647
+ *
648
+ * * Pushes a nested rule to the rule.
649
+ * * @param rule - The nested rule to add.
650
+ *
651
+ * @param {Rule} rule
652
+ */
653
+ push_rule_children(rule) {
654
+ _assertClass(rule, Rule);
655
+ var ptr0 = rule.__destroy_into_raw();
656
+ wasm.rule_push_rule_children(this.__wbg_ptr, ptr0);
657
+ }
658
+ }
659
+ if (Symbol.dispose) Rule.prototype[Symbol.dispose] = Rule.prototype.free;
660
+
661
+ const RulePreludeFinalization = (typeof FinalizationRegistry === 'undefined')
662
+ ? { register: () => {}, unregister: () => {} }
663
+ : new FinalizationRegistry(ptr => wasm.__wbg_ruleprelude_free(ptr >>> 0, 1));
664
+ /**
665
+ *
666
+ * * Either SelectorList or KeyFramesPrelude
667
+ * * Depending on the RuleType
668
+ * * If it is SelectorList, then selectors is a list of Selector
669
+ * * If it is KeyFramesPrelude, then selectors has only one selector which is Prelude text, its simple_selectors is empty
670
+ * * If the parent is FontFace, then selectors is empty
671
+ *
672
+ */
673
+ export class RulePrelude {
674
+
675
+ __destroy_into_raw() {
676
+ const ptr = this.__wbg_ptr;
677
+ this.__wbg_ptr = 0;
678
+ RulePreludeFinalization.unregister(this);
679
+ return ptr;
680
+ }
681
+
682
+ free() {
683
+ const ptr = this.__destroy_into_raw();
684
+ wasm.__wbg_ruleprelude_free(ptr, 0);
685
+ }
686
+ constructor() {
687
+ const ret = wasm.ruleprelude_new();
688
+ this.__wbg_ptr = ret >>> 0;
689
+ RulePreludeFinalization.register(this, this.__wbg_ptr, this);
690
+ return this;
691
+ }
692
+ /**
693
+ *
694
+ * * Pushes a selector to the list.
695
+ * * @param selector - The selector to add.
696
+ *
697
+ * @param {Selector} selector
698
+ */
699
+ push_selector(selector) {
700
+ _assertClass(selector, Selector);
701
+ var ptr0 = selector.__destroy_into_raw();
702
+ wasm.ruleprelude_push_selector(this.__wbg_ptr, ptr0);
703
+ }
704
+ }
705
+ if (Symbol.dispose) RulePrelude.prototype[Symbol.dispose] = RulePrelude.prototype.free;
706
+
707
+ const SelectorFinalization = (typeof FinalizationRegistry === 'undefined')
708
+ ? { register: () => {}, unregister: () => {} }
709
+ : new FinalizationRegistry(ptr => wasm.__wbg_selector_free(ptr >>> 0, 1));
710
+
711
+ export class Selector {
712
+
713
+ __destroy_into_raw() {
714
+ const ptr = this.__wbg_ptr;
715
+ this.__wbg_ptr = 0;
716
+ SelectorFinalization.unregister(this);
717
+ return ptr;
718
+ }
719
+
720
+ free() {
721
+ const ptr = this.__destroy_into_raw();
722
+ wasm.__wbg_selector_free(ptr, 0);
723
+ }
724
+ constructor() {
725
+ const ret = wasm.selector_new();
726
+ this.__wbg_ptr = ret >>> 0;
727
+ SelectorFinalization.register(this, this.__wbg_ptr, this);
728
+ return this;
729
+ }
730
+ /**
731
+ *
732
+ * * Pushes a selector section to the selector.
733
+ * * @param selector_type - The type of the selector section (e.g., "ClassSelector", "IdSelector").
734
+ * * @param value - The value of the selector section.
735
+ *
736
+ * @param {string} selector_type
737
+ * @param {string} value
738
+ */
739
+ push_one_selector_section(selector_type, value) {
740
+ const ptr0 = passStringToWasm0(selector_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
741
+ const len0 = WASM_VECTOR_LEN;
742
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
743
+ const len1 = WASM_VECTOR_LEN;
744
+ const ret = wasm.selector_push_one_selector_section(this.__wbg_ptr, ptr0, len0, ptr1, len1);
745
+ if (ret[1]) {
746
+ throw takeFromExternrefTable0(ret[0]);
747
+ }
748
+ }
749
+ }
750
+ if (Symbol.dispose) Selector.prototype[Symbol.dispose] = Selector.prototype.free;
751
+
752
+ const StyleInfoDecoderFinalization = (typeof FinalizationRegistry === 'undefined')
753
+ ? { register: () => {}, unregister: () => {} }
754
+ : new FinalizationRegistry(ptr => wasm.__wbg_styleinfodecoder_free(ptr >>> 0, 1));
755
+
756
+ export class StyleInfoDecoder {
757
+
758
+ __destroy_into_raw() {
759
+ const ptr = this.__wbg_ptr;
760
+ this.__wbg_ptr = 0;
761
+ StyleInfoDecoderFinalization.unregister(this);
762
+ return ptr;
763
+ }
764
+
765
+ free() {
766
+ const ptr = this.__destroy_into_raw();
767
+ wasm.__wbg_styleinfodecoder_free(ptr, 0);
768
+ }
769
+ }
770
+ if (Symbol.dispose) StyleInfoDecoder.prototype[Symbol.dispose] = StyleInfoDecoder.prototype.free;
771
+
772
+ export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
773
+ const ret = Error(getStringFromWasm0(arg0, arg1));
774
+ return ret;
775
+ };
776
+
777
+ export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
778
+ const ret = debugString(arg1);
779
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
780
+ const len1 = WASM_VECTOR_LEN;
781
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
782
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
783
+ };
784
+
785
+ export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
786
+ const obj = arg1;
787
+ const ret = typeof(obj) === 'string' ? obj : undefined;
788
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
789
+ var len1 = WASM_VECTOR_LEN;
790
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
791
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
792
+ };
793
+
794
+ export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
795
+ throw new Error(getStringFromWasm0(arg0, arg1));
796
+ };
797
+
798
+ export function __wbg_length_69bca3cb64fc8748(arg0) {
799
+ const ret = arg0.length;
800
+ return ret;
801
+ };
802
+
803
+ export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
804
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
805
+ return ret;
806
+ };
807
+
808
+ export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
809
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
810
+ };
811
+
812
+ export function __wbindgen_init_externref_table() {
813
+ const table = wasm.__wbindgen_externrefs;
814
+ const offset = table.grow(4);
815
+ table.set(0, undefined);
816
+ table.set(offset + 0, undefined);
817
+ table.set(offset + 1, null);
818
+ table.set(offset + 2, true);
819
+ table.set(offset + 3, false);
820
+ ;
821
+ };
822
+