@myoc/element 0.19.544 → 0.19.545
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/dist/dev/gif.worker.js +321 -0
- package/dist/dev/gif.worker.js.map +7 -0
- package/dist/dev/index.js +334 -500
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/squoosh_gif_bg.wasm +0 -0
- package/dist/prod/gif.worker.js +1 -0
- package/dist/prod/index.js +16 -16
- package/dist/prod/squoosh_gif_bg.wasm +0 -0
- package/dist/types/element/src/gif.worker.d.ts +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
// ../../node_modules/@discourse/gif/codec/pkg/squoosh_gif.js
|
|
2
|
+
var GIFFrame = class _GIFFrame {
|
|
3
|
+
static __wrap(ptr) {
|
|
4
|
+
const obj = Object.create(_GIFFrame.prototype);
|
|
5
|
+
obj.__wbg_ptr = ptr;
|
|
6
|
+
GIFFrameFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
7
|
+
return obj;
|
|
8
|
+
}
|
|
9
|
+
__destroy_into_raw() {
|
|
10
|
+
const ptr = this.__wbg_ptr;
|
|
11
|
+
this.__wbg_ptr = 0;
|
|
12
|
+
GIFFrameFinalization.unregister(this);
|
|
13
|
+
return ptr;
|
|
14
|
+
}
|
|
15
|
+
free() {
|
|
16
|
+
const ptr = this.__destroy_into_raw();
|
|
17
|
+
wasm.__wbg_gifframe_free(ptr, 0);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @returns {number}
|
|
21
|
+
*/
|
|
22
|
+
get duration() {
|
|
23
|
+
const ret = wasm.gifframe_duration(this.__wbg_ptr);
|
|
24
|
+
return ret >>> 0;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @returns {ImageData}
|
|
28
|
+
*/
|
|
29
|
+
get imageData() {
|
|
30
|
+
const ret = wasm.gifframe_imageData(this.__wbg_ptr);
|
|
31
|
+
return takeObject(ret);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
if (Symbol.dispose)
|
|
35
|
+
GIFFrame.prototype[Symbol.dispose] = GIFFrame.prototype.free;
|
|
36
|
+
function decodeAnimated(data) {
|
|
37
|
+
try {
|
|
38
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
39
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
40
|
+
const len0 = WASM_VECTOR_LEN;
|
|
41
|
+
wasm.decodeAnimated(retptr, ptr0, len0);
|
|
42
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
43
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
44
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
45
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
46
|
+
return v2;
|
|
47
|
+
} finally {
|
|
48
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function __wbg_get_imports() {
|
|
52
|
+
const import0 = {
|
|
53
|
+
__proto__: null,
|
|
54
|
+
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
|
|
55
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
56
|
+
},
|
|
57
|
+
__wbg_gifframe_new: function(arg0) {
|
|
58
|
+
const ret = GIFFrame.__wrap(arg0);
|
|
59
|
+
return addHeapObject(ret);
|
|
60
|
+
},
|
|
61
|
+
__wbg_new_with_owned_u8_clamped_array_and_sh_9b06742b45807291: function(arg0, arg1, arg2, arg3) {
|
|
62
|
+
var v0 = getClampedArrayU8FromWasm0(arg0, arg1).slice();
|
|
63
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
64
|
+
const ret = new ImageData(v0, arg2 >>> 0, arg3 >>> 0);
|
|
65
|
+
return addHeapObject(ret);
|
|
66
|
+
},
|
|
67
|
+
__wbindgen_object_clone_ref: function(arg0) {
|
|
68
|
+
const ret = getObject(arg0);
|
|
69
|
+
return addHeapObject(ret);
|
|
70
|
+
},
|
|
71
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
72
|
+
takeObject(arg0);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
__proto__: null,
|
|
77
|
+
"./squoosh_gif_bg.js": import0
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
var GIFFrameFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
81
|
+
}, unregister: () => {
|
|
82
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_gifframe_free(ptr, 1));
|
|
83
|
+
function addHeapObject(obj) {
|
|
84
|
+
if (heap_next === heap.length)
|
|
85
|
+
heap.push(heap.length + 1);
|
|
86
|
+
const idx = heap_next;
|
|
87
|
+
heap_next = heap[idx];
|
|
88
|
+
heap[idx] = obj;
|
|
89
|
+
return idx;
|
|
90
|
+
}
|
|
91
|
+
function dropObject(idx) {
|
|
92
|
+
if (idx < 1028)
|
|
93
|
+
return;
|
|
94
|
+
heap[idx] = heap_next;
|
|
95
|
+
heap_next = idx;
|
|
96
|
+
}
|
|
97
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
98
|
+
ptr = ptr >>> 0;
|
|
99
|
+
const mem = getDataViewMemory0();
|
|
100
|
+
const result = [];
|
|
101
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
102
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
function getClampedArrayU8FromWasm0(ptr, len) {
|
|
107
|
+
ptr = ptr >>> 0;
|
|
108
|
+
return getUint8ClampedArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
109
|
+
}
|
|
110
|
+
var cachedDataViewMemory0 = null;
|
|
111
|
+
function getDataViewMemory0() {
|
|
112
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
113
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
114
|
+
}
|
|
115
|
+
return cachedDataViewMemory0;
|
|
116
|
+
}
|
|
117
|
+
function getStringFromWasm0(ptr, len) {
|
|
118
|
+
return decodeText(ptr >>> 0, len);
|
|
119
|
+
}
|
|
120
|
+
var cachedUint8ArrayMemory0 = null;
|
|
121
|
+
function getUint8ArrayMemory0() {
|
|
122
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
123
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
124
|
+
}
|
|
125
|
+
return cachedUint8ArrayMemory0;
|
|
126
|
+
}
|
|
127
|
+
var cachedUint8ClampedArrayMemory0 = null;
|
|
128
|
+
function getUint8ClampedArrayMemory0() {
|
|
129
|
+
if (cachedUint8ClampedArrayMemory0 === null || cachedUint8ClampedArrayMemory0.byteLength === 0) {
|
|
130
|
+
cachedUint8ClampedArrayMemory0 = new Uint8ClampedArray(wasm.memory.buffer);
|
|
131
|
+
}
|
|
132
|
+
return cachedUint8ClampedArrayMemory0;
|
|
133
|
+
}
|
|
134
|
+
function getObject(idx) {
|
|
135
|
+
return heap[idx];
|
|
136
|
+
}
|
|
137
|
+
var heap = new Array(1024).fill(void 0);
|
|
138
|
+
heap.push(void 0, null, true, false);
|
|
139
|
+
var heap_next = heap.length;
|
|
140
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
141
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
142
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
143
|
+
WASM_VECTOR_LEN = arg.length;
|
|
144
|
+
return ptr;
|
|
145
|
+
}
|
|
146
|
+
function takeObject(idx) {
|
|
147
|
+
const ret = getObject(idx);
|
|
148
|
+
dropObject(idx);
|
|
149
|
+
return ret;
|
|
150
|
+
}
|
|
151
|
+
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
152
|
+
cachedTextDecoder.decode();
|
|
153
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
154
|
+
var numBytesDecoded = 0;
|
|
155
|
+
function decodeText(ptr, len) {
|
|
156
|
+
numBytesDecoded += len;
|
|
157
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
158
|
+
cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
159
|
+
cachedTextDecoder.decode();
|
|
160
|
+
numBytesDecoded = len;
|
|
161
|
+
}
|
|
162
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
163
|
+
}
|
|
164
|
+
var WASM_VECTOR_LEN = 0;
|
|
165
|
+
var wasmModule;
|
|
166
|
+
var wasmInstance;
|
|
167
|
+
var wasm;
|
|
168
|
+
function __wbg_finalize_init(instance, module) {
|
|
169
|
+
wasmInstance = instance;
|
|
170
|
+
wasm = instance.exports;
|
|
171
|
+
wasmModule = module;
|
|
172
|
+
cachedDataViewMemory0 = null;
|
|
173
|
+
cachedUint8ArrayMemory0 = null;
|
|
174
|
+
cachedUint8ClampedArrayMemory0 = null;
|
|
175
|
+
return wasm;
|
|
176
|
+
}
|
|
177
|
+
async function __wbg_load(module, imports) {
|
|
178
|
+
if (typeof Response === "function" && module instanceof Response) {
|
|
179
|
+
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
180
|
+
try {
|
|
181
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
182
|
+
} catch (e) {
|
|
183
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
184
|
+
if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
|
|
185
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
186
|
+
} else {
|
|
187
|
+
throw e;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const bytes = await module.arrayBuffer();
|
|
192
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
193
|
+
} else {
|
|
194
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
195
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
196
|
+
return { instance, module };
|
|
197
|
+
} else {
|
|
198
|
+
return instance;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function expectedResponseType(type) {
|
|
202
|
+
switch (type) {
|
|
203
|
+
case "basic":
|
|
204
|
+
case "cors":
|
|
205
|
+
case "default":
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
return false;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
async function __wbg_init(module_or_path) {
|
|
212
|
+
if (wasm !== void 0)
|
|
213
|
+
return wasm;
|
|
214
|
+
if (module_or_path !== void 0) {
|
|
215
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
216
|
+
({ module_or_path } = module_or_path);
|
|
217
|
+
} else {
|
|
218
|
+
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (module_or_path === void 0) {
|
|
222
|
+
module_or_path = new URL("squoosh_gif_bg.wasm", import.meta.url);
|
|
223
|
+
}
|
|
224
|
+
const imports = __wbg_get_imports();
|
|
225
|
+
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
226
|
+
module_or_path = fetch(module_or_path);
|
|
227
|
+
}
|
|
228
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
229
|
+
return __wbg_finalize_init(instance, module);
|
|
230
|
+
}
|
|
231
|
+
var isServiceWorker = globalThis.ServiceWorkerGlobalScope !== void 0;
|
|
232
|
+
var isRunningInCloudFlareWorkers = isServiceWorker && typeof self !== "undefined" && globalThis.caches && globalThis.caches.default !== void 0;
|
|
233
|
+
var isRunningInNode = typeof process === "object" && process.release && process.release.name === "node";
|
|
234
|
+
if (isRunningInCloudFlareWorkers || isRunningInNode) {
|
|
235
|
+
if (!globalThis.ImageData) {
|
|
236
|
+
globalThis.ImageData = class ImageData {
|
|
237
|
+
constructor(data, width, height) {
|
|
238
|
+
this.data = data;
|
|
239
|
+
this.width = width;
|
|
240
|
+
this.height = height;
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
if (import.meta.url === void 0) {
|
|
245
|
+
import.meta.url = "https://localhost";
|
|
246
|
+
}
|
|
247
|
+
if (typeof self !== "undefined" && self.location === void 0) {
|
|
248
|
+
self.location = { href: "" };
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// ../../node_modules/@discourse/gif/decode.js
|
|
253
|
+
var gifModule;
|
|
254
|
+
function validateGif(buffer) {
|
|
255
|
+
const header = new Uint8Array(buffer, 0, 6);
|
|
256
|
+
const sig = String.fromCharCode(...header);
|
|
257
|
+
if (sig !== "GIF87a" && sig !== "GIF89a") {
|
|
258
|
+
throw new Error(`Not a valid GIF file (expected GIF87a/GIF89a header, got "${sig.replace(/[^\x20-\x7E]/g, "?")}")`);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
async function init(moduleOrPath) {
|
|
262
|
+
if (!gifModule) {
|
|
263
|
+
gifModule = __wbg_init(moduleOrPath);
|
|
264
|
+
}
|
|
265
|
+
return gifModule;
|
|
266
|
+
}
|
|
267
|
+
async function decodeAnimated2(buffer) {
|
|
268
|
+
validateGif(buffer);
|
|
269
|
+
await init();
|
|
270
|
+
const result = decodeAnimated(new Uint8Array(buffer));
|
|
271
|
+
if (!result)
|
|
272
|
+
throw new Error("Decoding error");
|
|
273
|
+
return result;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// src/gif.worker.ts
|
|
277
|
+
var workerScope = globalThis;
|
|
278
|
+
var getGifDimensions = (buffer) => {
|
|
279
|
+
if (buffer.byteLength < 10) {
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
const data = new DataView(buffer);
|
|
283
|
+
return {
|
|
284
|
+
width: data.getUint16(6, true),
|
|
285
|
+
height: data.getUint16(8, true)
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
var getErrorMessage = (error) => error instanceof Error ? error.message : String(error);
|
|
289
|
+
workerScope.onmessage = async (event) => {
|
|
290
|
+
let frames = [];
|
|
291
|
+
try {
|
|
292
|
+
const dimensions = getGifDimensions(event.data);
|
|
293
|
+
frames = await decodeAnimated2(event.data);
|
|
294
|
+
const decodedFrames = frames.map((frame) => {
|
|
295
|
+
const imageData = frame.imageData;
|
|
296
|
+
return {
|
|
297
|
+
width: imageData.width,
|
|
298
|
+
height: imageData.height,
|
|
299
|
+
delay: frame.duration,
|
|
300
|
+
data: imageData.data.buffer
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
workerScope.postMessage(
|
|
304
|
+
{
|
|
305
|
+
type: "success",
|
|
306
|
+
frames: decodedFrames,
|
|
307
|
+
width: dimensions?.width ?? frames[0]?.imageData.width ?? 0,
|
|
308
|
+
height: dimensions?.height ?? frames[0]?.imageData.height ?? 0
|
|
309
|
+
},
|
|
310
|
+
decodedFrames.map((frame) => frame.data)
|
|
311
|
+
);
|
|
312
|
+
} catch (error) {
|
|
313
|
+
workerScope.postMessage({
|
|
314
|
+
type: "error",
|
|
315
|
+
message: getErrorMessage(error)
|
|
316
|
+
});
|
|
317
|
+
} finally {
|
|
318
|
+
frames.forEach((frame) => frame.free());
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
//# sourceMappingURL=gif.worker.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../node_modules/@discourse/gif/codec/pkg/squoosh_gif.js", "../../../../node_modules/@discourse/gif/decode.js", "../../src/gif.worker.ts"],
|
|
4
|
+
"sourcesContent": ["/* @ts-self-types=\"./squoosh_gif.d.ts\" */\n\nexport class GIFFrame {\n static __wrap(ptr) {\n const obj = Object.create(GIFFrame.prototype);\n obj.__wbg_ptr = ptr;\n GIFFrameFinalization.register(obj, obj.__wbg_ptr, obj);\n return obj;\n }\n __destroy_into_raw() {\n const ptr = this.__wbg_ptr;\n this.__wbg_ptr = 0;\n GIFFrameFinalization.unregister(this);\n return ptr;\n }\n free() {\n const ptr = this.__destroy_into_raw();\n wasm.__wbg_gifframe_free(ptr, 0);\n }\n /**\n * @returns {number}\n */\n get duration() {\n const ret = wasm.gifframe_duration(this.__wbg_ptr);\n return ret >>> 0;\n }\n /**\n * @returns {ImageData}\n */\n get imageData() {\n const ret = wasm.gifframe_imageData(this.__wbg_ptr);\n return takeObject(ret);\n }\n}\nif (Symbol.dispose) GIFFrame.prototype[Symbol.dispose] = GIFFrame.prototype.free;\n\n/**\n * @param {Uint8Array} data\n * @returns {ImageData}\n */\nexport function decode(data) {\n const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.decode(ptr0, len0);\n return takeObject(ret);\n}\n\n/**\n * @param {Uint8Array} data\n * @returns {GIFFrame[]}\n */\nexport function decodeAnimated(data) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.decodeAnimated(retptr, ptr0, len0);\n var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);\n var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);\n var v2 = getArrayJsValueFromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 4, 4);\n return v2;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n}\n\n/**\n * @param {Uint8Array} data\n * @returns {boolean}\n */\nexport function isAnimated(data) {\n const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.isAnimated(ptr0, len0);\n return ret !== 0;\n}\nfunction __wbg_get_imports() {\n const import0 = {\n __proto__: null,\n __wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n },\n __wbg_gifframe_new: function(arg0) {\n const ret = GIFFrame.__wrap(arg0);\n return addHeapObject(ret);\n },\n __wbg_new_with_owned_u8_clamped_array_and_sh_9b06742b45807291: function(arg0, arg1, arg2, arg3) {\n var v0 = getClampedArrayU8FromWasm0(arg0, arg1).slice();\n wasm.__wbindgen_free(arg0, arg1 * 1, 1);\n const ret = new ImageData(v0, arg2 >>> 0, arg3 >>> 0);\n return addHeapObject(ret);\n },\n __wbindgen_object_clone_ref: function(arg0) {\n const ret = getObject(arg0);\n return addHeapObject(ret);\n },\n __wbindgen_object_drop_ref: function(arg0) {\n takeObject(arg0);\n },\n };\n return {\n __proto__: null,\n \"./squoosh_gif_bg.js\": import0,\n };\n}\n\nconst GIFFrameFinalization = (typeof FinalizationRegistry === 'undefined')\n ? { register: () => {}, unregister: () => {} }\n : new FinalizationRegistry(ptr => wasm.__wbg_gifframe_free(ptr, 1));\n\nfunction addHeapObject(obj) {\n if (heap_next === heap.length) heap.push(heap.length + 1);\n const idx = heap_next;\n heap_next = heap[idx];\n\n heap[idx] = obj;\n return idx;\n}\n\nfunction dropObject(idx) {\n if (idx < 1028) return;\n heap[idx] = heap_next;\n heap_next = idx;\n}\n\nfunction getArrayJsValueFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n const mem = getDataViewMemory0();\n const result = [];\n for (let i = ptr; i < ptr + 4 * len; i += 4) {\n result.push(takeObject(mem.getUint32(i, true)));\n }\n return result;\n}\n\nfunction getClampedArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ClampedArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nlet cachedDataViewMemory0 = null;\nfunction getDataViewMemory0() {\n if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {\n cachedDataViewMemory0 = new DataView(wasm.memory.buffer);\n }\n return cachedDataViewMemory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n return decodeText(ptr >>> 0, len);\n}\n\nlet cachedUint8ArrayMemory0 = null;\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nlet cachedUint8ClampedArrayMemory0 = null;\nfunction getUint8ClampedArrayMemory0() {\n if (cachedUint8ClampedArrayMemory0 === null || cachedUint8ClampedArrayMemory0.byteLength === 0) {\n cachedUint8ClampedArrayMemory0 = new Uint8ClampedArray(wasm.memory.buffer);\n }\n return cachedUint8ClampedArrayMemory0;\n}\n\nfunction getObject(idx) { return heap[idx]; }\n\nlet heap = new Array(1024).fill(undefined);\nheap.push(undefined, null, true, false);\n\nlet heap_next = heap.length;\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1, 1) >>> 0;\n getUint8ArrayMemory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\n\nfunction takeObject(idx) {\n const ret = getObject(idx);\n dropObject(idx);\n return ret;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\ncachedTextDecoder.decode();\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nlet wasmModule, wasmInstance, wasm;\nfunction __wbg_finalize_init(instance, module) {\n wasmInstance = instance;\n wasm = instance.exports;\n wasmModule = module;\n cachedDataViewMemory0 = null;\n cachedUint8ArrayMemory0 = null;\n cachedUint8ClampedArrayMemory0 = null;\n return wasm;\n}\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n } catch (e) {\n const validResponse = module.ok && expectedResponseType(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else { throw e; }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n } else {\n return instance;\n }\n }\n\n function expectedResponseType(type) {\n switch (type) {\n case 'basic': case 'cors': case 'default': return true;\n }\n return false;\n }\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (module !== undefined) {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n const instance = new WebAssembly.Instance(module, imports);\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (module_or_path !== undefined) {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (module_or_path === undefined) {\n module_or_path = new URL('squoosh_gif_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync, __wbg_init as default };\nconst isServiceWorker = globalThis.ServiceWorkerGlobalScope !== undefined;\nconst isRunningInCloudFlareWorkers = isServiceWorker && typeof self !== 'undefined' && globalThis.caches && globalThis.caches.default !== undefined;\nconst isRunningInNode = typeof process === 'object' && process.release && process.release.name === 'node';\n\nif (isRunningInCloudFlareWorkers || isRunningInNode) {\n if (!globalThis.ImageData) {\n // Simple Polyfill for ImageData Object\n globalThis.ImageData = class ImageData {\n constructor(data, width, height) {\n this.data = data;\n this.width = width;\n this.height = height;\n }\n };\n }\n\n if (import.meta.url === undefined) {\n import.meta.url = 'https://localhost';\n }\n\n if (typeof self !== 'undefined' && self.location === undefined) {\n self.location = { href: '' };\n }\n}\n", "import initGifModule, { decode as gifDecodeWasm, decodeAnimated as gifDecodeAnimatedWasm, isAnimated as gifIsAnimatedWasm, } from './codec/pkg/squoosh_gif.js';\nlet gifModule;\nfunction validateGif(buffer) {\n const header = new Uint8Array(buffer, 0, 6);\n const sig = String.fromCharCode(...header);\n if (sig !== 'GIF87a' && sig !== 'GIF89a') {\n throw new Error(`Not a valid GIF file (expected GIF87a/GIF89a header, got \"${sig.replace(/[^\\x20-\\x7E]/g, '?')}\")`);\n }\n}\nexport async function init(moduleOrPath) {\n if (!gifModule) {\n gifModule = initGifModule(moduleOrPath);\n }\n return gifModule;\n}\nexport default async function decode(buffer) {\n validateGif(buffer);\n await init();\n const result = gifDecodeWasm(new Uint8Array(buffer));\n if (!result)\n throw new Error('Decoding error');\n return result;\n}\nexport async function decodeAnimated(buffer) {\n validateGif(buffer);\n await init();\n const result = gifDecodeAnimatedWasm(new Uint8Array(buffer));\n if (!result)\n throw new Error('Decoding error');\n return result;\n}\nexport async function isAnimated(buffer) {\n validateGif(buffer);\n await init();\n return gifIsAnimatedWasm(new Uint8Array(buffer));\n}\n", "import { decodeAnimated } from \"@discourse/gif\";\n\nimport type { GIFFrame } from \"@discourse/gif\";\n\ntype GifWorkerRequest = ArrayBuffer;\n\ntype GifWorkerFrame = {\n width: number;\n height: number;\n delay: number;\n data: ArrayBuffer;\n};\n\ntype GifWorkerResponse =\n | {\n type: \"success\";\n frames: GifWorkerFrame[];\n width: number;\n height: number;\n }\n | { type: \"error\"; message: string };\n\ntype GifWorkerScope = {\n onmessage: ((event: MessageEvent<GifWorkerRequest>) => void) | null;\n postMessage: (message: GifWorkerResponse, transfer?: Transferable[]) => void;\n};\n\nconst workerScope = globalThis as unknown as GifWorkerScope;\n\nconst getGifDimensions = (buffer: ArrayBuffer) => {\n if (buffer.byteLength < 10) {\n return null;\n }\n const data = new DataView(buffer);\n return {\n width: data.getUint16(6, true),\n height: data.getUint16(8, true),\n };\n};\n\nconst getErrorMessage = (error: unknown) =>\n error instanceof Error ? error.message : String(error);\n\nworkerScope.onmessage = async (event) => {\n let frames: GIFFrame[] = [];\n\n try {\n const dimensions = getGifDimensions(event.data);\n frames = await decodeAnimated(event.data);\n\n const decodedFrames = frames.map((frame) => {\n const imageData = frame.imageData;\n return {\n width: imageData.width,\n height: imageData.height,\n delay: frame.duration,\n data: imageData.data.buffer as ArrayBuffer,\n };\n });\n\n workerScope.postMessage(\n {\n type: \"success\",\n frames: decodedFrames,\n width: dimensions?.width ?? frames[0]?.imageData.width ?? 0,\n height: dimensions?.height ?? frames[0]?.imageData.height ?? 0,\n },\n decodedFrames.map((frame) => frame.data),\n );\n } catch (error) {\n workerScope.postMessage({\n type: \"error\",\n message: getErrorMessage(error),\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